I have a managed bean defined like this...:

<managed-bean>
  <managed-bean-name>mainMenuListener</managed-bean-name>
  
<managed-bean-class>no.havleik.dt.menu.MainMenuSelectedListener</managed-bean-class>
  <managed-bean-scope>session</managed-bean-scope>
  <managed-property>
   <property-name>sessionCont</property-name>
   <value>#{sessionScope.sessionContainer}</value>
  </managed-property>
 </managed-bean>


And if I use the sessionContainer object from my jsp file (<h:outputText
value="#{sessionContainer.menuSelection}" styleClass="userselection"/> ) it 
works as is
should...

But when I try to access sessionCont from my mainMenuListener object, the 
sessionCont is
null, although I have confirmed that the setSessionCont is called during the 
previous
request... But on the next request, sessionCont is null although the scope for 
my bean is
set to session...

This only happens when using myfaces 1.0.9, 1.1.0 and nightly build while using 
Sun's RI
works as expected..

Is is a bug or am I missing something else?


Regards,

BTJ
-- 
-----------------------------------------------------------------------------------------------
Bjørn T Johansen

[EMAIL PROTECTED]
-----------------------------------------------------------------------------------------------
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