Re: Highlight current/clicked AjaxLink

2011-03-28 Thread Marco Springer
Hi Mansour For reloading different pages I'm using BookmarkablePageLink (non-ajax), that have the option for setAutoEnable(true)'. When this option is set for each BookmarkablePageLink and one BookmarkablePageLink is clicked on the website, the generated HTML for that link is changed. For

Re: Apache Wicket Cookbook Published!

2011-04-12 Thread Marco Springer
Just a general question about packthub... I've ordered the printed version on the 26th of March, from the Netherlands, but I haven't received it yet. Did someone else also order the printed version? If so, did you receive it yet or should I be worried now ;-) Cheers, Marco On 2 April 2011

Re: Authentication and sessions - the right way?

2011-10-03 Thread Marco Springer
I sort of use the same thing, storing the user in the Session. Only I store a LoadableDetachableModel in the Session, representing the user. In my scenario, the LDM is a custom Model and the key identifier is a Long number, but that shouldn't be a difference. And the injection happens in

Re: Authentication and sessions - the right way?

2011-10-03 Thread Marco Springer
Each browser opens up a new session, that's no actual problem. Sessions are pretty thread safe (correct me if I'm wrong) when they're accessed from request threads (normal Wicket application flow). If Browser #1 changes something to user data or some other db data, and Browser #2 fires a new

WiQuery disabling tabs

2012-01-16 Thread Marco Springer
Hi all, *The problem: * tabs not disabled on first render. *The source:* I'm adding the Tabs class from WiQuery 1.2.4 like so: tabs = new Tabs(tabs); tabs.setOutputMarkupId(true); CompoundPropertyModelWafer waferModel = new CompoundPropertyModelWafer(getDefaultModel()); tabs.add(new

Re: WiQuery disabling tabs

2012-01-17 Thread Marco Springer
this is faulty or has a better solution, I'd like to know! Kind regards, Marco On 16 January 2012 17:20, Marco Springer marcosprin...@gmail.com wrote: Hi all, *The problem: * tabs not disabled on first render. *The source:* I'm adding the Tabs class from WiQuery 1.2.4 like so: tabs = new Tabs

Re: WiQuery disabling tabs

2012-01-17 Thread Marco Springer
Ah ofcourse! Tnx. On 17 January 2012 09:19, Martin Grigorov mgrigo...@apache.org wrote: On Tue, Jan 17, 2012 at 9:15 AM, Marco Springer marcosprin...@gmail.com wrote: If anyone cares, I found a solution... I'm guessing the previous solution isn't working because the statement

Re: WiQuery disabling tabs

2012-01-17 Thread Marco Springer
any tab after first render you should use an ajax call and call Tabs#disable(AjaxRequestTarget, int). If there is a bug in WiQuery then please report it here: http://code.google.com/p/wiquery/issues/entry Hielke Hoeve -Original Message- From: Marco Springer [mailto:marcosprin

Re: Error during start of wicket application

2012-02-29 Thread Marco Springer
those dependencies lists as well to find and clean up dependencies. Cheers, Marco Springer

Wicket+Atmosphere behind Apache proxy problems

2013-02-20 Thread Marco Springer
Hi all, I have the following scenario: A Jetty instance is running on port 8080 with URL: `http://localhost:8080/appl/test` The deployed Wicket application is using Atmosphere for push events. I've configured the Apache server as how it was explained on the following URL:

Re: Wicket+Atmosphere behind Apache proxy problems

2013-02-20 Thread Marco Springer
technology? On Wednesday 20 February 2013 15:53:14 Martin Grigorov wrote: Hi, Nginx latest release has support for WebSocket. There are many tweets about this last few days. If switching to Nginx is an option for you - try it. On Wed, Feb 20, 2013 at 3:44 PM, Marco Springer ma...@glitchbox.nl

Re: Wicket+Atmosphere behind Apache proxy problems

2013-02-20 Thread Marco Springer
it. On Wed, Feb 20, 2013 at 3:44 PM, Marco Springer ma...@glitchbox.nl wrote: Hi all, I have the following scenario: A Jetty instance is running on port 8080 with URL: `http://localhost:8080/appl/test` The deployed Wicket application is using Atmosphere for push events. I've configured

WiQuery jquery UI version upgrade

2013-03-22 Thread Marco Springer
Hi, I'm using the tooltip functionality from jQuery UI that has been introduced since version 1.9. To make that work I've done: addResourceReplacement(CoreUIJavaScriptResourceReference.get(), PxCoreUIJavaScriptResourceReference.get()); Which just includes the 1.10 version of jQuery and

Re: WiQuery jquery UI version upgrade

2013-03-22 Thread Marco Springer
Ah I feared as much. Thanks for the info (sorry for not looking it up on the issue tracker). Cheers. On Friday 22 March 2013 10:28:52 Ernesto Reinaldo Barreiro wrote: Hi, On Fri, Mar 22, 2013 at 10:23 AM, Marco Springer ma...@glitchbox.nl wrote: Hi, I'm using the tooltip

Adding a large amount of MarkupContainers into the ListView or RepeatingView

2013-03-26 Thread Marco Springer
Hi, Lets say I have about ~100.000 of MarkupContainer objects that I want to put into a ListView or RepeatingView. This works fine functional wise... It's rather slow though. It boils down to: MarkupContainer: 1309 private Component put(final Component child) 1310{ 1311int index

Re: Adding a large amount of MarkupContainers into the ListView or RepeatingView

2013-03-26 Thread Marco Springer
I'm building a Gantt like interface with Wicket (nearly finished). It was a requirement to see multiple years of planned items, in the extreme range even. I've down-tuned it to be around max ~3k (8 years) of components in that listview, through the power of persuasion and as a test. At 3k

Re: Adding a large amount of MarkupContainers into the ListView or RepeatingView

2013-03-26 Thread Marco Springer
item.setRenderBodyOnly(true) and your markup will be none the wiser. :) [1] https://github.com/apache/wicket/commit/0a321ea04887a3113e183b46ab20c1c5d702 2de0#wicket/src/java/wicket/MarkupContainer.java On Tue, Mar 26, 2013 at 9:23 AM, Marco Springer ma...@glitchbox.nl wrote: I'm building a Gantt

Re: Adding a large amount of MarkupContainers into the ListView or RepeatingView

2013-03-26 Thread Marco Springer
at client side. This same context could be used as context for AJAX interactions. Something like http://www.antiliasoft.com/wicket-angular-demo/ On Tue, Mar 26, 2013 at 5:23 PM, Marco Springer ma...@glitchbox.nlwrote: I'm building a Gantt like interface with Wicket (nearly finished

Re: Adding a large amount of MarkupContainers into the ListView or RepeatingView

2013-03-26 Thread Marco Springer
Actually, the performance problem was in the first row, well actually the header that was rendering all days in a week/month/year. Each data row itself has a lot less items. Each row has items that are absolutely positioned within the relatively positioned row. Each item can span over multiple

Re: Adding a large amount of MarkupContainers into the ListView or RepeatingView

2013-03-26 Thread Marco Springer
On Tuesday 26 March 2013 13:48:05 Igor Vaynberg wrote: On Tue, Mar 26, 2013 at 1:31 PM, Marco Springer ma...@glitchbox.nl wrote: Actually, the performance problem was in the first row, well actually the header that was rendering all days in a week/month/year. Each data row itself has

Re: AjaxLink with image

2013-03-27 Thread Marco Springer
The Markup is missing somehow but I'd say the following HTML should do the trick: a wicket:id=delete img src=# wicket:id=deleteImg/ /a Check the log if it isn't complaining that it can't find the delete.png file.. On Tuesday 26 March 2013 16:39:26 grazia wrote: The image in the AjaxLink does

Re: Set value in a textfield

2013-04-11 Thread Marco Springer
Construct it with a string? new TextField(markupId, Model.of(string)); or setModel(Model.of(string)); Without a model, no clue. Is there a specific reason why don't want to use a model? Cheers On Thursday 11 April 2013 04:57:04 grignette wrote: Hi ! Maybe it's an easy question with easy

Re: a book about Wicket 6.x

2013-04-11 Thread Marco Springer
http://code.google.com/p/wicket-guide/ On Thursday 11 April 2013 10:52:20 Yanal Jij wrote: Hi all, Any suggestions on books to learn Wicket 6.x , I tried the books on the Wicket website they are all about Wicket 1.5 (Wicket in Action and Enjoying Web development with Wicket). Thank you

Re: 1.4 - 6.0 question

2013-04-12 Thread Marco Springer
Hello Pierre, You can also just override/extend the onComponentTag function from the Component.: Component { @Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); tag.put(attribute, value) } } As far as I can see, SimpleAttributeModifier doesn't

Re: [wicket 6] Create/Register Spring Bean in wicket ?

2013-05-11 Thread Marco Springer
Maybe this is too simple but: Did you define this bean in the applicationContext.xml?: bean id=myobj class={impl. class}{possible properties}/bean And usually when I'm dealing with are objects that aren't wicket components, like models or the WebApplication object itself, I have to inject

Re: Draw inside Apache Wicket

2013-07-29 Thread Marco Springer
Hi, I've used http://jsplumbtoolkit.com and intergrated that library into my wicket application without too much work. It also allows for partial updates or complete repaints depending on the HTML structure that's currently rendered in the browser. Of course it depends on the requirements but

Re: Render email with Javascript

2013-07-30 Thread Marco Springer
I've used jasper reports for functionality like that. http://community.jaspersoft.com/ All it really requires is a jrxml file that can be turned into a jasper file. This in turn can be fed with data to produce charts or whatever. This jrxml can be designed with iReport, which is also freely

Re: Detecting when nothing is added to AjaxRequestTarget

2014-01-05 Thread Marco Springer
Hi Josh, We also had that ComponentNotFoundException problem so now and then. My experience might be a different than yours but I'll mention it anyway, you never know!. From my experience with our clients, when the client has to wait a bit longer, he/she re-clicks the same ajax link, where that

Re: Detecting when nothing is added to AjaxRequestTarget

2014-01-05 Thread Marco Springer
That's great! For tabbed panels that take a while to load I just apply lazy loading panels, that way that tab gets loaded immediately and an indicator is shown that the panel is being loaded. The user knows that the panel is being loaded and is unable to click any links on the old panel. I

Re: Detecting when nothing is added to AjaxRequestTarget

2014-01-05 Thread Marco Springer
That's what I use as well, depending on the scenario. Usually when there's a second modal window open, and closing that second modal requiring the first modal window to do a repaint on it's current content, I display a blocking layer, if the process takes longer than average (e.g. ~8 seconds).

Re: problem with message order delivered to wicket users list

2014-05-14 Thread Marco Springer
Aye, experiencing the same problem. On 2014-05-14 06:21, Ernesto Reinaldo Barreiro wrote: Hi, I the last couple of days I have been experiencing problems with the order of messages delivered to wicket users list: sometimes I receive an answer and then a few minutes after the original

wicket resources with nginx as frontend proxy

2014-05-19 Thread Marco Springer
quickstart tomorrow, not enough time for that now. Thanks in advance. Cheers, Marco Springer - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: wicket resources with nginx as frontend proxy

2014-05-23 Thread Marco Springer
, 2014 at 11:03 PM, Marco Springer ma...@glitchbox.nl wrote: Hi all, I'm trying to get something working that should be fairly easy, I think. I have Nginx sitting in-front of Jetty. An incoming URL could be: http://rage.glitchbox.nl/param1 The proxy should proxy this to: http://localhost

Re: NPE in AbstractSingleSelectChoice

2014-05-25 Thread Marco Springer
Haven't run the code but my guess is that the idValue returns a null instead of 0. Take a look at AbstractSingleSelectChoice.convertChoiceIdToChoice(String) line 281. (Wicket 6.15.0) if(renderer.getIdValue(choice, index).equals(id) This would trigger a NPE if a null is returned, which would be

Re: WebSocket Filter to open a Hibernate Session

2015-09-16 Thread Marco Springer
e called only once, so that's correct. Again thanks. Best Regards, Marco Springer On Tuesday 15 September 2015 18:06:51 Martin Grigorov wrote: > Hi, > > Servlet Filters are not used when sending messages in web socket > connection. This is how Servlets work at the moment. > &

WebSocket Filter to open a Hibernate Session

2015-09-15 Thread Marco Springer
Hibernate/Spring versions: haven't had time to migrate yet, too much to do!) Thank you very much in advance. Best regards, Marco Springer