|
|
Choosing A Webhost: |
RE: new to shale tiles: msg#00170apache.shale.user
I forgot to include what you also need in faces-config as follows: <!-- Tiles Integration --> <application> <view-handler> org.apache.shale.tiles.TilesViewHandler </view-handler> </application> ---- Dick -----Original Message----- From: Dick Starr Sent: Wed 10/18/2006 2:52 PM To: user@xxxxxxxxxxxxxxxx Cc: Subject: RE: new to shale tiles -----Original Message----- From: Jonathan Smith [mailto:smithtown33@xxxxxxxxxxx] Sent: Wed 10/18/2006 7:42 AM To: user@xxxxxxxxxxxxxxxx Cc: Subject: new to shale tiles is there a good example of how to implement tiles in shale and all the steps neccessary to do so? _________________________________________________________________ Stay in touch with old friends and meet new ones with Windows Live Spaces http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us Jonathan: Not that I was able to find. Further, most web information refers to Struts Tiles, which will lead you astray. However, I and other posters are using stand-alone Tiles successfully. I'll assume you have some experience with Struts Tiles. Here is what I did to get stand-alone Tiles working with Shale: (1) Get on the latest Shale release (very important). I am using the 10/4/06 release. You will need the shale-tiles and the tiles-core jars from the Shale release. (2) In your web.xml create the following: <!-- Tiles --> <context-param> <param-name>definitions-config</param-name> <param-value>/WEB-INF/conf/tiles.xml</param-value> </context-param> <listener> <listener-class> org.apache.tiles.listener.TilesListener </listener-class> </listener> (3) Setup your tiles definitions. Here are some samples from my tiles.xml: <!-- Site master definition --> <definition name="/siteMainLayout" path="/tiles/layouts/starraLayout.jsp"> <put name="title" value="/tiles/common/title.jsp"/> <put name="header" value="/tiles/common/header.jsp"/> <put name="menuBar" value="/tiles/common/menuBar.jsp"/> <put name="body" value=""/> <put name="footer" value="/tiles/common/footer.jsp"/> </definition> <!-- System --> <definition name="/systemLogoff" extends="/siteMainLayout"> <put name="body" type="template" value="/jsp/system/logoff.jsp"/> </definition> <definition name="/systemLogon" extends="/siteMainLayout"> <put name="body" type="template" value="/jsp/system/logon.jsp"/> </definition> This is my title.jsp, used in /siteMainLayout <%-- title.jsp 2006-09-12 RJS. New. --%> <%@ include file="/jspf/common/taglibs.jspf" %> <%@ include file="/jspf/common/messages.jspf" %> <h:panelGroup> <h:outputText value="#{msg['app.title']}"/> </h:panelGroup> (4) Have your navigation rules point to your tiles, like so: <navigation-rule> <from-view-id>/systemLogoff.jsp</from-view-id> <navigation-case> <from-outcome>cancel</from-outcome> <to-view-id>/menuHome</to-view-id> </navigation-case> <navigation-case> <from-outcome>success</from-outcome> <to-view-id>/systemLogon</to-view-id> </navigation-case> </navigation-rule> <navigation-rule> <from-view-id>/systemLogon.jsp</from-view-id> <navigation-case> <from-outcome>success</from-outcome> <to-view-id>/menuHome</to-view-id> </navigation-case> </navigation-rule> (5) Make your index.jsp forward to a tile like so: <jsp:forward page="systemLogon.faces"/> (6) The tiles definitions body templates refer to jsp's that only contain Shale components. ---- Dick
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: Clay - tomahawks commandSortHeader, Torsten Krah |
|---|---|
| Next by Date: | RE: Clay - how to set locale Parameter for f:view in html/xml views?, Gary VanMatre |
| Previous by Thread: | RE: new to shale tiles, Dick Starr |
| Next by Thread: | Re: new to shale tiles, Gregg Leichtman |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |