I want to set one or another "container" visible for the user
so he can see the one or the other.
Is this possible via Ajax or have i reload the hole page for re-rendering (What i am doing now in the controller) ?
Here is an example of what i am talking about:
Code: Select all
<h:form id="logon-form" prependId="false" >
<h:panelGroup id="RenderGroup">
<p:focus context="logon-form"/>
<p:messages id="msgPrivate" escape="false" autoUpdate="true" closable="false" showSummary="true" showDetail="true"/>
<h:panelGroup id="LoginStep" rendered="#{loginControl.currentStep==EnumStep.STEP_LOGIN}">
<!-- Showing content 1 -->
<h:panelGroup/>
<h:panelGroup id="OptionalStep" rendered="#{loginControl.currentStep==EnumStep.STEP_OPTIONAL_STEP}">
<!-- Showing optional content on logon (Optional location selection on multi mandant user's) -->
<h:panelGroup/>
[b] <p:commandLink id="LoginButton" process="@this @form" update="RenderGroup msgPrivate" action="#{loginControl.Validate()}" validateClient="true"/>
<p:defaultCommand target="LoginButton"/>[/b]
</h:panelGroup>
</form>
I need a component to render the content in case of the condition is true or false by ajax
because then i can switch very fast between different states or show the user different context in case of the condition has been changed...