> My guess is that you only add the FormTable's in the
> EditObjectPage.onPost or EditObjectPage.onRender method which occurs 
> after the onProcess event.

That was the problem. The adding of the tables was in the onRender method. Gee, 
do I feel stupid :)

> If you add the FormTables in your onInit event things should start
> working.

And it did. Well, sort off. The Ognl is trying to set the values to my
valueobject, but it doesn't have the usual getters/setters for those
values. It's a bit more complex than that. But I'll start another topic
about that.

> I'm curious though why you only add the FormTables in the
> onPost/onRender method of the Page?

I am too :) I read somewhere in the docs that database access and
similar operations should be done in the onRender method. I guess I
never questioned that method. 

Lesson learned: always create your form and stuff in the constructor or
the onInit() method, correct?

Cheers, and thanks for the help. Keep up the good work. Loving it :)

WarnerJan




On Wed, 2009-04-22 at 17:25 +0200, Bob Schellink wrote: 
> Hi WarnerJan,
> 
> WarnerJan Veldhuis wrote:
> 
> > [Click] [trace]    invoked: 'closeModelLink' ActionLink.onInit()
> > [Click] [trace]    invoked: 'logoffLink' ActionLink.onProcess() : true
> > [Click] [trace]    invoked: 'closeModelLink' ActionLink.onProcess() :
> > true
> > [Click] [trace]    invoked: Control listeners : true
> > [Click] [trace]    invoked: EditObjectsPage.onPost()
> > [Click] [trace]    invoked: EditObjectsPage.onRender()
> > [Click] [trace]    invoked: 'logoffLink' ActionLink.onRender()
> > [Click] [trace]    invoked: 'closeModelLink' ActionLink.onRender()
> > [Click] [trace]    invoked: 'form0' ObjectFormTable.onRender()
> > [Click] [trace]    invoked: 'form1' ObjectFormTable.onRender()
> > [Click] [trace]    invoked: 'form2' ObjectFormTable.onRender()
> 
> 
>  From the log it seems you only add the FormTables *after* the 
> onProcess event, meaning your listeners won't be called.
> 
> My guess is that you only add the FormTable's in the 
> EditObjectPage.onPost or EditObjectPage.onRender method which occurs 
> after the onProcess event.
> 
> If you add the FormTables in your onInit event things should start 
> working.
> 
> I'm curious though why you only add the FormTables in the 
> onPost/onRender method of the Page?
> 
> kind regards
> 
> bob


Reply via email to