on 12-03-2004 8:57 PM
Hi Everyone,
I have a Node with a lot of records inside, somebody knows if there is an easy way to transform that result into a Java List ?
Right now, I'm reading the entire node result, and adding each element. But, It doesn't sound to be a good practice..
Somebody have a clue about this ?
Thanks guys, regards from MX 😃
Diego
Hi Diego,
in case the iterator as Armin stated isn't sufficient (in most cases it should) there's another possibility.
Imaginge you have a model node. There you're able to directly bind a collection of type ICMIObservableList containing model objects. To use this you have to write an own implementation of it, we're doing this by wrapping an ArrayList. The ICMIObservableList is directly bound without iterating the content. So you can hold this list in your controller and always have direct access to the context content over this Collection too. For more information please see the JavaDoc for ICMIObservableList.
Best regards,
Christian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Why do you need a list of node elements? Would an iterator also be sufficient?
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.