Well I just wandered about serialization issues, but better for me if it's
not a problem, at the end I added my Service as a parametrer in the ASO:
MyASO.addproducttoChart(idProduct,MyServices)
{
Map<Integer,Product> _chartMap;
Product p=MyServices.getProductById(idProduct);
_chartMap.put(idProduct,p);
}
It is unclear for me how to inject those services in the
ApplicationStateCreator, and also which will be they time scope...in the way
I did I now that the service has been "freshly" injected in the page, but
really this I still don't get it full.
Thanks
Filip S. Adamsen-2 wrote:
>
> What? It's not uncommon to have methods on an ASO. You can also inject
> services into it when creating it if you use an ApplicationStateCreator.
> The relevant docs on Application State has an example at the bottom.
>
> -Filip
>
> maxthesecond skrev:
>> oopss!
>> I think I missed the point
>> the ASO aplication state object is merely a container for sharing
>> information across pages and time it shall not have metods, so I'll do as
>> you say.
>> thanks again
>
> ---------------------------------------------------------------------
> 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-tp17134860p17145265.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]