ZK Studio 0.9.5: Problems using ZUL Visual Editor

asked 2009-08-27 09:55:20 +0800

Emanuele gravatar image Emanuele
117 1

Try following ZUL code:

<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
<window title="${c:l('myTitle')}" border="normal">
	<label value="${c:l('myContentLabel')}"/>

In this case, ZUL Visual Editor shows an empty area (but no components) beacuse I'm reading labels from an external file. Beacuse in my application almost all my labels are contained in an external file, for me ZUL Visual Editor is very unesuful. Could Visual Editor be changed to accept this type of ZUL file? Not neccessarily showing the external label, but at least showing the components with empty labels.

Try another piece of code:
<?taglib 	uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
<window title="myTitle" border="normal" use="MyWindow" myProperties="xxx">
	<label value="MyContent"/>

In this case an error like this is shown: "Fail to render: Method setMyProperties, not found for class org.zkoss.zul.Window". But method setMyProperties() is defined in MyWindow class which has org.zkoss.zul.Window as parent (not directly, the relation is MyWindow extends MyWindow1 extends MyWindow2 extends org.zkoss.zul.Window).

Again, because in my application almost all window has personalized properties, ZUL Visual Editor is not useful for me. May you make a workaround to solve this leak?

Thanks for all!

delete flag offensive retag edit

2 Replies

Sort by » oldest newest

answered 2009-08-28 00:13:00 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16

Hmmmmmmmmm, only to 1. Can you imagine how it should goes that the editor should know the path of the external file? What should the editor knows about it?

link publish delete flag offensive edit

answered 2009-08-31 07:27:34 +0800

Emanuele gravatar image Emanuele
117 1

Ok, I understand that it may be not so immediately to implement. But why not showing at least components without external labels? Or why not showing at least the component created by superclass of personalized components?

It may be a quickier solution...

Thanks in any case for your work!

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




Asked: 2009-08-27 09:55:20 +0800

Seen: 855 times

Last updated: Aug 31 '09

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