Re: Turn off SWARM

2008-08-13 Thread Jason Anderson
I've found that during development the combination of running mvn jetty:run and using javarebel to automagically reload the newly compiled classes makes for an extremely fast edit/compile/test cycle - much faster than even letting jetty do the reloading YMMV On Thu, Aug 7, 2008 at 1:50 AM,

Re: embedding Wicket into JSP

2008-08-13 Thread Martin Grigorov
On Tue, 2008-08-12 at 09:21 -0700, kgignatyev wrote: Hi, I have problem embedding Wicket pages (1.3.4) into JSP application. index.jsp jsp:include page=/wic/ flush=true/ and the cause is that inside WicketFilter public String getRelativePath(HttpServletRequest request) returns empty

RE: Strange AjaxFormComponentUpdatingBehavior with Internet Explorer

2008-08-13 Thread Kai Mütz
Timo Rantalaiho mailto:[EMAIL PROTECTED] wrote: On Fri, 08 Aug 2008, Kai Mütz wrote: final CheckBox required = new CheckBox(required, new PropertyModel(project, required)); add(required); final DropDownChoice officer = new DropDownChoice(officer, new PropertyModel(project, officer), users,

Re: Pretty URLs depending on a Page's state (not params)

2008-08-13 Thread pixologe
no. having a nice/bookmarkble url means having all the state in the url. hmmm i'm not sure... sometimes i'd like to have a pretty url, even if it does not hold the exact state of the page... in my example: the re-sorted list of friends would be still bookmarkable, however the sorting would be

Re: Authorization strategy help

2008-08-13 Thread Wayne Pope
Hi Igor, thanks for the pointer. However if I understand this correctly I would still need to setmetadata for every component, as every page can only be accessed by users - ie they must be logged in. i.e link.setmetadata(mysecuritykey, roles.basicuser); Am I correct that iactionauthorized will

Re: Button with confirmation with IE7

2008-08-13 Thread Federico Fanton
On Tue, 12 Aug 2008 17:07:40 +0200 Federico Fanton [EMAIL PROTECTED] wrote: I tried that, but nothing changed :/ Same Invalid procedure call or argument under IE7.. (still Ok in FF2) After a bit of debugging, I found the offending command inside wicket-ajax.js:

Re: Pretty URLs depending on a Page's state (not params)

2008-08-13 Thread Martijn Dashorst
mount your page with hybridurlcodingstrategy Martijn On Wed, Aug 13, 2008 at 9:38 AM, pixologe [EMAIL PROTECTED] wrote: no. having a nice/bookmarkble url means having all the state in the url. hmmm i'm not sure... sometimes i'd like to have a pretty url, even if it does not hold the exact

Re: Button with confirmation with IE7

2008-08-13 Thread Federico Fanton
On Wed, 13 Aug 2008 09:56:56 +0200 Federico Fanton [EMAIL PROTECTED] wrote: if(Wicket.Focus.lastFocusId != '') t.setRequestHeader(Wicket-FocusedElementId, Wicket.Focus.lastFocusId); Oops, better to check for null too: if(Wicket.Focus.lastFocusId Wicket.Focus.lastFocusId != '')

Re: Authorization strategy help

2008-08-13 Thread Martijn Dashorst
Build it, try it, fix it, make it fast. Assumptions are the root of all evil. Martijn On Wed, Aug 13, 2008 at 9:45 AM, Wayne Pope [EMAIL PROTECTED] wrote: Hi Igor, thanks for the pointer. However if I understand this correctly I would still need to setmetadata for every component, as

Re: In memoriam: Maurice Marrink

2008-08-13 Thread smallufo
This is a big loss for wicket community. Maurice also helped me a lot . It's sad to hear this ... I am from Taiwan , English is not my native language , I cannot express how I appreciated his kindness. I'll remember him. Thank you , Maurice.

Re: Pretty URLs depending on a Page's state (not params)

2008-08-13 Thread pixologe
Martijn Dashorst wrote: mount your page with hybridurlcodingstrategy thanks for pointing this out... i've seen this one before, but somehow completely misunderstood how it is supposed to work :-/ still, it is not exactly what i had in mind, since it attaches a version number to every url

Wicket 1.3.4 and Spring annotations

2008-08-13 Thread alex2008
It's possible use this version of wicket with a service injected on spring by annotations? -- View this message in context: http://www.nabble.com/Wicket-1.3.4-and-Spring-annotations-tp18962935p18962935.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: Pretty URLs depending on a Page's state (not params)

2008-08-13 Thread Erik van Oosten
Hi, You can suppress the version number in the URL. Doing so will make the encoder always take the last version of the page (or create a new one when it is not present). More details: http://www.nabble.com/More-on-wicket-url-stratergy-td18212748.html#a18273996 Regards, Erik. pixologe

Re: Wicket 1.3.4 and Spring annotations

2008-08-13 Thread Nino Saturnino Martinez Vazquez Wael
Yes it are possible, theres the wicket-spring annot project.. look in the wiki http://cwiki.apache.org/WICKET/spring.html And you can also just use the Wicket Iolite archetype, it has spring and jpa setup for you: http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Iolite alex2008

Re: Scriptaculous with wicket 1.3.2

2008-08-13 Thread Nino Saturnino Martinez Vazquez Wael
you should get it from the 1.3 branch and not current build.. jchappelle wrote: I would like to use the scriptaculous wicket-stuff but when I downloaded the latest code there were generics in there so it didn't compile. I have searched and searched but I cannot find where an older compatible

Re: Pre render action common to all pages

2008-08-13 Thread Benny Weingarten
Thanks Igor. I have done that, and it is exactly what I was looking for. However, I have noticed something that strikes me odd: on every request to render a page in my application (every time I click a link in my application to another page in my application), the method newRequestCycle() in

Re: How to open a Modal Window by clicking a button

2008-08-13 Thread a_godin
What do you mean by attach the AjaxLink to the button tag ? What does that look like, code wise ? igor.vaynberg wrote: or attach ajaxlink to button tag :) -Igor -- View this message in context:

Re: Button with confirmation with IE7

2008-08-13 Thread Igor Vaynberg
you should make a jira issue -igor On Wed, Aug 13, 2008 at 1:16 AM, Federico Fanton [EMAIL PROTECTED] wrote: On Wed, 13 Aug 2008 09:56:56 +0200 Federico Fanton [EMAIL PROTECTED] wrote: if(Wicket.Focus.lastFocusId != '') t.setRequestHeader(Wicket-FocusedElementId,

Re: How to open a Modal Window by clicking a button

2008-08-13 Thread Igor Vaynberg
add(new ajaxlink(mylink) {...}): button wicket:id=mylinkboo/button -igor On Wed, Aug 13, 2008 at 7:41 AM, a_godin [EMAIL PROTECTED] wrote: What do you mean by attach the AjaxLink to the button tag ? What does that look like, code wise ? igor.vaynberg wrote: or attach ajaxlink to button

Re: Authorization strategy help

2008-08-13 Thread Igor Vaynberg
for a set of pages that require the user to be logged in use the class hieararchy. class mybasepage extends webpage class mysecurepage extends mybasepage now in your security strategy only allow access to derivatives of mysecurepage when the user is logged in -igor On Wed, Aug 13, 2008 at

Re: Pretty URLs depending on a Page's state (not params)

2008-08-13 Thread Igor Vaynberg
On Wed, Aug 13, 2008 at 12:38 AM, pixologe [EMAIL PROTECTED] wrote: but still I would be even happier with wicket if there was a hybrid solution which enabled a page to hold state beyond its pretty URL params you are more then welcome to create one and share it with the rest of us. -igor

Re: Pre render action common to all pages

2008-08-13 Thread Igor Vaynberg
by numerous you mean two? by default wicket uses something similar to redirect-after-post so after you click a link there is a http redirect to a view-url that will no longer execute the link. so that is two http requests/two request cycles. -igor On Wed, Aug 13, 2008 at 7:18 AM, Benny

Re: How to open a Modal Window by clicking a button

2008-08-13 Thread James Carman
Check out the modal window example here: http://www.wicketstuff.org/wicket13/ajax/ On Wed, Aug 13, 2008 at 10:57 AM, Igor Vaynberg [EMAIL PROTECTED] wrote: add(new ajaxlink(mylink) {...}): button wicket:id=mylinkboo/button -igor On Wed, Aug 13, 2008 at 7:41 AM, a_godin [EMAIL PROTECTED]

Re: Pretty URLs depending on a Page's state (not params)

2008-08-13 Thread Matej Knopp
On Wed, Aug 13, 2008 at 5:01 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: On Wed, Aug 13, 2008 at 12:38 AM, pixologe [EMAIL PROTECTED] wrote: but still I would be even happier with wicket if there was a hybrid solution which enabled a page to hold state beyond its pretty URL params There will be

Re: Wicket 1.3.4 and Spring annotations

2008-08-13 Thread alex2008
In my small project (hibernate-spring-wicket) without JPA I have this big problem: @SpringBean private PersoneList personeList; public void setPersoneList(PersoneList personeList) { this.personeList = personeList; } public void init() {

Re: Wicket 1.3.4 and Spring annotations

2008-08-13 Thread Martijn Dashorst
move InjectorHolder.getInjector().inject(this); to the init() method *AFTER* the addComponentInstantiatonListener call. Martijn On Wed, Aug 13, 2008 at 5:22 PM, alex2008 [EMAIL PROTECTED] wrote: In my small project (hibernate-spring-wicket) without JPA I have this big problem:

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-08-13 Thread ronaldtm
1) Generifying* Wicket [X] Can best be done in a limited fashion, where we only generify IModel but not components. I care more about what generifying can do for API clarity (declaring a component to only accept certain models for instance) than static type checking. 2) How strongly do you

Re: embedding Wicket into JSP

2008-08-13 Thread kgignatyev
I have read that many times. That describes the opposite to the thing I need. And it seems that W 1.3.4 code just plain make it impossible to embed W in JSP. Am I reading W code wrong? martin-g wrote: On Tue, 2008-08-12 at 09:21 -0700, kgignatyev wrote: Hi, I have problem embedding

Re: Wicket 1.3.4 and Spring annotations

2008-08-13 Thread alex2008
public class WicketApplication extends WebApplication { public void init() { addComponentInstantiationListener(new SpringComponentInjector(this)); //mount(/Home, PackageName.forClass(Home.class)); } .. public class Home extends WebPage {

Re: Wicket 1.3.4 and Spring annotations

2008-08-13 Thread Michael Sparer
as igor said, remove the setter and the init method from your webpage and double-check your spring-configuration ... and try coding against interfaces if it doesn't work show us the part where you configure the beans (the application and the PersoneList) and the configuration of the wicket

Problem updating an image via Ajax

2008-08-13 Thread Goldstein, Jonathan A
I have a Model that returns a BufferedDynamicImageResource. When my page initially loads, the image is displayed. But when I update a DropDownChoice and invoke the AjaxFormComponentUpdatingBehavior(onchange).onUpdate(AjaxRequestTarget target) which adds the image component to the target, the

[announce] Wicket in Action e-book has been published!

2008-08-13 Thread Martijn Dashorst
Almost 3 years of hard work, loosing friends, moving abroad, marrying lovely wives, late nights, early mornings, frustrated family, and all other bad (and good) things that cross one's life is now rewarded with the availability of the e-book edition of Wicket in Action. The print edition (also

Re: Problem updating an image via Ajax

2008-08-13 Thread Igor Vaynberg
use NonCachingImage if you do not change the src value the browser will not redownload the image -igor On Wed, Aug 13, 2008 at 2:30 PM, Goldstein, Jonathan A [EMAIL PROTECTED] wrote: I have a Model that returns a BufferedDynamicImageResource. When my page initially loads, the image is

RE: [announce] Wicket in Action e-book has been published!

2008-08-13 Thread David Leangen
Congratulations, guys! Thank you for all your hard work and sacrifice! -Original Message- From: Martijn Dashorst [mailto:[EMAIL PROTECTED] Sent: 14 August 2008 06:32 To: Wicket Users Subject: [announce] Wicket in Action e-book has been published! Almost 3 years of hard work,

Re: Customize TinyMCE init settings

2008-08-13 Thread Kaspar Fischer
I am also interested in this. In the meantime, as a hack, one can add custom settings by overriding toJavaScript(): TinyMCESettings settings = new TinyMCESettings(TinyMCESettings.Theme.advanced) { @Override public String toJavaScript(boolean ajax) {

Re: [announce] Wicket in Action e-book has been published!

2008-08-13 Thread Daniel Freitas
Congrats. The book has been very helpful so far. 2008/8/13 David Leangen [EMAIL PROTECTED] Congratulations, guys! Thank you for all your hard work and sacrifice! -Original Message- From: Martijn Dashorst [mailto:[EMAIL PROTECTED] Sent: 14 August 2008 06:32 To: Wicket Users

Filter Toolbar and changing size of TextFilter input box

2008-08-13 Thread Karen Schaper
Hello, I have a question about the FilterToolbar. I just came across it and I love it. Except now my page is taking up to much space and the user has to scroll right to see all my columns. This is because the text filter boxes are too big for the column they represent. How do I change this?

Re: [announce] Wicket in Action e-book has been published!

2008-08-13 Thread Gabriel Bucher
congratulation guys. thanks for the hard work and it helped me a lot to get into wicket. Martijn Dashorst wrote: Almost 3 years of hard work, loosing friends, moving abroad, marrying lovely wives, late nights, early mornings, frustrated family, and all other bad (and good) things that cross

1.4-m3 - DefaultDataTable IColumnT

2008-08-13 Thread Jeremy Thomerson
I'm just converting one of my applications from 1.4-m2 to 1.4-m3. I have a question regarding DefaultDataTable. The current constructor signature is; public DefaultDataTable(String id, final IColumnT[] columns, ISortableDataProviderT dataProvider, int rowsPerPage) I don't understand why the

Re: 1.4-m3 - DefaultDataTable IColumnT

2008-08-13 Thread Jeremy Thomerson
Nevermind - got too bogged down in fixing generics warnings and didn't notice my obvious mistake. For those who may come across this later: The columns should be declared PropertyColumnFoo if the table is DefaultDataTableFoo JT On Wed, Aug 13, 2008 at 7:03 PM, Jeremy Thomerson [EMAIL

Re: [announce] Wicket in Action e-book has been published!

2008-08-13 Thread Toto Laricot
We ported an application from JBOSS/SEAM to Wicket in 2 weeks. The app has been successfully deployed in production. Although the wiki had all the scode sample we could wish for, and searching the forum always answered our questions, I'll buy the book to express our gratitude to the Wicket team.

Palette orientation (Selected, Avaliable) - (Available, Selected)

2008-08-13 Thread metalotus
Palette lists are positioned left-to-right: Available, Selected. How do I change the orientation to right-to-left: Selected, Available? Thanks! -- View this message in context:

Re: Palette orientation (Selected, Avaliable) - (Available, Selected)

2008-08-13 Thread Igor Vaynberg
subclass it and provide your own markup... -igor On Wed, Aug 13, 2008 at 6:11 PM, metalotus [EMAIL PROTECTED] wrote: Palette lists are positioned left-to-right: Available, Selected. How do I change the orientation to right-to-left: Selected, Available? Thanks! -- View this message in

Re: [announce] Wicket in Action e-book has been published!

2008-08-13 Thread Nick Heudecker
Why did you move away from Seam? On Wed, Aug 13, 2008 at 5:59 PM, Toto Laricot [EMAIL PROTECTED]wrote: We ported an application from JBOSS/SEAM to Wicket in 2 weeks. The app has been successfully deployed in production. Although the wiki had all the scode sample we could wish for, and