Hi,
Thank you for fast response and sorry for slow on my side (been busy
lately).
I have implemented AjaxResponseRenderer and it worked perfectly.
I agree that it may not be the best design that component change something
on the outside, which is why this approach works great. I would just catch
the same event in the both header and main page and using
AjaxResponseRenderer I would refresh both pages.
As for the layout. What I was trying to do is to put menu in the header and
since on menu selection I need to change the main page I needed to implement
something like this.
BTW is it possible to somehow change the order of the component responding.
It always load main page and then the component Header. So say for example
when javascript is loading from the main page
@Inject
@Path("context:scripts/models.js")
private org.apache.tapestry5.Asset jsModels;
@Environmental
private JavaScriptSupport rendering;
@SetupRender
void importJavaScript() {
rendering.importJavaScriptLibrary(jsModels);
}
it will render that before the stuff form the header(which contains scripts
for needed for every page). Should I be using different way to render js? It
would be good if say I wanted to override the function for specific page so
I put that function in the fail for that page and since it renders after the
function from the header it will override it
Cheers and thansk
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Event-propagation-tp5135568p5147596.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]