-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
This is really rare! I have this:
...
<z:toolbarbutton label="Go to Servlet" onClick="setIncludeSrc(\"myservlet\")" />
...
<z:center id="center" flex="true">
<z:include id="content" />
</z:center>
...
<z:zscript >
public void setIncludeSrc(String url){
content.setSrc(url);
}
</z:zscript>
...
When onClick is triggered, (I know that is passing through the method) nothing happens. but if I pass a JSP instead of a servlet, then this JSP is shown.
More bizarre: When I put content.setSrc("myservlet") outside the method, the servlet is displayed when loading the page (of course)
I tried different combinations, even plain ZUL page
Thanks in advance
Asked: 2010-05-18 19:40:18 +0800
Seen: 378 times
Last updated: May 18 '10