You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by prantor <pr...@yahoo.com> on 2008/03/19 08:27:46 UTC
Is it possible customize
Hi all
I am using JSF myfaces implementation with RichFaces
I have a code in rich modal panel like.
<h:inputText label="Client" id="ClientId" value="#{bean.client}"
required="true" />
<rich:message for="ClientRecId">
<f:facet name="passedMarker"><h:graphicImage
value="/images/ajax/passed.gif"/></f:facet>
<f:facet name="errorMarker"><h:graphicImage
value="/images/ajax/error.gif"/></f:facet>
</rich:message>
I am expectiong that it will show message by "Label" like Client: Value is
required. but it show message by "ID" like "ClientId": Value is required.
Why? Any kind of help regarding this issue is highly appreciated.
--
View this message in context: http://www.nabble.com/Is-it-possible-customize-%3Ch%3Amessage%3E-tp16138403p16138403.html
Sent from the My Faces - Dev mailing list archive at Nabble.com.
Re: Is it possible customize
Posted by Ernst Fastl <er...@gmail.com>.
Hi,
I believe the tomahawk component t:message does something similar to
what you want.
At least it displays the label instead of the id). Maybe you can use
that one or just check
org.apache.myfaces.renderkit.html.ext.HtmlMessageRenderer and do
something similar
in a custom renderer.
cheers
Ernst
On Wed, Mar 19, 2008 at 8:27 AM, prantor <pr...@yahoo.com> wrote:
>
> Hi all
> I am using JSF myfaces implementation with RichFaces
>
> I have a code in rich modal panel like.
>
> <h:inputText label="Client" id="ClientId" value="#{bean.client}"
> required="true" />
> <rich:message for="ClientRecId">
> <f:facet name="passedMarker"><h:graphicImage
> value="/images/ajax/passed.gif"/></f:facet>
> <f:facet name="errorMarker"><h:graphicImage
> value="/images/ajax/error.gif"/></f:facet>
> </rich:message>
>
> I am expectiong that it will show message by "Label" like Client: Value is
> required. but it show message by "ID" like "ClientId": Value is required.
>
> Why? Any kind of help regarding this issue is highly appreciated.
> --
> View this message in context: http://www.nabble.com/Is-it-possible-customize-%3Ch%3Amessage%3E-tp16138403p16138403.html
> Sent from the My Faces - Dev mailing list archive at Nabble.com.
>
>