I have problem with converting this code from JSF 1.2 application to equivalent in JSF 2.x application
ajaxSingle="false"
immediate="true"
reRender="myForm">
value="this.value"
assignTo="#{bean.type}"
noEscape="true"/>
How this code snippet works.
Depending on selected value in #{bean.type}, my page display different fields. When User change "type" field the whole form is rerendered, but without form validation (ajaxSingle="false", immediate="true", reRender="myForm").
I don't want to validate filds here, I just want to set new value to the #{bean.type} and rerender the page in order to show different fields (depending on #{bean.type}). Thats why i need to manualy set #{bean.type} inside a4j:actionparam.
The nice feature about this code is that submited values in other fileds are preserved after rerendering.
I am trying to do the same thing in JSF 2.x with no success:
This:
will rerender whole form and I will lose submited values form other fields
This:
will submit, validate and rerender whole form (i want just submit without validation like in JSF 1.2)
This:
also does not work (work same as above)
So my question is how can I achive the same behavior in JSF 2.x ?
Thanks