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.m
ainSearch}
" />
</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