two LDM DropDownChoice behave differently ?

2010-03-19 Thread David Chang
Hello, I am playing Wicket now and came across this "strange" behavior. I have a page with two LDM-based DropDownChoice (Country and State). The Country DDC ajax-controls the State DDC. The Ajax works well. Here is something I dont understand. When the page is diplayed first time, both LDM#l

Re: How to specify different log4j.properties for production and WicketTester servlet container?

2010-03-19 Thread Alec Swan
Changes to the test classpath suggested by Igor worked. I was under the wrong impression that Wicket Tester was deploying my web app the same way it is deployed in Tomcat in production and hence was always reading WEB-INF/classes/log4j.properties. On Fri, Mar 19, 2010 at 2:11 PM, Igor Vaynberg wro

jWicket 0.5.1

2010-03-19 Thread Stefan Lindner
I have checked in jWicket 0.5.1 with a first implementation of jQuery-ui-datepicker. A few things around the datepicker are still missing: - beforeShowDay callback ist not a simple task to integrate into wicket Ajax roundtrip - a few options are missing - show/hide options that depend upon ui-effec

Help with integrating NTLM in wicket application

2010-03-19 Thread Bryan Montgomery
Hello, I have two applications, one a stand alone web app and one wicket based. Currently they both use form authentication however I am trying to add NTLM authentication for SSO from our windows intranet. Leveraging jcifs, I've been able to do this pretty easily with the stand alone web app. Howe

Re: How to specify different log4j.properties for production and WicketTester servlet container?

2010-03-19 Thread Igor Vaynberg
put another log4j.properties into your src/test/resources or src/test/java. since the test dirs are before the main dirs when tests run they will override log4j.properties in your src/main/resources or src/main/java -igor On Fri, Mar 19, 2010 at 12:59 PM, Alec Swan wrote: > Hi, > > It looks like

Re: How to specify different log4j.properties for production and WicketTester servlet container?

2010-03-19 Thread Alec Swan
Hi, It looks like the link you provided is temporarily down, but I am assuming that your idea was to replace log4j.properties file with the one specific to each maven profile. This is definitely an option, but I am have limited control over the build file because it is generated by my NetBeans ID

Re: How to specify different log4j.properties for production and WicketTester servlet container?

2010-03-19 Thread James Carman
You can look at how I set up configuration stuff in my Advanced Wicket example code: http://svn.carmanconsulting.com/public/wicket-advanced/trunk Basically, I use maven profiles to point to different configuration directories for each environment (dev, test, prod). Perhaps that would help. On F

How to specify different log4j.properties for production and WicketTester servlet container?

2010-03-19 Thread Alec Swan
We have WEB-INF/classes/log4j.properties file which instructs log4j to log to ${catalina.home}/logs/${logFileName}.log file. This works great when I deploy the web app in Tomcat. However, I would like the logs to be written to a different file when I run my tests that use WicketTester and start th

Re: Wicketstuff versioning

2010-03-19 Thread Jeremy Thomerson
2010/3/19 Major Péter > Hi, > > count me in. I would like to help maintain wicketstuff-core too. ;) > When I came to build wicketstuff-core, sometimes I end up fixing > dependency issues and other stuff in others projects, but I don't commit > them, because I don't want to modify someone else's c

Re: How to return a result value for wicketAjaxGet

2010-03-19 Thread Igor Vaynberg
you have to put your alert code into the success handler. this is all happening asynchronously -igor On Fri, Mar 19, 2010 at 10:20 AM, Stefan Lindner wrote: > Hi Igor, > > you mean > >        onclick=" >        myVar = 'some value'; >        wicketAjaxGet(this.getCallbackUrl()+&variableName='myV

Re: Add JS files

2010-03-19 Thread Richard Wilkinson
Hi Marty, Since you are using wiQuery, this should be taken care of for you, (wiQuery makes sure that the core jQuery js file is first). I would guess that you are contributing the javascript file in the normal wicket way (adding header contributor or adding it directly to the html file) and not

Re: JCaptcha sound with Wicket?

2010-03-19 Thread David Chang
Anybody ever got this working? Thanks for any info or ponter. Regards. --- On Thu, 3/18/10, David Chang wrote: > From: David Chang > Subject: JCaptcha sound with Wicket? > To: users@wicket.apache.org > Date: Thursday, March 18, 2010, 11:31 PM > Based on the WIA book, I am able to > have a wo

AW: How to return a result value for wicketAjaxGet

2010-03-19 Thread Stefan Lindner
Hi Igor, you mean onclick=" myVar = 'some value'; wicketAjaxGet(this.getCallbackUrl()+&variableName='myVar'); /*start of java processing in the backend*/ protected void respond(final AjaxRequestTarget target) { Component component = getCompo

Re: Responding to JSON request

2010-03-19 Thread Igor Vaynberg
sounds weird. you will have to pull out httpservletrequest out of webrequest and see how to get that info. -igor On Fri, Mar 19, 2010 at 10:09 AM, Boris Goldowsky wrote: > It doesn't seem to have any parameter name - I'm looking at the request in > Firebug and it had just that string.  In the ge

Re: Responding to JSON request

2010-03-19 Thread Boris Goldowsky
It doesn't seem to have any parameter name - I'm looking at the request in Firebug and it had just that string. In the getResourceStream() method getParameters().entrySet() always appears to be empty. The PHP backend that they provide goes through some shenanigans to get the raw POST data and

Add JS files

2010-03-19 Thread Martin Phee
I there a way I can add a js file and make sure it's after others? I'm using wiQuery and want to add the block ui, but when I add the js file it's the first one so it's throwing an error when it tries to init since jquery core is after it. Is there something I can do with the wiQuery extens

Re: Dynamic Image (aka Barcode) based on user input not refreshed via Ajax

2010-03-19 Thread David Chang
Exactly. That is what eventually I found out after quite some time fruitless research and test in other areas. --- On Fri, 3/19/10, Igor Vaynberg wrote: > From: Igor Vaynberg > Subject: Re: Dynamic Image (aka Barcode) based on user input not refreshed > via Ajax > To: users@wicket.apache.org

Re: Dynamic Image (aka Barcode) based on user input not refreshed via Ajax

2010-03-19 Thread Igor Vaynberg
use NonCachingImage -igor On Fri, Mar 19, 2010 at 9:47 AM, Doug Leeper wrote: > I am trying to create a barcode image from a user entered value.  The image > is to be updated while the user types.  Hence I am using Ajax (onChange > event) on the text field to regenerate the image.  However, th

Re: Dynamic Image (aka Barcode) based on user input not refreshed via Ajax

2010-03-19 Thread Xavier López
Found a similar issue not long ago. There is a class that does just what you mentioned, appends a timestamp as a request parameter of the tag's url. I think the class was NonCachingImage. Cheers, Xavier 2010/3/19 Doug Leeper > I am trying to create a barcode image from a user entered value. T

Dynamic Image (aka Barcode) based on user input not refreshed via Ajax

2010-03-19 Thread Doug Leeper
I am trying to create a barcode image from a user entered value. The image is to be updated while the user types. Hence I am using Ajax (onChange event) on the text field to regenerate the image. However, the image is not getting refreshed. It appears that the browser is not recognizing that

Re: Wicketstuff versioning

2010-03-19 Thread Major Péter
Hi, count me in. I would like to help maintain wicketstuff-core too. ;) When I came to build wicketstuff-core, sometimes I end up fixing dependency issues and other stuff in others projects, but I don't commit them, because I don't want to modify someone else's code without her/his knowledge, and

Re: Responding to JSON request

2010-03-19 Thread Igor Vaynberg
there is no parameter name that it sends it under? the {} string has to be assigned to something -igor On Fri, Mar 19, 2010 at 9:17 AM, Boris Goldowsky wrote: > I'm trying to make the spellcheck part of the wicketstuff tinymce module > work.  I think the protocol used by the spellchecking pl

Responding to JSON request

2010-03-19 Thread Boris Goldowsky
I'm trying to make the spellcheck part of the wicketstuff tinymce module work. I think the protocol used by the spellchecking plugin may have changed since this module was written. TinyMCE sends a POST request to the server; the post data looks something like this (this is JSON format, right?

Re: wicket:message inside a script tag

2010-03-19 Thread Igor Vaynberg
output the javascript using the texttemplatecontributor -igor On Fri, Mar 19, 2010 at 9:12 AM, Istvan Soos wrote: > Hi, > > I'd like to localize a simple javascript alert, e.g like this: > alert('hello world'); However wicket:message key="helloWorld" is not > parsed inside the

Re: How to return a result value for wicketAjaxGet

2010-03-19 Thread Igor Vaynberg
append the name of the variable to the url, in target generate js that sets the variable to the value. after wicketajaxget processes the result the value should be set -igor On Fri, Mar 19, 2010 at 8:52 AM, Stefan Lindner wrote: > Hi Vineet, > > that's true. I already know this but this is not w

Re: Wicket JavaScript Library Integration - A Common Base

2010-03-19 Thread Lionel Armanet
Hi, This would be great, but I think we can only provide an implementation to JavaScript frameworks designed in an unobtrusive way. When I tried to bind ExtJs within Wicket, I had some pain to adapt ExtJs components to Wicket. For the refactoring part, I don't see any problem to achieve this. Gen

wicket:message inside a script tag

2010-03-19 Thread Istvan Soos
Hi, I'd like to localize a simple javascript alert, e.g like this: alert('hello world'); However wicket:message key="helloWorld" is not parsed inside the

Re: Wicket JavaScript Library Integration - A Common Base

2010-03-19 Thread Jeremy Thomerson
I like it! Where do I sign up? :) -- Jeremy Thomerson http://www.wickettraining.com On Fri, Mar 19, 2010 at 10:45 AM, Cemal Bayramoglu < jweekend_for...@cabouge.com> wrote: > There's been plenty of encouraging feedback about wiQuery [1] and how > cleanly it integrates jQuery and makes it eas

Re: Wicket JavaScript Library Integration - A Common Base

2010-03-19 Thread Uwe Schäfer
Cemal Bayramoglu schrieb: dear Cemal, I was thinking that it could possibly be sensible to have another project where we abstract out the mechanisms wiQuery provides for resources and JavaScript statements. i have no idea of how wiQuery does it, but i strongly agree to the urgent need of a

Re: wicket and javascript

2010-03-19 Thread JonnyL
I have a JS file that has a function to return a node value from an XML file. The JS file is referenced in the head section of the page and the function is called from the page body. The JS function runs but does not return the XML node. How do I reference the XML file? Hope you can help jthom

AW: How to return a result value for wicketAjaxGet

2010-03-19 Thread Stefan Lindner
Hi Vineet, that's true. I already know this but this is not what I need. I need the opposite thing. What you explained is something like an input parameter to wicketAjaxGet. This input parameters can easily be fetches from the Request. But what I need is a return value for wicketAjaxGet. That i

Re: AjaxThrottling

2010-03-19 Thread Igor Vaynberg
are you sure the throttle is being applied? check the js generated, etc... -igor On Thu, Mar 18, 2010 at 11:39 PM, Douglas Ferguson wrote: > I have a search box that is submitted via a behavior listening for "onkeyup". > > I set the throttle for the behavior and I'm seeing strange behavior. > >

RE: How to construct/generate AjaxRequestTarget for a WebPage, without explicitly being fired from AjaxButton/AjaxLink/AjaxSelfUpdatingTimerBehavior

2010-03-19 Thread Martin Asenov
Here's the issue: Modal window is displayed. The user gets idle for a while. I've registered the modal by its session ID. When the user clicks on some AjaxLink/AjaxButton and I want to see if session is invalid, so I've overridden sessionDestroyed() in the webapp, which calls a method that sh

Wicket JavaScript Library Integration - A Common Base

2010-03-19 Thread Cemal Bayramoglu
There's been plenty of encouraging feedback about wiQuery [1] and how cleanly it integrates jQuery and makes it easy to use in a Wicket app. We also get lots of questions, sometimes unrelated to wiQuery, about how to integrate other JavaScript libraries. I was thinking that it could possibly be se

Re: How to construct/generate AjaxRequestTarget for a WebPage, without explicitly being fired from AjaxButton/AjaxLink/AjaxSelfUpdatingTimerBehavior

2010-03-19 Thread Martijn Dashorst
So how does the server communicate the close call to the client? Martijn On Fri, Mar 19, 2010 at 4:29 PM, Martin Asenov wrote: > No, it's something like: > > new Timer().schedule(new TimerTask() { >        public void run() { >                modal.close(the target); >        } > }, 12); > >

Re: How to return a result value for wicketAjaxGet

2010-03-19 Thread vineet semwal
forgot to add the concatenation result has to be passed as argument to wicketajaxget as you already know.. On Fri, Mar 19, 2010 at 9:03 PM, vineet semwal wrote: > Hi, > take a look at > http://cwiki.apache.org/WICKET/calling-wicket-from-javascript.html > > following is what you need to do .. > >

Re: How to return a result value for wicketAjaxGet

2010-03-19 Thread vineet semwal
Hi, take a look at http://cwiki.apache.org/WICKET/calling-wicket-from-javascript.html following is what you need to do .. you can concatenate the value you want to return as paramter in callbackurl,we will read this back as request parameter from java. it should look like callbackurl+"&"+comp

RE: How to construct/generate AjaxRequestTarget for a WebPage, without explicitly being fired from AjaxButton/AjaxLink/AjaxSelfUpdatingTimerBehavior

2010-03-19 Thread Martin Asenov
No, it's something like: new Timer().schedule(new TimerTask() { public void run() { modal.close(the target); } }, 12); Best, Martin -Original Message- From: Martin Makundi [mailto:martin.maku...@koodaripalvelut.com] Sent: Friday, March 19, 2010 5:23

Re: How to construct/generate AjaxRequestTarget for a WebPage, without explicitly being fired from AjaxButton/AjaxLink/AjaxSelfUpdatingTimerBehavior

2010-03-19 Thread Martin Makundi
Yes .. don't do new AjaxTarget... use the one you are given, why not? It is an ajax event, no? ** Martin 2010/3/19 Martin Asenov : > To me modalWindow.close(new AjaxRequestTarget(containerPage)) doesn't work... > And RequestCycle.get().getRequestTarget() returns null; > > Please help... > > Best,

How to construct/generate AjaxRequestTarget for a WebPage, without explicitly being fired from AjaxButton/AjaxLink/AjaxSelfUpdatingTimerBehavior

2010-03-19 Thread Martin Asenov
To me modalWindow.close(new AjaxRequestTarget(containerPage)) doesn't work... And RequestCycle.get().getRequestTarget() returns null; Please help... Best, Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For

Re: Easies way to set custom HTML

2010-03-19 Thread Boris Goldowsky
Do you mean you have HelloPanel with one markup, and HelloMyDearFriends with the same functionality but different markup? In that case define a trivial class HelloMyDearFriends.java extending HelloPanel but not changing the function. Drop in your HelloMyDearFriends.html next to it, and you sh

How to return a result value for wicketAjaxGet

2010-03-19 Thread Stefan Lindner
If I place a call to wicketAjaxGet(...) into a eg.g onclick attribute with the help of an AjaxBehavior, the method respond(final AjaxRequestTarget target) is called on the Java side. Is it possible to build a call to wicketAjaxGet like var result = wicketAjaxGet(...); and provid the resu

Re: Wicketstuff versioning

2010-03-19 Thread Boris Goldowsky
nino martinez wael wrote: I'll be happy to join in Boris. That would be awesome, thanks Nino. I'm thinking the first thing would be to bump the wicket dependency to v1.4.7 and do a maven release of the current state of wicketstuff-core as version 1.4.7. Make sense? Is that something you

Looking for an experienced Wicket developer in Germany

2010-03-19 Thread geissbock
Hi, My company is currently looking for an experienced Wicket developer. Three new products will be developed from scratch, so there is a lot of room for your talent and creativity :-) We offer a contract for (at least) three months here in Germany. If you are interested or know anyone who mig

TypeNotPresentException

2010-03-19 Thread Svante Reutland
Hi! Im working on a project and I'm getting a weird exception in which I don't understand how to resolve. My application resides in two modules. One server side module where all business logic are. On the server side I user spring and restful webservices. Than I have a web module which inter

RE: Wicketstuff versioning

2010-03-19 Thread Stefan Lindner
Perhaps we should define an island of stability (like the name wickststuff-core implies). Maybe under another name (e.g. wicketstuff-stable). This place should only hold projects that are maintained and that are buildable with actual wicket versions. The rest of wicketstuff should be left as ist

Re: StackOverflowError under serialization leaves pagemap locked

2010-03-19 Thread Nigel Parker
OK, WICKET-2789 added. Thanks again Nigel --- we can modify serializable checker to check if anything is holding a reference to session or application and catch the error right away. please add a jira issue for this. -igor

Re: Easies way to set custom HTML

2010-03-19 Thread Martijn Dashorst
Why would you want that? Martijn On Fri, Mar 19, 2010 at 7:39 AM, Sigmar Muuga wrote: > Hello, > which is the easiest way to set custom HTML page for a Page or Panel? > For example I have panel called "HelloPanel", conventinally Wicket wants to > pair it with "HelloPanel.html" in the same packag

Re: Trailing / on parameter name/value pairs

2010-03-19 Thread Antoine van Wel
On Fri, Mar 19, 2010 at 6:43 AM, Chris Colman wrote: >> all servlet containers do that on first request. if you dont care >> about browsers with cookies disabled you can tweak tomcat to never >> append jsessionid to the url, afair there is a setting for that. >> >> -igor > > I wish I didn't have t

Re: StackOverflowError under serialization leaves pagemap locked

2010-03-19 Thread Igor Vaynberg
we can modify serializable checker to check if anything is holding a reference to session or application and catch the error right away. please add a jira issue for this. -igor On Thu, Mar 18, 2010 at 11:17 PM, Nigel Parker wrote: > Thanks for all your help, Johan and Igor. Problem solved we thi

Re: StackOverflowError under serialization leaves pagemap locked

2010-03-19 Thread Nigel Parker
Thanks for all your help, Johan and Igor. Problem solved we think. One of the pages was holding a reference to the session. With multiple Ajax requests on the same page the session size was doubling each time, eventually giving stack overflow. Nigel Or: http://wicketstuff.org/maven/repository/o

Re: Wicketstuff versioning

2010-03-19 Thread nino martinez wael
I'll be happy to join in Boris. 2010/3/18 Boris Goldowsky > Thank you for your thoughts Jeremy -- and your previous work on > WicketStuff. I am certainly unhappy to hear that it felt like torture > and that junk was being dumped on you rather than getting support from > the community. > > I'd v