Why not adding this to our wiki page, so other can find it fast.

thx,
M

On 9/21/07, Carsten Pieper <[EMAIL PROTECTED]> wrote:
>
> > Wouldn't a method in your API like getAllRowKeys() be advisable?
> +1 from us, such a method would really be helpful!
>
>
> Maik77 wrote:
> >
> > Hi Matthias,
> >
> > so it is the way, that I have to implement a loop where I have to use
> > setRowIndex() and getRowData() for every row and child (check with
> > isConatiner())?
> > This looks a little circumstantially to me. Wouldn't a method in your API
> > like getAllRowKeys() be advisable?
> > Or have I misunderstood you and there is already a simple way to access
> > all the rows at one fell swoop?
> >
> > Greetings,
> > Maik
> >
> >
> >
> > Matthias Wessendorf-4 wrote:
> >>
> >> Hi Maik,
> >>
> >> the Tree/TreeTable are using the TreeModel ([1]). This clazz is a
> >> specialized JSF DataModel, by using getRowData(num) and getRowCount()
> >> (see [2]) you can access the children. The Tree has special API, since
> >> the children can be "containers". The JavaDoc of the TreeModel API has
> >> some informations on the usage.
> >>
> >> We also have some documentation in the dev-guide ([3]).
> >>
> >> Greetings,
> >> Matthias
> >>
> >> [1]
> >> http://myfaces.apache.org/trinidad/trinidad-api/apidocs/org/apache/myfaces/trinidad/model/TreeModel.html
> >> [2]
> >> http://java.sun.com/javaee/javaserverfaces/1.2_MR1/docs/api/javax/faces/model/DataModel.html
> >> [3] http://myfaces.apache.org/trinidad/devguide/tree.html
> >>
> >> On 9/19/07, Maik77 <[EMAIL PROTECTED]> wrote:
> >>>
> >>> Hi,
> >>>
> >>> I'm using Trinidad's (1.0.2) TreeTable component and want to iterate
> >>> through
> >>> all Nodes/Rows after performing an action.
> >>> In the UIXTree are methods like getDisclosedRowKeys() or
> >>> getSelectedRowKeys() that returns a RowKeySet.
> >>> Unfortunately there is no method to give me a RowKeySet that from the
> >>> complete tree.
> >>> What is the easiest way to get all the Rows?
> >>>
> >>> Maik
> >>> --
> >>> View this message in context:
> >>> http://www.nabble.com/-Trinidad--Getting-all-rows-from-TreeTable--tf4480633.html#a12776232
> >>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
> >>>
> >>>
> >>
> >>
> >> --
> >> Matthias Wessendorf
> >>
> >> further stuff:
> >> blog: http://matthiaswessendorf.wordpress.com/
> >> mail: matzew-at-apache-dot-org
> >>
> >>
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/-Trinidad--Getting-all-rows-from-TreeTable--tf4480633.html#a12814297
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>


-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
mail: matzew-at-apache-dot-org

Reply via email to