Hi Geert,

the main parts of the Bean are the following: 

    private String fileName = null;
    private String termbankId = null;
    private String ruleGeneration = null;

    public ImportDataBean(String fileName, String termbankId,
            String ruleGeneration)
    {
        this.fileName = fileName;
        this.termbankId = termbankId;
        this.ruleGeneration = ruleGeneration;
    }

    public ImportDataBean()
    {
    }

    protected void activateValidation()
    {
        addConstraint(new
ConstrainedProperty("ruleGeneration").inList(new String[]{
                "termbased", "lemmabased"}));
    }

And the form is generated inside the elements java code with the
following call:

generateForm(template, new ImportDataBean());

If I write text in the form label block it is shown correctly.
e.g.: 
<!--B 'FORM:LABEL:ruleGeneration:termbased'-->That's fine!<!--/B-->

And if I use the same Localization block (e.g.: <!--V
'L10N:TERM_BASED'/-->) outside the FORM:LABEL block it is also displayed
correctly. 

Cheers,
Lars


> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin
> Sent: 11 January 2006 15:54
> To: RIFE users list : questions, bug reports and suggestions.
> Subject: Re: [Rife-users] Localization in radio button labels
> 
> 
> Hi Lars,
> 
> how is this form being generated? Do you call it explicitly 
> from your  
> element or do you let RIFE automate it? What the model bean that  
> corresponds to this?
> 
> Best regards,
> 
> Geert
> 
> On 11-jan-06, at 15:43, Lars Grupe wrote:
> 
> > Hi,
> >
> > A L10N value inside of an FORM:LABEL block will not be replaced. Is 
> > there something wrong in my code or is there a reason why it
> > does not
> > work?
> >
> > Example:
> >
> > <!--V 'FORM:RADIO:ruleGeneration'/-->
> > <!--B 'FORM:LABEL:ruleGeneration:termbased'--><!--V
> > 'L10N:TERM_BASED'/--><!--/B-->
> > <!--B 'FORM:LABEL:ruleGeneration:lemmabased'--><!--V
> > 'L10N:LEMMA_BASED'/--><!--/B-->
> >
> > Cheers,
> > Lars
> > _______________________________________________
> > Rife-users mailing list
> > [email protected] http://www.uwyn.com/mailman/listinfo/rife-users
> >
> 
> --
> Geert Bevin                       Uwyn bvba
> "Use what you need"               Avenue de Scailmont 34
> http://www.uwyn.com               7170 Manage, Belgium
> gbevin[remove] at uwyn dot com    Tel +32 64 84 80 03
> 
> PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 
> 309F D6A9 Public PGP key  : available at servers pgp.mit.edu, 
> wwwkeys.pgp.net
> 
> 
> _______________________________________________
> Rife-users mailing list
> [email protected] http://www.uwyn.com/mailman/listinfo/rife-users
> 
_______________________________________________
Rife-users mailing list
[email protected]
http://www.uwyn.com/mailman/listinfo/rife-users

Reply via email to