myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jakob Korherr <jakob.korh...@gmail.com>
Subject Re: [tomahawk] replaceIdWithLabel not working in t:messages after update to JSF 1.2
Date Tue, 22 Dec 2009 16:04:36 GMT
Hi Michael,

I'm sorry, but I can not reproduce your problem. On my machine it is "User:
Validierungsfehler: Eingabe erforderlich.".

Can you please provide more information about your jsp.

Regards,
Jakob


2009/12/22 Michael Heinen <michael.heinen@recommind.com>

> Hi,
>
> I have another migration issue:
> Error messages are rendered with the component ids instead of the label
> after update from myfaces 1.1.6 to 1.2.8 and tomahawk to 12_1.1.9
>
> jsp:
> <h:outputLabel for="name" value="User"/>
> <h:panelGroup>
>  <h:inputText id="name" value="#{MyController.name}" required="true">
>
> Class
> org.apache.myfaces.renderkit.html.ext.HtmlMessagesRenderer.getSummary(...)
> contains following line (86):
>
> msgSummary =
> msgSummary.replaceAll(HtmlMessageRenderer.findInputId(facesContext,
> msgClientId),inputLabel);
>
> Content:
> msgSummary= name: Validierungsfehler: Eingabe erforderlich.
> HtmlMessageRenderer.findInputId(facesContext, msgClientId) returns
> loginForm:name
> inptutLabel= User
>
> So the problem is that findInputId returns the full qualified clientid
> instead of the id.
> This worked with the old 1.1 jars.
>
> Any ideas?
> Michael
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message