<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.26.0">
</HEAD>
<BODY>
First, please let me know if there is a better place to ask JSF Dev related questions.<BR>
<BR>
Question for you all: I could use some help.<BR>
<BR>
I'm testing my listener changes with the new EL2 (and also Seam EL just in case)-- I wanted to make sure that parameters can be passed through the EL action MethodExpression.<BR>
<BR>
It seems as though parameters work fine in general, but if the parameter is cc.attrs.* --- EL resolves the param values to null.<BR>
<BR>
So:<BR>
&nbsp;&nbsp;&nbsp; #{myObject} -- works if in scope, as it should<BR>
&nbsp;&nbsp;&nbsp; #{cc.attrs.myObject} -- null, even though it's passed in from #{myObject} as an attribute.<BR>
<BR>
UICommand components seem to have no trouble with resolving cc.attrs.*, though.<BR>
<BR>
Any thoughts? I've attached the modified source files in case anyone wants to take a look. I'm not sure if this is a larger problem, or if I've just missed something.<BR>
<BR>
Thanks,<BR>
Lincoln<BR>
<BR>
<BR>
<BR>
<BR>
On Fri, 2009-09-04 at 15:56 -0400, Andy Schwartz wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
Ed Burns wrote:
&gt;&gt;&gt;&gt;&gt;&gt; On Fri, 07 Aug 2009 08:31:51 +0200, Martin Marinschek &lt;<A HREF="mailto:mmarinschek@apache.org">mmarinschek@apache.org</A>&gt; said:
&gt;&gt;&gt;&gt;&gt;&gt;             
&gt;
&gt; MM&gt; Hi Lincoln,
&gt;   
&gt;&gt;&gt; Unless I'm mistaken, ui:repeat is not a component and therefore cannot
&gt;&gt;&gt; be bound to a backing bean,
&gt;&gt;&gt;       
&gt;
&gt; MM&gt; I thought it was - and just checked, it derives from UIComponentBase.
&gt; MM&gt; Does the binding attribute not work for you?
&gt;
&gt; Yes, but it's implementation specific and not in the
&gt; javax.faces.component package.
&gt;
&gt;   

Ah, interesting.  In Trinidad we have a common base class for components 
that iterate over a collection:

<A HREF="http://myfaces.apache.org/trinidad/trinidad-api/apidocs/org/apache/myfaces/trinidad/component/UIXCollection.html">http://myfaces.apache.org/trinidad/trinidad-api/apidocs/org/apache/myfaces/trinidad/component/UIXCollection.html</A>

This is used as the base for both UIXIterator (Trinidad equivalent of 
ui:repeat) and UIXTable (Trinidad equivalent for UIData).  Perhaps for 
2.1 we should consider surfacing a similar base class/contract, along 
with a public UIRepeat component.


Andy

</PRE>
</BLOCKQUOTE>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
--<BR>
<B>Lincoln Baxter, III</B><BR>
Co-Founder of <A HREF="http://ocpsoft.com">OcpSoft</A><BR>
Author of <A HREF="http://ocpsoft.com/prettyfaces">PrettyFaces</A> URL Rewriting for JSF<BR>
<BR>
<BR>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>