Details

      Description

      Problem Background:

      This problem manifests itself when their is a key/value pair like line 200 of i18n.properties that contains a potential parameter substitution, such as "#{resource}":

      h-graphicimage-general=The [vdldoc:h:image:value] attribute can be *bound to a model bean property* via EL, bound to a JSF resource via the `#{resource}` EL keyword, or using the [vdldoc:h:image:library] and [vdldoc:h:image:name] attributes to specify a JSF resource.
      

      Steps to Reproduce:

      1. Deploy the jsf-showcase-portlet to Liferay Portal 7.0

      2. Add the jsf-showcase-portlet to a portal page

      3. Visit the URL for the General Use-Case for h:graphicImage

      Expected Results

      The use-case displays properly with no errors in the browser or in the server log.

      Actual Results

      The error message "JSF Showcase is temporarily unavailable" appears in the browser and the following stacktrace appears in the server log:

      java.lang.NumberFormatException: For input string: "resource"
      	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
      	at java.lang.Integer.parseInt(Integer.java:580)
      	at java.lang.Integer.parseInt(Integer.java:615)
      	at java.text.MessageFormat.makeFormat(MessageFormat.java:1427)
      	at java.text.MessageFormat.applyPattern(MessageFormat.java:479)
      	at java.text.MessageFormat.<init>(MessageFormat.java:362)
      	at java.text.MessageFormat.format(MessageFormat.java:840)
      	at com.liferay.faces.util.i18n.internal.I18nImpl.getMessage(I18nImpl.java:98)
      	at com.liferay.faces.util.i18n.internal.I18nImpl.getMessage(I18nImpl.java:61)
      	at com.liferay.faces.util.i18n.I18nWrapper.getMessage(I18nWrapper.java:56)
      	at com.liferay.faces.bridge.i18n.internal.I18nBridgeImpl.getMessage(I18nBridgeImpl.java:71)
      	at com.liferay.faces.util.i18n.I18nWrapper.getMessage(I18nWrapper.java:56)
      	at com.liferay.faces.bridge.ext.i18n.internal.I18nLiferayImpl.getMessage(I18nLiferayImpl.java:62)
      	at com.liferay.faces.util.i18n.I18nWrapper.getMessage(I18nWrapper.java:56)
      	at com.liferay.faces.util.i18n.I18nBundleBase.getMessage(I18nBundleBase.java:115)
      	at com.liferay.faces.util.i18n.I18nWrapper.getMessage(I18nWrapper.java:56)
      	at com.liferay.faces.showcase.i18n.internal.I18nShowcaseImpl.getMessage(I18nShowcaseImpl.java:60)
      	at com.liferay.faces.util.el.internal.I18nMap.get(I18nMap.java:95)
      	at javax.el.MapELResolver.getValue(MapELResolver.java:199)
      	at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
      

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            neil.griffin Neil Griffin
            Reporter:
            neil.griffin Neil Griffin
            Participants of an Issue:
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development

                Subcomponents