Re: Late injection with postback query

Splash Forums PrettyFaces Users Late injection with postback query Re: Late injection with postback query

#21011

Zhomart
Participant

In case guys I was not very clear, here is the sample:

temp.xhtml:

<h:form>

<h:inputText value=”#{temp.p1}” />

<c:if test=”#{not empty temp.toTouch}”>

<h:inputText value=”#{temp.p2}” />

</c:if>

<h:commandButton value=”submit” />

</h:form>

pretty-config.xml:

<url-mapping id=”temp”>

<pattern value=”/temp/#{ toTouch : temp.toTouch }” />

<view-id>/faces/page/temp.xhtml</view-id>

</url-mapping>

Whatever you enter in both input’s, value of the first one would be preserved only, since second one is not in restored tree…