commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nacho G. Mac Dowell (JIRA)" <commons-...@jakarta.apache.org>
Subject [jira] Updated: (JELLY-201) NotAvailableTag
Date Tue, 15 Feb 2005 08:40:12 GMT
     [ http://issues.apache.org/jira/browse/JELLY-201?page=history ]

Nacho G. Mac Dowell updated JELLY-201:
--------------------------------------

    Attachment: suite.jelly.patch

Test cases for NotAvailableTag.

> NotAvailableTag
> ---------------
>
>          Key: JELLY-201
>          URL: http://issues.apache.org/jira/browse/JELLY-201
>      Project: jelly
>         Type: Improvement
>   Components: taglib.util
>     Reporter: Nacho G. Mac Dowell
>  Attachments: NotAvailableTag.patch, NotAvailableTag.patch, UtilTagLibrary.patch, suite.jelly.patch
>
> It would be useful to have a NotAvailableTag. Even though (for example) mkdir can be
called each time without any overhead, sometimes the code would improve readability with the
use of this tag.
> Solution:
> Create a method boolean isAvailable() in AvailableTag which does all the job and have
the NotAvailableTag extend AvailableTag and in the doTag method:
>         if (!isAvailable()) {
>             invokeBody(output);
>         }

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message