Bugs: Browse | Submit New | Admin

[#18162] When using observe_field for AJAX capabilities, it only works once and any attempt afterwards returns the first selected dataset

Date:
2008-02-18 15:55
Priority:
3
Submitted By:
Nobody
Assigned To:
Pramod Gopinath (pramodg)
Category:
None
State:
Closed
Target Release:
 
Summary:
When using observe_field for AJAX capabilities, it only works once and any attempt afterwards returns the first selected dataset

Detailed description
With the following code:

<h4><%= collection_select('charge', 'id', @charges, :id, 'charge_number_with_label' , options =  {:prompt =>
"– Please Select a Job Charge –"}) %></h4>
<%= observe_field "charge_id", :update => "content", :with => "id", :url =>
{:action => "show" } %>

A user select a job charge from a simple drop down.  After it's selected, my action is executed and a div is populated
with the information.

If the user select job charge "1" it will successfully return the data related to job charge "1".
If I then select job charge "3", it will again return the data for job charge "1".

If I restart the server and select job charge "2", I get that data and then if i select job charge "1"
I then get job charge "2" data.  So whatever is selected first during my selection will always get returned.

Running this application with mongrel works fine.

Running JRuby 1.1RC2 and the latest glassfish gem.         

Add A Comment: Notepad

Please login


Followup

Message
Date: 2008-11-06 05:13
Sender: Vivek Pandey

I think we have fixed this bug in upcoming 0.9.0 release. To
be released soon, let us know if it fixes your problem.
Date: 2008-03-14 05:06
Sender: Pramod Gopinath

The latest gem v0.1.2 should solve this issue that you have observed.
Could U please confirm that this is indeed the case.

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

Field Old Value Date By
close_date2008-12-04 20:562008-12-04 20:56vivekp
artifact_group_idv0.9.02008-12-04 20:56vivekp
resolution_idNone2008-11-06 05:13vivekp
close_date2008-11-06 05:132008-11-06 05:13vivekp
artifact_group_idNone2008-11-06 05:13vivekp
status_idOpen2008-11-06 05:13vivekp
assigned_tonone2008-02-19 16:41glassfishgem