Fresh snapshots are deployed on our maven repository[1] by bamboo[2] . So including:
<repository> <repository> <id>wicket-stuff.org</id> <url>http://wicketstuff.org/maven/repository/</url> <snapshots> <enabled>true</enabled> </snapshots> </repository> </repositories> and: <dependency> <groupId>org.apache.wicket</groupId> <artifactId>wicket</artifactId> <version>1.3.0-incubating-SNAPSHOT</version> </dependency> should do the trick. There could still be a problem with our snapshot meta data, so you might want to delete any existing jars when you're looking for an update[3] Eelco [1] http://wicketstuff.org/maven/repository/ (e.g. http://wicketstuff.org/maven/repository/org/apache/wicket/wicket/1.3.0-incubating-SNAPSHOT/) [2] http://wicketstuff.org/bamboo/ [3] find ~/.m2/repository/org/apache/wicket -name "1.3.0-incubating-SNAPSHOT" | xargs rm -rf On 4/24/07, mraible <[EMAIL PROTECTED]> wrote: > > The stack trace I was getting turned out to be caused by something else - the > code I posted actually does work. > > As far as moving to 1.3, I'll be happy to do that if there's a beta (or > snapshot) release in a public Maven repo. > > Thanks, > > Matt > > > Eelco Hillenius wrote: > > > >> Thanks guys - I appreciate all your help. I've decided to go with > >> DataView > >> over DefaultDataTable because I couldn't get the "click on column value > >> for > >> link"[1] to work. > >> > >> Unfortunately, the following doesn't work with Wicket 1.2.6: > >> > >> item.add(new AttributeModifier("class", > >> true, new AbstractReadOnlyModel() > >> { > >> public Object getObject() > >> { > >> return (item.getIndex() % > >> 2 > >> == 1) ? "even" : "odd"; > >> } > >> })); > > > > That's correct. IModel#getObject() is Wicket 1.3 code; in Wicket 1.2 > > we had getObject(Component). > > > > There are quite a few differences between 1.3 and 1.2 (more than > > initially planned, but you can read about that in the archives and on > > ). > > > > A migration document from 1.2 to 1.3 can be found here > > http://cwiki.apache.org/WICKET/migrate-13.html > > > > If you're starting out, I'd strongly encourage you to use 1.3. There > > are many improvements in it, and we're getting very close to doing a > > release (which at this stage will also be used to propose graduation > > with Apache, or at least get a step further in that). > > > >> I tried the following (I'm a complete newbie, so sorry if this is dumb), > >> but > >> it doesn't work: > >> > >> public Object getObject(Component component) { > >> Item item = (Item) component; > >> return (item.getIndex() % 2 == 1) ? "even" : > >> "odd"; > >> } > > > > Like I said, I think it is better if you use 1.3, but in 1.2 you the > > component argument would be the component the behavior is added to. > > I'm not sure whether that is the Item? > > > > If it is, what doesn't work? Is the CSS availalbe etc? Or do you get > > an exception? > > > > Eelco > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > -- > View this message in context: > http://www.nabble.com/What%27s-the-easiest-way-to-do-a-pageable-sortable-list-screen--tf3639929.html#a10173898 > Sent from the Wicket - User mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user