You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by ronizedsynch <sa...@yahoo.com> on 2011/06/23 07:14:40 UTC

menu.xml on tapestry 5

Its possible to read menu.xml within layout.tml.
I have layout.tml like this :

   &lt;html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"
      xmlns:p="tapestry:parameter"&gt;
    &lt;head&gt;
        &lt;meta http-equiv="content-type" content="text/html;
charset=utf-8"/&gt;
        &lt;title&gt;${title}&lt;/title&gt;
    &lt;/head&gt;
    &lt;body&gt;
    	&lt;div id="header"&gt;
    		&lt;center&gt;&lt;h3&gt;Learn Tapestry 5&lt;/h3&gt;&lt;/center&gt;
    	&lt;/div&gt;
    	&lt;div id="page"&gt;
    		
    					&lt;div id="left" class="sidebar"&gt;
    							&lt;ul&gt;&lt;t:pagelink page="master/student"&gt;Master
Student&lt;/t:pagelink&gt;&lt;/ul&gt;
    							&lt;ul&gt;&lt;t:pagelink page="master/user"&gt;Master
User&lt;/t:pagelink&gt;&lt;/ul&gt;
    							
    					&lt;/div&gt;
    					&lt;div
id="content"&gt;&lt;fieldset&gt;&lt;t:body/&gt;&lt;/fieldset&gt;&lt;/div&gt;
    					
    		
    	&lt;/div&gt;
    &lt;/body&gt;
&lt;/html&gt;

I want to replace left division ("div id=left") that contains actionlink
components as menu with menu.xml. its possible for that ?

any idea or step to get it :D

thank so much
Regard,
Rony

--
View this message in context: http://tapestry.1045711.n5.nabble.com/menu-xml-on-tapestry-5-tp4516397p4516397.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: menu.xml on tapestry 5

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
I'm sorry, but I have absolutely no idea what you're talking about.

On Thu, 23 Jun 2011 02:14:40 -0300, ronizedsynch <sa...@yahoo.com>  
wrote:

> Its possible to read menu.xml within layout.tml.
> I have layout.tml like this :
>
>    &lt;html xmlns="http://www.w3.org/1999/xhtml"
>       xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"
>       xmlns:p="tapestry:parameter"&gt;
>     &lt;head&gt;
>         &lt;meta http-equiv="content-type" content="text/html;
> charset=utf-8"/&gt;
>         &lt;title&gt;${title}&lt;/title&gt;
>     &lt;/head&gt;
>     &lt;body&gt;
>     	&lt;div id="header"&gt;
>     		&lt;center&gt;&lt;h3&gt;Learn Tapestry 5&lt;/h3&gt;&lt;/center&gt;
>     	&lt;/div&gt;
>     	&lt;div id="page"&gt;
>     		
>     					&lt;div id="left" class="sidebar"&gt;
>     							&lt;ul&gt;&lt;t:pagelink page="master/student"&gt;Master
> Student&lt;/t:pagelink&gt;&lt;/ul&gt;
>     							&lt;ul&gt;&lt;t:pagelink page="master/user"&gt;Master
> User&lt;/t:pagelink&gt;&lt;/ul&gt;
>     							
>     					&lt;/div&gt;
>     					&lt;div
> id="content"&gt;&lt;fieldset&gt;&lt;t:body/&gt;&lt;/fieldset&gt;&lt;/div&gt;
>     					
>     		
>     	&lt;/div&gt;
>     &lt;/body&gt;
> &lt;/html&gt;
>
> I want to replace left division ("div id=left") that contains actionlink
> components as menu with menu.xml. its possible for that ?
>
> any idea or step to get it :D
>
> thank so much
> Regard,
> Rony
>
> --
> View this message in context:  
> http://tapestry.1045711.n5.nabble.com/menu-xml-on-tapestry-5-tp4516397p4516397.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>


-- 
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
Consultor, desenvolvedor e instrutor em Java, Tapestry e Hibernate
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: menu.xml on tapestry 5

Posted by ronizedsynch <sa...@yahoo.com>.
Thank Bob n Thiago
but I am not really to parse xml file in java, its my hard work. I will
research it on my uncle [google] :D

Regard,
Rony

--
View this message in context: http://tapestry.1045711.n5.nabble.com/menu-xml-on-tapestry-5-tp4516397p4517281.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org