You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Catalin Kormos <ca...@yahoo.com> on 2004/11/16 15:48:03 UTC

"Request scope" clarification need

Hi,

I'm almost very new to JSF, i'm trying to use it on a
new project, more exacly, i'm using myfaces-1.0.7; i
think i need some clarifications about the "session
scope", i guess i don't understand well what is all
about. For example, in tlddocs, for tag
x:dataScroller, there is an attribute, "pageIndexVar";
the following is the description "A parameter name,
under which the actual page index is set in request
scope similar to the var parameter"; 

My question is: how can i get the value for that
parameter from the request scope? i realy need the
value to be able to detect the change in the page
index currenly displayed by the data table. Is there
any other possibility to be informed about the change
of the currently displayed page index, for a data
table?

Thanks, i would realy appreciate some help,

Regards,

Catalin


		
__________________________________ 
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.com 
 


Re: "Request scope" clarification need

Posted by Bill Dudney <bd...@mac.com>.
Hi Catalin,

Have you tried asking the session for the value?

FacesContext.getCurrentInstance().getExternalContext().getSessionMap().g 
et('the value specified for pageIndexVar');

should do the trick.

I'm not sure about the data table.

Hope this helps,

-bd-

On Nov 16, 2004, at 7:48 AM, Catalin Kormos wrote:

> Hi,
>
> I'm almost very new to JSF, i'm trying to use it on a
> new project, more exacly, i'm using myfaces-1.0.7; i
> think i need some clarifications about the "session
> scope", i guess i don't understand well what is all
> about. For example, in tlddocs, for tag
> x:dataScroller, there is an attribute, "pageIndexVar";
> the following is the description "A parameter name,
> under which the actual page index is set in request
> scope similar to the var parameter";
>
> My question is: how can i get the value for that
> parameter from the request scope? i realy need the
> value to be able to detect the change in the page
> index currenly displayed by the data table. Is there
> any other possibility to be informed about the change
> of the currently displayed page index, for a data
> table?
>
> Thanks, i would realy appreciate some help,
>
> Regards,
>
> Catalin
>
>
> 		
> __________________________________
> Do you Yahoo!?
> The all-new My Yahoo! - Get yours free!
> http://my.yahoo.com
>
>