Re: AjaxButton in Wicket 6.0

2012-06-04 Thread Martin Grigorov
Hi, As Vineet said there is a link in the migration page to a more detailed page about how Ajax works in Wicket 6. Since there is no script to decorate (because we don't use inline attributes anymore but event registration) the old AjaxCallDecorator is removed. The new way is: @Override

Re: AjaxButton in Wicket 6.0

2012-06-04 Thread Michal Margiel
Thanks a lot. 2012/6/4 Martin Grigorov mgrigo...@apache.org Hi, As Vineet said there is a link in the migration page to a more detailed page about how Ajax works in Wicket 6. Since there is no script to decorate (because we don't use inline attributes anymore but event registration) the

CSS3, PIE behavior and image resources

2012-06-04 Thread Dirk Forchel
Hi, we have to use PIE (see http://css3pie.com/ http://css3pie.com/ ) to make IE7 and IE8 capable of rendering CSS3 decoration features. We use a shared resource mount to have an absolute URL in our CSS file (see also https://issues.apache.org/jira/browse/WICKET-3046

Re: CSS3, PIE behavior and image resources

2012-06-04 Thread Martin Grigorov
Hi, You can use org.apache.wicket.request.UrlRenderer#renderRelativeUrl(Url) to render relative url to your special resource. As a parameter use org.apache.wicket.request.UrlRenderer#getBaseUrl() which should return the current page's url. On Mon, Jun 4, 2012 at 10:08 AM, Dirk Forchel

Apache Wicket 1.5.7 is released

2012-06-04 Thread Martin Grigorov
This is the seventh maintenance release of the Wicket 1.5.x series. This release brings over 26 bug fixes and improvements. Git tag: release/wicket-1.5.7 Changelog: https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12310561version=12321241 Maven: dependency

Re: CSS3, PIE behavior and image resources

2012-06-04 Thread Dirk Forchel
Hi Martin, actually I don't get it. How should I use org.apache.wicket.request.UrlRenderer within a CSS file? At the moment I prepare a quickstart application for our problem. Maybe this helps to get an impression how it should work. -- View this message in context:

Re: CSS3, PIE behavior and image resources

2012-06-04 Thread Martin Grigorov
Load this .css file with (Package)TextTemplate and substitute a placeholder for the url. On Mon, Jun 4, 2012 at 10:16 AM, Dirk Forchel dirk.forc...@exedio.com wrote: Hi Martin, actually I don't get it. How should I use org.apache.wicket.request.UrlRenderer within a CSS file? At the moment I

Re: Conditional Popup

2012-06-04 Thread hfriederichs
No suggestions? Anyone? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Conditional-Popup-tp4649649p4649706.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe,

Re: Conditional Popup

2012-06-04 Thread Thomas Götz
What about the AjaxLink alternative I already suggested? -Tom On 04.06.2012 at 09:35 hfriederichs wrote: No suggestions? Anyone? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands,

Re: Conditional Popup

2012-06-04 Thread hfriederichs
Thomas Götz-2 wrote As an alternative, you could use an AjaxLink and push the popup-opener JS to teh frontend, then you could have your decision logic (wether to open it or not) in the backend (Wicket layer). But, how would you do that? if (condition) { info(Do this first); }

Re: Conditional Popup

2012-06-04 Thread Thomas Götz
On 04.06.2012 at 13:21 hfriederichs wrote: Thomas Götz-2 wrote As an alternative, you could use an AjaxLink and push the popup-opener JS to teh frontend, then you could have your decision logic (wether to open it or not) in the backend (Wicket layer). But, how would you do that?

Re: wicket ajax push

2012-06-04 Thread Douglas Ferguson
Yeah.. I was looking at both of those. I was curious if anybody had any anecdotal or empirical evidence supporting either approach. The client is currently using a polling approach and I have some concerns about wasted resources. Also, the deadline is a little tight, so I'm not sure if I want

wicket 1.6

2012-06-04 Thread Douglas Ferguson
Is there a projected release date for wicket 1.6? Just curious because I'm starting a new project and am trying to decide if I should start it using 1.6. Douglas - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For

Re: wicket 1.6

2012-06-04 Thread Martin Grigorov
As soon as people start using it and send feedback ... On Mon, Jun 4, 2012 at 5:29 PM, Douglas Ferguson the...@gmail.com wrote: Is there a projected release date for wicket 1.6? Just curious because I'm starting a new project and am trying to decide if I should start it using 1.6. Douglas

Re: wicket 1.6

2012-06-04 Thread vineet semwal
as soon as it will be released,people will start using it ;) On Mon, Jun 4, 2012 at 8:03 PM, Martin Grigorov mgrigo...@apache.org wrote: As soon as people start using it and send feedback ... On Mon, Jun 4, 2012 at 5:29 PM, Douglas Ferguson the...@gmail.com wrote: Is there a projected release

Re: wicket 1.6

2012-06-04 Thread Dan Tran
totally agree with Vineet here. -D On Mon, Jun 4, 2012 at 7:59 AM, vineet semwal vineetsemwal1...@gmail.com wrote: as soon as it will be released,people will start using it ;) On Mon, Jun 4, 2012 at 8:03 PM, Martin Grigorov mgrigo...@apache.org wrote: As soon as people start using it and

Re: wicket 1.6

2012-06-04 Thread Martin Grigorov
On Mon, Jun 4, 2012 at 6:25 PM, Dan Tran dant...@gmail.com wrote: totally agree with Vineet here. The problem is that once we release the first Release Candidate it is not possible (recommended) to make fixes in the APIs. As far as I know there are no open tickets for bugs in Wicket 6.0.0-beta2

portlet support in 1.5 1.6?

2012-06-04 Thread nino martinez wael
So is there any? -- Best regards / Med venlig hilsen Nino Martinez

Re: Component-specific javascript in Ajax-Calls

2012-06-04 Thread Thomas Götz
What about this? public class MyComponent extends Panel { public MyComponent(String id) { super(id); setOutputMarkupId(true); } @Override public void renderHead(IHeaderResponse response) { response.renderOnDomReadyJavaScript( $('# +

Re: Component-specific javascript in Ajax-Calls

2012-06-04 Thread Jürgen Lind
Thomas, thanks for this hint, didn't know about that... So the script is executed every time the component is updated in an ajax call, correct? If so, it would surely solve some of my issues. For longer scripts, I would still prefer to have them in the markup file (might be different if we

Re: Component-specific javascript in Ajax-Calls

2012-06-04 Thread Martin Grigorov
On Mon, Jun 4, 2012 at 10:01 PM, Jürgen Lind juergen.l...@iteratec.de wrote: Thomas, thanks for this hint, didn't know about that... So the script is executed every time the component is updated in an ajax call, correct? If so, it would surely solve For every rerender of the component. That

Re: Component-specific javascript in Ajax-Calls

2012-06-04 Thread Jürgen Lind
Thanks Martin, maybe I should have asked before trying to invent my own stuff... Anyway, developing a new wicket tag was some kind of fun as well... J. On 04.06.2012 21:10, Martin Grigorov wrote: On Mon, Jun 4, 2012 at 10:01 PM, Jürgen Lindjuergen.l...@iteratec.de wrote: Thomas, thanks

Re: Component-specific javascript in Ajax-Calls

2012-06-04 Thread Thomas Götz
… or you could put your Javascript code into a template, e.g. like that: MyComponent.js.tmpl: $('#${markupId} .ttr').tipTip({defaultPosition: 'right'}); // ... some long Javascript block …. and in MyComponent.java you'd have: --- public

Re: Component-specific javascript in Ajax-Calls

2012-06-04 Thread Martin Grigorov
On Mon, Jun 4, 2012 at 10:22 PM, Jürgen Lind juergen.l...@iteratec.de wrote: Thanks Martin, maybe I should have asked before trying to invent my own stuff... Anyway, developing a new wicket tag was some kind of fun as well... I'm glad you have fun but I highly recommend staying away from

Re: portlet support in 1.5 1.6?

2012-06-04 Thread Michal Margiel
Hello, I have very, very little experience with portlet (and to be honest I am not very keen in getting more ;) ). And I have to surprise you - because I share your opinion about portlets sand portals. But I noticed lately that corporations like to say that whey offer portal for their clients and

Re: Component-specific javascript in Ajax-Calls

2012-06-04 Thread Jürgen Lind
Martin, ok, I will think about going to one of the ideas Thomas suggested. I still like the idea that I have my javascript only in the markup file and nothing in the Java class, though... Thanks again, J. On 04.06.2012 21:25, Martin Grigorov wrote: On Mon, Jun 4, 2012 at 10:22 PM, Jürgen