Bugs item #1459191, was opened at 2006-03-27 12:13
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1459191&group_id=119783

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: 1.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Johan Compagner (joco01)
Assigned to: Nobody/Anonymous (nobody)
Summary: LoadableDetachableModel not attached with object constructor

Initial Comment:
        /**
         * This constructor is used if you already have the
object retrieved and
         * want to wrap it with a detachable model.
         * 
         * @param object
         *            retrieved instance of the detachable object
         */
        public LoadableDetachableModel(Object object)
        {
                this.tempModelObject = object;
        }


because we just assign the modelobject and don't call
attach then the attached boolean is still false. And a
detach doesn't work.

Or attach() is called again when getObject is called
which shouldn't also happen.

We can't call setObject(object) because that will cause
a attach again because of this code:

public final void setObject(final Component component,
final Object object)
        {
                attach();
                onSetObject(component, object);
        }

So then attach will again be called.



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1459191&group_id=119783


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to