ItEr26S03ContornaItEr25S03: Fixing problem at error page and not found page. It's needed to retrieve the I18n
This commit is contained in:
parent
6fcdc84b04
commit
3526c17fb3
2 changed files with 6 additions and 3 deletions
|
|
@ -20,8 +20,10 @@ public class PageForErrorOnEvent extends GenericForwardComposer {
|
|||
super.doAfterCompose(comp);
|
||||
logError();
|
||||
modalWindow = comp;
|
||||
I18n fellow = (I18n) modalWindow.getFellow("message");
|
||||
fellow.forceLoad();
|
||||
I18n i18NMessge = (I18n) modalWindow.getFellowIfAny("message");
|
||||
if (i18NMessge != null) {
|
||||
i18NMessge.forceLoad();
|
||||
}
|
||||
}
|
||||
|
||||
private void logError() {
|
||||
|
|
|
|||
|
|
@ -9,7 +9,8 @@
|
|||
</caption-->
|
||||
<vbox apply="org.navalplanner.web.error.PageForErrorOnEvent"
|
||||
sclass="errorbox">
|
||||
<i18n value="Run-time error: {0} . Error was registered and it'll be fixed as soon as possible." arg0="${requestScope['javax.servlet.error.message']}" />
|
||||
<i18n id="message"
|
||||
value="Run-time error: {0} . Error was registered and it'll be fixed as soon as possible." arg0="${requestScope['javax.servlet.error.message']}" />
|
||||
<hbox style="margin-left:auto; margin-right:auto">
|
||||
<button id="reload" label="${i18n:_('Reload')}" />
|
||||
<button id="quitSession" label="${i18n:_('Exit session')}"></button>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue