Re: Integrating Wicket with an Angular app

2014-10-30 Thread Warren Bell
I have an Angular app with a Wicket back end. I am using Wicket rest annotations located at https://github.com/bitstorm/Wicket-rest-annotations . Seems to be working pretty good. Warren On Oct 30, 2014, at 2:04 PM, BenjaminV mailto:bvellac...@yahoo.com>> wrote: Hi guys Is this thread still a

Re: Unit testing RadioChoice with AjaxFormComponentUpdatingBehavior

2014-10-30 Thread Nick Pratt
I reproduced this in a simple quickstart using this unit test: @Test public void testAjaxEventFired() throws Exception { HomePage homePage = new HomePage( new PageParameters() ); tester.startPage( homePage ); FormTester formTester = tester.newFormTester( "form" ); formTester.select( "

Re: Unit testing RadioChoice with AjaxFormComponentUpdatingBehavior

2014-10-30 Thread Nick Pratt
Thanks Paul I read that before posting, and tried a couple of things. Is there anything specific in that section other than: tester.executeAjaxEvent("label", "click"); If this is what is needed, how do I simulate a click on a specific item from a RadioChoice? Do I set the value using the norma

Re: Unit testing RadioChoice with AjaxFormComponentUpdatingBehavior

2014-10-30 Thread Nick Pratt
That was a typo - apologies. I'm using a AjaxFormChoiceComponentUpdatingBehavior As for the tester, its the EnhancedFormTester - its a thin wrapper that invokes: formTester.select( path, index ); (where formTester is the Wicket FormTester) On Thu, Oct 30, 2014 at 4:27 PM, Andrea Del Bene wrote:

Re: simple confirmation on button/link

2014-10-30 Thread Garret Wilson
Andrea, thanks for jolting my brain; I was a little sleepy this morning. I was using a subclass of AjaxLink that added confirmation JavaScript as I outlined below. My original HTML was: The root of the problem is that Wicket kept turning that into: Thus even though I got a confirm

Re: Integrating Wicket with an Angular app

2014-10-30 Thread BenjaminV
Hi guys Is this thread still alive? I have reasons to consider using wicket and angular together and I was wondering how you got on? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Integrating-Wicket-with-an-Angular-app-tp4656794p4668180.html Sent from the Users forum

Re: Modify items in quickview?

2014-10-30 Thread Boris Goldowsky
Yes, that one. For now, I am just replacing the QuickView with a newly-instantiated one, which does work around the problem. Boris On 10/30/14, 4:26 PM, "Paul Bors" wrote: >Are you talking about this QuickView? >https://github.com/vineetsemwal/quickview > > > >On Thu, Oct 30, 2014 at 1:16 PM,

Re: Unit testing RadioChoice with AjaxFormComponentUpdatingBehavior

2014-10-30 Thread Paul Bors
Since you want to test a AjaxFormComponentUpdatingBehav ior and not a standard form component (non-ajax) you don't use formTester.selectRadioChoice( "propertyType", 2 ) you have to create the AjaxTarget and etc. See "Testing AJAX behaviors" section at: http://wicket.apache.org/guide/guide/testing.

Re: Unit testing RadioChoice with AjaxFormComponentUpdatingBehavior

2014-10-30 Thread Andrea Del Bene
On 30/10/14 21:08, Nick Pratt wrote: Wicket 6.17.0 I have a RadioChoice (in a Form) that has an attached AjaxFormComponentUpdatingBehavior. The onUpdate() method of the Behavior fires an event for other components on the page to update (change visibility depending on user selection in radio cho

Re: Modify items in quickview?

2014-10-30 Thread Paul Bors
Are you talking about this QuickView? https://github.com/vineetsemwal/quickview On Thu, Oct 30, 2014 at 1:16 PM, Boris Goldowsky wrote: > How would you set things up to have the best of both worlds with a > QuickView? I need to have > (a) a button like an AjaxItemsNavigator that adds additio

Re: simple confirmation on button/link

2014-10-30 Thread Andrea Del Bene
On 30/10/14 17:57, Garret Wilson wrote: All, I've created a simple confirmation link based on Sven Meier's ConfirmationLink code on Confluence. For the most part it works, but... ...but if I'm on an upload form, then an an Ajax link won't work bec

Unit testing RadioChoice with AjaxFormComponentUpdatingBehavior

2014-10-30 Thread Nick Pratt
Wicket 6.17.0 I have a RadioChoice (in a Form) that has an attached AjaxFormComponentUpdatingBehavior. The onUpdate() method of the Behavior fires an event for other components on the page to update (change visibility depending on user selection in radio choice). Im trying to unit test it using:

How to partially update listview on scroll.

2014-10-30 Thread David Vdd
Hello, I'm trying to make a component that listens to scroll events and loads data when needed. When the scrollbar reached the bottom or the top. The component should have 2 possible usecases :one that keeps all the previous data and one that only show x rows and reloads them both ways(up and dow

Modify items in quickview?

2014-10-30 Thread Boris Goldowsky
How would you set things up to have the best of both worlds with a QuickView? I need to have (a) a button like an AjaxItemsNavigator that adds additional elements to the QuickView without repainting the entire view, AND (b) some AJAX operations that change the entire content of the QuickView –

simple confirmation on button/link

2014-10-30 Thread Garret Wilson
All, I've created a simple confirmation link based on Sven Meier's ConfirmationLink code on Confluence. For the most part it works, but... ...but if I'm on an upload form, then an an Ajax link won't work because I need to actually submit the multip

Re: Wicket jQuery js loaded twice when modal window opened

2014-10-30 Thread Martin Grigorov
Hi, The anti cache parameter is added by jQuery itself when $.ajax({cache: false, ...}) - http://api.jquery.com/jquery.ajax/ ack-grep '_=' wicket-core/src/main/java/ wicket-core/src/main/java/org/apache/wicket/resource/jquery/jquery-1.11.1.js 8551: rts = /([?&])_=[^&]*/, 9105: cacheURL.replace( r

Re: Wicket jQuery js loaded twice when modal window opened

2014-10-30 Thread prasad.bhandagi
@Martin When the first page is loaded, below is the url: http://localhost:7001/ahc/prol/wicket/resource/org.apache.wicket.resource.JQueryResourceReference/jquery/jquery-1.10.1-ver-1372037384000.js When the second page is loaded in modal window, below is the url: http://localhost:7001/ahc/prol/wic

Re: Multipart form doesn't work with AjaxSubmitLink (1.5.8 - 6.17 upgrade)

2014-10-30 Thread Martin Grigorov
Hi, On Thu, Oct 30, 2014 at 11:52 AM, tomask79 wrote: > Hi Martin again, > > false alarm, I apologize. > No worries! The important thing is that it works ! > > As you mentioned, I debugged the wicket-ajax-jquery.js's > submitMultipartForm > function and found out that wicket was ending at th

Re: Multipart form doesn't work with AjaxSubmitLink (1.5.8 - 6.17 upgrade)

2014-10-30 Thread tomask79
Hi Martin again, false alarm, I apologize. As you mentioned, I debugged the wicket-ajax-jquery.js's submitMultipartForm function and found out that wicket was ending at the bold line: *wicket-ajax-jquery.js:* . . if (form.onsubmit && !form.getAttribute(submittingAttribute)) { form.setAtt

Re: Multipart form doesn't work with AjaxSubmitLink (1.5.8 - 6.17 upgrade)

2014-10-30 Thread tomask79
Okay Martin, thanks for quick reply. I will try to simulate it as you said and let you know. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Multipart-form-doesn-t-work-with-AjaxSubmitLink-1-5-8-6-17-upgrade-tp4668161p4668163.html Sent from the Users forum mailing l

Re: Multipart form doesn't work with AjaxSubmitLink (1.5.8 - 6.17 upgrade)

2014-10-30 Thread Martin Grigorov
Hi, Can you reproduce the problem in a quckstart ? If YES then please attach it to JIRA and we will take a look. You should go inside submitMultipartForm() with the debugger. When the form is multipart Wicket needs to use an iframe to make the submit. Martin Grigorov Wicket Training and Consultin

Multipart form doesn't work with AjaxSubmitLink (1.5.8 - 6.17 upgrade)

2014-10-30 Thread tomask79
Hi guys, we're migrating to wicket 6.17 and I'm stuck at problem that AjaxSubmitLinks are not working inside form, which is marked as multipart form, yes we have there some upload fields. Method onSubmit of AjaxSubmitLinks never gets called...:-(...I see NO ERRORS in the javascript console...Anywa

Re: Wicket jQuery js loaded twice when modal window opened

2014-10-30 Thread Maxim Solodovnik
My bad, sorry On 30 October 2014 13:15, Martin Grigorov wrote: > @Maxim, > > It seems you didn't read the message till the end. It says that it uses > JQuery UI Dialog. > > @Prasad: Wicket filters out any JS or CSS resource at the client side if it > is already loaded. I.e. The server may contri

Re: Wicket jQuery js loaded twice when modal window opened

2014-10-30 Thread Martin Grigorov
@Maxim, It seems you didn't read the message till the end. It says that it uses JQuery UI Dialog. @Prasad: Wicket filters out any JS or CSS resource at the client side if it is already loaded. I.e. The server may contribute