[
http://issues.apache.org/jira/browse/MYFACES-1197?page=comments#action_12436348
]
Mike Youngstrom commented on MYFACES-1197:
------------------------------------------
So just to make sure we're on the same page, from a use case standpoint this is
how someone would use something like this to determine if messages should be
displayed.
<h:form id="someForm">
<t:storeParentComponentClientId var="someFormId"/>
<h:inputText id="name" required="true"/>
<h:panelGroup
rendered="#{myfacesContext.ifMessage[parentClientId+':name']}">
<!-- some markup to support the error message -->
<h:message for="name"/>
</h:panelGroup>
</h:form>
I was a little unclear in your comment above about how
#{myfacesContext.storedComponentClientId} correlated with
t:storeParentComponentClientId.
I can see how a component like storeParentComponentClientId could be useful in
doing something like this. Is something like this what you were referring to?
> Docs for ifMessage component
> ----------------------------
>
> Key: MYFACES-1197
> URL: http://issues.apache.org/jira/browse/MYFACES-1197
> Project: MyFaces Core
> Issue Type: Improvement
> Components: General
> Affects Versions: 1.1.2-SNAPSHOT
> Reporter: Mike Youngstrom
> Assigned To: Martin Marinschek
> Attachments: ifMessageDocs.patch
>
>
> Here is a patch with docs for the ifMessage component I donated.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira