It's in the docs:
http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/corelib/mixins/TriggerFragment.html

The "invert" attribute


On Fri, Nov 9, 2012 at 7:03 PM, membersound <memberso...@web.de> wrote:

> Hi,
>
> how can I negate a triggerfragment? So that it only shows up if checkbox is
> /un/checked?
> Especially: why does the following not work?
> <t:checkbox t:id="checkbox" value="object.bool" t:mixins="triggerfragment"
> fragment="frag"/>
> <t:formfragment t:id="frag" visible="!object.bool">
>
> It initially does not show the fragment (as default value of object.bool =
> true). But if I uncheck the checkbox, it does not trigger the fragment. BUT
> if I then check the checkbox again (which should intentionally hide the
> fragment) it is shown instead!
>
> class Page {
>    @Property
>    @Persist
>    Object object;
> }
>
> class Object {
>    boolean bool = true;
> }
>
>
> What's wrong here?
>
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Negate-a-triggerfragment-tp5717884.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to