Hi,

> Personally, I doubt if it gets easier to use for people. 

Not easier but also not harder, is my opinion.

> I am currently more in favor of keeping thing the way they 
> are, but if 
> I'd see some really good examples

The PropertyModel Jonathan Locke has shown is one of the best so far,
below is something I would use:

class Row implements IModel
{
        private Map columndata;

        public Object getObject(String id)
        {
                return columndata.get(id);
        }
        public void setObject(String id,Object obj)
        {
                columndata.put(id,obj)
        }
        
        ...
}


> And why not just create your own model (or put it in contrib for that
matter) like:
> public abstract class IdModel implements IModel
> {
>     private final Serializable id;
> 
>     public IdModel(Serializable id)
>     {
>         this.id = id;
>     }
> 
>     public final Object getObject()
>     {
>         return onGetObject(id);
>     }
> 
>     public abstract Object onGetObject(Serializable id);
> 
>     public final void setObject(Object object)
>     {
>         onSetObject(id, object);
>     }
> 
>     public abstract void onSetObject(Serializable id, Object object);
> 
> That would do what you want... you'd just need to feed 
> components this 
> model instead of using the constructors that create models 
> for you. Or am I missing something here?

The current IModel definition requires many IModel instances, many
attach/detach calls to make for the framework, less end-users supported
per server/cpu.

Also the IModel methods signature change is very small and offers quite
some improvement, making wicket even better, btw I'm more than willing
to make these changes...

Jan




> 
> >Its what I was suggesting, so how does this continue? Can we 
> be of help
> >making these changes?
> >
> >Jan
> >



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to