I am new to
JSF but I have worked a lot with ASP.NET and would like to ask a very simple question:
Is there a way to simulate or use a technology, which works like ascx files in.NET. I do not mean just including one
JSP in another JSP, I mean the full functionality of ASCX + event handling model.
Actually I would like to achive something like this:
A WebPage (the main container) consists of 3 sub pages (ASCX in .NET): Header, Main and Footer. When I click on commandButton in the Header I would like to fire an event, which should be catched by the WebPage (the container). then I would like somehow to tell the Footer page (I do not hink it should go with event here) to change something in the footer.
In ASP.NET Terms I will have something like this:
WebPage.aspx which contains one Header.ascx, one Main.ascx and one Footer.ascx.
When I press the button in Header.ascx it triggers an event (through the delegate model in .NET) and the WebPage.aspx instance will be notified. Then I just have to access the Footer.ascx instance from the WebPage.aspx instance and voilla.
So, can anybody help me to achieve the same goal using JSF?