myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gerhard Petracek <gerhard.petra...@gmail.com>
Subject Re: MyFaces and CODI
Date Sun, 18 Mar 2012 19:47:19 GMT
hi mark,

since rafael mentioned that it works without a4j and there is no issue with
a4j in the demo, i don't think that it is such a basic issue.

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/18 Mark Struberg <struberg@yahoo.de>

>
>
> Gerhard pinged me that you are using @ViewAccessScoped. In that case I'd
> recomment to debug if the whole Context Extension gets properly registrated.
>
> If the CDI container doesn't know the @ViewAccessScoped annotation then
> all your beans will end up as @Dependent...
>
> LieGrue,
> strub
>
>
> ----- Original Message -----
> > From: Mark Struberg <struberg@yahoo.de>
> > To: MyFaces Discussion <users@myfaces.apache.org>
> > Cc:
> > Sent: Sunday, March 18, 2012 7:42 PM
> > Subject: Re: MyFaces and CODI
> >
> >>  when i find out what's causing my bean to be instantiated on every ajax
> > call
> >>  i'll come back here to report.
> >
> > That sounds familiar - good luck ;)
> >
> > Which scope does your bean have? You are sure that you are really using
> CDI
> > javax.enterprise.context.* scopes and not javax.faces.bean.* scopes due
> to a
> > wrong auto-import  of your IDE?
> >
> > LieGrue,
> > strub
> >
> >
> >
> > ----- Original Message -----
> >>  From: Rafael Pestano <rmpestano@yahoo.com.br>
> >>  To: MyFaces Discussion <users@myfaces.apache.org>
> >>  Cc:
> >>  Sent: Saturday, March 17, 2012 4:34 PM
> >>  Subject: Re: MyFaces and CODI
> >>
> >>  yeap, i also deployed the server side demo in tomcat and it works as
> > expected,
> >>  when i find out what's causing my bean to be instantiated on every ajax
> > call
> >>  i'll come back here to report.
> >>
> >>  many thanks for the assistance.
> >>
> >>  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.petracek@gmail.com>
> >>  Para: MyFaces Discussion <users@myfaces.apache.org>
> >>  Enviadas: Sexta-feira, 16 de Março de 2012 22:46
> >>  Assunto: Re: MyFaces and CODI
> >>
> >>  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 <rmpestano@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.petracek@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 <rmpestano@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.petracek@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 <rmpestano@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 <rmpestano@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/
> >>>   > >
> >>>   > >
> >>>   > >
> >>>   > > ________________________________
> >>>   > > De: Gerhard Petracek <gerhard.petracek@gmail.com>
> >>>   > > Para: MyFaces Discussion <users@myfaces.apache.org>
> >>>   > > Enviadas: Quarta-feira, 14 de Março de 2012 23:19
> >>>   > > Assunto: Re: MyFaces and CODI
> >>>   > >
> >>>   > > hi rafael,
> >>>   > >
> >>>   > > as you have seen it's easy to provide a custom
> > WindowHandler
> >>  (just
> >>>   > > implement the interface and provide your implementation as
> >>  alternative
> >>>   > cdi
> >>>   > > bean)
> >>>   > > -> you can integrate every custom approach which is
> > enough to
> >>  solve you
> >>>   > > requirements.
> >>>   > >
> >>>   > > if you don't need redirects, you could have a look at
> > e.g.
> >>  [1] which
> >>>   uses
> >>>   > > an internal fallback.
> >>>   > >
> >>>   > > regards,
> >>>   > > gerhard
> >>>   > >
> >>>   > > [1] http://s.apache.org/SAs
> >>>   > >
> >>>   > > 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 <rmpestano@yahoo.com.br>
> >>>   > >
> >>>   > > > Hi Gehard,
> >>>   > > >
> >>>   > > > its a stopper to us cause we are still dependent on JSF
> > 1.2
> >>>   > > > Can i implement an alternative
> >>>   > > > to
> >>>   > >
> >>>   >
> >>>
> >>
> >
> org.apache.myfaces.extensions.cdi.jsf2.impl.scope.conversation.ServerSideWindowHandler
> >>>   > > > based on JSF 1.2?
> >>>   > > >
> >>>   > > > i see you use flash scope to span the windowId through
> >>  requests in
> >>>   the
> >>>   > > > server side solution:
> >>>   > > >
> >>>   > > > if (windowId != null)
> >>>   > > > 79         {
> >>>   > > >
> >>>   > > > 80
> >>>   > >
> >>  externalContext.getRequestMap().put(WINDOW_CONTEXT_ID_PARAMETER_KEY,
> >>>   > > windowId);
> >>>   > > >
> >>>   > > > 81
> >>>   > >
> > externalContext.getFlash().keep(WINDOW_CONTEXT_ID_PARAMETER_KEY);
> >>>   > > > 82         }
> >>>   > > >
> >>>   > > > if i put the windownId in the sessionMap it would still
> >
> >>  work? i think
> >>>   > ill
> >>>   > > > find hard time trying to remove the windowId from the
> > map
> >>  when user
> >>>   > leave
> >>>   > > > the page.
> >>>   > > >
> >>>   > > >
> >>>   > > >
> >>>   > > > thanks for your help i really appreciated it.
> >>>   > > >
> >>>   > > > 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.petracek@gmail.com>
> >>>   > > > Para: MyFaces Discussion
> > <users@myfaces.apache.org>
> >>>   > > > Cc:
> >>>   > > > Enviadas: Quarta-feira, 14 de Março de 2012 20:55
> >>>   > > > Assunto: Re: MyFaces and CODI
> >>>   > > >
> >>>   > > > hi rafael,
> >>>   > > >
> >>>   > > > internally the ServerSideWindowHandler is based on the
> > flash
> >>  scope
> >>>   > > (that's
> >>>   > > > one of the mentioned disadvantages)
> >>>   > > > -> it's bound to jsf 2+ -> it is:
> >>>   > > >
> >>>   > > >
> >>>   > >
> >>>   >
> >>>
> >>
> >
> org.apache.myfaces.extensions.cdi.jsf2.impl.scope.conversation.ServerSideWindowHandler
> >>>   > > > (and you can't use the additional js.)
> >>>   > > >
> >>>   > > > with some constellations you just hit the restrictions
> > of
> >>  browsers ->
> >>>   > you
> >>>   > > > have to choose what you really need.
> >>>   > > >
> >>>   > > > 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 <rmpestano@yahoo.com.br>
> >>>   > > >
> >>>   > > > > i see, i have used the client side one
> >>>   > > > >
> >>>   > > > > <alternatives>
> >>>   > > > >
> >>>   > > >
> >>>   > >
> >>>   >
> >>>
> >>
> >
> <class>org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.ClientSideWindowHandler</class>
> >>>   > > > > </alternatives>
> >>>   > > > >
> >>>   > > > > i imagine the server side should be
> >>>   > > > >
> >>>   > > > > <alternatives>
> >>>   > > > >
> >>>   > > >
> >>>   > >
> >>>   >
> >>>
> >>
> >
> <class>org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.ServerSideWindowHandler</class>
> >>>   > > > > </alternatives>alright?
> >>>   > > > >
> >>>   > > > > i will test it tomorrow and give the feedback,
> > thanks.
> >>>   > > > >
> >>>   > > > > 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.petracek@gmail.com>
> >>>   > > > > Para: MyFaces Discussion
> >>  <users@myfaces.apache.org>
> >>>   > > > > Cc:
> >>>   > > > > Enviadas: Quarta-feira, 14 de Março de 2012 20:11
> >>>   > > > > Assunto: Re: MyFaces and CODI
> >>>   > > > >
> >>>   > > > > hi rafael,
> >>>   > > > >
> >>>   > > > > the easiest approach to test an alternative for
> > this
> >>  constellation
> >>>   is
> >>>   > > the
> >>>   > > > > activation of the ServerSideWindowHandler
> > (it's a
> >>  std. cdi
> >>>   > @Alternative
> >>>   > > > > implementation -> you can activate it in the
> >>  beans.xml file of your
> >>>   > > > > application).
> >>>   > > > > (however, please be aware that this alternative
> >>  implementation has
> >>>   > some
> >>>   > > > > disadvantages.)
> >>>   > > > >
> >>>   > > > > 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/14 Rafael Pestano
> > <rmpestano@yahoo.com.br>
> >>>   > > > >
> >>>   > > > > > Hi Gerhard, i successfuly added codi and
> >>  openwebbeans to an
> >>>   > > application
> >>>   > > > > > running on weblogic 11g
> >>>   > > > > >
> >>>   > > > > > however its a  legacy application which uses
> >>  frames, basicaly we
> >>>   > > have a
> >>>   > > > > > menu on the left frame that targets the
> > center
> >>  frame, something
> >>>   > like:
> >>>   > > > > >
> >>>   > > > > > <h:commandLink value="menuLink"
> >>  action="#{myBean.init}"
> >>>   > > > target="frmDados"
> >>>   > > > > > />
> >>>   > > > > >
> >>>   > > > > >
> >>>   > > > > > the problem is, when a add CODI to the
> > application
> >>  and mark
> >>>   myBean
> >>>   > as
> >>>   > > > > > ViewAccessScoped (and thus the windowId
> > starts to
> >>  be append to
> >>>   the
> >>>   > > url)
> >>>   > > > > > the above menuLink always open the center
> > frame in
> >>  a new browser
> >>>   > tab.
> >>>   > > > > >
> >>>   > > > > > If i remove CODI and set myBean as
> >>  RequestScoped(or any other CDI
> >>>   > > > Scope)
> >>>   > > > > > the application behaves  as expected.
> >>>   > > > > >
> >>>   > > > > > So i think the windowId generated by CODI  is
> >
> >>  causing this
> >>>   issue, i
> >>>   > > > tried
> >>>   > > > > > your solution without success, the windowId
> > isnt
> >>  removed from the
> >>>   > url
> >>>   > > > > and a
> >>>   > > > > > new tab opens when i click in the menuLink.
> >>>   > > > > >
> >>>   > > > > > Any thoughs?
> >>>   > > > > >
> >>>   > > > > >
> >>>   > > > > > thanks for all your 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.petracek@gmail.com>
> >>>   > > > > > Para: MyFaces Discussion
> >>  <users@myfaces.apache.org>
> >>>   > > > > > Enviadas: Sexta-feira, 9 de Março de 2012
> > 12:38
> >>>   > > > > > Assunto: Re: MyFaces and CODI
> >>>   > > > > >
> >>>   > > > > > hi stephen,
> >>>   > > > > >
> >>>   > > > > > that's right [1] doesn't support it.
> >>>   > > > > > werner committed his improvement and you can
> > try
> >>  [2] and [3] as
> >>>   you
> >>>   > > see
> >>>   > > > > > them right now.
> >>>   > > > > >
> >>>   > > > > > regards,
> >>>   > > > > > gerhard
> >>>   > > > > >
> >>>   > > > > > [1]
> >>>   > > > >
> >>>   >
> > http://old.nabble.com/-CODI--lazy-windowId-drop-script-p31654496.html
> >>>   > > > > > [2] http://s.apache.org/rr
> >>>   > > > > > [3] http://s.apache.org/23p
> >>>   > > > > >
> >>>   > > > > > http://www.irian.at
> >>>   > > > > >
> >>>   > > > > > Your JSF/JavaEE powerhouse -
> >>>   > > > > > JavaEE Consulting, Development and
> >>>   > > > > > Courses in English and German
> >>>   > > > > >
> >>>   > > > > > Professional Support for Apache MyFaces
> >>>   > > > > >
> >>>   > > > > >
> >>>   > > > > >
> >>>   > > > > > 2012/3/9 Stephen More
> >>  <stephen.more@gmail.com>
> >>>   > > > > >
> >>>   > > > > > > I was referring to [1]
> >>>   > > > > > >
> >>>   > > >
> >>>
> http://old.nabble.com/-CODI--lazy-windowId-drop-script-p31654496.html
> >>>   > > > > > >
> >>>   > > > > > > I guess I just need to wait until the
> > correct
> >>  way is tested and
> >>>   > > > > > > documented in the wiki using:
> >>>   > > > > > >   [1] http://s.apache.org/rr
> >>>   > > > > > >  [2] http://s.apache.org/23p
> >>>   > > > > > >
> >>>   > > > > > >
> >>>   > > > > > >
> >>>   > > > > > > On Fri, Mar 9, 2012 at 9:20 AM, Gerhard
> >>  Petracek
> >>>   > > > > > > <gerhard.petracek@gmail.com>
> > wrote:
> >>>   > > > > > > > @ mark:
> >>>   > > > > > > > i just tested it and it works with
> > [1]
> >>  in combination
> >>>   > > > > > > > with ClientSideWindowHandler [2].
> >>>   > > > > > > >
> >>>   > > > > > > > regards,
> >>>   > > > > > > > gerhard
> >>>   > > > > > > >
> >>>   > > > > > > > [1] http://s.apache.org/rr
> >>>   > > > > > > > [2] http://s.apache.org/23p
> >>>   > > > > > > >
> >>>   > > > > > > > http://www.irian.at
> >>>   > > > > > > >
> >>>   > > > > > > > Your JSF/JavaEE powerhouse -
> >>>   > > > > > > > JavaEE Consulting, Development and
> >>>   > > > > > > > Courses in English and German
> >>>   > > > > > > >
> >>>   > > > > > > > Professional Support for Apache
> > MyFaces
> >>>   > > > > > > >
> >>>   > > > > > > >
> >>>   > > > > > > >
> >>>   > > > > > > > 2012/3/9 Mark Struberg
> >>  <struberg@yahoo.de>
> >>>   > > > > > > >
> >>>   > > > > > > >> Hi Stephen!
> >>>   > > > > > > >>
> >>>   > > > > > > >> Well, the current approach in
> > CODI
> >>  is currently under
> >>>   > discussion
> >>>   > > > in
> >>>   > > > > > the
> >>>   > > > > > > >> JSF EG. The whole windowId
> > stuff of
> >>  CODI might end up in the
> >>>   > > > JSF-2.2
> >>>   > > > > > or
> >>>   > > > > > > 2.3
> >>>   > > > > > > >> spec.
> >>>   > > > > > > >>
> >>>   > > > > > > >> >T hat seems to work fine
> > when
> >>  pasting into a new empty
> >>>   > window,
> >>>   > > > but
> >>>   > > > > it
> >>>   > > > > > > >> > still allows you to
> > copy-paste
> >>  the url from one codi
> >>>   window
> >>>   > to
> >>>   > > > an
> >>>   > > > > > > >> > existing codi window.
> >>>   > > > > > > >>
> >>>   > > > > > > >> Nope, because the
> > windowhandler.js
> >>  script will first check
> >>>   the
> >>>   > > > > > > window.name.
> >>>   > > > > > > >> And if this is
> > empty/doesn't fit
> >>  the windowId in the URL,
> >>>   then
> >>>   > > it
> >>>   > > > > will
> >>>   > > > > > > >> reload the page with a freshly
> >>  requested windowId.
> >>>   > > > > > > >>
> >>>   > > > > > > >> LieGrue,
> >>>   > > > > > > >> strub
> >>>   > > > > > > >>
> >>>   > > > > > > >>
> >>>   > > > > > > >>
> >>>   > > > > > > >>
> >>>   > > > > > > >> ----- Original Message -----
> >>>   > > > > > > >> > From: Stephen More
> >>  <stephen.more@gmail.com>
> >>>   > > > > > > >> > To: MyFaces Discussion
> >>  <users@myfaces.apache.org>
> >>>   > > > > > > >> > Cc:
> >>>   > > > > > > >> > Sent: Friday, March 9,
> > 2012
> >>  1:27 PM
> >>>   > > > > > > >> > Subject: Re: MyFaces and
> > CODI
> >>>   > > > > > > >> >
> >>>   > > > > > > >> > Included in the JSF jar is
> >>>   > > META-INF/resources/javax.faces/jsf.js
> >>>   > > > > > which
> >>>   > > > > > > >> > enables its use by
> >>  <h:outputScript name="jsf.js"
> >>>   > > > > > > >> >
> > library="javax.faces"
> >>>   > > > > > > >> >
> > target="head"/>
> >>>   > > > > > > >> >
> >>>   > > > > > > >> > Should windowhandler.js be
> >
> >>  moved from the examples into a
> >>>   > core
> >>>   > > > > > library
> >>>   > > > > > > >> > so that it can be utilized
> > the
> >>  same way ?
> >>>   > > > > > > >> >
> >>>   > > > > > > >> >
> >>>   > > > > > > >> >
> >>>   > > > > > > >> > On Fri, Mar 9, 2012 at
> > 7:10 AM,
> >>  Gerhard Petracek
> >>>   > > > > > > >> >
> >>  <gerhard.petracek@gmail.com> wrote:
> >>>   > > > > > > >> >>  hi stephen,
> >>>   > > > > > > >> >>
> >>>   > > > > > > >> >>  yes - you can add a
> > small
> >>  js (see e.g. [1]) to support
> >>>   > this
> >>>   > > > > > > use-case.
> >>>   > > > > > > >> >>
> >>>   > > > > > > >> >>  regards,
> >>>   > > > > > > >> >>  gerhard
> >>>   > > > > > > >> >>
> >>>   > > > > > > >> >>  [1]
> >>  http://s.apache.org/YTq
> >>>   > > > > > > >> >>
> >>>   > > > > > > >> >>  http://www.irian.at
> >>>   > > > > > > >> >>
> >>>   > > > > > > >> >>  Your JSF/JavaEE
> > powerhouse
> >>  -
> >>>   > > > > > > >> >>  JavaEE Consulting,
> >>  Development and
> >>>   > > > > > > >> >>  Courses in English
> > and
> >>  German
> >>>   > > > > > > >> >>
> >>>   > > > > > > >> >>  Professional Support
> > for
> >>  Apache MyFaces
> >>>   > > > > > > >> >>
> >>>   > > > > > > >> >>
> >>>   > > > > > > >> >>
> >>>   > > > > > > >> >>  2012/3/9 Stephen More
> >
> >>  <stephen.more@gmail.com>
> >>>   > > > > > > >> >>
> >>>   > > > > > > >> >>>  Great. I am
> > mainly
> >>  interested in WindowScoped i.e.
> >>>   every
> >>>   > > > > browser
> >>>   > > > > > > tab
> >>>   > > > > > > >> >>>  has its own
> >>  mini-session.
> >>>   > > > > > > >> >>>
> >>>   > > > > > > >> >>>  I see that CODI
> > is
> >>  adding a ?windowId=595 to keep these
> >>>   > > > > > > conversations
> >>>   > > > > > > >> >>>  separate. If a
> > user
> >>  simply copies the url and pastes
> >>>   in a
> >>>   > > new
> >>>   > > > > tab
> >>>   > > > > > > now
> >>>   > > > > > > >> >>>  two browser tabs
> > are
> >>  sharing the same conversation. How
> >>>   > > can I
> >>>   > > > > > > prevent
> >>>   > > > > > > >> >>>  this ? I want to
> >>  enforce that EVERY browser tab has its
> >>>   > own
> >>>   > > > > > > >> >>>  conversation.
> > Perhaps
> >>  a simple error to the user saying
> >>>   > > > > > > >> > "Sorry" or
> >>>   > > > > > > >> >>>  start a new
> >>  conversation.
> >>>   > > > > > > >> >>>
> >>>   > > > > > > >> >>>  -Thanks
> >>>   > > > > > > >> >>>
> >>>   > > > > > > >> >>>  On Fri, Mar 9,
> > 2012 at
> >>  3:18 AM, Gerhard Petracek
> >>>   > > > > > > >> >>>
> >>  <gerhard.petracek@gmail.com> wrote:
> >>>   > > > > > > >> >>>  > hi stephen,
> >>>   > > > > > > >> >>>  >
> >>>   > > > > > > >> >>>  > (that's
> > an
> >>  issue with the setup of weld and not
> >>>   related
> >>>   > > to
> >>>   > > > > > > >> > myfaces codi.)
> >>>   > > > > > > >> >>>  > however,
> > myfaces
> >>  codi doesn't need this support -> if
> >>>   > you
> >>>   > > > > > > >> > also don't need
> >>>   > > > > > > >> >>>  > cdi support
> > for
> >>  servlets, filters or listeners, you
> >>>   can
> >>>   > > run
> >>>   > > > > the
> >>>   > > > > > > >> >>>  application
> >>>   > > > > > > >> >>>  > without
> > those
> >>  features.
> >>>   > > > > > > >> >>>  >
> >>>   > > > > > > >> >>>  > 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/9
> > Stephen
> >>  More <stephen.more@gmail.com>
> >>>   > > > > > > >> >>>  >
> >>>   > > > > > > >> >>>  >> I too am
> >
> >>  trying to get a simple example working. I
> >>>   > have
> >>>   > > > put
> >>>   > > > > > > >> > together
> >>>   > > > > > > >> >>>  >> this
> > project:
> >>>   > > > > > > >> >
> >>  http://maven-examples.googlecode.com/svn/trunk/jsf-codi/
> >>>   > > > > > > >> >>>  >>
> >>>   > > > > > > >> >>>  >> mvn
> >>  jetty:run-war   results in
> >>>   > > > > > > >> >>>  >>
> >>>   > > > > > > >> >>>  >> SEVERE:
> >>  Unable to create JettyWeldInjector. CDI
> >>>   > > injection
> >>>   > > > > will
> >>>   > > > > > > >> > not be
> >>>   > > > > > > >> >>>  >>
> > available in
> >>  Servlets, Filters or Listeners
> >>>   > > > > > > >> >>>  >>
> >>>   > > > > > > >> >>>  >> What
> > else do
> >>  I need to get this simple example
> >>>   > working ?
> >>>   > > > > > > >> >>>  >>
> >>>   > > > > > > >> >>>  >> -Thanks
> >>>   > > > > > > >> >>>  >>
> >>>   > > > > > > >> >>>  >> On Thu,
> > Mar
> >>  8, 2012 at 11:07 AM, Gerhard Petracek
> >>>   > > > > > > >> >>>  >>
> >>  <gerhard.petracek@gmail.com> wrote:
> >>>   > > > > > > >> >>>  >> > hi
> > jose,
> >>>   > > > > > > >> >>>  >> >
> >>>   > > > > > > >> >>>  >> >
> > first of
> >>  all: welcome @ myfaces!
> >>>   > > > > > > >> >>>  >> >
> >>>   > > > > > > >> >>>  >> >
> > concrete
> >>  questions are very welcome and we will
> >>>   > > improve
> >>>   > > > > > > >> > the wiki
> >>>   > > > > > > >> >>>  based on
> >>>   > > > > > > >> >>>  >> >
> > them.
> >>>   > > > > > > >> >>>  >> >
> >>>   > > > > > > >> >>>  >> >
> > 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/8
> >>  José Luis Cetina <maxtorzito@gmail.com>
> >>>   > > > > > > >> >>>  >> >
> >>>   > > > > > > >> >>>  >> >>
> > Hi
> >>  im so excited to start and use MyFaces and
> >>>   CODI
> >>>   > > > > > > >> > but i cant get any
> >>>   > > > > > > >> >>>  >> >>
> >
> >>  "good" documentation in fact i only can get
> >>>   > > > > > > >> > like 2 or 3 mini tutorial
> >>>   > > > > > > >> >>>  >> but
> >>>   > > > > > > >> >>>  >> >>
> > they
> >>  are really incomplete, can somebody
> >>>   recommend
> >>>   > me
> >>>   > > > > > > >> > to some
> >>>   > > > > > > >> >>>  tutorial
> >>>   > > > > > > >> >>>  >> or
> >>>   > > > > > > >> >>>  >> >>
> > book
> >>  to start with *CODI *y see this is an
> >>>   > excellent
> >>>   > > > > > > >> > extension, im
> >>>   > > > > > > >> >>>  >> moving
> >>>   > > > > > > >> >>>  >> >>
> > from
> >>  mojarra and CDI to MyFaces and MyFaces
> >>>   > > > > > > >> > extensions, please where
> >>>   > > > > > > >> >>>  i
> >>>   > > > > > > >> >>>  >> can
> >>>   > > > > > > >> >>>  >> >>
> > find
> >>  value information
> >>>   > > > > > > >> >>>  >> >>
> >>>   > > > > > > >> >>>  >> >>
> > The
> >>  only URL where i found a little info is this:
> >>>   > > > > > > >> >>>  >> >>
> >>>   > > > > > > >> >
> >>  https://cwiki.apache.org/confluence/display/EXTCDI/Index
> >>>   > > > > > > >> >>>  >> >>
> >>>   > > > > > > >> >>>  >> >>
> > --
> >>>   > > > > > > >> >>>  >> >>
> >>>   > > > > > > >> >
> >>>   > > > >
> >>  -------------------------------------------------------------------
> >>>   > > > > > > >> >>>  >> >>
> >
> >>  *SCJA. José Luis Cetina*
> >>>   > > > > > > >> >>>  >> >>
> >>>   > > > > > > >> >
> >>>   > > > >
> >>  -------------------------------------------------------------------
> >>>   > > > > > > >> >>>  >> >>
> >>>   > > > > > > >> >>>  >>
> >>>   > > > > > > >> >>>
> >>>   > > > > > > >> >
> >>>   > > > > > > >>
> >>>   > > > > > >
> >>>   > > > > >
> >>>   > > > >
> >>>   > > > >
> >>>   > > >
> >>>   > >
> >>>   >
> >>>
> >>>
> >>
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message