Re: FileUpload not working

2014-08-07 Thread Martin Grigorov
Hi, What exactly doesn't work ? You code is incomplete and it is hard to say what could be a problem. Have you consulted with the file upload examples ? https://github.com/apache/wicket/blob/master/wicket-examples/src/main/java/org/apache/wicket/examples/upload/UploadPage.java#L136 Martin

Re: Unit testing FormComponentPanel

2014-08-07 Thread lucast
Thank you, Martin, I have implemented the solution, as suggested: wicketTester.getRequest().setParameter(formComponentPanel:radioChoice, value) However, AjaxFormChoiceComponentUpdatingBehavior.onUpdate() (which I have added to radioChoice) does not behave as expected during test. Normally,

Re: Unit testing FormComponentPanel

2014-08-07 Thread Martin Grigorov
Do you fire an Ajax call with org.apache.wicket.util.tester.BaseWicketTester#executeBehavior(a jaxFormChoiceComponentUpdatingBehavior) ? This will simulate the click event on the radio element. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Aug 7, 2014 at

Re: Form.findSubmittingButton throws exceptions

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

Re: Form.findSubmittingButton throws exceptions

2014-08-07 Thread Martin Grigorov
I think that it should return the found submitter. If the caller cares whether the submitter is visible/enabled then it can do its own check for this. I'll raise the question in the dev@ mailing list. If no one objects then I'll modify it. Martin Grigorov Wicket Training and Consulting

Re: FileUpload not working

2014-08-07 Thread mohallo
Hi thanks for your reply .I want the user to select a xls file on their local pc and upload the contents of the screen to that file .The file has to be local to their system . The examples i have seen all upload the file to the server with the method FileUpload.writeTo(file). In the past I have

Re: FileUpload not working

2014-08-07 Thread Martin Grigorov
re ByteArrayResource - you need to set Content-Disposition response header to tell the browser whether to show it (INLINE) or to save it (ATTACHMENT). Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Aug 7, 2014 at 4:03 PM, mohallo moha...@qwest.com wrote:

Re: Foundation integrated in wicket

2014-08-07 Thread vp143
I am not sure I understand what you are after... I do not have anything on GitHub. I used SASS to install and compile my sass files and put my js files in my webapp directory. Let me know if you have any specific questions. Regards Vishal -- View this message in context:

Migration to wicket 7

2014-08-07 Thread Maxim Solodovnik
Hello All, I'm currently trying to migrate to wicket 7.0.0 and currently stuck on replacing org.apache.wicket.extensions.markup.html.repeater.data.sort.OrderByLink.CssProvider it seems to be removed and Migration guide [1] contains no replacement :( I'm trying to use it in custom class extending

Re: Migration to wicket 7

2014-08-07 Thread Maxim Solodovnik
The guide also missing to mention org.apache.wicket.protocol.ws.IWebSocketSettings On 8 August 2014 00:18, Maxim Solodovnik solomax...@gmail.com wrote: Hello All, I'm currently trying to migrate to wicket 7.0.0 and currently stuck on replacing

Re: Migration to wicket 7

2014-08-07 Thread Maxim Solodovnik
and IPageSettings sorry for multiple emails :( On 8 August 2014 00:19, Maxim Solodovnik solomax...@gmail.com wrote: The guide also missing to mention org.apache.wicket.protocol.ws.IWebSocketSettings On 8 August 2014 00:18, Maxim Solodovnik solomax...@gmail.com wrote: Hello All, I'm

Re: Migration to wicket 7

2014-08-07 Thread Martin Grigorov
https://cwiki.apache.org/confluence/display/WICKET/Migration+to+Wicket+7.0#MigrationtoWicket7.0-AllIXyzSettingsareremovedWICKET-5410 Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Aug 7, 2014 at 7:21 PM, Maxim Solodovnik solomax...@gmail.com wrote: and

Re: Migration to wicket 7

2014-08-07 Thread Maxim Solodovnik
OK, I was searching the page for the name, and was unable to find it :( Any example on how to customize AjaxFallbackOrderByBorder without CssProvider ? On 8 August 2014 00:27, Martin Grigorov mgrigo...@apache.org wrote:

Re: Migration to wicket 7

2014-08-07 Thread Martin Grigorov
this is the change: https://git-wip-us.apache.org/repos/asf?p=wicket.git;a=commit;h=2f87d0b it seems we forgot to add a migration entry about it. I'll update it soon the idea is to use i18n. now Wicket uses #getString() to find the value. check the latest master for the keys Martin Grigorov

Re: FileUpload not working

2014-08-07 Thread mohallo
Thanks for your help that worked out. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/FileUpload-not-working-tp4666920p4666950.html Sent from the Users forum mailing list archive at Nabble.com. - To

Re: Mailbox component

2014-08-07 Thread Paul Bors
Suppose you take the jQuery Table and style it something like this (in a responsive web 'theamable' manner): http://w3lessons.info/2013/05/13/gmail-style-message-inbox-design-with-jquery-css/ Suppose you integrate it in Wicket and have it functional and suppose you want the following basic

Re: wicket-select2 - adding sub categories seen in select2

2014-08-07 Thread Paul Bors
Your question is better asked on that project’s mailing list at: https://groups.google.com/forum/#!forum/select2 Or if you prefer on the wicket-select2 project mailing list at: https://github.com/ivaynberg/wicket-select2/issues (this is actually the bug tracker) ~ Thank you, Paul Bors On

Re: HTML headings

2014-08-07 Thread Paul Bors
I can’t view your HTML in my email client, but here’s a quick example of what I think you’re asking for: HTML: html xmlns:wicket=http://wicket.apache.org; wicket:panel span wicket:id=label[[label]]/spaninput wicket:id=textField type=text onkeypress=return suppressEnterKey(event)

Re: Mailbox component

2014-08-07 Thread Ernesto Reinaldo Barreiro
Hi, On Fri, Aug 8, 2014 at 2:06 AM, Paul Bors p...@bors.ws wrote: Suppose you take the jQuery Table and style it something like this (in a responsive web 'theamable' manner): http://w3lessons.info/2013/05/13/gmail-style-message-inbox-design-with-jquery-css/ Suppose you integrate it in

Re: Mailbox component

2014-08-07 Thread Maxim Solodovnik
I have implemented something like this in our project (I'm afraid it might be not optimally written due to lack of time) the demo is available here: http://demo.dataved.ru/openmeetings (register then go to Contacts and Messages) The source code is here: