Advertisement

06.08.2007 at 01:56PM PDT, ID: 22622825
[x]
Attachment Details

JSF page not applying request values to my session bean when I submit form

Asked by pietrzak in Java Server Faces (JSF), Java Server Pages (JSP), J2EE

Tags: jsf, session, page

I have the following code in my JSF page

<f:view>
<h:form id="myform">

<h:commandButton  id="submit" action="#{beanSetupSearch.submitForm}"  styleClass="buttonText" immediate="false" value="Submit"   />

<h:inputText styleClass="textField" id="mainSearch1" size="55" value="#{beanSetupSearch.mainSearch}" />

</h:form>
</f:view>

I click on my button and it does nothing the first time, I would expect that it should go into my setMainSearch method of my backing bean and then to my submitForm method,  but it does not do this untill I hit the button a second time. I tried immediate ="true' but that just takes me to my submitForm method of my bean, Has anyone else run into this. I am using Netbeans 5.5 as my ide with JSF 1.2. I'm fairly new to jsf however this seems like basic stuff. Any thoughts or ideas on how to remedy this situation.?

Thanks,
Kevin
Start Free Trial
[+][-]06.10.2007 at 02:08PM PDT, ID: 19254380

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.10.2007 at 08:45PM PDT, ID: 19255744

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.11.2007 at 06:57AM PDT, ID: 19258086

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.11.2007 at 08:23AM PDT, ID: 19258816

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.08.2007 at 02:52AM PDT, ID: 19439589

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.16.2007 at 12:11PM PDT, ID: 19711393

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]08.27.2007 at 01:33PM PDT, ID: 19778457

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]09.02.2007 at 08:21PM PDT, ID: 19818913

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Java Server Faces (JSF), Java Server Pages (JSP), J2EE
Tags: jsf, session, page
Sign Up Now!
Solution Provided By: Computer101
Participating Experts: 3
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32