Created a bug for this
http://issues.apache.org/jira/browse/TAPESTRY-769
cheers
Mike
On 21/11/05, Howard Lewis Ship <[EMAIL PROTECTED]> wrote:
>
> That seems odd, the code inside StateBinding is exactly the same and
> the tests are all OK.
>
> Oops ... saw the bug. StateBinding doesn't override isInvariant(), so
> if it returns false the first time, the If component will never ask it
> again! This is a bug, please add it!
>
> On 11/21/05, mike jones <[EMAIL PROTECTED]> wrote:
> > Hi
> > I am trying to use the following to hide sections of my page using...
> >
> > <span jwcid="@If" condition="state:blogVisit" > ... </span>
> >
> > however it always returns false, so even when someone has logged in they
> > never show.
> >
> > However if I use this
> >
> > public abstract void setIsLoggedIn(boolean isLoggedIn);
> >
> > protected void prepareForRender(IRequestCycle cycle) {
> >
> setIsLoggedIn(getPage().getEngine().getInfrastructure().getApplicationStateManager().exists("blogVisit"));
> > }
> >
> > It returns true when it has been created.
> >
> > Can anyone help with what I am missing?
> >
> > Cheers
> > Mike
> > --
> > d-_-b \m/(>_<)\m/ (9ò_ó)-o(@_o)
> >
> >
>
>
> --
> Howard M. Lewis Ship
> Independent J2EE / Open-Source Java Consultant
> Creator, Jakarta Tapestry
> Creator, Jakarta HiveMind
>
> Professional Tapestry training, mentoring, support
> and project work. http://howardlewisship.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
d-_-b \m/(>_<)\m/ (9ò_ó)-o(@_o)