You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Jason Hoo (JIRA)" <my...@incubator.apache.org> on 2005/07/09 19:02:10 UTC

[jira] Created: (MYFACES-318) Tiles couldn't support nesting directly.

Tiles couldn't support nesting directly.
----------------------------------------

         Key: MYFACES-318
         URL: http://issues.apache.org/jira/browse/MYFACES-318
     Project: MyFaces
        Type: Improvement
    Versions: 1.0.9 beta    
    Reporter: Jason Hoo


If I use nesting directly like this:
   <definition name="template.tiles" path="template.jsp"/>
   <definition name="template_x.tiles" extends="template.tiles">
      <put name="body" value="template_x.jsp">
   </definition>
   <definition name="task_a.tiles" extends="template_x.tiles">
      <put name="content" value="task_a.jsp">
   </definition>
it will display blank in 1.0.9Beta M9, it will error with "can find attribute 'content'" in lastest code in SVN.

But write in this way, application display with no error:
   <definition name="template.tiles" path="template.jsp"/>
   <definition name="template_x.tiles" path="template_x.jsp"/>
   <definition name="task_a.content" extends="template_x.tiles">
      <put name="content" value="task_a.jsp">
   </definition>
   <definition name="task_a.tiles" extends="template.tiles">
      <put name="body" value="template_x.jsp">
   </definition>

The projects is very large, and nesting 2-4 level,so the maintenance of tiles.xml is very difficult. We can improve it?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (MYFACES-318) Tiles couldn't support nesting directly.

Posted by "Jason Hoo (JIRA)" <my...@incubator.apache.org>.
    [ http://issues.apache.org/jira/browse/MYFACES-318?page=comments#action_12315436 ] 

Jason Hoo commented on MYFACES-318:
-----------------------------------

I use tiles in Myfaces, I couldn't estimate it's problem of tiles or Myfaces's tiles.

> Tiles couldn't support nesting directly.
> ----------------------------------------
>
>          Key: MYFACES-318
>          URL: http://issues.apache.org/jira/browse/MYFACES-318
>      Project: MyFaces
>         Type: Improvement
>     Versions: 1.0.9 beta
>     Reporter: Jason Hoo

>
> If I use nesting directly like this:
>    <definition name="template.tiles" path="template.jsp"/>
>    <definition name="template_x.tiles" extends="template.tiles">
>       <put name="body" value="template_x.jsp">
>    </definition>
>    <definition name="task_a.tiles" extends="template_x.tiles">
>       <put name="content" value="task_a.jsp">
>    </definition>
> it will display blank in 1.0.9Beta M9, it will error with "can find attribute 'content'" in lastest code in SVN.
> But write in this way, application display with no error:
>    <definition name="template.tiles" path="template.jsp"/>
>    <definition name="template_x.tiles" path="template_x.jsp"/>
>    <definition name="task_a.content" extends="template_x.tiles">
>       <put name="content" value="task_a.jsp">
>    </definition>
>    <definition name="task_a.tiles" extends="template.tiles">
>       <put name="body" value="template_x.jsp">
>    </definition>
> The projects is very large, and nesting 2-4 level,so the maintenance of tiles.xml is very difficult. We can improve it?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (MYFACES-318) Tiles couldn't support nesting directly.

Posted by "Martin Marinschek (JIRA)" <my...@incubator.apache.org>.
    [ http://issues.apache.org/jira/browse/MYFACES-318?page=comments#action_12315402 ] 

Martin Marinschek commented on MYFACES-318:
-------------------------------------------

Have you confirmed this as a problem with MyFaces and not with the Tiles implementation?

regards,

Martin

> Tiles couldn't support nesting directly.
> ----------------------------------------
>
>          Key: MYFACES-318
>          URL: http://issues.apache.org/jira/browse/MYFACES-318
>      Project: MyFaces
>         Type: Improvement
>     Versions: 1.0.9 beta
>     Reporter: Jason Hoo

>
> If I use nesting directly like this:
>    <definition name="template.tiles" path="template.jsp"/>
>    <definition name="template_x.tiles" extends="template.tiles">
>       <put name="body" value="template_x.jsp">
>    </definition>
>    <definition name="task_a.tiles" extends="template_x.tiles">
>       <put name="content" value="task_a.jsp">
>    </definition>
> it will display blank in 1.0.9Beta M9, it will error with "can find attribute 'content'" in lastest code in SVN.
> But write in this way, application display with no error:
>    <definition name="template.tiles" path="template.jsp"/>
>    <definition name="template_x.tiles" path="template_x.jsp"/>
>    <definition name="task_a.content" extends="template_x.tiles">
>       <put name="content" value="task_a.jsp">
>    </definition>
>    <definition name="task_a.tiles" extends="template.tiles">
>       <put name="body" value="template_x.jsp">
>    </definition>
> The projects is very large, and nesting 2-4 level,so the maintenance of tiles.xml is very difficult. We can improve it?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira