Question:  does this happen if you use tr:commandLink?
h:commandLink certainly should work, just trying to
reduce the set of possibilities.

-- Adam



On 6/20/07, Renzo Tomaselli <[EMAIL PROTECTED]> wrote:
Hi, while using a command link in a tr:table cell, the action method
gets multiple events upon icon click, actually as many events as
rendered rows.
Coding is something like:

<tr:table id="result" var="row"   ...
                <tr:column>
                                <h:commandLink immediate="true"
action="#{row.execute}">
                                     <h:graphicImage
value="#{sessionBean.map['trash']}" style="border: 0px"/>
                                </h:commandLink>

 From rendered page, I noticed that all links are rendered as:

<a class="OraLink" href="#"
onclick="submitForm('browser',0,{source:'splitty:tabby:result:d6:0:_id159'});return
false;">
  <img style="border: 0px none ;"
src="/AxxBrowser/skins/skin1/images/trash.gif"/>
</a>

while (I guess) it should be 0:_id159, 1:_id159, 2:_id159 ...
I guess from debugging that event generation occurs once per row since
component id is repeating, thus event source matches multiple times
(from CommandLinkRenderer.java).

-- Renzo


Reply via email to