Re: NullPointerException in Page constructor

2013-03-26 Thread Thomas Götz
Please post the code of MasterPage and HomePage, or at least MasterPage#isProtectedComponentAction. -Tom On 26.03.2013, at 15:04, jchappelle jchappe...@4redi.com wrote: Sure thing. Obviously the last two methods are getting in to my code but this will let you see how it gets there.

Re: Question about name suffix that wicket appends to ResourceReferences

2013-03-22 Thread Thomas Götz
Please have a look at FilenameWithVersionResourceCachingStrategy. -Tom On 22.03.2013, at 14:01, Pointbreak pointbreak+wicketst...@ml1.net wrote: When rendering the header items for packeded resource references, wicket appends a suffix like -ver-1363953702887 to the name of the resource.

Re: Style question: onInitialize() vs. onBeforeRender()

2013-02-20 Thread Thomas Götz
Note the difference between onInitialize() and onBeforeRender() as stated in the JavaDoc: onInitialize() : ...This method is invoked once per component's lifecycle … onBeforeRender(): Called just before a component is rendered. Meaning: onBeforeRender() is called upon *each* request whereas

Re: Eclipse or IntelliJ

2013-02-19 Thread Thomas Götz
IntelliJ currently costs €179 (personal license). It allows me to work *way* more effectively (on a Mac) than with Eclipse, which I find cluttered, slow, non-intuitive and simply not supporting my work style/flow. Say you gain 10 minutes per day when using IntelliJ and say you charge 60€/h:

Obervation with ajax links and multible tabs

2013-01-30 Thread Thomas Götz
I observed a the following phenomenon: - I have a blank WebPage with just a single AjaxLink on it - I load this page in two browser tabs - I click on link in tab1: fine - ajax call triggered - I change to tab2 and click link - no ajax call, instead the whole page is reloaded, if I click the

Re: Obervation with ajax links and multible tabs

2013-01-30 Thread Thomas Götz
Ok thanks for that info! -Tom On 30.01.2013, at 12:05, Martin Grigorov mgrigo...@apache.org wrote: Hi, Yes, this is expected behavior. Each page has render counter ( https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/Page.java#L123) that is used

Re: Obervation with ajax links and multible tabs

2013-01-30 Thread Thomas Götz
/apache/wicket/Page.java#L123) that is used to detect that a page is not stale. I'll move this documentation to the getter method because I see it is not visible at the moment in our javadocs. On Wed, Jan 30, 2013 at 11:53 AM, Thomas Götz t...@decoded.de wrote: I observed a the following

Re: Obervation with ajax links and multible tabs

2013-01-30 Thread Thomas Götz
in tab1 will close it in tab2 as well. Ahm, well … yes! Interesting, but some folks might call this overengineering, not that I know somebody of those guys personally ;-) -Tom On Wed, Jan 30, 2013 at 12:30 PM, Thomas Götz t...@decoded.de wrote: My problem with this currently

Re: Obervation with ajax links and multible tabs

2013-01-30 Thread Thomas Götz
On 30.01.2013, at 13:25, Martin Grigorov mgrigo...@apache.org wrote: OK, you didn't buy it. I'm just looking for testers for Native WebSocket ;-) I nearly did! At least, I thought about it for some minutes ;-) Simpler solution: use AjaxNewWindowNotifiyingBehavior and when onNewWindow() is

Re: Configure AjaxRequestAttributes globally?

2013-01-09 Thread Thomas Götz
file a ticket for improvement. On Wed, Jan 9, 2013 at 1:13 AM, Thomas Götz t...@decoded.de wrote: Is there a way to manipulate/configure AjaxRequestAttributes globally (in Wicket 6.x)? My usecase: in every AJAX request I want to include some dynamicExtraParameters, i.e. client side

Configure AjaxRequestAttributes globally?

2013-01-08 Thread Thomas Götz
Is there a way to manipulate/configure AjaxRequestAttributes globally (in Wicket 6.x)? My usecase: in every AJAX request I want to include some dynamicExtraParameters, i.e. client side information. Or is the only way to do this to hook into one of the global ajax channels (e.g.

Re: Select2Choice dropdown box is not appeared in correct position

2013-01-02 Thread Thomas Götz
Currently analyzing. I found out that if you do not add the datepicker then the select2 component is displayed correctly … -Tom On 21.12.2012, at 03:36, Madasamy mcruncher madas...@mcruncher.com wrote: Here i am attached quickstart project. To recreate problem to follow steps 1.

Re: Select2Choice dropdown box is not appeared in correct position

2013-01-02 Thread Thomas Götz
Everything works fine if you use the current version of wiquery-jquery-ui (6.2.0) … -Tom - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: Select2Choice dropdown box is not appeared in correct position

2012-12-10 Thread Thomas Götz
You need to show us some more code if we should help you. As everything is fine in your quickstart - as you mentioned - the problem presumably seems to be somewhere in you application, either some css or javascript issue as I suppose. Try to reproduce and isolate it or show us some more.

Re: Select2Choice dropdown box is not appeared in correct position

2012-12-06 Thread Thomas Götz
Strange, the select2-with-searchbox class is added by select2.js whenever the search input is shown: //add select2-with-searchbox to the container if search box is shown $(this.dropdown, this.container)[showSearchInput ? addClass : removeClass](select2-with-searchbox); Do you get any

Re: Read Twitter tweets

2012-12-04 Thread Thomas Götz
Ahm, sure: just go to http://twitter.com or use INSERT_YOUR_FAVORITE_TWITTER_CLIENT_HERE ;-) SCNR, -Tom On 04.12.2012, at 15:57, ronny.v...@consult.nordea.com wrote: Hi People Any experience/recommendation on subject? Thanks in advance Regards /Ronny

Re: select2 integration -Duplicate(selected) value are appear in drop down box

2012-12-03 Thread Thomas Götz
I can't detect anything wrong with your implementation on first sight. Is it possible that you can reproduce the described behavior in a Quickstart? -Tom On 01.12.2012, at 03:09, Madasamy mcruncher madas...@mcruncher.com wrote: FooProvider implementation is public class FooProvider

Re: Setting focus in a form in a ModalWindow

2012-12-03 Thread Thomas Götz
What about this: Form myForm = new Form(form); add(myForm); final Component myComponentToFocus = ...; myForm.add(myComponentToFocus); final ModalWindow modalWindow = new ModalWindow(modal) { @Override public void show(AjaxRequestTarget target) { super.show(target);

Re: select2 integration -Duplicate(selected) value are appear in drop down box

2012-11-29 Thread Thomas Götz
Can you please post your FooProvider implementation? -Tom On 30.11.2012, at 05:31, Madasamy mcruncher madas...@mcruncher.com wrote: we are using select2 version 2.0 in our application. Select2MultiChoice field are using for select a multiple value. here we set the maximumselectionsize

View and edit panel

2012-11-28 Thread Thomas Götz
Hi there, I'm currently implementing a panel that is used for viewing and editing of some entity. I wonder if there is an elegant solution for this. The situation: all my view/edit panels have a common abstract parent class (Panel), providing some general markup, i.e. I'm using wicket:extend

Re: Force Ajax onClick event on empty a

2012-11-23 Thread Thomas Götz
Ajax works also with empty tags, but your link does not receive click events because of the surrounding span (which gets the click events). Try this: a wicket:id=link class=myIcon/a .myIcon { background: url(...); display: inline-block; height: XXXpx; width: YYYpx; } Cheers,

Re: how to get the listview's dropdownchoice value

2012-11-19 Thread Thomas Götz
ddlmodel.getObject()? -Tom On 20.11.2012, at 05:24, david.li lxw_fi...@hotmail.com wrote: the code like this: ListString selection = Arrays.asList(A, B); form.add(new ListView(lis, selection) { @Override protected void populateItem(ListItem item) { List

Re: Distinguish AjaxButton from Button in Final HTML

2012-10-31 Thread Thomas Götz
What is your usecase, why do you need to know this by looking at the generated HTML? -Tom On 31.10.2012, at 18:24, eugenebalt eugeneb...@yahoo.com wrote: Is there a way to tell, just by looking at the rendered HTML, whether the component was a Wicket AjaxButton or a Wicket Button?

Re: captcha show different strings

2012-10-09 Thread Thomas Götz
The string is only equal within the same session, meaning: upon simple page reload it stays the same. If you start a new session (either be opening a new browser or by simply deleting the '?1' from the url) you will get a fresh new string. Cheers, -Tom On 09.10.2012, at 18:47, Anna

Re: sicket 6 beta3 - wicket 6

2012-09-27 Thread Thomas Götz
Please show us some code or create a Quickstart that demonstrates the problem, else it will be very hard to help you. On 27.09.2012, at 14:23, Douglas Ferguson the...@gmail.com wrote: I just tried to upgrade from beta3 to wicket 6 and one of my main pages blows up with a vengeance. It's

Re: Auto PageParameters from a POJO?

2012-09-18 Thread Thomas Götz
Roll your own, e.g. using commons BeanUtils: import junit.framework.Assert; import org.apache.commons.beanutils.BeanUtils; import org.apache.wicket.request.mapper.parameter.INamedParameters; import org.apache.wicket.request.mapper.parameter.PageParameters; import org.junit.Test; import

Re: Is dataview/table with multiple rows possible?

2012-09-17 Thread Thomas Götz
Please have a look at http://www.wicket-library.com/wicket-examples/repeater -Tom On 17.09.2012, at 20:37, Delange delan...@telfort.nl wrote: Hi, I need a dataview/table with multipe rows One row is no problem, so who can help me with an example with 2 rows?

wicket-select2 as AutoCompleteTextField replacement

2012-09-12 Thread Thomas Götz
I want to use wicket-select2 as a replacement for Wicket's AutoCompleteTextField. Is it somehow possible to accept user input that is not contained in the list of choices? Say, my choices list returns [A, B, C] but user may also enter D in the textfield. How can I achieve this? -Tom

Re: wicket-select2 as AutoCompleteTextField replacement

2012-09-12 Thread Thomas Götz
Ok, will try that, thanks! -Tom On 12.09.2012, at 17:23, Igor Vaynberg igor.vaynb...@gmail.com wrote: you need to define your own createSearchChoice function and pass it to the config. see the docs on the demo site. -igor On Wed, Sep 12, 2012 at 2:33 AM, Thomas Götz t...@decoded.de

Re: Wicket 1.5 migration questions

2012-09-04 Thread Thomas Götz
Take a look at the migration guide, this will answer some (if not all) of your questions: https://cwiki.apache.org/WICKET/migration-to-wicket-15.html -Tom On 04.09.2012, at 02:36, Alec Swan alecs...@gmail.com wrote: Hello, I finally decided to bite the bullet and migrate to Wicket 1.5.

Re: Wicket 1.5 migration questions

2012-09-04 Thread Thomas Götz
Please see my inline comments. Cheers, -Tom On 04.09.2012, at 02:36, Alec Swan alecs...@gmail.com wrote: * How to implement HybridUrlCodingStrategy in 1.5? Please have a look at http://wicketinaction.com/2011/07/wicket-1-5-mounting-pages/ * I saw a ticket related to putClassAlias,

Re: Wicket 1.5 migration questions

2012-09-04 Thread Thomas Götz
I didn't get your usecase exactly yet, but maybe this will help you: http://wicketinaction.com/2011/07/wicket-1-5-mounting-resources/ Cheers, -Tom On 04.09.2012, at 17:33, Alec Swan alecs...@gmail.com wrote: I saw the link explaining how to migrate

Re: Performance tuning Wicket[1.5]...

2012-08-31 Thread Thomas Götz
Hm, Java leap second bug? http://blog.wpkg.org/2012/07/01/java-leap-second-bug-30-june-1-july-2012-fix/ -Tom On 31.08.2012, at 12:19, nino martinez wael nino.martinez.w...@gmail.com wrote: No what I meant was that the system er performing as good as it can, without clustering etc. There

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

Re: override wicket mark up

2012-08-30 Thread Thomas Götz
If you extend a Component/Page and want to provide a different markup you cannot change the component hierarchy, so it's not possible to insert some container (in your case adminGroupTabs) into the tree. -Tom On 30.08.2012, at 05:05, ramlael grambab...@gmail.com wrote: Hi Friends, I

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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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

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: 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.

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: 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.

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.

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: 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

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: 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

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

  1   2   >