Closed GoogleCodeExporter closed 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
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:
[deleted comment]
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
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
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
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:
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
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
Original issue reported on code.google.com by
eeino...@gmail.com
on 15 Sep 2012 at 3:52Attachments: