[jsr-314-open] Ajax rendering of components among compositions?

Dan Allen dan.j.allen at GMAIL.COM
Sun May 24 18:43:45 EDT 2009


> All I've done is cut the zoom prompt and menu from the original file, and
> pasted it into zoomLevelControl.xhtml.
>
> However, now when I change the zoom level menu, I get an error:
>
>     <f:ajax> contains an unknown id 'image'


According to the AjaxBehaviorRenderer:

/**
  * Attempt to find the component assuming the ID is relative to the
  * nearest naming container.  If not found, then search for the component
  * using an absolute component expression.
  */

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.

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.

-Dan

-- 
Dan Allen
Senior Software Engineer, Red Hat | Author of Seam in Action

http://mojavelinux.com
http://mojavelinux.com/seaminaction
http://in.relation.to/Bloggers/Dan

NOTE: While I make a strong effort to keep up with my email on a daily
basis, personal or other work matters can sometimes keep me away
from my email. If you contact me, but don't hear back for more than a week,
it is very likely that I am excessively backlogged or the message was
caught in the spam filters.  Please don't hesitate to resend a message if
you feel that it did not reach my attention.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jsr-314-open-mirror/attachments/20090524/f5734244/attachment.html 


More information about the jsr-314-open-mirror mailing list