Hello,I discovered a bug in the Stripes messages.
 If you add in the action, message that does not exist
getContext (). getMessages (). add (new LocalizableMessage (miss.message.text 
"));
and in jsp
<s:messages/>
will fail in the jsp
GRAVE:
java.util.MissingResourceException: Can not find resource for bundle ...

I can catch with a try in jsp but it is ugly, another option, is to check 
message if exist before add to messages.
Jsp should not fail, giving blank message or replaced by another generic error 
message.

Greetings.


EspañolHola
Descubri un bug de los Stripes mensajes.
 Si añades en accion mensaje que no existe
getContext().getMessages().add(new LocalizableMessage("miss.message.text"));
y en jsp
<s:messages/>
va a fallar en el jsp
GRAVE: 
java.util.MissingResourceException: Can't find resource for bundle...

Puedo atrapar con try en jsp pero es feo, otra opcion, es comprobar si mensaje 
existe antes de añadir a los mensajes.
Deberia no fallar en jsp, dando mensaje en blanco o sustituir por otro mensaje 
generico de error.

Saludos.



      
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to