Still, the point though is that the defaultValue parameter on the @Parameter annotation doesn't seem work properly on my component class. So is there anything that I'm missing here?
@Parameter(defaultValue="true") public abstract boolean isShowDescription(); public abstract void setShowDescription(boolean showDescription); regards, Scott On Tue 13 December 2005 00:01, scott russell wrote: > Ok, clearly I'm not thinking when I'm posting. Must have been too late in > the day, brain too fuill etc. > > The @Parameter tag is actually on my component class. > > Time for a bex and a lie down... > > -Scott > > >From: "Jeff Lubetkin" <[EMAIL PROTECTED]> > >Reply-To: "Tapestry users" <[email protected]> > >To: "Tapestry users" > ><[email protected]>,<[email protected]> > >Subject: RE: Parameter annotation > >Date: Mon, 12 Dec 2005 02:14:48 -0500 > > > >You say the @Parameter annotation is on your page class? Parameters are > >generally only used with Components...I'm not sure how they behave in a > >Page class. Try an @InitialValue annotation instead, or just reset the > >value in finishLoad. > > > >See > >http://jakarta.apache.org/tapestry/tapestry-annotations/index.html#Initial > >Value for the full info. > > > >jeff > > > >________________________________ > > > >From: Scott Russell [mailto:[EMAIL PROTECTED] > >Sent: Sun 12/11/2005 10:23 PM > >To: [email protected] > >Subject: Re: Parameter annotation > > > > > > > >Oops, I meant to write: > > > >@Parameter(defaultValue="true") > >public abstract boolean isShowDescription(); > >public abstract void setShowDescription(boolean showDescription); > > > >Shows what happens when you transcribe manually rather than cut 'n paste. > > > >-Scott > > > >On Mon 12 December 2005 16:18, Leonardo Quijano Vincenzi wrote: > > > Hmmm isShowDescription() returns boolean and setShowDescription() takes > > > a String argument()??? > > > > > > Scott Russell wrote: > > > > I have an @Parameter annotation on a method in my page class as > > > >follows: > > > > @Parameter(defaultValue="true") > > > > public abstract boolean isShowDescription(); > > > > public abstract void setShowDescription(String showDescription); > > > > > > > > Unfortunately the default value does not get set and the parameter > > > >always > > > > > > reads as false. Is this the correct format for this annotation? > > > > > > > > regards, > > > > Scott > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: > > > > [EMAIL PROTECTED] > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
