Re: Unit testing for a page

2012-11-29 Thread Martin Grigorov
Hi Anatoly, You are doing it right. To be able to verify that the other page is the response this other page have to be properly rendered, otherwise you would receive InternalErrorPage instead. To render it Wicket uses the normal rendering process so you need all prerequisites ... You can use

Re: understanding ajax response

2012-11-29 Thread Martin Grigorov
Hi, When you use target.prependJavaScript(some JS code) this generates priority-evaluate. When you use target.appendJavaScript(some JS code) - evaluate. The difference is that the priority ones are executed first on the client side, then the components added with target.add() are replaced and

Re: Dynamic Components

2012-11-29 Thread Martin Grigorov
On Thu, Nov 29, 2012 at 7:00 AM, Chris Colman chr...@stepaheadsoftware.comwrote: Martin The approach of adding the Sub/Details Panel to a DummyPage works fine for basic Panels, but there are a few problems I've hit: 1. onInitialize() isnt called - Im assuming this is because the Panel

Re: understanding ajax response

2012-11-29 Thread Martin Grigorov
The suggested solution wont work: https://issues.apache.org/jira/browse/WICKET-4675?focusedCommentId=13506367page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13506367 On Thu, Nov 29, 2012 at 9:19 AM, Martin Grigorov mgrigo...@apache.orgwrote: Hi, When you use

RE: multiple requests and StalePageException

2012-11-29 Thread Michal Wegrzyn
Problem comes from 3rd party library that does some extra actions along applet's 3 requests. Library actions trigger extra GET requests for a whole page ( for example http://server/app/?2 ), Which are the reason of StalePageException during calling javascript from applet. I must still debug to

RE: How important is detaching models really ?

2012-11-29 Thread Chris Colman
A similar scenario applies when using Wicket with JDO. You can use simple LDM when dealing with read only model objects. However, when you deal with model objects that are the subject of modification in a form you need to use JDO's detach/reattach mechanism which allows the form elements to keep

What is Atmosphere doing wrong so i cant debug the websocket

2012-11-29 Thread MattyDE
Hi Folks, iam using Wicket 6.2.0 with Wicket-Atmosphere 0.4 and everything works great, but Iam not able to debug the websocket-transfer in Chrome Debug-Tools like its explained and working here : http://blog.kaazing.com/2012/05/09/inspecting-websocket-traffic-with-chrome-developer-tools/ Is

Re: Authorization without redirect

2012-11-29 Thread Karsten Gaul
Hi Ernesto, Thanks but this isn't really what I was looking for as it is too simple to remove the Modal Window from the DOM tree and see the already rendered hidden page without entering a PIN. I'd use normal Modal Windows for every link to the PIN protected page but this wouldn't cover

Re: Authorization without redirect

2012-11-29 Thread Ernesto Reinaldo Barreiro
Hi, On Thu, Nov 29, 2012 at 1:38 PM, Karsten Gaul karsten.g...@exedio.comwrote: Hi Ernesto, Thanks but this isn't really what I was looking for as it is too simple to remove the Modal Window from the DOM tree and see the already rendered hidden page without entering a PIN. Don't put the

Re: Authorization without redirect

2012-11-29 Thread Ernesto Reinaldo Barreiro
Hi. On Thu, Nov 29, 2012 at 1:52 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Hi, On Thu, Nov 29, 2012 at 1:38 PM, Karsten Gaul karsten.g...@exedio.comwrote: Hi Ernesto, Thanks but this isn't really what I was looking for as it is too simple to remove the Modal Window from

Re: What is Atmosphere doing wrong so i cant debug the websocket

2012-11-29 Thread Nick Pratt
Are you sure web socket connection was established? Maybe your connection is long-polling. N On Nov 29, 2012 7:36 AM, MattyDE ufer.mar...@gmail.com wrote: Hi Folks, iam using Wicket 6.2.0 with Wicket-Atmosphere 0.4 and everything works great, but Iam not able to debug the websocket-transfer

Re: What is Atmosphere doing wrong so i cant debug the websocket

2012-11-29 Thread MattyDE
How should i test this? I did no special configuration and testing it with the latest google chrome, which supports WebSockets. I think the atmosphere implementation tests on clientside which type of transfer is possible (WebSocket, SSE, Long-Polling etc.) -- View this message in context:

Re: What is Atmosphere doing wrong so i cant debug the websocket

2012-11-29 Thread Martin Grigorov
Atmosphere checks both the client and the server capabilities to decide which transport to use. Some web servers do not support WebSocket. On Thu, Nov 29, 2012 at 2:18 PM, MattyDE ufer.mar...@gmail.com wrote: How should i test this? I did no special configuration and testing it with the

Re: What is Atmosphere doing wrong so i cant debug the websocket

2012-11-29 Thread Martin Grigorov
7.0.27 added support for WebSockets On Thu, Nov 29, 2012 at 2:32 PM, MattyDE ufer.mar...@gmail.com wrote: Oh okay.. iam Using Tomcat 7.0.12 without any special configuration -- View this message in context:

Re: wicket:link + component images

2012-11-29 Thread Sandor Feher
The problem has nothing to do with html tags nor the wicket handles resources. It's related to TinyMCE. The editor set this for emoticons src=../../plugins/emotions/img/smiley-.gif This won't work because the gifs are inside wicket.contrib.tinymce.jar and they not supposed to be located

events between pages

2012-11-29 Thread Michal Wegrzyn
Hi, I would like to send event from iframe to parent page which has multiple iframes. Event framework makes it possible to use application or session as sinks, but event affects only page from which event was sent. Why events which have session/application as sinks are not propagated to all

Re: events between pages

2012-11-29 Thread Martin Grigorov
On Thu, Nov 29, 2012 at 2:56 PM, Michal Wegrzyn michal.wegr...@onior.comwrote: Hi, I would like to send event from iframe to parent page which has multiple iframes. Event framework makes it possible to use application or session as sinks, but event affects only page from which event was

Re: Dynamic Components

2012-11-29 Thread Nick Pratt
This works great! Many thanks. I made a small addition to allow the markupId to be passed in via a new constructor - this is for the case where a JS component/lib creates new elements and inserts them into a specific place in the DOM - I pass the new ID back via an Ajax call, and then let the

Re: What is Atmosphere doing wrong so i cant debug the websocket

2012-11-29 Thread Nick Pratt
Its likely your web server capabilities / configuration On Thu, Nov 29, 2012 at 8:18 AM, MattyDE ufer.mar...@gmail.com wrote: How should i test this? I did no special configuration and testing it with the latest google chrome, which supports WebSockets. I think the atmosphere implementation

RE: events between pages

2012-11-29 Thread Michal Wegrzyn
Thanks Martin. What is the pageId parameter in getPageManager().getPage(pageId)? Component id or page version id (present in url)? For session I would expect all most recent versions of visited pages for a current user. For application the same but for all users. Best regards, Michal Wegrzyn

Re: events between pages

2012-11-29 Thread Martin Grigorov
On Thu, Nov 29, 2012 at 3:11 PM, Michal Wegrzyn michal.wegr...@onior.comwrote: Thanks Martin. What is the pageId parameter in getPageManager().getPage(pageId)? Component id or page version id (present in url)? The id from the url. See Page#getPageReference() For session I would expect

RE: events between pages

2012-11-29 Thread Michal Wegrzyn
Recent = one. It would be security issue only if event API has some holes :) Anyway it would be quite handy to send for example some info events to all logged users. Best regards, Michal Wegrzyn -Original Message- From: Martin Grigorov [mailto:mgrigo...@apache.org] Sent: Thursday,

Re: events between pages

2012-11-29 Thread Martin Grigorov
You can do this. You can use either wicket-atmosphere or wicket-native-websocket to push data to the clients. On Thu, Nov 29, 2012 at 3:36 PM, Michal Wegrzyn michal.wegr...@onior.comwrote: Recent = one. It would be security issue only if event API has some holes :) Anyway it would be quite

RE: events between pages

2012-11-29 Thread Michal Wegrzyn
-Original Message- From: Martin Grigorov [mailto:mgrigo...@apache.org] Sent: Thursday, November 29, 2012 15:43 To: users@wicket.apache.org Subject: Re: events between pages You can do this. You can use either wicket-atmosphere or wicket-native-websocket to push data to the

Re: events between pages

2012-11-29 Thread Martin Grigorov
On Thu, Nov 29, 2012 at 4:28 PM, Michal Wegrzyn michal.wegr...@onior.comwrote: -Original Message- From: Martin Grigorov [mailto:mgrigo...@apache.org] Sent: Thursday, November 29, 2012 15:43 To: users@wicket.apache.org Subject: Re: events between pages You can do this. You

RE: events between pages

2012-11-29 Thread Michal Wegrzyn
-Original Message- From: Martin Grigorov [mailto:mgrigo...@apache.org] Sent: Thursday, November 29, 2012 16:33 To: users@wicket.apache.org Subject: Re: events between pages On Thu, Nov 29, 2012 at 4:28 PM, Michal Wegrzyn michal.wegr...@onior.comwrote: -Original

Re: events between pages

2012-11-29 Thread Martin Grigorov
On Thu, Nov 29, 2012 at 4:50 PM, Michal Wegrzyn michal.wegr...@onior.comwrote: -Original Message- From: Martin Grigorov [mailto:mgrigo...@apache.org] Sent: Thursday, November 29, 2012 16:33 To: users@wicket.apache.org Subject: Re: events between pages On Thu, Nov 29, 2012

RE: events between pages

2012-11-29 Thread Michal Wegrzyn
-Original Message- From: Martin Grigorov [mailto:mgrigo...@apache.org] Sent: Thursday, November 29, 2012 16:57 To: users@wicket.apache.org Subject: Re: events between pages On Thu, Nov 29, 2012 at 4:50 PM, Michal Wegrzyn michal.wegr...@onior.comwrote: -Original

Re: understanding ajax response

2012-11-29 Thread saty
Most of these are coming from using IndicatingAjaxLink link = new IndicatingAjaxLink(link) That launches a model window. The data grid i have , many rows (hence every cell on that row) have a AJAX link that opens a model window to show more details. I don't have anything else that is adding java

Re: Unit testing for a page

2012-11-29 Thread Eric Jablow
On Wed, Nov 28, 2012 at 3:56 PM, Anatoly Kupriyanov kan@gmail.com wrote: wicketTester.clickLink(myLink); The WicketTester renders another page, the page rendering requires a lot of other injected dependencies, and the unit test set-up grows too much making the test fragile. I just want

Validators in Wicket 6

2012-11-29 Thread Hobbes00uk
I'm hoping someone can help me with my understanding. I've been updating my website to Wicket 6. In doing that the DateConverter I was applying to a field has started throwing a class cast exception. After some work, I made the problem go away, by checking the class parameter in the over-ridden

Re: Validators in Wicket 6

2012-11-29 Thread Sven Meier
checking the class parameter in the over-ridden getConverter(Class type) method and only returning the DateConverter for a date object Yes, you have to check the type parameter, as other types than the component's model type might need a converter. With WICKET-4608 all variables in error

Re: Unit testing for a page

2012-11-29 Thread Anatoly Kupriyanov
On 29 November 2012 08:03, Martin Grigorov mgrigo...@apache.org wrote: Hi Anatoly, You are doing it right. To be able to verify that the other page is the response this other page have to be properly rendered, otherwise you would receive InternalErrorPage instead. To render it Wicket uses

Re: Unit testing for a page

2012-11-29 Thread Anatoly Kupriyanov
On 29 November 2012 16:55, Eric Jablow erjab...@gmail.com wrote: wicketTester.clickLink(myLink); The WicketTester renders another page, the page rendering requires a lot of other injected dependencies, and the unit test set-up grows too much making the test fragile. I just want to

RE: Dynamic Components

2012-11-29 Thread Chris Colman
Martin The approach of adding the Sub/Details Panel to a DummyPage works fine for basic Panels, but there are a few problems I've hit: 1. onInitialize() isnt called - Im assuming this is because the Panel doesnt go through a normal lifecycle before being rendered back to the ART? 2. None

Pages, Panels, and Dependency Injection

2012-11-29 Thread William Speirs
I'm having trouble understanding how to inject components into a page so that the page will be easy to unit test later. Say I have a page that contains two panels. I can easily use constructor injection to inject these panels into the page: class MyPage extends WebPage { @Inject public

select2 integration -Duplicate(selected) value are appear in drop down box

2012-11-29 Thread Madasamy mcruncher
we are using select2 version 2.0 in our application. Select2MultiChoice field are using for select a multiple value. here we set the maximumselectionsize is 20. and set minimuminputlength is 1.when we give input in that field the relevant value are appear in drop down box correctly, if selection

Re: select2 integration -Duplicate(selected) value are appear in drop down box

2012-11-29 Thread Thomas Götz
Can you please post your FooProvider implementation? -Tom On 30.11.2012, at 05:31, Madasamy mcruncher madas...@mcruncher.com wrote: we are using select2 version 2.0 in our application. Select2MultiChoice field are using for select a multiple value. here we set the maximumselectionsize