jsf

How to combine JSF and Wicket components on same page

Is there way I can combine a JSF component and a Wicket component in the same web page? I have a menu bar component created in Wicket and a form component is created in JSF. I have to combine these two components in one page, is it possible? ...

defining custom UI logic in JSF for <script> tags

I know about creating my own taglibs in JSF eg. but is there a way to use JSF to parse differently native HTML elements? I am thinking of adding my own parameters for forms, divs, that would be then parsed differently on the server before rendering the final markup. ...

Why do I have to click my submit button twice?

I have quite a huge form for data capture. The main problem is that I'll always have to click on the submit button twice in order for the form to be submitted. The first time I press it, it just refreshes and does nothing. Why is this so? Inside my form, there is plenty of input text. There are also some dynamic select menus, in which ...

How to remove Message Ui:include not found on java build path in eclipse, While developing .xhtml file using richfaces and facelets?

Hi, I am getting error message like... The tag handler class for "ui:include" (null) was not found on the Java Build Path when i placed or in my .xhtml file. What is the reason behind this.. I am using: jsf 1.2 RichFaces 3.3 ...

Refresh view with Spring WebFlow transition

I'm trying to add localisation to my web app which is built with Spring WebFlow and facelets. I want to add support for english and french. I've created my two messages_fr.properties and messages_en.properties files. My template which I use for all my jsf pages has the following code to define the messages bundle and two links to switch...

Richfaces Model Panel Not Working in commandButton/Link With HigherVersion of browser

Hello,I m trying to call a model Panel through CommandButton in Windows Vista Mozilla Firefox:-Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.11) Gecko/20101012 Firefox/3.6.11 GTB7.1 (.NET CLR 3.5.30729) When Ever i m clicking On the CommandButton IT is showing a blank white Page and its look like Browser Serching anything.and...

how to open a pop up window in jsf

function editGroup(group_reason_id,type,mdVal) { alert("test==>"+group_reason_id); window.open("addgroup_reason.jsp?am=m&t="+type+"&md="+mdVal+"&gr="+group_reason_id,"","toolbar=no,resizable=no,status=no,menubar=no,scrollbars=yes,width=800,height=400,top=145,left=235") ; return true; } JSF code : <h:commandButton id=...

Facet field not filtering results

Hellos, I am trying to filter results from a search against Solr depending on a field. I was usiing this piece of code in page.xhtml: <h:selectOneMenu id="lang" binding="#{myBean.myMenu}" onchange="javascript:refreshResults(); return false;" > <f:selectItem itemValue="" itemLabel="Language" /> ...

EJB3 JSF application run in jboss 5

I am using JSF 1.2, EJB 3 on JBoss 5. This is my EJB: @Local public interface HelloServiceLocal { public void sayHello(String username); } @Stateless(name="helloService") public class HelloService implements HelloServiceLocal { public void sayHello(String username) { // business logic } } In a JSF backing bean ...

JSF datatable does not update when deleting first line

I am working on making a jsf datatable backed by a database. I am currently using a CachedRowSet to provide data. A command link allows the user to delete a line in the CachedRowSet by calling a method of the backing bean. The delete method works fine, but whenever the user tries to delete the very first row of the datatable something...

Can you use CSS to reference a parent or child of a certain object?

Hi all, I guess I am spoiled with JavaScript. If you want to change something about the parent, you can code something like parentNode.style.etc. <TABLE id="hasID"> <TBODY> <TR> <TD> <IMG id="hasID2" src="somePicture.png"> <IMG id="hasID3" src="someOtherPicture.png"> </TD> </tr> <tr> ...

JSF + jQuery: how to achieve StackOverFlow collapsible comment box

I am creating a Comment-Reply system, similar to stackoverflow and I wonder how to implement it using JSF + jQuery. I have a dataTable, each row have a link and a textBox, and once I click a link, only the textbox on that same row appear, and put focus on that textbox. <h:form id="userComment"> <p:dataTable value="bean.comments"> ...

<ui:debug/> tag not working in Facelets (JSF 2.0)

I am doing a project using JSF 2.0 and Facelets. I have read documentations that the <ui:debug/> tag gives valuable troubleshooting information upon pressing CTRL-SHIFT-D. But this never works for me. Please anyone tell me what am I missing. (I tried with various hotkeys, still no success. eg: <ui:debug hotkey="a"/>) ...

How to check exist item in cart and update it to 1 if user add it again?

Hello All! i have trouble with JPQL statement, i created NameQuery followed: @NamedQuery(name = "Cart.findExistCart", query = "SELECT c FROM Cart c WHERE c.cartPK.userid = :userid AND c.cartPK.itemid = :itemid "), in stateless bean i create one method to active this query followed: public Cart getUserItemCart(int userid,int itemi...

Multiple pages in JSF not calling backing bean mutators.

I'm currently developing an additional page to an already existing website. Actually that part isn't really that important - the page performs it's own separate functions. Anyway, originally, this "page" consisted of two pages controlled by one jpdl pageflow. Everything worked correctly, except when referencing the second page. The user...

How to Encryption with JSF

Hi all! i want encryption password from client side and server side , it means twice encrypted , i found on google snipped code Javascript md5 but how can i do with JSF? in Server side i can do but, but in client side with JSF how do i ? javascript md 5 : http://phpjs.org/functions/md5:469 ...

Using dataTable Primefaces

Hello, I am using the dataTable object of primefaces to display some data and I am having some problems to realize something : I display first a table with only 1 column and I want to display another table filled with data depending on what the user selected on the first one. For that, when the user selects a row in the first table, I...

Dynamically Generate Tabs with PrimeFaces

Hi I would like to iterate over a list of person-object and show the data in a tab per person. I tried: <p:tabView> <ui:repeat ...> <p:tab title="#{expression}> </ui:repeat> </p:tabView> This is not working. Any help appreciated Marcel ...

Problem h:selectOneMenu and event onSelect

Hello, does anybody knows why I am not reaching this alert?? <h:selectOneMenu id="lang" binding="#{mybind}" onSelect="javascript:alert('Reacheable??')" > in documentation says that it is available. Thanks in advance ...

A fresh graduate confused by the Java EE jargon Spring, Struts, JSF, EJB, Jboss, JMS,

As we all know that we rarely get a chance to learn whats out there in the enterprise world when it comes to college. In my experience I have always seen people learning Core Java and may be some other languages and when they graduate they have no Idea about this enterprise jargon. I am in that boat now. I am a recent graduate with a pr...