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/