<< Canvas element for IE | Home | The strange things people look for on web-sites >>

DWR version 1.0RC3 Released

DWR version 1.0 Release Candidate 3 has been released. DWR (Direct Web Remoting) is easy Ajax for Java.

The download contains a number of small bug fixes. The biggest change since the last announced release is permissions to the BeanConverter to restrict the properties that are converted.

Please help and test it out in case we need to make any last changes before we release 1.0 final.



Re: DWR version 1.0RC3 Released

Your comments on examples and documentation are heeded, it just takes time. There is a lot of good stuff already though:

http://getahead.ltd.uk/dwr/documentation.html

We've just been discussing jsp tags on the mailing list and everyone agreed that we should not add them to DWR. We took a look at AjaxTags and decided that with the exception of the suggest tag, DWR already had a DWRUtil function to do the same thing or that we didn't want to include an equivalent anyway.

We like it that DWR has a fairly crisp definition of what it does, so it sticks to the mantra "Do one thing and do it well".

Unless your app is trivial you will be needing Javascript, so there is a good arguement that says "keep all in Javascript". The coding cost of a DWRUtil.setValues() call is no greater than a JSP tag that does the same thing, but it is a lot more versatile because it doesn't restrict your choice of view technology.

Re: DWR version 1.0RC3 Released

Hai JOE, Thanks for u r continuous support.I am getting a the following error java.lang.IllegalArgumentException: Missing bean opener: { at uk.ltd.getahead.dwr.convert.BeanConverter.convertInbound(BeanConverter.java:133) at uk.ltd.getahead.dwr.impl.DefaultConverterManager.convertInbound(DefaultConverterManager.java:137) at uk.ltd.getahead.dwr.impl.ExecuteQuery.execute(ExecuteQuery.java:113) at uk.ltd.getahead.dwr.impl.DefaultProcessor.doExec(DefaultProcessor.java:552) at uk.ltd.getahead.dwr.impl.DefaultProcessor.handle(DefaultProcessor.java:88) at uk.ltd.getahead.dwr.DWRServlet.doPost(DWRServlet.java:178) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) if use getValues().THe first time i call the error does not come but comes when i call it without any refresh Thanks Aniesh U.K

Re: DWR version 1.0RC3 Released

Please take a look again at issue 67, as I've posted a sample app that recreates the bug.

Re: DWR version 1.0RC3 Released

(JOE: I edited this comment to get rid of the stack trace that just made everything wrap really badly) I see all people talking about the ease and efficiency of using DWR. But unfortunately I'm facing an annoying problem of configuring DWR with spring framework. I downloaded DWR 1.0RC3 and followed the instructions on the site but i'm getting the following error: ... java.lang.NullPointerException at uk.ltd.getahead.dwr.create.SpringCreator.getInstance(SpringCreator.java:102) at uk.ltd.getahead.dwr.create.SpringCreator.getType(SpringCreator.java:72) Would u please give me a complete example of how to configure DWR with springframework. Note: I'm using multiple application context files (i don't know if this makes any difference) Thanks in advance

Re: DWR version 1.0RC3 Released

Anon:

The problem seems to be that you don't have a Spring factory configured for use with DWR. Have you seen the spring docs on the DWR site?.

Re: DWR version 1.0RC3 Released - Missing Spring

Hi. I am also getting a NullPointerException on SpringCreator.getInstance(SpringCreator.java:102) although I have had Spring MVC installed from day one as ContextLoaderListener. I expected the factory to be found either through [return RequestContextUtils.getWebApplicationContext(request, srvCtx);] or [return WebApplicationContextUtils.getWebApplicationContext(srvCtx);] but not, it seems. Anyway, I'm off to debug the SpringCreator's behaviour with setup and Eclipse/Tomcat. Thanks

Re: DWR version 1.0RC3 Released

Hi there I am struggling to get my code to work... I have a bean with a few getters/setters which I can call just fine, butr as soon as want to use ExecutionContext in the class I get java.lang.NoClassDefFoundError: uk/ltd/getahead/dwr/ExecutionContext. My dwr.jar file is in the WEB-INF/lib directory and my compiled bean is in the WEB-INF/classes directory... Please help Thankyou in advance

Re: DWR version 1.0RC3 Released

I was following the "Getting Started" instructions (http://getahead.ltd.uk/dwr/getstarted), but I noticed the following message in the log: [DefaultConfiguration] Missing classdef for creator 'script'. Failed to load uk.ltd.getahead.dwr.create.ScriptedCreator. Cause: org/apache/bsf/BSFManager It wasn't immediately obvious, but it seems that there is a dependency on BSF that isn't stated. Also, it would be great if you created the canonical "Hello, world." tutorial, instead of the most trivial example. Other than that, I'm excited.