Re: AjaxFormComponentUpdatingBehavior is not working

2014-08-06 Thread brushmate
This is the produced HTML for selSupplier: lt;select name=parameterPanel:selSupplier id=selSupplier9gt; lt;option value=0gt;Supplier 0lt;/optiongt; lt;option value=1gt;Supplier 1lt;/optiongt; lt;option value=2gt;Supplier 2lt;/optiongt;lt;option value=3gt;Supplier 3lt;/optiongt;

Re: AjaxFormComponentUpdatingBehavior is not working

2014-08-06 Thread Martin Grigorov
Hi, Sorry. You said script (and I repeated it) but I actually thought about select ... Do you use IHeaderResponseDecorator in YourApplication ? ( http://wicketinaction.com/2012/07/wicket-6-resource-management/) Is it possible that you filter out all JavaScriptHeaderItems by chance ? Martin

Re: AjaxFormComponentUpdatingBehavior is not working

2014-08-06 Thread brushmate
No I do not use any Decorator. I have another page where I am using an AjaxSelfUpdatingTimerBehavior which updates the contents of the page periodically. All components of this page are in the same project. The page is working and updates its contents every 2 seconds. Also the lt;scriptgt; tags

Re: AjaxFormComponentUpdatingBehavior is not working

2014-08-06 Thread Martin Grigorov
Do you override AjaxFormComponentUpdatingBehavior#renderHead() without calling super.renderHead() ? You pasted an excerpt of the panel, so I should ask .. :-) Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Aug 6, 2014 at 9:22 AM, brushmate

Re: AjaxFormComponentUpdatingBehavior is not working

2014-08-06 Thread brushmate
I have done a terrible mistake... I have been working on an old file that actually was not invoked in the current version of the webapp. Everything is working as expected. I am so sorry for wasting your time :-( Thank you very much for trying to help me anyways. Once again sorry! -- View this

Mounting dynamic resources , wicket 1.5

2014-08-06 Thread Jayakrishnan R
Hi All, I am trying out the Mounting dynamic resources as explained in the following article. http://wicketinaction.com/2011/07/wicket-1-5-mounting-resources/ in the App.java , I have the following. mountResource(/images/${imgName}, new ImageResourceReference()); The image resource class is

Re: Mounting dynamic resources , wicket 1.5

2014-08-06 Thread Martin Grigorov
Hi, Check in the browser dev tools console which url exactly fails with error 500. BookmarkableMapper is used for urls like : /wicket/bookmarkable/com.example.MyPage Your image urls should be: /images/someName.jpg Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On

Re: Mounting dynamic resources , wicket 1.5

2014-08-06 Thread Jayakrishnan R
Hi Martin, The URL I currently get ( by printing in the log) is *https://localhost:8181/testApp/wicket/images/52p23eepiph3_20140515_015558_1_.jpg https://localhost:8181/testApp/wicket/images/52p23eepiph3_20140515_015558_1_.jpg* But When I check in the browser console , I get the

Re: Mounting dynamic resources , wicket 1.5

2014-08-06 Thread Martin Grigorov
Check the Dev tools Network tab. Sometimes there is a clue what triggered a request. You can disable the image resource reference (i.e. comment out the code) and see whether the problem is still there. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Aug 6,

Unit testing FormComponentPanel

2014-08-06 Thread lucast
Dear Forum, I am trying to unit test a FormComponentPanel. I would like to populate its fields and test some ajax behaviour as well. Is it possible to test a FormComponentPanel and its behaviour in isolation and not as part of a form? How can this be achieved? For testing a form, I call Is

Re: Mounting dynamic resources , wicket 1.5

2014-08-06 Thread Jayakrishnan R
Hi Martin, Thank you for the suggestions. I will check that. I also have a question on securing such mounted resources when there is a valid session. Is there a way to secure access to resources mounted like this ? I want such images to be accessible only for valid users when signed on. On

Re: Mounting dynamic resources , wicket 1.5

2014-08-06 Thread Martin Grigorov
See https://issues.apache.org/jira/browse/WICKET-5012 Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Aug 6, 2014 at 2:47 PM, Jayakrishnan R jk.h...@gmail.com wrote: Hi Martin, Thank you for the suggestions. I will check that. I also have a question

Re: Unit testing FormComponentPanel

2014-08-06 Thread Martin Grigorov
Hi, FormTester#setValue() just sets parameters in the request. So you can do something similar: tester.getRequest().add/setParameter(formComponent.getInputName(), someValue); // ... more params tester.executeAjaxEvent(someComponent, eventName) Martin Grigorov Wicket Training and Consulting

Form.findSubmittingButton throws exceptions

2014-08-06 Thread Jack Berg
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

Re: Mounting dynamic resources , wicket 1.5

2014-08-06 Thread Jayakrishnan R
Thank you so much. On Wed, Aug 6, 2014 at 2:09 PM, Martin Grigorov mgrigo...@apache.org wrote: See https://issues.apache.org/jira/browse/WICKET-5012 Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Aug 6, 2014 at 2:47 PM, Jayakrishnan R

RE: Can I process a POST with simple non-Json parameters using wicket-restannotations

2014-08-06 Thread Bruce Lombardi
Thanks for pointing me in the right direction, I will look at the links you sent. I don't care if I get a post of a get, but it I know it will be a post with an order confirmation. - Bruce -Original Message- From: Paul Bors [mailto:p...@bors.ws] Sent: Wednesday, August 06, 2014 12:38 AM

Re: Unit testing FormComponentPanel

2014-08-06 Thread lucast
Thank you, Martin. I am able to successfully call but when I try to get hold of the object above in order to use it in tester.executeAjaxEvent I get null value. These are the calls I have used: I'm terribly sorry but what would be the function I need to execute to get hold of the object I

Re: Form.findSubmittingButton throws exceptions

2014-08-06 Thread Martin Grigorov
Hi, I am not sure but I guess it is like this to prevent calling onSubmit() on it. Form processing uses findSubmittingButton() to find the button and call its #onSubmit() before calling form.onSubmit(). Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Aug

FileUpload not working

2014-08-06 Thread mohallo
Hi , I am having an issue with the FileUpload component . What I am doing is capturing the content of a screen which looks like a xsl file and trying to upload this content to a file . I store the screen data in a byte array . Should this work .Thanks for your help . here is the main part of