You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by membersound <me...@web.de> on 2012/11/10 13:31:09 UTC
[BUG] invert variable of TriggerFragment is always FALSE!
I just used the TriggerFragment source of 5.3.6 to create my own
TriggerFragment.
But I discovered that without changing anything apart from the classname,
the invert attribute is always false! Even though it is set for the fragment
by invert="true".
See following example:
<t:checkbox t:mixins="mytriggerfragment" fragment="myfragid">
<t:formfragment t:id="myfragid" visible="backingProp" invert="true">
public class MyTriggerFragment {
@HeartbeatDeferred
void beginRender()
{
System.out.println("value of invert:" + invert);
//...
}
}
Result: invert it is always FALSE!!
Can anyone comfirm this, or am I doing something wrong?
--
View this message in context: http://tapestry.1045711.n5.nabble.com/BUG-invert-variable-of-TriggerFragment-is-always-FALSE-tp5717903.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [BUG] invert variable of TriggerFragment is always FALSE!
Posted by Muhammad Gelbana <m....@gmail.com>.
The "invert" attribute is provided withing the same component you added
your mixing.
<t:checkbox t:mixins="mytriggerfragment" fragment="myfragid" invert="true">
On Sat, Nov 10, 2012 at 2:31 PM, membersound <me...@web.de> wrote:
> I just used the TriggerFragment source of 5.3.6 to create my own
> TriggerFragment.
> But I discovered that without changing anything apart from the classname,
> the invert attribute is always false! Even though it is set for the
> fragment
> by invert="true".
>
> See following example:
>
> <t:checkbox t:mixins="mytriggerfragment" fragment="myfragid">
> <t:formfragment t:id="myfragid" visible="backingProp" invert="true">
>
> public class MyTriggerFragment {
>
> @HeartbeatDeferred
> void beginRender()
> {
> System.out.println("value of invert:" + invert);
> //...
> }
> }
>
> Result: invert it is always FALSE!!
>
> Can anyone comfirm this, or am I doing something wrong?
>
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/BUG-invert-variable-of-TriggerFragment-is-always-FALSE-tp5717903.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>