This content has been marked as final.
Show 3 replies
-
1. Re: custom home with required=true...
sean.tozer Apr 30, 2010 3:52 PM (in response to kmranganathan)Depending on what kind of button it is, you could try using immediate="true" or ajaxSingle="true" on it, so as to ignore the rest of the form inputs when it fires.
-
2. Re: custom home with required=true...
thokuest May 1, 2010 2:39 PM (in response to kmranganathan)You can handle it by placing input text box / add-button and list box / delete-button in separate forms. This is a simple (and incomplete) example:
<h:form id="creationForm"> <!-- input field goes here --> <a4j:commandButton action="#{bean.action}" value="Create" reRender="deletionFormPanel" /> </h:form> <a4j:outputPanel id="deletionFormPanel"> <h:form id="deletionForm"> <!-- list box and delete-button goes here --> </h:form> </a4j:outputPanel>
I don't recommend the solution with immediate="true" / ajaxSingle="true" because it implies other problems.
Hope that helps!
-
3. Re: custom home with required=true...
kmranganathan May 14, 2010 5:27 PM (in response to kmranganathan)Hi,
Using the 2 Forms is working.Thanks very much,
Ranga.