Hi,
It should be more like:
component id=articleComp type=ArticleComp
binding name=articleId value=ognl:articleId/
/component
In your ArticleComp you access the 'articleId' parameter like this:
IBinding iBinding = getBinding(articleId);
String articleId =
thank you Dennis for your answer, it works perfectly fine :-)
Cheers,
Jacob
--
View this message in context:
http://www.nabble.com/How-to-pass-parameters-between-Page-and-component-tf2412533.html#a6737930
Sent from the Tapestry - User mailing list archive at Nabble.com.
Thank you for your answer, I will try this solution too.
Cheers,
Jacob
--
View this message in context:
http://www.nabble.com/How-to-pass-parameters-between-Page-and-component-tf2412533.html#a6737950
Sent from the Tapestry - User mailing list archive at Nabble.com.
Jacob,
Try this...
Index.page:
component id=articleComp type=ArticleComp
binding name=articleId value=currentArticleId/
/component
ArticleComp.jwc:
parameter name=articleId required=yes/
Index.java should contain getCurrentArticleId();
Regards,
Dennis
jake123 wrote:
Hi, I have a