Re: Introducing wicket-continuous-calendar

2013-01-30 Thread Martin Grigorov
Hi Paul, Thanks for sharing! Few minor comments - you should move to Wicket 6. Then you wont need to handle css/js dependency management yourself :-) - ContinuousCalendar has this code: if( !tag.getName().equalsIgnoreCase(div) ) { throw new WicketRuntimeException(a

Problem Modal Windows in datatable

2013-01-30 Thread Antonio muñoz alonso
Hi.as I can put inside a datatable for each row, a link that calls a modal windowsThanks.

Re: Problem Modal Windows in datatable

2013-01-30 Thread Martin Grigorov
Hi, Please read http://www.catb.org/esr/faqs/smart-questions.html On Wed, Jan 30, 2013 at 10:08 AM, Antonio muñoz alonso antoniovalenciasp...@hotmail.com wrote: Hi.as I can put inside a datatable for each row, a link that calls a modal windowsThanks. -- Martin Grigorov jWeekend

Obervation with ajax links and multible tabs

2013-01-30 Thread Thomas Götz
I observed a the following phenomenon: - I have a blank WebPage with just a single AjaxLink on it - I load this page in two browser tabs - I click on link in tab1: fine - ajax call triggered - I change to tab2 and click link - no ajax call, instead the whole page is reloaded, if I click the

Re: Obervation with ajax links and multible tabs

2013-01-30 Thread Martin Grigorov
Hi, Yes, this is expected behavior. Each page has render counter ( https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/Page.java#L123) that is used to detect that a page is not stale. I'll move this documentation to the getter method because I see it is not

Re: Obervation with ajax links and multible tabs

2013-01-30 Thread Thomas Götz
Ok thanks for that info! -Tom On 30.01.2013, at 12:05, Martin Grigorov mgrigo...@apache.org wrote: Hi, Yes, this is expected behavior. Each page has render counter ( https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/Page.java#L123) that is used

Re: Obervation with ajax links and multible tabs

2013-01-30 Thread Thomas Götz
My problem with this currently is: - user opens same page in two different tabs - user opene a modal dialog on that page in both tabs - modal dialog has some logic bound to it's close() method - user closes modal dialog in tab 1: logic gets executed - fine - user changes to tab 2 and tries to

Re: Obervation with ajax links and multible tabs

2013-01-30 Thread Martin Grigorov
I can see how this causes you problems. But renderCount protection is only per page instance, i.e. only when you copy the url of a stateful page (including ?pageId) and use it open the very same page instance in a second tab. Without this protection you will have many other problems. For example

Re: Obervation with ajax links and multible tabs

2013-01-30 Thread Thomas Götz
On 30.01.2013, at 12:55, Martin Grigorov mgrigo...@apache.org wrote: I can see how this causes you problems. But renderCount protection is only per page instance, i.e. only when you copy the url of a stateful page (including ?pageId) and use it open the very same page instance in a second

Re: after migration to 1.5 I get java.lang.IllegalStateException: Header was already written to response!

2013-01-30 Thread Paul Szulc
Wow! Thank you very much for the response, I will try it right away. On Wed, Jan 16, 2013 at 2:47 AM, Barrett Snyder barret...@gmail.com wrote: I had this same issue and tracked it down to IE9. In my case IE9 was first requesting a page in Quirks mode and then midway through requesting

Re: Obervation with ajax links and multible tabs

2013-01-30 Thread Martin Grigorov
On Wed, Jan 30, 2013 at 1:05 PM, Thomas Götz t...@decoded.de wrote: On 30.01.2013, at 12:55, Martin Grigorov mgrigo...@apache.org wrote: I can see how this causes you problems. But renderCount protection is only per page instance, i.e. only when you copy the url of a stateful page

Re: Obervation with ajax links and multible tabs

2013-01-30 Thread Thomas Götz
On 30.01.2013, at 13:25, Martin Grigorov mgrigo...@apache.org wrote: OK, you didn't buy it. I'm just looking for testers for Native WebSocket ;-) I nearly did! At least, I thought about it for some minutes ;-) Simpler solution: use AjaxNewWindowNotifiyingBehavior and when onNewWindow() is

Re: JQuery - best practice

2013-01-30 Thread Pieter Claassen
Ernesto/Sebastien, I am stuck :-( Firstly, thanks for the resizablePanel in wicket-jquery-ui, but I have to hold off until this code is implemented in a behavior since my inheritance doesn't match your project (I cannot inherit from resizablePanel). I looked at what was available in wiquery and

Re: JQuery - best practice

2013-01-30 Thread Ernesto Reinaldo Barreiro
Pieter, Look at this example. http://antiliasoft.com/wiquery-plugins/?wicket:bookmarkablePage=:com.wiquery.plugins.demo.ResizablePage and click on the ? at the left corner/. It is exactly what you want... Wiquery already have a ResizableAjaxBehavior that hooks into stopEvent. Fell free to copy

Re: JQuery - best practice

2013-01-30 Thread Pieter Claassen
Ernesto, I cannot find any code in wiquery-6.2.0. that hooks into the stopEvent. The example you provided seems to still force a round trip on any change, not just on stopEvent. Maybe I am daft, but I don't see any code that does this? I assume one can extend ResizableBehaviour and add the

Re: Introducing wicket-continuous-calendar

2013-01-30 Thread Paul Bors
Will do, thank you. As for Wicket 6 we first have to migrate out webapp at work and that's awaiting an estimate and prioritization. I'll try to move this little project to it ahead of our migration so other Wicket-era can benefit :) ~ Thank you, Paul C Bors On Jan 30, 2013, at 3:22,

EVENT CHECK GROUP

2013-01-30 Thread lc991
how can I insert an event on groupCheck change? CheckGroup cg = new CheckGroup(numbersCheckGroup,new Model(nome)){ //i should do a delete operation } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/EVENT-CHECK-GROUP-tp4655928.html Sent from the

Re: JQuery - best practice

2013-01-30 Thread Pieter Claassen
Ok, I just implemented my own. Seems to work. In my code MyResizableBehavior resizableBehavior = new MyResizableBehavior(); resizableBehavior.setStopEvent(new MyResizableBehavior.AjaxResizeStopCallback() { @Override protected void resize(AjaxRequestTarget

Re: EVENT CHECK GROUP

2013-01-30 Thread Martin Grigorov
cg.add(new org.apache.wicket.ajax.form.AjaxFormChoiceComponentUpdatingBehavior(click) { ... }) On Wed, Jan 30, 2013 at 3:34 PM, lc991 lorenzoc...@live.it wrote: how can I insert an event on groupCheck change? CheckGroup cg = new CheckGroup(numbersCheckGroup,new Model(nome)){

Re: JQuery - best practice

2013-01-30 Thread Ernesto Reinaldo Barreiro
Hi, On Wed, Jan 30, 2013 at 3:15 PM, Pieter Claassen pie...@musmato.com wrote: Ernesto, I cannot find any code in wiquery-6.2.0. that hooks into the stopEvent. The example you provided seems to still force a round trip on any change, not just on stopEvent. Maybe I am daft, but I don't see

Re: JQuery - best practice

2013-01-30 Thread Ernesto Reinaldo Barreiro
Good that you where able to solve your problem! On Wed, Jan 30, 2013 at 3:53 PM, Pieter Claassen pie...@musmato.com wrote: Ok, I just implemented my own. Seems to work. In my code MyResizableBehavior resizableBehavior = new MyResizableBehavior();

Re: EVENT CHECK GROUP

2013-01-30 Thread lc991
thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/EVENT-CHECK-GROUP-tp4655928p4655934.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail:

Re: How to disable ByteArrayResource cache?

2013-01-30 Thread Celia Xu
Thanks for reply. But it did not solve the problem. After manually cleared browser's cache. the pdf's popup window doesn't show any data whereas the excel file only write first tab's data. My webpage's structure as shown in the image.

[6.5.0] Ajax regression on Chrome

2013-01-30 Thread Pierre Goupil
Good evening, I've been through a strange behavior since I upgraded my Linux box to Chrome 24 (latest stable release, I believe). To put it shortly, the Ajax links reload the page, hence their actions are mostly not taken into account. I've created:

Re: JQuery - best practice

2013-01-30 Thread Sebastien
Hi, @Pieter, Yes, a Panel was definitely not the best idea, it would have been better to have - for the moment at least - a WebMarkupContainer as I planned as the beginning. I did a try on Martin's and Ernesto's suggestion(s) (handling callbacks in behaviors, in addition to a Listener/Adapter). I

Re: [6.5.0] Ajax regression on Chrome

2013-01-30 Thread Martijn Dashorst
Did you create a bug report at chrome? Sounds like a bug in their browser rather than in wicket. Martijn On Wed, Jan 30, 2013 at 9:00 PM, Pierre Goupil goupilpie...@gmail.com wrote: Good evening, I've been through a strange behavior since I upgraded my Linux box to Chrome 24 (latest stable

Re: [wicket-atmosphere] resource UUID

2013-01-30 Thread Pierre Goupil
Good evening, I managed to have it work, at long last. What happened is that in the quickstart I provided, I issued a EventBus.get().post(event, pageUuid) and it worked as expected: I was able to post an event to only one client of my choice. Unfortunately, in my project, which makes heavy use

Re: [6.5.0] Ajax regression on Chrome

2013-01-30 Thread Pierre Goupil
I must admit that I don't know their workflow. But I guess that it is far heavier and time-consuming than that of Wicket, right? Could you please see if you can find a work-around? What I'm afraid of, is that they could say: we know nothing about your Wicket thing, we support GWT and Angular.js,

Re: [6.5.0] Ajax regression on Chrome

2013-01-30 Thread Martijn Dashorst
So, Wicket 6.5.0 works in IE, FF, Safari and Chrome 23. Now you install Chrome 24 and it stops working, and that is Wicket's problem? Chrome is a fricking browser, it supports the web. Wicket is part of the web, and its javascript is nothing special (i.e. based on jquery). Chrome apparently

Re: [6.5.0] Ajax regression on Chrome

2013-01-30 Thread Martijn Dashorst
Please try the Ajax examples at: http://www.wicket-library.com/wicket-examples-6.0.x/ajax/links to see if they work. Chrome 24 on OS X does work as advertised. Martijn On Wed, Jan 30, 2013 at 9:42 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: So, Wicket 6.5.0 works in IE, FF, Safari

Re: [6.5.0] Ajax regression on Chrome

2013-01-30 Thread Pierre Goupil
Maybe I could investigate on jQuery? If they have an open bug or a work-around? After all, one of its principles is to abstract you from browsers différences. What do you think? I really need a hand... Le 30 janv. 2013 21:43, Martijn Dashorst martijn.dasho...@gmail.com a écrit : So, Wicket

Re: [6.5.0] Ajax regression on Chrome

2013-01-30 Thread Martijn Dashorst
I think it is an issue of either your chrome installation (try re-installing) or a bug is introduced in chrome 24 for linux, as it doesn't affect chrome 24 running on OS X, and as you say, chrome 23 did work. Reinstall chrome, see if it works, otherwise file a bug report with chrome developers

Re: [6.5.0] Ajax regression on Chrome

2013-01-30 Thread Pierre Goupil
OK, I'll do that and come again when I have more news. Thanks! On Wed, Jan 30, 2013 at 9:53 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: I think it is an issue of either your chrome installation (try re-installing) or a bug is introduced in chrome 24 for linux, as it doesn't

Ad dynamic javascript to a component

2013-01-30 Thread divad91
Hi, I would like to add javascript inside a panel. The problem is that I need to get server informations inside the javascript. I know we can an abstract behavior and add the javascript in the header by overriding the renderHead method but i don't want my script in the head. I would like my

Re: [6.5.0] Ajax regression on Chrome

2013-01-30 Thread Martin Grigorov
Ajax works fine in my apps with Chrome 24, 25 and 26. OS: Ubuntu. I'll check your quickstart tomorrow. Please test at wicket-library.com, as Martijn requested. On Wed, Jan 30, 2013 at 9:59 PM, Pierre Goupil goupilpie...@gmail.comwrote: OK, I'll do that and come again when I have more news.

Re: JQuery - best practice

2013-01-30 Thread Martin Grigorov
Sebastien, I'll be glad to help you if I can! Just let me know when you are ready. On Wed, Jan 30, 2013 at 9:19 PM, Sebastien seb...@gmail.com wrote: Hi, @Pieter, Yes, a Panel was definitely not the best idea, it would have been better to have - for the moment at least - a

Wicketstuff datatables no 6.4.0 release

2013-01-30 Thread Tom Eicher
Hello, while all other wicketstuff components I checked do have a 6.4.0 release, the datatables stops at 1.5-rc2.1 : http://repo1.maven.org/maven2/org/wicketstuff/datatables/ I was able to locate a jar in WEB-INF/lib/ of

Re: How to give a dynamic name to a modal window title?

2013-01-30 Thread Ernesto Reinaldo Barreiro
Hi, It is update every time modal is shown I think, look getWindowOpenJavaScript() method. It contains Object title = getTitle() != null ? getTitle().getObject() : null; if (title != null) { appendAssignment(buffer, settings.title, escapeQuotes(title.toString())); } and show public void