You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Kevin Menard (JIRA)" <de...@tapestry.apache.org> on 2008/01/24 23:42:34 UTC

[jira] Created: (TAPESTRY-2087) Add "else" parameter to Unless component.

Add "else" parameter to Unless component.
-----------------------------------------

                 Key: TAPESTRY-2087
                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2087
             Project: Tapestry
          Issue Type: Improvement
          Components: Core Components
    Affects Versions: 5.0.10
            Reporter: Kevin Menard
            Priority: Minor


It'd be nice if the Unless component had an "else" parameter similar to that of the If component.  While the If component could be used instead, it allows the primary condition to appear before the exceptional one in the template.

-- 
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-2087) Add "else" parameter to Unless component.

Posted by "Kevin Menard (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-2087?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kevin Menard closed TAPESTRY-2087.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 5.0.11

Fixed.  I decided not to delegate because of issues with components including sub-components without having a template.  The overhead of adding a template probably nullified the benefit of delegation in this case.  If components implemented purely in Java can ever embed other components, I would reevaluate things at that point.

> Add "else" parameter to Unless component.
> -----------------------------------------
>
>                 Key: TAPESTRY-2087
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2087
>             Project: Tapestry
>          Issue Type: Improvement
>          Components: Core Components
>    Affects Versions: 5.0.10
>            Reporter: Kevin Menard
>            Assignee: Kevin Menard
>            Priority: Minor
>             Fix For: 5.0.11
>
>
> It'd be nice if the Unless component had an "else" parameter similar to that of the If component.  While the If component could be used instead, it allows the primary condition to appear before the exceptional one in the template.

-- 
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-2087) Add "else" parameter to Unless component.

Posted by "Kevin Menard (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-2087?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kevin Menard reassigned TAPESTRY-2087:
--------------------------------------

    Assignee: Kevin Menard

> Add "else" parameter to Unless component.
> -----------------------------------------
>
>                 Key: TAPESTRY-2087
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2087
>             Project: Tapestry
>          Issue Type: Improvement
>          Components: Core Components
>    Affects Versions: 5.0.10
>            Reporter: Kevin Menard
>            Assignee: Kevin Menard
>            Priority: Minor
>
> It'd be nice if the Unless component had an "else" parameter similar to that of the If component.  While the If component could be used instead, it allows the primary condition to appear before the exceptional one in the template.

-- 
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] Commented: (TAPESTRY-2087) Add "else" parameter to Unless component.

Posted by "Kevin Menard (JIRA)" <de...@tapestry.apache.org>.
    [ https://issues.apache.org/jira/browse/TAPESTRY-2087?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12572745#action_12572745 ] 

Kevin Menard commented on TAPESTRY-2087:
----------------------------------------

Is there any reason that this component doesn't just delegate to the If component?  The only thing I can think of is to achieve as much performance in the core as possible . . .

In any event, implementing it via duplication of logic or by delegation is simple enough.  My preference would be the latter for conciseness and to avoid dumb logic errors.  I just don't want to be stepping on any design toes if there was a reason to not delegate in the first place.

> Add "else" parameter to Unless component.
> -----------------------------------------
>
>                 Key: TAPESTRY-2087
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2087
>             Project: Tapestry
>          Issue Type: Improvement
>          Components: Core Components
>    Affects Versions: 5.0.10
>            Reporter: Kevin Menard
>            Assignee: Kevin Menard
>            Priority: Minor
>
> It'd be nice if the Unless component had an "else" parameter similar to that of the If component.  While the If component could be used instead, it allows the primary condition to appear before the exceptional one in the template.

-- 
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