hmmm....

this change doesn't really work when dealing with a SortableListView.
With the SortableListView, there's no "Component" for the
DraggableTarget to work with.  It really only has the markupId.  Maybe
another wicket dev has an idea for how to do this?

On Jan 7, 2008 9:44 PM, Ryan Sonnek <[EMAIL PROTECTED]> wrote:
> I'm open to suggestions.  The markupId is required for the
> scriptaculous library to do it's "magic", but how about something like
> this?
>
> When you call the DraggableTarget.accepts(Component) method, it could
> store a reference to that component, and the onDrop() method could
> take the string markupId and lookup the correct component.
>
> The one downside to this is that you *must* call
> DraggableTarget.accepts(Component) for any/all Components that may be
> dropped on the target.  Right now it's very loosely enforced and you
> can technically drop components that the target doesn't know about.
>
>
> On Jan 7, 2008 8:54 PM, Lan Boon Ping <[EMAIL PROTECTED]> wrote:
> > Hi Nino and Ryan
> >
> > Thanks for the reply.
> >
> > Regard the DraggableTarget.onDrop(...) method, it has a String
> > (markupId) and AjaxRequestTarget as parameters, I found out that in
> > some circumstances, markupId is not desirable. For instance, I have a
> > FruitPanel and two subsclasses-ApplePanel and OrangePanel.  If I put
> > the markupId in FruitPanel, markupId parameter in
> > DraggableTarget.onDrop method will no longer useful.
> >
> > public abstract class FruitPanel extends Panel
> > {
> >     public FruitPanel(FruitModel model)
> >     {
> >        super("fruitPanel", model);l
> > }
> >
> > public class OrangePanel extends FruitPanel
> > {
> >     public OrangePanel(OrangeModel  model)
> >     {
> >        super(model);
> >     }
> > }
> >
> > public class ApplePanel extends FruitPanel
> > {
> >     public ApplePanel(AppleModel  model)
> >     {
> >        super(model);
> >     }
> > }
> >
> > Instead of using markupId, it is possible for the parameter to be a
> > Component for DraggableTarget.onDrop?
> >
> > Thanks in advance.
> >
> > Regards
> > Boon Ping.
> >
> >
> > On Jan 7, 2008 11:05 PM, Ryan Sonnek <[EMAIL PROTECTED]> wrote:
> > > It sure is still active.  I recently upgraded to version 1.8.0 and
> > > haven't heard of any issues.
> > > http://www.jroller.com/wireframe/entry/scriptaculous_1_8_release
> > >
> > > 1.8.1 was just released, but i haven't had time to upgrade to it yet.
> > >
> > > On Jan 7, 2008 5:17 AM, Nino Saturnino Martinez Vazquez Wael
> > >
> > > <[EMAIL PROTECTED]> wrote:
> > > > Hi Lan
> > > >
> > > > There was a discussion about it being a couple of versions behind, im
> > > > not sure if Ryan's active? Whats the problem?
> > > >
> > > >
> > > > Lan Boon Ping wrote:
> > > > > Hi,
> > > > >
> > > > > Is wicketstuff-scriptaculous still active?
> > > > >
> > > > > Regards
> > > > > Boon Ping.
> > > > >
> > > > > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > > >
> > > > >
> > > > >
> > > >
> > > > --
> > > > Nino Martinez Wael
> > > > Java Specialist @ Jayway DK
> > > > http://www.jayway.dk
> > > > +45 2936 7684
> > > >
> > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to