jsf

How to access form data after submit

Hi to all, I have a problem that I am not able to solve. Well, let's suppose that we are invoking a method (in a backing bean) from a webpage (maybe jsp, xhtml, portlet ...) pressing a button. <h:form> .... <h:inputText value="#{errorManager.errorTestDataBean.errore00}" /> <h:commandButton id="go" value="GO" action="#{errorManager.tr...

Why isn't ignoreDupResponse set to true by default in A4J

It seems to me that the most of the time you'd want to have ignoreDupResponse set to true on your a4j:support, a4j:commandLink, a4j:commandButton, etc. components. In which scenario it can be useful to have ignoreDupResponse set to false? Is there any performance cost of having ignoreDupResponse set to true? If not, why isn't ignoreDupRe...

Dynamic form fields (JSF + XSLT)

I'm working on a project which I need to build a form depending on user's wish. Trying to explain better, suppose I have two buttons ('input' and 'output' button), if user clicks on input button an inputText appears in the screen, if he/she clicks on output one an outputText shows up. To do that, everytime some button is clicked, my bean...

h:inputText does not reRender label on Validation

Hi, I am running into a peculiar problem when I am trying to invoke h:inputText label field value on validation. It only works when I pass a static value to label field. The time I pass a dynamic value to it, it fails to render the label when some validation fails for that field. <h:inputText id="fullNameField" value="#{newUserFormBean...

Create and Integrate jsf Components

I want to create different UI components on JSF(Rich Faces) with native components... for example: Component I: outputText value="Your name: " inputText value="#{user.name}" Component II: commandButton value="Set" action="#{user.set}" And finally, integrate this component on the same jsp. Can you bring an examp...

Using the Seam framework without Stateful Session Beans?

Has anyone had success building a SEAM Application without using Stateful session beans? There is some confusion on a new project in which I think several stakeholders have essentially 'banned' stateful session beans... but some development is being done in SEAM. Most of the literature on SEAM encourages the use of Stateful Session B...

Can JSF2 use beans as request-based controllers without a framework?

Hi! I'm working on the development for a web application using Java Server Faces for a group project. The majority of us have experience using request-based frameworks in PHP and we are having problems getting into the event-based (?) mindset of JSF-development. In PHP you would generally have a front controller (like the Faces Servlet...

How to create dynamic menu using database and JSF

Hello all! I want to create dynamic menu from Database it's mean i have Catagory is main menu and some catagory such as Books, CDs, Managzine . . . and Sub- Category is child of Category ( 2 table one is Category and table two is Sub-Category, and one - to many relationship) such as Ebooks for Books category, 007 for Cds, PC Worlds for M...

Enable/Disable some check boxes from group of checkbox

I am using the following code that list the checkboxes and output their label values getting from Enum. Currently when I select the checkboxes those get bind to the reAgeHistory and I can submit all of them. <t:selectManyCheckbox id="reageHistory" value="#{rule.reAgeHistory}" layout...

JSF complex cascading radio buttons

I need to port an application from PHP to JSF 2. Everything is fine except for a rather complex radio button group: When 'Process Application for:' is selected, the child radio button group is enabled. Within that, when 'Other' is selected, the corresponding text box is enabled. When 'Brands' is selected, those two text boxes are en...

url attribute of <h:graphicImage/> not accepting 2nd request parameter

I use a Servlet to stream an image from the database and I use the tag for display as follows: <h:graphicImage url=”/servletUrl?para1=name1&para2=name2”/> The problem starts if I include the 2nd parameter (&para2=name2) and I get the following error message: The reference to entity "para2" must end with the ';' delimiter Am I missi...

How to prevent a request scoped bean method being called multiple times in a JSF application?

Ok, with all the answers to this question I'm still not able to handle my problem. I have the following constellation: In a JSF (1.1) webapp I have a request scoped bean beanof class Bean. When the user quickly clicks a commandButton multiple times to redirect him to the insult.xhtml page the doSomethingThatTakesALittleLongerAndShouldOn...

Why is a dynamic created JSF EL value expression not resolved?

Hi, I got a simple setup (and a big issue): a JSP page with en empty panel grid item container and a binding to a bean. <h:panelGrid binding="#{ bean.container }" id="container" /> When the getter of the bean will be called, the container is filled with a random number of columns with a command link inside. So far so good. The contai...

Can't persist my input text

Hi! I have an input text area, inside a panel grid. This panel grid is only rendered when a check box is ticked. I'm using a value change listener to listen to the check box to render the text area. This rendering mechanism works, but the trouble is that I can't retrieve the value the user inputs in the text area. It always returns null...

disabled issue for inputtext

Hi all, i am using ibm portlet. we are using jsf pages. when i load my page i am disbling one of the input text on the page. this i m handling in the constructor. there is a edit button on the page , when i click on the button the field gets enabled. now when i change something in the input text box and do a submit the new value is not s...

i need to retrieve file values

i have uploaded a file using icefaces onputfile tag,now i want to retrieve that file value and again save that in list. Can you please send me tips or code for that? ...

How to test EL expressions correctness statically?

Hello, On our web-application, we did some refactoring on the Java beans, and due to this refactoring, some actions / getters are not available anymore. For example, in the following example: public class MyBean implements Serializable { // Old name // public String getFoo() { return "foo"; } // New name public String...

javaScript for ADF Faces 1.1 within a loop.

Hi, I am having issue with my js function within a ADF Faces af:interator. I have 3 controls within an af:iterator (af:ouputText, af:inputText, af:selectBooleanCheckBox) and I would like to have a js function on the checkbox so that when checking the checkbox, the text of the ouputText will be copied into the inputText. The issue here i...

JSP Login Authentication Script failing (MySQL-backend) web.xml servlet mapping?

Hi guys, I am just starting out with JSP in NetBeans 6.9.1 and im trying to make a basic login script for user authentication (sessions will be added later; These are made automatically for every JSP page right?) The problem I am having is the following. I followed the tutorial at: http://www.roseindia.net/jsp/loginbean.shtml ** I mad...

Content unparsed through Glassfish 3 though deployment descriptors appear correct

Hello I have dropped a war into the autodeploy of a Glassfish 3 domain and it has exploded fine, showing a subdirectory tree domain1>applications>myApp under which is a WEB-INF>classes>myApp folder tree which stores the classes for myApp. The app originally used JSF1.2 and facelets (1.1.15) and was deployed to tomcat 6, but I'm now try...