0

zk and webseal

asked 2012-01-06 19:13:59 +0800

ovazquezv gravatar image ovazquezv
39

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;

delete flag offensive retag edit

3 Replies

Sort by » oldest newest

answered 2012-05-03 22:03:06 +0800

M3g4r00t gravatar image M3g4r00t
3

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?

link publish delete flag offensive edit

answered 2012-05-07 00:54:48 +0800

samchuang gravatar image samchuang
4084 4

hi @ovazquezv

could you provide a reproducible environment (maybe VM) to download ?

link publish delete flag offensive edit

answered 2017-08-11 00:06:23 +0800

brayan gravatar image brayan
1

Hi Guys, someone used zk with webseal with success?

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2012-01-06 19:13:59 +0800

Seen: 284 times

Last updated: Aug 11 '17

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More