Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-7081

Open packages to expose resources to other modules

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 9.15.0, 10.0.0-M2
    • 9.16.0, 10.0.0
    • None
    • None

    Description

      JPMS encapsulates package resources making impossible for other modules to access them without explicitly opening their packages. The quickstart shows the problem with a simple page with a form used in a JPMS Java project.  Running 'mvn test' we get the following exception:

       

      Caused by: java.util.MissingResourceException: Unable to find property: 'Form.CSS.hidden-fields' for component: form [class=org.apache.wicket.markup.html.form.Form]. Locale: null, style: null
          at org.apache.wicket.core/org.apache.wicket.Localizer.getString(Localizer.java:268)
          at org.apache.wicket.core/org.apache.wicket.Localizer.getString(Localizer.java:201)
          at org.apache.wicket.core/org.apache.wicket.Localizer.getString(Localizer.java:131)
          at org.apache.wicket.core/org.apache.wicket.Component.getString(Component.java:1847)
          at org.apache.wicket.core/org.apache.wicket.Component.getString(Component.java:1834)

       

      our applications can't read property 'Form.CSS.hidden-fields=hidden-fields' from wicket-core bundle org.apache.wicket.Application.utf8.properties.

      Hence we should check packages from different modules (wicket-core, wicket-extentions, etc...) to open those containing resources that must be exposed to all other modules.

      Attachments

        1. myproject.zip
          54 kB
          Andrea Del Bene

        Activity

          People

            Unassigned Unassigned
            bitstorm Andrea Del Bene
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: