[ https://issues.apache.org/jira/browse/TOMAHAWK-850?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12467278 ]
Stefan Betermieux commented on TOMAHAWK-850: -------------------------------------------- I have found the culprit, it is a change in the third line of UIInput.validate(): if (submittedValue == null) return; changed by tomsp on November 22 (commit 478342) to fix MYFACES-1567 if (submittedValue == null && !this.isRequired()) return; since the issue is still in discussion, I would suggest to mark this as a duplicate and continue the discussion there. > 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.