Nikolaos,

You can use the following in your StripesResources.properties files:

The following is for standard messages:

stripes.messages.header=<br/><div class="checkmark">
stripes.messages.beforeMessage=
stripes.messages.afterMessage=
stripes.messages.footer=</div>

Notice the 'class="checkmark"' piece.

The following is for errors:

stripes.errors.header=<br/><div class="error">The following errors
occurred:</div><div class="error"><ol>
stripes.errors.beforeError=<li>
stripes.errors.afterError=</li>
stripes.errors.footer=</ol></div>

This is only one possible example you could use.  Obviously, tailor it to
your needs.  But do you actually need more than just an error CSS class and
an information CSS class?  If so, then I'd think you need to write your own
rendering strategy for messages.

-- Rick


On Mon, Nov 29, 2010 at 2:54 PM, Nikolaos Giannopoulos <
nikol...@brightminds.org> wrote:

> Hi,
>
> So in Stripes we can display messages OR errors to users and everything
> seems OK.
> Editing the resource file makes in tandem with CSS appears to work well.
>
> However, what if one wants to display different types of messages for
> users like a Warning and Ok (checkmark)?
>
> e.g. "<checkmark-icon> Your article was saved"
> e.g. "<warn-icon> The language of this Article is English however you
> have selected Spanish"
>
> Is this possible with Stripes?
>
> --Nikolaos
>
>
>
> ------------------------------------------------------------------------------
> Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
> Tap into the largest installed PC base & get more eyes on your game by
> optimizing for Intel(R) Graphics Technology. Get started today with the
> Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
> http://p.sf.net/sfu/intelisp-dev2dev
> _______________________________________________
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to