[ 
https://issues.apache.org/jira/browse/WICKET-7081?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17776619#comment-17776619
 ] 

ASF subversion and git services commented on WICKET-7081:
---------------------------------------------------------

Commit f913eae90776d2d546182899ed5ca1b1df97205c in wicket's branch 
refs/heads/master from Andrea Del Bene
[ https://gitbox.apache.org/repos/asf?p=wicket.git;h=f913eae907 ]

WICKET-7081 added packages to open

> 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
>             Fix For: 9.15.0, 10.0.0-M2
>
>         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)

Reply via email to