Re: AjaxLazyLoadPanel in wicket 6

2013-12-17 Thread Sven Meier
Check Wicket's Ajax console for any output - is the request triggered to load the lazy load component? Sven On 12/17/2013 09:42 PM, Entropy wrote: Hi, it's me again, and I am still converting from 1.4.7 to 6.12. I think I am starting to get down to the last few errors. I have an

Re: Extending TextField to display Joda's LocalTime in HH:mm format

2013-12-18 Thread Sven Meier
Use a converter: http://wicket.apache.org/guide/guide/chapter11.html#chapter11_3 Regards Sven On 12/18/2013 04:40 PM, lucast wrote: Dear Forum, I am trying to have an input field in which user inserts a time of the day in HH:mm format. In some cases, the field could be already populated. I

Re: 1.4.7 app form does not submit on server when panel is not visible.

2013-12-19 Thread Sven Meier
That's too much code to dissect in an email. Create a quickstart please. Sven On 12/18/2013 07:29 PM, Entropy wrote: This is in one of our Wicket 1.4.7 apps that we have not converted yet. The problem does not happen in localhost test environments, but does happen on the server. Moreover,

Re: Question on role-based authorization

2013-12-20 Thread Sven Meier
AnnotationsRoleAuthorizationStrategy#check() looks good to me. Can you debug what's happening there in your case? Sven On 12/20/2013 01:53 PM, Boris Goldowsky wrote: I’m trying to use wicket-auth-roles (in Wicket 1.5.9) to make a component that is enabled only for logged-in users. In my

Re: Please remove the spam post from the wicket forum

2013-12-31 Thread Sven Meier
Nabble displays a 'not accepted yet' as long as it didn't receive the post from the list. For users (spammers) not subscribed to our mailing list, this means 'forever'. Sven On 12/31/2013 03:50 PM, Jeremy Thomerson wrote: The weird thing is that if you click on one of those posts it says

Re: Please remove the spam post from the wicket forum

2013-12-31 Thread Sven Meier
I think so, yes. Sven On 12/31/2013 05:09 PM, Jeremy Thomerson wrote: Are you saying that the spammers actually used the Nabble forum to post the message? On Tue, Dec 31, 2013 at 9:54 AM, Sven Meier s...@meiers.net wrote: Nabble displays a 'not accepted yet' as long as it didn't receive

Re: problem with stateless + onInitialize() + request listener + ListView

2014-01-01 Thread Sven Meier
Hi, if I read its javadoc correctly, #internalPrepareForRender(false) should not mark the page as rendered (thus the false parameter). If your link modifies the ListView's model, it should call #detach() on it. Otherwise it will show stale data on next rendering. This doesn't have anything

Re: Problem with FormTester and selection on dropDownChoice

2014-01-03 Thread Sven Meier
formTester.setValue(textField, FOO); This sets a value for textField in the next request. formTester.select(dropDownChoice, 0); This sets a value for dropDownChoice into the next request and starts request processing. The values for textField and dropDownChoice are store in the input of

Re: problem with stateless + onInitialize() + request listener + ListView

2014-01-03 Thread Sven Meier
); onBeforeRenderChildren(); setRequestFlag(RFLAG_BEFORE_RENDER_SUPER_CALL_VERIFIED, true); } Note the first line. This causes subsequent invocations of internalBeforeRender() to skip the relevant part. Greetings, Martin On Wed, Jan 1, 2014 at 6:33 PM, Sven Meier s...@meiers.net wrote: Hi, if I read its

Re: AjaxFormComponentUpdatingBehavior works only on first element in a ListView

2014-01-04 Thread Sven Meier
Check your markup for explicit html ids (not wicket ids): select id=foo wicket:id=foo... Remove them. Regards Sven On 01/04/2014 06:09 PM, Igor Dvorzhak wrote: I am attaching AjaxFormComponentUpdatingBehavior to a DropDownChoice element in a ListView which displays a hidden panel on

Re: Problem with FormTester and selection on dropDownChoice

2014-01-06 Thread Sven Meier
That should work. Can you create a quickstart? Sven On 01/06/2014 08:58 AM, Kev wrote: I think I don't understood. I try to create an other FormTester to perform the submit() like that: FooPage page = this.tester.startPage(FooPage.class); FormTester formTester =

Re: Problem with FormTester and selection on dropDownChoice

2014-01-06 Thread Sven Meier
Thanks for the quickstart. Sorry, I was wrong :(. When you select a dropDownChoice' value via FormTester#select(), this won't trigger a complete Form submit (as it would in the browser). Only the dropDownChoice is processed. The following should work: FooPage page =

Re: Problem with FormTester and selection on dropDownChoice

2014-01-06 Thread Sven Meier
.1842946.n4.nabble.com/file/n4663493/testWicket.zip Sven Meier wrote Thanks for the quickstart. Sorry, I was wrong :(. When you select a dropDownChoice' value via FormTester#select(), this won't trigger a complete Form submit (as it would in the browser). Only the dropDownChoice is processed

Re: UnsupportedCharsetException

2014-01-06 Thread Sven Meier
Yes, that could be improved. Sven On 01/06/2014 04:18 PM, Uwe Schaefer wrote: Hi Wicketeers, crawling our logs, we found the above exception as a result of a weird request that set the following headers on a GET request: Content-Type: text/html; charset=auto I don't know which UserAgent

Re: Why is getDisplayValue in getDisplayValue final?

2014-01-07 Thread Sven Meier
You have #resourceKey() and #postprocess() to override - what do you need more? Sven On 01/07/2014 03:37 PM, Oliver B. Fischer wrote: Hi, I just tried to customize EnumChoiceRenderer and to override getDisplayValue, but is final. Why? Can I submit a patch to remove final? Bye, Oliver

Re: TinyMce disappears with CryptoMapper

2014-01-07 Thread Sven Meier
Where's the quickstart? Sven On 01/07/2014 07:28 PM, jchappelle wrote: I have a quickstart now. The setResponsePage(new TinyMcePage()) seems to cause the issue. On the HomePage I have a tinymce and it displays fine. However if you click a link that does the setResponsePage and transition to a

Re: wicket jetty deployment issue

2014-01-08 Thread Sven Meier
What happens with chart in case of an error? You should add a fallback component in an error case. Sven On 01/08/2014 10:10 AM, Joost Verhagen wrote: Hi Martin, Thanks for your support! This is the constructor/snippit of the relevant class. As I said, it works when I run it from Eclipse. So

Re: TinyMce disappears with CryptoMapper

2014-01-08 Thread Sven Meier
Hi, tinymce loads some Javascript files dynamically, e.g. editor_template.js. wicketstuff-tinymce uses a custom request mapper with some magic to serve these files, see TinyMceRequestMapper.KNOWN_SEGMENTS. This won't work with the hashed paths created by CryptoMapper. Regards Sven On

Re: Fwd: AjaxButton does not get register to the wicket events , after it rendered by ajax request

2014-01-21 Thread Sven Meier
I'm assuming that, being generated in the this event registration code happens for all components that are added explicitly, but not for any components that are added dynamically by me. That assumption is wrong. Wicket will handle all event registration code automagically. Updating a parent

Re: How to add line breaks in the summary text of Wizard properties file

2014-02-06 Thread Sven Meier
See https://issues.apache.org/jira/browse/WICKET-4219 Sven On 02/06/2014 12:51 PM, dpmihai wrote: In Wicket 5 it was as easy as using br tags inside summary String. In Wicket 6 this simple way does not work anymore. Why? -- View this message in context:

Re: Memory leaks best practices

2014-02-06 Thread Sven Meier
Probably a class-loading issue: http://stackoverflow.com/questions/88235/dealing-with-java-lang-outofmemoryerror-permgen-space-error Sven On 02/06/2014 01:07 PM, Maxim Solodovnik wrote: Hello All, Recently we have deployed our project to wicket project to production server. And start getting

Re: Choice Renderers Display Issue After Submit

2014-02-07 Thread Sven Meier
I don't see a reason why this shouldn't work. Please create a quickstart showing the problem. Sven On 02/06/2014 10:47 AM, MissOvenMitts wrote: Hi guys! I'm using a ChoiceRenderer for the first time, and am having a slight problem with it. Any help would be *greatly* appreciated! I have a

Re: Choice Renderers Display Issue After Submit

2014-02-07 Thread Sven Meier
mail that everything is fine once the #equals() method is properly implemented. Martin Grigorov Wicket Training and Consulting On Fri, Feb 7, 2014 at 12:50 PM, Sven Meier s...@meiers.net wrote: I don't see a reason why this shouldn't work. Please create a quickstart showing the problem. Sven

Re: Wicket Wizzard Question / Custom Overview Bars

2014-02-10 Thread Sven Meier
Hi Patrick, usually a wizard has an overview on the left side: http://en.wikipedia.org/wiki/Wizard_%28software%29 Regards Sven On 02/10/2014 10:04 AM, Patrick Davids wrote: Hi Paul, thanx a lot for your detailed answer. :-) Helped much, but my primary question was, why the overviewbar is

Re: SpringBean and properties file.

2014-02-11 Thread Sven Meier
Hi, Wicket uses CGLib proxies, to proxy beans which are not referenced by their interface. This leads to the constructor being fired once for each injection. If you don't want this, declare the type of the @SpringBean member as an interface. Sven On 02/11/2014 08:46 PM, Entropy wrote:

Re: understanding looking for wicket:id

2014-02-14 Thread Sven Meier
With a wicket:id declared in Html markup, a corresponding component with the same id has to present as child. It doesn't matter when the child component is added: in the constructor or one of its super constructors (or even later). This does not have anything to do with markup inheritance.

Re: getting values from FormComponentPanel outside form.onSubmit()

2014-02-14 Thread Sven Meier
FormComponentPanel.getConvertedInput(), which in turns calls FormComponentPanel.convertInput(). Not true. See FormComponentPanel#onEvent() on how to properly process a single FormComponent. Regards Sven On 02/14/2014 06:14 PM, lucast wrote: Dear forum, I have implemented a

Re: double type text field - auto roundsoff

2014-02-22 Thread Sven Meier
Hi, check FormInput from wicket-examples, it has a TextFieldDouble and happily accepts 604.43 without rounding. How to trouble shoot this ? Put a breakpoint into your model object's setter and check where the value is coming from. Sven On 02/22/2014 03:18 PM, nazeem wrote: Hi I am

Re: double type text field - auto roundsoff

2014-02-24 Thread Sven Meier
Are you using HTML5's type=number? Sven On 02/24/2014 02:43 PM, nazeem wrote: Today i noticed the same behaviour in another text field of type double. But on refresh the issue was not repeating. So.. any clue to trouble shoot this issue in this form ? where it is consistently reproduced. --

Re: Radiobutton with one choice that has Textfield

2014-02-25 Thread Sven Meier
Hi, you just add an AjaxFormChoiceComponentUpdatingBehavior to the RadioChoice, in #onUpdate() you add the containing panel to the AjaxRequestTarget for update. Your textField overrides #onConfigure() to set its visibility depending on the currently selected choice. Hope this helps Sven On

Re: Radiobutton with one choice that has Textfield

2014-02-26 Thread Sven Meier
BOOK_SORTING_OTHER would be the one choice in BOOK_SORTING_CHOICES, which requires input through an additional textField. Sven On 02/26/2014 12:27 PM, zelelbien wrote: hi Sven, Thanks a lot for your answer! Did you mean my BOOK_SORTING_CHOICES (where the 4 radiobutton choices as strings

Re: Potential HTTPS redirects bug with deactivated js

2014-02-27 Thread Sven Meier
Hi Dmitriy, this is a bug in WebPageRenderer, so please open a Jira issue. A simple non-ajax button exposes the problem too, no need to tinker with deactivated JS: form.add(new AjaxButton(ajaxGo, form){}); form.add(new Button(go)); Please change your quickstart before

Re: Issue with UrlPathPageParametersEncoder and %2F (/)

2014-02-27 Thread Sven Meier
Does your Tomcat return HTTP 400? https://issues.apache.org/bugzilla/show_bug.cgi?id=7931 Sven On 02/26/2014 04:57 PM, Sergio Paganoni wrote: Hi everybody, I'm facing an issue with *Wicket 6.9.1* , I currently mount an endpoint (/test) the following way: mount(new MountedMapper(/test,

Re: Does wicket:link tag work inside pages in different packages?

2014-02-27 Thread Sven Meier
Have you read http://wicket.apache.org/guide/guide/urls.html#urls_3 ? Sven On 02/27/2014 03:44 PM, Alberto Brosich wrote: Hi, I have an header panel with a link to the homepage of the site. This panel is included in every page of the site. If I use the wicket:link tag for that link it works

Re: Ajax Update failing because of model

2014-03-03 Thread Sven Meier
I can't think of a reason for this. A quickstart would help to identify the problem. Regards Sven On 03/03/2014 07:51 PM, Hobbes00uk wrote: I have a text-field component that has an AjaxFormComponentUpdatingBehavior(onchange) behaviour attached. I've hived it off into a separate component as

Re: Add noise to the URL of ResourceLink component

2014-03-10 Thread Sven Meier
Links use a href attribute instead of src. Sven On 03/10/2014 03:19 PM, BenHoit wrote: hi, i want to add noise to the url of a ResourceLink component (to avoid browser caching problem) ... i looked at Image#addAntiCacheParameter and try to put it in onComponentTag of my ResourceLink

Re: Add noise to the URL of ResourceLink component

2014-03-10 Thread Sven Meier
Are you using popupSettings? Sven On 03/10/2014 04:01 PM, BenHoit wrote: thanks, i modify my onComponentTag @Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); String url = tag.getAttributes().getString(href);

Re: Add noise to the URL of ResourceLink component

2014-03-10 Thread Sven Meier
Hi, take a look at Link#onComponentTag() on why this does not work in your case. You should override #getURL() instead. Sven On 03/10/2014 04:14 PM, BenHoit wrote: yes i'm using popupSettings final String mime=application/xml; ByteArrayResource res = new

Re: ListView - onComponentTag

2014-03-10 Thread Sven Meier
Hi, ListView uses its markup tag to render each of its items and is not visible in the output by itself - thus it doesn't contribute anything to the component tag. Sven On 03/10/2014 07:19 PM, Nick Pratt wrote: Is there any reason why onComponentTag() wouldn't be invoked on a ListView:

Re: [ANN] wicket-dnd project

2014-03-11 Thread Sven Meier
Hi, yes, that should be a semicolon. Sven On 03/11/2014 10:19 AM, Duke wrote: Thanks for reply. Unfortunately I can't change IDE now, its not my choice. Also, I found some strange code in wicket-dnd theme.css files: div.dnd-hover-cover { display: none; } table.dnd-hover-table {

Re: [ANN] wicket-dnd project

2014-03-11 Thread Sven Meier
Hi, wicket-dnd is pretty standard Java, so I don't have an idea what Netbeans has to complain about that code. Sven On 03/11/2014 10:04 AM, Duke wrote: Hi all, I'm try to use wicket-dnd 0.6.0 in my project. I got a strange behavior in my NetBeans 7.4 IDE when I add wicket-dnd library to my

Re: backspace - when not on focus in field

2014-03-12 Thread Sven Meier
http://stackoverflow.com/questions/2645681/how-to-disable-backspace-if-anything-other-than-input-field-is-focused-on-using Sven On 03/12/2014 05:04 PM, nazeem wrote: I use lot of ajax to replace panels on user clicks so that user can drill down deep in to the page view. When using forms if the

Re: Avoid calling Page.onInitialize if page constructor throws an exception

2014-03-27 Thread Sven Meier
Hi, #onInitialize() is not called here with 6.14.0 and 6.15.0-SNAPSHOT. Regards Sven On 03/27/2014 03:30 PM, Robin Shine wrote: Hi All, We are glad to see that the issue WICKET-5387 (Page#onInitialize called after an exception in the constructor of Page) has been resolved in 6.13.0.

Re: Avoid calling Page.onInitialize if page constructor throws an exception

2014-03-28 Thread Sven Meier
is marked as dirty to cause onInitialize() being called afterwards. Is this a bug or expected behavior? Regards Robin From: Sven Meier s...@meiers.net To: users@wicket.apache.org Sent: Thursday, March 27, 2014 10:49 PM Subject: Re: Avoid calling

Re: AbstractFormValidator in Wizard

2014-03-31 Thread Sven Meier
Hi, what's the actual problem you're trying to fix? Sven On 03/28/2014 12:45 AM, N. Metzger wrote: I have a problem with form validation within a wizard. The wizard is used for account setup which concludes in setting a password as the final step. Originally this wasn't inside a wizard, but a

Re: AbstractFormValidator in Wizard

2014-03-31 Thread Sven Meier
I can't think of a reason why your IFormValidator should cause multiple submits. If #changePassword() takes a long time to complete, you could show a veil: Google wicket and veil. Sven On 03/31/2014 02:30 PM, N. Metzger wrote: The form seems to be submitted 2 or 3 times although - as out

Re: Exception thrown when refreshing the page.

2014-04-02 Thread Sven Meier
fragment.add(new Label(firstName.getId() + .feedback) What do you actually want to display with this label? This way it will look for the property firstname.feedback in a parental CompoundPropertyModel. Sven On 04/02/2014 06:55 AM, chathuraka.waas wrote: Hi, i have a form which as few

Re: FormComponentPanel.validate() API Doc question

2014-04-04 Thread Sven Meier
Hi Lucas, #validate() is called by the Form when it processes a request. Usually you don't call this method by yourself - that's all. Overriding #validate() is OK. Note that a FormComponentPanel can have validators too, so it might be simpler to just add one for your date checks. Regards

Re: Form component's model#setObject getting called twice per submit when inside a Border

2014-04-07 Thread Sven Meier
Hi Craig, the stacktraces to both #setobject() calls would be helpful. http://pastebin.com/ Sven On 04/07/2014 05:37 PM, Craig L wrote: Hello, This is my first post to the forum and I am brand new to the wicket framework so please be patient. I am coming into an organization that is still

Re: Wicket 1.6.7 TabbedPanel URL Access

2014-04-07 Thread Sven Meier
Hi, do you want to your url parameters? Are you looking for bookmarkable urls? You can analyse page parameters in a page's constructor and change its contents accordingly. Sven On 04/07/2014 06:57 PM, Jeremie wrote: Hello, I would like to know if it is possible to use a URL to open a tab

Re: AjaxPagingNavigator

2014-04-10 Thread Sven Meier
Hi, on each AjaxRequest, AjaxPagingNavigator updates the parent of the pageable, see AjaxPagingNavigator#onAjaxEvent(). So make sure, your pageable repeater has the same parent as your two navigators: div wicket:id=parent div wicket:id=topNavigator/div table tr

Re: Form component's model#setObject getting called twice per submit when inside a Border

2014-04-11 Thread Sven Meier
Hi, there's indeed a special handling for Borders in Wicket 1.4.x, see Form#internalUpdateFormComponentModels(). Check whether you have followed the instructions in Border's javadoc in regards to bodyContainer. Regards Sven On 04/10/2014 05:23 PM, Craig L wrote: Hi Sven, Thank you for

Re: Form component's model#setObject getting called twice per submit when inside a Border

2014-04-13 Thread Sven Meier
If the hierarchy is correct then the 1.4 logic is very confusing to me. Same way here ;). You know that Wicket 1.4 is no longer actively developed, so we won't improve this, even if it is a bug. Regards Sven On 04/11/2014 11:07 PM, Craig L wrote: Hi Sven, just a follow-up. If I am

Re: Validating multiple components as one

2014-04-14 Thread Sven Meier
Do I have to put the fields into a form and submit the whole form Wrapping all three inputs in a form with an AjaxFormSubmitBehavior is the easiest solution. Do you have any problems with it? Sven On 04/14/2014 07:45 PM, Christian Smolka wrote: Hi to everybody! My little problem is about

Re: [ANNOUNCE] Apache Wicket 6.15.0 is released

2014-04-28 Thread Sven Meier
Hi, AjaxWizardButtonBar holds a Wizard to update it on Ajax requests, an IWizard would not suffice. Regards Sven On 04/28/2014 08:10 AM, mesketh wrote: The latest release 6.15.0 includes an improvement (https://issues.apache.org/jira/browse/WICKET-2542) delivering a new ajaxified

Re: Question / l18n / property substitution / formatting

2014-04-30 Thread Sven Meier
Hi, StringResourceModel uses Java's MessageFormat for its parameters, so only the {0} syntax is supported. Use ${dateOfCreation} for Wicket's placeholder replacement - this one uses Wicket's converters instead. Regards Sven On 04/30/2014 11:03 AM, Patrick Davids wrote: Hi all, I'm not

Re: AjaxFormComponentUpdatingBehavior attached to parent

2014-05-05 Thread Sven Meier
No, the AjaxFormComponentUpdatingBehavior has to be added to the formComponent. Your custom Panel can override add(Behavior...) to do the forwarding though. Sven On 05/05/2014 08:19 PM, Edgar Merino wrote: Hello, I currently have a Panel with a DropDownChoice added to it, currently I have a

Re: Application Scope

2014-05-06 Thread Sven Meier
That's a javax.servlet restriction: http://stackoverflow.com/questions/1662348/setattribute-non-serializable-attribute-java-object-serialization http://stackoverflow.com/questions/3460249/java-httpsession-setattribute-throws-non-serializable-exception-on-qa-but-not-i Sven On 05/06/2014 03:52

Re: AjaxSelfUpdatingTimerBehavior.onPostProcessTarget() Never Called

2014-05-06 Thread Sven Meier
By overriding #onRender() you're preventing the component tag to be written into the response. Since wicket-ajax cannot find the markuo id in the DOM, it will not perform the Ajax request. Sven On 05/06/2014 08:28 PM, Richard W. Adams wrote: The onPostProcessTarget() method of my

Re: How to replace deprecated visitChildren() and filterByClass()?

2014-05-12 Thread Sven Meier
parent.visitChildren(FormComponent.class, new IVisitorFormComponent, Void() { @Override public void component(final FormComponent component, final IVisitVoid visit) { // do something with form components } });

Re: # in URL

2014-05-13 Thread Sven Meier
Hi, AFAIK everything after the hashbang is not sent to the server: http://stackoverflow.com/questions/6745993/how-to-get-the-anchor-name-in-http-get Regards Sven On 05/13/2014 03:36 AM, infiniter wrote: Wicket version: 6.7.0 I need to get the url parameters even if there is a #, because I

Re: Behavior rendering

2014-05-16 Thread Sven Meier
Hi, read IAjaxRegionMarkupIdProvider's javadoc. Regards Sven On 05/09/2014 08:34 PM, Nick Pratt wrote: I have a Behavior attached to a WebMarkupContainer with a bind() method as follows: @Override public void bind( Component component ) { this.boundComponent = component;

Re: Lots of Images slowing rendering in DataView?

2014-05-16 Thread Sven Meier
Have you tried using CSS to style your images instead? Perhaps this will help the browser to speed up rendering. Sven On 05/07/2014 04:05 PM, ashindler wrote: Hi, I have a page with a fairly large DataView table ~2000 rows of information. In each row I have 5 small icons (images) - a total

Re: problem with resource lookup for css files

2014-05-16 Thread Sven Meier
Try with myCss_blue.css Regards Sven On 05/16/2014 03:51 PM, Patrick Davids wrote: Hi all, I have problems with resource look up for styles css... and I dont know, what I am doing wrong. Can someone have a look, please... myPackage. BasePage.java BasePage.html

Re: Question / Best Practise / (List)Model vs. (List)DataProvider

2014-05-16 Thread Sven Meier
IDataProvider is all about efficiency, it provides efficient access to a subset of the data. Perhaps we can make it even more efficient with the recent proposal on the @dev list. Regards Sven On 05/08/2014 01:37 PM, Patrick Davids wrote: Hi all, what I often think about, and I cannot

Re: Wicket rest and retrofit rest client

2014-05-16 Thread Sven Meier
Hi, Retrofit callbacks are invoked asynchronously. Once #success() is called, the Wicket response is probably written already. You can't/shouldn't do anything related to Wicket in a non-request thread. Regards Sven On 05/07/2014 07:49 PM, Noven wrote: Hi all, I am experimenting with

Re: Wicket 7 M1 different behaviour on button

2014-05-16 Thread Sven Meier
Hi Peter, in Wicket 7.x the default event handling is no longer prevented by default. Thus the browser submits the form (submit is the default type) *after* the Ajax request has been processed. I agree that AjaxLink should not submit in any case: We might decide to alter the tag to always

Re: Dataview setreuseitem to false

2014-05-21 Thread Sven Meier
Hi, please take a look at #setItemReuseStrategy(IItemReuseStrategy) Sven On 05/21/2014 03:11 PM, pradeepmohite07 wrote: Hello, I am using dataview form sorting and pagination and observed that data in dataview is not refreshed properly previously i used Listview with set reuseitem=false and

Re: TextArea and Collection as Model

2014-05-28 Thread Sven Meier
Hi, Wicket calls validators after conversion, thus if you have TextAreaCollectionString, your validator has to be IValidatorCollectionString. Let your CripBlockConverter do the format checking, I don't see the need for your converter. But now Wicket complains 'Complains' means what?

Re: TextArea and Collection as Model

2014-05-28 Thread Sven Meier
:panel:formular:formGroup4Crips:formGroup4Crips_body:cripsFld]) must be applied to a tag of type [input], not: 'textarea class=form-control id=cripsFld wicket:id=cripsFld style=resize: none placeholder=List of CRIP addresses autocomplete=off' (line 0, column 0) Oliver Am 28.05.14 15:23, schrieb Sven Meier: Hi, Wicket

Re: IModel-based multiple-selection DataTable

2014-05-28 Thread Sven Meier
Hi, AbstractTree uses a ProviderSubset to keep the expanded nodes. Item comparison is based on model#equals(). Regards Sven On 05/27/2014 06:29 PM, ChambreNoire wrote: Hello, I'm trying to roll my own paginated multiple-selection datatable and I'm not sure how to store the selected

Re: ComponentFeedbackPanel near radio group not working

2014-05-31 Thread Sven Meier
Hi, I've adjusted RadioGroupPage from wicket-examples to use a FormComponentPanel and a required group, and everything works as expected. Where is the error coming from? From a validator? Is it reported on the group or taskForceContainer ? Regards Sven On 05/30/2014 11:26 PM, Entropy

Re: Dynamically changing column visibility on DataTable during ajax refresh

2014-06-04 Thread Sven Meier
Hi, you can alter the list of columns you have passed to the DataTable constructor: new DataTable(id, columns, ...); onConfigure() { columns.clear(); columns.addAll(...); } onClick() { target.add(dataTable); } Regards Sven On 06/04/2014 12:20

Re: Error page stack trace

2014-06-04 Thread Sven Meier
Hi, easiest solution is to use a custom requestCycleListener to store the exception in a thread-local. You can access this variable from your custom internalErrorPage. Hope this helps Sven On 06/04/2014 04:43 PM, Entropy wrote: We set our error page via setInternalErrorPage on

Re: org.apache.wicket.core.request.handler.ListenerInvocationNotAllowedException when provider data for DataTable changes before paging (Wicket 6.x up to and including 6.15.0)

2014-06-10 Thread Sven Meier
12:26:02,310 WARN [org.apache.wicket.RequestListenerInterface] (http--0.0.0.0-8203-2) behavior not enabled; ignore call. Behavior org.apache.wicket.ajax.markup.html.navigation.paging.AjaxPagingNavigationIncrementLink$1@609bfc99 at component It seems the link is already disabled when you click

Re: Link in repeaters

2014-06-10 Thread Sven Meier
Hi, a link does not output a label. Read here for two possible solutions: https://www.mail-archive.com/wicket-user@lists.sourceforge.net/msg28621.html Regards Sven On 06/10/2014 06:02 PM, kumar ramanathan wrote: Hi Friends , I have successfully generated the view using repeaters using the

Re: Implementing a SecureForm to avoid CSRF attacks

2014-06-10 Thread Sven Meier
my form contains a panel with tabs, each tab refreshes the Form class through ajax but the HTML stays the same. I don't understand this: IF the form is updated on each Ajax request, the hidden input should always have an up-to-date token value. Sven On 06/10/2014 05:04 PM, shayy wrote:

Re: Implementing a SecureForm to avoid CSRF attacks

2014-06-11 Thread Sven Meier
Your form can listen to AjaxRequestTargets, override: public void onEvent(IEvent event) { if (event.getPayload() instanceof AjaxRequestTarget) { // update token via JavaScript ((AjaxRequestTarget)event.getPayload()).appendJavaScript(...); } } Regards Sven On 06/11/2014 08:41

Re: Implementing a SecureForm to avoid CSRF attacks

2014-06-11 Thread Sven Meier
Note the apostrophe around 'token': document.getElementById('SECURE_FORM_TOKEN').value= ' + token + ';); But don't you want to generate a new token on ajax requests too? Sven On 06/11/2014 01:17 PM, shayy wrote: Unless I'm doing it wrong, I can't get it to work :( I'm posting my class here

Re: Implementing a SecureForm to avoid CSRF attacks

2014-06-11 Thread Sven Meier
Hi, a single token from the start of a form until its submit should do fine. I'm just wondering why you see the need to update the token, although the form isn't re-rendered and thus the token is unchanged. Sven On 06/11/2014 02:19 PM, shayy wrote: Hmm, not sure about that. Do you mean

Re: Empty FeedbackPanel

2014-06-11 Thread Sven Meier
Strange, invalid form input isn't preserved either. Check the application log for clues. Regards Sven On 06/11/2014 06:21 PM, Lucio Crusca wrote: Here is a form: http://158.58.168.198/quotaly/wicket/bookmarkable/it.quotaly.web.Register here is the relevant html snippet: form

Re: UploadProgressBar broken with update to v6.13.0

2014-06-12 Thread Sven Meier
Confirmed, see https://issues.apache.org/jira/browse/WICKET-5615. Thanks for reporting the issue. Sven On 06/12/2014 05:17 PM, René Hartwig wrote: Hi, I just recognized that the UploadProgressBar has been broken by changes made in Version 6.13.0 - I assume because of

Re: AJAX update and file download on Wicket 1.5

2014-06-13 Thread Sven Meier
Hi, the browser sends in a separate request to fetch the resource. You cannot show any feedback from there. You can add an error to the session, and let the web page poll with ajax requests for any problems. Regards Sven On 06/13/2014 03:35 AM, msalman wrote: Hi, Suppose there is some

Re: How to get PageClass from BufferedResponseRequestHandler ? And how to link related requests?

2014-06-13 Thread Sven Meier
Hi, BufferedResponseRequestHandler just serves BufferedWebResponse instances, it doesn't know which page has generated for the buffered response. We already had another case, where this information would be valuable, see my last comment on https://issues.apache.org/jira/browse/WICKET-5129

Re: How to handle click on disabled links - ListenerInvocationNotAllowedException?

2014-06-17 Thread Sven Meier
Hi, when you alter the enabled state in #onConfigure() - this is recommended instead of overriding #isEnabled() - the link will still be enabled when the next click comes in. You can handle the changed system state in your application logic. Best regards Sven On 06/17/2014 03:55 PM, Daniel

Re: How to handle click on disabled links - ListenerInvocationNotAllowedException?

2014-06-17 Thread Sven Meier
Hi, The next click does not come because exception is raised. if the link is still enabled, which exception should be thrown then? Sven On 06/17/2014 04:24 PM, Daniel Stoch wrote: On Tue, Jun 17, 2014 at 4:14 PM, Sven Meier s...@meiers.net wrote: Hi, when you alter the enabled state

Re: How to handle click on disabled links - ListenerInvocationNotAllowedException?

2014-06-17 Thread Sven Meier
If you alter the enabled state of your links in #onConfigure(), they will still be enabled - even if the server state already changed. Sven On 06/17/2014 04:32 PM, Daniel Stoch wrote: On Tue, Jun 17, 2014 at 4:27 PM, Sven Meier s...@meiers.net wrote: Hi, The next click does not come

Re: How to handle click on disabled links - ListenerInvocationNotAllowedException?

2014-06-17 Thread Sven Meier
, Sven Meier s...@meiers.net wrote: If you alter the enabled state of your links in #onConfigure(), they will still be enabled - even if the server state already changed. Sven Yes, you're right! I have investigated two scenarios just before your last answer :). 1. Link has overriden isEnabled

Re: [ANNOUNCE] WicketStuff 6.16.0 is released

2014-06-22 Thread Sven Meier
Hi Martin, many thanks for taking care of the release. Sven On 06/22/2014 11:34 AM, Martin Grigorov wrote: Hi, WicketStuff core 6.16.0 based on Apache Wicket 6.16.0 is released and soon will be available in Maven Central. The changelog for this release is: Martin Tzvetanov Grigorov (7):

Re: WicketTester.executeAjaxEvent causes problems with FormTester.setValue()

2014-06-25 Thread Sven Meier
Hi, everytime WicketTester processes a request, all previously set values are consumed, i.e. no longer present for the next request. formTester.setValue() // value is set wicketTester.executeAjaxEvent() // values are consumed formTester.submit() // no values wicketTester.executeAjaxEvent()

Re: Custom Pagination

2014-06-26 Thread Sven Meier
Hi, your markup didn't make it - do you have wicket:id=navigator in it? Sven On 06/26/2014 04:55 PM, K wrote: My Java Code: public class CustomPagingNavigator extends PagingNavigator implements Serializable { private static final long serialVersionUID = 1L;

Re: Custom Pagination

2014-06-26 Thread Sven Meier
Hi, your markup has wicket:id=navigator, but I don't see this id in your Java code. Sven On 06/26/2014 05:04 PM, K wrote: My Mark-up: html xmlns:wicket=http://wicket.apache.org; head meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1 titleCustom PagingNavigator/title /head

Re: how to handle null pointer exception while submit button

2014-06-26 Thread Sven Meier
#setConvertEmptyInputStringToNull(false) could help, but with a stacktrace we can give you a better advice. Sven On 06/27/2014 06:33 AM, kumar ramanathan wrote: Hi Friends, I have a text box and a submit button , If i pressed submit button without entering anything in textbox , am getting

Re: How to handle click on removed links - WicketRuntimeException (Component 'xxx' has been removed from page)?

2014-07-04 Thread Sven Meier
So page was rendered in a browser, on the server component tree was changed What triggers the change to the component tree? On which thread? Are you using websockets? Sven On 07/04/2014 12:13 PM, Daniel Stoch wrote: Hi all, I think such question occurs from time to time on this list, but

Re: Best practice sought: Register client change at server

2014-07-11 Thread Sven Meier
an AjaxEventBehavior, but I don't have a component to attach it to. You have a page, don't you? Otherwise you can request a resource via Ajax too. Regards Sven On 07/11/2014 02:47 AM, Joachim Schrod wrote: Hi, In a Wicket application I have JQuery code that triggers after a certain time

Re: equals() method for LoadableDetachableModels

2014-07-11 Thread Sven Meier
Hi, detachable models should never use getObject() in their implementation of equals()? generally this is a good advice: there are several places in Wicket checking for model equality (e.g. ReuseIfModelsEqualStrategy). A detachable model should have enough information to decide equality

Re: equals() method for LoadableDetachableModels

2014-07-11 Thread Sven Meier
of Java and I may miss something... On Fri, Jul 11, 2014 at 10:51 AM, Sven Meier s...@meiers.net wrote: Hi, detachable models should never use getObject() in their implementation of equals()? generally this is a good advice: there are several places in Wicket checking for model equality (e.g

Re: Override automatic default Form style

2014-07-15 Thread Sven Meier
Hi, that's just a hidden DIV for Wicket form handling - it shouldn't bother you, since your inputs are not nested inside of it. For CSS layout of form inputs: https://www.google.com/search?q=stackoverflow+layout+form+inputs Best regards Sven On 07/15/2014 12:33 PM, sorinev wrote:

Re: Fileupload causes internet explorer 11 to hang

2014-07-15 Thread Sven Meier
Hi, which Wicket version? Are you using X-UA-Compatible meta tags? Sven On 07/15/2014 04:37 PM, ashindler wrote: Hi, I have the following code - with google chrome I experience no problems but in internet explorer 11 the page hangs and gets stuck. I am using the latest version of wicket.

Re: Fileupload causes internet explorer 11 to hang

2014-07-16 Thread Sven Meier
Hi, I've experienced strange problems with later IE versions, when they are forced to run under previous (i.e. non-edge) compatibility - up to the point that Ajax wasn't working at all :/. A X-UA-Compatible response header is always safer to use than a meta tag, since the latter can/will be

<    4   5   6   7   8   9   10   11   12   13   >