History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: OGNL-20
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Jesse Kuhnert
Reporter: Marco Valverde
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
OGNL

expressions compilation complains about a null setter body

Created: 23/Mar/07 05:40 PM   Updated: 31/Mar/07 02:18 PM
Component/s: ExpressionCompiler
Affects Version/s: 2.7
Fix Version/s: 2.7

File Attachments: 1. Text File error_description_stacktrace.txt (13 kb)
2. HTML File TabPanel.html (1 kb)
3. Java Source File TabPanel.java (2 kb)
4. File TabPanel.jwc (2 kb)

Environment: tapestry 4.12 SNAPSHOT


 Description  « Hide
following expressions worked well under 2.6.9:

value="container.messages.getMessage(getBlockId())"

or

value="container.messages.getMessage(blockId)"

java code:

public abstract String getBlockId();

public Block getSelectedBlock()
{
   String selectedId = getSelectedBlockId();
   if (selectedId == null)
      selectedId = (String)getBlockIds().get(0);
   return (Block) getContainer().getComponent(selectedId);
}

return the following error: "setter body: null " in detail:

Unable to parse OGNL expression 'container.messages.getMessage(getBlockId())': Error compiling expression on object $TabPanel_41@778611c5[Home/$TabPanel] with expression node container.messages.getMessage(getBlockId()) getter body: { return ((org.apache.hivemind.impl.AbstractMessages)(($TabPanel_41)$2).getContainer()).getMessages()).getMessage(((org.apache.tapestry.AbstractComponent)(($TabPanel_41)$2).getBlockId());} setter body: null

 All   Comments   Change History      Sort Order:
Jesse Kuhnert - [24/Mar/07 04:29 PM ]
I think there is more stack trace information that I need. There isn't enough there for me to know what is wrong.

Marco Valverde - [25/Mar/07 11:39 AM ]
the stack trace

Marco Valverde - [25/Mar/07 11:41 AM ]
java source

Marco Valverde - [25/Mar/07 11:41 AM ]
component definition

Marco Valverde - [25/Mar/07 11:46 AM ]
ok, i've added the stack trace and all necessary source files. i've got many situations in our current project wich worked perfectly with 2,6.9 and throwing the same stacktrace with 2.7.

i think http://www.mail-archive.com/users@tapestry.apache.org/msg09927.html describes the same problem.
thx.