Custom tag
Hi i have this: Simple custom tag: Then in my page i do: But i get a NullPointerException, this is because im not setting the actionListener attribute, but the thing is that sometimes i need or only action or actionlistener not both, but i have to provided both if not i get the nullpointer. I have to do this, but the listener method is empty in my managedbean, i only do this for avoid the nullpointer. how can i avoid this? Thanks --- SCJA. José Luis Cetina ---
Re: Custom tag
you can try: maybe it helps. Att, Rafael M. Pestano Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul Graduando em Ciência da Computação UFRGS http://code.google.com/p/jsf-conventions-framework/ http://rpestano.wordpress.com http://twitter.com/realpestano De: José Luis Cetina Para: MyFaces Discussion Enviadas: Quinta-feira, 28 de Junho de 2012 18:28 Assunto: Custom tag Hi i have this: Simple custom tag: Then in my page i do: But i get a NullPointerException, this is because im not setting the actionListener attribute, but the thing is that sometimes i need or only action or actionlistener not both, but i have to provided both if not i get the nullpointer. I have to do this, but the listener method is empty in my managedbean, i only do this for avoid the nullpointer. how can i avoid this? Thanks --- SCJA. José Luis Cetina ---
Re: Custom tag
again, Att, Rafael M. Pestano Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul Graduando em Ciência da Computação UFRGS http://code.google.com/p/jsf-conventions-framework/ http://rpestano.wordpress.com http://twitter.com/realpestano - Mensagem original - De: Rafael Pestano Para: MyFaces Discussion Cc: Enviadas: Quinta-feira, 28 de Junho de 2012 23:12 Assunto: Re: Custom tag you can try: maybe it helps. Att, Rafael M. Pestano Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul Graduando em Ciência da Computação UFRGS http://code.google.com/p/jsf-conventions-framework/ http://rpestano.wordpress.com http://twitter.com/realpestano De: José Luis Cetina Para: MyFaces Discussion Enviadas: Quinta-feira, 28 de Junho de 2012 18:28 Assunto: Custom tag Hi i have this: Simple custom tag: Then in my page i do: But i get a NullPointerException, this is because im not setting the actionListener attribute, but the thing is that sometimes i need or only action or actionlistener not both, but i have to provided both if not i get the nullpointer. I have to do this, but the listener method is empty in my managedbean, i only do this for avoid the nullpointer. how can i avoid this? Thanks --- SCJA. José Luis Cetina ---