tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jochen Kemnade (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TAP5-1949) Alerts component does not show alerts added from a component that occurs later in the template
Date Tue, 12 Jun 2012 06:53:43 GMT

    [ https://issues.apache.org/jira/browse/TAP5-1949?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13293395#comment-13293395

Jochen Kemnade commented on TAP5-1949:

The term "during the render of the page" is somewhat misleasing. The alerts are generated
during the setup-render phase of an embedded component. The exact use case is a component
whose rendering is effected by users's settings. There can be misconfigurations (related to
conflicts between session state and persisted settings) that lead to a message being displayed
to the user. As the component detects that error itself, it registers an alert with the alert
manager. But if the alerts component is contained in the layout component, its begin-render
phase (which generated the client-side JS for the alerts to be shown) is executed before the
component's setup-render, so the messages are not added.
> Alerts component does not show alerts added from a component that occurs later in the
> ----------------------------------------------------------------------------------------------
>                 Key: TAP5-1949
>                 URL: https://issues.apache.org/jira/browse/TAP5-1949
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.3.3, 5.4
>            Reporter: Jochen Kemnade
>            Priority: Minor
>              Labels: patch
>         Attachments: 0001-defer-the-alerts-JS-initialization-to-allow-for-aler.patch
> Consider the following snippet:
> <t:alerts />
> <t:componentthataddsanalert />
> The alert will not be shown as the JS for the alerts is generated in the beginRender
phase of the alerts component. and alerts that are added later are ignored until its next

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message