Hi,
the best approach depends on your project. If the your collections of
strings is an bean property, you can use PropertyModel,
CompoundPropertyModel
ex: new PropertyModelCollection(beanDayNews, sportNews);
Depending on your model data heavy, you can use LoadableDetachableModel or
Model...
Pedro,What I want is not to persist this data into a database, but to
have in a property file. Could I have a collection in a property file and
access to it through some model, for instance ResourceModel? Or I have to do
a lot of hard work using my db?
Thanks in advance
On Mon, Sep 14, 2009
If you are talking about collection as an object that implements from
Collection interface, no. The ResourceModel only take a String value from
application localizer, using an key. It do not deserialize an object, like a
collection previously written...
On Mon, Sep 14, 2009 at 11:10 AM, Fernando
I am talking to give a key to ResourceModel and get a Collection of strings.
On Mon, Sep 14, 2009 at 4:18 PM, Pedro Santos pedros...@gmail.com wrote:
If you are talking about collection as an object that implements from
Collection interface, no. The ResourceModel only take a String value from
Hi all,
I would like to get a collection of string insted of a string using
ResourceModel. Is this achievable? Or which would be the best aproach?
I have to publish in the simplest way just 2 or 3 news on the homepage of
the site.
thanks in advance
--
Fernando Wermus.