Mensagens neste resumo (21 Mensagens)
- 1.1.
- Re: Passar função com parâmetro no addEventListener De: Diego Roberto
- 2.
- RJ - DESENVOLVEDOR JAVA FLEX De: Partner Tti
- 3.
- RJ-DESENVOLVEDOR ASP NET PLENO- URGENTE De: Partner Tti
- 4.1.
- PersistenceException: De: Roger Rayner
- 4.2.
- RES: [flex-brasil] PersistenceException: De: Jose Maria de Oliveira
- 4.3.
- RES: [flex-brasil] PersistenceException: De: Roger Rayner
- 4.4.
- RES: [flex-brasil] PersistenceException: De: Jose Maria de Oliveira
- 5.
- RJ-ANALISTA DE SISTEMAS PLENO De: Partner Tti
- 6.
- RJ- PROGRAMADOR DELPHY -PLENO - URGENTE De: Partner Tti
- 7.
- Dúvida com FlexSession De: Felipe Damiani
- 8.1.
- janela transparente De: Flávio Santos
- 8.2.
- Re: janela transparente De: Flávio Santos
- 8.3.
- Re: janela transparente De: ¥Ç¥Ó¥Ç¥½¥Ì Davidson Silva
- 8.4.
- Re: janela transparente De: Pablo Augusto
- 8.5.
- Re: janela transparente De: Pablo Augusto
- 9.1.
- Re: autcomplete De: agentesss
- 9.2.
- Re: autcomplete De: agentesss
- 10.1.
- Nova janale navegador De: João Artur - Yahoo
- 10.2.
- Re: Nova janale navegador De: ¥Ç¥Ó¥Ç¥½¥Ì Davidson Silva
- 10.3.
- Nova janale navegador De: Erlon Carlos
- 11.
- Dúvida - Máscara Datagrid Editável De: sevensin_jp
Mensagens
- 1.1.
-
Re: Passar função com parâmetro no addEventListener
Enviado por: "Diego Roberto" diegorrborges@yahoo.com.br diegorrborges
Seg, 19 de Abr de 2010 9:31 am
Fábio bom dia, novamente, desculpe testei aqui agora e funcionou, erro meu....
private function centerFoto(event:Event):void
{ var imageFoto:Image = new Image();
imageFoto = event.currentTarget as Image;
Alert.show(imageFoto.source. toString( ));
}
Deu certo,
Obrigado. Vlw mesmo
--- Em flex-brasil@yahoogrupos. , "Diego Roberto" <diegorrborges@com.br ...> escreveu
>
> Opa Fábio, tudo bem?
> Obrigado pela atenção, chamei o listener dentro do método da seguinte forma:
> imageMini.addEventListener(MouseEve nt.CLICK, previewFoto) ;
>
> já na função que ele chama:
> private function previewFoto(event:Event) :void
> {
> Coloco um alert para visualizar as informações e ele apresenta o endereço completo do componente que foi clicado e como faço para extrair a imagem ou seja o "source que ela tem" para ser repassado para outro função? Alert.show(event.currentTarget. getChildAt( 0).toString( ));
>
> Tentei passar dessa forma porém apresenta erro:
> var image:Image = event.currentTarget.getChildAt( 0) as Image;
> }
>
> Novamente agradeço pelos esclarecimentos.
>
> --- Em flex-brasil@yahoogrupos. , "Fabio" <fabiophx2002@com.br > escreveu
> >
> > Diego,
> > Ou vc pode colocar o listener na Imagem aí na sua função handler vc terá acesso a ela via event.currentTarget, ou via Hbox vc terá aceso a imagem fazendo: event.currentTarget .getChildAt( 0).
> >
> > []s
> > Fabio da Silva
> > http://www.fabiophx.blogspot. com/
> >
> > --- Em flex-brasil@yahoogrupos. , "Diego Roberto" <diegorrborges@com.br > escreveu
> > >
> > > Bom dia, estou com um dúvida, crio HBOX dinamicamente de acordo com os campos da tabela para serem visualizados na aplicação. Estou precisando que ao clicar nesse HBOX dispare um evento e consiga capturar o objeto que está dentro desse HBOX e passar como parametro ex:
> > >
> > > hboxMini.addEventListener(MouseEven t.CLICK, previewFoto) ;
> > >
> > > Função que chama:
> > > public function previewFoto(e:Event): void{
> > > // Preciso converter esse evento em um objeto Foto
> > > porém se eu converto var foto:Foto= e as Foto;
> > > há um problema quando chamo os atributos do objeto Foto.
> > >
> > > }
> > >
> > > Como ele cria a quantidade de HBOX de acordo com a quantidade de fotos do banco, não consigo obter uma função que passe o objeto que cliquei para esta função.
> > >
> > > Teria alguma forma resolver este item que poderiam me ajudar?
> > >
> > > Ex do código:
> > >
> > > public function geraGaleriaFoto(gallery: ArrayCollection) :void {
> > >
> > > var hboxMiniLinha:HBox = new HBox();
> > > hboxMiniLinha.percentWidth = 100;
> > > hboxMiniLinha.height = 80;
> > > for(var i:int = 0; i < listGallery; i++){
> > > var fotoGallery:Foto = new Foto();
> > > fotoGallery = gallery[i];
> > > var hboxMiniColuna:HBox = new HBox();
> > > hboxMiniColuna.width = 105;
> > > hboxMiniColuna.height = 80;
> > > var imageMini:Image = new Image();
> > > imageMini.width = 100;
> > > imageMini.height = 80;
> > > imageMini.buttonMode = true;
> > > contSelected++;
> > > imageMini.source = "assets/images/upload_fotos/ "+fotoGallery. foto_endereco;
> > > if(fotoGallery.foto_integrantes == null){
> > > imageMini.toolTip = "Data da foto: "+fotoGallery.foto_data + " - Descrição: "+fotoGallery. foto_descricao;
> > > }else {
> > > imageMini.toolTip = " Data da foto: "+fotoGallery.foto_data + " - Descrição: "+fotoGallery. foto_descricao+ " - Integrantes: "+fotoGallery. foto_integrantes ;
> > > }
> > > hboxMiniColuna.addChild( imageMini) ;
> > > hboxMiniLinha.addChild( hboxMiniColuna) ;
> > > }
> > > }
> > >
> > > // Tirei alguns itens do método....
> > >
> > >
> > > Grato
> > > Diego
> > >
> >
>
- 2.
-
RJ - DESENVOLVEDOR JAVA FLEX
Enviado por: "Partner Tti" partnertti@yahoo.com partnertti
Seg, 19 de Abr de 2010 9:57 am
A Partner Talentos em TI seleciona para seu cliente:
Desenvolvedor Java/Flex Jr./Pl.
Imprescindível:
- Bons conhecimentos de lógica de programação;
- Experiência mínima de 1 ano em Adobe Flex e Java;
- Inglês técnico;
Desejável:
Conhecimentos em Linux e Design.
Contratação: CLT + Benefícios
Local de Trabalho: Centro/RJ
ATENÇÃO
Interessados dentro do perfil, favor enviar currículo em Word (com a pretensão salarial) para rh@partner-tti.com.br
Colocar no campo assunto: Desenvolvedor JAVA/FLEX
[As partes desta mensagem que não continham texto foram removidas]
- 3.
-
RJ-DESENVOLVEDOR ASP NET PLENO- URGENTE
Enviado por: "Partner Tti" partnertti@yahoo.com partnertti
Seg, 19 de Abr de 2010 9:59 am
Desenvolvedor ASP.NET Pleno
Conhecimentos obrigatórios:
- Mínimo de 2 anos e meio de experiência comprovada em desenvolvimento de sistemas utilizando:
- ASP.NET
- Lógica de programação
- SQL ANSI
- Stored procedures de SQL Server
Conhecimento desejado:
- ASP
- PHP
Forma de contratação CLT+ Benefícios
Local: Centro do RJ
Encaminhar curriculo atualizado em * doc com pretensão salarial para:
rh@partner-tti.com.br
Colocando no assunto : DESENVOLVEDOR ASP.NET PLENO
[As partes desta mensagem que não continham texto foram removidas]
- 4.1.
-
PersistenceException:
Enviado por: "Roger Rayner" roger.rayner@totvs.com.br rogerrayner2000
Seg, 19 de Abr de 2010 10:06 am
Bom dia,
Eu tenho no meu sistema uma classe Processo. Esta classe recebe uma lista de
FasesProcesso que recebe uma lista de Fases conforme código abaixo. Quando
mando salvar o processo (as listas estão todas com registros) ocorre o erro
abaixo. Alguém poderia me dar uma luz?
@Entity
public class Processo {
@Id
@GeneratedValue(strategy = GenerationType. AUTO)
@Column(name = "oid")
private int oid;
@OneToMany(cascade=CascadeType. ALL,fetch= FetchType. EAGER,
mappedBy="oid")
private Set<Simulacao> minhasSimulacoes = new
LinkedHashSet<Simulacao> ();
@OneToMany(cascade=CascadeType. ALL,fetch= FetchType. EAGER,
mappedBy="oid")
private Set<FaseProcesso> minhasFasesProcesso = new
LinkedHashSet<FaseProcesso> ();
}
@Entity
public class FaseProcesso {
@Id
@GeneratedValue(strategy = GenerationType. AUTO)
@Column(name = "oid")
private int oid;
@OneToMany(cascade=CascadeType. ALL,fetch= FetchType. EAGER,
mappedBy="oid")
@IndexColumn(name="oid" )
private Set<Fase> minhasFases = new LinkedHashSet<Fase>();
}
@Entity
public class Fase {
@Id
@GeneratedValue(strategy = GenerationType. AUTO)
@Column(name = "oid")
private int oid;
@OneToMany(fetch=FetchType. EAGER)
@IndexColumn(name="oid" )
private Set<Procedimento> meusProcedimentos = new
LinkedHashSet<Procedimento> ();
}
@Entity
public class Procedimento {
@Id
@GeneratedValue(strategy = GenerationType. AUTO)
@Column(name = "oid")
private int oid;
}
ERRO...
10:05:10,823 ERROR [STDERR] javax.persistence.PersistenceExcep tion:
org.hibernate.PropertyAccessEx ception: could not get a field value by
reflection getter of content.FaseProcesso.oid
10:05:10,824 ERROR [STDERR] at
org.hibernate.ejb.AbstractEnti tyManagerImpl. throwPersistence Exception( Abstra
ctEntityManagerImpl.java:614)
10:05:10,824 ERROR [STDERR] at
org.hibernate.ejb.AbstractEnti tyManagerImpl. persist(Abstract EntityManagerImp
l.java:226)
10:05:10,824 ERROR [STDERR] at
org.jboss.jpa.tx.TransactionSc opedEntityManage r.persist( TransactionScope dEnt
ityManager.java:187)
10:05:10,824 ERROR [STDERR] at ejb.ProcessoBean.save(ProcessoBea n.java:64)
10:05:10,824 ERROR [STDERR] at
sun.reflect.NativeMethodAcce ssorImpl. invoke0(Native Method)
10:05:10,824 ERROR [STDERR] at
sun.reflect.NativeMethodAcce ssorImpl. invoke(Unknown Source)
10:05:10,824 ERROR [STDERR] at
sun.reflect.DelegatingMethod AccessorImpl. invoke(Unknown Source)
10:05:10,824 ERROR [STDERR] at java.lang.reflect.Method.invoke( Unknown
Source)
10:05:10,824 ERROR [STDERR] at
org.jboss.aop.joinpoint. MethodInvocation .invokeTarget( MethodInvocation .java:
122)
10:05:10,825 ERROR [STDERR] at
org.jboss.aop.joinpoint. MethodInvocation .invokeNext( MethodInvocation .java:11
1)
10:05:10,825 ERROR [STDERR] at
org.jboss.ejb3.EJBContainerInvo cationWrapper. invokeNext( EJBContainerInvo cati
onWrapper.java:69)
10:05:10,825 ERROR [STDERR] at
org.jboss.ejb3.interceptors. aop.InterceptorS equencer. invoke(Intercept orSeque
ncer.java:73)
10:05:10,825 ERROR [STDERR] at
org.jboss.ejb3.interceptors. aop.InterceptorS equencer. aroundInvoke( Intercepto
rSequencer.java:59)
10:05:10,825 ERROR [STDERR] at
sun.reflect.GeneratedMethodA ccessor294. invoke(Unknown Source)
10:05:10,825 ERROR [STDERR] at
sun.reflect.DelegatingMethod AccessorImpl. invoke(Unknown Source)
10:05:10,825 ERROR [STDERR] at java.lang.reflect.Method.invoke( Unknown
Source)
10:05:10,825 ERROR [STDERR] at
org.jboss.aop.advice.PerJoinpo intAdvice. invoke(PerJoinpo intAdvice. java:174)
10:05:10,825 ERROR [STDERR] at
org.jboss.aop.joinpoint. MethodInvocation .invokeNext( MethodInvocation .java:10
2)
10:05:10,825 ERROR [STDERR] at
org.jboss.ejb3.interceptors. aop.InvocationCo ntextInterceptor .fillMethod( Invo
cationContextInterceptor.java: 72)
10:05:10,825 ERROR [STDERR] at
org.jboss.aop.advice.org. jboss.ejb3. interceptors. aop.InvocationCo ntextInterc
eptor_z_fillMethod_3882268.invoke( InvocationContex tInterceptor_ z_fillMethod_
3882268.java)
10:05:10,825 ERROR [STDERR] at
org.jboss.aop.joinpoint. MethodInvocation .invokeNext( MethodInvocation .java:10
2)
10:05:10,825 ERROR [STDERR] at
org.jboss.ejb3.interceptors. aop.InvocationCo ntextInterceptor .setup(Invocatio
nContextInterceptor.java:88)
10:05:10,825 ERROR [STDERR] at
org.jboss.aop.advice.org. jboss.ejb3. interceptors. aop.InvocationCo ntextInterc
eptor_z_setup_3882268.invoke( InvocationContex tInterceptor_ z_setup_3882268. ja
va)
10:05:10,826 ERROR [STDERR] at
org.jboss.aop.joinpoint. MethodInvocation .invokeNext( MethodInvocation .java:10
2)
10:05:10,826 ERROR [STDERR] at
org.jboss.ejb3.connectionmanage r.CachedConnecti onInterceptor. invoke(CachedCo
nnectionInterceptor.java:62)
10:05:10,826 ERROR [STDERR] at
org.jboss.aop.joinpoint. MethodInvocation .invokeNext( MethodInvocation .java:10
2)
10:05:10,826 ERROR [STDERR] at
org.jboss.ejb3.entity.ExtendedP ersistenceContex tPropagationInte rceptor.invok
e(ExtendedPersistenceContextPropaga tionInterceptor. java:60)
10:05:10,826 ERROR [STDERR] at
org.jboss.aop.joinpoint. MethodInvocation .invokeNext( MethodInvocation .java:10
2)
10:05:10,826 ERROR [STDERR] at
org.jboss.ejb3.entity.Transacti onScopedEntityMa nagerInterceptor .invoke(Trans
actionScopedEntityManagerIntercepto r.java:56)
10:05:10,826 ERROR [STDERR] at
org.jboss.aop.joinpoint. MethodInvocation .invokeNext( MethodInvocation .java:10
2)
10:05:10,826 ERROR [STDERR] at
org.jboss.ejb3.AllowedOperation sInterceptor. invoke(AllowedOp erationsIntercep
tor.java:47)
10:05:10,826 ERROR [STDERR] at
org.jboss.aop.joinpoint. MethodInvocation .invokeNext( MethodInvocation .java:10
2)
10:05:10,826 ERROR [STDERR] at
org.jboss.ejb3.tx.NullIntercept or.invoke( NullInterceptor. java:42)
10:05:10,826 ERROR [STDERR] at
org.jboss.aop.joinpoint. MethodInvocation .invokeNext( MethodInvocation .java:10
2)
10:05:10,826 ERROR [STDERR] at
org.jboss.ejb3.stateful. StatefulInstance Interceptor. invoke(StatefulI nstanceI
nterceptor.java:81)
10:05:10,826 ERROR [STDERR] at
org.jboss.aop.joinpoint. MethodInvocation .invokeNext( MethodInvocation .java:10
2)
10:05:10,826 ERROR [STDERR] at
org.jboss.aspects.tx.TxPolicy. invokeInOurTx( TxPolicy. java:79)
10:05:10,827 ERROR [STDERR] at
org.jboss.aspects.tx.TxInterceptor $Required. invoke(TxInterce ptor.java: 190)
10:05:10,827 ERROR [STDERR] at
org.jboss.aop.joinpoint. MethodInvocation .invokeNext( MethodInvocation .java:10
2)
10:05:10,827 ERROR [STDERR] at
org.jboss.aspects.tx.TxPropagation Interceptor. invoke(TxPropaga tionIntercepto
r.java:76)
10:05:10,827 ERROR [STDERR] at
org.jboss.aop.joinpoint. MethodInvocation .invokeNext( MethodInvocation