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 wrote: > 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 > 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 wrote: > > 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 wrote: > Hi, > > try modalwindow.setUseInitialHeight(false); > > -Matej > > On Sat, Dec 27, 2008 at 9:39 PM, David Ojeda > 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 > > >
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
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 in your markup. > > Martijn > > On Fri, Dec 26, 2008 at 4:02 PM, David Ojeda > 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 tag, which I thought would be > > eliminated when calling .setOutputMarkupPlaceholderTag(false) > > 2.- the tag. I do not understand why > > this tag appears outside the 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: > > > > http://www.w3.org/1999/xhtml"; xmlns:wicket=" > > http://wicket.sourceforge.net/";> > > > > > > > > > > > > > > > > > > > > menu goes here > > > > > > > > > > > > > > > > > > > > >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"> > > > > > onmouseout="this.style.color=''" > > onmouseover="this.style.color='#c32127'" > > class="tbmenuitem" > > href="#"> > > caption > > > > > > > > > > > > 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: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > styl
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 tag, which I thought would be eliminated when calling .setOutputMarkupPlaceholderTag(false) 2.- the tag. I do not understand why this tag appears outside the 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: http://www.w3.org/1999/xhtml"; xmlns:wicket=" http://wicket.sourceforge.net/";> menu goes here caption 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: item 1 http://www.google.com";> item 2
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
Re: Monitor session size in Tomcat
Hello, any new findings on this matter? I am interested too in monitoring session size David On Monday 01 December 2008 14:15:20 Adriano dos Santos Fernandes wrote: > So does that mean there is nothing already made to monitor session size > at container level instead of application level? > > > Adriano > > Johan Compagner escreveu: > > you can monitor what wicket does with the IRequestLogger > > > > On Mon, Dec 1, 2008 at 16:13, Adriano dos Santos Fernandes < > > > > [EMAIL PROTECTED]> wrote: > >> Hi! > >> > >> This is not a direct wicket question, but important for wicket usage, so > >> I'm asking here... > >> > >> What you use to monitor Tomcat sessions size? (preferable something that > >> I can use in production) > >> > >> I tried with JMX/jconsole and with LambdaProbe. The former doesn't seems > >> to have that info, and the later probably enters in cycle, because > >> "estimate sizes" nevers end for a session just established. > >> > >> Thanks, > >> > >> > >> Adriano > >> > >> > >> - > >> 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] -- Ing. David Ojeda Integra Consultores Caracas, Venezuela