[EMAIL PROTECTED] (Gary VanMatre) wrote on 10/14/2005 03:20:37 PM:

> The managedBeanName attribute can only be set at the Clay component.
> The subtree under the Clay component applies token replacement of 
> the literal string "managed-bean-name" with the value from the root. 
> 
> For full html views, the subtree is the entire page.  The clay view 
> controller creates a Clay component under the document root.  The 
> managedBeanName is assumed from the viewid. 
> 
> However, you can nest Clay components.  Consider something like this:
> <form>
>      <span jsfid="clay" clayJsfid="/address.html" 
> managedBeanName="addressBean"/>
> 
>      <span jsfid=clay managedBeanName=addressBean allowBody=true>
>              <input type=text value=#{managed-bean-name.city} size=30>
>      </span> 
> </form>

Gary, I tried this approach in both forms you described and it seems that 
the nested 
Clay component is picking up the managedBeanName from the root Clay 
component instead 
of the one I specify.  Which turns out to be the ViewController associated 
with the view id.

I even got the latest nightly build and still experienced the problem.  I 
will try a
very simple example this weekend, but from my experience today I think 
this may be a 
bug.  I will file a report if I find that it is still not working with a 
simple example.






Reply via email to