[
https://issues.apache.org/jira/browse/WICKET-7081?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrea Del Bene updated WICKET-7081:
------------------------------------
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:
{quote}{{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)}}
{quote}
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.
was:
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:
{quote}{{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)}}
{quote}
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.
{{}}
> Open packages to expose resources to other modules
> ---------------------------------------------------
>
> Key: WICKET-7081
> URL: https://issues.apache.org/jira/browse/WICKET-7081
> Project: Wicket
> Issue Type: Bug
> Reporter: Andrea Del Bene
> Priority: Trivial
> Attachments: myproject.zip
>
>
> 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:
>
> {quote}{{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)}}
> {quote}
>
> 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.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)