users@woodstock.java.net

Re: What about html renderer in woodstock 4.1?

From: Dan Labrecque <Dan.Labrecque_at_Sun.COM>
Date: Tue, 04 Dec 2007 08:01:28 -0800

FYI, many components have been rewritten and no longer work properly
with these old renderers. They do not support any of the new client-side
APIs, Ajax, or any of the latest bug fixes. (In fact, I'm certain
calendar does not work when the old HTML renderer is used.) We use the
HTML renderers only to display design-time components in for Visual Web
Pack where JavaScipt functionality is not required. If you insist on
creating a hack to use them as is, you're treading in uncharted waters.

Regarding performance, you may want to download Woodstock 4.1.1 when it
becomes available. Or, obtain a nightly build of 4.2. The latest code
has some performance enhancements that help with caching and download
speeds, particularly when HTML tables are involved.

If you're interested in reading about some of the performance
enhancments, please see the thread below.

https://woodstock.dev.java.net/servlets/ProjectForumMessageView?forumID=2879&messageID=21687

Dan

matroska wrote:
> I extracted webui-jsf.jar then change faces-config.xml in META-INF to force
> html renderer. In fact if you see into faces-config.xml you will find three
> renderer for each component:
> -html renderer
> -widget renderer
> -ajax renderer
> All you have to do is to substitute html renderer to widget renderer in this
> way:
>
> <renderer>
> <component-family>com.sun.webui.jsf.TextField</component-family>
>
> <renderer-type>com.sun.webui.jsf.widget.TextField</renderer-type>
>
> <renderer-class>com.sun.webui.jsf.renderkit.html.TextFieldRenderer</renderer-class>
> </renderer>
>
> than recreate the jar and works..but with problems..in fact it seems that
> html renderers aren't updated so you will find error in themes for example.
>
>
> jsr wrote:
>
>> What did you change in the faces-config.xml to allow html rendering?
>>
>> I'm holding off on upgrading my 5.5.1 project to 6.0 because of the
>> performance issues with the client side rendering. If there is some hack
>> to enable the old html renderers then I might be able to upgrade and at
>> least use the new editor features in 6.0.
>>
>> Thanks
>> Jeff
>>
>>
>> matroska wrote:
>>
>>> Hi,
>>>
>>> I have seen html renderers in woodstock 4.1 source so i have made a
>>> little hack in faces-config.xml file to enable it. Is there a better way
>>> to use them? Are that renderers deprecated? I also have noticed that the
>>> theme is not correctly applied so I ask you if html renderers are
>>> mantained or not.
>>>
>>> Thanks in advance
>>> Tobia Loschiavo
>>>
>>>
>>
>
>