[
https://issues.apache.org/jira/browse/TOMAHAWK-850?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12467140
]
Stefan Betermieux commented on TOMAHAWK-850:
--------------------------------------------
Some more information:
- this is a regression, it worked some months ago
- the problem can be traced to the validate() method of UIInput, which checks
the submittedValue (which is null in case of displayValueOnly) and triggers the
validation error. Shouldn't displayValueOnly prevent these checks? I am not
sure how it is supposed to work, maybe someone can give some hints. I have
looked in the displayValueOnly-Version of HtmlInputText (from
org.apache.myfaces.component.html.ext), but i can't find any hints.
> displayValueOnly on input elements who are required triggers validation
> -----------------------------------------------------------------------
>
> Key: TOMAHAWK-850
> URL: https://issues.apache.org/jira/browse/TOMAHAWK-850
> Project: MyFaces Tomahawk
> Issue Type: Bug
> Components: Validators
> Affects Versions: 1.1.5-SNAPSHOT
> Reporter: Stefan Betermieux
> Assigned To: Cagatay Civici
>
> Hi,
> using the latest SVN snapshot, I get a validation error message when I use an
> UIInput (for example InputText) with displayValueOnly="true" and
> required="true". It is simple to reproduce:
> <f:view>
> <h:form id="form">
> <t:inputText id="input" value="Test" required="true"
> displayValueOnly="true"/>
> <h:commandButton id="button" value="press me"
> action="success"/>
> <h:message id="message" for="input"/>
> </h:form>
> </f:view>
> The replacement of my value bean lookups by static strings hasn't affected
> the outcome, a validation error ("input": Value is required.) is always
> triggered.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.