Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

RE: new to shale tiles: msg#00170

apache.shale.user

Subject: RE: new to shale tiles

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>
Google Custom Search

Recently Viewed:
user-groups.jax...    php.zend.framew...    os.solaris.open...    web.quixote.use...    java.openjdk.ho...    ietf.secmech/20...    gnu.glpk/2004-0...    recreation.cars...    network.smokepi...    linux.drivers.i...    cms.opencms.dev...    fonts.gfontview...    text.xml.soap.u...    voip.nist-sip/2...    debian.ports.hp...    xfree86.interna...    science.biology...    qnx.openqnx.dev...    mail.sylpheed.c...    busybox/bios/20...    emulators.kvm.s...    hardware.openco...    apple.fink.begi...    kde.german/2006...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive 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

Navigation