Hi Martin<br><br>I just want to note a side effect of this change: getContainerClientId() was introduced<br>in jsf 1.2, but code written in jsf 1.1 uses getClientId(). If we apply this change,<br>all libraries for jsf 1.2 needs to be updated. I think we can do this for jsf 2.0 but my<br>
question is if we should apply this change on jsf 1.2 branch. Components written for<br>jsf 1.1 that extends from UIData will not work correctly with this change.<br><br>regards,<br><br>Leonardo<br><br><div class="gmail_quote">
2010/5/19 Martin Marinschek <span dir="ltr"><<a href="mailto:mmarinschek@apache.org">mmarinschek@apache.org</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi Andy,<br>
<div class="im"><br>
> Ids specified by <f:ajax> are relative to containing component - in this<br>
> case, relative to the <h:commandButton>. This makes is easy to specify<br>
> execute/render ids for components within the same NamingContainer (which is<br>
> by far the most common case). In the case of iterating components like<br>
> <h:dataTable> or <ui:repeat>, this means that execute/render ids refer to<br>
> components within the same row.<br>
<br>
</div>Yes, but what Cagatay totally correctly refers to is that the table is<br>
certainly not in a row - how can the table be in a row of itself? This<br>
is semantical nonsense.<br>
<br>
We should never include the row-index in the client-id of the table<br>
itself. For this, we need to revise the client-id generation<br>
algorithm.<br>
<br>
Without actually having tried it, I think that it is easy to do so, as<br>
we have a UIComponentBase.getContainerClientId() to create the<br>
client-id of the children - when this method is called, we append the<br>
row-index, if getClientId() itself is called, we donīt. Does this<br>
sound reasonable to you guys?<br>
<br>
I think we can regard this as an implementation bug - Catagay, can you<br>
open issues for Mojarra and MyFaces?<br>
<br>
best regards,<br>
<br>
Martin<br>
<br>
--<br>
<br>
<a href="http://www.irian.at" target="_blank">http://www.irian.at</a><br>
<br>
Your JSF powerhouse -<br>
JSF Consulting, Development and<br>
Courses in English and German<br>
<br>
Professional Support for Apache MyFaces<br>
</blockquote></div><br>