[jsr-314-open] access to ViewMetadata facet

Dan Allen dan.j.allen at GMAIL.COM
Fri May 15 08:58:53 EDT 2009


On Fri, May 15, 2009 at 3:38 AM, Martin Marinschek
<mmarinschek at apache.org>wrote:

> Hi Dan,
>
> but you could always say
> getViewRoot().getFacet("metaData").getChildren() - right?


Actually it would be
getViewRoot().getFacet(UIViewRoot.METADATA_FACET).getChildren(), but yes.
However, it is fairly typically when accessing the children that you are
looking for a particular type, such as UIViewParameter. I just think it is
somewhat strange (and inconvenient) to only offer getViewParameters() and
not something that can return other types on demand.

-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/20090515/0d2712bd/attachment.html 


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