[jbosstools-dev] In VPE was added support for taglibs versions

Max Areshkau mareshkau at exadel.com
Mon Mar 17 12:24:57 EDT 2008


Max Rydahl Andersen wrote:
> Cool, but wouldn't it make more sense to add it as a seperate tag ?
>
> Or maybe just as attributes on vpe:tag or is it supposed to be possible
> to have multiple vpe:if's under vpe:tag? e.g. is the following supposed to be possible?
>
>       <vpe:tag name="f:testTldVersion" case-sensitive="yes">
>           <vpe:if test="tld_version('min=1.0 max=1.2')" >
>           <vpe:template children="yes" modify="yes">
>               <div  style="background-color:red">
> 	      Will be generated for version 1.0 to 1.2
>               </div>
>           </vpe:template>
>           </vpe:if>
>           <vpe:if test="tld_version('min=0.0 max=1.0')" >
>           <vpe:template children="yes" modify="yes">
>               <div  style="background-color:red">
>               Will be generated for version 0.0 through to 1.0
>               </div>
>           </vpe:template>
>           <vpe:template children="yes" modify="yes">
>               <div  style="background-color:red">
>               Will always be generated.
>               </div>
>           </vpe:template>
>       </vpe:tag>
>
> -max
>
>   
Yes, It's possible.
>> In VPE was added support for taglib versions
>> see(http://jira.jboss.com/jira/browse/JBIDE-1466).
>> Checks for versions was resolved in
>> org.jboss.tools.vpe.editor.template.expression.VpeFunctionTldVersionCheck
>> class.
>> Here some examples how it's can be used in template configuration file:
>> Example 1:
>>      <vpe:tag name="f:testTldVersion" case-sensitive="yes">
>>          <vpe:if test="tld_version('min=0.0 max=1.2')" >
>>          <vpe:template children="yes" modify="yes">
>>              <div  style="background-color:red">
>>              Tld Check function
>>              </div>
>>          </vpe:template>
>>          </vpe:if>
>>      </vpe:tag>
>>  Example 2:
>>      <vpe:tag name="f:testTldVersion" case-sensitive="yes">
>>          <vpe:if test="tld_version('min=0.0')" >
>>          <vpe:template children="yes" modify="yes">
>>              <div  style="background-color:red">
>>              Tld Check function
>>              </div>
>>          </vpe:template>
>>         </vpe:if>
>>     </vpe:tag>
>>  Example 3:
>>  <vpe:tag name="f:testTldVersion" case-sensitive="yes">
>>          <vpe:if test="tld_version('max=1.2')" >
>>          <vpe:template children="yes" modify="yes">
>>              <div  style="background-color:red">
>>              Tld Check function
>>              </div>
>>          </vpe:template>
>>          </vpe:if>
>>     </vpe:tag>
>> Function tld_version() checks for taglib version in projects, here can
>> be 2 parametrs:
>> 1) 'min' -  minimal taglib  version
>> 2) 'max' - maximal taglib version
>> In function can' be specified only one paramter 'min'  or 'max'.
>> _______________________________________________
>> jbosstools-dev mailing list
>> jbosstools-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/jbosstools-dev
>>
>>     
>
>
>
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jbosstools-dev/attachments/20080317/ce4ab1f7/attachment.html 


More information about the jbosstools-dev mailing list