You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Pat Quinn <pa...@hotmail.com> on 2003/05/04 00:07:32 UTC
[Tiles Beginner] - Tab Layout
I'm currently trying to use tiles tablayout. My tabs appear ok the first
time i try to access my tile definition i.e. displaying my default selected
tab as set in my tiles-definitions.xml. When i click the href to navigate to
another tab i get the following error:
Error - tag useAttribute : no tiles context found.
I've copied over the following files from the tiles-documentation example
webapp to ensure i'm using the correct versions:
struts.jar
and all the tld files.
tabsLayout.jsp
My Configuration is exactly the same as the example supplied with the
tiles-documentation web app but just to ensure i'm not missing something
here are the details:
-----------------
struts-config.xml
-----------------
<!-- Dummy Action to foward to my tabs definition-->
<action path="/showtabs"
type="org.apache.struts.tiles.actions.NoOpAction">
<forward name="success" path="my.tabs"/>
</action>
<!-- Tiles Plugin Details -->
<plug-in className="org.apache.struts.tiles.TilesPlugin" >
<set-property property="definitions-config"
value="/WEB-INF/tiles-definitions.xml" />
</plug-in>
---------------------
tiles-definitions.xml
---------------------
<definition name="my.tabs" path="/layouts/tabsLayout.jsp" >
<put name="selectedIndex" value="0" />
<put name="parameterName" value="selected" />
<putList name="tabList" >
<item value="tab 1" link="/common/tab1.jsp"/>
<item value="tab 2" link="/common/tab2.jsp"/>
<item value="tab 3" link="/common/tab3.jsp" />
</putList>
</definition>
Any idea guys?
_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
RE: [Tiles Beginner] - Tab Layout
Posted by Hue Holleran <hu...@openAction.net>.
Hi Pat,
Unless this is a known issue - could you post a bit more info:
1) What does the generated HTML of the <A ...> tag that you're clicking look
like - could you "View Source" and extract the HTML for the link that you're
clicking.
2) In what page does the "Error - tag useAttribute : no tiles context
found." occur - is it in one of your JSPs or is it in one of the supplied
tiles layouts?
3) Is there any more detail in the error message over-and-above what you've
posted?
H.
> -----Original Message-----
> From: Pat Quinn [mailto:pat_quinn2009@hotmail.com]
> Sent: 03 May 2003 23:08
> To: struts-user@jakarta.apache.org
> Subject: [Tiles Beginner] - Tab Layout
>
>
> I'm currently trying to use tiles tablayout. My tabs appear ok the first
> time i try to access my tile definition i.e. displaying my
> default selected
> tab as set in my tiles-definitions.xml. When i click the href to
> navigate to
> another tab i get the following error:
>
>
> Error - tag useAttribute : no tiles context found.
>
>
> I've copied over the following files from the tiles-documentation example
> webapp to ensure i'm using the correct versions:
>
> struts.jar
> and all the tld files.
> tabsLayout.jsp
>
> My Configuration is exactly the same as the example supplied with the
> tiles-documentation web app but just to ensure i'm not missing something
> here are the details:
>
>
> -----------------
> struts-config.xml
> -----------------
>
> <!-- Dummy Action to foward to my tabs definition-->
> <action path="/showtabs"
> type="org.apache.struts.tiles.actions.NoOpAction">
> <forward name="success" path="my.tabs"/>
> </action>
>
>
> <!-- Tiles Plugin Details -->
> <plug-in className="org.apache.struts.tiles.TilesPlugin" >
> <set-property property="definitions-config"
> value="/WEB-INF/tiles-definitions.xml" />
> </plug-in>
>
>
>
>
> ---------------------
> tiles-definitions.xml
> ---------------------
> <definition name="my.tabs" path="/layouts/tabsLayout.jsp" >
> <put name="selectedIndex" value="0" />
> <put name="parameterName" value="selected" />
> <putList name="tabList" >
> <item value="tab 1" link="/common/tab1.jsp"/>
> <item value="tab 2" link="/common/tab2.jsp"/>
> <item value="tab 3" link="/common/tab3.jsp" />
>
> </putList>
> </definition>
>
>
>
> Any idea guys?
>
>
>
>
>
>
> _________________________________________________________________
> Add photos to your messages with MSN 8. Get 2 months FREE*.
> http://join.msn.com/?page=features/featuredemail
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.474 / Virus Database: 272 - Release Date: 18/04/2003
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.474 / Virus Database: 272 - Release Date: 18/04/2003
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org