Prettier URLs for ResourceReference images

2010-03-12 Thread Thomas Götz
Is there a way to have prettier URLs when including images that are referenced with a ResourceReference? When I add an image like that: Image image = new Image(image, new ResourceReference(some.package.name.and.Class.class, my_image.gif)); add(image); ... this results in a rather technical URL

Re: Prettier URLs for ResourceReference images

2010-03-12 Thread Thomas Götz
Thanks, you saved my day ;-) -Tom On 12.03.2010 at 22:35 Igor Vaynberg wrote: see sharedresources#putclassalias -igor On Fri, Mar 12, 2010 at 1:23 PM, Thomas Götz t...@richmountain.de wrote: Is there a way to have prettier URLs when including images that are referenced

Re: Prettier URLs for ResourceReference images

2010-03-13 Thread Thomas Götz
do this with reflection (iterate over each class in a given package and assign alias), but this is not very nifty ;-) -Tom Am 12.03.2010 um 22:35 schrieb Igor Vaynberg: see sharedresources#putclassalias -igor On Fri, Mar 12, 2010 at 1:23 PM, Thomas Götz t...@richmountain.de wrote

Re: Prettier URLs for ResourceReference images

2010-03-13 Thread Thomas Götz
: ... Image image = new Image(image, new AutoAliasResourceReference(...)); On Sat, 2010-03-13 at 10:47 +0100, Thomas Götz wrote: Well ok, this is helpful. But: what do you do if you have a lot of embedded resources referenced from a lot of different components? Do I have to put an alias

How to give feedback in long-running operation within AjaxButton.onSubmit()?

2010-04-08 Thread Thomas Götz
Problem: I have an AjaxButton that triggers a long-running operation when clicked. I want to give feedback (in form of a javascript message) upon partial completion of the operation, therefore I am using a jQuery notifications plugin (http://www.programmingmind.com/contributions). So, what I

Re: How to give feedback in long-running operation within AjaxButton.onSubmit()?

2010-04-08 Thread Thomas Götz
(CharSequence script) { return YOUR JAVASCRIPT + script; } }; } On Thu, Apr 8, 2010 at 3:43 PM, Thomas Götz t...@richmountain.de wrote: Problem: I have an AjaxButton that triggers a long-running operation when clicked. I want to give feedback (in form of a javascript message) upon

Re: How to give feedback in long-running operation within AjaxButton.onSubmit()?

2010-04-09 Thread Thomas Götz
Thanks for all the hints so far, they are really helpful but ;) Well, I don't want to have busy indicators on different components, I'm looking for a way to display status messages (like eg with jGrowl) during the long-running process (triggered by AjaxButton). I guess the only way to

Re: How to give feedback in long-running operation within AjaxButton.onSubmit()?

2010-04-09 Thread Thomas Götz
Ok, but this is *not* what I want to achieve, beggin' your pardon ;-) The first messages should not display when starting the operation, but when a certain sub-task is finished. Say, I iterate over a list in the operation, and after each cycle I'd like to display a jGrowl message ... -Tom

Re: How to give feedback in long-running operation within AjaxButton.onSubmit()?

2010-04-09 Thread Thomas Götz
Hi Ernesto, this sounds like a viable solution, I'd be glad if you could provide me with some more details (e.g. code samples, if available). -Tom Am 09.04.2010 09:39, schrieb Ernesto Reinaldo Barreiro: Hi Tom, What I do, for instance, when exporting files to PDF, Excel, etc, is start

Re: How to give feedback in long-running operation within AjaxButton.onSubmit()?

2010-04-09 Thread Thomas Götz
have to watch session expiration. This type of polling, without end, will keep sessions alive indefinitely. I don’t have a cut and paste code, but look at AbstractAjaxTimerBehavior. tim -Original Message- From: Thomas Götz [mailto:t...@richmountain.de] Sent: Friday, April 09, 2010 12:44 AM

Re: How to give feedback in long-running operation within AjaxButton.onSubmit()?

2010-04-09 Thread Thomas Götz
Thanks! -Tom Am 09.04.2010 10:55, schrieb Ernesto Reinaldo Barreiro: Hi Tom, Take a look at [1]...[4]. There I'm creating a thread each time the long running process is launched but maybe it would be more correct to use a thread pool or use scheduler like quartz for this task. Feel free

Re: IE6 issue regarding Wicket JS and Ajax

2010-04-09 Thread Thomas Götz
And what is the best argument to drive someone to update his browser? To stop supporting legacy IE6, SCNR ;-) -Tom On 09.04.2010 at 14:09, James Carman wrote: Yeah, I think telling him that IE6 is dead isn't quite accurate: http://www.w3schools.com/browsers/browsers_stats.asp Yes, it's

SignInPage as panel in an AuthenticatedWebApplication?

2010-04-24 Thread Thomas Götz
Is there an easy way to use a panel for signing in when using an application class that extends AuthenticatedWebApplication? The normal Wicket behaviour is that the user gets forwarded to a dedicated signin-page. I'd prefer to use a modal window (displaying a login panel), but

Math captcha with Wicket?

2010-05-03 Thread Thomas Götz
Did anyone ever integrate some kind of math capture with Wicket (please solve the following simple equation ...)? How would I do this, someone got a code pointer for me? -Tom - To unsubscribe, e-mail:

Re: Math captcha with Wicket?

2010-05-04 Thread Thomas Götz
Thanks for your input, Igor! Looks nice, but I'd also like to have that as a rendered image, rather than plain text (security risk?). -Tom Igor Vaynberg wrote: off the top of my head - To unsubscribe, e-mail:

Wicket, IntelliJ and xml resource bundles

2010-05-06 Thread Thomas Götz
Any IntelliJ users out there that use Wicket and xml resource bundle files? I have the problem, that whenever I use something like: wicket:message key=foosome text/wicket:message in an html file, IntelliJ complains about not being able to resolve the property key. It works when using

Re: Math captcha with Wicket?

2010-05-06 Thread Thomas Götz
nino martinez wael schrieb: http://java.sun.com/docs/books/tutorial/2d/overview/rendering.html Well, tanks ;-) I was hoping to find some ready-to-be-used library/components that already does that ... -Tom - To

Re: Wicket, IntelliJ and xml resource bundles

2010-05-06 Thread Thomas Götz
No, I'm not currently using any Wicket plugin. -Tom Nick Heudecker schrieb: The Wicket plugin for IDEA doesn't support XML property bundles. On Thu, May 6, 2010 at 8:32 AM, James Carman jcar...@carmanconsulting.comwrote: Are you using a Wicket plugin? On Thu, May 6, 2010 at 10:06 AM,

Re: Math captcha with Wicket?

2010-05-06 Thread Thomas Götz
Thanks for the pointer! -Tom Josh Glassman schrieb: Take a look at http://wicket.apache.org/docs/1.4/org/apache/wicket/extensions/markup/html/captcha/CaptchaImageResource.html You might need to override some of it, or make your own customized version to get the text and look you want.

Re: Wicket, IntelliJ and xml resource bundles

2010-05-06 Thread Thomas Götz
You are right, I just thought there might be a solution for this anyway, some plugin that I don't know yet maybe (be it Wicket specific or for general use with IntelliJ/I18N/xml-files). -Tom James Carman schrieb: Then the stuff you're seeing doesn't have anything to do with Wicket. It's

Re: wicketstuff-repo

2010-06-17 Thread Thomas Götz
Any information on if and when wicketstuff will be back again? This is breaking our build since days now which is no fun ;-) We are using several non-core artifacts and building them from source is not a very desireable solution. Cheers, -Tom - Ursprüngliche Nachricht - Von:

Re: wicketstuff-repo

2010-06-17 Thread Thomas Götz
manager, or nexus or artifactory if you want more. Martijn On Thu, Jun 17, 2010 at 10:29 AM, Thomas Götz t...@richmountain.de wrote: Any information on if and when wicketstuff will be back again? This is breaking our build since days now which is no fun ;-) We are using several non

Strange problem with I18N keys in xml resource bundle

2010-07-20 Thread Thomas Götz
I have a strange problem with an I18N key which is stored in an xml resource bundle. I try to set the following keys for a german translation: - PagingNavigator.first - PagingNavigator.previous - PagingNavigator.next - PagingNavigator.last - PagingNavigator.page I noticed that wicket already

Re: Strange problem with I18N keys in xml resource bundle

2010-07-20 Thread Thomas Götz
On 20.07.2010 10:53, Ernesto Reinaldo Barreiro wrote: Maybe because the key should be PagingNavigation.page? Ha! Nice one, thanks ;-) The naming is a little bit inconsistent IMHO. -Tom - To unsubscribe, e-mail:

Re: Strange problem with I18N keys in xml resource bundle

2010-07-20 Thread Thomas Götz
On 20.07.2010 12:40, Ernesto Reinaldo Barreiro wrote: Tomas, It might be because PagingNavigation.page is read from within PagingNavigation component. Maybe it is consistent in the sense that it refers to the component using the resource. I don't know if a convention is followed for these

Possible bug in HttpsRequestCycleProcessor?

2010-09-16 Thread Thomas Götz
In HttpsRequestCycleProcessor, line 214 (Wicket 1.4.10): Session.get().bind(); With the comment that the session needs to be persisted before redirecting to https. But this is called before checking if a redirect is necessary or not (line 217, request could already be https). Result: no

Re: Possible bug in HttpsRequestCycleProcessor?

2010-09-16 Thread Thomas Götz
Ah, I found https://issues.apache.org/jira/browse/WICKET-2629 -Tom On 16.09.2010 10:52, Thomas Götz wrote: In HttpsRequestCycleProcessor, line 214 (Wicket 1.4.10): Session.get().bind(); With the comment that the session needs to be persisted before redirecting to https. But this is called

Re: Automatic submit of form (AjaxFormSubmitBehavior)

2010-09-21 Thread Thomas Götz
On 21.09.2010 17:01, Gast Thorsten wrote: I have a form with a AjaxFormSubmitBehavior. Is it possible to submit this form automatically after the rendering of the page is finished. Just curious: why do you want to submit a form without any manually input/changed data? -Tom

Re: Register feedback messages

2010-12-08 Thread Thomas Götz
Hi, please see https://issues.apache.org/jira/browse/WICKET-2986 -Tom Stefan Droog wrote: Hi, Just to be curious: Does someone know why the error method has another signature than the info/fatal/final methods? And why don't they except IModelString objects instead of

Localized mount points for BookmarkablePages?

2010-12-23 Thread Thomas Götz
Hi, is it possible to have localized mount points for BookmarkablePages? Example: I have a BookmarkablePage GeneralPage.java which should be available under http://my.domain.com/General and http://my.domain.com/Allgemein (german) ... depending on the current locale. Is this possible? If yes,

Re: Localized mount points for BookmarkablePages?

2010-12-23 Thread Thomas Götz
to the mount-annotation. Same can be done on mounting programmatically. Regards Hans Am 23.12.2010 um 12:29 schrieb Thomas Götz t...@richmountain.de: Hi, is it possible to have localized mount points for BookmarkablePages? Example: I have a BookmarkablePage GeneralPage.java

Problem with Wicket sessions when using Apache mod_proxy

2011-04-24 Thread Thomas Götz
Hi there! I have the following setup: - an Apache httpd (2.0.x), running on port 80 - a Tomcat (6.x) running on port 8080 The Wicket webapp MyApp is running in Tomcat as the only webapp on that server. I have a registered domain www.mydomain.com, so I want everything hitting www.mydomain.com

Re: Problem with Wicket sessions when using Apache mod_proxy

2011-04-24 Thread Thomas Götz
Isammoc OFF wrote: So, running Tomcat only (on port 80) without Apache2 does not seem an option to me. What about using mod_jk ? Well, what stands against mod_proxy? It seems to be working for me as described earlier. I only have problems with it when I try to forward '/' via ProxyPass.

Re: Problem with Wicket sessions when using Apache mod_proxy

2011-04-24 Thread Thomas Götz
Thomas Götz wrote: - there's *always* a jsessionId parameter attached to the URL (not only on the first request), why? Ok, problem seems solved, adding a ProxyPassReverseCookiePath directive did the trick. Cheers, -Tom

java.util.ConcurrentModificationException in Component.internalPrepareForRender

2011-09-14 Thread Thomas Götz
Hi, I am currently migrating an application to Wicket 1.5.0 (from Wicket 1.4.17) and experience the following error: ERROR - DefaultExceptionMapper - Unexpected error occurred java.util.ConcurrentModificationException at

Re: java.util.ConcurrentModificationException in Component.internalPrepareForRender

2011-09-14 Thread Thomas Götz
On 14.09.2011, 16:48 Martin Grigorov wrote: Can you reproduce it with a quickstart ? On Wed, Sep 14, 2011 at 5:44 PM, Thomas Götz t...@richmountain.de wrote: Hi, I am currently migrating an application to Wicket 1.5.0 (from Wicket 1.4.17) and experience the following error: ERROR

Re: Dynamically choosing component to add

2011-11-29 Thread Thomas Götz
If you only need one TextField that should be displayed upon click on a button: final TextField textField = new TextField(textField, new Model()); textField.setVisible(false); add(textField); AjaxButton button = new AjaxButton(button) { @Override protected void onSubmit(AjaxRequestTarget

Re: Dynamically choosing component to add

2011-11-29 Thread Thomas Götz
I created a short example (Quickstart): http://cl.ly/3u2o260z1b3F441T1T1M You need to care for your models yourself (for the TextFields), just an example how to dynamically add components. Cheers, -Tom Seçil Aydın wrote: Thomas and Hans, thank you for your responses. Mine issue is a

Re: logging the page class name

2011-11-29 Thread Thomas Götz
I would create my own base Page (where all other pages extend from) and add the desired logging statement there (onConfigure(), onBeforeRender()). Most of the times you already have a common base page anyway … Cheers, -Tom fachhoch wrote: I want to log all the pages users are viewing

Re: tabs are displayed in a list when using tabbed panel

2011-11-30 Thread Thomas Götz
Yes, you need to provide your own styling (CSS file). Cheers, -Tom mohan mohan wrote: Hi, I am trying to use AjaxTabbedPanel. I added 2 tabs to it. In browser they are displayed 1 under another, not side by side. And no styling. I have seen sourcecode. It seems css classes were

Re: AJAX requests on a mounted page with expired session

2011-12-14 Thread Thomas Götz
the page ID in the URL would respond an expired page. Pedro Henrique Oliveira dos Santos 2011/12/14 Thomas Götz t...@decoded.de (mailto:t...@decoded.de) The situation: I have a mounted page containing several AJAX components. Whenever the session expires and an AJAX request

Re: AJAX requests on a mounted page with expired session

2011-12-14 Thread Thomas Götz
a StalePageException based on custom rules. Don't know if it's the best option. Pedro Henrique Oliveira dos Santos 2011/12/14 Thomas Götz t...@decoded.de (mailto:t...@decoded.de) Can you give an example? AFAIK the pageId *is* already encoded in the URL bei Wicket, i.e. the URL

Re: AJAX requests on a mounted page with expired session

2011-12-14 Thread Thomas Götz
dos Santos 2011/12/14 Thomas Götz t...@decoded.de (mailto:t...@decoded.de) Don't know either, but since I don't have any other idea at the moment: how would I do this? Cheers, -Tom Pedro Santos wrote: Bleh, my bad, PageProvider will give you a fresh page since

Wicket 6.0 and Javascript Event Registration question

2012-01-30 Thread Thomas Götz
Just a thought about the upcoming changes to Wicket's Javascript event registration mechanism in Wicket 6.0 (instead of inline JS events): we have several Behaviors that provide Javascript in which we register to JS events, e.g. 'onblur'. Now I have a Component that additionally has an

Re: Wicket 6.0 and Javascript Event Registration question

2012-01-30 Thread Thomas Götz
the DOM is ready, so you must be careful that your Mootools code is run after Wicket's. Better try with a simple app and see how it behaves. On Mon, Jan 30, 2012 at 5:49 PM, Thomas Götz t...@richmountain.de (mailto:t...@richmountain.de) wrote: Just a thought about the upcoming changes

Re: wizard starting background task

2012-02-09 Thread Thomas Götz
N. Metzger wrote: 1) I start the background task in a lazy load panel, but haven't figured out yet how to display a progress bar while the lazy load is executing. You might also take a look at http://wicket.visural.net/examples/submitters (hit the Calculate X*Y (Modal) button). Cheers,

Re: wizard starting background task

2012-02-09 Thread Thomas Götz
Simply implement your own FinishButton, e.g. extend AjaxButton and put your logic in it's unSubmit(…) method. Therefore you will have to override Wizard#newButtonBar(final String id) and provide your own impl, but WizardButtonBar does not have very much logic, so that's acceptable IMHO.

Re: Wicket authentication: how to store user?

2012-03-12 Thread Thomas Götz
That's not always feasible - in respect to user experience. Just think of some order process where e.g. you are asked to log in when doing a checkout (of your shopping cart). -Tom Hielke Hoeve wrote: Webapplications should always invalidate the wicket session before authenticating.

Check if FormComponent is valid in later request

2012-03-14 Thread Thomas Götz
Hi! I have the following situation: I have a form containing several FormComponents and Validators, submitted via Ajax. Then I have an AjaxButton on the same page (outside the form) which triggers some backend logic. But it should only do so if the mentioned form had no validation errors

Re: Check if FormComponent is valid in later request

2012-03-14 Thread Thomas Götz
...@gmail.comwrote: if the form is invalid your button's onsubmit() wont get fired... -igor On Wed, Mar 14, 2012 at 1:53 PM, Thomas Götz t...@decoded.de wrote: Hi! I have the following situation: I have a form containing several FormComponents and Validators, submitted via Ajax. Then I have

Re: Language setting from browser

2012-03-15 Thread Thomas Götz
From the JavaDoc of org.apache.wicket.Session: * libLocale /b- A session has a Locale property to support localization. The Locale for a * session can be set by calling {@link Session#setLocale(Locale)}. The Locale for a Session * determines how localized resources are found and loaded.

rawInput, page reload and error messages

2012-04-11 Thread Thomas Götz
Hi! I have the following situation (Wicket 1.5.5): - a Form with a TextFieldString with some Validator - you input invalid data and submit - error message, fine. - (invalid) rawInput is shown in the TextField, fine. - now I do a page reload, invalid rawInput still in the TextField, but no error

Re: Include Component

2012-05-02 Thread Thomas Götz
(markupStream, openTag, content); } } Thomas Götz IT Consultant/Freelancer Kaulardstraße 70a 50354 Hürth/Efferen phone +49 151 40420203 mail tgo...@decoded.de web www.decoded.de On 02.05.2012 at 17:08 Bruce Pease wrote: Sorry, that's Wicket version 4.1.15

Re: Unusual problem is coming in rendering component

2012-05-03 Thread Thomas Götz
Please have a look at the JavaDoc of org.apache.wicket.model.CompoundPropertyModel. Other interesting reads: https://cwiki.apache.org/WICKET/working-with-wicket-models.html#WorkingwithWicketmodels-CompoundPropertyModels http://www.mkyong.com/wicket/wicket-compoundpropertymodel-example/ Cheers,

Re: How to prevent duplicates when using HeaderContributor

2012-05-03 Thread Thomas Götz
Please see the following quickstart for an example: http://cl.ly/0w421o340J2e2w330Y0j Cheers, -Tom On 03.05.2012 at 15:17 Christoph Leiter wrote: Hi, the Javadoc of IHeaderResponse#renderString says: Renders an arbitrary string to the header. The string is only rendered if the same

Re: Wicket 6.0.0-beta1: RangeValidator Issue (NPE)

2012-05-10 Thread Thomas Götz
I can confirm this, see this quickstart: http://decoded.de/wicket-quickstart.zip The NPE only occurs if there is a FeedbackPanel on the page. If you take it out - no exception. Besides, there is no WARN log if you are missing a FeedbackPanel and there are messages to be rendered, bug or

Re: Wicket 6.0.0-beta1: RangeValidator Issue (NPE)

2012-05-10 Thread Thomas Götz
My bad: https://issues.apache.org/jira/browse/WICKET-4548 -Tom On 10.05.2012 at 09:38 Martin Grigorov wrote: Guys, Please use Jira for bug reports. On Thu, May 10, 2012 at 9:28 AM, Thomas Götz t...@decoded.de wrote: I can confirm this, see this quickstart: http://decoded.de/wicket

Re: Wicket 6.0.0-beta1: RangeValidator Issue (NPE)

2012-05-10 Thread Thomas Götz
Lol, first! Mine has WICKET-4548 ;) -Tom On 10.05.2012 at 09:50 Sebastien wrote: Hi Martin, Here we are: https://issues.apache.org/jira/browse/WICKET-4549 Sebastien. - To unsubscribe, e-mail:

Re: pageablelistview is giving out of memory exception while loading more than 70000 records wicket example

2012-05-14 Thread Thomas Götz
https://cwiki.apache.org/WICKET/detachable-models.html -Tom raju.ch wrote: - Can you please provide a sample of LoadableDetachModel? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands,

Re: How to change the properties file location in Wicket

2012-05-20 Thread Thomas Götz
Why do you need to change that? What is your usecase? -Tom On 20.05.2012 at 18:47 oliver.stef wrote: Hi Martin, Thank you for your help, but my problem is that i need to put my properties file in folder that is not next to the HTML and Java files. i need to change the look-up

Re: wicket 6 setting response page with page object and session expired error

2012-05-21 Thread Thomas Götz
Could you provide a quickstart that demonstrates this behavior? -Tom On 21.05.2012 at 09:56 kamiseq wrote: hej, I have a strange error. I have stateless page (A) with form on it. form contains email input. inside form's onSelect handler I create page (B) and pass email to its

Re: wicket 6 setting response page with page object and session expired error

2012-05-21 Thread Thomas Götz
Either this or upload it somewhere and post the link here. -Tom On 21.05.2012 at 16:25 kamiseq wrote: yes, can I send it directly to you in case userlist rejects attachment? pozdrawiam Paweł Kamiński kami...@gmail.com pkaminski@gmail.com __

Re: wicket 6 setting response page with page object and session expired error

2012-05-22 Thread Thomas Götz
On 22.05.2012 at 06:01 kamiseq wrote: step to reproduce 1. go to http://localhost:8080 and type any valid email (ie l...@oa.pl) and submit form 2. press accept and it will take you to third page 3. this should fail and show expire page error No, it doesn't. 3. works in your example, there

Re: DataTable and PagingNavigator problem

2012-05-22 Thread Thomas Götz
Could you please provide a quickstart that demonstrates your implementation? -Tom On 22.05.2012 at 17:54 Viliam Repan wrote: Hi, I probably found a bug in DataTable and PagingNavigator, or more likely I don't understand it correctly... I have page with one data table and two paging

Re: wicket 6 setting response page with page object and session expired error

2012-05-22 Thread Thomas Götz
I tested your quickstart from within the IDE by running Start.java. Models are meant to be passed around, so there's nothing wrong with it in general. And it's always (at least in 95% of cases I'd dare to say) preferable to passing Objects (beans). -Tom On 22.05.2012 at 18:55 kamiseq

Re: DataTable and PagingNavigator problem

2012-05-22 Thread Thomas Götz
. vilo On 05/22/2012 06:15 PM, Thomas Götz wrote: Could you please provide a quickstart that demonstrates your implementation? -Tom On 22.05.2012 at 17:54 Viliam Repan wrote: Hi, I probably found a bug in DataTable and PagingNavigator, or more likely I don't understand

Re: DataTable and PagingNavigator problem

2012-05-22 Thread Thomas Götz
The patch is yet only a proposal by me on how this might be fixed. Any of the committers might want to look at it before maybe ;-) As for the release date of the next version: I guess when it is ready ;-) -Tom On 22.05.2012 at 22:49 Viliam Repan wrote: Hi, I saw a patch already

Re: Make additional actions on click on external links

2012-05-28 Thread Thomas Götz
You could use e.g. jQuery event registration: $(#target).click(function() { alert(Handler for .click() called.); }); See http://api.jquery.com/click for more details. -Tom on 28.05.2012 at 11:09 cosmindumy wrote: Hello, How can I make additional actions on click event on external

Re: decorating html with wicket

2012-05-29 Thread Thomas Götz
I'm not convinced yet that this is really a good idea (how to deal with constructor arguments for validators? What is the advantage of having all in html effectively?) but as a starting point you could look at AbstractMarkupFilter (e.g. see how WicketRemoveTagHandler and other implementations

Re: decorating html with wicket

2012-05-29 Thread Thomas Götz
have wizards and they can show the mock up to third workers. When they are accepted, the programmers finish the work. Fernando Wermus. www.linkedin.com/in/fernandowermus On Tue, May 29, 2012 at 4:01 AM, Thomas Götz t...@decoded.de wrote: I'm not convinced yet

Re: Loop.populateItem() while migrating from Wicket 1.4 to 1.5

2012-05-31 Thread Thomas Götz
Could you please provide a quickstart? -Tom On 31.05.2012, 00:32 paulstar wrote: in Wicket 1.4, this works fine: this.form.add(new Loop(ccformfields, ccformfields.size()) { @Override protected void

Re: Is there a quick way to deselect all radio buttons in a group via an AJAX event?

2012-05-31 Thread Thomas Götz
What about using Javascript? e.g. jQuery: $('input:radio').attr('checked', false); or $('input[name=myRadio]:radio').attr('checked', false); -Tom On 31.05.2012 at 08:20 Chris Colman wrote: We have a button that, when clicked, should deselect ALL radio buttons in a separate radio

Re: Conditional Popup

2012-06-01 Thread Thomas Götz
Could you please provide a quickstart or post the interesting HTML and Java snippets? -Tom On 01.06.2012 at 15:24 hfriederichs wrote: Hello, I have a wicket PopupPage that answers a wicket link, but I don't want it to popup when certain conditions are not met. In that case I want an

Re: Conditional Popup

2012-06-01 Thread Thomas Götz
To create a quickstart normally costs me around 5-7 seconds (copy/paste is my friend) ;-) Isolating the problem is another question, right. But in your case this sound rather trivial. In my experience a lot of problems are solved easyly by creating a quickstart, in most cases because then I

Re: Conditional Popup

2012-06-01 Thread Thomas Götz
As an alternative, you could use an AjaxLink and push the popup-opener JS to teh frontend, then you could have your decision logic (wether to open it or not) in the backend (Wicket layer). -Tom - To unsubscribe, e-mail:

Re: Conditional Popup

2012-06-01 Thread Thomas Götz
I thought you might have some condition that you could evaluate in JS. This is the reason I asked for a short quickstart, it simply eases discussion. -Tom On 01.06.2012 at 19:19 hfriederichs wrote: I'm sorry, but I don't understand your code. My condition is in the Java/Wicket-layer, how

Re: Wicket page has a redirect loop

2012-06-01 Thread Thomas Götz
Hm, put a breakpoint in FragmentMarkupSourcingStrategy.java:143 and see what causes the NullPointerException. -Tom On 01.06.2012 at 19:08 paulstar wrote: Caused by: java.lang.NullPointerException at

Re: Conditional Popup

2012-06-04 Thread Thomas Götz
What about the AjaxLink alternative I already suggested? -Tom On 04.06.2012 at 09:35 hfriederichs wrote: No suggestions? Anyone? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands,

Re: Conditional Popup

2012-06-04 Thread Thomas Götz
On 04.06.2012 at 13:21 hfriederichs wrote: Thomas Götz-2 wrote As an alternative, you could use an AjaxLink and push the popup-opener JS to teh frontend, then you could have your decision logic (wether to open it or not) in the backend (Wicket layer). But, how would you do

Re: Component-specific javascript in Ajax-Calls

2012-06-04 Thread Thomas Götz
What about this? public class MyComponent extends Panel { public MyComponent(String id) { super(id); setOutputMarkupId(true); } @Override public void renderHead(IHeaderResponse response) { response.renderOnDomReadyJavaScript( $('# +

Re: Component-specific javascript in Ajax-Calls

2012-06-04 Thread Thomas Götz
… or you could put your Javascript code into a template, e.g. like that: MyComponent.js.tmpl: $('#${markupId} .ttr').tipTip({defaultPosition: 'right'}); // ... some long Javascript block …. and in MyComponent.java you'd have: --- public

Re: Conditional validation without overriding isRequired

2012-06-05 Thread Thomas Götz
Yes, you can also push the state instead of pulling it, which besides is preferrable in terms of efficiency (as onConfigure() is only called once per request whereas isVisible() is potentially called many time): TextFieldString textField = new TextFieldString(textField) { @Override

Re: Conditional validation without overriding isRequired

2012-06-05 Thread Thomas Götz
Argh, confused setVisible() with setRequired, my bad ;-) But nevertheless: call setRequiered(condition) in onConfigure(). -Tom Thomas Götz wrote: Yes, you can also push the state instead of pulling it, which besides is preferrable in terms of efficiency (as onConfigure() is only called

Re: add a component (submitLink) multiple times?

2012-06-13 Thread Thomas Götz
I don't know exactly what you are trying to do, but you could have a look at RepeatingView. -Tom On 13.06.2012 at 19:23 oliver.stef wrote: How can I add a component (submitLink) multiple times? like this: ListString categories = Arrays.asList(English, Japanese, ); for

Re: After 1 minute the Pagemap null is still locked by: Thread how to kill this request ?

2012-06-14 Thread Thomas Götz
Maybe you should think about an asynchronous approach, i.e. poll the state of your long-time-backend-operation e.g. by using an AjaxSelfUpdatingTimerBehavior. -Tom On 14.06.2012 at 15:51 fachhoch wrote: if my dboperation is pending and taking long time, there is now way I can call

Re: Detach Model Objects when user leaves page

2012-06-14 Thread Thomas Götz
How would you notice if the user leaves the page? If you have only Wicket controlled Links on your page then you could null your Repository data in their onclick() implementation (if you do a setResponsePage(someOtherPage). If there's also non-Wicket links on your page, well, you would probably

Re: on click on a label in a listview - onClicke method never used localy

2012-06-14 Thread Thomas Götz
Label does not have an onClick() method, so nobody will be calling your onClick() ;) If you want to attach AJAX behavior to the label you should do the following: final Label label = new Label(label, item.getModel()); label.add(new AjaxEventBehavior(click) { @Override protected void

Re: CompoundPropertyModel problem.. the values are not refreshing

2012-06-14 Thread Thomas Götz
Could you please provide a Quickstart that describes your problem? This will make it much easier for us to help you. -Tom - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:

Re: on click on a label in a listview - onClicke method never used localy

2012-06-14 Thread Thomas Götz
What exactly is not working? If you could provide a Quickstart it would be easier to help you. -Tom - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: Wicket 1.4 Remember Login WIth Cookie

2012-06-18 Thread Thomas Götz
Have a look at org.apache.wicket.util.cookies.CookieUtils#load(final String key). Cheers, -Tom - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: Determine session size for Wicket 1.5

2012-06-19 Thread Thomas Götz
Session.get().getSizeInBytes(); -Tom On 19.06.2012 at 13:03 Walter Rugora wrote: Hi there, for Wicket 1.3 I determine session size like this: RequestCycle.get().getSession().getSizeInBytes() But the RequestCycle underwent some changes and I cannot figure out how to do it for Wicket

Re: Sync up sessions

2012-06-20 Thread Thomas Götz
Great! And what would be your question, please? ;) -Tom Am Mittwoch, 20. Juni 2012 um 18:25 schrieb wicket user: Hi, we are using Wicket as a Presentation layer, so we need to sync up with the Session of the Business Layer framework, we kept this in the same WAR. -- View

Re: Wicket panel not getting refreshed completely

2012-06-21 Thread Thomas Götz
… e.g. your Label ('numberOfCommentLabel') uses a static model (a String), but should use an IModelString in order to be refreshable. -Tom On 21.06.2012, at 13:44, kshitiz wrote: Hi, I have a panel with ajax button (i.e. form) inside it. When I submit the form, not all of the

Re: Wicket panel not getting refreshed completely

2012-06-21 Thread Thomas Götz
Could you provide a Quickstart that demonstrates the problem? This will make it much easier for us to help you, thanks! -Tom On 21.06.2012, at 14:54, kshitiz wrote: Hi, I have tried out this: *Integer numberOfComments = commentDomainList.size(); Label

Re: java pojo/Bean to generate html (textfield, dropdown,radio buttons)

2012-07-04 Thread Thomas Götz
Nothing easier than that! MyBean bean = new MyBean(); System.out.println(bean.toHtmlWithFieldsAndValidationAndEverything()); Seriously: if you want us to help you should ask serious questions. Nobody will be able to explain how to automatically generate a HTML page from a POJO. You might as

Re: How to read message properties that has parameters into a program

2012-07-08 Thread Thomas Götz
Have a look at org.apache.wicket.model.StringResourceModel. -Tom On 08.07.2012, at 22:44, lang wrote: I have a program that's gonna send an email confirmation to a customer. The email text is stored in a property file. How can I read these values with substitution parameters? I'm

Re: How to force a page to re-render

2012-07-10 Thread Thomas Götz
What about this? Link link = new Link(link) { @Override public void onClick() { setResponsePage(new MyPage()); } }; -Tom On 10.07.2012, at 11:36, Anna Hunecke wrote: Hi, I'm trying to force a page to re-render everytime the user clicks the refresh button. Wicket

Re: Read POST based request from external site

2012-08-16 Thread Thomas Götz
This normally means that there *are* no POST parameters. Are you sure you're doing a POST request to your page, and not a GET? -Tom On 16.08.2012, at 12:16, tmaus loum...@yahoo.com wrote: I was looking up all available threads, but did not find an answer. I have an app deployed to a

Re: JGrowlBehavior

2012-08-16 Thread Thomas Götz
You could use Wicket's default ajax event (using the inter-component event API): https://cwiki.apache.org/WICKET/migration-to-wicket-15.html#MigrationtoWicket1.5-Defaultajaxevent If you don't want to react upon *each* ajax event you need to explicitly trigger an event, put some playload (e.g. a

Re: ObjectAutoCompleteBuilder in wicket 1.5.7 get is not a valid Serializable error.

2012-08-30 Thread Thomas Götz
Are all properties (fields) of HomePage$SearchOptions also Serializable? -Tom On 30.08.2012, at 03:17, Vignesh Palanisamy vign...@mcruncher.com wrote: while implementing Serializable also the same error came martin! On Wed, Aug 29, 2012 at 6:17 PM, Martin Grigorov

  1   2   >