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

META-INF.facelets-taglib20.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!



              
    $uri
#if ($compositeLibrary)
    $compositeLibrary
#end

$baseContent

## ----------------------------- START MACROS -----------------------------
##
## -------------------------------
## writeJSFProperty
## -------------------------------
##
#macro (writeJSFProperty $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 )
#end
#elseif($property.deferredValueType)
           $property.deferredValueType
#elseif ($type == "String")
           java.lang.String
#else
           $property.className
#end
        
#end
#end
##
## -------------------------------
## writeJSFAttribute
## -------------------------------
##
#macro (writeJSFAttribute $attribute)
#if (!$attribute.isTagExcluded())
        
#if ($attribute.longDescription)
           
#else
           
#end
           $attribute.jspName
#if ($attribute.isRequired())
           $attribute.isRequired()
#end
#set ($type = $utils.getClassFromFullClass($attribute.className))
#if ($type == "MethodExpression")
           ${attribute.deferredMethodSignature}
#elseif ($type == "ValueExpression")
#if($attribute.deferredValueType)
           $attribute.deferredValueType
#end
#else
#if ($attribute.className)         
           $attribute.className
#else
           java.lang.String
#end
#end
        
#end
#end
## ----------------------------- END MACROS -------------------------------
    
#set ($componentList = ${model.getComponents()})
#foreach( $component in $componentList )
#if ($modelIds.contains($component.modelId) 
    && ($component.name))
#if (!$component.isConfigExcluded() && !$component.isComposite())
## Check if we don't have a facelet tag taking precedence over this description
#if (! ${model.findFaceletTagByName($component.name)})
    
#if ($component.longDescription)
        
#else
        
#end    
        $utils.getTagName($component.name)
        
            $component.type
#if ($component.rendererType)
#if (!($component.rendererType == ""))
            $component.rendererType
#end
#end
#if ($component.tagHandler)
            $component.tagHandler
#end
        
#set ($attributeList = ${component.propertyList})
#foreach( $attribute in $attributeList )
#writeJSFProperty($attribute)
#end        
    
#end
#end
#end
#end

   
#set ($componentList = ${model.getConverters()})
#foreach( $component in $componentList )
#if ($modelIds.contains($component.modelId) 
    && ($component.name))
#if ($component.converterId)
## Check if we don't have a facelet tag taking precedence over this description
#if (! ${model.findFaceletTagByName($component.name)}) 
    
#if ($component.longDescription)
        
#else
        
#end    
        $utils.getTagName($component.name)
        
            $component.converterId
#if ($component.tagHandler)
            $component.tagHandler
#end
        
#set ($propertyList = ${component.propertyList})
#foreach( $property in $propertyList )
#writeJSFProperty($property)
#end        
    
#end
#end
#end
#end

   
#set ($componentList = ${model.getValidators()})
#foreach( $component in $componentList )
#if ($modelIds.contains($component.modelId) 
    && ($component.name))
#if ($component.validatorId)
## Check if we don't have a facelet tag taking precedence over this description
#if (! ${model.findFaceletTagByName($component.name)})
    
#if ($component.longDescription)
        
#else
        
#end    
        $utils.getTagName($component.name)
        
            $component.validatorId
#if ($component.tagHandler)
            $component.tagHandler
#end
        
#set ($propertyList = ${component.propertyList})
#foreach( $property in $propertyList )
#writeJSFProperty($property)
#end        
    
#end
#end
#end
#end

   
#set ($behaviorList = ${model.getBehaviors()})
#foreach( $behavior in $behaviorList )
#if ($modelIds.contains($behavior.modelId) 
    && ($behavior.name))
#if ($behavior.behaviorId)
## Check if we don't have a facelet tag taking precedence over this description
#if (! ${model.findFaceletTagByName($behavior.name)}) 
    
#if ($behavior.longDescription)
        
#else
        
#end    
        $utils.getTagName($behavior.name)
        
            $behavior.behaviorId
#if ($behavior.tagHandler)
            $behavior.tagHandler
#end
        
#set ($propertyList = ${behavior.propertyList})
#foreach( $property in $propertyList )
#writeJSFProperty($property)
#end        
    
#end
#end
#end
#end
    
   
#set ($tagList = $model.getTags())
#foreach( $tag in $tagList )
#if ($modelIds.contains($tag.modelId))
#if ($tag.tagHandler)
## Check if we don't have a facelet tag taking precedence over this description
#if (! ${model.findFaceletTagByName($tag.name)})
   
#if ($tag.longDescription)
        
#else
        
#end    
      $utils.getTagName($tag.name)
      $tag.tagHandler
#foreach( $attribute in $attributeList )
#writeJSFAttribute($attribute)
#end
   
#end
#end
#end
#end

    
#set ($faceletTagList = $model.getFaceletTags())
#foreach( $faceletTag in $faceletTagList )
#if ($modelIds.contains($faceletTag.modelId) && ($faceletTag.name))
#if ($utils.getTagPrefix($faceletTag.name) == $shortname)
   
#if ($faceletTag.longDescription)
        
#else
        
#end    

      $utils.getTagName($faceletTag.name)
#if ($faceletTag.componentClass)
#set ($component = ${model.findComponentByClassName($faceletTag.componentClass)})
    
        $component.type
#if ($component.rendererType)
#if (!($component.rendererType == ""))
        $component.rendererType
#end
#end
        $faceletTag.className
    
#elseif ($faceletTag.converterClass)
#set ($converter = ${model.findConverterByClassName($faceletTag.converterClass)})
    
        $converter.converterId
        $faceletTag.className
    
#elseif ($faceletTag.behaviorClass)
#set ($behavior = ${model.findBehaviorByClassName($faceletTag.behaviorClass)})
    
        $behavior.behaviorId
        $faceletTag.className
    
#else
    $faceletTag.className
#end
#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.signature
      
#end
#end
#end





© 2015 - 2025 Weber Informatics LLC | Privacy Policy