Hi,

Though this primarily is a jsf question, I place it here since it might
involve the Clay viewhandler.

I wish to implement a viewhandler that can understand the following
navigation rule, and followed the steps as described in [1]

<navigation-rule>

      <from-view-id>*</from-view-id>      
        <navigation-case>
                <from-outcome>go_contactus</from-outcome>
        
<to-view-id>/#{sessionVars.locale}/contactus.jsf</to-view-id>
                <redirect/>
        </navigation-case>
</navigation-rule>

I extended the org.apache.shale.clay.faces.ClayViewHandler and just added
the getActionURL(FacesContext context, String viewId). Unfortunately it is
not working. The page just reloads itself and that's all.

Is there already a system in place that does this as it seems to me a
usefull feature. If not, what am I doing wrong, and should I be extending
the ClayViewHandler or the MyFaces ViewHandler?

Thank you,
Joost Schouten
Dasstraat 21
2623CB Delft
the Netherlands

[1]
http://typo.ars-subtilior.com/articles/2007/01/24/how-to-make-jsf-navigation
-rules-more-dynamic


Reply via email to