You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Alan Chandler <al...@chandlerfamily.org.uk> on 2005/10/23 23:52:03 UTC

Annotation formats

As a matter of principal I have been creating my application without any 
specification files.  So far so good.

However, I am following the "Are you Sure" javascript example in Kent's book, 
and this requires building a component which passes through all the informal 
parameters to one of the subcomponents.

It does this using the component attribute inherit-informal-parameters="yes" 
marker

Reading the @Component annotation in the documentation it implies that I ought 
to be able to do this.  However my attempts to specify it in Eclipse are 
generating Java errors.  How should I do it.


Code so far

@ComponentClass(allowBody = false) 
public abstract class ConfirmButton extends BaseComponent { 
 
	@Parameter (required=true) 
	public abstract String getMsg(); 
	 
	@Component( type="Submit", inherit-informal-parameters="yes") 
	public abstract Submit getButton();  
	 
 
}

But there seems to be a problem reported at the first "," in the @Component 
declaration.  The documents use a "," in some places and spaces in others, 
but I can't get either to work in this case
-- 
Alan Chandler
http://www.chandlerfamily.org.uk
Open Source. It's the difference between trust and antitrust.

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Annotation formats

Posted by Howard Lewis Ship <hl...@gmail.com>.
Try inheritInformalParameters=true



On 10/23/05, Alan Chandler <al...@chandlerfamily.org.uk> wrote:
> As a matter of principal I have been creating my application without any
> specification files.  So far so good.
>
> However, I am following the "Are you Sure" javascript example in Kent's book,
> and this requires building a component which passes through all the informal
> parameters to one of the subcomponents.
>
> It does this using the component attribute inherit-informal-parameters="yes"
> marker
>
> Reading the @Component annotation in the documentation it implies that I ought
> to be able to do this.  However my attempts to specify it in Eclipse are
> generating Java errors.  How should I do it.
>
>
> Code so far
>
> @ComponentClass(allowBody = false)
> public abstract class ConfirmButton extends BaseComponent {
>
>         @Parameter (required=true)
>         public abstract String getMsg();
>
>         @Component( type="Submit", inherit-informal-parameters="yes")
>         public abstract Submit getButton();
>
>
> }
>
> But there seems to be a problem reported at the first "," in the @Component
> declaration.  The documents use a "," in some places and spaces in others,
> but I can't get either to work in this case
> --
> Alan Chandler
> http://www.chandlerfamily.org.uk
> Open Source. It's the difference between trust and antitrust.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>


--
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: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org