You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@click.apache.org by "Bob Schellink (JIRA)" <ji...@apache.org> on 2009/03/21 11:41:50 UTC

[jira] Closed: (CLK-373) Control properties are not automatically solved!

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

Bob Schellink closed CLK-373.
-----------------------------


> Control properties are not automatically solved!
> ------------------------------------------------
>
>                 Key: CLK-373
>                 URL: https://issues.apache.org/jira/browse/CLK-373
>             Project: Click
>          Issue Type: Bug
>    Affects Versions: 1.5 M1, 1.4.2
>            Reporter: Demetrios Kyriakis
>            Assignee: Bob Schellink
>            Priority: Critical
>             Fix For: 1.5 M2
>
>         Attachments: i18n.zip
>
>
> 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.

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