-
1. Help with getExternalContext()
liuliu Mar 10, 2011 3:06 AM (in response to basharf)1 of 1 people found this helpfulhi,
ajaxsingle maybe the problem.
-
2. Help with getExternalContext()
nbelaevski Mar 10, 2011 3:17 AM (in response to basharf)1 of 1 people found this helpfulHi,
JSF beans are lazily evaluated, so evidently if you use ajax-single component userBean is not being called, thus it's missing in request. Why don't you inject it into tabTest instead of taking it from request map?
-
3. Re: Help with getExternalContext()
basharf Mar 10, 2011 5:12 AM (in response to nbelaevski)Thanks a lot for the reply ...
but this is really important .. could you please tell me how .. maybe I am doing things in the wrong way..
Thanks a lot again..
-
4. Help with getExternalContext()
basharf Mar 10, 2011 5:48 AM (in response to nbelaevski)it seems I am doing it the wrong way .. how can I do it please ?
please help.. Thanks a lot
-
5. Help with getExternalContext()
ilya_shaikovsky Mar 10, 2011 6:01 AM (in response to basharf)1) remove ajaxSingle
or
2) inject using managed property instead of getting from request map.
-
6. Help with getExternalContext()
basharf Mar 10, 2011 6:13 AM (in response to ilya_shaikovsky)Thank you so much Ilya ..
how can I do step 2 please ?
2) inject using managed property instead of getting from request map.
I thought that this is what I did ... ??
please help
thanks.
-
7. Help with getExternalContext()
basharf Mar 10, 2011 7:27 AM (in response to basharf)any one ? I tried googling .. no clear example ..
Thanks.
-
8. Help with getExternalContext()
liuliu Mar 10, 2011 8:04 AM (in response to basharf)hi,
can you switch your userbean to session scope?
-
9. Help with getExternalContext()
basharf Mar 10, 2011 8:44 AM (in response to liuliu)hi Liumin..
actually it is really big object .. I dont want to cache it in the session
thanks
-
10. Re: Help with getExternalContext()
liuliu Mar 10, 2011 11:44 AM (in response to basharf)hi,
this is injection with managed-property in your faces-config.xml
<managed-property>
<property-name>userBean</property-name>
<property-class>class.path.UserBean</property-class>
<value>#{userBean}</value>
</managed-property>