This content has been marked as final.
Show 6 replies
-
1. Re: how to get the selected row of extendeddatatable
ilya_shaikovsky Jan 27, 2009 8:21 AM (in response to koddy)how did you store the selection?
-
2. Re: how to get the selected row of extendeddatatable
koddy Jan 27, 2009 8:38 AM (in response to koddy)i store the selection only temporary in my bean
public class BackingBean implements Serializable{ private static final long serialVersionUID = 1L; private Object state; private SimpleSelection selection; ...
at every rowclick i check the keys attribute of the simpleselection object.Iterator<Object> iter = selection.getKeys(); while(iter.hasNext()) { System.out.println(iter.next()); }
but the attribute contains only the previous selection even if i use selectionmode "multi".
i need the current selection because i want to restore the table in another view. -
3. Re: how to get the selected row of extendeddatatable
ilya_shaikovsky Jan 27, 2009 8:55 AM (in response to koddy)use onselectionchange event instead of onclick.
-
4. Re: how to get the selected row of extendeddatatable
koddy Jan 27, 2009 9:39 AM (in response to koddy)thank you. onselectionchange works.
unfortunatly the onselectionchange event does not occur at the first selection. -
5. Re: how to get the selected row of extendeddatatable
ilya_shaikovsky Jan 27, 2009 10:45 AM (in response to koddy)unfortunatly the onselectionchange event does not occur at the first selection.
describe more carefully please. After table rendered and some row selected event not fired? I can't confirm this after checking the demo -
6. Re: how to get the selected row of extendeddatatable
koddy Jan 27, 2009 12:17 PM (in response to koddy)oh, yes you are right.
the onrowclick event has covered the onselectionchange event.
without onrowclick it works ;-).
thanks