First of all, the userid probably isn't much information (a string,
I'd imagine), so it sounds like you may be prematurely optimizing.
Anyway, you can always get the current session by doing:

MySession sess = (MySession)Session.get();





On Mon, Nov 10, 2008 at 4:23 PM, Graeme Knight <[EMAIL PROTECTED]> wrote:
>
> Hi.
>
> Just learning about IDataProvider and DataViews.
>
> I've scoped out the repeaters examples but this may be a little different...
>
> If I have a userId (for example stored in the Session) of the user as he is
> logged in and I wish to use that userId as a criteria for getting hold of
> the correct data using a IDataProvider (for a DataView list), then should I
> pass in the userID to the IDataProvider implementation and just store as a
> private variable?
>
> Is there a better way of getting hold of (or passing this) information into
> the IDataProvider implementation to limit storage/serialization?
>
> Many thanks, Graeme.
> --
> View this message in context: 
> http://www.nabble.com/IDataProvider-and-Session-related-data.-tp20428354p20428354.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to