wood burning stoves 2.0*
The moose likes JSF and the fly likes JSF, Facelets & Recursion Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF, Facelets & Recursion" Watch "JSF, Facelets & Recursion" New topic
Author

JSF, Facelets & Recursion

Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 5455
    
  13

Hello all,

I'm working with JSF (MyFaces) and Facelets. I've created a custom facelet (more precise: via a seperate xhtml-file), containing a tomahawk data-table

But one big problem: in this file there is a reference to itselfs, because i have to represent a custom tree structure (with checkboxes to delete and create new nodes/subtrees). so it's seems logical to solve this recursively, but if i do so, i get a stack-overflow-error.

I'm searching and surfing the net for 2-3 days looking for a solution to this problem, but apparently it doesn't exist (while in my opinion this is a very straight forward problem).

and i tried everything i know of:
- using the rendered-attribute as the step-out-endless-loop thing but i've read that the component tree contains all components and that afterwards the rendered ones are really rendered and the others aren't, so that's not a solution
- i also tried with some jstl and the ifhandler, but also learned that there is a big difference in when the expression is evaluated.
- also tried with some dynamic form of the jsfc-attribute, resulting in a "ui : remove" if the component hadn't to be rendered, but also no luck
- ...

So i was wondering: is there a solution for this or some other things i could try, because it's really frustrating me

any tips, hints and/or suggestions are more than welcome
thanks in advance
Roel


SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
http://www.javaroe.be/
Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 5455
    
  13

I made a work-around which is described (together with some basic fundamentals about JSF & facelets) @ link-to-nabble-forum
 
jQuery in Action, 2nd edition
 
subject: JSF, Facelets & Recursion