I just posted a new feature to JIRA with the topic:
Simplified visibility control of Enclosures in Ajax requests.
I also posted a patch against wicket 1.4.15 that implements
this feature.

https://issues.apache.org/jira/browse/WICKET-3422


Problem:

    The amount of boilerplate code needed to create partitions of a web page
that take their
    visibility setting from a controlling component.

        "Changing the visibility of a child component in Ajax callback
method will not affect the entire
        enclosure but just the child component itself. This is because only
the child component is added
        to the AjaxRequestTarget."
        - https://cwiki.apache.org/WICKET/wickets-xhtml-tags.html

Solution:

    1. 'Inline' Enclosure tags, implemented as an attribute that can be
attached to an arbitrary html tag.
        Works just like a regular Enclosure, but is Ajax ready.
    2. When handling Ajax requests, Inline Enclosures that are controlled by
Components already in the Ajax
        request target are automatically added to the Ajax request target.

.....

Full description and patch at:
https://issues.apache.org/jira/browse/WICKET-3422


---------------------
This mail relates to the dev thread i started two weeks
ago with the title: 'How to streamline ajax page region toggle'.

Thanks for support:
    Martin Makundi
    Igor Vaynberg
    Jeremy Thomerson
---------------------

- Joonas Hämäläinen

Reply via email to