Re: [Wicket-user] Do form components have to contain page id in their names?

2005-09-06 Thread Matej Knopp
Eelco Hillenius wrote: Yep. We could just strip the first nbr + '.'. That's not a big problem. nbr + ':' ;) Great. Thanks for quick and positive feedback. -Matej Eelco On 9/5/05, Johan Compagner [EMAIL PROTECTED] wrote: but the problem is this code: protected void

[Wicket-user] Nicely formatted error report

2005-09-06 Thread Scott Sauyet
Okay, still missing something basic. I was looking at the Library in wicket-examples, and it failed. (I have no idea why, and am downloading the lastest beta of examples.) But when it failed -- after log-in -- Wicket presented me with a nicely formatted error report listing the stack-trace,

Re: [Wicket-user] Nicely formatted error report

2005-09-06 Thread Johan Compagner
so you always get a internal one? that is strange because if you are in development mode: if (development.equalsIgnoreCase(configurationType)) { setResourcePollFrequency(Duration.ONE_SECOND); setComponentUseCheck(true); setStripWicketTags(false);

Re: [Wicket-user] Nicely formatted error report

2005-09-06 Thread Martijn Dashorst
Isn't it possible that this is due to the web.xml url pattern '/' instead of '/*' ? Martijn Johan Compagner wrote: so you always get a internal one? that is strange because if you are in development mode: if (development.equalsIgnoreCase(configurationType)) {

Re: [Wicket-user] Do form components have to contain page id in their names?

2005-09-06 Thread Johan Compagner
I was just thinking.. Why are we using the complete path as the name? Is that really needed? Why not just the name itself? Because now the paths can be come very very very long. (if you have a form that is inside a view markup containers...) i think we can do this: protected void

Re: [Wicket-user] Do form components have to contain page id in their names?

2005-09-06 Thread Eelco Hillenius
Ah, yes :) Do you want to start a vote as a new message? It seems that votes are only picked up by people when there is a large VOTE: in the subject. Eelco On 9/6/05, Matej Knopp [EMAIL PROTECTED] wrote: Eelco Hillenius wrote: Yep. We could just strip the first nbr + '.'. That's not a big

Re: [Wicket-user] Do form components have to contain page id in their names?

2005-09-06 Thread Eelco Hillenius
We don't need the page id (I think). But we do need the rest in order to support arbitrairy nesting, like including ListViews etc. Ee;lco On 9/6/05, Johan Compagner [EMAIL PROTECTED] wrote: I was just thinking.. Why are we using the complete path as the name? Is that really needed? Why not

Re: [Wicket-user] Nicely formatted error report

2005-09-06 Thread Scott Sauyet
Johan Compagner wrote: so you always get a internal one? that is strange because if you are in development mode: if (development.equalsIgnoreCase(configurationType)) { setResourcePollFrequency(Duration.ONE_SECOND); setComponentUseCheck(true);

Re: [Wicket-user] Do form components have to contain page id in their names?

2005-09-06 Thread Johan Compagner
we don't need the rest we only need from the form (not included) to the component. And if people are sure that id is also unique (what i know with servoy) then we can just put the id in it. Because now the names are to long. PDA browsers have problems with it. johan Eelco Hillenius wrote:

Re: [Wicket-user] Nicely formatted error report

2005-09-06 Thread Scott Sauyet
My web.xml contains this: .url-pattern/admin/*./url-pattern Every time I've tried to use /* I ended up with some problem. I've never had the time to spend trying to figure out why, but maybe I should. -- Scott Martijn Dashorst wrote: Isn't it possible that this is due to the

Re: [Wicket-user] Do form components have to contain page id in their names?

2005-09-06 Thread Matej Knopp
I didn't want vote, just your opinions :) -Matej Eelco Hillenius wrote: Ah, yes :) Do you want to start a vote as a new message? It seems that votes are only picked up by people when there is a large VOTE: in the subject. Eelco On 9/6/05, Matej Knopp [EMAIL PROTECTED] wrote: Eelco

Re: [Wicket-user] Do form components have to contain page id in their names?

2005-09-06 Thread Matej Knopp
I also think that it good for the component names not to be prepended by form path. The rest of the path is always unique for the components in form. -Matej Johan Compagner wrote: we don't need the rest we only need from the form (not included) to the component. And if people are sure that

[Wicket-user] Member introduction

2005-09-06 Thread Marco van de Haar
Hello people, We would like to introduce ourselves to the community. We are two students from the Saxion Hogeschool Enschede (Netherlands), currently in our graduation internship. Our assignment will be to develop a limited component-set for Wicket. Most probably this will consist of

[Wicket-user] Button.setDefaultFormProcessing inverted logic

2005-09-06 Thread Jan Bares
Hi, (nitpicking, sorry) it seems to me, that the boolean value in the Button.setDefaultFormProcessing has inverted logic. The default processing is to validate, so I expect, that the default value is setDefaultFormProcessing(*true*); Regards, Jan

Re: [Wicket-user] Do form components have to contain page id in their names?

2005-09-06 Thread Johan Compagner
i just committed the change to cvs. FormComponent has now a getInputName() where the path of the component is generated from the form to the component itself (form itself not included) I also made that method non final so you can override it if you want even a smaller name (if you know for

Re: [Wicket-user] Nicely formatted error report

2005-09-06 Thread Johan Compagner
or the exception page is erroring itself.. You could try to debug it start in RequestCycle.internalOnRuntimeException() johan Scott Sauyet wrote: Johan Compagner wrote: so you always get a internal one? that is strange because if you are in development mode: if

Re: [Wicket-user] Do form components have to contain page id in their names?

2005-09-06 Thread Eelco Hillenius
Agreed. Eelco On 9/6/05, Matej Knopp [EMAIL PROTECTED] wrote: I also think that it good for the component names not to be prepended by form path. The rest of the path is always unique for the components in form. -Matej Johan Compagner wrote: we don't need the rest we only need from

Re: [Wicket-user] Button.setDefaultFormProcessing inverted logic

2005-09-06 Thread Johan Compagner
the default == true! Jan Bares wrote: Hi, (nitpicking, sorry) it seems to me, that the boolean value in the Button.setDefaultFormProcessing has inverted logic. The default processing is to validate, so I expect, that the default value is setDefaultFormProcessing(*true*); Regards, Jan

[Wicket-user] Re: Button.setDefaultFormProcessing inverted logic

2005-09-06 Thread Jan Bares
I did not looked into the sources. You are right, but javadoc is wrong: Sets the defaultFormProcessing property. When true (default is false), all validation and formupdating is bypassed ... Jan the default == true! --- SF.Net email is

Re: [Wicket-user] Spring Integration

2005-09-06 Thread Martijn Dashorst
I could ask my employer to host the wicket wiki on one of our (test) servers. That would speed up the wiki thing. I'm -1 on JIRA and confluence. I don't want to keep switching constantly between wiki's. We have decided for mediawiki, and I like to stick with it, until a /real/ technical or

Wiki hosting - Re: [Wicket-user] Spring Integration

2005-09-06 Thread Michael Glauche
Martijn Dashorst wrote: I could ask my employer to host the wicket wiki on one of our (test) servers. That would speed up the wiki thing. I'm -1 on JIRA and confluence. I don't want to keep switching constantly between wiki's. We have decided for mediawiki, and I like to stick with it, until

[Wicket-user] How do I protect re-submission ?

2005-09-06 Thread Ingram Chen
A simple submission flow: PageA - submit - PageB When a user clicks Back Button to back PageA, How to prevent PageA to re-submit and redirect to expired Page for the user ? I know every page has version but can't figure out how to do that Thanks in advance.-- Ingram ChenJava [EMAIL

Re: [Wicket-user] Re: Button.setDefaultFormProcessing inverted logic

2005-09-06 Thread David Liebeherr
Hi Eelco, i think setDefaultFormProcessing is a very good name. I show exactly what the method is doing. I don't know any reason why we should change the name again... Cu, Dave Eelco Hillenius wrote: More nitpicking... I still think 'immediate' was a better name. I don't recall voting for

Re: [Wicket-user] Re: Button.setDefaultFormProcessing inverted logic

2005-09-06 Thread Eelco Hillenius
No, I'm not proposing that either. Just expressing that I think there should have been a vote. Nitpicking. Eelco On 9/6/05, David Liebeherr [EMAIL PROTECTED] wrote: Hi Eelco, i think setDefaultFormProcessing is a very good name. I show exactly what the method is doing. I don't know any

Re: [Wicket-user] How do I protect re-submission ?

2005-09-06 Thread Eelco Hillenius
Versioning should work out-of-the-box and roll back changes. A lot of times this is not what you want though. Your best option then is to turn off versioning, by overriding method isVersioned and let it return false (e.g. on your Page). This additionally has the effect that your url won't change,

Re: [Wicket-user] How do I protect re-submission ?

2005-09-06 Thread Eelco Hillenius
I've been thinking about the whole versioning thing longer actually: wouldn't it be a better (certainly more efficient) default to turn it off? If you really want the rollback behaviour, you can easily turn it on. Eelco On 9/6/05, Eelco Hillenius [EMAIL PROTECTED] wrote: Versioning should work

Re: [Wicket-user] Re: Button.setDefaultFormProcessing inverted logic

2005-09-06 Thread Matej Knopp
Okay, I don't see a point of this discussion unless it's a vote, but I just liked setImmediate more :) It's less verbose and it seemed clean to me that it bypasses validation and model updates. -Matej David Liebeherr wrote: Hi Eelco, i think setDefaultFormProcessing is a very good name. I

Re: [Wicket-user] Re: Button.setDefaultFormProcessing inverted logic

2005-09-06 Thread Johan Compagner
yes somebody .. did change that name but didn't update the docs ! :( i updated the javadoc. johan Jan Bares wrote: I did not looked into the sources. You are right, but javadoc is wrong: Sets the defaultFormProcessing property. When true (default is false), all validation and

Re: [Wicket-user] How do I protect re-submission ?

2005-09-06 Thread Johan Compagner
then by default the back button doesn't work out of the box. I do like to have it by default on component changes. (add/remove or internalstate change) but model change is a thing i can live without by default. Because most of the time it is db data. And if you alter an object and then go back

Re: [Wicket-user] How do I protect re-submission ?

2005-09-06 Thread Eelco Hillenius
The nice thing - which we didn't have in the past - of turning it off, is that the backbutton won't even take you to the former version of the page, as the URL is the same. Eelco On 9/6/05, Johan Compagner [EMAIL PROTECTED] wrote: then by default the back button doesn't work out of the box. I

Re: [Wicket-user] How do I protect re-submission ?

2005-09-06 Thread Eelco Hillenius
Yep. Which is the case with form submissions :) Eelco On 9/6/05, Johan Compagner [EMAIL PROTECTED] wrote: as long as it is the same page... Eelco Hillenius wrote: The nice thing - which we didn't have in the past - of turning it off, is that the backbutton won't even take you to the

Re: [Wicket-user] How do I protect re-submission ?

2005-09-06 Thread Johan Compagner
doesn't have to. What is the redirect page after you submit a form? That can be another page. Then the back button is used to go back Eelco Hillenius wrote: Yep. Which is the case with form submissions :) Eelco On 9/6/05, Johan Compagner [EMAIL PROTECTED] wrote: as long as it is the

Re: [Wicket-user] How do I protect re-submission ?

2005-09-06 Thread Eelco Hillenius
Ok, ok, you win :) Eelco On 9/6/05, Johan Compagner [EMAIL PROTECTED] wrote: doesn't have to. What is the redirect page after you submit a form? That can be another page. Then the back button is used to go back Eelco Hillenius wrote: Yep. Which is the case with form submissions :)

Re: [Wicket-user] How do I protect re-submission ?

2005-09-06 Thread Ingram Chen
hm It is a little hard for me to image your discussion... anyway, I tried to override isVersioned() to return false but it doesn't work at all After dig into the source code, I found that all pages are registered in session and it's possible to remove page directly: add(new

Re: [Wicket-user] How do I protect re-submission ?

2005-09-06 Thread Johan Compagner
yes that is the way to go Ingram Chen wrote: hm It is a little hard for me to image your discussion... anyway, I tried to override isVersioned() to return false but it doesn't work at all After dig into the source code, I found that all pages are registered in session and it's

RE: [Wicket-user] Wicket and OSGi

2005-09-06 Thread Bennett, Timothy (JIS - Applications)
-Original Message- From: Dieter Wimberger [mailto:[EMAIL PROTECTED] Sent: Friday, September 02, 2005 4:13 PM To: wicket-user@lists.sourceforge.net Subject: [Wicket-user] Wicket and OSGi I have started an evaluation of Wicket, specifically with the idea to drop it into an OSGi

Re: [Wicket-user] Re: OT? Tomcat not removing wicket.jar

2005-09-06 Thread Davide Savazzi
On 8/31/05, Johan Compagner [EMAIL PROTECTED] wrote: yes but this doesn't really work. Because if you guys are going to use wicket-extentions.jar Don't you have the same problem then? There is not only one wicket.properties. There can be multiple (in every wicket component jar file there is)

[Wicket-user] Re: OT? Tomcat not removing wicket.jar

2005-09-06 Thread Davide Savazzi
On 8/31/05, Johan Compagner [EMAIL PROTECTED] wrote: yes but this doesn't really work. Because if you guys are going to use wicket-extentions.jar Don't you have the same problem then? There is not only one wicket.properties. There can be multiple (in every wicket component jar file there is)

Re: [Wicket-user] Re: OT? Tomcat not removing wicket.jar

2005-09-06 Thread Eelco Hillenius
I've had that with a bunch of Struts/ Maverick apps too. That's really Tomcat in fault imo. Eelco A minor problem is that after some reloading of the web app Tomcat goes out of memory... --- SF.Net email is Sponsored by the Better Software

[Wicket-user] Popups on http://wicket.sf.net

2005-09-06 Thread Martijn Dashorst
All, Does anybody experience nasty popup's and other ad like stuff on the wicket frontpage? We use a page counter in order to track who came from where (great way of finding new blog entries on Wicket), but that counter has been taken over by an advertising company. Apparently there have been

RE: [Wicket-user] PageableGridDataView

2005-09-06 Thread Igor Vaynberg
I removed the setStartIndex() and setViewSize() from dataview and setcurrentpage() simply ignores the page if paging is disabled instead of throwing illegalstateexception. I also introduced the populateitems(int first, int count), Chris let me know if that's what you wanted. I noticed there is a

RE: [Wicket-user] PageableGridDataView

2005-09-06 Thread Igor Vaynberg
I also removed PageableDataView instead of keeping it deprecated because it would no longer compile with the changes in DataView. -Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Igor Vaynberg Sent: Tuesday, September 06, 2005 11:29 AM To:

[Wicket-user] Two-list swapping widget

2005-09-06 Thread Scott Sauyet
I don't know what it's called, but there is a widget you see in any number of applications (especially thick client ones, but some brower-based ones as well) that allows the user to move items between two lists. The lists are usually side-by-side with left and right arrows between to move

Re: [Wicket-user] Two-list swapping widget

2005-09-06 Thread Eelco Hillenius
Yeah, as a matter of fact there is... It was contributed by Igor Vaynberg and lives in Wicket Stuff as wicket-contrib-palette. CVS only at this time. I was thinking, if some people would like to review it, and Igor agrees, we could move it to wicket-extensions. Looks like a good place for it.

Re: [Wicket-user] PageableGridDataView

2005-09-06 Thread Johan Compagner
what kind of error do you get? Igor Vaynberg wrote: I removed the setStartIndex() and setViewSize() from dataview and setcurrentpage() simply ignores the page if paging is disabled instead of throwing illegalstateexception. I also introduced the populateitems(int first, int count), Chris let

RE: [Wicket-user] PageableGridDataView

2005-09-06 Thread Igor Vaynberg
Path not found. Might be something weird that the dataview is doing, im just not seeing it. -Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Johan Compagner Sent: Tuesday, September 06, 2005 12:58 PM To: wicket-user@lists.sourceforge.net

RE: [Wicket-user] Two-list swapping widget

2005-09-06 Thread Igor Vaynberg
That would be great, but it really needs to be tested first. It works for my very basic usecase, outside of that I havent had much time to fully test it. -Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eelco Hillenius Sent: Tuesday,

Re: [Wicket-user] PageableGridDataView

2005-09-06 Thread Johan Compagner
is there an example where i can see this? Igor Vaynberg wrote: Path not found. Might be something weird that the dataview is doing, im just not seeing it. -Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Johan Compagner Sent: Tuesday,

[Wicket-user] CompoundPropertyModels

2005-09-06 Thread Ralf Ebert
Hi, some questions came upon me while working with Wicket the last days. I couldn't find anything about this in the resources online... Thanks for any help! - when having a page using a CompoundPropertyModel which has a form using a CompoundPropertyModel, how do I get the form's model to

[Wicket-user] Time Selection Component

2005-09-06 Thread Nick Heudecker
I need to build a simple drop-down time component that allows the user to select an hour, minute (in 5-minute increments) and AM/PM. Ideally, the calling code would look something like: TimeSelector ts = new TimeSelector(myModelName, myModelObject); add(ts); So the TimeSelector class would have

Re: [Wicket-user] wicket:body and Border component

2005-09-06 Thread Martijn Dashorst
Nick, Is the problem already solved? from what I can see (and what Juergen is referring to) is that the span wicket:id=border needs a wicket:body tag in the markup. So: span wicket:id=border!-- bunch of markup -- wicket:body / !-- other bunch of markup --/span Martijn On 9/2/05, Nick

Re: [Wicket-user] wicket:body and Border component

2005-09-06 Thread Nick Heudecker
Martijn: No, it's not solved yet. Here's what I don't understand: I use that same page multiple times throughout my application and there is only one place where it fails. I'll try dropping in the wicket:body/ tag in my Page markup and see if it works. On 9/6/05, Martijn Dashorst [EMAIL

Re: [Wicket-user] wicket:body and Border component

2005-09-06 Thread Nick Heudecker
Didn't work. So I have a Border component with the following markup: wicket:border wicket:body/ /wicket:border Then I have a Page with the following markup: span wicket:id=border span wicket:id=eventSummaryPanel/ /span And the error is: There must be exactly one wicket:body tag for each

RE: [Wicket-user] PageableGridDataView

2005-09-06 Thread Igor Vaynberg
Yes, the paging example in the dataview examples... I noticed there is a problem with the back button support in the paging example. If you go to page 2 and then use the back button to go to page1 and click a link, you get an error. Any ideas why this is happening? I thought the

Re: [Wicket-user] CompoundPropertyModels

2005-09-06 Thread Martijn Dashorst
On 9/6/05, Ralf Ebert [EMAIL PROTECTED] wrote: Hi,- when having a page using a CompoundPropertyModel which has a formusing a CompoundPropertyModel, how do I get the form's model to mapto a property of the page's model? (the pages model is bound tohouse, and I want the form's model to be bound to

Re: [Wicket-user] CompoundPropertyModels

2005-09-06 Thread Gwyn Evans
Hava a look at the attatched see if they help with (1). Basically, there's an example of 'absolute' addressing and an example of 'relative' addressing. I'm not sure if it's the best way, but it works... /Gwyn On 06/09/05, Ralf Ebert [EMAIL PROTECTED] wrote: Hi, some questions came upon me

Re: [Wicket-user] User session handling (like stateful beans)

2005-09-06 Thread Martijn Dashorst
Could you please elaborate more on what you mean by user sessions? And what you mean by managing? It seems to me that you are asking something about a http session, which is managed by your web application server, and Wicket and your application uses that to store information regarding the

[Wicket-user] Live demos

2005-09-06 Thread Kenneth Foo
http://www.wicket-library.com/wicket-examples is down... Shows Proxy Error The document has moved here. --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development

[Wicket-user] Internal Error when using back buttons and Links in ListView

2005-09-06 Thread Kenneth Foo
With the following code snippet, I'm getting internal error message with no stack traces. (I'm using wicket 1.1 b4) If I do this 1. Browse to the main page 2. Click on pow link (which is inside a listview) 3. Hit the browser back button 3. Click on on the pow or wow link inside the listview.