Stateless Page Question

2012-04-27 Thread Jürgen Lind
Hi, I'm a bit confused with stateless pages and maybe somebody can shed light on this... I have a (currently) empty mounted WebPage that is later supposed to serve as a health-check page and will thus be called frequently. Now, if a do a simple wget with the page URL, my RequestCycleListener

Re: Aggregating JavaScript

2012-04-27 Thread Martin Grigorov
Hi, I think there are two options: 1) use a IMarkupFilter that will extract the scripts from the markup and transform them to header contributions via ComponentTag#addBehavior() 2) wicket:head has a non-documented attribute called wicket:scope that may help here. I haven't used it (otherwise I'd

Re: Stateless Page Question

2012-04-27 Thread Martin Grigorov
From HttpServletRequest javadocs: HttpSession getSession() Returns the current session associated with this request, or if the request does not have a session, creates one. Use getSession(false) instead. To keep the page stateless you may use wicket-devutils StatelessChecker in Dev mode. On

Re: Stateless Page Question

2012-04-27 Thread Jürgen Lind
Oh, sorry for the stupid question. Obviously, I haven't done raw servlet programming for a while... J. On 27.04.2012 09:50, Martin Grigorov wrote: From HttpServletRequest javadocs: HttpSession getSession() Returns the current session associated with this request, or if the request does not

Re: AjaxFormComponentUpdatingBehavior after validation problem

2012-04-27 Thread Gytis
Hello, here I renew this thread, because this problem is still cannot be resolved. So problem is that when you have AjaxFormComponentUpdatingBehaviour it works fine, until that moment, when you try to submit your form. So when you get error, that some kind of value is not as it is not supposed to

How reload LinkTree

2012-04-27 Thread Stvan
Im try to use LinkTree for display database content. If used DefaultTreeModel as in example, new data not added in tree on page refresh. Its normal. Ok, im try to use LoadableDetachableModel for tree model. Now, data reload on refresh, but data reload also on each click on tree nodes, as result,

Re: HOWTO to only skip required validators

2012-04-27 Thread Stijn Maller
I'm a bit late in responding so I don't know if this is still useful to you, but here is how we solved your requirement in our project. I'd still like to find a more elegant approach, but it is the least intrusive approach I could come up with and it sure beats the bazooka one. (which could really

html markup modified on calling a javascript

2012-04-27 Thread cosmindumy
Hello, I have a customized panel and inside a ajaxlink and on onRender from panel's behavior I call a javasript.I don't know why after calling the javascritp the markup is modified prom . to . The javascript is not important. I tried with alert('x') and the markup is modified. Any idea? Thanks

issue getting RedirectPage to work

2012-04-27 Thread dessiek
hi... quick query here.. trying to get a redirect after a form submit working in wicket... @Override public void onSubmit(){ // ... fancy form processing setResponsePage(new RedirectPage(;

Re: How reload LinkTree

2012-04-27 Thread Sven Meier
If you change nodes in your tree model, you have to fire appropriate change notifications, e.g. with DefaultTreeModel#nodesChanged(). Additionally for Ajax request you must call LinkTree#updateTree() to let it update its components. Making this work with dynamic data from a database is no

Override auto complete functionality for wicket 1.4.x release

2012-04-27 Thread Brown, Berlin [GCG-PFS]
With the 1.4.x release, I want to override the auto complete text field functionality. On 'selection', I want to be able to redirect to some page. It looks like there is a place to override this functionality but it allows 'javascript' functions and not 'wicket' logic? Can I add

RE: Favicon best practice

2012-04-27 Thread Ian Marshall
Thanks Jeffrey, I put my favicon.ico where you suggested and made this my sole favicon file. I did keep link rel=shortcut icon type=image/x-icon href=favicon.ico/ in the HTML of my base page in the hope that Microsoft will make Internet Explorer 8 or above able to read the favicon in the