You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by he...@teradyne.com on 2003/06/02 18:00:18 UTC

Tiles - putlist , add and beanName

Hi

according to the tld and documentation the following should be possible:

<definition name="someInfo" extends="test.somePage">
   <put name="InfoHeader" value="Some Info" />
   <putList name="InfoMessages">
      <add beanName="myMessageBean" beanScope="request"/>
   </putList>
</definition>

The beanName attribute should work for both the put and add tag. Using the
above configuration, I get nothing
Can anyone shed some light on this?

thx,
Henrik Bentel






---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Tiles - putlist , add and beanName

Posted by Cedric Dumoulin <ce...@apache.org>.
  Hi,

  The beanName and beanScope attributes are only allowed in a jsp tag 
<tiles:add ...>. They are not allowed in a definition declared in the 
config file.
  The reason is that there is no beans declared in the config file, so 
you can't reference one.
  One can expect that using beanName in the config file will reference a 
bean in the jsp where the definition is used/inserted. This is not the 
case in the actual version. This can be an enhancement request for the 
next release (you can open a ticket in bugzilla if you whish).

       Cedric

henrik.bentel@teradyne.com wrote:

>Hi
>
>according to the tld and documentation the following should be possible:
>
><definition name="someInfo" extends="test.somePage">
>   <put name="InfoHeader" value="Some Info" />
>   <putList name="InfoMessages">
>      <add beanName="myMessageBean" beanScope="request"/>
>   </putList>
></definition>
>
>The beanName attribute should work for both the put and add tag. Using the
>above configuration, I get nothing
>Can anyone shed some light on this?
>
>thx,
>Henrik Bentel
>
>
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org