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

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

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

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

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

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

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

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

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

<    1   2