2009/5/24 Dan Allen <span dir="ltr"><<a href="mailto:dan.j.allen@gmail.com">dan.j.allen@gmail.com</a>></span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="gmail_quote"><div class="im"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>All I've done is cut the zoom prompt and menu from the original file, and pasted it into zoomLevelControl.xhtml.<br>
<br>However, now when I change the zoom level menu, I get an error:<br><br> <f:ajax> contains an unknown id 'image'</blockquote></div><div><br>According to the AjaxBehaviorRenderer:<br><br>/**<br> * Attempt to find the component assuming the ID is relative to the<br>
* nearest naming container. If not found, then search for the component<br> * using an absolute component expression.<br> */<br><br>My guess is that the components within the composite component are considered to be within a naming container, isolating them from your image component. The strange part, though, is that the composite component is not acting like a naming container as I observed. To fix your problem w/ the current implementation, you have to use an absolute id to the image component (I would guess). But yeah, this is a very confusing situation for developers.</div>
</div></blockquote><div><br>Even that doesn't seem to work. I loaded the page and copied the absolute id, like this:<br><br> <f:ajax render="form:j_id1186681689_16ef8569:0:j_id1186681689_16ef8513:j_id-1105909415_41ead6fe:image"/><br>
<br>And I receive this ugliness for my trouble:<br><br><f:ajax> contains an unknown id 'form:j_id1186681689_16ef8569:0:j_id1186681689_16ef8513:j_id-1105909415_41ead6fe:image'<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="gmail_quote"><div>Frankly, for JSF 2.1, I would like to see us go to an XPath-like syntax (or jQuery) to find components because component IDs in JSF just plain suck.</div></div></blockquote><div><br>Yup, I agree wholeheartedly, but we need to make it easy to do Ajax rendering across composite components for JSF 2.0. IMO, composite components are by far the single most kickass feature of JSF 2, and if they're crippled, we're gonna get some bad press.<br>
<br><br>david<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="gmail_quote"><div><br><font color="#888888"><br>-Dan<br></font></div>
</div><div><div></div><div class="h5"><br>-- <br>Dan Allen<br>Senior Software Engineer, Red Hat | Author of Seam in Action<br>
<br><a href="http://mojavelinux.com" target="_blank">http://mojavelinuxcom</a><br><a href="http://mojavelinux.com/seaminaction" target="_blank">http://mojavelinux.com/seaminaction</a><br><a href="http://in.relationto/Bloggers/Dan" target="_blank">http://in.relation.to/Bloggers/Dan</a><br>
<br>NOTE: While I make a strong effort to keep up with my email on a daily<br>basis, personal or other work matters can sometimes keep me away<br>from my email. If you contact me, but don't hear back for more than a week,<br>
it is very likely that I am excessively backlogged or the message was<br>caught in the spam filters. Please don't hesitate to resend a message if<br>you feel that it did not reach my attention.<br>
</div></div></blockquote></div><br>