Accessing page fragment from page

How is it possible to access the java class of the page fragment from the class of the page where I put the page fragment?

If I make changes to the components of the fragment, will it automatically be re-rendered, or is there something else I need to do to have it refreshed?

Thank you.

[305 byte] By [cstog] at [2007-11-26 9:35:15]
# 1

Hi!

You can work with components on page fragment from java source.

For example:

Menu - your page fragment name (accordingly name of page fragment's class).

Choice - name of combobox.

Menu menuFragmentBean = (Menu)getBean("Menu");

DropDown ddValue = menuFragmentBean.getChoice();

ddValue.getValue();

I hope it helps you.

Thanks,

Roman.

Grif at 2007-7-7 0:25:35 > top of Java-index,Development Tools,Java Tools...