Ajax request is not sent
protlet container is a very particular environment which implementation might use a lot Javascript code to do.
Could you provide what kind of portlet container you are using? as what I know, zk support liferay.
I'm using Liferay 5.2.3
Hi
I have tested with ZK5 with Liferay 5.2.3, and tested 2 portlet, 1 is gird, 1 is tree, and it work fine. Do you also use ZK5 with Liferay ? it should work too
my version is 3.6.3
and I cannot upgrade to 5.0.0 since we have a lot of things done in 3.6.3
any ideas?
Hi
when you operate on tree zul, when you click node, do it send ajax request ? I test on ZK 363 demo, it look like when I click node, it don't need to send ajax request. Could you provide your simple zul code ? and have you test these zul page directly without using Liferay portlet ? to see it it work correctly
if using the model, an ajax request is sent every time you open a new node. why it's not being sent in my case still remains unknown. :( i'll provide my code in some time.
by the way, may I ask the reason you can't upgrade to ZK5,
Do you have many custom component in ZK3 ? that's the only reason I could think of, it's just my curiosity
yes, you're right, we do have many custom components
to reproduce this problem one needs to place components on two different zk pages within the same jsp page, eg:
<z:page>
<z:grid ... >
</z:page>
<z:page>
<z:tree ... >
</z:page>Hi
ZK 3.6.4 has release this week, could you try it and see it the problem remain ? if the problem remains, please report bug here
hi, i tried 3.6.4 and got the same result. after spending some time experimenting with two component, i found out that it's not enough to have them being placed on separate zk pages. the problem arises when we use the components in two separate portlets. if two components are used within the same portlet, even on two zk pages, everything works fine. one more observation is that if i use a tree renderer where all treeitems are opened everything also works fine - i guess for then there's no need in sending ajax requests.
Hi
I am a little confused, do you mean the code above will execute correctly, right ?
<z:page>
<z:grid ... >
</z:page>
<z:page>
<z:tree ... >
</z:page>
and the problem will happen when you use component in two different portlets, right ? for example
portlet 1:
<zk> <tree>.... </zk>
portlet 2:
<zk> <grid>... </zk>
and if you use tree renderer , there's no problem at all ?
yes, it occurs only when we have in portlet 1
<zk> <tree>.... </zk>
and in portlet2
<zk> <grid>... </zk>
if we use a tree renderer where we set explicitly Treeitem.setOpen(true) then it works. If Treeitem.setOpen(false) it doesn't work.
hi. i've posted a bug. 2976395.
ZK - Open Source Ajax Java Framework
Hi, I'm working on two jsr168 portlets, both use zk. The first portlet uses <z:tree> to display a tree of categories with their subcategories, the second uses <z:grid>.
Here's a problem I've got:
if both portlets present on the same page it's impossible to open tree nodes to view their subnodes. No errors, no exceptions. Ajax request is just simply not being sent. If having only one portlet on the page everything works fine.
Did anyone have the same problem?