2 Replies Latest reply: Aug 23, 2013 4:35 PM by sebastiancali RSS

    Get RichTable's Iterator name/id


      I can get required RichTable's reference in Backing bean using getTable() function.

      Now I want the iterator name (i.e. something like "tableVOIterator" (String) ) for that table.

      How can I achieve this?



        • 1. Re: Get RichTable's Iterator name/id

          You can try with:

          CollectionModel model = (CollectionModel) getTable().getValue().;

          JUCtrlHierBinding binding = (JUCtrlHierBinding)model.getWrappedData();

          String iteratorName = binding.getDCIteratorBinding().getName();



          • 2. Re: Get RichTable's Iterator name/id

            do not quite understand your problem but I have done so

            declare your set or get the method of the table in the bean

            and in the table you put       SelectionListener = "# {viewScope.bean.metodo}"


            on bean you can place the method that receives the event when selecting a row


                 public void metodo (SelectionEvent selectionEvent) {

                     if (this.getCampotabla (). getEstimatedRowCount ()> 0) {

            add ... code