thomashan / zkgrails

Automatically exported from code.google.com/p/zkgrails
0 stars 0 forks source link

Problem upgrading from 2.0.0.M7 to 2.0.4 #282

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Which version of ZKGrails you're using? 2.0.4 On what operating system? Windows 
7

Which version of Grails you're using?
2.0.1

What steps will reproduce the problem?
Upgrading the plugin from ZKGrails 2.0.0.M7 to 2.0.4

What is the expected output? What do you see instead?
Compilation goes OK, but upon calling index.zul I'm getting an error message 
that says:
| Error 2012-09-15 12:49:21,041 [http-bio-8080-exec-10] ERROR 
[/obras].[zkLoader]  - Servlet.service() for servlet [zkLoader] in context with 
path [/obras] threw exception
Message: class java.util.ArrayList cannot be converted to interface 
org.zkoss.zul.GroupsModel.

Works fine if I switch back to ZK 2.0.0.M7.

Please provide any additional information below. Attaching a test case to 
reproduce it is preferable.

Original issue reported on code.google.com by eeino...@gmail.com on 15 Sep 2012 at 3:52

Attachments:

GoogleCodeExporter commented 8 years ago
Thank you for reporting.
Could you please attach the code that caused this error?

Original comment by chanwit on 15 Sep 2012 at 5:21

GoogleCodeExporter commented 8 years ago
I'm attaching the index.zul and IndexComposer.groovy files. 
Hope this helps. Thanks.

Original comment by eeino...@gmail.com on 15 Sep 2012 at 8:49

Attachments:

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
After some experimenting seems that the automatic data binding has some problem 
in the newer version.

This worked before but now it displays the ArrayList conversion error message:

Usuarios.zul
<window id="winUsuarios" apply="obras.UsuariosComposer">
<listbox id="idLstUsuarios" model="@{winUsuarios$composer.usuarios} />
</window>

UsuariosComposer.groovy
def getUsuarios(){
   def users = User.listOrderByUsername() //returns list of users
}

Regards

Original comment by eeino...@gmail.com on 16 Sep 2012 at 12:03

GoogleCodeExporter commented 8 years ago
hi, i'm also experiencing similiar situation.
i've downloaded Roberto Guerrera's zkgrails mvvm sample app from 
https://github.com/uris77/zk-mvvm
the original sample app uses grails 2.0.3 and zk 2.0.0.M7.
i'm using grails 2.1 and and upgrade to zk 2.0.4 on Ubuntu 12.04
i got this error when accessing com/example/list.zul :
"cannot convert [] of type class java.util.ArrayList to interface 
org.zkoss.zul.ListModel"
switching back to 2.0.0.M7 will make the sample app fine.
upgrading to 2.0.4 or 2.1.0.M1 reproduces the problem again.

Original comment by zulkifli...@gmail.com on 28 Sep 2012 at 12:19

GoogleCodeExporter commented 8 years ago
I am running Uris'77 zk-mvvm and there's nothing wrong with 2.1.0.M2 (ZK 6.5).
The code is running fine.

Please re-confirm this again as I am not sure it's ZK or ZKGrails-related 
problem.
It's probably solved in ZK 6.5 or you may have this problem because of caching 
jars.

Original comment by chanwit on 28 Sep 2012 at 12:54

GoogleCodeExporter commented 8 years ago
Here's screenshot running Uris77 zk-mvvm with ZKGrails 2.1.0.M2 and Grails 
2.1.1. Nothing is modified except the version of ZKGrails.

Original comment by chanwit on 28 Sep 2012 at 12:59

Attachments:

GoogleCodeExporter commented 8 years ago
hi chanwit, i confirm that uris77 zk-mvvm is running fine after upgrading 
from : grails 2.1.0, zk 2.0.4
to   : grails 2.1.1, zk 2.1.0.M2
thx

Original comment by zulkifli...@gmail.com on 28 Sep 2012 at 9:56

GoogleCodeExporter commented 8 years ago
It's likely a ZK issue that's been fixed in 6.5 then.
I closed this as WontFix.

Thank you all for reporting again.

Original comment by chanwit on 29 Sep 2012 at 3:27