OK. What version do you have in your faces-config.xml file? Also, do you
have javax.faces.PARTIAL_STATE_SAVING set to false in web.xml?

___

Kito D. Mann | @kito99 | Author, JSF in Action
Virtua, Inc. | http://www.virtua.com | JSF/Java EE training and consulting
http://www.JSFCentral.com | @jsfcentral
+1 203-998-0403

* Listen to the Enterprise Java Newscast: *http://
<http://blogs.jsfcentral.com/JSFNewscast/>enterprisejavanews.com
<http://ww.enterprisejavanews.com>*
* JSFCentral Interviews Podcast:
http://www.jsfcentral.com/resources/jsfcentralpodcasts/
* Sign up for the JSFCentral Newsletter: http://oi.vresp.com/?fid=ac048d0e17

On Fri, Nov 7, 2014 at 4:09 PM, Bjørn T Johansen <b...@havleik.no> wrote:

> No bindings...  And using Myfaces 2.2.5....
>
> BTJ
>
> On Fri, 7 Nov 2014 15:57:00 -0500
> Kito Mann <kito.m...@virtua.com> wrote:
>
> > Hello Bjorn,
> >
> > Do you have component bindings in your page (i.e <h:myComponent
> > binding="#{myBean.comp}"/>)? That causes the exact behavior you're
> > describing in versions of JSF prior to 2.2. What version of MyFaces are
> you
> > using?
> >
> > ___
> >
> > Kito D. Mann | @kito99 | Author, JSF in Action
> > Virtua, Inc. | http://www.virtua.com | JSF/Java EE training and
> consulting
> > http://www.JSFCentral.com | @jsfcentral
> > +1 203-998-0403
> >
> > * Listen to the Enterprise Java Newscast: *http://
> > <http://blogs.jsfcentral.com/JSFNewscast/>enterprisejavanews.com
> > <http://ww.enterprisejavanews.com>*
> > * JSFCentral Interviews Podcast:
> > http://www.jsfcentral.com/resources/jsfcentralpodcasts/
> > * Sign up for the JSFCentral Newsletter:
> http://oi.vresp.com/?fid=ac048d0e17
> >
> > On Fri, Nov 7, 2014 at 3:42 PM, Bjørn T Johansen <b...@havleik.no> wrote:
> >
> > > I trying to create a webapplication using request and/or viewscope
> instead
> > > of sessionscope, which I have always used... (Neved needed to concern
> > > myself with memory usage in the apps I have implemented.. :) )
> > > But I now have a problem using @ViewScoped..
> > > When I access index.xhtml which uses a managed bean in viewscope, the
> > > constructor is called multiple times. And the same with an init
> method, that
> > > should be called only once. I am using..:
> > >
> > > <f:metadata>
> > >     <f:viewAction action="#{calendarController.initPrices}" />
> > > </f:metadata>
> > >
> > > <h:head>......
> > >
> > > to call the init method, but I have also tried using f:event
> prerenderView
> > > and also @PostConstruct but I am not able to make the bean call the
> init
> > > method only once...
> > >
> > > What am I missing?
> > >
> > >
> > > Regards,
> > >
> > > BTJ
> > > --
> > >
> > >
> -----------------------------------------------------------------------------------------------
> > > Bjørn T Johansen
> > >
> > > b...@havleik.no
> > >
> > >
> -----------------------------------------------------------------------------------------------
> > > Someone wrote:
> > > "I understand that if you play a Windows CD backwards you hear strange
> > > Satanic messages"
> > > To which someone replied:
> > > "It's even worse than that; play it forwards and it installs Windows"
> > >
> > >
> -----------------------------------------------------------------------------------------------
> > >
>

Reply via email to