Its probably not required for "pure" wicket applications - but when wicket is
used with "legacy" or some other applications, it may be required. My
particular usecase is actually for Ofbiz(http://ofbiz.apache.org). There is
information on HttpSession/HttpRequest attributes that Ofbiz stores that I
need to refer to get the next set of items. Not sure how familiar you are
with ofbiz but I particularly need EntityEngine delegator object which is
the DAL starting point and is stored in request/session.

I can also think of scenarios where ppl may want to use the same
dataprovider class instead of creating a separate one for different "type"
of data to be fetched. e.g. Getting products by manufacturers or getting
products by subcategory. I know the best practice would be to create a
dataprovider factory and create separate instances for each - but if it was
just as simple as 2 if statements to fetch the next set of items based on
what the "id" was (mfg or subcategory) in the request same data provider can
potentially  be used.


igor.vaynberg wrote:
> 
> what is the actual use case? sounds a bit weird when you say those
> things for a wicket app
> 
> -igor
> 
> 
> On Mon, Apr 7, 2008 at 4:00 PM, Ritz123 <[EMAIL PROTECTED]> wrote:
>>
>>  Hi,
>>
>>  I am using SortableDataProvider and have a need to access request
>> attributes
>>  to get the next set of "items".  IDataProvider and none of the
>> pre-canned
>>  implementation classes seem to use HttpServletRequest to fetch the next
>> set
>>  of items. Was wondering if someone had similar requirement and if there
>> is
>>  an easier way to get access to request object from within the
>> IDataProvider.
>>
>>  Thanks in advance.
>>  --
>>  View this message in context:
>> http://www.nabble.com/Request-based-DataProvider-tp16542297p16542297.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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Request-based-DataProvider-tp16542297p16567198.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]

Reply via email to