You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Madhav Bhargava <Ma...@infosys.com> on 2008/12/04 16:09:37 UTC
component's strange behavior when used with Tiles and
Sun JSF
Hi,
I am using Sun JSF 1.1_02, Tomahawk 1.1.6 and struts tiles and RSA 7.0 (websphere runtime 6.0) as the development IDE.
I have the following code in my JSP:
<t:messages></t:messages>
<t:inputText id="descrptn" size="23" align="left" maxlength="100" required="true" forceId="true"
value="#{durMaintenanceController.description}">
</t:inputText>
I took the Messages.properties file from within jsf-impl.jar and overrode:
javax.faces.component.UIInput.REQUIRED=Validation Error: Value is required for {0}
When the JSP page gets rendered I submit the page leaving this required field as blank. As expected an validation error message is shown on the screen, but the bad part is that the component ID of the component is not displayed.
The following is displayed:
Validation Error: Value is required for {0}
As you can see the parameter should have been replaced by the ID of this component. This is rather strange.
Can anyone point out the problem here?
Thanks,
madhav
**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely
for the use of the addressee(s). If you are not the intended recipient, please
notify the sender by e-mail and delete the original message. Further, you are not
to copy, disclose, or distribute this e-mail or its contents to any other person and
any such actions are unlawful. This e-mail may contain viruses. Infosys has taken
every reasonable precaution to minimize this risk, but is not liable for any damage
you may sustain as a result of any virus in this e-mail. You should carry out your
own virus checks before opening the e-mail or attachment. Infosys reserves the
right to monitor and review the content of all messages sent to or from this e-mail
address. Messages sent to or from this e-mail address may be stored on the
Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***