Voss
2007-Nov-26  16:51 UTC
request.getParameter("test") is null in Servlet Java whe I user ''Hash", Why?
var myhash = new Hash();
myhash.set(''test, ''Bob'');
myhash.set(''test2'', ''Bob2'');
new Ajax.Request(url, {
				method:''get'',
				onSuccess:function (response) {
							var xml = response.responseXML;
							var countMessages = processCallBack(xml);
							if (countMessages == 0) {
								form.submit();
							}
				},
				onFailure:function (response) {
							var r = response.responseText;
							document.getElementById(idError).innerHTML = "Erro de
processamento";
				},
				parameters: myhash
			}
		);
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---
kangax
2007-Nov-26  21:44 UTC
Re: request.getParameter("test") is null in Servlet Java whe I user ''Hash", Why?
Because parameters accept object, not Hash. Hash encapsulates its object into a private instance (since 1.6) - simply providing a hash interface. In your case: parameters: myhash.toObject() should do the trick. best, kangax --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Nicolás Sanguinetti
2007-Nov-26  21:58 UTC
Re: request.getParameter("test") is null in Servlet Java whe I user ''Hash", Why?
I hope http://dev.rubyonrails.org/ticket/10172 gets into trunk before 1.6.0.1 :) -Nicolas On Nov 26, 2007 7:44 PM, kangax <kangax-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Because parameters accept object, not Hash. > Hash encapsulates its object into a private instance (since 1.6) - > simply providing a hash interface. > In your case: > > parameters: myhash.toObject() > > should do the trick. > > > best, > kangax > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
kangax
2007-Nov-26  22:53 UTC
Re: request.getParameter("test") is null in Servlet Java whe I user ''Hash", Why?
We just need to do a proper patch and tests for that ticket... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
kangax
2007-Nov-26  23:49 UTC
Re: request.getParameter("test") is null in Servlet Java whe I user ''Hash", Why?
patch and tests: http://dev.rubyonrails.org/ticket/10172 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---