help upgrading T4 code

2012-09-15 Thread Ken in Nashua

Folks,

Any help is appreciated.

Formerly (in T4) OGNL was used to perform delicate property handling and 
processing.

PropertyDescriptor beanPropDescriptor = (PropertyDescriptor) 
Ognl.getValue(
propertyDescriptors.{? name == ' + descriptor.getName() + 
'}[0],
Introspector.getBeanInfo(parentClassType));

With the removal of OGNL...

Can someone explain how I would upgrade the above piece of code?

Thanks in advance
kcola...@live.com 

Re: help upgrading T4 code

2012-09-15 Thread Michael Prescott
You can still use OGNL yourself by independently importing OGNL into your
project.  Tapestry's property expression language doesn't do stuff like
this.

On 15 September 2012 17:40, Ken in Nashua kcola...@live.com wrote:


 Folks,

 Any help is appreciated.

 Formerly (in T4) OGNL was used to perform delicate property handling and
 processing.

 PropertyDescriptor beanPropDescriptor = (PropertyDescriptor)
 Ognl.getValue(
 propertyDescriptors.{? name == ' +
 descriptor.getName() + '}[0],
 Introspector.getBeanInfo(parentClassType));

 With the removal of OGNL...

 Can someone explain how I would upgrade the above piece of code?

 Thanks in advance
 kcola...@live.com


Re: help upgrading T4 code

2012-09-15 Thread Bryan Lewis
Maybe this will help.  I haven't tried it myself.

http://chenillekit.codehaus.org/chenillekit-tapestry/ognlbinding.html


On Sat, Sep 15, 2012 at 5:40 PM, Ken in Nashua kcola...@live.com wrote:


 Folks,

 Any help is appreciated.

 Formerly (in T4) OGNL was used to perform delicate property handling and
 processing.

 PropertyDescriptor beanPropDescriptor = (PropertyDescriptor)
 Ognl.getValue(
 propertyDescriptors.{? name == ' +
 descriptor.getName() + '}[0],
 Introspector.getBeanInfo(parentClassType));

 With the removal of OGNL...

 Can someone explain how I would upgrade the above piece of code?

 Thanks in advance
 kcola...@live.com