Hi Ryan,

>I am using shale/clay html full view.  I have an initial page, index.html, 
>which contains a commandLink to another page, page2.html.
>
>index.html
>
>[snippet]
>
>index is configured as in faces-config.xml and implements ViewController. 
>
>When I click on page2Link I see that the following is happening...
>
>Oct 11, 2005 1:42:47 PM org.apache.shale.clay.faces.ClayViewHandler 
>restoreView
>INFO: Clay template restoreView for /index.jsp
>init called
>prerender called
>Oct 11, 2005 1:42:47 PM org.apache.shale.clay.faces.ClayViewHandler 
>renderView
>INFO: Clay template renderView for /index.jsp
>destroy called
>
>My action handler is not being called so the navigation is not occuring 
>and the preprocess cycle is not being invoked.
>
>Any ideas?

If you are using myfaces runtime, you need to add a preprocess filter command.  
The usecase has an example 
(http://svn.apache.org/viewcvs.cgi/struts/shale/trunk/use-cases/src/web/WEB-INF/chain-config.xml?view=markup).
  This command captures the file suffix before myfaces changes the viewid 
suffix.  If you are using only Clay full html views in your project, you might 
try changing the default "javax.faces.DEFAULT_SUFFIX" to "*.html".  

Another thing you might try is turning on debug for a couple myfaces classes in 
the java logging.properties file.
org.apache.myfaces.application.NavigationHandlerImpl.level=ALL
org.apache.myfaces.application.ActionListenerImpl.level=ALL


Gary

 



--- Begin Message ---
I am using shale/clay html full view.  I have an initial page, index.html, 
which contains a commandLink to another page, page2.html.

index.html

<html>
<body>
<form jsfid="form">
        <a jsfid="page2Link">Page 2</a>
</form>
</body>
</html> 

clay-config.xml
...
<component jsfid="page2Link" extends="commandLink" allowBody="false">
        <attributes>
                <set name="value" value="Goto Page 2" />
                <set name="action" value="#{index.page2}" />
                <set name="immediate" value="true" /> 
        </attributes>
</component>
...

index is configured as in faces-config.xml and implements ViewController. 

When I click on page2Link I see that the following is happening...

Oct 11, 2005 1:42:47 PM org.apache.shale.clay.faces.ClayViewHandler 
restoreView
INFO: Clay template restoreView for /index.jsp
init called
prerender called
Oct 11, 2005 1:42:47 PM org.apache.shale.clay.faces.ClayViewHandler 
renderView
INFO: Clay template renderView for /index.jsp
destroy called

My action handler is not being called so the navigation is not occuring 
and the preprocess cycle is not being invoked.

Any ideas?




--- End Message ---
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to