It does still not work!!!

login.name = User

<t:outputLabel for="name"> 
   <h:outputText value="#{msgs['login.name']}"/>        
</t:outputLabel>
                
<h:inputText  id="name" value="#{LoginControllerBean.name}"
required="true" />
<t:message for="name" styleClass="errorText" replaceIdWithLabel="true"
showSummary="false" showDetail="true"/>

The message is still "name": Value is required. Instead of "User" ...
I' going insane

Michael

-----Original Message-----
From: Bruno Aranda [mailto:[EMAIL PROTECTED] 
Sent: Freitag, 17. Februar 2006 04:06
To: MyFaces Discussion
Subject: Re: display label in error message instead of id

And what if you try showSummary="false" showDetail="true"?

Bruno

On 2/16/06, Michael Heinen <[EMAIL PROTECTED]> wrote:
> Thanks Bruno.
>
> I replaced my h:message tag with t:message but without success.
>
> I added replaceIdWithLabel="true" but this does not change anything.
> Unfortunately I can't access the online API docs.
>
> Do you have another hint for me ?
>
>
> Michael
>
> -----Original Message-----
> From: Bruno Aranda [mailto:[EMAIL PROTECTED]
> Sent: Donnerstag, 16. Februar 2006 08:47
> To: MyFaces Discussion
> Subject: Re: display label in error message instead of id
>
> Sure, there is an easy solution. Use the extended messages component
> from tomahawk (t:message).
>
> Regards,
>
> Bruno
>
> On 2/16/06, Michael Heinen <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > Hi all,
> >
> >
> >
> > I try to display the label of a field instead of the id in an error
> message,
> > but I don't get it to work.
> >
> > I'm sure there is an easy solution for it.
> >
> >
> >
> > Here is my code:
> >
> >
> >
> > Messages:
> >
> > login.name = User
> >
> >
> >
> > JSP:
> >
> > <h:outputLabel for="name">
> >
> >    <h:outputText value="#{msgs['login.name']}"/>
> >
> > </h:outputLabel>
> >
> > <h:panelGroup>
> >
> >             <h:inputText id="name"
value="#{LoginControllerBean.name}"
> > styleClass="inputField" required="true" />
> >
> >             <h:message for="name" styleClass="errorText"/>
> >
> > </h:panelGroup>
> >
> >
> >
> > The following message is displayed if the name field is empty after
> submit:
> >
> > '"name": Value is required.'
> >
> >
> >
> > I want that '"User": Value is required.' is displayed.
> >
> >
> >
> > Thanks for any help
>

Reply via email to