incubator-adffaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gabrielle Crawford <gabrielle.crawf...@oracle.com>
Subject Re: jsp mojo changes
Date Fri, 17 Nov 2006 03:54:22 GMT
Darn, found one more. Sorry this isn't more organized. There's actually 
one additional hook I need.

 // hook for custom component tag java imports
  protected void addCustomComponentTagHandlerImports(
      Set           imports,
      ComponentBean component)
  {
  }

Thanks,

Gab

Gabrielle Crawford wrote:

> minor correction below.
>
> Gabrielle Crawford wrote:
>
>> Hi,
>>
>> We are using the Trin Tag generator class GenerateJspTaglibsMojo. 
>> However we want to add some custom code in the tag and tld.
>>
>> I would like to make the following changes to GenerateJspTaglibsMojo, 
>> does anyone have any objections
>>
>> 1] add 2 protected methods which are no-ops in Trinidad. These are 
>> each called once in the class.
>>
>>  // hook for custom component tag java content
>>  protected void writeCustomComponentTagHandlerContent(
>>      PrettyWriter  out,
>>      ComponentBean component) throws IOException
>>  {
>>  }
>>
>>  // hook for custom component descriptor content
>>  protected void writeCustomComponentTagDescriptorContent(
>>      XMLStreamWriter  stream,
>>      ComponentBean    component) throws IOException
>>  {
>>  }
>
>
> oops, that should say XMLStreamException, not IOException
>
>>
>> 2] Change _writeTagAttribute to be protected
>>
>>
>> 3] All the injected property params are null when subclassing, so I 
>> need to make them protected instead of private and set them from my 
>> subclass.
>>
>>
>> Thanks,
>>
>> Gabrielle
>>
>>
>


Mime
View raw message