Hi Shing :) Yeah I fixed that, the problem I have no is that <span jwcid="@If" condition="state:blogVisit" > always returns false
On 07/11/05, Shing Hing Man <[EMAIL PROTECTED]> wrote: > > > > <inject property="blogVisit" type="state" > > object="state:blogVisit"/> > > > > Instead of state:blogVisit, have you tried blogVisit ? > Have you lookat at > http://jakarta.apache.org/tapestry/UsersGuide/state.html#state.aso > > > Shing > > > --- mike jones <[EMAIL PROTECTED]> wrote: > > > Hi > > Quick question I am trying to inject a state object > > into my page class > > through a declaration in the .page file but I keep > > getting an error. > > > > After reading > > > http://jakarta.apache.org/tapestry/UsersGuide/state.html#state.aso.access > > I > > have > > > > <contribution > > > configuration-id="tapestry.state.ApplicationObjects"> > > <state-object name="blogVisit" scope="session"> > > <create-instance class=" > > > org.mikejones.coriolis.tapestry.framework.aso.BlogVisit"/> > > </state-object> > > </contribution> > > > > and > > > > <inject name="blogVisit" type="state" > > object="state:blogVisit"/> > > > > however I guessed that the documentation was wrong > > because name is not a > > valid property so I changed it to > > > > <inject property="blogVisit" type="state" > > object="state:blogVisit"/> > > > > but get 'state:blogVisit' is not a declared > > application state object.' > > > > However when I do it through annotations eg > > > > @InjectState("blogVisit") > > public abstract BlogVisit getBlogVisit(); > > > > it works fine. > > > > cheers > > Mike > > > > -- > > d-_-b \m/(>_<)\m/ (9ò_ó)-o(@_o) > > > > > Home page : > http://uk.geocities.com/matmsh/index.html > > > > ___________________________________________________________ > To help you stay safe and secure online, we've developed the all new > Yahoo! Security Centre. http://uk.security.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- d-_-b \m/(>_<)\m/ (9ò_ó)-o(@_o)
