Bom Dia Pessoal.

Tenho o seguinte componente criado em.

<?xml version="1.0" encoding="utf-8"?>
<s:HGroup xmlns:fx="http://ns.adobe.com/mxml/2009";
                  xmlns:s="library://ns.adobe.com/flex/spark"
                  xmlns:mx="library://ns.adobe.com/flex/mx"
                  width="100%" height="22" gap="0">

        <fx:Script>
                <![CDATA[

                        public static const CLICKBUTTON : String = 
'CLICKBUTTON';

                        [Bindable]
                        public var idValue: String;

                        [Bindable]
                        public var numbers: String;

                        [Bindable]
                        public var maxChar: int;

                        [Bindable]
                        public var isEditable: Boolean = true;

                ]]>
        </fx:Script>

        <s:TextInput width="100%" id="textInput" text="@{idValue}"
restrict="{numbers}" maxChars="{maxChar}" editable="{isEditable}"/>
        <s:Button width="22" height="22" id="button"
click="{dispatchEvent(new Event(CLICKBUTTON, true))}" />

</s:HGroup>


no meu cadastro tenho. o componete e seu validador:

        <fx:Declarations>
                        <mx:NumberValidator id="valLVPadrao"
                                                                
source="{ID_LOCALVENDAS}"
                                                                
property="idValue"
                                                                required="true"
                                                                
trigger="{salvar}"/>
        </fx:Declarations>



<components:XPEdtBtn width="90" id="ID_LOCALVENDAS" textAlign="right"
idValue="{produtos.ID_LOCALVENDAS == 0 ? null :
produtos.ID_LOCALVENDAS}" toolTip="Código do local de venda padrão"/
>


Ao clicar em salvar sem ter informado um código para o textInput do
componente o cadastro não é salvo, funcionando corretamente porem o
campo TextInput não fica vermelho. Alguém sabe me dizer o porque ?


Abraços []'s

-- 
Você recebeu esta mensagem porque está inscrito na lista "flexdev"
Para enviar uma mensagem, envie um e-mail para [email protected]
Para sair da lista, envie um email em branco para 
[email protected]
Mais opções estão disponíveis em http://groups.google.com/group/flexdev

Responder a