pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Brown <gk_br...@verizon.net>
Subject Re: Form.required - does it have any functionality?
Date Mon, 13 Jun 2011 13:38:58 GMT
See my previous email about the intent of this flag.

On Jun 13, 2011, at 9:23 AM, Sandro Martini wrote:

> Hi all, 
> playing with the Forms application (inside Tutorials), I see that adding the
> required attribute for example like here:
>                            <TextInput bxml:id="lastNameTextInput"
> prompt="Last" Form.required="true"/>
> 
> in Forms.java, in method buttonPressed, I get this read the right value:
>                boolean required = Form.isRequired(lastNameTextInput);
>                System.out.println("lastNameTextInput is required: " +
> required);
> 
> but nothing happen by this because inside Form.java, at submit the flow goes
> here:
> 
> // TODO: here (with my changes in the demo) parent is null ...
>            if (parent instanceof Form) {
>                Form form = (Form)parent;
>                form.formAttributeListeners.requiredChanged(form,
> component);
>            }
> 
> so if I'd be able to add the Form (or the Form.Section ) as parent maybe
> something could work with this, right ?
> 
> What do you think ?
> 
> Bye
> 
> 
> --
> View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Form-required-does-it-have-any-functionality-tp3057011p3058656.html
> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.


Mime
View raw message