Sounds good, if it's simply imposible to use services within ASO I'll do
that, but I found more natural the other way arround:
In the Page
_MyAso.addproductttoChart(id);
In the ASO
MyASO.addproducttoChart(idProduct)
{
Map<Integer,Product> _chartMap;
@Inject private MyServices _MyServices;
Product p=_MyServices.getProductById(idProduct);
_chartMap.put(idProduct,p);
}
Instead of
In my Page
@Inject _MyServices
@AplicationState _MyAso
_MyServices.AddProductToChart(idProduct,_MyAso.getMap());
And in services
......
MyServices.AddProductToChart(idProduct,map<Integer,Product>){
Product p=_MyServices.getProductById(idProduct);
_chartMap.put(idProduct,p);
}
It's basically the same but imho in the first model the separation of
responsabilities is higher and keeps the service DAO lean.
thanks for yor answer!
Bill Holloway wrote:
>
> Of course, you'll have the went-to-null trouble even passing the bits
> of data into your service as method args :)
>
> On Thu, May 8, 2008 at 2:38 PM, maxthesecond <[EMAIL PROTECTED]> wrote:
>>
>> How I'm suposed to get services inside an ASO?
>>
>> I placed my DAO objects in services I didn't need any sesion so far, but
>> at
>> a certain point I need an ASO the wich needs to make use of my DAO
>> services.
>>
>> btw I've notice an old post in wich the willing was the oposit; how to
>> acces
>> the ASO from a Services, such is the destiny of frameworks: give
>> satisfaction to all needs....
>>
>> Thanks and never mind !
>> --
>> View this message in context:
>> http://www.nabble.com/T5-ASO---Services-tp17134860p17134860.html
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
>
> --
> Bill @ PeoplePad
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/T5-ASO---Services-tp17134860p17141809.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]