• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem in dependency injection with javax.faces.STATE_SAVING_METHOD  RSS feed

 
melad ezzat
Greenhorn
Posts: 22
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when i use dependency injection and javax.faces.STATE_SAVING_METHOD to client side

<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>client</param-value>
</context-param>

all dependency injection return null

thank you
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Whether you use client-side or server-side state saving should not affect dependency injection. If switching the state saving is causing you problems then you need to find out what's wrong with state saving itself. It's most likely that the client isn't receiving and resending the state properly. This might mean that the client's cookie handling isn't enabled.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!