[
https://issues.apache.org/jira/browse/TRINIDAD-43?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12503942
]
Adam Winer commented on TRINIDAD-43:
------------------------------------
This does not reproduce if you switch h:inputText to tr:inputText. But it does
reproduce with the 1.1_01 RI.
> tr:switcher + Facelets - inputs reset on validation failure
> -----------------------------------------------------------
>
> Key: TRINIDAD-43
> URL: https://issues.apache.org/jira/browse/TRINIDAD-43
> Project: MyFaces Trinidad
> Issue Type: Bug
> Components: Facelets
> Affects Versions: 1.0.1-core
> Environment: Facelets 1.1.11 + MyFaces 1.1.5
> Reporter: Noah Sloan
>
> <html xmlns="http://www.w3.org/1999/xhtml"
> xmlns:f="http://java.sun.com/jsf/core"
> xmlns:h="http://java.sun.com/jsf/html"
> xmlns:ui="http://java.sun.com/jsf/facelets"
> xmlns:c="http://java.sun.com/jstl/core"
> xmlns:t="http://myfaces.apache.org/tomahawk"
> xmlns:tr="http://myfaces.apache.org/trinidad">
> <h:form>
> <h:messages />
> <tr:switcher facetName="#{pageFlowScope.type}" defaultFacet="text">
> <f:facet name="text">
> <ui:fragment>
> <h:inputText required="true" value="#{pageFlowScope.value}" />
> </ui:fragment>
> </f:facet>
> </tr:switcher>
>
> <h:inputText required="true" value="#{pageFlowScope.value2}" />
>
> <h:commandButton value="Foo" />
> </h:form>
> </html>
> If you enter a value in the first box but not the second and submit, you get
> a validation error and the first value reverts to whatever it was before.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.