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 at 8:46 AM, Pedro Santos <[email protected]> wrote:

> 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 PropertyModel<Collection>(beanDayNews, "sportNews");
>
> Depending on your model data heavy, you can use LoadableDetachableModel or
> Model...
>
> http://wicket.apache.org/docs/1.4/org/apache/wicket/model/package-tree.html
>
> On Sun, Sep 13, 2009 at 6:57 PM, Fernando Wermus
> <[email protected]>wrote:
>
> > 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.
> >
> > www.linkedin.com/in/fernandowermus
> >
>



-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus

Reply via email to