base pages without kludge initialization

2014-07-09 Thread Garret Wilson
Everyone, Let's say I want to make a base page, extending WebPage. I want to make it flexible so that subpages may initialize either using a model or page parameters. So I try to do this: protected BasePage() { this(null, null); } protected BasePage(final IModel?

need not-submitting button

2014-07-09 Thread Garret Wilson
Everyone, There needs to be a way to have a Button that does not perform an HTML submit, such as Link, which allows onClick() handling instead of onSubmit(). Your first response will probably tell me to RTFM and setDefaultFormProcessing(false). :) But hear me out. If I have a submit button

Re: need not-submitting button

2014-07-10 Thread Garret Wilson
On 7/9/2014 11:11 PM, Martin Grigorov wrote: There are three types of HTML buttons: submit, reset and button. You need the third one: button type=buttonLike Link/button. Ah, yes---I was a little HTML-rusty and the button type slipped my mind. Unfortunately, using type=button my

Re: base pages without kludge initialization

2014-07-10 Thread Garret Wilson
On 7/10/2014 3:43 AM, Martin Grigorov wrote: I think org.apache.wicket.Page#Page(org.apache.wicket.request.mapper.parameter.PageParameters, org.apache.wicket.model.IModel?) is private to make it explicit that a page with PageParameters is bookmarkable and possibly stateless, and a Page with

best model for editing a list of items in a table?

2014-07-10 Thread Garret Wilson
I have my own WidgetManager interface, and I want to edit a list of widgets in a table. I create an IDataProviderWidget: final IDataProviderWidget widgetProvider = new ListDataProviderWidget() { @Override protected ListWidget getData() { return widgetManager.getWidgets());

Re: best model for editing a list of items in a table?

2014-07-10 Thread Garret Wilson
On 7/10/2014 4:59 PM, Garret Wilson wrote: I have my own WidgetManager interface, and I want to edit a list of widgets in a table. I create an IDataProviderWidget: final IDataProviderWidget widgetProvider = new ListDataProviderWidget() { @Override protected ListWidget getData

resource encoding troubles

2014-08-28 Thread Garret Wilson
I have Wicket 7.0.0-M2 running on embedded Jetty, which is correctly returning a content type of UTF-8 for my Wicket page: Date: Thu, 28 Aug 2014 15:37:52 GMT Expires: Thu, 01 Jan 1970 00:00:00 GMT Pragma: no-cache Cache-Control: no-cache, no-store Content-Type: text/html;

Re: resource encoding troubles

2014-08-28 Thread Garret Wilson
, Francois Meillet wrote: Look at http://apache-wicket.1842946.n4.nabble.com/How-to-localize-options-in-drop-down-tt4661751.html#a4661768 François Meillet Formation Wicket - Développement Wicket Le 28 août 2014 à 17:47, Garret Wilson gar...@globalmentor.com a écrit : I have Wicket 7.0.0-M2

Re: resource encoding troubles

2014-08-28 Thread Garret Wilson
should be the default. So does anyone know why my configuration does not work? What am I doing wrong? Sincerely, Garret On 8/28/2014 10:18 AM, Francois Meillet wrote: use *.utf8.properties François Meillet Formation Wicket - Développement Wicket Le 28 août 2014 à 17:47, Garret Wilson gar

Re: resource encoding troubles

2014-08-28 Thread Garret Wilson
wrote: http://wicket.apache.org/guide/guide/ François Meillet Formation Wicket - Développement Wicket Le 28 août 2014 à 19:24, Garret Wilson gar...@globalmentor.com a écrit : So are you saying that Wicket does not support ISO-8859-1 properties files that adhere do the Java standard

Re: resource encoding troubles

2014-08-28 Thread Garret Wilson
I appreciate all the workarounds suggested. But no one has addressed the core issue: Is this a Wicket bug, or am I using standard property files incorrectly? Garret On 8/28/2014 10:42 AM, Andrea Del Bene wrote: Have you tried using directly unicode character? i.e.: copyright=\u00A9 2014

Re: resource encoding troubles

2014-08-28 Thread Garret Wilson
On 8/28/2014 10:53 AM, Stefan Renz wrote: ... if I read your original post correctly, you have not used ISO-8859-1 encoding in your property file, as I clearly see a (C) symbol. Since when is © (U+00A9) not part of ISO-8859-1? http://en.wikipedia.org/wiki/ISO/IEC_8859-1 Garret

Re: resource encoding troubles

2014-08-28 Thread Garret Wilson
On 8/28/2014 11:14 AM, Andrea Del Bene wrote: It's just an encoding conflict: your properties uses ISO-8859-1, your page UTF-8. The result is a bad rendering, as you can see. When Java designers decided to adopt ISO-8859-1 they didn't consider most of the Asian languages... PS: just as a

Re: resource encoding troubles

2014-08-28 Thread Garret Wilson
On 8/28/2014 12:08 PM, Sven Meier wrote: ... My configuration, as far as I can tell, is correct. From what you've written, I'd agree. You should create a quickstart. This will easily allow us to find a possible bug. Better than that, I'd like to trace down the bug, fix it, and file a

Re: resource encoding troubles

2014-08-29 Thread Garret Wilson
that has the problem until you find an element that is causing the problem. Thanks Andrew On Thu, Aug 28, 2014 at 5:38 PM, Garret Wilson gar...@globalmentor.com wrote: On 8/28/2014 12:08 PM, Sven Meier wrote: ... My configuration, as far as I can tell, is correct. From what you've written, I'd

Re: resource encoding troubles

2014-08-29 Thread Garret Wilson
On 8/29/2014 9:15 AM, Garret Wilson wrote: ... So here is the problem: something is taking the string generated by the message (which was parsed correctly from the properties file) and writing it to the output stream, not in UTF-8 as it should, but in some other encoding. Hmmm

Wicket meet-and-greet at JavaOne 2014?

2014-09-08 Thread Garret Wilson
Hi, all. I'm traveling at the moment, but I plan to be back in San Francisco around the start of JavaOne. Do any Wicket users plan on being in town for the conference? Would you like me to organize a meet-and-greet at a local restaurant or even (depending on the number of guests) at my place?

Re: resource encoding troubles

2014-09-20 Thread Garret Wilson
of this problem. Is there some Wicket or Java setting that is defaulting a URLConnection to use UTF-8 encoding? (As I mentioned above, the underlying input stream seems to be a FileInputStream wrapped in two layers of BufferedInputStream.) Garret On 8/29/2014 1:15 PM, Garret Wilson wrote: Hi, all

Re: resource encoding troubles

2014-09-20 Thread Garret Wilson
found it. I'll fix it... another day. Right now I'm going to grab some tequila and celebrate!! Have a great rest of the weekend, everybody! Garret On 9/20/2014 4:14 PM, Garret Wilson wrote: I'm finally able to trace the code, and this is getting very odd. I use a hex editor, and the bytes

turning off page versioning

2014-09-22 Thread Garret Wilson
Can someone explain to me exactly how page versioning works, and how to turn it off? I have a page StagingPage that contains a file uploader. This page is interesting in that when you upload some files with Button1, the page lists the files on the page and keeps them in a collection until you

Re: turning off page versioning

2014-09-23 Thread Garret Wilson
sessionId+pageId to pageClass and use that pageClass with custom IMyPageStore and IMyDataStore impls. (Just an idea out of my mind.) Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Sep 23, 2014 at 3:42 AM, Garret Wilson gar...@globalmentor.com wrote: Can

Re: turning off page versioning

2014-09-23 Thread Garret Wilson
On 9/23/2014 12:08 PM, Martin Grigorov wrote: On Tue, Sep 23, 2014 at 4:44 PM, Garret Wilson gar...@globalmentor.com wrote: OMG. What a sad email to wake up to. :( Let me let all that digest for a while. I never would have imagined a situation this dire. Imagine if every time you went

Re: turning off page versioning

2014-09-24 Thread Garret Wilson
On 9/24/2014 4:28 AM, Martin Grigorov wrote: ... Apparently Wicket thinks the browser back button is an undo button. But in my mind it's not---it's a back button that goes to the previous page. If you're still on the same page but you've changed that page, then you see the new version of the

Re: turning off page versioning

2014-09-24 Thread Garret Wilson
On 9/24/2014 9:26 AM, Martijn Dashorst wrote: On Wed, Sep 24, 2014 at 2:13 AM, Garret Wilson gar...@globalmentor.com wrote: I'm not denying that versioned pages may be a useful concept for some use cases (even though I can't think of any offhand). Persioning is a very useful concept and used

Re: turning off page versioning

2014-09-24 Thread Garret Wilson
On 9/24/2014 11:18 AM, Martijn Dashorst wrote: ... And ranting about how stupid we are for having page versions doesn't help either. Hey, wait a minute. Where did that come from? That sort of hurts my feelings. I brought up this topic, and I've said throughout this discussion that versioning

Re: Wicket meet-and-greet at JavaOne 2014?

2014-09-28 Thread Garret Wilson
/2014 8:17 PM, Garret Wilson wrote: Hi, all. I'm traveling at the moment, but I plan to be back in San Francisco around the start of JavaOne. Do any Wicket users plan on being in town for the conference? Would you like me to organize a meet-and-greet at a local restaurant or even (depending

unable to find property UploadProgressBar.starting

2014-10-01 Thread Garret Wilson
Friends, I have a Wicket page using the upload progress bar: span wicket:id=progress[[upload progress bar]]/span form.add(new UploadProgressBar(progress, form, fileUpload)); Dependencies are declared normally in Maven: dependency groupIdorg.apache.wicket/groupId

Re: unable to find property UploadProgressBar.starting

2014-10-01 Thread Garret Wilson
On 10/1/2014 12:33 PM, Martin Grigorov wrote: Hi, Do you by chance manipulate the list of IStringResourceLoader's in DEPLOYMENT mode ? I don't think I touched anything related to IStringResourceLoader. The only thing I've done relating to modes is this: //turn on Wicket development

Re: unable to find property UploadProgressBar.starting

2014-10-01 Thread Garret Wilson
:38 AM, Garret Wilson gar...@globalmentor.com wrote: On 10/1/2014 12:33 PM, Martin Grigorov wrote: Hi, Do you by chance manipulate the list of IStringResourceLoader's in DEPLOYMENT mode ? I don't think I touched anything related to IStringResourceLoader. The only thing I've done relating

Re: unable to find property UploadProgressBar.starting

2014-10-01 Thread Garret Wilson
On 10/1/2014 3:31 PM, Martin Grigorov wrote: Apache Isis uses http://simplericity.org/jetty-console/jetty-console-maven-plugin/ to generate an executable .jar that contains all dependencies in WEB-INF/lib/ folder inside. Exactly as you need it. Yeah, in another subproject I had already created

Re: unable to find property UploadProgressBar.starting

2014-10-01 Thread Garret Wilson
On 10/1/2014 5:17 PM, Martin Grigorov wrote: ... Are you aware of JDK APIs (e.g. ClassLoader) or Servlet APIs (e.g. SevletContext) that make it simple to find the list of resources in a folder in the classpath ? E.g. give me a list of all files with extension '.properties' in /META-INF/wicket/ ?

Re: unable to find property UploadProgressBar.starting

2014-10-08 Thread Garret Wilson
of the problem. Garret On 10/1/2014 1:04 PM, Garret Wilson wrote: I think I've found the source of the problem (even though I don't understand the internal details). Our installer creates an uber-JAR that has all the dependencies exploded and then placed inside a single JAR file. I looked inside

disabling IndicatingAjaxButton during submision?

2014-10-09 Thread Garret Wilson
IndicatingAjaxButton is nice. But I need one more step: I need the button to be disabled during submission. Mystic Coders indicated a solution http://www.mysticcoders.com/blog/disabling-an-ajax-submit-button/, but that doesn't seem to work with Wicket 7. Some have filed bugs to Wicket

Re: disabling IndicatingAjaxButton during submision?

2014-10-09 Thread Garret Wilson
On 10/9/2014 1:21 PM, Martin Grigorov wrote: ... It was as simple as these two lines:

Re: disabling IndicatingAjaxButton during submision?

2014-10-09 Thread Garret Wilson
Martin Grigorov. Garret On 10/9/2014 12:29 PM, Garret Wilson wrote: IndicatingAjaxButton is nice. But I need one more step: I need the button to be disabled during submission. Mystic Coders indicated a solution http://www.mysticcoders.com/blog/disabling-an-ajax-submit-button/, but that doesn't

simple confirmation on button/link

2014-10-30 Thread Garret Wilson
All, I've created a simple confirmation link based on Sven Meier's ConfirmationLink code https://cwiki.apache.org/confluence/x/X4U on Confluence. For the most part it works, but... ...but if I'm on an upload form, then an an Ajax link won't work because I need to actually submit the

Re: simple confirmation on button/link

2014-10-30 Thread Garret Wilson
PM, Andrea Del Bene wrote: On 30/10/14 17:57, Garret Wilson wrote: All, I've created a simple confirmation link based on Sven Meier's ConfirmationLink code https://cwiki.apache.org/confluence/x/X4U on Confluence. For the most part it works, but... ...but if I'm on an upload form

hiding a bit of markup

2014-11-07 Thread Garret Wilson
All, I have a little list in HTML: ul lifoo/li libar/li /ul There are some wicket:message tags, but no components on the page. I want only to show the foo list item if the flag variable is set to true. What's the easiest way to do this in Wicket? I've read the

Re: hiding a bit of markup

2014-11-07 Thread Garret Wilson
/2014 10:32 AM, Garret Wilson wrote: All, I have a little list in HTML: ul lifoo/li libar/li /ul There are some wicket:message tags, but no components on the page. I want only to show the foo list item if the flag variable is set to true. What's the easiest way to do

clearing feedback messages on Ajax upload

2014-11-13 Thread Garret Wilson
Hi, all. I've done a bit of searching to find the answer, and nothing quite seemed to fit, or was obsolete, or was deprecated, or was vague. So I'll ask on the list. I have a page that uses a multipart form submit. It allows the user to select a file, and has an AjaxSubmitLink with the label

Re: clearing feedback messages on Ajax upload

2014-11-13 Thread Garret Wilson
/13/2014 7:50 PM, Martin Grigorov wrote: Hi, On Thu, Nov 13, 2014 at 11:36 PM, Garret Wilson gar...@globalmentor.com wrote: Hi, all. I've done a bit of searching to find the answer, and nothing quite seemed to fit, or was obsolete, or was deprecated, or was vague. So I'll ask on the list. I have

Re: clearing feedback messages on Ajax upload

2014-11-13 Thread Garret Wilson
. Garret On 11/13/2014 8:39 PM, Martin Grigorov wrote: On Fri, Nov 14, 2014 at 12:36 AM, Garret Wilson gar...@globalmentor.com wrote: I actually mistyped; I greatly prefer option A, not B, below. So Martin, your suggestion sounds good. My JavaScript is great, but my JQuery is not so hot. I

Re: programmatic resources lookup

2015-12-24 Thread Garret Wilson
On 12/24/2015 9:39 AM, Garret Wilson wrote: ... The use of StringResourceModel as you provided almost solved my problem, but not quite. When calling from MyPage.java, I had to add "this" to the constructor in order for it to pick up resources in the MyPage.properties files. P.S. It

programmatic resources lookup

2015-12-23 Thread Garret Wilson
I've been away from Wicket for a year, working on other areas of my client's code. I'm doing a pass by to add i18n to a page. I have a MyPage.properties file with all sorts of properties. I have lots of tags in MyPage.html. But how do I manually look up one of these values from the

Re: programmatic resources lookup

2015-12-24 Thread Garret Wilson
del("success.message").setParameters(fooBar).getString()); Have fun Sven On 24.12.2015 01:11, Garret Wilson wrote: I've been away from Wicket for a year, working on other areas of my client's code. I'm doing a pass by to add i18n to a page. I have a MyPage.properties file with all so