Uploaded image for project: 'Click'
  1. Click
  2. CLK-373

Control properties are not automatically solved!

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.5 M1, 1.4.2
    • 1.5 M2
    • None
    • None

    Description

      It looks like properties (i18n ones) are not autmatically solved for
      (custom)Controls, the same way as for Pages:
      E.g. for CustomForm.java
      -----------
      public class CustomForm extends Form {
      public CustomForm(String name)

      { super(name); buildForm(); }

      private void buildForm()

      { TextField snfld = new TextField("snfld"); this.add(snfld); }


      }
      -----------

      and CustomForm.properties :
      -----------
      snfld.label=Special Name
      snfld.title=Enter the special name!
      -----------

      When using this control from a page, those properties are not automatically
      solved. It's done only when not using that Control but a standard Form with
      the fields added there(in the page code), and the properties in a file with
      the same name as the page.

      This makes very hard to reuse i18n Form code (e.g. reuse the same Form in
      view-xxx.htm in readonly mode, in edit-xxx.htm, in add-xxx.htm, of in other
      special-cases-xxxx.htm) and I think this is critical.

      Thank you,

      Demetrios.

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--i18n.zip
          7 kB
          Demetrios Kyriakis

        Activity

          People

            sabob Bob Schellink
            dkyriakis Demetrios Kyriakis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: