First time here? Check out the FAQ!
asked 2010-02-05 03:49:45 +0000kar
I have a problem with the buttons in the navigation bar.
My application is very similar to the one of the index.zul ... with navigation buttons on the left side.
My problem is related to the button and how to reload the page.
Some pages have got links inside that open other page inside the center component...
Now ... if I press the navigation menu button (the same) I would love to reload the page ... but this do not happen ... I have to load a different page and get back on the other to reopen the page...
What shall I do to correct this behavior?
Thanks in advance
answered 2010-03-24 10:48:42 +0000alexricci
the problem that Executions.sendRedirect() has is that I cannot specify the target div of the page that I want to update with my content.
The code used by kar is like the following:
Executions.createComponents(myLink, centerDiv, sessionScope);
where myLink is the url to load, centerDiv is a page specific div to load the content into, and sessionScope is the Map to get some parameter from.
Now, Executions.createComponents doesn't refresh probably because component is already created, and must only be reloaded...so i'd like to know if there's any API to realize a similar requirement.
answered 2010-03-26 06:29:06 +0000alexricci
I've got a menu that load the specific component and calls the Executions.createComponents(myLink, centerDiv, sessionScope);
So I've tried to invalidate my centerDiv, even before or after Executions.createComponents, but nothing happens... which component do u mean to be invalidated?
answered 2010-03-28 04:03:51 +0000alexricci
I already had a centerDiv.getChildrens().clear();...nothing changes...
answered 2010-03-31 08:12:41 +0000alexricci
What I mean is that no component is reloaded...no viewWillAppear is recalled as I expect...
answered 2010-04-01 05:37:15 +0000alexricci
You're right Terry, probably I didn't explain very well.
My problem is that my app has a collection of menu items, on the left side of the layout, and a center content that should be filled every time i click on a specific button, with its corresponding ZUL component. So my problem is that one:
- I can fill correctly the center content with my ZUL component A clicking on its relative button, calling Execute.createComponent,
- I click on a second time that button, and another component B is loaded in the center content
- I click the second time on my first button -> my component A is not shown anymore.
So I cannot reload a component after another component has been loaded.
Asked: 2010-02-05 03:49:45 +0000
Seen: 719 times
Last updated: Apr 08 '10