PDA

View Full Version : [CLOSED] Panel's renderer property not documented



grubi
17 Aug 2010, 10:47 AM
Not sure if it is missing in documentation but from the source code of Panel I see that from within the doAutoLoad method the property renderer is used to be assigned to the Panel's Updater.

This is a good thing as it enables you to apply your own renderer to a Panel for Ajax style updates however it is not documented.

Hope it is safe to use this property anyway (will not be removed in the future).

Cheers
grubi.

Jamie Avins
18 Aug 2010, 10:42 AM
That is some quite old legacy code I would not rely on. I'd expect it will be removed in the next major release.

grubi
24 Aug 2010, 10:31 AM
Taking the risk of getting OT but what would be the way to assign your own rederer to a panel if that code would be removed?

It's not possible via Panel.getUpdater().setRenderer() because Panel.getUpdater() fails until the Panel was rendered. But when it has been rendered the Renderer's render() method was already called which is done inside the render event.

So a catch22 situation.

Thanks for your help.

Cheers
grubi.