Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Frameworks
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Other Application Frameworks
DWR can't convert an object in javascript to a java object.
Edward Chen
Ranch Hand
Posts: 798
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Using DWR ajax, I can't convert an object in javascript to a
java
object.
var setting = {id: item.Id, name: item.name, val:item.val}; //wrong, data is '[reference:c0-e2]' var setting = {id:'1200', name: 'name', val:'ssss'}; //correct AjaxUtil.saveSetting(setting, {callback:function(data){ alert("data is saved through DWR"); }});
The error debug information is
DEBUG [org.directwebremoting.dwrp.BaseCallMarshaller 43] - Environment: c0-e6=string:12ssd, c0-e5=Array:[reference:c0-e6], c0-e1=Array:[reference:c0-e2], c0-e2=string:1000, c0-e3=Array:[reference:c0-e4], c0-e4=string:ddd, INFO [org.directwebremoting.impl.DefaultRemoter 51] - Exec: AjaxUtil.saveSetting() DEBUG [org.directwebremoting.impl.DefaultRemoter 43] - --Object found in session. id=0 DEBUG [com.abs.util.AjaxUtil 24] - save setting:[reference:c0-e2]--[reference:c0-e4]--[reference:c0-e6]
Did I miss something ?
Thanks.
Bear Bibeault
Sheriff
Posts: 67746
173
I like...
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
DWR is a lot less about HTML and JavaScript than it is its own framework, so I've moved this off to the App Frameworks forum. That said, I do not think that there are many DWR devotees who frequent here.
[
Asking smart questions
] [
About Bear
] [
Books by Bear
]
Don't get me started about those stupid
light bulbs
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
DWR error
Custom keys in tree map
dynmicall adding row
Clarifications/Suggestions in Java
xml and java
More...