0

Problem with new databind Zk 6

asked 2012-01-23 13:54:54 +0800

mgvv gravatar image mgvv
127 2

Hi,

I'm using new databind in Zk6.
In my project i have the following error:

org.zkoss.zk.ui.UiException: Array of attribute values not allowed, [both, both]
	at org.zkoss.zkplus.databind.DataBinder.loadPropertyAnnotation(DataBinder.java:615)
	at org.zkoss.zkplus.databind.DataBinder.addBinding(DataBinder.java:274)
	at org.zkoss.zkplus.databind.AnnotateDataBinder.loadComponentPropertyAnnotationByAnnotName(AnnotateDataBinder.java:425)
	at org.zkoss.zkplus.databind.AnnotateDataBinder.loadComponentPropertyAnnotation(AnnotateDataBinder.java:413)
	at org.zkoss.zkplus.databind.AnnotateDataBinder.loadAnnotations(AnnotateDataBinder.java:404)
	at org.zkoss.zkplus.databind.AnnotateDataBinder.loadAnnotations(AnnotateDataBinder.java:408)
	at org.zkoss.zkplus.databind.AnnotateDataBinder.loadAnnotations(AnnotateDataBinder.java:408)
	at org.zkoss.zkplus.databind.AnnotateDataBinder.loadAnnotations(AnnotateDataBinder.java:408)
	at org.zkoss.zkplus.databind.AnnotateDataBinder.loadAnnotations(AnnotateDataBinder.java:408)
	at org.zkoss.zkplus.databind.AnnotateDataBinder.loadAnnotations(AnnotateDataBinder.java:408)
	at org.zkoss.zkplus.databind.AnnotateDataBinder.loadAnnotations(AnnotateDataBinder.java:408)
	at org.zkoss.zkplus.databind.AnnotateDataBinder.loadAnnotations(AnnotateDataBinder.java:408)
	at org.zkoss.zkplus.databind.AnnotateDataBinder.init(AnnotateDataBinder.java:399)
	at org.zkoss.zkplus.databind.AnnotateDataBinder.<init>(AnnotateDataBinder.java:303)
	at vipconnect.trade.controller.ContratosWindow.doAfterCompose(ContratosWindow.java:135)

Please help,

Thanks in advance,

Miguel Goncalves

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2012-02-22 03:36:13 +0800

edwardsun gravatar image edwardsun
6

I got the same problem. Any help?

link publish delete flag offensive edit

answered 2012-02-22 14:46:46 +0800

mgvv gravatar image mgvv
127 2

If you extend zk component that support databind you don't need to define databind annotations in lang-addon.xml.

I remove annotations from lang-addon.xml and this solve my problem.

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: 2012-01-23 13:54:54 +0800

Seen: 311 times

Last updated: Feb 22 '12

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