You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Udo Schnurpfeil <ud...@schnurpfeil.de> on 2010/07/13 12:14:49 UTC

Re: [Tobago] calling of renderer class

  Hallo Hani,

I'm not know exactly what you need. I assume, you have a sheet with 
headers, and the headers should have more than one row?
Do you needed wrapping of the text in one header element, or do you need 
to have two header elements (with border etc.?).

A feature like this will be added in Tobago 1.5, but is not scheduled yet.

Regards,

Udo

Am 25.06.10 10:38, schrieb Abushammala, Hani (EXTERN: FTP):
> Thanks for the Info.
>
> I`m trying now to extend the sheet renderer to visualize a label in two rows (or one label for each header row) in the header of the sheet.
> Is this the best way or is there another way to solve it?
>
>
> Regards,
> Hani
>
>
> -----Ursprüngliche Nachricht-----
> Von: Udo Schnurpfeil [mailto:udo@schnurpfeil.de]
> Gesendet: Freitag, 25. Juni 2010 07:46
> An: users@myfaces.apache.org
> Betreff: Re: [Tobago] calling of renderer class
>
> Hi,
>
> there is also an example-theme in the project
> (https://svn.apache.org/repos/asf/myfaces/tobago/branches/tobago-1.0.x/example/tobago-theme-example/)
> which overrides the InRenderer.
>
> Regards
>
> Udo
>
> Am 23.06.10 09:45, schrieb Volker Weber:
>> Hi Hani,
>>
>> the easiest way to overwrite a Renderer is to put your own int the
>> tobago-resource-path into your application.
>> e.g. if you use the speyside theme put your renderer, which must be
>> named SheetRenderer, into the package
>> <tobago-resource-path>/html/standard/speyside/tag/
>>
>>
>> Regards,
>>       Volker
>>
>> 2010/6/21 Abushammala, Hani (EXTERN: FTP)
>> <ex...@volkswagen.de>:
>>
>>> Another question.
>>>
>>> How can i configure another renderer for the tobago component like the sheet component.
>>>
>>> Any ideas or solutions?
>>>
>>> Regards,
>>> Hani
>>>
>>> -----Ursprüngliche Nachricht-----
>>> Von: Abushammala, Hani (EXTERN: FTP) [mailto:extern.hani.abushammala1@volkswagen.de]
>>> Gesendet: Montag, 21. Juni 2010 09:52
>>> An: MyFaces Discussion
>>> Betreff: [Tobago] calling of renderer class
>>>
>>> Hi,
>>>
>>> I`ve developed a component to create a dynamic panel with a renderer
>>> class, but the renderer could not be called. The rendering works if the
>>> compoent class renders the output stream.
>>> I don`t know how i can configure the renderer for the new component in
>>> tobago.
>>>
>>>
>>> faces-config.xml:
>>>
>>>        <component>
>>>          <description>The dynamic panel component.</description>
>>>          <display-name>DynamicPanel</display-name>
>>>          <!-- The name for registering the component. -->
>>>          <component-type>extn.DynamicPanel</component-type>
>>>          <!-- The implementation class. -->
>>>          <component-class>web.components.UIDynamicPanel</component-class>
>>>          <component-extension>
>>>              <renderer-type>extn.DynamicPanelRenderer</renderer-type>
>>>          </component-extension>
>>>      </component>
>>>
>>>      <render-kit>
>>>          <renderer>
>>>              <description>Renderer for DynamicPanel.</description>
>>>              <component-family>extn.DynamicPanelFamily</component-family>
>>>              <renderer-type>extn.DynamicPanelRenderer</renderer-type>
>>>
>>> <renderer-class>web.components.DynamicPanelRenderer</renderer-class>
>>>          </renderer>
>>>      </render-kit>
>>>
>>>
>>> Regards,
>>> Hani
>>>
>>>
>>>
>>>
>>>
>>
>>