Hi Greetz,
You suggestion fixed the problem thank you :)
Petros
nille hammer wrote:
>
> Hi Petros,
> the problem is caused by the expression
> context="{account?.accountManager?.username}". With "?." you tell
> Tapestry: "The value might be null, please check before calling the
> Method." As null values aren´t allowed in context, you must not tell
> Tapestry that your values might be null. Change the expression to
> context="{account.accountManager.username}" and ensure in another way in
> your code that account and accountManager aren´t null when being called by
> the t:parameter.
> Greetz nillehammer
>
> ----- original Nachricht --------
>
> Betreff: Re: Grid component and context values - TapestryException
> Gesendet: Fr, 18. Apr 2008
> Von: Petros Petrou<[EMAIL PROTECTED]>
>
>>
>> Hi guys,
>>
>> Has anyone seen the problem below
>>
>> Petros
>>
>>
>> Petros Petrou wrote:
>> >
>> > I have the following code that works fine
>> > AccountsList.tml
>> > <table t:type="Grid" source="accountsList" row="account" mode="model">
>> > <t:parameter name="accountManagerCell">
>> > ${account?.accountManager?.username}
>> > </t:parameter>
>> > </table>
>> >
>> > AccountsList.java
>> > ...
>> > private BeanModel<Account> model;
>> > {
>> > model = beanModelSource.create(Account.class, true,
>> > componentResources);
>> > model.add("accountManager", null);
>> > }
>> >
>> > Now I replaced this line
>> > ${account?.accountManager?.username}
>> > with
>> > <aa t:type="PageLink" page="user/DetailsPage"
>> >
>> context="${account?.accountManager?.username}">${account?.accountManager?.us
>> ername}</aa>
>> >
>> > I am getting a TapestryException with the message
>> > Context values (which are added to the request URL) may not be null or
>> > blank.
>> >
>> > However, the context values are not blank because removing the
>> "context"
>> > everything works fine.
>> > Furthermore, moving this line
>> > <aa t:type="PageLink" page="user/DetailsPage"
>> >
>> context="${account?.accountManager?.username}">${account?.accountManager?.us
>> ername}</aa>
>> > outsite the grid component also works fine.
>> >
>> > Why it doesn't let me use context values for the PageLink inside a Grid
>> > component ?
>> > Petros
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Grid-component-and-context-values---TapestryException-
>> tp16433892p16759812.html
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> --- original Nachricht Ende ----
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/Grid-component-and-context-values---TapestryException-tp16433892p16773952.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]