-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi everybody
Im building an app with ZK + Spring + MyBatis
The principal page has the next structure:
<code>
<?page title="Mi Portal" encoding="ISO-8859-1"?>
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c" ?>
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" root="./miPortalDiv"?>
<div id="miPortalDiv" width="100%" apply="${miPortalController2}"
height="100%">
<attribute name="onCreate">
<![CDATA[
Iterator enu = Executions.getCurrent().getHeaderNames();
System.out.println( "******* > Head mP2 < *****************" );
for(Object s = new Object();enu.hasNext();s = enu.next())
System.out.println( "ZZZ>>> " + s + " : " + Executions.getCurrent().getHeader( s.toString() ) ) ;
javax.servlet.http.HttpSession sess = (javax.servlet.http.HttpSession)session.getNativeSession();
Enumeration enu2 = sess.getAttributeNames();
System.out.println( "******* > Session mP2< *****************" );
for( Object s = new Object() ; enu2.hasMoreElements() ; s = enu2.nextElement() )
System.out.println( "ZZZ>>> " + s + " : " + session.getAttribute( s.toString() ) ) ;
Map attributos = Executions.getCurrent().getAttributes();
Iterator keys = attributos.keySet().iterator();
System.out.println( "******* > request mP2< *****************" );
for( Object s = new Object() ; keys.hasNext() ; s = keys.next() )
System.out.println( "ZZZ>>> " + s + " : " + attributos.get( s.toString() ) ) ;
System.out.println( "****************************************" );
]]>
</attribute>
<script type="text/javascript">
function loadIFrame(url){
document.workareaFrame.src=url;
}
</script>
<timer id="timerKeepAliveSession" repeats="true" delay="600000"/>
<borderlayout id="miPortalLayout" >
<north id="northPrincipal" collapsible="true" height="50px">
<include src="/content/intranetHeader.zul" />
</north>
<west id="menuArea" collapsible="true" title="${c:l('miportal.menu.title')}" width="220px" tooltiptext="${c:l('miportal.menu.title')}" >
<tabbox mold="accordion" width="220px" height="100%" >
<tabs>
<tab id="aplicacionesTab" label="${c:l('miportal.menu.aplicaciones.title')}" image="/images/icons/menu/aplicaciones001.png" />
<tab id="funcionesTab" label="${c:l('miportal.menu.funciones.title')}" image="/images/icons/menu/funciones001.png" onCreate="self.setVisible(false);"/>
<tab id="delegacionesTab" label="${c:l('miportal.menu.delegaciones.title')}" image="/images/icons/menu/delegaciones001.png" onCreate="self.setVisible(false);"/>
</tabs>
<tabpanels >
<tabpanel id="aplicacionesTabpanel" style="overflow:auto;">
<menubar id="menubarAplicaciones"
style="background: WHITE top; border: 0:"
scrollable="true"
orient="vertical"
width="100%"
height="100%">
</menubar>
</tabpanel>
<tabpanel id="funcionesTabpanel" style="overflow:auto;" onCreate="self.setVisible(false);">
<menubar id="menubarFunciones"
scrollable="true"
orient="vertical"
width="100%">
</menubar>
</tabpanel>
<tabpanel id="delegacionesTabpanel" onCreate="self.setVisible(false);">
<vbox width="100%">
<combobox id="delegacionesCombobox"
model="@{miPortalDiv$composer.delegacionesUsuario}"
selectedItem="@{lmiPortalDiv$composer.selectedDelegacionUsuario}"
value="@{miPortalDiv$composer.selectedDelegacionUsuario, save-when:delegacionesCombobox.onSelect}"
width="185px"
>
<comboitem self="@{each='delegacionUsuario'}"
label="@{delegacionUsuario.nbUsuario}"
value="@{delegacionUsuario}"></comboitem>
</combobox>
</vbox>
</tabpanel>
</tabpanels>
</tabbox>
</west>
<center id="workArea" title="${c:l('miportal.aplicacion.title')}" >
<iframe id="iframeArea" name="workareaFrame"
width="100%" height="100%" style="border: 1px solid gray"
>
</iframe>
</center>
<east id="noticiasArea" collapsible="true" title="${c:l('miportal.noticias.title')}" width="30%"></east>
<south id="southPrincipal" collapsible="false" height="20px">
<include src="/content/intranetFooter.zul" />
</south>
</borderlayout>
<popup id="menuPopup" ><label value="${c:l('miportal.menu.title')}" /> </popup>
</div>
</code>
I have a menubar that populate dinamically, and when i click on any menuitem it loads the iframe called iframeArea with other app's. All app's lives on the same clustered WAS server, but request go throw WebSeal security. After first click session timeouts.
Question, is what is happening with session??
regards;
Plase help me i have the same problem:
The zksandbox don´t work with webseal, by example:
* I deployed ear in: http://was8/zksandbox
* I use web seal: https://webseal/test/zksandbox
When i click in samebody component the page display timeout message.
Any solutions for this?
Asked: 2012-01-06 19:13:59 +0800
Seen: 284 times
Last updated: Aug 11 '17