Por isso que ele não "encontra" a página no Flex: pq ela não existe (não foi
gerada pelo rails).

Pelo jeito você não está atribuindo um valor ao campo ano, que, de acordo a
msg de erro, não pode ser nulo. Veja onde você atribui um valor a esse
campo.

Elvis Fernandes

On Fri, Apr 11, 2008 at 1:17 AM, CaDu <[EMAIL PROTECTED]> wrote:

>
> Ola,
>
> Veja o erro que da no endereço:
> http://localhost:3000/car/create
>
> ActiveRecord::StatementInvalid in CarController#create
> Mysql::Error: #23000Column 'ano' cannot be null: INSERT INTO `cars`
> (`ano`, `valor`, `cor`, `modelo`) VALUES(NULL, NULL, NULL, NULL)
> RAILS_ROOT: ................................../Cars
>
> Application Trace | Framework Trace | Full Trace
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> connection_adapters/abstract_adapter.rb:150:in `log'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> connection_adapters/mysql_adapter.rb:281:in `execute'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> connection_adapters/abstract/database_statements.rb:156:in
> `insert_sql'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> connection_adapters/mysql_adapter.rb:291:in `insert_sql'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> connection_adapters/abstract/database_statements.rb:44:in
> `insert_without_query_dirty'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> connection_adapters/abstract/query_cache.rb:19:in `insert'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> base.rb:2272:in `create_without_callbacks'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> callbacks.rb:226:in `create_without_timestamps'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> timestamp.rb:29:in `create'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> base.rb:2238:in `create_or_update_without_callbacks'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> callbacks.rb:213:in `create_or_update'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> base.rb:1972:in `save_without_validation'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> validations.rb:934:in `save_without_transactions'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> transactions.rb:108:in `save'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> connection_adapters/abstract/database_statements.rb:66:in
> `transaction'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> transactions.rb:80:in `transaction'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> transactions.rb:100:in `transaction'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> transactions.rb:108:in `save'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> transactions.rb:120:in `rollback_active_record_state!'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> transactions.rb:108:in `save'
> app/controllers/car_controller.rb:9:in `create'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> connection_adapters/abstract_adapter.rb:150:in `log'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> connection_adapters/mysql_adapter.rb:281:in `execute'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> connection_adapters/abstract/database_statements.rb:156:in
> `insert_sql'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> connection_adapters/mysql_adapter.rb:291:in `insert_sql'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> connection_adapters/abstract/database_statements.rb:44:in
> `insert_without_query_dirty'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> connection_adapters/abstract/query_cache.rb:19:in `insert'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> base.rb:2272:in `create_without_callbacks'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> callbacks.rb:226:in `create_without_timestamps'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> timestamp.rb:29:in `create'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> base.rb:2238:in `create_or_update_without_callbacks'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> callbacks.rb:213:in `create_or_update'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> base.rb:1972:in `save_without_validation'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> validations.rb:934:in `save_without_transactions'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> transactions.rb:108:in `save'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> connection_adapters/abstract/database_statements.rb:66:in
> `transaction'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> transactions.rb:80:in `transaction'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> transactions.rb:100:in `transaction'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> transactions.rb:108:in `save'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> transactions.rb:120:in `rollback_active_record_state!'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> transactions.rb:108:in `save'
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
> base.rb:1158:in `send'
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
> base.rb:1158:in `perform_action_without_filters'
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
> filters.rb:697:in `call_filters'
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
> filters.rb:689:in `perform_action_without_benchmark'
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
> benchmarking.rb:68:in `perform_action_without_rescue'
> c:/ruby/lib/ruby/1.8/benchmark.rb:293:in `measure'
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
> benchmarking.rb:68:in `perform_action_without_rescue'
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
> rescue.rb:199:in `perform_action_without_caching'
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
> caching.rb:678:in `perform_action'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> connection_adapters/abstract/query_cache.rb:33:in `cache'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> query_cache.rb:8:in `cache'
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
> caching.rb:677:in `perform_action'
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
> base.rb:524:in `send'
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
> base.rb:524:in `process_without_filters'
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
> filters.rb:685:in `process_without_session_management_support'
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
> session_management.rb:123:in `process'
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
> base.rb:388:in `process'
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
> dispatcher.rb:171:in `handle_request'
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
> dispatcher.rb:115:in `dispatch'
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
> dispatcher.rb:126:in `dispatch_cgi'
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
> dispatcher.rb:9:in `dispatch'
> c:/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb:
> 112:in `handle_dispatch'
> c:/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb:78:in
> `service'
> c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
> c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
> c:/ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
> c:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start'
> c:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
> c:/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start'
> c:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `each'
> c:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start'
> c:/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start'
> c:/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start'
> c:/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb:62:in
> `dispatch'
> c:/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/servers/
> webrick.rb:66
> c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> `gem_original_require'
> c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> `require'
> c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/
> dependencies.rb:496:in `require'
> c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/
> dependencies.rb:342:in `new_constants_in'
> c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/
> dependencies.rb:496:in `require'
> c:/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb:39
> c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> `gem_original_require'
> c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> `require'
> script/server:3
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> connection_adapters/abstract_adapter.rb:150:in `log'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> connection_adapters/mysql_adapter.rb:281:in `execute'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> connection_adapters/abstract/database_statements.rb:156:in
> `insert_sql'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> connection_adapters/mysql_adapter.rb:291:in `insert_sql'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> connection_adapters/abstract/database_statements.rb:44:in
> `insert_without_query_dirty'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> connection_adapters/abstract/query_cache.rb:19:in `insert'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> base.rb:2272:in `create_without_callbacks'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> callbacks.rb:226:in `create_without_timestamps'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> timestamp.rb:29:in `create'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> base.rb:2238:in `create_or_update_without_callbacks'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> callbacks.rb:213:in `create_or_update'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> base.rb:1972:in `save_without_validation'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> validations.rb:934:in `save_without_transactions'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> transactions.rb:108:in `save'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> connection_adapters/abstract/database_statements.rb:66:in
> `transaction'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> transactions.rb:80:in `transaction'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> transactions.rb:100:in `transaction'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> transactions.rb:108:in `save'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> transactions.rb:120:in `rollback_active_record_state!'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> transactions.rb:108:in `save'
> app/controllers/car_controller.rb:9:in `create'
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
> base.rb:1158:in `send'
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
> base.rb:1158:in `perform_action_without_filters'
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
> filters.rb:697:in `call_filters'
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
> filters.rb:689:in `perform_action_without_benchmark'
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
> benchmarking.rb:68:in `perform_action_without_rescue'
> c:/ruby/lib/ruby/1.8/benchmark.rb:293:in `measure'
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
> benchmarking.rb:68:in `perform_action_without_rescue'
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
> rescue.rb:199:in `perform_action_without_caching'
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
> caching.rb:678:in `perform_action'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> connection_adapters/abstract/query_cache.rb:33:in `cache'
> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
> query_cache.rb:8:in `cache'
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
> caching.rb:677:in `perform_action'
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
> base.rb:524:in `send'
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
> base.rb:524:in `process_without_filters'
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
> filters.rb:685:in `process_without_session_management_support'
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
> session_management.rb:123:in `process'
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
> base.rb:388:in `process'
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
> dispatcher.rb:171:in `handle_request'
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
> dispatcher.rb:115:in `dispatch'
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
> dispatcher.rb:126:in `dispatch_cgi'
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/
> dispatcher.rb:9:in `dispatch'
> c:/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb:
> 112:in `handle_dispatch'
> c:/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb:78:in
> `service'
> c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
> c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
> c:/ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
> c:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start'
> c:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
> c:/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start'
> c:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `each'
> c:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start'
> c:/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start'
> c:/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start'
> c:/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb:62:in
> `dispatch'
> c:/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/servers/
> webrick.rb:66
> c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> `gem_original_require'
> c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> `require'
> c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/
> dependencies.rb:496:in `require'
> c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/
> dependencies.rb:342:in `new_constants_in'
> c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/
> dependencies.rb:496:in `require'
> c:/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb:39
> c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> `gem_original_require'
> c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> `require'
> script/server:3
> Request
> Parameters:
>
> None
>
> Show session dump
>
> ---
> flash: !map:ActionController::Flash::FlashHash {}
>
>
> Response
> Headers:
>
> {"cookie"=>[],
>  "Cache-Control"=>"no-cache"}
>
>
> att.
> cadu
>
> On 9 abr, 10:43, Daniel Lopes <[EMAIL PROTECTED]> wrote:
> > Ola George.
> >
> > Tem certeza que a rota car/create ta certo?
> >
> > On 9 abr, 13:53, "George Queiroz" <[EMAIL PROTECTED]> wrote:
> >
> > > Julio, c já tem alguma app feita com flex e grails?
> >
> > > tem algum crud pra ver se o meu esta feito certinho?
> >
> > > tks
> >
> > > 2008/4/9 Junio Gonçalves Vitorino <[EMAIL PROTECTED]>:
> >
> > > > Mesma coisa do amigo acima, e mais uma sugestão REMOTE OBJECT creio
> que
> > > > será mais feliz.
> >
> > > > 2008/4/9 George Queiroz <[EMAIL PROTECTED]>:
> >
> > > >  rapaz, eu tenho feito com grails e não tenho tido probl
> >
> > > > > mais não estou utilizando controller, pois não necessita, vou
> direto no
> > > > > service.
> >
> > > > > [s]
> >
> > > > >   On Wed, Apr 9, 2008 at 12:41 PM, CaDu <[EMAIL PROTECTED]> wrote:
> >
> > > > > > Ola amigos...
> >
> > > > > > Estou iniciando no rails + flex e com base em alguns sites
> tentei
> > > > > > fazer uns testes.
> >
> > > > > > Codigo Rails
> > > > > > class CarController < ApplicationController
> > > > > >  def list
> > > > > >    @cars = Car.find :all
> > > > > >    render :xml => @cars.to_xml
> > > > > >  end
> >
> > > > > >  def create
> > > > > >    @cars = Car.new(params[:cars])
> > > > > >    @cars.save
> > > > > >    render :xml => @cars.to_xml
> > > > > >  end
> > > > > > end
> >
> > > > > > No flex eu tenho um grid e um botao para gravar dados na tabela.
> O
> > > > > > grid estah carregando perfeitamente mas quando clico no botao
> aparece
> > > > > > uma mensagem de erro.
> >
> > > > > > Codigo Flex
> > > > > > <?xml version="1.0" encoding="utf-8"?>
> > > > > > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
> > > > > > layout="absolute"
> > > > > >        creationComplete="retorno.send()">
> >
> > > > > >        <mx:HTTPService id="retorno"
> > > > > >                    url="http://localhost:3000/car/list"; />
> >
> > > > > >    <mx:HTTPService id="enviadados"
> > > > > >                                url="
> http://localhost:3000/car/create";
> > > > > >                                useProxy="false"
> > > > > >                                method="POST"
> > > > > >                                result="retorno.send()"
> > > > > >                                contentType="application/xml">
> > > > > >        <mx:request xmlns="">
> > > > > >            <ano>{tAno.text}</ano>
> > > > > >            <valor>{tValor.text}</valor>
> > > > > >            <cor>{tCor.text}</cor>
> > > > > >            <modelo>{tModelo.text}</modelo>
> > > > > >        </mx:request>
> > > > > >    </mx:HTTPService>
> >
> > > > > >        <mx:DataGrid horizontalCenter="0" verticalCenter="-61"
> > > > > > dataProvider="{retorno.lastResult.cars.car}"
> > > > > > alternatingItemColors="[#DBEFF1, #FFFFFF]">
> > > > > >                <mx:columns>
> > > > > >                        <mx:DataGridColumn headerText="Modelo"
> > > > > > dataField="modelo"/>
> > > > > >                        <mx:DataGridColumn headerText="Ano"
> > > > > > dataField="ano"/>
> > > > > >                        <mx:DataGridColumn headerText="Valor"
> > > > > > dataField="valor"/>
> > > > > >                        <mx:DataGridColumn headerText="Cor"
> > > > > > dataField="cor"/>
> > > > > >                </mx:columns>
> > > > > >        </mx:DataGrid>
> >
> > > > > >        <mx:TextInput horizontalCenter="-68" verticalCenter="46"
> > > > > > id="tModelo"/
> >
> > > > > >        <mx:TextInput horizontalCenter="-68" verticalCenter="76"
> > > > > > id="tAno"/>
> > > > > >        <mx:TextInput horizontalCenter="-68" verticalCenter="106"
> > > > > > id="tValor"/
> >
> > > > > >        <mx:TextInput horizontalCenter="-68" verticalCenter="136"
> > > > > > id="tCor"/>
> >
> > > > > >        <mx:Label text="Modelo" horizontalCenter="-178"
> > > > > > verticalCenter="48"/>
> > > > > >        <mx:Label text="Ano" horizontalCenter="-178"
> > > > > > verticalCenter="78"/>
> > > > > >        <mx:Label text="Valor" horizontalCenter="-174"
> > > > > > verticalCenter="112"/>
> > > > > >        <mx:Label text="Cor" horizontalCenter="-174"
> > > > > > verticalCenter="138"/>
> >
> > > > > >        <mx:Button label="Ok" width="62" horizontalCenter="71"
> > > > > > verticalCenter="136" click="enviadados.send()"/>
> > > > > >        <mx:Button label="Limpar" horizontalCenter="143"
> > > > > > verticalCenter="136"/
> >
> > > > > > </mx:Application>
> >
> > > > > > Erro
> > > > > > [RPC Fault faultString="HTTP request error"
> > > > > > faultCode="Server.Error.Request" faultDetail="Error:
> [IOErrorEvent
> > > > > > type="ioError" bubbles=false cancelable=false eventPhase=2
> text="Error
> > > > > > #2032: Stream Error. URL:http://localhost:3000/car/create";].
> URL:
> > > > > >http://localhost:3000/car/create";]
> > > > > >        at mx.rpc::AbstractInvoker/
> http://www.adobe.com/2006/flex/mx/
> > > > > >
> internal::faultHandler()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx
> > > > > > \rpc\AbstractInvoker.as:216]
> > > > > >        at
> > > > > >
> mx.rpc::Responder/fault()[E:\dev\3.0.x\frameworks\projects\rpc\src
> > > > > > \mx\rpc\Responder.as:49]
> > > > > >        at
> > > > > >
> mx.rpc::AsyncRequest/fault()[E:\dev\3.0.x\frameworks\projects\rpc
> > > > > > \src\mx\rpc\AsyncRequest.as:103]
> > > > > >        at
> > > > > >
> DirectHTTPMessageResponder/errorHandler()[E:\dev\3.0.x\frameworks
> > > > > >
> \projects\rpc\src\mx\messaging\channels\DirectHTTPChannel.as:343]
> > > > > >        at flash.events::EventDispatcher/dispatchEventFunction()
> > > > > >        at flash.events::EventDispatcher/dispatchEvent()
> > > > > >        at flash.net::URLLoader/redirectEvent()
> >
> > > > > > Se alguem puder ajudar fico agradecido.
> >
> > > > --
> > > > Atenciosamente,
> >
> > > > Junio Vitorino - Belo Horizonte - Brasil
> > > > [EMAIL PROTECTED]
> > > >http://www.juniovitorino.com
> >
>

--~--~---------~--~----~------------~-------~--~----~
Você recebeu esta mensagem porque está inscrito na lista "flexdev"
Para enviar uma mensagem, envie um e-mail para flexdev@googlegroups.com
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