Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-28574

Nested property expression not expanded for default reports

    XMLWordPrintable

    Details

    • Previous Issue Keys:
      STAT-352

      Description

      To reproduce
      1) import default reports sql
      2 ) navigate to Sitestats Admin -> Admin Reports
      3) Error appears on page

      Wicket is not expanding nested property expressions, this is the error you will get when it tries to expand

      report_confirm_delete=The report \\'${title}
      ' will be permanently removed. Continue?

      in this case ${title} expands to ${predefined_report0_title} which wicket then has trouble expanding it.

      ERROR http-bio-8080-exec-10 org.apache.wicket.RequestCycle - No get method defined for class: class org.sakaiproject.sitestats.api.report.ReportDef expression: predefined_report0_title
      org.apache.wicket.WicketRuntimeException: No get method defined for class: class org.sakaiproject.sitestats.api.report.ReportDef expression: predefined_report0_title
      at org.apache.wicket.util.lang.PropertyResolver.getGetAndSetter(PropertyResolver.java:499)
      at org.apache.wicket.util.lang.PropertyResolver.getObjectAndGetSetter(PropertyResolver.java:339)
      at org.apache.wicket.util.lang.PropertyResolver.getObjectAndGetSetter(PropertyResolver.java:242)
      at org.apache.wicket.util.lang.PropertyResolver.getValue(PropertyResolver.java:95)
      at org.apache.wicket.util.string.interpolator.PropertyVariableInterpolator.getValue(PropertyVariableInterpolator.java:89)
      at org.apache.wicket.util.string.interpolator.VariableInterpolator.toString(VariableInterpolator.java:138)
      at org.apache.wicket.util.string.interpolator.PropertyVariableInterpolator.interpolate(PropertyVariableInterpolator.java:72)
      at org.apache.wicket.Localizer.substitutePropertyExpressions(Localizer.java:471)
      at org.apache.wicket.Localizer.getString(Localizer.java:328)
      at org.apache.wicket.model.StringResourceModel.getString(StringResourceModel.java:503)
      at org.sakaiproject.sitestats.tool.wicket.pages.ReportsPage$ReportRowFragment$5.getOnClickScript(ReportsPage.java:309)

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

                Assignee:
                ern Earle R Nietzel
                Reporter:
                ern Earle R Nietzel
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Git Integration