Actually I lied since I was calling isValid incorrectly.  Just setting required to true on the StringValidator should be fine.  And in fact required is set to true by default…

 

Matt

 


From: [email protected] [mailto:[email protected]] On Behalf Of Matt Chotin
Sent: Friday, June 17, 2005 6:01 PM
To: [email protected]
Subject: RE: [flexcoders] Modifying Panel and Text Input

 

It does support required but it doesn’t seem to be raising an error if you don’t type in the field and call isValid directly.  If you do type in the field, backspace, and tab out you will see the error.  We’ll file for it not working automatically on the isValid call.

 

Matt

 


From: [email protected] [mailto:[email protected]] On Behalf Of Kent Henneuse
Sent: Friday, June 17, 2005 3:57 PM
To: [email protected]
Subject: RE: [flexcoders] Modifying Panel and Text Input

 

Ok.  Now I feel a bit sheepish.  It states in the Action Script Docs for
FormItem that 'required' property just shows or hides the asterix(star)
in the UI.  Nothing more.  I got myself totally confused by looking at
the Flex Store example that sneaks in their own validator,
RequiredFieldValidator.  I assumed that this was part of either the
StringValidator, if you applied it to a field, or it was tied into the
'required' field.

Could somebody at Macromedia please make a simple addition of a required
field to the StringValidator or just make it so that if you apply it to
a field it becomes a required field.  This would be similar to how the
EmailValidator behaves.  (you input a character, remove the character,
the move to another field, the email field will be marked as required.)

      Thanks,

      -Kent

-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of Kent Henneuse
Sent: Saturday, June 18, 2005 12:17 AM
To: [email protected]
Subject: [flexcoders] Modifying Panel and Text Input

I have a couple of cases where I would like to modify the default
components
to display differently, beyond what I can do in the CSS.  I would like
to
avoid building all new components but I will if I have to.

The first is that I would like to create TextInputs that are required
but do
not show the star next to the field.  Think of a form where everything
is
required.  Having the star next to each component is distracting rather
then
valuable. 

The second case is that I would like to be able to put in an icon next
to
the title on a panel.  I see that there is an icon property for
container
but it has no effect on the panel.(maybe I just don't have it set up
correctly.)  Control over the placement of the icon in relation to the
title
would be nice, but not critical.

So what does the group have to say?

      Thanks,

      -Kent

"Black holes are where God divided by zero."
    - Steven Wright





Yahoo! Groups Links








 



Yahoo! Groups Links

Reply via email to