Google Analytics and AJAX

2009-07-28 Thread John Armstrong
Is anyone doing this: http://www.google.com/support/googleanalytics/bin/answer.py?hl=en&answer=55519 If so can you share your code? If not I'll build it ;) John-

Re: Twenty Six Wicket Tricks

2009-07-28 Thread Fernando Wermus
+1 Wicket Cookbook On Tue, Jul 28, 2009 at 6:04 PM, taha siddiqi wrote: > +1 > "26 Wicket Tricks" or "Wicket Cookbook" or "Wicket Recipes" > > (Whenever I am trying something new I always try a cookbook, It later > on acts as a reference too) > > taha > > > On Wed, Jul 29, 2009 at 3:38 AM, Matej

Re: reuseitems problems

2009-07-28 Thread Martin Makundi
It might also be that it is wickettester related problem, maybe something goes somehow wrong there. I will try to make a quickstart. ** Martin 2009/7/29 Vladimir K : > > Hmm ... i can imagine the only case - somewhere resolveObject() method is > called during deserialization. > But I'm afraid you

Re: javascript effects before an ajax call

2009-07-28 Thread Antony Stubbs
I have a workaround and it goes a little something like this: Wicket.replaceOuterHtml=function(element, text) { new $(element.id).fade({ duration: 0.4, afterFinish: function(effect) { if (Wicket.Browser.isIE()) { Wicket.replaceOuterHtmlIE(element, text); } else if (Wicket.Browser.isSafa

Re: Twenty Six Wicket Tricks

2009-07-28 Thread taha siddiqi
+1 "26 Wicket Tricks" or "Wicket Cookbook" or "Wicket Recipes" (Whenever I am trying something new I always try a cookbook, It later on acts as a reference too) taha On Wed, Jul 29, 2009 at 3:38 AM, Matej Knopp wrote: > On Tue, Jul 28, 2009 at 11:55 PM, Vladimir K wrote: >> >> >> Matej Knopp-2

[problem] http://dliu-pc:8080/WB/../brainSideBar?wicket:interface=:1:comments:post::IFormSubmitListener::

2009-07-28 Thread Dapeng Liu
Hi, I am a rookie to Wicket and need help here. The problem may be easy for you but the detailed introduction is tedious. In one shortest sentence, the URL shown in the subject should be http://dliu-pc:8080/WB/brainSideBar?wicket:interface=:1:comments:post::IFormSubmitListener:: instead (i.e., pare

Re: will there be a performance gain to use singleton to remove references to the service object in models?

2009-07-28 Thread Jason Wang
Hi Martijin, Thats a very good point. I definitely overlooked that risk before. Thank you for pointing it out! Thanks, Jason Wang Martijn Dashorst wrote: There's the risk of keeping the retrieved service as a reference somewhere, e.g. by declaring it final and using it inside an anon inner

Palette override localization

2009-07-28 Thread Tim Lantry
Is there a way to turn off the localization of the choices in a Palette component? It looks like the AbstractChoice has the ability but the Palette which uses AbstractOptions does not. Thanks, Tim

Re: reuseitems problems

2009-07-28 Thread Vladimir K
Hmm ... i can imagine the only case - somewhere resolveObject() method is called during deserialization. But I'm afraid your code don't have such a method and the cause is different. MartinM wrote: > > I do not know exactly what happens, but if I run the debugger I can > see thet the page seen

Re: Caching a resource on the browser side

2009-07-28 Thread ZedroS Schwart
hi Juri I did it the same way as you did and it worked fine. Even more : I didn't even see lines in http header (???). However, it doesn't fit my use case : I need to get the link to the file to embed it in a javascript. Previously I did it this way : PageParameters parameters = new PageP

Re: Twenty Six Wicket Tricks

2009-07-28 Thread Matej Knopp
On Tue, Jul 28, 2009 at 11:55 PM, Vladimir K wrote: > > > Matej Knopp-2 wrote: >> >> Modal Window is an ajax component. Submitting it with regular submit >> is not supported and it never was. >> > > But I would like to have AjaxFallbackModalWindow that survives page refresh. > Why not author my own

Re: Twenty Six Wicket Tricks

2009-07-28 Thread Vladimir K
We developed a RAD framework that builds page design dynamically completely basing on metadata. So there is no any concrete page that I could extract. I believe it would be more convinient for you and simpler for me to just have a look at the concrete page without dynamic layout. Matej Knopp-2

Re: Twenty Six Wicket Tricks

2009-07-28 Thread Vladimir K
Matej Knopp-2 wrote: > > Modal Window is an ajax component. Submitting it with regular submit > is not supported and it never was. > But I would like to have AjaxFallbackModalWindow that survives page refresh. Why not author my own if the aims are different? Probably requirements we have are f

Re: Twenty Six Wicket Tricks

2009-07-28 Thread Matej Knopp
Doesn't really have to be a complete quickstart. Put the pages with markup in a zip (without any external references to your daos, etc). That should be enough. -Matej On Tue, Jul 28, 2009 at 11:13 PM, Vladimir K wrote: > > Ok then. I'm a noob in maven and ... I even don't know how to make a > qui

Re: Twenty Six Wicket Tricks

2009-07-28 Thread Vladimir K
Ok then. I'm a noob in maven and ... I even don't know how to make a quickstart of this problem for you. I have never done Wicket project from scratch. But I have just found a free "maven by example book" and started to read. I will be back soon :) Matej Knopp-2 wrote: > > This would be then a

Re: Twenty Six Wicket Tricks

2009-07-28 Thread David Chang
Why just 26 tricks?More please..! I feel the learning curve for Wicket is kind of tall and more tricks can definitely help new comers in terms of available practical tools and understanding masterful use of Wicket by gurus and ... and ... --- On Tue, 7/28/09, David Chang wrote:

Re: Twenty Six Wicket Tricks

2009-07-28 Thread David Chang
I would buy the book too. When will it be available? --- On Tue, 7/28/09, Mathias Nilsson wrote: > From: Mathias Nilsson > Subject: Re: Twenty Six Wicket Tricks > To: users@wicket.apache.org > Date: Tuesday, July 28, 2009, 1:02 PM > > +1 > > I would buy the book. > -- > View this message i

Re: Reg next line character in the passed String

2009-07-28 Thread Swapna Rachamalla
Thank you... On Mon, Jul 27, 2009 at 11:34 PM, Juri Prokofiev wrote: > Maybe this CSS trick will help you: > > > > .formatPre { > overflow-x: auto; /* Use horizontal scroller if needed; for Firefox 2, > not needed in Firefox 3 */ > white-space: pre-wrap; /* css-3 */ > white-space: -

Re: reuseitems problems

2009-07-28 Thread Martin Makundi
I do not know exactly what happens, but if I run the debugger I can see thet the page seen by the formcomponents' propertymodels is in a different state than the one actually holding the form components. I wonder if ajax has something to do with this, because only part of the page is refreshed via

Re: Disable LinkTree iconLink

2009-07-28 Thread Matej Knopp
Both links are created in LinkIconPanel. You can subclass it or replace it by your own class (it's really a tiny class) and disable the links there. -Matej On Tue, Jul 28, 2009 at 7:40 PM, Seven Corners wrote: > I have a LinkTree wherein I need to disable the links on certain nodes.  It > was eas

Re: Twenty Six Wicket Tricks

2009-07-28 Thread Eelco Hillenius
On Tue, Jul 28, 2009 at 12:08 PM, Matej Knopp wrote: > I would like to have some clarification on this. What is so difficult > about the Wicket Tree API? (apart from the fact that it uses swing > TreeModel which seem to be too confusing for some people). Confusing for some, easy for others (who m

Re: Twenty Six Wicket Tricks

2009-07-28 Thread Matej Knopp
This would be then a bug in nested forms support and not in the modal window itself. If a form inside modal window is submitted only that form should be processed. I still don't understand what problem exactly this fixes. -Matej On Tue, Jul 28, 2009 at 10:04 PM, Vladimir K wrote: > > The followin

Re: Twenty Six Wicket Tricks

2009-07-28 Thread Matej Knopp
On Tue, Jul 28, 2009 at 9:58 PM, Vladimir K wrote: > > Matej, > > one of the problems is that when ajax submit happens (by pressing ajax > submit button that resides in a form that resides in a ModalWindow that is > put into another form) it contains no data for the components of enclosing > form b

Re: Twenty Six Wicket Tricks

2009-07-28 Thread Vladimir K
The following class fixes the problem. It is the evidence of mismatch I'm saying about. public class ModalWindowForm extends Form { public ModalWindowForm(String id) { super(id); } @Override public Form getRootForm() { Form form = s

Re: Twenty Six Wicket Tricks

2009-07-28 Thread Vladimir K
Matej, one of the problems is that when ajax submit happens (by pressing ajax submit button that resides in a form that resides in a ModalWindow that is put into another form) it contains no data for the components of enclosing form but the process of handling the submit handles the eclosing form

Re: Tree and TabbedPanel components

2009-07-28 Thread rajkaushik
Yes I understand this is a refresh problem. 1. By repainting I am assuming you mean that the right panel should invoke the setOutputMarkupId. With this parameter set, the repainting is taken care of by Ajaxified component. Please inform if you have different view. 2. If I have invalid markups,

Re: DZone Refcard - "Getting Started with Apache Wicket"

2009-07-28 Thread Erik Post
I agree. Thanks, much appreciated! On Tue, Jul 28, 2009 at 4:34 AM, Anton Veretennikov wrote: > Congratulations! Nice work! > > -- Tony > > On Tue, Jul 28, 2009 at 12:32 AM, Andrew > Lombardi wrote: >> DZone launched a Refcard about Apache Wicket here - http://dzone.it/yml >> >> A quick descriptio

Re: Twenty Six Wicket Tricks

2009-07-28 Thread Matej Knopp
On Tue, Jul 28, 2009 at 8:31 PM, Vladimir K wrote: > > Jeremy, > > from my perspective ModalWindow is a mix of javascript widget that works in > non-wicket mode and an wicket wrapper that bridges js widget with wicket. It > is always created at the body level. That's why I said it's a cheat. Thus >

Re: reuseitems problems

2009-07-28 Thread Vladimir K
trying to undertand what is happening in your case. When the page is serialized the steam contains the whole graph, including the ListView and it's items and the page default model and the ListView items models. When the page is deserialized, the whole graph is restored including page, its model,

Re: reuseitems problems

2009-07-28 Thread Martin Makundi
Or session store.. anyways, that's not relevant. The important fact is that the copies are different. ** Martin 2009/7/28 Martin Makundi : >> why do you get Page instance 2 on page refresh? > > Wicket always deserializes page state from diskstore.. so it is a copy. > > ** > Martin > >> >> >> Mart

Re: reuseitems problems

2009-07-28 Thread Martin Makundi
> why do you get Page instance 2 on page refresh? Wicket always deserializes page state from diskstore.. so it is a copy. ** Martin > > > MartinM wrote: >> >>> please describe the context. I don - To unsubscribe, e-mail: users-

Re: reuseitems problems

2009-07-28 Thread Vladimir K
Martin, why do you get Page instance 2 on page refresh? MartinM wrote: > >> please describe the context. I don't see how the process of serialization >> makes the instance of the object obsolete. > > 1. Page instantiation. Page instance 1 {manipulating target data 1}, > formComponent instance

Re: Twenty Six Wicket Tricks

2009-07-28 Thread Jeremy Thomerson
well thought out answer. thanks. -- Jeremy Thomerson http://www.wickettraining.com On Tue, Jul 28, 2009 at 1:31 PM, Vladimir K wrote: > > Jeremy, > > from my perspective ModalWindow is a mix of javascript widget that works in > non-wicket mode and an wicket wrapper that bridges js widget with

Re: Twenty Six Wicket Tricks

2009-07-28 Thread Vladimir K
Jeremy, from my perspective ModalWindow is a mix of javascript widget that works in non-wicket mode and an wicket wrapper that bridges js widget with wicket. It is always created at the body level. That's why I said it's a cheat. Thus are problems with form submitting when nested forms are used.

Re: Tree and TabbedPanel components

2009-07-28 Thread Igor Vaynberg
sounds like you are either not repainting the right component, or you have invalid markup and the browser is puking on replacing the dom. -igor On Tue, Jul 28, 2009 at 11:02 AM, rajkaushik wrote: > > Yes Igor, > > I am using the Ajax. Here is my partial code. Please suggest me the possible > mis

Re: Tree and TabbedPanel components

2009-07-28 Thread rajkaushik
Yes Igor, I am using the Ajax. Here is my partial code. Please suggest me the possible misses - Raj protected void onNodeLinkClicked(AjaxRequestTarget target, TreeNode node) ... Panel panelOnClick = new DetailTabbedPanel("detailPanel", defNode); panelOnClick.setOutputMarkupId(tr

Re: reuseitems problems

2009-07-28 Thread Martin Makundi
> please describe the context. I don't see how the process of serialization > makes the instance of the object obsolete. 1. Page instantiation. Page instance 1 {manipulating target data 1}, formComponent instance 1->target data instance 1. 2. Ajax request or similar onto page. 3. Page refresh (des

Disable LinkTree iconLink

2009-07-28 Thread Seven Corners
I have a LinkTree wherein I need to disable the links on certain nodes. It was easy to disable the contentLink but I haven't been able to figure out how to disable the iconLink. My links are BookmarkablePageLinks, but iconLink is not a proper link; rather it appears that it's a element with an o

RE: Thanks Wicket-Team!

2009-07-28 Thread José Antonio Matute
Wow Only four months? How many developers? I'm very impressed :) Fantastic work Best regards -Mensaje original- De: Oliver Krohne [mailto:okro...@yahoo.de] Enviado el: martes, 28 de julio de 2009 13:02 Para: users@wicket.apache.org Asunto: Thanks Wicket-Team! Hi, Many thanks

Re: reuseitems problems

2009-07-28 Thread Vladimir K
Martin, please describe the context. I don't see how the process of serialization makes the instance of the object obsolete. In my practice I use a detachable model when rendering View page and I use a static model when rendering an Edit page. In onSubmit method I save the model object and forwa

Re: Twenty Six Wicket Tricks

2009-07-28 Thread Jeremy Thomerson
Why create your own? Submit a patch to fix what you see is wrong with the current one. Everyone wins. -- Jeremy Thomerson http://www.wickettraining.com On Tue, Jul 28, 2009 at 12:20 PM, Vladimir K wrote: > > ModalWindow (being a wicket cheat :) ) deserves a sole book of tricks. I'll > defini

Re: Twenty Six Wicket Tricks

2009-07-28 Thread Vladimir K
ModalWindow (being a wicket cheat :) ) deserves a sole book of tricks. I'll definitely author my own modal window unless someone fixes the original one. -1 on including ModalWindow to the book. egolan74 wrote: > > I can't wait for yet another great Wicket book. > I will surly buy it. > > regar

intercomponent communications

2009-07-28 Thread Vladimir Kovalyuk
I don't see much buzz about this topic here, just a request for the trick for the forthcoming Johnatan Locke book. So it seems for now that just a few poople are interested in. I experienced problems in different places with approaches where components are loosely coupled and they try on their own

Re: DropDownChoice with ID and Value

2009-07-28 Thread Mathias Nilsson
Yes, you are right. Didn't read the question close enough. -- View this message in context: http://www.nabble.com/DropDownChoice-with-ID-and-Value-tp24686742p24703752.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: Twenty Six Wicket Tricks

2009-07-28 Thread Mathias Nilsson
+1 I would buy the book. -- View this message in context: http://www.nabble.com/Twenty-Six-Wicket-Tricks-tp21214357p24703709.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users

Re: Twenty Six Wicket Tricks

2009-07-28 Thread Vladimir K
+1 I will buy such trick Erik van Oosten wrote: > > Jonathan Locke wrote: >> I've got 13 tricks coded up now and >> ideas for a handful more, but if there are any requests out there, please >> let me know >> > Perhaps something about handling URLs. Like writing your own url coding

reuseitems problems

2009-07-28 Thread Martin Makundi
Hi! I am having trouble with listView.setReuseitems(true). My problem is that 1. on first request the listview creates form components. 2. on second (or third ...) request the listView reuses the form components. 3. however, the propertymodels attached to the formcomponents at 1 are no longer via

Re: Problem with PagingNavigator and NavigatorLabel

2009-07-28 Thread Igor Vaynberg
sounds like you are not using loadable detachable models in your listview -igor On Mon, Jul 27, 2009 at 11:55 AM, LEWIS, LONNIE wrote: > Hello, > I am a newbie to Wicket and am trying to fix an existing page. My problem: we > have a simple page containing a PagingNavigator and NavigatorLabel. Th

Re: AW: SSL - ajax login

2009-07-28 Thread Igor Vaynberg
i have no idea. you might want to google it. -igor On Tue, Jul 28, 2009 at 1:43 AM, Arthur Leigh Allen wrote: > i use my own (graphic) buttons in wicket. > after getting rid of my own code and just using a modified AjaxFallbackButton > with overridden getCallbackUrl() method, > the form was subm

Re: will there be a performance gain to use singleton to remove references to the service object in models?

2009-07-28 Thread Marat Radchenko
Don't guess, profile it. 2009/7/28 Jason Wang : > Hi all, > > Although I am using spring-wicket to prevent the whole spring being > serialized, It still brothers me to  see the  references in the model > object, for example: > > Instead of using this: > > public class MyViewObjectProvider extends

Re: will there be a performance gain to use singleton to remove references to the service object in models?

2009-07-28 Thread Igor Vaynberg
also safe to do with salve because it removes the field and rewrites field reads with lookups. wicket-spring and salve were created for a reason - to make it easy to work with services in an environment where objects are often serialized. salve doesnt have the memory overhead of wicket's @SpringB

Re: WicketTester and org.slf4j.LoggerFactory and org.slf4j.Logger not serializable

2009-07-28 Thread David Brown
Hello Jeremy, thanks for the reply. Painfully obvious now (doh!). David. - Original Message - From: "Jeremy Thomerson" To: users@wicket.apache.org Sent: Monday, July 27, 2009 7:52:57 PM GMT -06:00 US/Canada Central Subject: Re: WicketTester and org.slf4j.LoggerFactory and org.slf4j.Logger

Re: DropDownChoice with ID and Value

2009-07-28 Thread John Krasnay
The thing that makes your example awkward (IMHO, of course) is that it leaves out how the value that the user selects makes its way back into the app's domain object. The OP said he wants "my model updates with 1, 2, and 3." From that I understand he has some object with an int property... class W

Re: Problem with PagingNavigator and NavigatorLabel

2009-07-28 Thread Lonnie Lewis
Not sure what code to include. The authors used a lot of class inheritance, so it is difficult to include the whole thing. HTML Showing 1 to 25 of 1157 << < 1 2 3 4 5 6 7 8 9 10 > >> Email Address Delete? Edit [emailAddress] Some of the code Creates the data vie

Re: Thanks Wicket-Team!

2009-07-28 Thread James Carman
Good work. Now, if I can only learn wicket as well as you have! :) On Tue, Jul 28, 2009 at 7:01 AM, Oliver Krohne wrote: > Hi, > > Many thanks to the Wicket-Team for the great Framework and > of course for the support I have received from the mailinglist. > > I started with zero-Wicket knowledge

Re: Thanks Wicket-Team!

2009-07-28 Thread Alex Objelean
That's impressive! Nice concept, looks very good... I'll use it :). Alex okrohne wrote: > > Hi, > > Many thanks to the Wicket-Team for the great Framework and > of course for the support I have received from the mailinglist. > > I started with zero-Wicket knowledge and now 4 month later > w

Re: Ajax indicator turning off

2009-07-28 Thread John Patterson
Erik van Oosten wrote: > > This seems like something that warrants a new Jira issue. > > Regards, > Erik. > Patch submitted https://issues.apache.org/jira/browse/WICKET-2401 -- View this message in context: http://www.nabble.com/Ajax-indicator-turning-off-tp24655744p24697620.html Sen

AW: Thanks Wicket-Team!

2009-07-28 Thread Arthur Leigh Allen
Gute Arbeit Leute und viel Erfolg mit dem Projekt. Ich hoffe wir ziehen auch bald nach :) Gruß Arthur Von: Oliver Krohne An: users@wicket.apache.org Gesendet: Dienstag, den 28. Juli 2009, 13:01:53 Uhr Betreff: Thanks Wicket-Team! Hi, Many thanks to the Wicke

Re: Thanks Wicket-Team!

2009-07-28 Thread Martin Makundi
Yeah.. cool ! You guys got your site goin' on 4real! ** Martin 2009/7/28 Oliver Krohne : > Hi, > > Many thanks to the Wicket-Team for the great Framework and > of course for the support I have received from the mailinglist. > > I started with zero-Wicket knowledge and now 4 month later > we have

Thanks Wicket-Team!

2009-07-28 Thread Oliver Krohne
Hi, Many thanks to the Wicket-Team for the great Framework and of course for the support I have received from the mailinglist. I started with zero-Wicket knowledge and now 4 month later we have launched a new community website: http://fytch.com It is based on Wicket, Spring, OpenJPA, Lucene,

Re: Problem with PagingNavigator and NavigatorLabel

2009-07-28 Thread Mathias Nilsson
Can you provide us with some code on which model you use and how? -- View this message in context: http://www.nabble.com/Problem-with-PagingNavigator-and-NavigatorLabel-tp24694245p24697018.html Sent from the Wicket - User mailing list archive at Nabble.com.

Wicket as a web service framework

2009-07-28 Thread Chris Davis
Hi All,I am interested in using wicket as web service framework. We already use it to serve a web and mobile web browser application but now we have a need to open up the API for other types of client and I think it would be great if I can leverage a lot of the wicket work already done like the aut

Re: AJAX refresh of ListView in Form

2009-07-28 Thread szabolcs
Hi, this blog entry provides a solution for your problem: http://oktech.hu/blog/2009/07/adding-and-removing-rows-in-wicket.html Regards: Szabolcs John Patterson wrote: > > Hi, I have a ListView in a table that can have rows dynamically added with > AJAX. When I add a row and enter a value, then

Re: how to get some data from servlet

2009-07-28 Thread bgooren
Thanks Fernando, I was looking for some code like this! Fernando Wermus-2 wrote: > > Hi, > > Instead using a servlet you could try the following (you can find the > whole > code at wicketstuff pickwick ) > > This way you will have the session because your are into the > requestCycle > >

AW: AW: SSL - ajax login

2009-07-28 Thread Arthur Leigh Allen
i use my own (graphic) buttons in wicket. after getting rid of my own code and just using a modified AjaxFallbackButton with overridden getCallbackUrl() method, the form was submitted but i could see an error in the error console of firefox (translated by me): security error: content from http:

Re: Ajax indicator turning off

2009-07-28 Thread Erik van Oosten
This seems like something that warrants a new Jira issue. Regards, Erik. John Patterson wrote: > > > > paolo di tommaso wrote: >> >> Yep, intercept the ajax call and inc/dec a counter >> >> -- paolo >> > > Although I could correct the indicator behaviour in all my own AJAX > compone

Re: log4j question with wicket

2009-07-28 Thread pieter claassen
Maarten, a) In my source tree, it is in webapp/src/main/resources/log4j.properties. When deployed, it ends up in WEB-INF/classes/log4j.properties b) yes, log4j-1.2.15.jar log4j is working fine, I can get a root logger and log to it. The problem seems that the wicket infrastructure is using slf4j

Re: Caching a resource on the browser side

2009-07-28 Thread Juri Prokofiev
It works for me. ResourceLink csvLink = new ResourceLink("csvLink", new ResourceReference(AnnouncementCsvResource.ID), params); add(csvLink); public class AnnouncementCsvResource extends WebResource { public static final String ID = "csv"; @Override public IResourceStream getResourceS

Re: will there be a performance gain to use singleton to remove references to the service object in models?

2009-07-28 Thread Martijn Dashorst
There's the risk of keeping the retrieved service as a reference somewhere, e.g. by declaring it final and using it inside an anon inner class, negating any and all gains you've done by using the static lookup. The @SpringBean annotated references are safe to pass around (as they are implemented as

Problem with PagingNavigator and NavigatorLabel

2009-07-28 Thread LEWIS, LONNIE
Hello, I am a newbie to Wicket and am trying to fix an existing page. My problem: we have a simple page containing a PagingNavigator and NavigatorLabel. They both display the correct data upon initial load. To add a record, we navigate to a page, enter the data and press "submit". The data is sa

Re: will there be a performance gain to use singleton to remove references to the service object in models?

2009-07-28 Thread Eelco Hillenius
Actually, thinking about it, if you're very tight on memory, it will save you a reference, particularly when the page gets serialized. So if you are worrying about efficiency *and* are ok with this code style, it's an option. :-) Eelco On Tue, Jul 28, 2009 at 12:47 AM, Eelco Hillenius wrote: > It

Re: will there be a performance gain to use singleton to remove references to the service object in models?

2009-07-28 Thread Eelco Hillenius
It might give you a very slight edge to use a singleton as you (or the annotation processor in this case) don't have to introspect and work through a proxy. If you're not bothered by singletons (I, for one typically are): go for it. However, keep that famous 'premature optimization is the root of a

Re: will there be a performance gain to use singleton to remove references to the service object in models?

2009-07-28 Thread Wilko Hische
Hi Jason, You could have a look at http://code.google.com/p/salve/ By making use of some byte code instrumentation it will replace your dependency injections by static lookups, i.e. the best of both worlds. I wouldn't know about the performance of each approach however. Regards, Wilko Jason W

Re: Caching a resource on the browser side

2009-07-28 Thread ZedroS Schwart
Thanks for this answer Juri. I tried it (once again) and it didn't work : the setHeaders method isn't called... I use Live HTTP headers to check what goes through : http://localhost:8080/charts/data/dataId/KBU GET /charts/data/dataId/KBU HTTP/1.1 Host: localhost:8080 User-Agent: Mozilla/5.0

Re: Ajax indicator turning off

2009-07-28 Thread John Patterson
paolo di tommaso wrote: > > Yep, intercept the ajax call and inc/dec a counter > > -- paolo > Although I could correct the indicator behaviour in all my own AJAX components, it would probably make more sense to incorporate it into wickets default AJAX behaviour. If people think it makes sen

Resource without sessionId

2009-07-28 Thread Gatos
When I try to request a resource using url http://domain.com/resource.csv then I get 302 to http://domain.com/resource.csv;jsessionid=joiadfadsfad and all generated links it csv file with 'jsessionid' parameter. How to use resource without sessionid? Thank you

Re: Caching a resource on the browser side

2009-07-28 Thread Juri Prokofiev
To set headers to a resource you need to extend setHeaders method from WebResource. Example: @Override protected void setHeaders(WebResponse response) { super.setHeaders(response); response.setAttachmentHeader("announcements.csv"); response.setHeader("Cache-Contr