Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
1.5 M1, 1.4.2
-
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)
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.