Re: Clearing pagestore
I actually did try replaceSession before but now I see that the reason it did not work was that I used it inside an ajax request. After doing a redirect with pageparameters instead, it worked. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Clearing-pagestore-tp4667193p4667204.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Form.findSubmittingButton throws exceptions
Thank you! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Form-findSubmittingButton-throws-exceptions-tp4666910p4667030.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Form.findSubmittingButton throws exceptions
Wouldn't it return null, if the form was not submitted by a IFormSubmittingComponent? I have attached a quickstart to show my current situation. The exception is always thrown after submitting. testfindsubmit.zip http://apache-wicket.1842946.n4.nabble.com/file/n4666926/testfindsubmit.zip -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Form-findSubmittingButton-throws-exceptions-tp4666910p4666926.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Form.findSubmittingButton throws exceptions
Hi! Form.findSubmittingButton is documented as Gets the IFormSubmittingComponent which submitted this form. Returns: The component which submitted this form, or null if the processing was not triggered by a registered IFormSubmittingComponent But if the button is not visible or enabled, an exception is thrown. I did not expect that. Why is it implemented like that? I have a textfield which required attribute depends on the button that is pressed. So I have overridden isRequired and call findSubmittingButton form the new method. The page also has an onConfigure method where I hide that same Button if it has been pressed. So I always get a Submit Button btn (path=f:btn) is not visible exception. I have resorted to calling my own findSubmittingButton utility method. But I wonder why is such a check necessary. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Form-findSubmittingButton-throws-exceptions-tp4666910.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Validate FormComponent raw input before conversion
Thank you for the replies. You are right. It can be done like this. Though right now it seems that implementing my own rawvalidator would require a comparable amount of effort. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Validate-FormComponent-raw-input-before-conversion-tp4666560p483.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Validate FormComponent raw input before conversion
Hello! I have textfield backed by Integer Model object in the web app and a number field in the database. The maximum number the database can hold is less than Integer.MAX_VALUE so I have added a validator which checks that and reports the valid range. The problem is that when the user enters a value larger than Integer.MAX_VALUE, the conversion fails and user recieves a generic message. Using BigInteger and BigDecimal everywhere in models seems excessive. And it seems I can't validate the raw input string before conversion? Would you consider adding this feature or is there a better way? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Validate-FormComponent-raw-input-before-conversion-tp4666560.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: IE8, IE7 Ajax fails with Wicket 6?
I created a ticket: https://issues.apache.org/jira/browse/WICKET-4851 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/IE8-IE7-Ajax-fails-with-Wicket-6-tp4653503p4653545.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
IE8, IE7 Ajax fails with Wicket 6?
Hi, I'm having problem with javascript in IE8 and IE7. I am getting a flood of SCRIPT5007: Unable to get value of the property 'jQuery17209514285345432955': object is null or undefined jquery-ver-1348220874405.js, line 3405 character 3 errors to the console or an SCRIPT438: Object doesn't support this property or method jquery-ver-1348220874405.js, line 3241 character 6 error to the console (element type: select-one; property:focus). The problem can also be observed in the simple example www.wicket-library.com/wicket-examples-6.0.x/ajax/modal-window Just open the modal, close the modal. Observe how the console is flooded with error messages. IE9 in IE8 mode will also do. If your browser is configured to show pop-ups of those javascript errors, then you are screwed. Tried it with wicket 6.2. Line numbers are for development mode javascript. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/IE8-IE7-Ajax-fails-with-Wicket-6-tp4653503.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
javascript modal onclose event
Hi, Is it possible to register a modal-close event listener in javascript? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/javascript-modal-onclose-event-tp4653353.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
FeedbackPanel inside TabbedPanel does not render
Hi, I'm using Wicket 6 beta-2 and have a problem, that my feedback panel inside a TabbedPanel tab panel is not rendered. Even if i set output markupid to true, the tag is not rendered. The only way i have managed to get it to show, is by adding dummy error messages manually. If I do so, my actual messages appear next to the dummy one. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/FeedbackPanel-inside-TabbedPanel-does-not-render-tp4649991.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
get url string to stateful page without defining an element in markup
Hello! I'm trying to create a tooltip behavior that adds tooltip html elements after components. I want the tooltip message to contain a link to a page where you can edit the tooltip itself. I could mount the page and use pageparameters from a manually constructed link in the behavior, but is there a better way? Can I get an url String to the stateful page programmatically? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/get-url-string-to-stateful-page-without-defining-an-element-in-markup-tp3744424p3744424.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Injecting beans into behaviors
Hello, It seems that @SpringBeans does not inject beans into behaviors. It works only in Components by calling getApplication().notifyComponentInstantiationListeners(this) in the constructor. Is there a reason for limiting this? An easy workaround? Thanks for the responses to my previous questions! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Injecting-beans-into-behaviors-tp3744739p3744739.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AjaxFormComponentUpdatingBehavior target.addComponent(component) causes to lose focus
It seems, that cause was, that I was adding all the components to the AjaxRequestTarget in my AjaxRequestTarget.IListener. Is it a bug, that it does not return focus to the replaced component? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxFormComponentUpdatingBehavior-target-addComponent-component-causes-to-lose-focus-tp3700530p3703624.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AjaxFormComponentUpdatingBehavior target.addComponent(component) causes to lose focus
You are talking about the AjaxFeedbackUpdater.onBeforeRespond method? It didn't work for me. It behaves the same. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxFormComponentUpdatingBehavior-target-addComponent-component-causes-to-lose-focus-tp3700530p3701092.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AjaxFormComponentUpdatingBehavior target.addComponent(component) causes to lose focus
Sorry, I should have been more clear. AjaxFeedbackUpdater is a class in my sample project that implements AjaxRequestTarget.IListener . In its onBeforeRespond method, I add components to the AjaxRequestTarget. I tried adding focusComponent(null), but no luck. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxFormComponentUpdatingBehavior-target-addComponent-component-causes-to-lose-focus-tp3700530p3701266.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org