You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Martin Papy (JIRA)" <de...@tapestry.apache.org> on 2008/07/29 01:26:31 UTC
[jira] Created: (TAPESTRY-2542) Add a new method hasBody() to
ComponentRessource
Add a new method hasBody() to ComponentRessource
------------------------------------------------
Key: TAPESTRY-2542
URL: https://issues.apache.org/jira/browse/TAPESTRY-2542
Project: Tapestry
Issue Type: New Feature
Components: tapestry-core
Affects Versions: 5.0.13
Reporter: Martin Papy
Same idea as in Tapestry-2541 but in a much lighter way :
In my case, I use the Layout pattern for rendering my pages, but depending on the situation, sometimes the body of the layout is empty. In that case I would like to display a generic content. So I imagine something like this :
<t:if test="hasBody">
Blah blah blah
<t:parameter name="else">
<t:body />
</t:parameter>
</t:if>
But I don't know how to write the test "hasBody".
HLS said this :
"This is not currently possible, but that's mostly an API issue. The Tapestry component has, internally, its body (as an array of TemplateToken objects) and can determine if the body is empty or not. It's a bit more complicated to determine if a Mixin on the component may affect rendering of the body (by providing BeforeBody or AfterBody render phase methods). I could implement a method on ComponentResources: boolean hasBody(). Without an API change this will be difficult."
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Updated: (TAPESTRY-2542) Add a new method hasBody() to
ComponentRessources
Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-2542?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship updated TAPESTRY-2542:
-------------------------------------------
Summary: Add a new method hasBody() to ComponentRessources (was: Add a new method hasBody() to ComponentRessource)
> Add a new method hasBody() to ComponentRessources
> -------------------------------------------------
>
> Key: TAPESTRY-2542
> URL: https://issues.apache.org/jira/browse/TAPESTRY-2542
> Project: Tapestry
> Issue Type: New Feature
> Components: tapestry-core
> Affects Versions: 5.0.13
> Reporter: Martin Papy
>
> Same idea as in Tapestry-2541 but in a much lighter way :
> In my case, I use the Layout pattern for rendering my pages, but depending on the situation, sometimes the body of the layout is empty. In that case I would like to display a generic content. So I imagine something like this :
> <t:if test="hasBody">
> Blah blah blah
> <t:parameter name="else">
> <t:body />
> </t:parameter>
> </t:if>
> But I don't know how to write the test "hasBody".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Updated: (TAPESTRY-2542) Add new method hasBody() to
ComponentResources, to reveal if component has a body or not
Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-2542?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship updated TAPESTRY-2542:
-------------------------------------------
Summary: Add new method hasBody() to ComponentResources, to reveal if component has a body or not (was: Add a new method hasBody() to ComponentRessources)
> Add new method hasBody() to ComponentResources, to reveal if component has a body or not
> ----------------------------------------------------------------------------------------
>
> Key: TAPESTRY-2542
> URL: https://issues.apache.org/jira/browse/TAPESTRY-2542
> Project: Tapestry
> Issue Type: New Feature
> Components: tapestry-core
> Affects Versions: 5.0.13
> Reporter: Martin Papy
> Assignee: Howard M. Lewis Ship
> Fix For: 5.0.14
>
>
> Same idea as in Tapestry-2541 but in a much lighter way :
> In my case, I use the Layout pattern for rendering my pages, but depending on the situation, sometimes the body of the layout is empty. In that case I would like to display a generic content. So I imagine something like this :
> <t:if test="hasBody">
> Blah blah blah
> <t:parameter name="else">
> <t:body />
> </t:parameter>
> </t:if>
> But I don't know how to write the test "hasBody".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Updated: (TAPESTRY-2542) Add a new method hasBody() to
ComponentRessource
Posted by "Martin Papy (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-2542?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Papy updated TAPESTRY-2542:
----------------------------------
Description:
Same idea as in Tapestry-2541 but in a much lighter way :
In my case, I use the Layout pattern for rendering my pages, but depending on the situation, sometimes the body of the layout is empty. In that case I would like to display a generic content. So I imagine something like this :
<t:if test="hasBody">
Blah blah blah
<t:parameter name="else">
<t:body />
</t:parameter>
</t:if>
But I don't know how to write the test "hasBody".
was:
Same idea as in Tapestry-2541 but in a much lighter way :
In my case, I use the Layout pattern for rendering my pages, but depending on the situation, sometimes the body of the layout is empty. In that case I would like to display a generic content. So I imagine something like this :
<t:if test="hasBody">
Blah blah blah
<t:parameter name="else">
<t:body />
</t:parameter>
</t:if>
But I don't know how to write the test "hasBody".
HLS said this :
"This is not currently possible, but that's mostly an API issue. The Tapestry component has, internally, its body (as an array of TemplateToken objects) and can determine if the body is empty or not. It's a bit more complicated to determine if a Mixin on the component may affect rendering of the body (by providing BeforeBody or AfterBody render phase methods). I could implement a method on ComponentResources: boolean hasBody(). Without an API change this will be difficult."
HLS said this :
"This is not currently possible, but that's mostly an API issue. The Tapestry component has, internally, its body (as an array of TemplateToken objects) and can determine if the body is empty or not. It's a bit more complicated to determine if a Mixin on the component may affect rendering of the body (by providing BeforeBody or AfterBody render phase methods). I could implement a method on ComponentResources: boolean hasBody(). Without an API change this will be difficult."
> Add a new method hasBody() to ComponentRessource
> ------------------------------------------------
>
> Key: TAPESTRY-2542
> URL: https://issues.apache.org/jira/browse/TAPESTRY-2542
> Project: Tapestry
> Issue Type: New Feature
> Components: tapestry-core
> Affects Versions: 5.0.13
> Reporter: Martin Papy
>
> Same idea as in Tapestry-2541 but in a much lighter way :
> In my case, I use the Layout pattern for rendering my pages, but depending on the situation, sometimes the body of the layout is empty. In that case I would like to display a generic content. So I imagine something like this :
> <t:if test="hasBody">
> Blah blah blah
> <t:parameter name="else">
> <t:body />
> </t:parameter>
> </t:if>
> But I don't know how to write the test "hasBody".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Assigned: (TAPESTRY-2542) Add a new method hasBody() to
ComponentRessources
Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-2542?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship reassigned TAPESTRY-2542:
----------------------------------------------
Assignee: Howard M. Lewis Ship
> Add a new method hasBody() to ComponentRessources
> -------------------------------------------------
>
> Key: TAPESTRY-2542
> URL: https://issues.apache.org/jira/browse/TAPESTRY-2542
> Project: Tapestry
> Issue Type: New Feature
> Components: tapestry-core
> Affects Versions: 5.0.13
> Reporter: Martin Papy
> Assignee: Howard M. Lewis Ship
>
> Same idea as in Tapestry-2541 but in a much lighter way :
> In my case, I use the Layout pattern for rendering my pages, but depending on the situation, sometimes the body of the layout is empty. In that case I would like to display a generic content. So I imagine something like this :
> <t:if test="hasBody">
> Blah blah blah
> <t:parameter name="else">
> <t:body />
> </t:parameter>
> </t:if>
> But I don't know how to write the test "hasBody".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Closed: (TAPESTRY-2542) Add new method hasBody() to
ComponentResources, to reveal if component has a body or not
Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-2542?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship closed TAPESTRY-2542.
------------------------------------------
Resolution: Fixed
Fix Version/s: 5.0.14
> Add new method hasBody() to ComponentResources, to reveal if component has a body or not
> ----------------------------------------------------------------------------------------
>
> Key: TAPESTRY-2542
> URL: https://issues.apache.org/jira/browse/TAPESTRY-2542
> Project: Tapestry
> Issue Type: New Feature
> Components: tapestry-core
> Affects Versions: 5.0.13
> Reporter: Martin Papy
> Assignee: Howard M. Lewis Ship
> Fix For: 5.0.14
>
>
> Same idea as in Tapestry-2541 but in a much lighter way :
> In my case, I use the Layout pattern for rendering my pages, but depending on the situation, sometimes the body of the layout is empty. In that case I would like to display a generic content. So I imagine something like this :
> <t:if test="hasBody">
> Blah blah blah
> <t:parameter name="else">
> <t:body />
> </t:parameter>
> </t:if>
> But I don't know how to write the test "hasBody".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org