It provides the missing C in MVC of JSF for GET requests. :-) A hook in the JSP where you can declare which managed bean should be initialized for rendering. Typically high in your JSP, <s:subview id="name-of-your-bean"> would call NameOfYourBean.prerender() event. Each page is in control of what beans it needs w/o maintaining any additional mapping file or worry about URLs or having to recompile java on changes. It provides you also with the flexibility to do conditional initialization with verbatims etc. I'll check your link, thanks. It looks like the hook is the other direction with orchestra where the bean maps to JSPs.

Kito Mann wrote:
Hello Cyril,

The Orchestra ViewController can definitely handle this. See: http://myfaces.apache.org/orchestra/myfaces-orchestra-core/viewController.html.

I'm not too familiar with the <s:subview> tag -- how does that work?

---
Kito D. Mann -- Author, JavaServer Faces in Action
http://twitter.com/kito99  http://twitter.com/jsfcentral
http://www.virtua.com - JSF/Java EE consulting, training, and mentoring
http://www.JSFCentral.com - JavaServer Faces FAQ, news, and info
+1 203-404-4848 x3


On Tue, Apr 28, 2009 at 5:39 PM, Cyril Bouteille <cy...@travelmuse.com <mailto:cy...@travelmuse.com>> wrote:

    Hi Kito, by VC feature I meant essentially the prerender event for
    processing GET requests. I couldn't see such hook from Orchestra's
    overview. Does it have such a feature?
    Writing custom PhaseListeners kicking in logic based on URLs gets
    a bit old... :) Shale's declarative <s:subview id> is great and
    much cleaner. Anything else like that out there?


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to