You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by bigcache1 <sh...@gmail.com> on 2011/10/20 18:21:04 UTC
Nested components parameters
I have two components for one entity:
1) ShowEntity
2) EditEntity
ShowEntity gets entity as a parameter, and EditEntity gets entity also
through the parameter, but it says that it null.
EditEntity nested in ShowEntity. Is that possible to pass entity as a
parameter to ShowEntity?
--
View this message in context: http://tapestry.1045711.n5.nabble.com/Nested-components-parameters-tp4922047p4922047.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Nested components parameters
Posted by bigcache1 <sh...@gmail.com>.
template part for ShowEvent (ShowEntity):
<t:if test="event">
<t:showevent event="event"/>
</t:if>
here ShowEvent gets not null entity, because it renders itself properly.
But then it passes it to AddEvent as null.
<t:addevent event="event" updatemode="updateMode"/>
http://img267.imageshack.us/img267/6773/pngay.png
I think problem could be, when it is passed to showEntity first time,
because motherPage uses special method to provide correct entity instance,
but it doesn't stored nowhere.
--
View this message in context: http://tapestry.1045711.n5.nabble.com/Nested-components-parameters-tp4922047p4922731.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Nested components parameters
Posted by Jonathan Barker <jo...@gmail.com>.
How about your enclosing page tml and java?
When including zones, I've accidentally missed setup code that executed for
full renders, but not for AJAX updates, leading to NPE's.
On Thu, Oct 20, 2011 at 12:59 PM, bigcache1 <sh...@gmail.com> wrote:
> ShowEntity
> template: http://pastebay.com/141966
> code: http://pastebay.com/141965
>
> EditEntity
> template: http://pastebay.com/141967
> code: http://pastebay.com/141968
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Nested-components-parameters-tp4922047p4922193.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
Jonathan Barker
ITStrategic
Re: Nested components parameters
Posted by bigcache1 <sh...@gmail.com>.
ShowEntity
template: http://pastebay.com/141966
code: http://pastebay.com/141965
EditEntity
template: http://pastebay.com/141967
code: http://pastebay.com/141968
--
View this message in context: http://tapestry.1045711.n5.nabble.com/Nested-components-parameters-tp4922047p4922193.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org