dcsimg
JSF 1.2 with tiles
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Harpreet_Singh
Posted On:   Sunday, March 2, 2008 11:32 PM

Hi I am using JSF with tiles and am having issues with page navigation with using tiles. Can any body tell me what to write in faces-config.xml so that the required page opens in tile which i have defined for that page in the corresponding tiles-defs.xml. Here is the detail of code i am using tiles-definitions /WEB-INF/tiles-defs.xml javax.faces.CONFIG_FILES /WEB-INF/faces-config.xml javax.faces.STATE_SAVING_METHOD client org.apache.myfaces.ALLOW_JAVASCR   More>>

Hi
I am using JSF with tiles and am having issues with page navigation with using tiles. Can any body tell me what to write in faces-config.xml so that the required page opens in tile which i have defined for that page in the corresponding tiles-defs.xml.




Here is the detail of code i am using









tiles-definitions

/WEB-INF/tiles-defs.xml








javax.faces.CONFIG_FILES



/WEB-INF/faces-config.xml














javax.faces.STATE_SAVING_METHOD

client









org.apache.myfaces.ALLOW_JAVASCRIPT

true











org.apache.myfaces.PRETTY_HTML

true











org.apache.myfaces.DETECT_JAVASCRIPT

false








org.apache.myfaces.AUTO_SCROLL

true











org.apache.myfaces.webapp.StartupServletContextListener









Faces Servlet

javax.faces.webapp.FacesServlet

1








Faces Servlet

*.faces









index.jsp
















org.apache.myfaces.application.jsp.JspTilesViewHandlerImpl








*








register

/tiles/register.page




















path="/tiles/main-layout.jsp">





value="/tiles/search-menu.jsp"/>










extends=".mainLayout">











from page where we call register rule






it opens register.jsp as new page instead of opening it into tile.



Please helpmeout in knowing where I am wrong and let me know how to open next page in tile because welcome page is opening very well in tile but when I click for next page whose definition is defined in tiles-def.xml it doesnot open in tile



Thanks

   <<Less
About | Sitemap | Contact