You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by Dusko Jovanovski <du...@gmail.com> on 2011/09/07 16:43:00 UTC

AlertManager

Hello, the current implementation of AlertManager and the whole alerts
system is great, with two limitations:

There is no clean way to:

   - define the duration of the shown message
   - change/translate the Dismiss all label, it's currently hardcoded in
   t5-alerts.js

I'm running 5.3-beta2. Is this planned to be included further on, before the
release of 5.3 or should I open a JIRA for this?

Re: AlertManager

Posted by Dusko Jovanovski <du...@gmail.com>.
Thanks to Robert for picking up the JIRA for the hardcoded "Dismiss all"
label (https://issues.apache.org/jira/browse/TAP5-1633)

I created another one for a more customizable duration of transient messages
(https://issues.apache.org/jira/browse/TAP5-1640)

--
Dusko

On Wed, Sep 7, 2011 at 8:30 PM, Dusko Jovanovski <du...@gmail.com> wrote:

> Hello, Igor
>
> I tried the alert method, but it doesn't offer any way to define the
> duration of the shown alert when using Duration.TRANSIENT, instead this
> duration is hardcoded at 15sec. I personally find this a bit too long, and
> would like to customize it for each shown alert separately. This seems easy
> enough to implement, and I'm sure many would find it useful.
>
> Dusko
>
>
> On Wed, Sep 7, 2011 at 5:59 PM, Igor Drobiazko <ig...@gmail.com>wrote:
>
>> Hi Dusko,
>>
>>
>> On Wed, Sep 7, 2011 at 4:43 PM, Dusko Jovanovski <du...@gmail.com>
>> wrote:
>>
>> > Hello, the current implementation of AlertManager and the whole alerts
>> > system is great, with two limitations:
>> >
>> > There is no clean way to:
>> >
>> >   - define the duration of the shown message
>> >
>>
>> Did you try the alert method?
>>
>>
>> https://builds.apache.org/job/tapestry-trunk-freestyle/javadoc/org/apache/tapestry5/alerts/AlertManager.html#alert(org.apache.tapestry5.alerts.Duration
>> ,
>> org.apache.tapestry5.alerts.Severity, java.lang.String)
>>
>>
>> >   - change/translate the Dismiss all label, it's currently hardcoded in
>> >   t5-alerts.js
>> >
>>
>> Please fill a JIRA issue for that.
>>
>> >
>> > I'm running 5.3-beta2. Is this planned to be included further on, before
>> > the
>> > release of 5.3 or should I open a JIRA for this?
>> >
>>
>>
>>
>> --
>> Best regards,
>>
>> Igor Drobiazko
>> http://tapestry5.de
>>
>
>

Re: AlertManager

Posted by Dusko Jovanovski <du...@gmail.com>.
Hello, Igor

I tried the alert method, but it doesn't offer any way to define the
duration of the shown alert when using Duration.TRANSIENT, instead this
duration is hardcoded at 15sec. I personally find this a bit too long, and
would like to customize it for each shown alert separately. This seems easy
enough to implement, and I'm sure many would find it useful.

Dusko

On Wed, Sep 7, 2011 at 5:59 PM, Igor Drobiazko <ig...@gmail.com>wrote:

> Hi Dusko,
>
>
> On Wed, Sep 7, 2011 at 4:43 PM, Dusko Jovanovski <du...@gmail.com>
> wrote:
>
> > Hello, the current implementation of AlertManager and the whole alerts
> > system is great, with two limitations:
> >
> > There is no clean way to:
> >
> >   - define the duration of the shown message
> >
>
> Did you try the alert method?
>
>
> https://builds.apache.org/job/tapestry-trunk-freestyle/javadoc/org/apache/tapestry5/alerts/AlertManager.html#alert(org.apache.tapestry5.alerts.Duration
> ,
> org.apache.tapestry5.alerts.Severity, java.lang.String)
>
>
> >   - change/translate the Dismiss all label, it's currently hardcoded in
> >   t5-alerts.js
> >
>
> Please fill a JIRA issue for that.
>
> >
> > I'm running 5.3-beta2. Is this planned to be included further on, before
> > the
> > release of 5.3 or should I open a JIRA for this?
> >
>
>
>
> --
> Best regards,
>
> Igor Drobiazko
> http://tapestry5.de
>

Re: AlertManager

Posted by Igor Drobiazko <ig...@gmail.com>.
Hi Dusko,


On Wed, Sep 7, 2011 at 4:43 PM, Dusko Jovanovski <du...@gmail.com> wrote:

> Hello, the current implementation of AlertManager and the whole alerts
> system is great, with two limitations:
>
> There is no clean way to:
>
>   - define the duration of the shown message
>

Did you try the alert method?

https://builds.apache.org/job/tapestry-trunk-freestyle/javadoc/org/apache/tapestry5/alerts/AlertManager.html#alert(org.apache.tapestry5.alerts.Duration,
org.apache.tapestry5.alerts.Severity, java.lang.String)


>   - change/translate the Dismiss all label, it's currently hardcoded in
>   t5-alerts.js
>

Please fill a JIRA issue for that.

>
> I'm running 5.3-beta2. Is this planned to be included further on, before
> the
> release of 5.3 or should I open a JIRA for this?
>



-- 
Best regards,

Igor Drobiazko
http://tapestry5.de