-
1. Re: Dynamic Link and Buttons doesnt work inside richTable
sergeysmirnov May 4, 2007 5:15 PM (in response to mkaliyur)id should be set explicitly. It is important inside the iteration components (dataTable, repear, tree, dataGrid and so on)
-
2. Re: Dynamic Link and Buttons doesnt work inside richTable
alexsmirnov May 4, 2007 5:19 PM (in response to mkaliyur)You MUST set any id value for a components. JSF UIComponentBase have code for a calculate clientId :
// now resolve our own client id this.clientId = this.id; if (this.clientId == null) { this.clientId = context.getViewRoot().createUniqueId(); }
UIDataTable reset cached clientId at every iteration. as a result, component have different values on different phases, and look in request parameters for a wrong name. -
3. Re: Dynamic Link and Buttons doesnt work inside richTable
mkaliyur May 4, 2007 5:27 PM (in response to mkaliyur)Thanks for the reply!
I'll try this and post the result! You guys rock.
M -
4. Re: Dynamic Link and Buttons doesnt work inside richTable
mkaliyur May 4, 2007 6:32 PM (in response to mkaliyur)Yes. That was the problem! After assigning IDs links and buttons work perfectly inside richtable.
I had one issue though - We can't assign a value expression to ID - I was planning to dynamically generate the ID for each row - but jsf didnt allow me to assign value expression to id attribute. I had to use setId method and assign a string. Then, I tried to use getValue method of value expression to get the value and set in setId method, but that returned null. Finally generated a generic incremental ID and it worked!
Thanks for the help.
Manju -
5. Re: Dynamic Link and Buttons doesnt work inside richTable
sukhendu83 Jul 4, 2011 8:36 AM (in response to mkaliyur)Hi Manjunath,
I have same problem, since I am new in richfaces I didn't get your point. If you can post the bean and rich datatable source code then it will be great.
I have tried it in different ways, but didn't get any result. When I click on that link my datatable getting blank.
Thanks
Sukhendu