All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.tld-facelets-tomahawk20.vm Maven / Gradle / Ivy

Go to download

A maven plugin that uses annotations (java15 or doclet style) to generate the necessary JSF configuration files (.tld, faces-config.xml, etc) and optionally Tag, Validator and Component classes.

The newest version!



   $description
   $displayname
   1.1.7
   $shortname
   $uri
   
   

$baseContent

## ----------------------------- START MACROS -----------------------------
##
## -------------------------------
## writeJSFComponentProperty
## -------------------------------
##
#macro (writeJSFComponentProperty $property)
#if (!$property.isTagExcluded())
      
#if ($property.longDescription)
         
#else
         
#end
         $property.jspName
#if ($property.isRequired())
         $property.isRequired()
#end
#if ($property.isMethodExpression() || $property.isMethodBinding())
#if ($property.getMethodBindingSignature())
        
#set ($sig = $property.getMethodBindingSignature())
            $sig.returnType myMethod( $sig.parameterTypesAsString )

        
#else
## This is a very special case. If a property is MethodBinding or MethodExpression
## this should have a signature. If not, for allow multiple MethodBinding
## simulate a ValueExpression and write a custom code like in 
## org.apache.myfaces.custom.suggestajax.AbstractSuggestAjaxTag
         
#end
#elseif ($property.isLiteralOnly())
         false
#else
#if ( "$!property.isRtexprvalue()" == "")
#set ($type = $utils.getClassFromFullClass($property.className))
#if($property.deferredValueType)
         
             $property.deferredValueType
         
#elseif ($type == "String")
         
            java.lang.String
         
#else
         
             $property.className
         
#end
#else
         $property.isRtexprvalue().booleanValue()
#end
#end
      
#end
#end
##
## -------------------------------
## writeJSFAttachedObjectProperty
## -------------------------------
##
#macro (writeJSFAttachedObjectProperty $property)
#if (!$property.isTagExcluded())
      
#if ($property.longDescription)
         
#else
         
#end
         $property.name
#if ($property.isRequired())
         $property.isRequired()
#end
#if ($property.isLiteralOnly())
         false
#else
#set ($type = $utils.getClassFromFullClass($property.className))
#if($property.deferredValueType)
         
             $property.deferredValueType
                      
#elseif ($type == "String")
         
            java.lang.String
         
#else
         
             $property.className
         
#end
#end
      
#end
#end
##
## -------------------------------
## writeJSFAttribute
## -------------------------------
##
#macro (writeJSFAttribute $attribute)
      
#if ($attribute.longDescription)
         
#else
         
#end
         $attribute.name
         $attribute.isRequired()
#set ($type = $utils.getClassFromFullClass($attribute.className))
#if ($type == "MethodExpression")
        
          ${attribute.deferredMethodSignature}
        
#elseif ($type == "ValueExpression")
         
#if($attribute.deferredValueType)
             $attribute.deferredValueType
#end
         
#else
         $attribute.isRtexprvalue()
#if ($attribute.className)         
         $attribute.className
#else
         java.lang.String
#end
#end
      
#end
## ----------------------------- END MACROS -------------------------------
    
#set ($componentList = ${model.getComponents()})
#foreach( $component in $componentList )
#if ($modelIds.contains($component.modelId) 
    && ($component.name))
#if ($utils.getTagPrefix($component.name) == $shortname)
## Check if we don't have a facelet tag taking precedence over this description
#if (! ${model.findFaceletTagByName($component.name)})
   
      
      $utils.getTagName($component.name)
      $component.tagClass
#if ($component.bodyContent)
      $component.bodyContent
#else
      JSP
#end
      
#set ($propertyList = ${component.propertyList})
#foreach( $property in $propertyList )
#writeJSFComponentProperty($property)
#end
#if ($component.tagHandler)
#set ($faceletTag = ${model.findFaceletTagByClassName($component.tagHandler)} )
#if ($faceletTag)
#set ($attributeList = $faceletTag.attributeList)
#foreach( $attribute in $attributeList )
#writeJSFAttribute($attribute)
#end
#end
#end
   
#end
#end
#end
#end
   
#set ($componentList = ${model.getConverters()})
#foreach( $component in $componentList )
#if ($modelIds.contains($component.modelId) 
    && ($component.name))
#if ($utils.getTagPrefix($component.name) == $shortname)
## Check if we don't have a facelet tag taking precedence over this description
#if (! ${model.findFaceletTagByName($component.name)}) 
   
      
      $utils.getTagName($component.name)
      $component.tagClass
#if ($component.bodyContent)
      $component.bodyContent
#else
      empty
#end
      
#set ($propertyList = ${component.propertyList})
#foreach( $property in $propertyList )
#writeJSFAttachedObjectProperty($property)
#end
#if ($component.tagHandler)
#set ($faceletTag = ${model.findFaceletTagByClassName($component.tagHandler)} )
#if ($faceletTag)
#set ($attributeList = $faceletTag.attributeList)
#foreach( $attribute in $attributeList )
#writeJSFAttribute($attribute)
#end
#end
#elseif ($jsf20)
      
        
        for
        false
        
         java.lang.String
        
      
#end
   
#end
#end
#end
#end
   
#set ($componentList = ${model.getValidators()})
#foreach( $component in $componentList )
#if ($modelIds.contains($component.modelId) 
    && ($component.name))
#if ($utils.getTagPrefix($component.name) == $shortname)
## Check if we don't have a facelet tag taking precedence over this description
#if (! ${model.findFaceletTagByName($component.name)}) 
   
      
      $utils.getTagName($component.name)
      $component.tagClass
#if ($component.bodyContent)
      $component.bodyContent
#else
      empty
#end
      
#set ($propertyList = ${component.propertyList})
#foreach( $property in $propertyList )
#writeJSFAttachedObjectProperty($property)
#end
#if ($component.tagHandler)
#set ($faceletTag = ${model.findFaceletTagByClassName($component.tagHandler)} )
#if ($faceletTag)
#set ($attributeList = $faceletTag.attributeList)
#foreach( $attribute in $attributeList )
#writeJSFAttribute($attribute)
#end
#end
#elseif ($jsf20)
      
        
        for
        false
        
         java.lang.String
        
      
#end
   
#end
#end
#end
#end

   
#set ($behaviorList = ${model.getBehaviors()})
#foreach( $component in $behaviorList )
#if ($modelIds.contains($component.modelId) 
    && ($component.name))
#if ($component.behaviorId)
## Check if we don't have a facelet tag taking precedence over this description
#if (! ${model.findFaceletTagByName($component.name)}) 
   
      
      $utils.getTagName($component.name)
      $component.tagClass
#if ($component.bodyContent)
      $component.bodyContent
#else
      empty
#end
#set ($propertyList = ${component.propertyList})
#foreach( $property in $propertyList )
#writeJSFAttachedObjectProperty($property)
#end
      
        
        for
        false
        
         java.lang.String
        
      
   
#end
#end
#end
#end

   
#set ($tagList = $model.getTags())
#foreach( $tag in $tagList )
#if ($modelIds.contains($tag.modelId) && ($tag.name))
#if ($utils.getTagPrefix($tag.name) == $shortname)
## Check if we don't have a facelet tag taking precedence over this description
#if (! ${model.findFaceletTagByName($tag.name)})
   
      
      $utils.getTagName($tag.name)
      $tag.className
      $tag.bodyContent
#set ($attributeList = ${tag.attributeList})
#foreach( $attribute in $attributeList )
#writeJSFAttribute($attribute)
#end
#if ($tag.tagHandler)
#set ($faceletTag = ${model.findFaceletTagByClassName($tag.tagHandler)} )
#if ($faceletTag)
#set ($attributeList = $faceletTag.attributeList)
#foreach( $attribute in $attributeList )
#writeJSFAttribute($attribute)
#end
#end
#end
   
#end
#end
#end
#end

   
#set ($tagList = $model.getFaceletTags())
#foreach( $tag in $tagList )
#if ($modelIds.contains($tag.modelId) && ($tag.name))
#if ($utils.getTagPrefix($tag.name) == $shortname)
   
      
      $utils.getTagName($tag.name)
      $tag.className
      $tag.bodyContent
#set ($attributeList = ${tag.attributeList})
#foreach( $attribute in $attributeList )
#writeJSFAttribute($attribute)
#end
   
#end
#end
#end

   
#set ($functionList = $model.getFaceletFunctions())
#foreach( $faceletFunction in $functionList )
#if ($modelIds.contains($faceletFunction.modelId) && ($faceletFunction.name))
#if ($utils.getTagPrefix($faceletFunction.name) == $shortname)
   
#if ($faceletFunction.longDescription)
       
#elseif ($faceletFunction.description)
       
#else
       
#end
       $utils.getTagName($faceletFunction.name)
       $faceletFunction.sourceClassName
       $faceletFunction.declaredSignature
      
#end
#end
#end





© 2015 - 2025 Weber Informatics LLC | Privacy Policy