You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Juergen Donnerstag (JIRA)" <ji...@apache.org> on 2009/03/21 10:57:50 UTC

[jira] Resolved: (WICKET-2159) Resource key for validation message lookup is not the same as the component name.

     [ https://issues.apache.org/jira/browse/WICKET-2159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Juergen Donnerstag resolved WICKET-2159.
----------------------------------------

       Resolution: Won't Fix
    Fix Version/s: 1.4-RC3
         Assignee: Juergen Donnerstag

Because "." is used as separator inside Wicket, Wicket will interprete "partyDetails.name" as a component with id "name" added to the container component with id "partyDetails". With Wicket an id must not include a "."

> Resource key for validation message lookup is not the same as the component name.
> ---------------------------------------------------------------------------------
>
>                 Key: WICKET-2159
>                 URL: https://issues.apache.org/jira/browse/WICKET-2159
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4-RC2
>            Reporter: Gianni
>            Assignee: Juergen Donnerstag
>             Fix For: 1.4-RC3
>
>         Attachments: resourcetest.zip
>
>
> With a component id of "partyDetails.name" and a properties fille for the page containing the key "partyDetails.name.Required" the form validation looks for a message under the key "bookingForm.nameBorder.partyDetails.name.Required" instead of just "partyDetails.name.Required".
> DEBUG - Localizer                  - Locate property: key: 'Required'; Component: '[MarkupContainer [Component id = partyDetails.name]]'
> DEBUG - ponentStringResourceLoader - component: '[MarkupContainer [Component id = partyDetails.name]]'; key: 'Required'
> DEBUG - ponentStringResourceLoader - key: 'bookingForm.nameBorder.partyDetails.name.Required'; class: 'com.foobar.HomePage'; locale: 'en_GB'; Style: 'null'
> INFO  - PropertiesFactory          - Loading properties files from file:/Volumes/Storage/Projects/WicketQuick/resourcetest/target/classes/com/foobar/HomePage.xml
> DEBUG - ponentStringResourceLoader - Found properties file: 'com/foobar/HomePage.' but it doesn't contain the property

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.