Re: onmouseover menu
Thanks for your suggestion. I can't seem to use Wiquery because when I add the tooltip behavior I cannot drag and drop the component anymore. The other approach fails with an exception java.lang.IllegalStateException: No Page found for component [MarkupContainer [Component id = 1]] when executing this.getCallbackScript(). Why is this happening? /Johan -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/onmouseover-menu-tp2553581p2715019.html Sent from the Users forum 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: onmouseover menu
I've managed to avoid the exceptionchanging the onBind method's AttributeModifier from a standard Model to a LoadableDetachableModel, e.g. getComponent().add(new AttributeModifier(onmouseover, true, new LoadableDetachableModelCharSequence() { @Override protected CharSequence load() { return MyBehavior.this.getCallbackScript(); } })); Thank /Johan -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/onmouseover-menu-tp2553581p2715045.html Sent from the Users forum 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: onmouseover menu
I'm using wicket-dnd to allow for drag and drop of the rows in the datatable. When I'm adding the TooltipBehavior to my component I can no longer drag and drop the rows. If I remove it, I can dnd again. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/onmouseover-menu-tp2553581p2715216.html Sent from the Users forum 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
onmouseover menu
Hi, I have a datatable with a couple of rows. I'd like a menu to popup when the mouse is located over a row and I'd like it to disappear on onmouseout. The menu must be aware of the row model that the mouse cursor is currently over since I'd like to make changes to the model from the menu. I'd like to do something similar to the google maps satellite button. I.e. when you move the mouse over it a menu appears allowing you to show or hide labels on the map. /Johan -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/onmouseover-menu-tp2553581p2553581.html Sent from the Users forum 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: How to update components using Ajax when ModalWindow closes?
This doesn't help, the image still doesn't appear. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-update-components-using-Ajax-when-ModalWindow-closes-tp2539048p2539997.html Sent from the Users forum 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: Resize an opened ModalWindow programmatically?
Thanks. Guess I'll give JQuery a try. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Resize-an-opened-ModalWindow-programmatically-tp2538660p2540002.html Sent from the Users forum 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: How to update components using Ajax when ModalWindow closes?
I've managed to resolve it! First of all I didn't add the markup container surrounding the image to the same AjaxRequestTarget that closed the modalwindow (I don't add the markup container to the AjaxRequestTarget at all). Instead I added a new WindowClosedCallback to the ModalWindow. To its AjaxRequestTarget I do target.addChildren(MyPanel.this, Component.class). This seems to resolve it in combination with using NonCachingImage. /Johan -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-update-components-using-Ajax-when-ModalWindow-closes-tp2539048p2540079.html Sent from the Users forum 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
Resize an opened ModalWindow programmatically?
Hi, I'd like to know if it's somehow possible to resize a ModalWindow programmatically? The reason is that the page rendered in the ModalWindow first displays an initial panel of size X and when clicking on a button the entire panel is replaced for a new panel of size Y. Y is much larger than X so I would like to programmatically resize the ModalWindow to size Y. Any ideas? /Johan -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Resize-an-opened-ModalWindow-programmatically-tp2538660p2538660.html Sent from the Users forum 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
How to update components using Ajax when ModalWindow closes?
Hi, When a user clicks on an Image a ModalWindow pops up where users can upload and change this picture. When the user has uploaded a new picture and click OK in the ModalWindow I want it to close down and update the previous Image with the new image. How ever I cannot get the Image to update using Ajax (if I reload the page the I can see the new image). The image is wrapped in a markupcontainer which has output markup id set to true. I try to replace the image using markupcontainer.replace(new Image(..)) and I add the markupcontainer to the target but nothing happens. This is the same target that I use to close the modal window. What am I doing wrong? /Johan -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-update-components-using-Ajax-when-ModalWindow-closes-tp2539048p2539048.html Sent from the Users forum 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: Possible to drag tables using WicketDND?
It works!! Thanks a lot! WicketDND is by far the best drag and drop component I've used for Wicket. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Possible-to-drag-tables-using-WicketDND-tp2532928p2533926.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: Possible to drag tables using WicketDND?
I've tried numerous different drag and drop components for Wicket in the past (it was a while ago so I don't remember all of them). Each had different issues that wouldn't let me do what I wanted. Some had browsers issues and some had problems that couldn't drop items to the drop container when it was empty. We also needed to support different types of drag and drop. In some cases we wanted to copy the object that was dropped and sometimes move it. I also remembered that some of the other components didn't support dnd between multiple containers. I also had problems that some didn't keep an index of where in the drop container the item was dropped. And so on. So I was really happy when I found the wicket dnd component. It just works and it's simple to use! /Johan -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Possible-to-drag-tables-using-WicketDND-tp2532928p2534197.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
Possible to drag tables using WicketDND?
Hi, I'm using WicketDND to allow for drag and drop in my application. How ever I have problems when trying to drag a tr that contains another table (i.e. I want to drag a component whose html contains a table). I believe the reason to be that the inner table is located on top of the tr (it fills the entire tr) and thus the dragable source is hidden underneath. Is it possible to get around this somehow? Perhaps using some css hacking if needed? /Johan -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Possible-to-drag-tables-using-WicketDND-tp2532928p2532928.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
Word-wrapping in Wicket-TinyMCE
Hi, Has anyone managed to get word-wrapping to work in wicket-contrib-tinymce? In that case how? By default you get a horizontal scrollbar when the textline is larger than the size of the TinyMCE window. /Johan -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Word-wrapping-in-Wicket-TinyMCE-tp2531412p2531412.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
Replace components with AjaxCheckbox
I'm trying to replace a component when clicking on an AjaxCheckbox. The code looks something like this: AjaxCheckBox checkbox = new AjaxCheckBox(checkBox, new PropertyModelBoolean(this, isChecked)) { private static final long serialVersionUID = 4298312627418158465L; @Override protected void onUpdate(AjaxRequestTarget target) { final Component component; if (isChecked) { System.out.println(is checked); component = new Label(component, is checked); } else { System.out.println(is NOT checked); component = originalComponent; } form.replace(component); target.addComponent(form); } @Override protected boolean wantOnSelectionChangedNotifications() { return true; } }; It works fine the first time I click on the check box, i.e. is checked is printed to the console and the label is checked is shown on the web pagfe. But when I click on the checkbox again (to uncheck it) originalComponent is never shown but is NOT checked is printed in the console. What am I doing wrong? /Johan -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Replace-components-with-AjaxCheckbox-tp2528243p2528243.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: Image Upload Using TinyMCE Within Wicket Framework
That would be really helpful. I'm struggling to get your example to work. -- View this message in context: http://n4.nabble.com/Image-Upload-Using-TinyMCE-Within-Wicket-Framework-tp1844756p2018575.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: Failing to remove item from list when drag and dropping
It works very well!! Thanks a lot for this, it's been extremely helpful! /Johan -- View this message in context: http://n4.nabble.com/Failing-to-remove-item-from-list-when-drag-and-dropping-tp1960968p2017437.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: Failing to remove item from list when drag and dropping
Hi, Looks promising indeed. Does it work with Wicket 1.4.1? Do you have any code examples that I could have a look at? /Johan -- View this message in context: http://n4.nabble.com/Failing-to-remove-item-from-list-when-drag-and-dropping-tp1960968p2013958.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
Failing to remove item from list when drag and dropping
Hi, I have a use case that reads as follows: I need two lists next to each other. When starting up the left list is empty and I add items to it by dragging them from the right list and dropping them on the left. These items should be copied, (i.e. _not_ moved, the right list should be static) from the right list into the selected position in the left list. It should also be possible to reorder the items in the left list using drag and drop. The last thing is that you should be able to remove items from the left list by dragging and dropping them back to the right list. Since the right list is static the item should _not_ be added to the right list but rather just removed from the left list. After some investigation I've settled on using the YuiDDListView (from the wicket-yui project) which extends from a standard Wicket ListView. I've chosen this component since it supports positioning items in the list (i.e. you know to which index you dropped the item in the list). After MUCH hacking around I've managed to get most things working. There are mainly two things left and here I would really appreciate some help: 1) I cannot seem to remove _the last_ item in the left list (i.e. by drag and dropping to the right list). It works fine for all other items but for the last item it fails saying e.g.: Caused by: org.apache.wicket.WicketRuntimeException: component tabs:panel:panel:list:items:0 not found on page com.mycompany.MyPageCompany[id = 4], listener interface = [RequestListenerInterface name=IBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()] at org.apache.wicket.request.AbstractRequestCycleProcessor.resolveListenerInterfaceTarget(AbstractRequestCycleProcessor.java:426) at org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage(AbstractRequestCycleProcessor.java:471) at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:144) ... 28 more What causes this is that in the onDrop method in the left list I remove the dropped item from the list if it's dropped on the right list. Why is this happening? What's the best way to resolve it? 2) When I drag and item from the left to the right it looks like the item is added to the right list until I reload the page. I figure could be a javascript error since the javascript doesn't understand that the item shouldn't be added to the right list at all (it should instead be removed from the left list). What would be the best way to resolve this? I'm using Wicket 1.4.1. /Johan -- View this message in context: http://n4.nabble.com/Failing-to-remove-item-from-list-when-drag-and-dropping-tp1960968p1960968.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
YUI drag and drop problem in Wicket 1.4 rc4
Hi, I'm using the latest snapshot of the YUI drag and drop component (a YuiDDListView) for Wicket 1.4 rc4. The problem is that there seems to be a bug in the code and the position parameter is lost. This means that where ever you drop a component it will always end up at the first position in the list view (since position is lost the integer position value is set to 0). Have anyone else experienced this problem? Is it a bug or am I doing something wrong? /Johan
ModalWindow content doesn't work in Firefox 3 in 1.4 rc4
Hi, I'm creating a standard Wicket Modal Window and adding a Panel to it using modalWindow.setContent(new MyPanel(..)); The modal window pops up and displays a header but the content is completely empty in Firefox. Everything works fine in Internet Explorer though. Have anyone experienced the same problem? /Johan