Re: Filter or update content of AjaxFallbackDefaultDataTable
Thank you James, for this pointer. I looked around and did some tests until I managed to understand the FilterForm/IFilterStateLocator To my understanding, it seems that this approach does not update the table in an Ajax-ified way. Am I correct? On Tue, Jan 6, 2009 at 12:23 PM, James Carman jcar...@carmanconsulting.comwrote: Have you looked at the classes in this package? http://wicket.apache.org/docs/wicket-1.3.2/wicket-extensions/apidocs/org/apache/wicket/extensions/markup/html/repeater/data/table/filter/package-summary.html On Mon, Jan 5, 2009 at 11:06 AM, David Ojeda dojeda-l...@integra.la wrote: Hello wicketeers! I hace yet another question about AjaxFallbackDefaultDataTable (I will call it AFDTT): I have an AFDDT with, say, 100 rows. I would like to filter this table so it only shows the elements that meet a certain condition, OR, redefine its DataProvider so it shows some elements. I've been researching on how to do this (as an ajax update) but I am still unable to do it. I saw the AFDDT code, and it seems that this is not possible, so I have two alternatives: 1. Subclass and implement a way to change the contents of the AFDDT 2. Create another AFDDT instance, and do a .replaceWith() I suspect that option 2 could use a lot of memory. Do you guys have any other ideas or experience on this? Thank you
Filter or update content of AjaxFallbackDefaultDataTable
Hello wicketeers! I hace yet another question about AjaxFallbackDefaultDataTable (I will call it AFDTT): I have an AFDDT with, say, 100 rows. I would like to filter this table so it only shows the elements that meet a certain condition, OR, redefine its DataProvider so it shows some elements. I've been researching on how to do this (as an ajax update) but I am still unable to do it. I saw the AFDDT code, and it seems that this is not possible, so I have two alternatives: 1. Subclass and implement a way to change the contents of the AFDDT 2. Create another AFDDT instance, and do a .replaceWith() I suspect that option 2 could use a lot of memory. Do you guys have any other ideas or experience on this? Thank you
ajaxfallbackdefaultdatatable toolbars
Hello Wicketeers, I am using an AjaxFallbackDefaultDataTable. I would like to have the navigation panel as a bottom toolbar rather than a top toolbar. Is there any way to do this, other than overriding its constructor so it does not do addTopToolbar(...) ? Thank you, David
Re: Contributing to Wicket - Client side form validation
Carl, I think this project is very interesting. I was recently investigating on client side validation with wicket and could not find any pure client-side solution. I will be waiting for your link... David On Wed, Dec 31, 2008 at 12:10 PM, jWeekend jweekend_for...@cabouge.comwrote: Carl, This addresses a question that comes up on this list from time to time and knowing some of the people at Zenika you have probably developed this with, I am sure it will be a well thought out, robust and useful tool. It hopefully also gives us a pretext on which to get you over to London again for another talk at one of our upcoming London Wicket events! In terms of the actual validation, have you given any thought yet to how this can be done as DRY as possible wrt respecifying (equivalent/similar) validation at various layers including Wicket's, the ORM's, in business rules etc? Regards - Cemal http://www.jWeekend.co.uk jWeekend cazoury wrote: Hi, We have been working on a small project to integrate http://yav.sourceforge.net/ YAV library with Wicket. It is javascript validation purely on the client side. YAV has a LGPL licence and is a sourceforge project. I know that we can use an Ajax Behavior to validate the form with the validators present on the server side, but this is to respond to one of our client needs and also to illustrate how easy it is to integrate an existing javascript library with Wicket. It has also some nice features like using in the javascript validation the same messages as the ones used by the Wicket application (default messages and user defined messages) We would like to contribute, if possible, this code (wicket-contrib / wicket-stuff) if people finds this interesting. But I am not sure what are the different steps for that. We where thinking making it a sourceforge or googlecode project, maybe it is the first step and then I could post the link to it on this forum. Everyone enjoy the last day(s) of this year :) Carl Azoury -- View this message in context: http://www.nabble.com/Contributing-to-Wicket---Client-side-form-validation-tp21219136p21219589.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: Modal Window height
Thanks Matej, that did it On Sun, Dec 28, 2008 at 9:30 PM, Matej Knopp matej.kn...@gmail.com wrote: Hi, try modalwindow.setUseInitialHeight(false); -Matej On Sat, Dec 27, 2008 at 9:39 PM, David Ojeda dojeda-l...@integra.la wrote: Hello all, I am using a modal window with a panel inside. I would like the modal window to have the same height of my panel, so I was wondering if anyone has been able to do this. Apparently, I can only set the height to specific int-values, rather than auto. I am using wicket and wicket-extensions 1.3.5 Best regards, David
Re: Confusion with placeholder tags
Thanks Martijn, I had a mixup between those methods. On Sat, Dec 27, 2008 at 10:45 AM, Martijn Dashorst martijn.dasho...@gmail.com wrote: setOutputMarkupPlaceholderTag is for ajax refreshes. See setRenderBodyOnly() or use wicket:container in your markup. Martijn On Fri, Dec 26, 2008 at 4:02 PM, David Ojeda dojeda-l...@integra.la wrote: Hello all, I am trying to implement a panel with a table whose tr's are Fragments. I am using ListView in order to generate several table rows, but my rendered table has some markup that I wish to eliminate: 1.- the span wicket:id=caption tag, which I thought would be eliminated when calling .setOutputMarkupPlaceholderTag(false) 2.- the span wicket:id=menuitemrv tag. I do not understand why this tag appears outside the tbody tag. I have tried setOutputMarkupPlaceholderTag in the ListView, but it doesn't work either. Clearly, there is something about placeholder tags that I do not understand at all. Could anyone please help me with this? Any other suggestion on how to implement this table is welcome. Thanks a lot. Here is my panel code/markup and the rendered panel : ** Source Code: MyPanel.html: ?xml version=1.0 encoding=UTF-8? html xmlns=http://www.w3.org/1999/xhtml; xmlns:wicket= http://wicket.sourceforge.net/; wicket:panel table width=155 cellspacing=0 cellpadding=0 align=center tbody tr td align=center class=tbmenu table cellspacing=0 style=width: 155px; border: 0px; padding: 0px tbody span wicket:id=menuitemrv !-- menu item -- tr wicket:id=menuitemmenu goes here/tr !-- end menu item -- /span /tbody /table /td /tr /tbody /table wicket:fragment wicket:id=menuitemfragment td onmouseout=this.style.color='' style=height: 26px; width =157px; vertical-align: middle; padding-left: 25px; text-align: left; background: url('images/menu-inicial.gif'); background-repeat: no-repeat; onmouseover=this.style.color='#c32127' class=tbmenuitem a wicket:id=link onmouseout=this.style.color='' onmouseover=this.style.color='#c32127' class=tbmenuitem href=# span wicket:id=captioncaption/span /a /td /wicket:fragment /wicket:panel MyPanel.java: public class MyPanel extends Panel { public MyPanel(String id, IModel model) { super(id,model); changeableComponent = contentPanel; Arrays.asList(new String[] { item 1, item 2 }) ListView lview = new ListView(menuitemrv, model) { //private int counter = 0; @Override protected void populateItem(ListItem listitem) { final String menuitemstr = (String) listitem.getModelObject(); listitem.add(new MenuItemFragment(menuitem,menuitemfragment, new Model(menuitemstr))); } }; lview.setOutputMarkupPlaceholderTag(false); add(lview); } class MenuItemFragment extends Fragment { public MenuItemFragment(String id, String markupId, IModel model) { super(id, markupId, MainMenuPanel.this, model); AjaxFallbackLink link = new AjaxFallbackLink(link) { @Override public void onClick(AjaxRequestTarget target) { } }; link.add(new Label(caption,model).setOutputMarkupPlaceholderTag(false)); add(link); } } } ** Rendered panel: table cellspacing=0 cellpadding=0 align=center width=155 tbody tr td align=center class=tbmenu span wicket:id=menuitemrv !-- menu item -- /spanspan wicket:id=menuitemrv !-- menu item -- /spanspan wicket:id=menuitemrv !-- menu item -- /spantable cellspacing=0 style=border: 0px none ; padding: 0px; width: 155px; tbody tr wicket:id=menuitem td class=tbmenuitem onmouseover=this.style.color='#c32127' style=background: transparent url(images/menu-inicial.gif) no-repeat scroll 0% 0%; height: 26px; vertical-align: middle; padding-left: 25px; text-align: left; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; onmouseout=this.style.color='' a onmouseover=this.style.color='#c32127' id=link1 onmouseout
Modal Window height
Hello all, I am using a modal window with a panel inside. I would like the modal window to have the same height of my panel, so I was wondering if anyone has been able to do this. Apparently, I can only set the height to specific int-values, rather than auto. I am using wicket and wicket-extensions 1.3.5 Best regards, David
Confusion with placeholder tags
Hello all, I am trying to implement a panel with a table whose tr's are Fragments. I am using ListView in order to generate several table rows, but my rendered table has some markup that I wish to eliminate: 1.- the span wicket:id=caption tag, which I thought would be eliminated when calling .setOutputMarkupPlaceholderTag(false) 2.- the span wicket:id=menuitemrv tag. I do not understand why this tag appears outside the tbody tag. I have tried setOutputMarkupPlaceholderTag in the ListView, but it doesn't work either. Clearly, there is something about placeholder tags that I do not understand at all. Could anyone please help me with this? Any other suggestion on how to implement this table is welcome. Thanks a lot. Here is my panel code/markup and the rendered panel : ** Source Code: MyPanel.html: ?xml version=1.0 encoding=UTF-8? html xmlns=http://www.w3.org/1999/xhtml; xmlns:wicket= http://wicket.sourceforge.net/; wicket:panel table width=155 cellspacing=0 cellpadding=0 align=center tbody tr td align=center class=tbmenu table cellspacing=0 style=width: 155px; border: 0px; padding: 0px tbody span wicket:id=menuitemrv !-- menu item -- tr wicket:id=menuitemmenu goes here/tr !-- end menu item -- /span /tbody /table /td /tr /tbody /table wicket:fragment wicket:id=menuitemfragment td onmouseout=this.style.color='' style=height: 26px; width =157px; vertical-align: middle; padding-left: 25px; text-align: left; background: url('images/menu-inicial.gif'); background-repeat: no-repeat; onmouseover=this.style.color='#c32127' class=tbmenuitem a wicket:id=link onmouseout=this.style.color='' onmouseover=this.style.color='#c32127' class=tbmenuitem href=# span wicket:id=captioncaption/span /a /td /wicket:fragment /wicket:panel MyPanel.java: public class MyPanel extends Panel { public MyPanel(String id, IModel model) { super(id,model); changeableComponent = contentPanel; Arrays.asList(new String[] { item 1, item 2 }) ListView lview = new ListView(menuitemrv, model) { //private int counter = 0; @Override protected void populateItem(ListItem listitem) { final String menuitemstr = (String) listitem.getModelObject(); listitem.add(new MenuItemFragment(menuitem,menuitemfragment, new Model(menuitemstr))); } }; lview.setOutputMarkupPlaceholderTag(false); add(lview); } class MenuItemFragment extends Fragment { public MenuItemFragment(String id, String markupId, IModel model) { super(id, markupId, MainMenuPanel.this, model); AjaxFallbackLink link = new AjaxFallbackLink(link) { @Override public void onClick(AjaxRequestTarget target) { } }; link.add(new Label(caption,model).setOutputMarkupPlaceholderTag(false)); add(link); } } } ** Rendered panel: table cellspacing=0 cellpadding=0 align=center width=155 tbody tr td align=center class=tbmenu span wicket:id=menuitemrv !-- menu item -- /spanspan wicket:id=menuitemrv !-- menu item -- /spanspan wicket:id=menuitemrv !-- menu item -- /spantable cellspacing=0 style=border: 0px none ; padding: 0px; width: 155px; tbody tr wicket:id=menuitem td class=tbmenuitem onmouseover=this.style.color='#c32127' style=background: transparent url(images/menu-inicial.gif) no-repeat scroll 0% 0%; height: 26px; vertical-align: middle; padding-left: 25px; text-align: left; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; onmouseout=this.style.color='' a onmouseover=this.style.color='#c32127' id=link1 onmouseout=this.style.color='' onclick=var wcall=wicketAjaxGet('?wicket:interface=:1:aswborder:mainmenu:menuitemrv:0:menuitem:link::IBehaviorListener:0:',null,null, function() {return Wicket.$('link1') != null;}.bind(this));return !wcall; class=tbmenuitem wicket:id=link href=?wicket:interface=:1:aswborder:mainmenu:menuitemrv:0:menuitem:link::ILinkListener:: span wicket:id=captionitem 1/span /a /td /tr !-- end menu item -- !-- submenu items --
https/http using wicket + swarm + acegi
Hello all, I am developing an application and have successfully configured swarm + acegi. I was just wondering if anyone has any experience with this authentication/authorization scheme and can switch to/from https. What I would like is to go to the login page using https and back to http after a successful login. Any pointers on this one? Thanks, David