call it from inside a listener method. then set the listener attribute of your submit button/link to call this listener method.

ציטוט Muhariz Jabeer:
hi guys, I have a custom component which iterates over a collection class to dynamically generate fields in a table using ListEditMap and ListEdit. I have a method called "adMore" which is to be triggered by a click to a Submit button in the component. Its purpose is to post to the server, a request to add one more item to the collection class. Which in turn should make the ListEdit component in my custom
component draw an aditional field in the table.

The Problem:
The "addMore" method keeps getting called when the page loads. This ends up adding more fields to my collection class thus inturn draws more fields than i wanted. I checked the server log (i use stdout in the AddMore method) and it gets called when the page loads even before i click the submit button in the component which is
supposed to call the method.


any ideas whats going on?






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to