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/02/27 01:52:51 UTC

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

    [ 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