czyjava | 4 Jul 03:23

DWR: error in convert from java object to javascript.

Using DWR ajax, I can convert java object to javascript object, but I can't convert an object in javascript to a java object. [code] 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"); }}); [/code] the error message 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.util.AjaxUtil 24] - save setting:[reference:c0-e2]--[reference:c0-e4]--[reference:c0-e6] I have defined in the dwr.xml Do I miss some something ? Thank.

View this message in context: DWR: error in convert from java object to javascript.
Sent from the DWR - Users mailing list archive at Nabble.com.
Thomas Manson | 3 Jul 09:53

DWR and firefox 3.5

Hi,


  did anyone notice any suspicious behaviour with firefox 3.5 and dwr ? 

  One of my team experience some random failure that do not occur on Internet Explorer.

  It might be something else (like firebug issues or our js code that fail, we didn't had time to dig this issue), but I just wanted to know if any of you did experience issues with firefox 3.5.

Regards,
Thomas.
Facebook | 3 Jul 04:08
Favicon

Andrew Du added you as a friend on Facebook...

Andrew added you as a friend on Facebook.  We need to confirm that you know Andrew in order for you to be friends
on Facebook.

To confirm this friend request, follow the link below:
http://www.facebook.com/n/?reqs.php&mid=b76616G2acc4f35G22e2317G2

Thanks,
The Facebook Team

___
This message was intended for users@... Want to
control which emails you receive from Facebook? Go to:
http://www.facebook.com/editaccount.php?notifications&md=ZnJpZW5kO2Zyb209Njk2OTExOTgxO3RvPTcxODAzMjY5Mw==&mid=b76616G2acc4f35G22e2317G2
Facebook's offices are located at 1601 S. California Ave., Palo Alto, CA 94304.
Facebook | 1 Jul 22:58
Favicon

Juliano Schroeder added you as a friend on Facebook...

Juliano added you as a friend on Facebook.  We need to confirm that you know Juliano in order for you to be
friends on Facebook.

To confirm this friend request, follow the link below:
http://www.facebook.com/n/?reqs.php&mid=b5cc25G2acc4f35G22be1a0G2

Thanks,
The Facebook Team

___
This message was intended for users@... Want to
control which emails you receive from Facebook? Go to:
http://www.facebook.com/editaccount.php?notifications&md=ZnJpZW5kO2Zyb209MTI1NzIxNzk0ODt0bz03MTgwMzI2OTM=&mid=b5cc25G2acc4f35G22be1a0G2
Facebook's offices are located at 1601 S. California Ave., Palo Alto, CA 94304.
Ashish Kulkarni | 1 Jul 22:50

How to build table from List<Hashtable> data

Hi

One of my method returns data as List<Hashtable<String, String>> data
How can i build a table from this sort of data, i tried as below

function showRouting(list)
{

document.getElementById("routing").style.visibility = "visible";
if(list !=null)
  {
    dwr.util.addRows("routingBody", list, cellFuncs,  { escapeHtml:false });
  }
}
var cellFuncs = [
  function(data) { return data.get('NYNAME'); },
   function(data) { return data.get('ABC'); },
   
 ];
Luca Santaniello | 1 Jul 12:44
Favicon

disable log

Hi,

I want disable log into my dwr methods. I use Jboss and I read many 
message into my console. For example:

12:37:19,000 INFO  [STDOUT]  INFO [http-0.0.0.0-8080-6] Exec: 
Bacheca.getMsg()

I want disable this message, is it possible?

Thanks

--

-- 
Luca Santaniello
mail:luca.santaniello@...
Anil Pali | 30 Jun 17:40

A little gift - Anil

Anil Pali belongs to Skoost and sent you a little gift.

Click below to collect your gift:
http://www.skoost.com/fun?users%40dwr%2Edev%2Ejava%2Enet/20949694/7


P.S. This is a safe and innocent gift that Anil Pali
sent from Skoost, the free goodies website.

This e-mail was sent to users@... on 6/30/2009 4:40:35 PM
on behalf of Anil Pali (anilpali12@...)
Nicolás Pace | 29 Jun 19:59

joe Walker in Ajax Experience

Hello,
I've received information from Ajaxian that Joe will be giving a talk
on 'Advanced Web Application Security'.
Joe, can you give us a sneak peak of your talk :D?
I live in Argentina, so i won't be able to assist :( , can we attend
via streaming???

Regards,

--

-- 
Ing. Nicolás Pace
http://www.linkedin.com/in/nickar/
http://www.jornadasdelsur.org.ar/
Facebook | 28 Jun 18:32
Favicon

Sylvie Villard sent you a message on Facebook...

Sylvie sent you a message.

Subject: Bahamas ?

"I knew a Alan F. Hughes. Would you be this one ?..."

To reply to this message, follow the link below:
http://www.facebook.com/n/?inbox/readmessage.php&t=1117173972850&mid=b198dfG2acc4f35G225f9b2G0

___
This message was intended for users@... Want to
control which emails you receive from Facebook? Go to:
http://www.facebook.com/editaccount.php?notifications&md=bXNnO2Zyb209MTA2NjgyMDQ4ODt0PTExMTcxNzM5NzI4NTA7dG89NzE4MDMyNjkz&mid=b198dfG2acc4f35G225f9b2G0
Facebook's offices are located at 1601 S. California Ave., Palo Alto, CA 94304.
JSP | 26 Jun 21:22
Favicon

DWR and Spring


I have a class with the @Service("TeamService") and the @Scope("session")
annotations specified.  These are obviously picked up by the annotation
processor - there is no xml definition of the bean.  I would like to put an
entry in my spring config file so that I can tell dwr to use this bean.  Is
there any way to do this?

Here is what I have tried so far without success:

<bean id="dwrTeamService" class="org.ibm.test.TeamServiceImpl"
scope="session" parent="TeamService" >
	<dwr:remote javascript="TeamService" >
		<dwr:include method="deleteTeam" />
		<dwr:include method="loadTeams" />
		<dwr:include method="saveTeam" />
	</dwr:remote>
	<aop:scoped-proxy />
</bean>

So the existing annotated bean has an id/name of TeamService whose
implementation class is org.ibm.test.TeamServiceImpl.  I am trying to expose
the deleteTeam, loadTeams, saveTeam operations from this class to dwr.

Note that the TeamService bean is session scope and so is the
dwrTeamService.

I get this error when I try it:
Caused by: org.springframework.beans.InvalidPropertyException: Invalid
property 'targetBeanName' of bean class [org.ibm.test.TeamServiceImpl]: No
property 'targetBeanName' found
	at
org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:382)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1288)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1249)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)

I don't have the luxury of redefining the target bean but I would like dwr
to expose its methods.  Is there a way to do this?
--

-- 
View this message in context: http://www.nabble.com/DWR-and-Spring-tp24225939p24225939.html
Sent from the DWR - Users mailing list archive at Nabble.com.
Jose Noheda | 25 Jun 16:09

A question on code quality

Hi,

Currently the dojo store is heavy on the server. For example, each time a user opens a combo and selects one value the store launches two requests, even though they always return the same values. I've compiled a cache solution based on dojo's ClientFilter but it's, well, far from perfect. It works fine as long as the client has all the items. Unfortunately that's not the way some widgets work as they download data in chunks. If more data is required later dojo fires another petition. Things go well until you start to mix different types of queries and sub-queries in the same store. The store knows the max number of results the query can retrieve but doesn't know if the records currently there match this specific query or were downloaded by another one.

So, for example, the store knows that:

  * The current query has already been executed or is a sub-query of an already cached query
  * This query can only return X records
  * The store has already Y records in memory
  * X < Y

But it lacks the (important) knowledge of if those Y records were actually obtained from the cached query or something completely unrelated.

The solution here is to call the server anyway or redesign the store to keep track of each query sent and the results it contained.

The other posibility is to assume that a sub-query of a cached query with a max number of records lower than the store totals has all its items right there. I know it's not technically correct but my guts say I'm going to complicate the final solution just to solve a theoretical problem that just won't happen easily (at least inside dojo widgets). On the other hand, I'm very reluctant to committ a code with such a flaw.

Opinions?

Regards

PS.- Use case that highlights the problem:

1.- Create a store
2.- Query with "m*"
3.- Query with "j*"
4.- Query with "ma*"

This last query is a sub-query of a cached query but the record count is unreliable as it may include some obtained from 3)

Gmane