Re: Label not updating on AJaxButton submit

2012-01-17 Thread Martin Grigorov
Hi, At http://wicketinaction.com/2011/07/wicket-1-5-mounting-resources/ you can see how to mount IResource (thru ResourceReference). Your IResource (even better extend AbstractResource) impl shoud do something like: MultipartServletWebRequest multipartServletWebRequest = new

Re: WiQuery disabling tabs

2012-01-17 Thread Marco Springer
If anyone cares, I found a solution... I'm guessing the previous solution isn't working because the statement is probably output before the page is actually rendered. Therefore i did the following: tabs.add(new AbstractBehavior() { @Override public void renderHead(IHeaderResponse response) {

Re: WiQuery disabling tabs

2012-01-17 Thread Martin Grigorov
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 is probably output before the page is actually rendered. Therefore i did the following: tabs.add(new

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 is

RE: Controlling URL of static cacheable resources

2012-01-17 Thread Chris Colman
Maybe I am getting pedantic as I was thinking in terms of speed of operation for a server that's getting hammered with thousands of hits per hour. It's quicker to test the first few chars of a URL string for a match with 'startsWith' than it is to iterate through to almost the end of each URL

RE: WiQuery disabling tabs

2012-01-17 Thread Hielke Hoeve
Yes I (and perhaps we) care. Unfortunately Google has decided that the WiQuery google group should die, leaving us with no mailinglist... Fortunately most of the WiQuery committers are also on this mailinglist. Any suggestions you have will be taken into account during our ever lasting upgrade

Re: Update component after background thread is finished

2012-01-17 Thread humcasma
Martin Grigorov-4 wrote Yes. Just add both to the target when the data is available Well, I have now managed to get both the textarea updated while my background thread is running, and the dropdownchoice updated when the thread is finished. For that I use an AbstractAjaxTimerBehavior that I

Re: WiQuery disabling tabs

2012-01-17 Thread Marco Springer
Your suggestion: if (((IModelWafer) getDefaultModel()).getObject().getId() == 0) { ArrayItemOptionsIntegerItemOptions options = new ArrayItemOptionsIntegerItemOptions(); for (int i = 1; i 6; i++) { options.add(new IntegerItemOptions(i)); } tabs.setDisabled(options); } My code sauce:

JavaScript links - correct URL generated?

2012-01-17 Thread Chris Colman
Wicket rendered this page: http://www.myurl.com.au/content/newArticle/o/76429/ar/486 It is mounted at /content/newArticle using a UrlPathPageParametersEncoder And /o/76429/ar/486 are named paramters as per 1.4 style Wicket generates the following a tag when it rendered the page: a

Re: JavaScript links - correct URL generated?

2012-01-17 Thread Martin Grigorov
Are you still on 1.5-SNAPSHOT ? This have been fixed with WICKET-4290 few days ago On Tue, Jan 17, 2012 at 3:35 PM, Chris Colman chr...@stepaheadsoftware.com wrote: Wicket rendered this page: http://www.myurl.com.au/content/newArticle/o/76429/ar/486 It is mounted at /content/newArticle using

Re: Update component after background thread is finished

2012-01-17 Thread Martin Grigorov
On Tue, Jan 17, 2012 at 3:19 PM, humcasma humca...@gmail.com wrote: Martin Grigorov-4 wrote Yes. Just add both to the target when the data is available Well, I have now managed to get both the textarea updated while my background thread is running, and the dropdownchoice updated when the

Re: Update component after background thread is finished

2012-01-17 Thread humcasma
Martin Grigorov-4 wrote If I understand you correctly then all you need is just timerBehavior.stop(). You don't need the restart functionality. You can also remove the behavior from the component and add new behavior instance later if you need it. Btw WICKET-1525 is implemented in Wicket

Re: Update component after background thread is finished

2012-01-17 Thread Martin Grigorov
Pastebin you code. On Tue, Jan 17, 2012 at 4:44 PM, humcasma humca...@gmail.com wrote: Martin Grigorov-4 wrote If I understand you correctly then all you need is just timerBehavior.stop(). You don't need the restart functionality. You can also remove the behavior from the component and add

RE: JavaScript links - correct URL generated?

2012-01-17 Thread Chris Colman
Yes, on the 1.5-SNAPSHOT - pulling updates every few hours =] In our latest version of the app the problem is indeed fixed - what I think I'm seeing now is the result of google requesting the bad links it cached when the problem was present. If I make requests to those links give a 301 redirect

Re: context-relative CSS-Url wrong in styled/variant HTML page

2012-01-17 Thread Martin Grigorov
On Tue, Jan 17, 2012 at 9:50 PM, datazuul ralf.eichin...@pixotec.de wrote: I set style of session like this in my WebApplication: public Session newSession(final Request request, final Response response) {        return new WicketWebSession(request).setStyle(style1); Can you try without

Re: context-relative CSS-Url wrong in styled/variant HTML page

2012-01-17 Thread datazuul
you are somehow right... ;-( When I remove setStyle and copy HomePage_style1.html to HomePage.html the css link is rendered wrong, too. Under embedded Jetty I did work, but not under Tomcat (it is the standard apache-tomcat 6.0.29). I am totally confused... I did several Wicket applications

RE: JavaScript links - correct URL generated?

2012-01-17 Thread Chris Colman
This was also no doubt caused by a naughty build script here which pulled in old versions of the wicket jars! -Original Message- From: Chris Colman [mailto:chr...@stepaheadsoftware.com] Sent: Wednesday, 18 January 2012 6:32 AM To: users@wicket.apache.org Subject: RE: JavaScript links -

Re: Shibboleth Integration

2012-01-17 Thread Jered Myers
I figured out a solution. Here is how the get the eppn I needed in Wicket: final HttpServletRequest request =(HttpServletRequest)getRequestCycle().getRequest().getContainerRequest(); String eppn = request.getAttribute(eppn) != null ? request.getAttribute(eppn).toString() : not set; The

Auto Create of resource references fails

2012-01-17 Thread Chris Colman
Using 1.5-SNAPSHOT and I just noticed these messages in the log ever since switching to 1.5. I checked the log history and these types of errors never appeared in the 1.4 based app: 2012/01/18 10:54:51.840 WARN - ResourceReferenceRegistry - Asked to auto-create a ResourceReference, but

Re: Get Wicket to ignore wicket parameters

2012-01-17 Thread Jeremy Thomerson
On Tue, Jan 17, 2012 at 4:01 PM, Steve Fatula st...@neobits.com wrote: I have taken over management of a site using wicket, which I was woefully unfamiliar with. Have been able to do some screens, modify them, add stuff, etc. without much trouble. However, the overflow flow I am not familiar

Re: Wicket spring security sample app

2012-01-17 Thread Brian Lavender
On Sun, Jan 15, 2012 at 12:36:48PM +0200, Martin Grigorov wrote: See https://github.com/jwcarman/Wicketopia Maybe I missed something, but I wasn't able to do a mvn jetty:run or did the war package run after generating a war file. brian -- Brian Lavender http://www.brie.com/brian/ There

Re: Trying get Spring security working

2012-01-17 Thread Jeff Schneller
It looks like you are missing the apache commons logging jar based on the stack trace. I believe it is a dependency for spring You may also need sflj and/or log4j. Sent from my iPhone On Jan 18, 2012, at 1:08 AM, Brian Lavender br...@brie.com wrote: Can someone tell me what I am missing

wicket appl architecture

2012-01-17 Thread nazeem
Hi I am currently developing an application using Wicket + Spring + Hibernate. So far everything is smooth and I use a lot of Ajax which works perfectly fine. Now I need to provide options for data entry via mobile devices like Andriod (Samsing Tab) + iOS (iPad). My initial plan was to develop