[picocontainer-dev] Progress on PicoWebRemoting
Paul Hammant <[email protected]> Mon, 3 Nov 2008 08:40:40 -0800
| Newsgroups | gmane.comp.java.picocontainer.devel |
|---|---|
| Message-ID | <[email protected]> |
( for the jquery webapp )
Access http://localhost:8080/remoting-jqueryemail-webapp/pwr/Mailbox
and see -
{"methods":{"string":["send","pete","delete","read","messages"]}}
Access http://localhost:8080/remoting-jqueryemail-webapp/pwr/Mailbox/read
and see -
HTTP ERROR: 400
Parameter 0 of 'public java.lang.Object org.picocontainer.web.sample.jqueryemailui.Mailbox.read
(java.lang.String,java.lang.String)' cannot be null
RequestURI=/remoting-jqueryemail-webapp/pwr/Mailbox/read
Access http://localhost:8080/remoting-jqueryemail-webapp/pwr/Mailbox/read?msgId=1&view=inbox
and see -
{"MessageData":{"id":1,"from":"J Query","to":"Gil
Bates","subject":"Nice Example","message":"Very nice example
application you've created","sentTime":"2008-11-03 08:33:25.193
PST","read":true}}
The app could be cut over from the home-grown JSON that it has now, to
a PWR provided one.
I paired with Pete on Sunday, to talk through the features.
The composition is a little bit verbose when you're mapping query-
string params to method parameters :- http://svn.codehaus.org/picocontainer/java/2.x/trunk/web/examples/jquery-email/src/java/org/picocontainer/web/sample/jqueryemailui/JQueryWebappComposer.java
Thoughts?
- Paul