Hi Ryan,

>I'm having trouble getting Shale clay to substitute a non-ViewController 
>bean for the token managed-bean-name.  I have looked at the use cases and 
>I still feel like I don't understand the syntax to do token replacement. 
>Shale continues to reference my ViewController bean in EL expressions, 
>however I need to reference another bean.
>
>Can anyone offer any help?  I am using Clay html views.

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




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to