0

How to set src of parents page?

asked 2008-06-23 08:40:59 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


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 !! ^^

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2008-06-26 02:41:03 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


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


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: 2008-06-23 08:40:59 +0800

Seen: 116 times

Last updated: Jun 26 '08

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