0

Include servlets not working on onClick

asked 2010-05-18 19:40:18 +0800

elongart gravatar image elongart
6

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

delete flag offensive retag edit
Be the first one to reply this discussion!
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: 2010-05-18 19:40:18 +0800

Seen: 378 times

Last updated: May 18 '10

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