0

init directives with JSP tags?

asked 2008-09-25 15:33:03 +0800

Ale gravatar image Ale
24

Hello,
for legacy purposes I need to embed a zk page inside a JSP and I would use the zk taglib but I've a problem: how do I "convert" these two directives?
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" ?>
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>

Any help would be appreciated,
Alex

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2008-09-28 02:53:44 +0800

iantsai gravatar image iantsai
2755 1

like this:


<%@ taglib uri="http://www.zkoss.org/jsp/zul" prefix="zk" %>

<zk:init use="org.zkoss.zkplus.databind.AnnotateDataBinderInit"/>

<zk:page>
...
</zk:page>


If you use ZK Studio, you can create a new_zul.jsp with these declarations automatically.

link publish delete flag offensive edit

answered 2008-09-29 08:00:15 +0800

Ale gravatar image Ale
24

I do not use zk studio (I'm a netbeans user), anyway thanks very much for the tip!

Alex

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-09-25 15:33:03 +0800

Seen: 253 times

Last updated: Sep 29 '08

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