Sorry,
I did see just this: "I saw in the examples that the formtable must be
populated in the onInit method."
So, I think it was to init the page.

Gilberto

2008/12/19 Gilberto C. Andrade <[email protected]>:
> I use this method:
> [code]
>   /**
>      * @see net.sf.click.Page#onRender()
>      */
>     public void onRender() {
>         log.debug("Preparando a página para ser exibida.");
>         List uMs = (List) getIService().findLike("descricao_unidade",
> "%"+descricaoUnidadeField.getValue()+"%");
>         table.setRowList(uMs);
>     }
> [/code]
>
> 2008/12/19 Marcelo Grassi Franco Melgaço <[email protected]>
>>
>> Hi, i resolved the problem.
>> Now i have another.
>> The Formtable.getRowList() is empty in my submit method.
>> The formtable is populated when the user click on a button.
>> I saw in the examples that the formtable must be populated in the onInit
>> method.
>> How can i can populate the formtable when the user click on a button?
>>
>> Thanks
>>
>>
>> 2008/12/19 Marcelo Grassi Franco Melgaço <[email protected]>
>>>
>>> Hello,
>>> i have a page with a FormTable.
>>> The problem is that the submit button doesn't call the method in my page.
>>> Here is the declaration of the submit on the constructor of the page:
>>>
>>> this.tableEvolucao.getForm().add(new Submit("gravar", "Gravar", this,
>>> "onGravarClick"));
>>>
>>> when i click on the button the page reloads, but the method onGravarClick
>>> is not called.
>>> Anyone know what can be the problem?
>>> I'm using click-1.5
>>>
>>> Thanks
>>
>>
>>
>> --
>> Marcelo Grassi
>> www.rumotecnologia.com.br
>> (31) 9307-1268
>
>

Reply via email to