You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Peter Schröder <Pe...@freenet-ag.de> on 2007/08/07 16:59:16 UTC

[T4] wierd ognl error

hi,

we are running an t4 application wich has the following code in .jwc:

<property name="radioId" initial-value="@de.freenet.pos.klarmobilBusiness.components.SelectNumberSwitch@SELECTION_MNP + '_radio'" />

and in .html:

<label jwcid="@Any" for="prop:radioId">...</label>

this normally renders to:

<label for="mnp_radio">...</label>

but some times, ognl fails and renders to:

<label for="mnpnull">...</label>


the only way to solve this is to reload the application!
any comments on this?

kind regards,
peter

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


Re: AW: [T4] wierd ognl error

Posted by Jesse Kuhnert <jk...@gmail.com>.
I don't think ognl really handled enums (very well) before 2.7.

On 8/8/07, Peter Schröder <Pe...@freenet-ag.de> wrote:
> i dont think that logging an issue to jira will be successfull. T4.0.2 seems not to be supported any longer...
>
> -----Ursprüngliche Nachricht-----
> Von: Nick Westgate [mailto:nick@key-planning.co.jp]
> Gesendet: Mittwoch, 8. August 2007 08:21
> An: Tapestry users
> Betreff: Re: AW: [T4] wierd ognl error
>
> Looks like an OGNL/Tapestry bug to me, so log a JIRA for Tapestry.
>
> Cheers,
> Nick.
>
>
> Peter Schröder wrote:
> > hi lutz,
> >
> > ognl: <property name="radioId" initial-value="@de.freenet.pos.klarmobilBusiness.components.SelectNumberSwitch@SELECTION_MNP + '_radio'" />
> >
> > prop: <label jwcid="@Any" for="prop:radioId">...</label>
> >
> > from my poit of view, the failure is in the first statement, cause this should constuct some property with an initial value, the prop should just read from that property... but its just a guess.
> >
> > anyways that is something that should NEVER happen! the property is not changed after it is initaialized!
> > but i think i just put the ognl expression right into my Any component. perhaps that helps.
> >
> > kind regards,
> > peter
> >
> >
> > -----Ursprüngliche Nachricht-----
> > Von: Lutz Hühnken [mailto:lh.tapestry.list@googlemail.com]
> > Gesendet: Dienstag, 7. August 2007 20:48
> > An: Tapestry users
> > Betreff: Re: [T4] wierd ognl error
> >
> > Excuse me for being picky, but your subject is misleading. You claim
> > to have an ognl error, but obviously you are using tapestry-prop
> > instead of ognl.
> >
> >>From a quick look at your code I would guess the problem is that at
> > some point the value of radioId is "mnpnull". Although you have
> > defined an initial value, it is not immutable and can take on other
> > values of type string, I guess.
> >
> > If you think that's unlikely, you could also try to actually use ognl
> > instead of prop, just to make sure it's not a shortcoming of
> > tapestry-prop you're facing.
> >
> > Hth,
> >
> > Lutz
> >
> >
> > On 8/7/07, Peter Schröder <Pe...@freenet-ag.de> wrote:
> >> hi,
> >>
> >> we are running an t4 application wich has the following code in .jwc:
> >>
> >> <property name="radioId" initial-value="@de.freenet.pos.klarmobilBusiness.components.SelectNumberSwitch@SELECTION_MNP + '_radio'" />
> >>
> >> and in .html:
> >>
> >> <label jwcid="@Any" for="prop:radioId">...</label>
> >>
> >> this normally renders to:
> >>
> >> <label for="mnp_radio">...</label>
> >>
> >> but some times, ognl fails and renders to:
> >>
> >> <label for="mnpnull">...</label>
> >>
> >>
> >> the only way to solve this is to reload the application!
> >> any comments on this?
> >>
> >> kind regards,
> >> peter
> >>
> >> ---------------------------------------------------------------------
> >> 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
> >
> >
>
> ---------------------------------------------------------------------
> 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
>
>


-- 
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

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


AW: AW: [T4] wierd ognl error

Posted by Peter Schröder <Pe...@freenet-ag.de>.
i dont think that logging an issue to jira will be successfull. T4.0.2 seems not to be supported any longer... 

-----Ursprüngliche Nachricht-----
Von: Nick Westgate [mailto:nick@key-planning.co.jp] 
Gesendet: Mittwoch, 8. August 2007 08:21
An: Tapestry users
Betreff: Re: AW: [T4] wierd ognl error

Looks like an OGNL/Tapestry bug to me, so log a JIRA for Tapestry.

Cheers,
Nick.


Peter Schröder wrote:
> hi lutz,
> 
> ognl: <property name="radioId" initial-value="@de.freenet.pos.klarmobilBusiness.components.SelectNumberSwitch@SELECTION_MNP + '_radio'" />
> 
> prop: <label jwcid="@Any" for="prop:radioId">...</label>
> 
> from my poit of view, the failure is in the first statement, cause this should constuct some property with an initial value, the prop should just read from that property... but its just a guess.
> 
> anyways that is something that should NEVER happen! the property is not changed after it is initaialized!
> but i think i just put the ognl expression right into my Any component. perhaps that helps.
> 
> kind regards,
> peter
>  
> 
> -----Ursprüngliche Nachricht-----
> Von: Lutz Hühnken [mailto:lh.tapestry.list@googlemail.com] 
> Gesendet: Dienstag, 7. August 2007 20:48
> An: Tapestry users
> Betreff: Re: [T4] wierd ognl error
> 
> Excuse me for being picky, but your subject is misleading. You claim
> to have an ognl error, but obviously you are using tapestry-prop
> instead of ognl.
> 
>>>From a quick look at your code I would guess the problem is that at
> some point the value of radioId is "mnpnull". Although you have
> defined an initial value, it is not immutable and can take on other
> values of type string, I guess.
> 
> If you think that's unlikely, you could also try to actually use ognl
> instead of prop, just to make sure it's not a shortcoming of
> tapestry-prop you're facing.
> 
> Hth,
> 
> Lutz
> 
> 
> On 8/7/07, Peter Schröder <Pe...@freenet-ag.de> wrote:
>> hi,
>>
>> we are running an t4 application wich has the following code in .jwc:
>>
>> <property name="radioId" initial-value="@de.freenet.pos.klarmobilBusiness.components.SelectNumberSwitch@SELECTION_MNP + '_radio'" />
>>
>> and in .html:
>>
>> <label jwcid="@Any" for="prop:radioId">...</label>
>>
>> this normally renders to:
>>
>> <label for="mnp_radio">...</label>
>>
>> but some times, ognl fails and renders to:
>>
>> <label for="mnpnull">...</label>
>>
>>
>> the only way to solve this is to reload the application!
>> any comments on this?
>>
>> kind regards,
>> peter
>>
>> ---------------------------------------------------------------------
>> 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
> 
> 

---------------------------------------------------------------------
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: AW: [T4] wierd ognl error

Posted by Nick Westgate <ni...@key-planning.co.jp>.
Looks like an OGNL/Tapestry bug to me, so log a JIRA for Tapestry.

Cheers,
Nick.


Peter Schröder wrote:
> hi lutz,
> 
> ognl: <property name="radioId" initial-value="@de.freenet.pos.klarmobilBusiness.components.SelectNumberSwitch@SELECTION_MNP + '_radio'" />
> 
> prop: <label jwcid="@Any" for="prop:radioId">...</label>
> 
> from my poit of view, the failure is in the first statement, cause this should constuct some property with an initial value, the prop should just read from that property... but its just a guess.
> 
> anyways that is something that should NEVER happen! the property is not changed after it is initaialized!
> but i think i just put the ognl expression right into my Any component. perhaps that helps.
> 
> kind regards,
> peter
>  
> 
> -----Ursprüngliche Nachricht-----
> Von: Lutz Hühnken [mailto:lh.tapestry.list@googlemail.com] 
> Gesendet: Dienstag, 7. August 2007 20:48
> An: Tapestry users
> Betreff: Re: [T4] wierd ognl error
> 
> Excuse me for being picky, but your subject is misleading. You claim
> to have an ognl error, but obviously you are using tapestry-prop
> instead of ognl.
> 
>>>From a quick look at your code I would guess the problem is that at
> some point the value of radioId is "mnpnull". Although you have
> defined an initial value, it is not immutable and can take on other
> values of type string, I guess.
> 
> If you think that's unlikely, you could also try to actually use ognl
> instead of prop, just to make sure it's not a shortcoming of
> tapestry-prop you're facing.
> 
> Hth,
> 
> Lutz
> 
> 
> On 8/7/07, Peter Schröder <Pe...@freenet-ag.de> wrote:
>> hi,
>>
>> we are running an t4 application wich has the following code in .jwc:
>>
>> <property name="radioId" initial-value="@de.freenet.pos.klarmobilBusiness.components.SelectNumberSwitch@SELECTION_MNP + '_radio'" />
>>
>> and in .html:
>>
>> <label jwcid="@Any" for="prop:radioId">...</label>
>>
>> this normally renders to:
>>
>> <label for="mnp_radio">...</label>
>>
>> but some times, ognl fails and renders to:
>>
>> <label for="mnpnull">...</label>
>>
>>
>> the only way to solve this is to reload the application!
>> any comments on this?
>>
>> kind regards,
>> peter
>>
>> ---------------------------------------------------------------------
>> 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
> 
> 

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


AW: [T4] wierd ognl error

Posted by Peter Schröder <Pe...@freenet-ag.de>.
hi lutz,

ognl: <property name="radioId" initial-value="@de.freenet.pos.klarmobilBusiness.components.SelectNumberSwitch@SELECTION_MNP + '_radio'" />

prop: <label jwcid="@Any" for="prop:radioId">...</label>

from my poit of view, the failure is in the first statement, cause this should constuct some property with an initial value, the prop should just read from that property... but its just a guess.

anyways that is something that should NEVER happen! the property is not changed after it is initaialized!
but i think i just put the ognl expression right into my Any component. perhaps that helps.

kind regards,
peter
 

-----Ursprüngliche Nachricht-----
Von: Lutz Hühnken [mailto:lh.tapestry.list@googlemail.com] 
Gesendet: Dienstag, 7. August 2007 20:48
An: Tapestry users
Betreff: Re: [T4] wierd ognl error

Excuse me for being picky, but your subject is misleading. You claim
to have an ognl error, but obviously you are using tapestry-prop
instead of ognl.

>From a quick look at your code I would guess the problem is that at
some point the value of radioId is "mnpnull". Although you have
defined an initial value, it is not immutable and can take on other
values of type string, I guess.

If you think that's unlikely, you could also try to actually use ognl
instead of prop, just to make sure it's not a shortcoming of
tapestry-prop you're facing.

Hth,

Lutz


On 8/7/07, Peter Schröder <Pe...@freenet-ag.de> wrote:
> hi,
>
> we are running an t4 application wich has the following code in .jwc:
>
> <property name="radioId" initial-value="@de.freenet.pos.klarmobilBusiness.components.SelectNumberSwitch@SELECTION_MNP + '_radio'" />
>
> and in .html:
>
> <label jwcid="@Any" for="prop:radioId">...</label>
>
> this normally renders to:
>
> <label for="mnp_radio">...</label>
>
> but some times, ognl fails and renders to:
>
> <label for="mnpnull">...</label>
>
>
> the only way to solve this is to reload the application!
> any comments on this?
>
> kind regards,
> peter
>
> ---------------------------------------------------------------------
> 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: [T4] wierd ognl error

Posted by Lutz Hühnken <lh...@googlemail.com>.
Excuse me for being picky, but your subject is misleading. You claim
to have an ognl error, but obviously you are using tapestry-prop
instead of ognl.

>From a quick look at your code I would guess the problem is that at
some point the value of radioId is "mnpnull". Although you have
defined an initial value, it is not immutable and can take on other
values of type string, I guess.

If you think that's unlikely, you could also try to actually use ognl
instead of prop, just to make sure it's not a shortcoming of
tapestry-prop you're facing.

Hth,

Lutz


On 8/7/07, Peter Schröder <Pe...@freenet-ag.de> wrote:
> hi,
>
> we are running an t4 application wich has the following code in .jwc:
>
> <property name="radioId" initial-value="@de.freenet.pos.klarmobilBusiness.components.SelectNumberSwitch@SELECTION_MNP + '_radio'" />
>
> and in .html:
>
> <label jwcid="@Any" for="prop:radioId">...</label>
>
> this normally renders to:
>
> <label for="mnp_radio">...</label>
>
> but some times, ognl fails and renders to:
>
> <label for="mnpnull">...</label>
>
>
> the only way to solve this is to reload the application!
> any comments on this?
>
> kind regards,
> peter
>
> ---------------------------------------------------------------------
> 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