You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by szmatuafy <To...@Luczynski.org> on 2009/12/04 16:08:53 UTC

Rendering block with Form from other component on event

Hello, 

I have following scenario:

1. MenuComponent has eventlink which executes underlying method in
MenuComopnent java class

2. event handler in MenuComponent java class uses a public getter on
ConfigurationComponent to get it's configurationBlock, the
ConfigurationComponent's configurationBlock has a tapestry form defined in
it's .tml file (The ConfigurationComponent is also rendered on this page but
somewhere else, and it's other block - not configurationBlock)

3. event handler in MenuComponent returns multi zone update updating
MenuComponent's zone with ConfigurationComponent's block

4. while the block is being rendered I am getting null pointer exception
from Form class saying renderSupport is null.


So, I have two questions:

1. Is rendering a block from ConfiguratonComponent in MenuComponent's zone a
valid thing I can do?

2. If yes, why this error happens? It doesn't seem to happen always, say
it's 50% of cases when I click the event link and get the error message.
Other 50% it works fine and renders the Form without any problem.

Thanks,
Tom. 
-- 
View this message in context: http://old.nabble.com/Rendering-block-with-Form-from-other-component-on-event-tp26635915p26635915.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