Image cache control

2009-04-18 Thread Martin Makundi
Hi! I use jetty for production and my dynamic content turns cache off: meta http-equiv=cache-control content=no-cache/ meta http-equiv=pragma content=no-cache / meta http-equiv=expires content=-1 / I understand this is necessary for a dynamic site. This has the result that images on the site

lazy load panel in 1.2

2009-04-18 Thread gaoxm
Hi, I want to do the same thing as AjaxLazyLoadPanel which can allow a panel to be loaded lazily and is available since 1.3. We want to do that because one panel in our homepage takes a little longer time and hence the homepage is quite slow to the end users. But the project is based on old 1.2

Re: sessionsize of requestlogger

2009-04-18 Thread Bernard
Igor, Thanks for referring to Page#getPageReference. Regarding the reload, I created my own error loading a page. On Fri, Apr 17, 2009 at 5:49 PM, Bernard b...@actrix.gen.nz wrote: I prefer not to instantiate a page with a non-default constructor because it breaks if the user reloads it. How

Re: Google Analytics and Wicket

2009-04-18 Thread nino martinez wael
Hmm why are that approach requiring more changes than this other? This just involves that you change extend webpage to mybasepage, and then drop the few lines of js in the markup of the mybasepage... 2009/4/18 Mariana Bustamante marian...@gmail.com: Is there any other method that doesn't mean

how to setup the @SpringBean for the WebSession?

2009-04-18 Thread Khlystov Alexandr
Hi all! Qustion: how to setup the @SpringBean for the WebSession? I am folowing this guide: http://cwiki.apache.org/WICKET/spring.html#spring-us...@springbeanbeyondwicket I have defined a simple bean: ... bean name=navigationManager

Re: how to setup the @SpringBean for the WebSession?

2009-04-18 Thread Cristi Manole
Hello, Can you try adding this to the WebSession constructor (or before actually using the bean) : InjectorHolder.getInjector().inject(this); I don't know if this is the usual way of doing things, but it works for me. Cristi Manole On Sat, Apr 18, 2009 at 11:28 AM, Khlystov Alexandr

Re: how to setup the @SpringBean for the WebSession?

2009-04-18 Thread Khlystov Alexandr
Thanks Cristi! It works, and also I've found that it is usual way seeing the javadoc for : SpringComponentInjector Cristi Manole пишет: Hello, Can you try adding this to the WebSession constructor (or before actually using the bean) : InjectorHolder.getInjector().inject(this); I don't

Problem in creating a Custom Component with a Panel and a Form

2009-04-18 Thread Giampiero Granatella
Hi, I'm new to wicket and i'm trying to create a custom component with a panel and inside the panel a form. I've a problem in rendering it. The framework tells me the following RuntimeException. ...WicketMessage: The component(s) below failed to render. A common problem is that you have added a

Re: Problem in creating a Custom Component with a Panel and a Form

2009-04-18 Thread Khlystov Alexandr
:). Gabriel Bucher пишет: write wicket with a 't' instead of a 'd' in the markup. for example: input type=text wicket:id=db/input br/ ^ cheers gab Giampiero Granatella wrote: Hi, I'm new to wicket and i'm trying to create a custom component with a panel and inside the panel a form.

can't set 'id' attribute to tr tag

2009-04-18 Thread Khlystov Alexandr
Hello again! I can't set 'id' attribute to the tr tag: WicketMessage: Expected close tag for tr id=rowId1 onmouseout=changeLC(this.id,0); class=itemsTableTr wicket:id=idTr onmouseover=changeLC(this.id,1); JAVA: add(new ListView(listview, usersNavList) { @Override

Re: Problem in creating a Custom Component with a Panel and a Form

2009-04-18 Thread Khlystov Alexandr
Maybe hierarchy doesn't match? Means you added the panel to to other panel at java, but at html panel is added to the page directly. If not please provide more data - your java code. Giampiero Granatella пишет: Hi, I'm new to wicket and i'm trying to create a custom component with a panel

Re: Google Analytics and Wicket

2009-04-18 Thread James Carman
I think the idea is that they're not switching pages, but switching panels. They'd like each panel to show up as a unique page with its own id? On Sat, Apr 18, 2009 at 4:14 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: Hmm why are that approach requiring more changes than this

Re: Problem in creating a Custom Component with a Panel and a Form

2009-04-18 Thread Gabriel Bucher
write wicket with a 't' instead of a 'd' in the markup. for example: input type=text wicket:id=db/input br/ ^ cheers gab Giampiero Granatella wrote: Hi, I'm new to wicket and i'm trying to create a custom component with a panel and inside the panel a form. I've a

Re: Problem in creating a Custom Component with a Panel and a Form

2009-04-18 Thread Giampiero Granatella
It's time to change my glasses. :-) Sorry for the stupid question... Thanks a lot Gabriel Giampiero 2009/4/18 Khlystov Alexandr a...@ovservice.org: :). Gabriel Bucher пишет: write wicket with a 't' instead of a 'd' in the markup. for example: input type=text wicket:id=db/input br/

Re: [poll] Interest in regular Deventer Wicket meetup?

2009-04-18 Thread jeroen dijkmeijer
+1 First of all thanks for the effort and the initiative. Although the location is -1 for me, I find this a wicked initiative. I just finished reading some chapters of the book, but nothing beats a live session. And the location is actually not that bad, considering the fact that its close

Markup's isVisible method being called multiple times

2009-04-18 Thread Henrique Boregio
I am overriding the link's onVisible method to do some conditional markup. I've realized that this method is actually being call 4 times. When I add a simple System.out to the following code, I get the corresponding resut: MyPAGE.JAVA public class MyPage extends WebPage { public MyPage(final

Re: Markup's isVisible method being called multiple times

2009-04-18 Thread Marko Sibakov
Hi Henrique, Answer can be found from javadoc /** * Gets whether this component and any children are visible. * p * *WARNING: this method can be called multiple times during a request. If you override this* * method, it is a good idea to keep it cheap in terms of

Re: Markup's isVisible method being called multiple times

2009-04-18 Thread quiqueq
Oh. I feel stupid haha Thanks. tohtori wrote: Hi Henrique, Answer can be found from javadoc /** * Gets whether this component and any children are visible. * p * *WARNING: this method can be called multiple times during a request. If you override this* *

Re: can't set 'id' attribute to tr tag

2009-04-18 Thread Igor Vaynberg
it should be webmarkupcontainer, and it should work just fine. paste your complete code with markup and markupcontainer for the whole page/panel. -igor On Sat, Apr 18, 2009 at 4:03 AM, Khlystov Alexandr a...@ovservice.org wrote: Hello again! I can't set 'id' attribute to the tr tag:

Re: lazy load panel in 1.2

2009-04-18 Thread Igor Vaynberg
have you tried simply adapting the code just for the lazy panel? -igor On Fri, Apr 17, 2009 at 11:42 PM, gaoxm gaoxm2...@gmail.com wrote: Hi, I want to do the same thing as AjaxLazyLoadPanel which can allow a panel to be loaded lazily and is available since 1.3.  We want to do that because

Re: Adding components to Pages based on conditionals

2009-04-18 Thread Craig Tataryn
On 17-Apr-09, at 1:00 AM, Subramanian Murali wrote: Hi, I am a new wicket user. How do we include / exclude content or components in pages based on conditions. What is the equivalent in Wicket to the if tag in the JSTL tag library? The reason i ask this question is because irrespective of

Re: Lazy loading via AJAX on stateless pages?

2009-04-18 Thread Martin Grotzke
What exactly causes the page to be stateful when urlFor(Component, Interface) is invoked? I would like to make only minimal changes compared to original wicket ajax handling and would really like to reuse as much as possible of wicket ajax handling (e.g. adding components to be updated to the

Re: LinkTree breaks when using twice instances of Firefox (with Unexpected RuntimeException)

2009-04-18 Thread Live Nono
Hi I've just spotted the same behavior within the wicket examples page itself, there : http://www.wicket-library.com/wicket-examples/ajax/tree/simple.1 Open two tabs/windows of the same browser and then play with the tree in one page and then the others, then it'll fail internal error it says...

Re: Lazy loading via AJAX on stateless pages?

2009-04-18 Thread Jeremy Thomerson
Using urlFor(...) generates a stateful, session-relative link - unless you call urlFor(Class, PageParameters) - which is stateless because it encodes the class and parameters in the URL. In the other URLs, the state is stored in the session, and the URL is basically a map to navigate the

Re: wicket-ajax and IE performance problems for pages with many links

2009-04-18 Thread Jason Lea
I have tracked down the issues in slow IE performance when adding focus events to 1000's of elements. I created a simple page with 1000 normal links using a listview, then measured the performance of the wicket-ajax.js Wicket.Focus.attachFocusEvent method. It would take about 3000ms on page

Re: can't set 'id' attribute to tr tag

2009-04-18 Thread Khlystov Alexandr
Error: WicketMessage: Unable to find component with id 'id' in [MarkupContainer [Component id = idTr]]. This means that you declared wicket:id=id in your markup, but that you either did not add the component to your page at all, or that the hierarchy does not match. Code: JAVA: (colored