Hi,
You should put the managed bean in session scope to get the values.
The following code can be used to retrieve the values:
UIComponent comp = FacesContext.getCurrentInstance
().getViewRoot().findComponent("myform");
//"myform" is form name
List l=comp.getChildren();
Iterator itr = l.iterator();
while(itr.hasNext()){
Object obj=itr.next();
if( obj instanceof UIData){
UIData uIData=(UIData)obj;
HtmlDataTable myTable = (HtmlDataTable)uIData;
System.out.println("ROWS in the datatable "+ uIData.getRows());
for(int i=0;i<myTable.getRowCount();i++){
myTable.setRowIndex(i);
System.out.println(myTable.getRowData());
}
This should solve your problem.
On 2/24/08, chichi <[EMAIL PROTECTED]> wrote:
>
>
> Hello everyone,
>
> I am having trouble editing a dynamic datatable. I've tried so many
> solutions but nothing worked for me. Every time I click the edit button,
> it
> just stays on the page even though the navigations are correct. I also
> tried
> the getRowData but that too didnt work.
>
> Thanks for your help.
>
>
> --
> View this message in context:
> http://www.nabble.com/Editing-dynamic-dataTable-tp15665521p15665521.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>