|
|
|
Please excuse the delay(s) I have been pre-empted.
This bug replicates the awaited OGNL issue. It appears expression compiler is broken for OGNL. I logged this bug to try and generate some fluff surrounding it's impact on trails but either way the solution remains with OGNL.... trails is fine. Our OGNL logic has been taken out by OGNL expression compiler bugs. My workaround was tyo turn off tapestry caching to off I rigged my eclipse jvm with this -Dorg.apache.tapestry.disable-caching=true see final comment on this ... But our web app is at a crawl with caching off... but OGNL seems to work. Expression compiler is hosed... until a patch comes. We can close this but it points to the impact and details... it's your call. welcome back Strange... even though I am operating at KALLE's ognl rev and other pom rev's... with caching turned off... I did happen to receive an exctraneous classcastexception that I did not see before. So there may be transient pot holes whereby ognl fails even with caching disabled.
The main construct that flushed this out for us was the extra <DIV> placed in ObjectTable.html in order to generically detect a BLOB and render it as an image in the table column.
That was the construct that flushed out the OGNL issue. It seemed that OGNL could not articulate across multiple <DIV> tags... which happens to be the manner in which you recommend folks to implement custom editors. OGNL could not operate expressions within the 2nd DIV... see below. <table jwcid="table"> <div jwcid="blobColumnValue@Block"> </span> This was just a CCE in the AST chain. It has nothing to do with the multiple DIV tags.
The first call to the OGNL expression "page.classDescriptor" is compiled against the ModelPage class, when the same expression is used from HibernateListPage the AST visitor throws a CCE. The solution was easy, pulling up getClassDescriptor to TrailsPage as an abstract method did the trick. Fixed in svn rev 737. I had a request since this is still a bit fresh...
Since trails uses OGNL fairly intensively... and that this problem was due to a base class interface breach. Alejandro, would you be kind enough to elaborate on the following: 1. Was this issue bad OGNL usage? Or Is this a limitation to OGNL? Thanks
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
What exactly is not working?