Alerts rendering currently implemented entirely using client-side
javascript [1], so you can't change this.

But, you can add your own event handler which will be invoked right after
alerts get created in HTML DOM and add custom classes to them, like I did
for tapestry-bootstrap [2].

[1] tapestry5 sources:
tapestry-core/src/main/resources/org/apache/tapestry5/t5-alerts.js
[2]
https://github.com/trsvax/tapestry-bootstrap/commit/bc3f5854f1e69741be6d5153b852b4daa1c48516

On Sun, Sep 2, 2012 at 12:18 AM, Muhammad Gelbana <m.gelb...@gmail.com>wrote:

> I forgot to mention that one may also need to change the rendering tag. I'm
> over that part but I like to identify all the solutions possible. In my
> case I wanted to render the alerts in *h4* tags instead of *divs* with
> specific css classes since the template I'm using has a style for that.
> Frankly I haven't read much about javascript in tapestry but I guess that
> won't be so direct.
>
>
> On Sat, Sep 1, 2012 at 10:08 PM, Dmitry Gusev <dmitry.gu...@gmail.com
> >wrote:
>
> > https://issues.apache.org/jira/browse/TAP5-1996
> >
> > Thats easy to implement, but it should be done in tapestry-core.
> > I will try to send a patch for this in a few days, hope it will get into
> > 5.3.6
> >
> > On Sat, Sep 1, 2012 at 10:11 PM, Muhammad Gelbana <m.gelb...@gmail.com
> > >wrote:
> >
> > > I'm wondering how can I add more alert types ? Precisely I'm trying to
> > use
> > > a new alert type as a "*Success*" indication in addition to the
> existing
> > (*
> > > Info*, *Warning* and *Error*) alerts. Thank you.
> > >
> >
> >
> >
> > --
> > Dmitry Gusev
> >
> > AnjLab Team
> > http://anjlab.com
> >
>



-- 
Dmitry Gusev

AnjLab Team
http://anjlab.com

Reply via email to