shale-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <mario.buonop...@accenture.com>
Subject RE: Problem with replaceIdWithLabel
Date Tue, 10 Jul 2007 12:55:05 GMT
Probably I found the problem:

I have a main tile that use the t:messages tag before the tile:insert of
the page generating the messages. 

When the first time the method getOutputLabelMap of HtmlMessageRenderer
is called, does not resolve the value.

 

If I move the t:messages after the tile:insert does work correctly.

 

May be a bug?

 

Regards

Mario 

 

________________________________

From: mario.buonopane@accenture.com
[mailto:mario.buonopane@accenture.com] 
Sent: 10 luglio 2007 13.33
To: users@myfaces.apache.org
Subject: Problem with replaceIdWithLabel

 

Hi, I'm using replaceIdWithLabel attribute in t:messages but the
validation messages does not show the label (show the id).

I'm using tiles:

 

                  <t:outputLabel for="dataSinistro"
value="#{bundle.dataSinistro}" />

                  <t:inputCalendar id="dataSinistro" 

 
value="#{ricerche$ricercaPolizzePage.dataSinistro}" 

                        required="true" />

                  <t:message for="dataSinistro"
replaceIdWithLabel="true"/>

 

<na:messages id="messageList2" replaceIdWithLabel="true"
showSummary="true" showDetail="true" globalOnly="false"/>

 

I have tried to debug HtmlMessageRenderer.findInputLabel method, and I
see that when execute this step:

        MessageLabelInfo info =
((MessageLabelInfo)outputLabelMap.get(inputClientId));

 

The value of info.getText() is empty string ("").

 

Is there any one can help me?

 

Thanks

Mario

 

This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information. If you have
received it in error, please notify the sender immediately and delete
the original. Any other use of the email by you is prohibited.



This message is for the designated recipient only and may contain privileged, proprietary,
or otherwise private information.  If you have received it in error, please notify the sender
immediately and delete the original.  Any other use of the email by you is prohibited.

Mime
  • Unnamed multipart/alternative (inline, 7-Bit, 0 bytes)
View raw message