Thank you Craig, at first I followed the configuration steps listed in the struts-shale web site and it didn't work, so I tried to manually configure the Shale view handler.
Can you also add Facelets on your playlist? :-) I'm using also Facelets, that need its own FaceletViewHandler, but not register it in its META-INF/faces-config.xml. I modified a little the Facelets jar to make it behave like all the others, registering its ViewHandler. This way I can now play with the viewhandlers delegation stack changing the jars order in my project. JSF specification doesn't mandate any order in loading the META-INF/faces-config, but this seems to work at least with OC4J container and I hope that other containers will follow the jars order too (probably it's up to MyFaces implementation). Then, I've tried these stacks without success: (request) -> Trinidad -> Shale -> Facelets (works, but no ViewController callbacks) (request) -> Shale -> Trinidad -> Facelets (works, but no ViewController callbacks) (request) -> Trinidad -> Facelets -> Shale (works, but no ViewController callbacks) I've keep out permutations with Facelets wrapping Trinidad, because docs explicitly say that it is no good. My conclusion: the problem isn't related to view hander delegation stack. I'll try something else, stay tuned ;-) Cosma 2006/6/21, Craig McClanahan <[EMAIL PROTECTED]>:
On 6/21/06, Cosma Colanicchia <[EMAIL PROTECTED]> wrote: > Hi, > > do you know if Shale can be easily plugged in a MyFaces/Trinidad > project? I'm interested in the ViewController pattern, but I can't > make it work. In principle, this kind of mixing should work, although I haven't tried it myself. > I setup the project as described in the Shale website, and also tried > to manually set ViewViewHandler as the viewhandler in > faces-config.xml. You should not have to do this yourself ... Shale (like Trinidad) includes an embedded faces-config.xml that should register its own facilities. > Stepping through the code I can see that it > correctly find my managed-bean (using the ViewControllerMapper), but > my init method is never called. I don't know which class is supposed > to invoke those callback... How recent is the copy of Shale you are using? This is important because the mechanism that fires these events was recently (last couple of weeks) updated. > Can this be related to Trinidad? Someone is using these two frameworks along? I will put trying this combination on my list of things to play with. > Thank you > Cosma > Craig

