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

Resource key for validation message lookup is not the same as the component name.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 1.4-RC2
    • 1.4-RC3
    • wicket
    • None

    Description

      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

      Attachments

        1. resourcetest.zip
          55 kB
          Gianni

        Activity

          People

            jdonnerstag Juegen Donnerstag
            gdoe6545@yahoo.it Gianni
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: