You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Colin Sampaleanu <co...@exis.com> on 2003/09/23 22:40:10 UTC
Is it possible to combine a a declared component in a page but still
set some props via the implicit mechanisms
I am curious if it's possible to combine an implicit component
declaration in the template, e.g.
@Whatever attr="xxx"
and then also have a declared component of the same name in the .page
file, which sets some other attributes
<component id="Whatever" type="xxxxxxx">
.. now set some bindings here.
Looking at the user's guide:
http://jakarta.apache.org/tapestry/doc/TapestryUsersGuide/template.components.html
this is not clear. I presume it is not legal, but in either case, this
should be documented in the user's guide.
Regards,
Colin
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Is it possible to combine a a declared component in a page but
still set some props via the implicit mechanisms
Posted by Harish Krishnaswamy <hk...@comcast.net>.
I am pretty sure the specification is ignored in this case. I remember
having tried this when I started trying out Tapestry :-) . I guess I
have even put an entry in BugZilla!
-Harish
Colin Sampaleanu wrote:
> I am curious if it's possible to combine an implicit component
> declaration in the template, e.g.
> @Whatever attr="xxx"
> and then also have a declared component of the same name in the .page
> file, which sets some other attributes
> <component id="Whatever" type="xxxxxxx">
> .. now set some bindings here.
>
> Looking at the user's guide:
>
> http://jakarta.apache.org/tapestry/doc/TapestryUsersGuide/template.components.html
>
> this is not clear. I presume it is not legal, but in either case, this
> should be documented in the user's guide.
>
> Regards,
> Colin
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
RE: Is it possible to combine a a declared component in a page but still set some props via the implicit mechanisms
Posted by "Howard M. Lewis Ship" <hl...@comcast.net>.
No, this isn't allowed. However, if you are going to put stuff into the page spec, just put the
type there as well.
--
Howard M. Lewis Ship
Creator, Tapestry: Java Web Components
http://jakarta.apache.org/tapestry
http://jakarta.apache.org/commons/sandbox/hivemind/
http://javatapestry.blogspot.com
> -----Original Message-----
> From: Colin Sampaleanu [mailto:colinml1@exis.com]
> Sent: Tuesday, September 23, 2003 4:40 PM
> To: Tapestry users
> Subject: Is it possible to combine a a declared component in
> a page but still set some props via the implicit mechanisms
>
>
> I am curious if it's possible to combine an implicit component
> declaration in the template, e.g.
> @Whatever attr="xxx"
> and then also have a declared component of the same name in the .page
> file, which sets some other attributes
> <component id="Whatever" type="xxxxxxx">
> .. now set some bindings here.
>
> Looking at the user's guide:
>
http://jakarta.apache.org/tapestry/doc/TapestryUsersGuide/template.components.html
this is not clear. I presume it is not legal, but in either case, this
should be documented in the user's guide.
Regards,
Colin
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org