-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=5048802
By: firedup0205
I have 3 page jsp
---Page1.jsp----
<x:include id="ABC" src="Page2.jsp"/>
---Page2.jsp---
<x:toolbarbutton label="Change" onClick="showNew()"/> <zk:zscript>
void showNew()
{
ABC.src = "Page3.jsp";
}
</zk:zscript>
But ABC in Page2.jsp is a tag of Page1.jsp How to do this? Help me, please !! ^^
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=5054870
By: zanyking
This is a JSP spec conflict problem.
what is the tag lib which X namespace indicated?
Is it a ZK JSP Tages or just another JSP tag library?
If it is other JSP tags than ZK, you can't do what you want through ZK, because the part of HTML generated by x:include is out of ZK's control.
If it is ZK JSP tags, then ZK only support including ZUL file not JSP.
in pure ZK world, you can use Execution.createComponents(java.lang.String uri, Component parent, java.util.Map arg).
please take a look at here:
http://www.zkoss.org/javadoc/3.0.2/zk/org/zkoss/zk/ui/Execution.html
Asked: 2008-06-23 08:40:59 +0800
Seen: 116 times
Last updated: Jun 26 '08