Newbee question - Interaction between Page Fragments

I am new to JSC and JSF (was hacking Struts apps for the past few years).

I have a page with two Page Fragments, one on top of the page (north) and one on the left (west) side. I like to place some kind of navigation in both. Main navigation should go in the top fragment and detail navigation to the left.

I placed some hyperlink components in the top fragment. The idea is that if one of this hyperlinks gets clicked the following should happen:

a) Background color of the clicked hyperlink should change

b) the content of the left fragment should change (reloaded with new content)

I can define an action on the Hyperlink component and it generates something like

public String MyHyperlink_action ()

{

// TODO: Replace with your code

return null;

}

in my HeaderFragment class.

How do I get access to the LeftFragment class from here? And how can I get access to the Page in which the fragments are contained?

Do I need to store references in the Request or Session bean or what is the preferred way of doing this ?

Many thanks for your help!

Tom

[1146 byte] By [Thomas_Bednarz] at [2007-11-26 11:56:38]
# 1
Hi!Try to look here: http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/pag efragments.html#05I think it will be helpful for You.Thanks,Roman.
Grif at 2007-7-7 12:16:12 > top of Java-index,Development Tools,Java Tools...
# 2
Hi Roman,Thanks for the hint. This seems to work also to access one Page Fragment from another Page Fragment. Great!Tom
Thomas_Bednarz at 2007-7-7 12:16:12 > top of Java-index,Development Tools,Java Tools...