Re: MyFaces and CODI

2012-03-16 Thread Gerhard Petracek
hi rafael,

i can't reproduce it. i added richfaces to the previous demo as well as a4j
support to the input component and everything works as expected.

regards,
gerhard

http://www.irian.at

Your JSF/JavaEE powerhouse -
JavaEE Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces



2012/3/15 Rafael Pestano rmpest...@yahoo.com.br

 Hi Gehard,

 i didnt got the ideia, do you have any example or a link showing this
 approach?

 what i have got til now is:
 1 - WindowContextIdHolderComponent is a jsf component which is added
 dynamically to the view
 2 - this component holds the windowId
 3 - i have,somehow , to keep the windowId the same between requests so my
 ViewAccessScoped bean  is keeped alive - here is where im stuck




 Att,
 Rafael M. Pestano
 Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul
 Graduando em Ciência da Computação UFRGS
 @realpestano
 http://code.google.com/p/jsf-conventions-framework/



 - Mensagem original -
 De: Gerhard Petracek gerhard.petra...@gmail.com
 Para: MyFaces Discussion users@myfaces.apache.org
 Cc:
 Enviadas: Quinta-feira, 15 de Março de 2012 11:28
 Assunto: Re: MyFaces and CODI

 hi rafael,

 @ WindowContextIdHolderComponent:

 that's the name of the class. you have to resolve the component (by type)
 before the view gets rendered and add it to the ajax enabled a4j components
 via the corresponding java-api.

 @ custom approach:
 independent of the concrete approach you would like to use, you just have
 to ensure that the information is available on the server-side (for every
 jsf request which starts the jsf request-lifecycle).

 regards,
 gerhard

 Your JSF/JavaEE powerhouse -
 JavaEE Consulting, Development and
 Courses in English and German

 Professional Support for Apache MyFaces


 2012/3/15 Rafael Pestano rmpest...@yahoo.com.br

  Hi again,
 
  it will work with a4j as soon as you
  ensure that it gets restored for requests triggered by a4j  you mean i
  should send WindowContextIdHolderComponent  within the ajax request?
 
  somethink like a4j:support process=WindowContextIdHolderComponent/ ?
 
  if so whats the id of the generated component?
 
  i also have another question, in the javadoc
  of WindowContextConfig isUrlParameterSuported() says
 
  Specifies if it is allowed to use URL params for forwarding the current
  window-id. (deactivate it e.g. for higher security - in this case it's
  required to use a window id provided by a component lib or a server-side
  window-handler
 
  how can i create a component to handle the window id? can i do that with
  an h:inputHidden for example?
 
  thanks for the help.
 
 
 
  Att,
 
  Rafael M. Pestano
 
  Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul
  Graduando em Ciência da Computação UFRGS
  @realpestano
  http://code.google.com/p/jsf-conventions-framework/
 
 
 
  
  De: Gerhard Petracek gerhard.petra...@gmail.com
  Para: MyFaces Discussion users@myfaces.apache.org
  Enviadas: Quinta-feira, 15 de Março de 2012 10:37
  Assunto: Re: MyFaces and CODI
 
  hi rafael,
 
  the fallback adds a component (WindowContextIdHolderComponent)
 dynamically
  (as a direct child of UiViewRoot) - it will work with a4j as soon as you
  ensure that it gets restored for requests triggered by a4j.
 
  regards,
  gerhard
 
  http://www.irian.at
 
  Your JSF/JavaEE powerhouse -
  JavaEE Consulting, Development and
  Courses in English and German
 
  Professional Support for Apache MyFaces
 
 
  2012/3/15 Rafael Pestano rmpest...@yahoo.com.br
 
   well its not 100% yet ;(...on every ajaxCall my ViewAccessScoped bean
 is
   being instantiated,
  
   im using a4j, there is any known issue with it?
  
   for example h:selectOneMenu .
   a4j:support event=onchange action=when
  the
   action is called the bean constructor gets called/
   /h:selectOneMenu
  
   if i change from View to RequestScoped the bahavior is the same, any
  ideas?
  
  
   thanks in advance.
  
  
   Att,
  
   Rafael M. Pestano
  
   Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul
   Graduando em Ciência da Computação UFRGS
   @realpestano
   http://code.google.com/p/jsf-conventions-framework/
  
  
  
   
De: Rafael Pestano rmpest...@yahoo.com.br
   Para: MyFaces Discussion users@myfaces.apache.org
   Enviadas: Quinta-feira, 15 de Março de 2012 8:45
   Assunto: Re: MyFaces and CODI
  
   if you don't need redirects, you could have a look at e.g. [1] which
  uses
   an internal fallback. yea, its our case and it just works!
  
   many thanks for your help, keep the great work!
  
   Att,
  
   Rafael M. Pestano
  
   Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul
   Graduando em Ciência da Computação UFRGS
   @realpestano
   http://code.google.com/p/jsf-conventions-framework/
  
  
  
   

ANNOUNCE: A RichFaces Roundup - What's New With 4.2 by Brian Leathem

2012-03-16 Thread Kito Mann
I am pleased to announce a new article from Brian Leathem -

A RichFaces Roundup - What's New With 4.2 . In this article,

Brian discusses the latest developments in the RichFaces project. New
components, mobile compatibility, resource loading optimizations, Ajax
push, and CDI integration are all areas that have seen improvement with the
recent 4.1 and 4.2 releases.  Here is an excerpt:



RichFaces is more than just a JSF component set for building your
applications. RichFaces (along with the Seam project) has always aimed to
provide developers with a complete JSF framework for developing
applications. With the recent RichFaces 4.1 release, the project continues
to build on the ideas of innovation, open standards, community and quality
that have made the project stand out over the years.

Read the full article here:



A RichFaces Roundup - What's New With 4.2

http://www.jsfcentral.com/articles/richfaces_4_2.html



-- 
___

Kito D. Mann | twitter: kito99 | Author, JSF in Action
Virtua, Inc. | http://www.virtua.com | JSF/Java EE training and consulting
http://www.JSFCentral.com - JavaServer Faces FAQ, news, and info | twitter:
jsfcentral
+1 203-404-4848 x3

* Listen to the latest headlines in the JSF and Java EE newscast:
http://blogs.jsfcentral.com/roller/editorsdesk/category/JSF+and+Java+EE+Newscast
* Sign up for the JSFCentral newsletter: http://oi.vresp.com/?fid=ac048d0e17