[
http://jira.jboss.com/jira/browse/RF-3282?page=all ]
Alexander Smirnov resolved RF-3282.
-----------------------------------
Resolution: Done
Yes, of course - this code generated a lot of JavaScript functions with same name. Last of
them will overwrite all other.
For a right functionality, attribute "name" should be unique for an all rows.
jsFunction defined inside the datatable has last "var"
value
------------------------------------------------------------
Key: RF-3282
URL:
http://jira.jboss.com/jira/browse/RF-3282
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.4
Reporter: Tomislav Tkal?evi?
Assigned To: Alexander Smirnov
Fix For: 3.2.1
When using jsFunction inside a datatable(inside a rich:column),
Code:
<r:dataTable var="v" value="#{myBean.list}" ...
and that jsFunction has some method like:
Code:
<a:jsFunction eventsQueue="red"
name="js_AddAction" action="#{myBean.process(v)}" />
If some element calls that jsFunction on his event,
Code:
<t:inputText value="#{v.property}"
onkeypress="js_AddAction();"/>
value of the var inside the jsFunction action attribute (if that jsFunction is defined
inside the datatable)
is always the last value of the var in the datatable,not the current value
of that var.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira