Re: Sorting using a DataTable
On Wednesday 30 January 2008, Karen Schaper escreveu: > Hello, > > I am using a SortableDataProvider with a DefaultDataTable. > > From my understanding, it seems that for every column that I wish to sort > on, I need to add code to the iterator method of the > data provider. None of the columns were sorting and when I added some code > in the iterator method (see below) I was able to sort on the street column. > > Is this the best way to sort columns? I am using wicket 1.3. it might be better to use that sorting info to get the data from the db in the right sort order. > > Thanks Karen > > iterator method from a SortableDataProvider > > public Iterator iterator( int first, int count ){ > > final SortParam sp = getSort(); > EventList list = getInterruptionList(); > if ( sp.getProperty().equals("street") ){ > Collections.sort(list, new Comparator() > { > public int compare(Object arg0, Object arg1){ > if ( sp.isAscending() ) > return > ((Interrupt)arg0).getStreet().compareTo(((Interrupt)arg1).getStreet()); > else > return > ((Interrupt)arg1).getStreet().compareTo(((Interrupt)arg0).getStreet()); > } > }); > } > return list.listIterator( first ); > } > > > - > 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]
Re: How NOT TO Cache Markup - Markup Dynamically created
On Sunday 15 March 2009, schapey said: > Hi All, > > I don't see this post in the forum.. so I am posting again. sometimes I just wish we were using grails. but I am sure that would come with it's own problems. > > I have a page where the markup is creating dynamically and I do not want > the markup to be cached. > > I am implementing both IMarkupResourceStreamProvider, > IMarkupCacheKeyProvider > > > I'm not sure what I need to do in order for the markup not to be cached. > > In one of the source files in here > http://wicketstuff.org/wicket13/customresourceloading, > > it said that if I returned null from getCacheKey that the markup would not > be cached. > > When I do this I get into a loop and it keeps trying to get the markup over > and over again. > > >@Override > public String getCacheKey( MarkupContainer container, Class > containerClass ) > { > return null; > } > > > I tried calling the clearing the cache after the page renders... but when I > do this the page won't even load. > > Any help would greatly be appreciated. > > I am using wicket1.4rc2. > > Thanks > Karen. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Can I remove and from my markup?
I'm biulding YUI menus using wicket panels for composition. But even though I use setRenderBodyOnly( true ) to get rid of the element, YUI doesn't like seeing the stuff. Well, that's not true. It works fine in firefox, but IE can't handle it. I'm coming back to wicket after 6 months back on swing and I've sort of lost track of it a bit, so I apologize if this is a dumb question. Thanks, Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can I remove and from my markup?
On Saturday 08 December 2007 2:47 pm, Doug Leeper escreveu: > Tom, > > Have you taken a look at org.wicketstuff.yui.markup.html.menu2 in > wicket-contrib-yui? The Menu, MenuBar and ContextMenu have been created > using YUI menu. > > - Doug I haven't, not yet. I think at the time I started using the YUI menu stuff, these weren't there. Or at least I looked and couldn't find them. But I would much rather use this stuff than what I've been doing. Thank you very much for pointing this stuff out. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: lang.merge is not a function error
On Monday 14 January 2008, Karen Schaper escreveu: > > is the YUI menu from the wicketstuff project? > > No just from YUI > > if so, what YUI version does > > version 2.2.0 > > Thanks that must be my problem. sounds good to me. have you upgraded wicket? > > > it use? > > > > i suspect this only happens if the YUI menu js files (yahoo, dom, event, > > menu, ...) are > > loaded before the datepickers yuiloader-beta-min.js. > > yuiloader checks if YAHOO.lang is already available (which it would be if > > the YUI menu > > is loaded first) and reuses it instead of creating a new YAHOO object. > > > > if there is no such method YAHOO.lang.merge prior to 2.4.1 (which > > is used by > > wicket-datetime), > > then the issue you are experiencing is almost definitely caused > > by a version > > conflict. > > > > Gerolf > > > > On Jan 14, 2008 2:16 AM, Karen Schaper <[EMAIL PROTECTED]> > > > > wrote: > > > Hello Again, > > > > > > I am experience a strange issue when using the new date picker in > > > conjunction with the YUI menu. I can use them each alone but when then > > > are > > > together I get this error in firebug. > > > > > > The error is "lang.merge is not a function" which is located in the > > > yuiloader-beta-min.js. This js is located in the wicket-datetime. > > > > > > I googled lang.merge and is it possible that it should be " > > > YAHOO.lang.merge. > > > > > > Thanks for any help. > > > > > > I think this is my last problem due to upgrade to wicket 1.3. > > > > > > Karen. > > > > > > > > > - > > > 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]
Re: Need help with Upgrade to wicket 1.4-rc1
On Wednesday 28 January 2009, Karen Schaper said: > Hi, > > I decided now is a good time for me to upgrade to the latest wicket code - > wicket 1.4-rc > > We are currently at 1.3.4. > > > I'll also need to update the following other wicket jars I am using. Are > there version that are compiled against wicket 1.4? > > wicketstuff-dojo-1.3.0-beta.jar > wicketstuff-minis-1.3.0-SNAPSHOT.jar > wicketstuff-yui-1.3.0-SNAPSHOT.jar > > I can't find them anywhere. > > Thanks Karen I think that's one of the hard things about upgrading wicket - I had to compile all that code myself. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org