Hi Niklas,
I guess the problem is that the parameters that you are using are likely defined to be of type 'in'. That makes life easier, but unfortunately the 'in' parameters get initialized only at the beginning of the render phase, and therefore one cannot use them in a listener invoked from an Action or a Direct (something that the Table uses often) that occurs before the render phase. Here is the activity sequence in the page:
validation
[rewind -- Action only]
listeners
render
Could you try to make the parameters 'custom' and see what happens?
You would need to write a bit more code for that, but if you do not want to define binding properties for the parameters, something like the following might work as well:
public Object get<parameter name>() {
return getBinding("<parameter name>").getObject();
}
Please let me know if this does not help.
Best regards,
-mb
Niklas Ekman <[EMAIL PROTECTED]> wrote:
HelloI'm struggling with the table component, allthough it's a very nice component, trying to make it work in our system is a bit hard :(The trouble I'm having now is that the TableView is placed i a component called ViewSearchResult. The ViewSearchResult has two parameters, the search result fields (columns) and the query that produces the search result itself. Now, when the search result page (where the ViewSearchResult is placed) is shown, no search result is displayed. I've tried to trace the problem and I think I've found it. The method getTableModel() gets called before I set the two parameters for the ViewSearchResult. And the getTableModel() creates the table model based on what search fields and the search result, so the table renders nothing. Can I somehow change the order here? Can I ensure that the parameters get set before I the getTableModel() is called? I use a NullSession state component, so the table is recreated every time the page is displayed.thanks,Niklasniklas.ekman
citat solutions | phone +46 (0)31 710 72 12
kronhusgatan 9, SE-411 05 g�teborg, sweden,
[EMAIL PROTECTED]
Do you Yahoo!?
U2 on LAUNCH - Exclusive medley & videos from Greatest Hits CD
