
|
If you were logged in you would be able to see more operations.
|
|
|
Click
Created: 29/May/08 02:45 AM
Updated: 07/Jun/08 09:07 AM
|
|
| Component/s: |
None
|
| Affects Version/s: |
1.5 M1
,
1.4.2
|
| Fix Version/s: |
1.5 M2
|
|
|
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.
|
|
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. |
Show » |
|
|
From the index.html you can see the two cases (forms): one that works and one
that doesn't (but it should, since only so the Click Controls are "self contained", "re-distributable", and most important: "reusable").
Issue created on request in this discussion:
http://thread.gmane.org/gmane.comp.web.click.user/2183