Uploaded image for project: 'Commons OGNL (Dormant)'
  1. Commons OGNL (Dormant)
  2. OGNL-20

expressions compilation complains about a null setter body

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.7
    • 2.7
    • ExpressionCompiler
    • None
    • tapestry 4.12 SNAPSHOT

    Description

      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

      Attachments

        Activity

          People

            jkuhnert Jesse Kuhnert
            mvalverde Marco Valverde
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: