Hi

On Thu, Feb 09, 2006 at 03:51:26PM +0000, Douglas Hubler wrote:
> Unable to parse OGNL expression 'spring:validSerialNumber': Malformed OGNL
> expression: spring:validSerialNumber
> 
> I worked thru guide 
> 
> http://wiki.apache.org/jakarta-tapestry/Tapestry4Spring
> 
> But it suggest 2 step approach
>  <inject property="person" object="spring:person" />
>   ...
>  <span jwcid="@Insert" value="ognl:person.name" /> 
> 
> 
> And I want/need
> 
>  <span jwcid="@Insert" value="spring:person.name" /> 

What is wrong with the two step approach? Your approach is ambiguous: is
the name of the bean "person.name" or do you want to get the property
"name" from the bean person. This is a funny mix of ognl and spring
access, which probably just won't work. You have to inject the property
first to access it via ognl, hence, you need the two step approach.

Another possibilty might be to add a special object for ognl, which
gives access to the spring application container.

Regards,
Christian

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

Reply via email to