You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Andrey Larionov <an...@gmail.com> on 2009/08/19 10:11:21 UTC

Not working example for BeanDisplay

Example from of parametrizing BeanDisplay component
(http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/BeanDisplay.html)
dosnt work

<p:link>
   ${bean.link.toUpperCase()}
</p:link>

this block produces exception somthing like

Class components.FeedEntryElement does not contain a property named
'bean' (within property expression 'bean.link'). Available properties:
class, componentResources, entry, entryEntry.

Wrong example or i doing something wrong?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Not working example for BeanDisplay

Posted by Lance Java <la...@googlemail.com>.
<t:beandisplay object="user">
    <p:lastName>
        ${bean.lastname.toUpperCase()}
    </p:lastName>
</t:beandisplay>

Should read

<t:beandisplay object="user">
    <p:lastName>
        ${user.lastname.toUpperCase()}
    </p:lastName>
</t:beandisplay>


2009/8/19 Andrey Larionov <an...@gmail.com>

> Example from of parametrizing BeanDisplay component
> (
> http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/BeanDisplay.html
> )
> dosnt work
>
> <p:link>
>   ${bean.link.toUpperCase()}
> </p:link>
>
> this block produces exception somthing like
>
> Class components.FeedEntryElement does not contain a property named
> 'bean' (within property expression 'bean.link'). Available properties:
> class, componentResources, entry, entryEntry.
>
> Wrong example or i doing something wrong?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: Not working example for BeanDisplay

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
Em Wed, 19 Aug 2009 05:43:33 -0300, Andrey Larionov <an...@gmail.com>  
escreveu:

> Thanks. I think documentation should be fixed

Please post a documentation JIRA for it. :)

-- 
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Not working example for BeanDisplay

Posted by Andrey Larionov <an...@gmail.com>.
Thanks. I think documentation should be fixed

On Wed, Aug 19, 2009 at 12:39, Ulrich Stärk<ul...@spielviel.de> wrote:
> Replace bean with the name of your property that you want to display. I
> guess it's entry? So it would be ${entry.link.toUpperCase()}
>
> HTH,
>
> Uli
>
> On 19.08.2009 10:11 schrieb Andrey Larionov:
>>
>> Example from of parametrizing BeanDisplay component
>>
>> (http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/BeanDisplay.html)
>> dosnt work
>>
>> <p:link>
>>   ${bean.link.toUpperCase()}
>> </p:link>
>>
>> this block produces exception somthing like
>>
>> Class components.FeedEntryElement does not contain a property named
>> 'bean' (within property expression 'bean.link'). Available properties:
>> class, componentResources, entry, entryEntry.
>>
>> Wrong example or i doing something wrong?
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Not working example for BeanDisplay

Posted by Ulrich Stärk <ul...@spielviel.de>.
Replace bean with the name of your property that you want to display. I guess it's entry? So it 
would be ${entry.link.toUpperCase()}

HTH,

Uli

On 19.08.2009 10:11 schrieb Andrey Larionov:
> Example from of parametrizing BeanDisplay component
> (http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/BeanDisplay.html)
> dosnt work
> 
> <p:link>
>    ${bean.link.toUpperCase()}
> </p:link>
> 
> this block produces exception somthing like
> 
> Class components.FeedEntryElement does not contain a property named
> 'bean' (within property expression 'bean.link'). Available properties:
> class, componentResources, entry, entryEntry.
> 
> Wrong example or i doing something wrong?
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org