You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Folke Behrens (JIRA)" <ji...@apache.org> on 2009/02/04 14:27:59 UTC

[jira] Created: (TAP5-496) Dummy component which renders nothing

Dummy component which renders nothing
-------------------------------------

                 Key: TAP5-496
                 URL: https://issues.apache.org/jira/browse/TAP5-496
             Project: Tapestry 5
          Issue Type: Improvement
          Components: tapestry-core
    Affects Versions: 5.0.18
            Reporter: Folke Behrens


I use a lot of dummy texts in my template to see what the page will actually look like when rendered. To filter out these fragments I created a "Dummy" component whose setupRender method always returns "false".

I don't know if this is efficient but it would be nice to have something like this already in T5's component library.

More efficient would be a special marker XML attribute that the template parser recognizes. Maybe something like a t:test attribute which is works like <t:if test="...">...</t:if>. If the contained expression evaluations to false or null the marked element is filtered.

<ul>
  <li t:test="show.item">conditional item</li>
  <li t:test="literal:false">dummy item</li>
</ul>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (TAP5-496) Change If and Unless to render thier template element if provided (i.e., when using t:type) as well as informal parameters

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-496?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship reassigned TAP5-496:
-----------------------------------------

    Assignee: Howard M. Lewis Ship

> Change If and Unless to render thier template element if provided (i.e., when using t:type) as well as informal parameters
> --------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-496
>                 URL: https://issues.apache.org/jira/browse/TAP5-496
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.0.18
>            Reporter: Folke Behrens
>            Assignee: Howard M. Lewis Ship
>            Priority: Minor
>
> I use a lot of dummy texts in my template to see what the page will actually look like when rendered. To filter out these fragments I created a "Dummy" component whose setupRender method always returns "false".
> I don't know if this is efficient but it would be nice to have something like this already in T5's component library.
> More efficient would be a special marker XML attribute that the template parser recognizes. Maybe something like a t:test attribute which is works like <t:if test="...">...</t:if>. If the contained expression evaluations to false or null the marked element is filtered.
> <ul>
>   <li t:test="show.item">conditional item</li>
>   <li t:test="literal:false">dummy item</li>
> </ul>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (TAP5-496) Change If and Unless to render thier template element if provided (i.e., when using t:type) as well as informal parameters

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-496?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship updated TAP5-496:
--------------------------------------

    Assignee:     (was: Howard M. Lewis Ship)

> Change If and Unless to render thier template element if provided (i.e., when using t:type) as well as informal parameters
> --------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-496
>                 URL: https://issues.apache.org/jira/browse/TAP5-496
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.0.18
>            Reporter: Folke Behrens
>            Priority: Minor
>
> I use a lot of dummy texts in my template to see what the page will actually look like when rendered. To filter out these fragments I created a "Dummy" component whose setupRender method always returns "false".
> I don't know if this is efficient but it would be nice to have something like this already in T5's component library.
> More efficient would be a special marker XML attribute that the template parser recognizes. Maybe something like a t:test attribute which is works like <t:if test="...">...</t:if>. If the contained expression evaluations to false or null the marked element is filtered.
> <ul>
>   <li t:test="show.item">conditional item</li>
>   <li t:test="literal:false">dummy item</li>
> </ul>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (TAP5-496) Dummy component which renders nothing

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-496?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship closed TAP5-496.
-------------------------------------

    Resolution: Invalid
      Assignee: Howard M. Lewis Ship

Already in the framework,

<ul>
  <li t:type="if" t:test="show.item">conditional item</li>
  <li t:type="if" t:test="literal:false">dummy item</li>
</ul> 

If, Unless and Loop adapt to the element used to define them in the template.

> Dummy component which renders nothing
> -------------------------------------
>
>                 Key: TAP5-496
>                 URL: https://issues.apache.org/jira/browse/TAP5-496
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.0.18
>            Reporter: Folke Behrens
>            Assignee: Howard M. Lewis Ship
>
> I use a lot of dummy texts in my template to see what the page will actually look like when rendered. To filter out these fragments I created a "Dummy" component whose setupRender method always returns "false".
> I don't know if this is efficient but it would be nice to have something like this already in T5's component library.
> More efficient would be a special marker XML attribute that the template parser recognizes. Maybe something like a t:test attribute which is works like <t:if test="...">...</t:if>. If the contained expression evaluations to false or null the marked element is filtered.
> <ul>
>   <li t:test="show.item">conditional item</li>
>   <li t:test="literal:false">dummy item</li>
> </ul>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TAP5-496) Dummy component which renders nothing

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-496?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12670828#action_12670828 ] 

Howard M. Lewis Ship commented on TAP5-496:
-------------------------------------------

You are correct, I thought I had implemented that for If, but I've only done it for Loop.

> Dummy component which renders nothing
> -------------------------------------
>
>                 Key: TAP5-496
>                 URL: https://issues.apache.org/jira/browse/TAP5-496
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.0.18
>            Reporter: Folke Behrens
>            Assignee: Howard M. Lewis Ship
>
> I use a lot of dummy texts in my template to see what the page will actually look like when rendered. To filter out these fragments I created a "Dummy" component whose setupRender method always returns "false".
> I don't know if this is efficient but it would be nice to have something like this already in T5's component library.
> More efficient would be a special marker XML attribute that the template parser recognizes. Maybe something like a t:test attribute which is works like <t:if test="...">...</t:if>. If the contained expression evaluations to false or null the marked element is filtered.
> <ul>
>   <li t:test="show.item">conditional item</li>
>   <li t:test="literal:false">dummy item</li>
> </ul>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Reopened: (TAP5-496) Dummy component which renders nothing

Posted by "Folke Behrens (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-496?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Folke Behrens reopened TAP5-496:
--------------------------------


The If component's element, the <li> in this case, will not appear in output markup.

> Dummy component which renders nothing
> -------------------------------------
>
>                 Key: TAP5-496
>                 URL: https://issues.apache.org/jira/browse/TAP5-496
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.0.18
>            Reporter: Folke Behrens
>            Assignee: Howard M. Lewis Ship
>
> I use a lot of dummy texts in my template to see what the page will actually look like when rendered. To filter out these fragments I created a "Dummy" component whose setupRender method always returns "false".
> I don't know if this is efficient but it would be nice to have something like this already in T5's component library.
> More efficient would be a special marker XML attribute that the template parser recognizes. Maybe something like a t:test attribute which is works like <t:if test="...">...</t:if>. If the contained expression evaluations to false or null the marked element is filtered.
> <ul>
>   <li t:test="show.item">conditional item</li>
>   <li t:test="literal:false">dummy item</li>
> </ul>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (TAP5-496) Change If and Unless to render thier template element if provided (i.e., when using t:type) as well as informal parameters

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-496?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship updated TAP5-496:
--------------------------------------

    Assignee:     (was: Howard M. Lewis Ship)

> Change If and Unless to render thier template element if provided (i.e., when using t:type) as well as informal parameters
> --------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-496
>                 URL: https://issues.apache.org/jira/browse/TAP5-496
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.0.18
>            Reporter: Folke Behrens
>            Priority: Minor
>
> I use a lot of dummy texts in my template to see what the page will actually look like when rendered. To filter out these fragments I created a "Dummy" component whose setupRender method always returns "false".
> I don't know if this is efficient but it would be nice to have something like this already in T5's component library.
> More efficient would be a special marker XML attribute that the template parser recognizes. Maybe something like a t:test attribute which is works like <t:if test="...">...</t:if>. If the contained expression evaluations to false or null the marked element is filtered.
> <ul>
>   <li t:test="show.item">conditional item</li>
>   <li t:test="literal:false">dummy item</li>
> </ul>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TAP5-496) Dummy component which renders nothing

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-496?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12670828#action_12670828 ] 

Howard M. Lewis Ship commented on TAP5-496:
-------------------------------------------

You are correct, I thought I had implemented that for If, but I've only done it for Loop.

> Dummy component which renders nothing
> -------------------------------------
>
>                 Key: TAP5-496
>                 URL: https://issues.apache.org/jira/browse/TAP5-496
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.0.18
>            Reporter: Folke Behrens
>            Assignee: Howard M. Lewis Ship
>
> I use a lot of dummy texts in my template to see what the page will actually look like when rendered. To filter out these fragments I created a "Dummy" component whose setupRender method always returns "false".
> I don't know if this is efficient but it would be nice to have something like this already in T5's component library.
> More efficient would be a special marker XML attribute that the template parser recognizes. Maybe something like a t:test attribute which is works like <t:if test="...">...</t:if>. If the contained expression evaluations to false or null the marked element is filtered.
> <ul>
>   <li t:test="show.item">conditional item</li>
>   <li t:test="literal:false">dummy item</li>
> </ul>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (TAP5-496) Dummy component which renders nothing

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-496?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship closed TAP5-496.
-------------------------------------

    Resolution: Invalid
      Assignee: Howard M. Lewis Ship

Already in the framework,

<ul>
  <li t:type="if" t:test="show.item">conditional item</li>
  <li t:type="if" t:test="literal:false">dummy item</li>
</ul> 

If, Unless and Loop adapt to the element used to define them in the template.

> Dummy component which renders nothing
> -------------------------------------
>
>                 Key: TAP5-496
>                 URL: https://issues.apache.org/jira/browse/TAP5-496
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.0.18
>            Reporter: Folke Behrens
>            Assignee: Howard M. Lewis Ship
>
> I use a lot of dummy texts in my template to see what the page will actually look like when rendered. To filter out these fragments I created a "Dummy" component whose setupRender method always returns "false".
> I don't know if this is efficient but it would be nice to have something like this already in T5's component library.
> More efficient would be a special marker XML attribute that the template parser recognizes. Maybe something like a t:test attribute which is works like <t:if test="...">...</t:if>. If the contained expression evaluations to false or null the marked element is filtered.
> <ul>
>   <li t:test="show.item">conditional item</li>
>   <li t:test="literal:false">dummy item</li>
> </ul>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (TAP5-496) Change If and Unless to render thier template element if provided (i.e., when using t:type) as well as informal parameters

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-496?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship updated TAP5-496:
--------------------------------------

    Priority: Minor  (was: Major)
     Summary: Change If and Unless to render thier template element if provided (i.e., when using t:type) as well as informal parameters  (was: Dummy component which renders nothing)

> Change If and Unless to render thier template element if provided (i.e., when using t:type) as well as informal parameters
> --------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-496
>                 URL: https://issues.apache.org/jira/browse/TAP5-496
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.0.18
>            Reporter: Folke Behrens
>            Assignee: Howard M. Lewis Ship
>            Priority: Minor
>
> I use a lot of dummy texts in my template to see what the page will actually look like when rendered. To filter out these fragments I created a "Dummy" component whose setupRender method always returns "false".
> I don't know if this is efficient but it would be nice to have something like this already in T5's component library.
> More efficient would be a special marker XML attribute that the template parser recognizes. Maybe something like a t:test attribute which is works like <t:if test="...">...</t:if>. If the contained expression evaluations to false or null the marked element is filtered.
> <ul>
>   <li t:test="show.item">conditional item</li>
>   <li t:test="literal:false">dummy item</li>
> </ul>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Reopened: (TAP5-496) Dummy component which renders nothing

Posted by "Folke Behrens (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-496?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Folke Behrens reopened TAP5-496:
--------------------------------


The If component's element, the <li> in this case, will not appear in output markup.

> Dummy component which renders nothing
> -------------------------------------
>
>                 Key: TAP5-496
>                 URL: https://issues.apache.org/jira/browse/TAP5-496
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.0.18
>            Reporter: Folke Behrens
>            Assignee: Howard M. Lewis Ship
>
> I use a lot of dummy texts in my template to see what the page will actually look like when rendered. To filter out these fragments I created a "Dummy" component whose setupRender method always returns "false".
> I don't know if this is efficient but it would be nice to have something like this already in T5's component library.
> More efficient would be a special marker XML attribute that the template parser recognizes. Maybe something like a t:test attribute which is works like <t:if test="...">...</t:if>. If the contained expression evaluations to false or null the marked element is filtered.
> <ul>
>   <li t:test="show.item">conditional item</li>
>   <li t:test="literal:false">dummy item</li>
> </ul>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (TAP5-496) Change If and Unless to render thier template element if provided (i.e., when using t:type) as well as informal parameters

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-496?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship closed TAP5-496.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 5.1.0.0

> Change If and Unless to render thier template element if provided (i.e., when using t:type) as well as informal parameters
> --------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-496
>                 URL: https://issues.apache.org/jira/browse/TAP5-496
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.0.18
>            Reporter: Folke Behrens
>            Assignee: Howard M. Lewis Ship
>            Priority: Minor
>             Fix For: 5.1.0.0
>
>
> I use a lot of dummy texts in my template to see what the page will actually look like when rendered. To filter out these fragments I created a "Dummy" component whose setupRender method always returns "false".
> I don't know if this is efficient but it would be nice to have something like this already in T5's component library.
> More efficient would be a special marker XML attribute that the template parser recognizes. Maybe something like a t:test attribute which is works like <t:if test="...">...</t:if>. If the contained expression evaluations to false or null the marked element is filtered.
> <ul>
>   <li t:test="show.item">conditional item</li>
>   <li t:test="literal:false">dummy item</li>
> </ul>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (TAP5-496) Change If and Unless to render thier template element if provided (i.e., when using t:type) as well as informal parameters

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-496?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship reassigned TAP5-496:
-----------------------------------------

    Assignee: Howard M. Lewis Ship

> Change If and Unless to render thier template element if provided (i.e., when using t:type) as well as informal parameters
> --------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-496
>                 URL: https://issues.apache.org/jira/browse/TAP5-496
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.0.18
>            Reporter: Folke Behrens
>            Assignee: Howard M. Lewis Ship
>            Priority: Minor
>
> I use a lot of dummy texts in my template to see what the page will actually look like when rendered. To filter out these fragments I created a "Dummy" component whose setupRender method always returns "false".
> I don't know if this is efficient but it would be nice to have something like this already in T5's component library.
> More efficient would be a special marker XML attribute that the template parser recognizes. Maybe something like a t:test attribute which is works like <t:if test="...">...</t:if>. If the contained expression evaluations to false or null the marked element is filtered.
> <ul>
>   <li t:test="show.item">conditional item</li>
>   <li t:test="literal:false">dummy item</li>
> </ul>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (TAP5-496) Change If and Unless to render thier template element if provided (i.e., when using t:type) as well as informal parameters

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-496?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship closed TAP5-496.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 5.1.0.0

> Change If and Unless to render thier template element if provided (i.e., when using t:type) as well as informal parameters
> --------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-496
>                 URL: https://issues.apache.org/jira/browse/TAP5-496
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.0.18
>            Reporter: Folke Behrens
>            Assignee: Howard M. Lewis Ship
>            Priority: Minor
>             Fix For: 5.1.0.0
>
>
> I use a lot of dummy texts in my template to see what the page will actually look like when rendered. To filter out these fragments I created a "Dummy" component whose setupRender method always returns "false".
> I don't know if this is efficient but it would be nice to have something like this already in T5's component library.
> More efficient would be a special marker XML attribute that the template parser recognizes. Maybe something like a t:test attribute which is works like <t:if test="...">...</t:if>. If the contained expression evaluations to false or null the marked element is filtered.
> <ul>
>   <li t:test="show.item">conditional item</li>
>   <li t:test="literal:false">dummy item</li>
> </ul>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (TAP5-496) Change If and Unless to render thier template element if provided (i.e., when using t:type) as well as informal parameters

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-496?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship updated TAP5-496:
--------------------------------------

    Priority: Minor  (was: Major)
     Summary: Change If and Unless to render thier template element if provided (i.e., when using t:type) as well as informal parameters  (was: Dummy component which renders nothing)

> Change If and Unless to render thier template element if provided (i.e., when using t:type) as well as informal parameters
> --------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-496
>                 URL: https://issues.apache.org/jira/browse/TAP5-496
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.0.18
>            Reporter: Folke Behrens
>            Assignee: Howard M. Lewis Ship
>            Priority: Minor
>
> I use a lot of dummy texts in my template to see what the page will actually look like when rendered. To filter out these fragments I created a "Dummy" component whose setupRender method always returns "false".
> I don't know if this is efficient but it would be nice to have something like this already in T5's component library.
> More efficient would be a special marker XML attribute that the template parser recognizes. Maybe something like a t:test attribute which is works like <t:if test="...">...</t:if>. If the contained expression evaluations to false or null the marked element is filtered.
> <ul>
>   <li t:test="show.item">conditional item</li>
>   <li t:test="literal:false">dummy item</li>
> </ul>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.