[ http://jira.magnolia.info/browse/MAGNOLIA-501?page=all ]

Michael Aemisegger updated MAGNOLIA-501:
----------------------------------------

    Attachment: IfExisting.java
                IfNotExisting.java

> custom tag 'IfExisting' and 'IfNotExisting'
> -------------------------------------------
>
>          Key: MAGNOLIA-501
>          URL: http://jira.magnolia.info/browse/MAGNOLIA-501
>      Project: magnolia wcm
>         Type: New Feature
>   Components: taglibs
>     Versions: 2.1 RC1
>  Environment: all
>     Reporter: Michael Aemisegger
>     Assignee: Boris Kraft
>  Attachments: IfExisting.java, IfNotExisting.java
>
> The custom tags IfEmpty and IfNotEmpty are very slow when evaluating binary 
> data. Because these tags load the binary data into memory they also consum a 
> lot of resources. This effect is severed with increasing sizes of binary data.
> The attached custom tag java classes check only for existence of nodes and 
> therefore are much faster and less resource hungry.
> The taglib definition snippets are:
> <tag>
>               <name>ifNotExisting</name>
>               <tag-class>info.magnolia.cms.taglibs.IfNotExisting</tag-class>
>               <body-content>JSP</body-content>
>               <description>
>                               evaluates the body only if a container and / or 
> the corresponding atom does not exist
>               </description>
>               <attribute>
>                               <name>nodeDataName</name>
>                               <required>false</required>
>                               <rtexprvalue>true</rtexprvalue>
>                               <description></description>
>               </attribute>
>               <attribute>
>                               <name>atomName</name>
>                               <required>false</required>
>                               <rtexprvalue>true</rtexprvalue>
>                               <description></description>
>               </attribute>
>               <attribute>
>                               <name>contentNodeName</name>
>                               <required>false</required>
>                               <rtexprvalue>true</rtexprvalue>
>                               <description></description>
>               </attribute>
>               <attribute>
>                               <name>contentNodeCollectionName</name>
>                               <required>false</required>
>                               <rtexprvalue>true</rtexprvalue>
>                               <description></description>
>               </attribute>
>               <attribute>
>                               <name>actpage</name>
>                               <required>false</required>
>                               <rtexprvalue>true</rtexprvalue>
>                               <type>boolean</type>
>                               <description></description>
>               </attribute>
> </tag>
> <tag>
>               <name>ifExisting</name>
>               <tag-class>info.magnolia.cms.taglibs.IfExisting</tag-class>
>               <body-content>JSP</body-content>
>               <description>this is exactly the opposite of the ifNotExisting 
> Tag</description>
>               <attribute>
>                               <name>nodeDataName</name>
>                               <required>false</required>
>                               <rtexprvalue>true</rtexprvalue>
>                               <description></description>
>               </attribute>
>               <attribute>
>                               <name>atomName</name>
>                               <required>false</required>
>                               <rtexprvalue>true</rtexprvalue>
>                               <description></description>
>               </attribute>
>               <attribute>
>                               <name>contentNodeName</name>
>                               <required>false</required>
>                               <rtexprvalue>true</rtexprvalue>
>                               <description></description>
>               </attribute>
>               <attribute>
>                               <name>contentNodeCollectionName</name>
>                               <required>false</required>
>                               <rtexprvalue>true</rtexprvalue>
>                               <description></description>
>               </attribute>
>               <attribute>
>                               <name>actpage</name>
>                               <required>false</required>
>                               <rtexprvalue>true</rtexprvalue>
>                               <type>boolean</type>
>                               <description></description>
>               </attribute>
> </tag>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.magnolia.info/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------

Reply via email to