Fix regression introduced in c05150b234

Most pages only handled entry points through a bookmark change. Now
they handle requests with matrix parameters too.

FEA: ItEr74S04BugFixing
This commit is contained in:
Óscar González Fernández 2011-05-10 12:11:39 +02:00
parent 0dfea240ee
commit 086c1891dd
8 changed files with 14 additions and 7 deletions

View file

@ -373,6 +373,8 @@ public class Planner extends HtmlMacroComponent {
this.visibleChart = configuration.isExpandPlanningViewCharts();
((South) getFellow("graphics")).setOpen(this.visibleChart);
newContext.getDiagramGraph().enforceAllRestrictions();
}
private void resettingPreviousComponentsToNull() {

View file

@ -303,7 +303,12 @@ public class URLHandler<T> {
return false;
}
public <S extends T> void registerListener(final S controller, Page page) {
public <S extends T> void register(final S controller, Page page) {
registerBookmarkListener(controller, page);
applyIfMatches(controller);
}
public <S extends T> void registerBookmarkListener(final S controller, Page page) {
page.addEventListener("onBookmarkChange", new EventListener() {
@Override

View file

@ -379,7 +379,7 @@ public class MultipleTabsPlannerController implements Composer,
goToCompanyScheduling();
planningTab.toggleToFeedback();
}
handler.registerListener(this, comp.getPage());
handler.registerBookmarkListener(this, comp.getPage());
}
private TabsRegistry getTabsRegistry() {

View file

@ -338,7 +338,7 @@ public class WorkerCRUDController extends GenericForwardComposer implements
final URLHandler<IWorkerCRUDControllerEntryPoints> handler = URLHandlerRegistry
.getRedirectorFor(IWorkerCRUDControllerEntryPoints.class);
handler.registerListener(this, page);
handler.register(this, page);
getVisibility().showOnly(listWindow);
initFilterComponent();
setupFilterLimitingResourceListbox();

View file

@ -267,7 +267,7 @@ public class OrderTemplatesController extends GenericForwardComposer implements
final URLHandler<IOrderTemplatesControllerEntryPoints> handler = handlerRegistry
.getRedirectorFor(IOrderTemplatesControllerEntryPoints.class);
handler.registerListener(this, page);
handler.register(this, page);
setBreadcrumbs(comp);
}

View file

@ -86,7 +86,7 @@ public class UserCRUDController extends GenericForwardComposer implements
final URLHandler<IUserCRUDController> handler = URLHandlerRegistry
.getRedirectorFor(IUserCRUDController.class);
handler.registerListener(this, page);
handler.register(this, page);
getVisibility().showOnly(listWindow);
passwordBox = (Textbox) createWindow.getFellowIfAny("password");

View file

@ -173,7 +173,7 @@ public class WorkReportCRUDController extends GenericForwardComposer implements
comp.setVariable("controller", this, true);
final URLHandler<IWorkReportCRUDControllerEntryPoints> handler = URLHandlerRegistry
.getRedirectorFor(IWorkReportCRUDControllerEntryPoints.class);
handler.registerListener(this, page);
handler.register(this, page);
initCurrentList();
if(listType != null) {
//listType is null in reports -> work report lines

View file

@ -141,7 +141,7 @@ public class WorkReportTypeCRUDController extends GenericForwardComposer
comp.setVariable("controller", this, true);
final URLHandler<IWorkReportTypeCRUDControllerEntryPoints> handler = URLHandlerRegistry
.getRedirectorFor(IWorkReportTypeCRUDControllerEntryPoints.class);
handler.registerListener(this, page);
handler.register(this, page);
getVisibility().showOnly(listWindow);
}