You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Lin Jiang <tt...@gmail.com> on 2005/07/20 09:20:30 UTC

about jsf(message-bundle) portlet

hello, 

i have a small jsf portlet. it just gets the user input and validates it.
but there is no error message displayed after the validation. 

the jsp code:
<h:inputText id="username" size="6" value="#{test.username}" required="true">
<f:validateLength minimum="5" maximum="10" />
</h:inputText>
<h:message id="errorUsername" for="username"  style="color: red;" />

if the length of the username is correct, everything works fine.
but if, for example, the username has only 3 characters, no error
message will be displayed.
the 3 characters are still in the input text, and this is correct.

i just do not know if the jsf bridge supports the <message-bundle>
which is defined in the faces-config.xml.
<application>
<message-bundle>Information</message-bundle>
<locale-config>
<default-locale>en</default-locale>
</locale-config>
</application>

in the normal jsf application in tomcat, the error message works when
the user input is not correct.
i do not change the jsp or java code in the portlet application, 

thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org