Re: AW: drag and drop

2010-06-17 Thread DerBernd

Hi,
I've got a problem with my draggable Components and z-index. I do have
several draggable WebMarkupContainers that are nested in also draggable
Panels.


I set the z-index with 
dragger.setRawOptions(zIndex: 101); for the WebMarkupContainer
dragger.setRawOptions(zIndex: 100); for the Panel

When I dragg the WebMarkupContainer, the ParentPanel also starts to move.


When I only set
dragger.setRawOptions(zIndex: 101); for the WebMarkupContainer
and don't set the zIndex for the Panel

only the draggable WebMarkupContainer moves but the z-index does not work
out of the area of the parent panel.

I don't use the .ui-draggable-dragging {} for setting the z-index because I
want to set different z-indexes for the draggable Components.

Hope you can help me out

Thanks a lot

Bernd





-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p2258492.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: drag and drop

2010-06-09 Thread DerBernd

Hi,
little question at this point. How do I get the child-components of an
RepeatingView. Isn't there any kind of Collection?
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p2248428.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RE: drag and drop

2010-06-07 Thread DerBernd

Hi,
another question of mine:
Is there any implementation of an Sortable where I can change order of
li items within an ul by dragging and dropping. Or what would even be
better: change order of Components in an RepeatingView.


I found the org.wicketstuff.jquery.dnd.DnDSortableHandler. But do not really
know how to make it work, cause I found no examples on the web.

Thanks a lot
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p2245708.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: drag and drop

2010-06-07 Thread DerBernd

Ok,
I think I understood, but how do you get the seqnum?
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p2245847.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: drag and drop

2010-06-04 Thread DerBernd

Thank you for your help. 
So I solved it by using repeaters RepeatingView.
On DropEvent I add the droppedComponent to the repeating view and update the
page.
I also had to set wantOnDragStartNotification(false),
wantOnDragStopNotification(false), otherwise the dropped Component was not
found on page - don't know really why




-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p2242897.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: drag and drop

2010-06-04 Thread DerBernd

No I have a absolutely specific question to jwicket-jquery.

I want to set the handle option on a draggable, to define the tag which is
used to drag the panel. 
e.g. handle: 'h2'

Unfortunately theres no setter for the handle option.


Thank you

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p2242910.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RE: drag and drop

2010-06-04 Thread DerBernd

So here is my Example Case
I have several Platzhalter which implement IDroppable and some
FeldKursObjects which implement IDraggable. The FeldKurs Components are 
dragged on Placeholders.

When I define
dragger.setWantOnDragStartNotification(true);
dragger.setWantOnDragStopNotification(true);
there occurs an error like:
WicketMessage: org.apache.wicket.WicketRuntimeException: component
panelInhalt:listPanel:panelWochenplanung:platzhalter_t0r0:listPanel:feldKurs101
not found on page kursa.wochenplanung.WochenplanungPage[id = 3], listener
interface = [RequestListenerInterface name=IBehaviorListener, method=public
abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()]


When I set them false or don't even set anything (default) the error doesn't
occur

Heres the code

public class Platzhalter extends Panel implements IDroppable{

...
private final RepeatingView listPanel;

public void onDrop(AjaxRequestTarget target, Component draggedComponent,
SpecialKeys specialKeys) {
this.listPanel.add(draggedComponent);
WochenplanungPage wochenplanungPage = 
findParent(WochenplanungPage.class);
  // Parent Page of Platzhalter
target.addComponent(wochenplanungPage);
}
}


public class FeldKurs extends Panel implements IDraggable{
...

public FeldKurs(String id, Kurs kurs) {
super(id);
this.kurs = kurs;
dragger = new DraggableBehavior();
dragger.setRevert(DraggableBehavior.DragRevertMode.INVALID);
dragger.setDistance(20);
dragger.setOpacity(0.99);
  dragger.setName(one);
dragger.setWantOnDragStartNotification(true);
dragger.setWantOnDragStopNotification(true);
dragger.setCursor(CssCursor.MOVE);
add(dragger);

}
...
}




-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p2242938.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: AW: drag and drop

2010-06-04 Thread DerBernd

Thank you setRawOptions(handle: 'h2'); works great, just want I was
searching for!!!

Bernd
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p2242954.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RE: drag and drop

2010-06-04 Thread DerBernd

Ok, thank you,
good to know. At the moment I don't need to watch the dragStop or DragStart
Event. So I can leave it as it is.





-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p2243182.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RE: drag and drop

2010-05-26 Thread DerBernd

Exactly, this is what I want to do!
Can you tell me how to solf this problem?
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p2231455.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: drag and drop

2010-05-25 Thread DerBernd

Hi,
now I tried jwicket-examples and it works quite well. But at the momemt I
stuck into a problem and I hope you can help me out.

I have a Panel Placeholder that implements IDroppable
And a Panel Field that implements IDraggable

So I have some empty Placeholders and a few Placeholders that are filled
with a Field. (held in an repeatingView of Placeholder). When I drop a Field 
over an empty Placeholder, I want to add the Field to the empty Placeholder
and remove it on its old Placeholder.

Here's the code of the placeholder.

public void onDrop(AjaxRequestTarget target, Component draggedComponent,
SpecialKeys specialKeys) {
Field field = (Field)draggedComponent;


listPanel.add(feld); //add it to the repeating View

PanelWochenplanung panelWochenplanung =
findParent(PanelWochenplanung.class); // get the ParentPanel
target.addComponent(panelWochenplanung); // render the ParentPanel with all
Placeholders in

}

When I drop the field (e.g. FeldA2 from the placeholder_t2r0) on an other
placeholder I get the following error, that the dropped field was not found
on the PAGE! 


component
panelMitte:listPanel:panelWochenplanung:platzhalter_t2r0:listPanel:feldA2
not found on page kursa.wochenplanung.WochenplanungPage[id = 1], listener
interface = [RequestListenerInterface name=IBehaviorListener, method=public
abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()]

 
I hope you can get me a idea about what is wrong;)
Thank you
Bernd
http://apache-wicket.1842946.n4.nabble.com/file/n2231075/WicketMessage.txt
WicketMessage.txt 
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p2231075.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: drag and drop

2010-05-20 Thread DerBernd

Hi,
first of all I have to thank you for your many answers .. and your following
discussion:-)
I will start with the jwicket-examples and see how it works.

Thanks a lot
Bernd

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p2224344.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: drag and drop

2010-05-19 Thread DerBernd

Hi,
I'm working on a wicket-project (1.4) and need to implement some dragdrop
features. Could you give me some current links of tutorials to start with. 
I also don't know which technology to choose: YUI, DOJO, scriptaculous ???

Thank you for your help
Bernd

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p375.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org