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

Target is null for method

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.7
    • 2.7
    • ExpressionCompiler
    • None
    • Tapestry 4.1.2

    Description

      The following template fails to execute in the latest tapestry snapshot

      <span jwcid="ognl:getCell(column,row).fareType.name()+'_icone' "/>

      The java code of the page defining the method :

      public ThreeDPricingElement getCell(int column, int row)

      { return ThreeDPricingElement.test }

      ThreeDPricingElement is an enum

      and the .page contains the following elements:

      <property-specification name="row" type="int" persistent="no"/>

      <property-specification name="column" type="int" persistent="no"/>

      Tapestry fails evaluating and returns the following error

      target is null for method getColumn

      org.apache.tapestry.BindingException

      Unable to read OGNL expression '<parsed OGNL expression>' of $ThreeDPricing_2135@3c1[ThreeDPricing]: target is null for method getColumn

      binding: ExpressionBinding[ThreeDPricing getCell(getColumn(),row).fareType.name()+'_icone'

      Attachments

        Activity

          People

            jkuhnert Jesse Kuhnert
            ltouati Lionel Touati
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: