Re: Changing the year of a DatePicker

2008-01-08 Thread Gerolf Seitz
Hi Martijn, if you override DatePicker#enableMonthYearSelection and let it return true, a month and year selector is available. just click on the current date (eg. January 2008) and the so called Calendar Navigator should appear. hth, Gerolf On Jan 8, 2008 8:29 AM, Martijn Lindhout [EMAIL

Re: AjaxEditableLabel in 1.3.0

2008-01-08 Thread Frank Bille
It's a known issue[0]. It will be fixed in 1.3.1. Frank [0]: https://issues.apache.org/jira/browse/WICKET-1239 On Jan 7, 2008 9:40 PM, givp [EMAIL PROTECTED] wrote: Hello, I'm having some problems with AjaxEditableLabel that seem to happen in Wicket 1.3.0 only. When I roll back to rc1,

Missing PageParameters with Wicket 1.3

2008-01-08 Thread Semmling, Marius
Hi! I've got a problem with the wicket PageParameters. After switching from wicket 1.2.6 to 1.3 I no longer receive any parameters from the query string. My wicket WebApplication is called from a html file which sets some parameters (something like wicket?param1=xparam=y ...). With wicket 1.2.6

Re: Wicket 1.3 portlets in Liferay

2008-01-08 Thread racso
I use liferay 4.2.2 (Build 3502) but I have a problem I cannot change any configuration of liferay is it possible to make wicket work correctly in liferay ? best regards, On Jan 4, 2008 3:10 PM, Thijs [EMAIL PROTECTED] wrote: Check also:

Javascript call to wicket

2008-01-08 Thread Sébastien Piller
Hello guys, I've a little question about the javascript and wicket. I need to update some models on server side using javascript (in fact, I need to update it from a flash object, and that's why I use js). But I have no idea about how to do this... I know how to call a JS function from

Re: Referring Page links to a deployed context

2008-01-08 Thread mbelarbi
Thanks alot for your help. igor.vaynberg wrote: ExternalLink is used to generate links to nonwicket resources, so there you have full control of the url. if you want to generate a link to the page you should do add(new BookmarkablePageLink(firstPage, FirstPage.class)); -igor On

Script in RenderHead method of AjaxFormChoiceComponentUpdatingBehavior needs fixing

2008-01-08 Thread wicket user
Hi Igor, Thank you very much for the quick response. The project i was working on was using the version 1.2.6, so to use AjaxFormChoiceComponentUpdatingBehavior i had to update the project to use the latest wicket version. How ever i have noticed a problem with the script in the renderHead

DataView and Checkboxs: Dummy question

2008-01-08 Thread Alan Romaniuc
Hi, A dummy question, or suggestion... I am new to Wicket and i trying to understanding it. I have a form with a Paginated DataView and I would like to use checkbox (something like old WebMails) to select rows, and a delete button, so I can delete multiple lines at a time. Right now I am

Re: Javascript call to wicket

2008-01-08 Thread Michael Sparer
Generally you can get the callback-url of a wicket ajax-component with calling getCallbackUrl(), you should have a look at wicketAjaxGet which is part of wicket's JS library to make the whole stuff a bit more dynamic you could make a javascript template using wicketstuff-dojo, e.g. function

Re: AjaxEditableLabel in 1.3.0

2008-01-08 Thread Per Ejeklint
A quick solution is to copy AjaxEditableLabel and add @Override protected void onModelChanged() { super.onModelChanged(); } @Override protected void onModelChanging() { super.onModelChanging(); } to it. It seems

Re: Google to host the London Wicket Event ...

2008-01-08 Thread jweekend
Typos on the http://www.jweekend.com/dev/LWUGReg/ registration page have been corrected (thanks Jimmy and Al) and a link to a map of the area is included. After skipping the January date (which would have been the day after New Year's day) we're filling up quickly and it's nice to see many

Re: DropDownChoice always on the top

2008-01-08 Thread dariusz.holda
I've found a css solution to this nasty IE bug. If anyone is interested, here is the link: http://www.hedgerwow.com/360/bugs/css-select-free.html dariusz.holda wrote: I'm trying to hide it with javascript. But I'll check the css solutions as well Thx, Dariusz igor.vaynberg wrote:

Re: Javascript call to wicket

2008-01-08 Thread Pills
Michael Sparer wrote: Generally you can get the callback-url of a wicket ajax-component with calling getCallbackUrl(), you should have a look at wicketAjaxGet which is part of wicket's JS library to make the whole stuff a bit more dynamic you could make a javascript template using

Re: JMeter load testing and Ajax - is it possible

2008-01-08 Thread Martijn Dashorst
The random parameter is to prevent the browser from caching the requests. It shouldn't have any implication afaict. Martijn On Jan 8, 2008 2:40 PM, Peter Thomas [EMAIL PROTECTED] wrote: Hi, I'm trying to use JMeter when Ajax is involved. I have a form where a drop-down-choice onChange

JMeter load testing and Ajax - is it possible

2008-01-08 Thread Peter Thomas
Hi, I'm trying to use JMeter when Ajax is involved. I have a form where a drop-down-choice onChange event, adds another drop-down onto the form over ajax. When the form is first shown, the second drop-down component is not visible at all. After the ajax operation and when both the drop-downs

Re: JMeter load testing and Ajax - is it possible

2008-01-08 Thread C.
On Tue, 2008-01-08 at 19:10 +0530, Peter Thomas wrote: Hi, I'm trying to use JMeter when Ajax is involved. I have a form where a drop-down-choice onChange event, adds another drop-down onto the form over ajax. When the form is first shown, the second drop-down component is not visible at

Re: Javascript call to wicket

2008-01-08 Thread Erik van Oosten
I just finished an experiment with something like that. Its still ugly and very static, but here is my code. In the HTML header the function you can call from Flash: function(someValue) { var inputEl = document.getElementById('anchor8'); inputEl.value = someValue;

Re: Missing PageParameters with Wicket 1.3

2008-01-08 Thread Johan Compagner
please create a jira issue for this On Jan 8, 2008 11:16 AM, Semmling, Marius [EMAIL PROTECTED] wrote: Hi! I've got a problem with the wicket PageParameters. After switching from wicket 1.2.6 to 1.3 I no longer receive any parameters from the query string. My wicket WebApplication is

Date validation

2008-01-08 Thread Marco Aurélio Silva
Hi I'm having problems with validation on a date field. Is there a easy way to validate user input on date fields? If user types a invalid date like 32-01-2008 I got a ConversionException: wicket.util.convert.ConversionException: Cannot parse '32-01-2008' using format [EMAIL PROTECTED] at

Re: JMeter load testing and Ajax - is it possible

2008-01-08 Thread Martijn Dashorst
Just one caveat... we might use the randomid in the future to guard against request spoofing though. It has been discussed in the past, not sure if there are actual plans to really use it. The same goes for the pagenumber. Currently this is not a concern, and if we were to implement it, we'll make

Re: JMeter load testing and Ajax - is it possible

2008-01-08 Thread Peter Thomas
On 1/8/08, Martijn Dashorst [EMAIL PROTECTED] wrote: The random parameter is to prevent the browser from caching the requests. It shouldn't have any implication afaict. Martijn Thanks Martijn - that answers one big question that I had in the context of Ajax / JMeter. Thanks cbergstrom for

Re: Date validation

2008-01-08 Thread Eelco Hillenius
What version of Wicket/ which component? Eelco On Jan 8, 2008 9:34 PM, Marco Aurélio Silva [EMAIL PROTECTED] wrote: Hi I'm having problems with validation on a date field. Is there a easy way to validate user input on date fields? If user types a invalid date like 32-01-2008 I got a

Re: required for Checkbox

2008-01-08 Thread Sam Barnum
Right, like for an accept terms checkbox after some legalese stuff, for example. On Jan 7, 2008, at 5:09 PM, Kent Tong wrote: Dan Kaplan-3 wrote: But another way to look at it is this: When a checkbox is unchecked, it has a value of unchecked. Therefore, if you setRequired=true on a

Re: Date validation

2008-01-08 Thread Marco Aurélio Silva
Wicket 1.2.6 I'm using this code: RequiredTextField dateField = new RequiredTextField(dueDate, new PropertyModel (newsItem, dueDate)); form.add(dateField); form.add(new DatePicker(dateFieldPicker, dateField)); Anyway, I solved the problem creating a SimpleDateValidator public class

Feedback with AjaxButton

2008-01-08 Thread Martijn Lindhout
Hello there, I have a reusable component inside a form. I added a FeedbackPanel to the component with a ComponentFeedbackMessageFilter. The component has a required DateTextField. When I submit the form using Ajax with no value provided for the date, no feedback message appears... The

Re: Date validation

2008-01-08 Thread Eelco Hillenius
You should set the type to Date by either using the appropriate constructor or by calling setType. Eelco On Jan 8, 2008 10:16 PM, Marco Aurélio Silva [EMAIL PROTECTED] wrote: Wicket 1.2.6 I'm using this code: RequiredTextField dateField = new RequiredTextField(dueDate, new PropertyModel

Re: Is it possible to use wicket without having any html page?

2008-01-08 Thread Sam Hough
Thanks Nino, Went with your original suggestion but down a layer in our application so got rid of lots of similar code for introspection based CRUD type stuff etc... So can happily just do: horizontalPanel.add(new Button(Click me)); horizontalPanel.add(new HTML(Some text));

Re: JMeter load testing and Ajax - is it possible

2008-01-08 Thread C.
On Tue, 2008-01-08 at 20:14 +0530, Peter Thomas wrote: On 1/8/08, Martijn Dashorst [EMAIL PROTECTED] wrote: The random parameter is to prevent the browser from caching the requests. It shouldn't have any implication afaict. Martijn Thanks Martijn - that answers one big question

Re: Date validation

2008-01-08 Thread Marco Aurélio Silva
Simple solution... thank you! On Jan 8, 2008 12:38 PM, Eelco Hillenius [EMAIL PROTECTED] wrote: You should set the type to Date by either using the appropriate constructor or by calling setType. Eelco On Jan 8, 2008 10:16 PM, Marco Aurélio Silva [EMAIL PROTECTED] wrote: Wicket 1.2.6

Re: Feedback with AjaxButton

2008-01-08 Thread Edvin Syse
I have a reusable component inside a form. I added a FeedbackPanel to the component with a ComponentFeedbackMessageFilter. The component has a required DateTextField. When I submit the form using Ajax with no value provided for the date, no feedback message appears... The onError(...) method is

Re: JMeter load testing and Ajax - is it possible

2008-01-08 Thread Nino Saturnino Martinez Vazquez Wael
Did you see the wicket wiki page on this... Looking closer I see you did(as you wrote a part of it):) Kudos:) And btw I've had no trouble testing ajax with jmeter(was it you who helped me with the regx for dropdowns?)... My case was to have a dropdown populate the palette via onchange and

Download Link Problem

2008-01-08 Thread marcus dickerhof
Hi, I have a problem with downloading dynamic content in IE 6. Somehow IE 6 has Problems with thecontent-disposition: attachment; filename=??? headers in connection with HTTPS (Do not save encrypted pages to disk). Error: Cannot copy file: cannot read from the source file or disk. The

Re: Javascript call to wicket

2008-01-08 Thread Michael Sparer
hi, - your component has to implement IHeaderContributor, that's where the response-object gets passed - you add the abstractdefaultajaxbehavior to the component you'd like to call from javascript. you then have to override the respond method of AbstractDefaultAjaxBehavior to perform your

pageContext.getErrorData()?

2008-01-08 Thread William Hoover
Is there a wicket equivalent to pageContext.getErrorData()? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: pageContext.getErrorData()?

2008-01-08 Thread Igor Vaynberg
see session.getfeedbackmessages() -igor On Jan 8, 2008 8:34 AM, William Hoover [EMAIL PROTECTED] wrote: Is there a wicket equivalent to pageContext.getErrorData()? - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: DataView and Checkboxs: Dummy question

2008-01-08 Thread Igor Vaynberg
looks fine, the only minor tweak i would do is that since the check box model is inner nonstatic class it probably has access to the selected set already, so prob no need to pass it in. -igor On Jan 8, 2008 3:46 AM, Alan Romaniuc [EMAIL PROTECTED] wrote: Hi, A dummy question, or

Re: Changing the year of a DatePicker

2008-01-08 Thread Igor Vaynberg
imho this should be enabled by default... -igor On Jan 8, 2008 12:07 AM, Gerolf Seitz [EMAIL PROTECTED] wrote: Hi Martijn, if you override DatePicker#enableMonthYearSelection and let it return true, a month and year selector is available. just click on the current date (eg. January 2008)

Re: Script in RenderHead method of AjaxFormChoiceComponentUpdatingBehavior needs fixing

2008-01-08 Thread Igor Vaynberg
yes please, and attach a patch -igor On Jan 8, 2008 2:31 AM, wicket user [EMAIL PROTECTED] wrote: Hi Igor, Thank you very much for the quick response. The project i was working on was using the version 1.2.6, so to use AjaxFormChoiceComponentUpdatingBehavior i had to update the project to

Re: JMeter load testing and Ajax - is it possible

2008-01-08 Thread Peter Thomas
On Jan 8, 2008 9:58 PM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Did you see the wicket wiki page on this... Looking closer I see you did(as you wrote a part of it):) Kudos:) And btw I've had no trouble testing ajax with jmeter(was it you who helped me with the regx

Re: JMeter load testing and Ajax - is it possible

2008-01-08 Thread anita nichols
How do I cancel my subscription to wicket. On Jan 8, 2008 9:30 AM, Peter Thomas [EMAIL PROTECTED] wrote: On Jan 8, 2008 9:58 PM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Did you see the wicket wiki page on this... Looking closer I see you did(as you wrote a part of

Re: JMeter load testing and Ajax - is it possible

2008-01-08 Thread Igor Vaynberg
its on the end of every message that is on this list - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -igor On Jan 8, 2008 10:00 AM, anita nichols [EMAIL PROTECTED] wrote: How

Re: JMeter load testing and Ajax - is it possible

2008-01-08 Thread anita nichols
I tried that 2 times won't work. Is anyone have authority to unsubscribe me? On Jan 8, 2008 10:05 AM, Igor Vaynberg [EMAIL PROTECTED] wrote: its on the end of every message that is on this list - To unsubscribe, e-mail:

Re: pageContext.getErrorData()?

2008-01-08 Thread Igor Vaynberg
iteratorfeedbackmessage i=feedbackmessages.iterator(); while (i.hasnext()) { feedbackmessage m=i.next(); m.getlevel()== error/info/warn m.getmessage()== error message } if you want to intercept an exception then override requestcycle.onruntimeexception(runtimeexception e) -igor On Jan 8,

Copenhagen Meeting

2008-01-08 Thread Frank Bille
I'm fresh for a new meeting. What about the last week of January? Preferable late afternoon starting around 4-6pm. Frank On Jan 3, 2008 11:17 AM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Yes I think so, dates anyone? Currently im free, although in the start of next week

Re: Changing the year of a DatePicker

2008-01-08 Thread Gerolf Seitz
you're right. the first solution we had was homebrew and had a different ui, thus it wasn't enabled by default. now that the month/year selection is done with the CalendarNavigator, we should probably do that. Gerolf On Jan 8, 2008 6:37 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: imho this

Re: pageContext.getErrorData()?

2008-01-08 Thread Igor Vaynberg
create your own subclass of requestcycle and override onruntimeexception like i said. that is the best place. -igor On Jan 8, 2008 10:39 AM, Hoover, William [EMAIL PROTECTED] wrote: I need to create a catch all error page that makes use of http status codes as well as any exceptions that may

Re: JMeter load testing and Ajax - is it possible

2008-01-08 Thread Igor Vaynberg
i tried to unsubscribe you but it says that your email address [anitanichols at gmail.com] is not subscribed to the users list. so you should try unsubscribing using whatever address you subscribed with. -igor On Jan 8, 2008 10:10 AM, anita nichols [EMAIL PROTECTED] wrote: I tried that 2 times

RE: pageContext.getErrorData()?

2008-01-08 Thread Hoover, William
I need to create a catch all error page that makes use of http status codes as well as any exceptions that may have been thrown. Where would I retrieve this data? BTW, thanks your assistance! -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 08,

Re: Javascript call to wicket

2008-01-08 Thread Michael Sparer
hi erik, actually the example in my first post already calls the behaviour: function callWicket() { var wcall = wicketAjaxGet('${url}' + addToUrl, function() { }, function() { }); // addToUrl are optional parameters } the addToUrl variable above may look like that 'foo=bar' - so you can

Re: Javascript call to wicket

2008-01-08 Thread Erik van Oosten
Nice to see a more structured approach. Do you have a small JavaScript example that shows how to call the behavior URL? Can you also explain (or reference docs/examples) how to pass parameters from javascript to the behavior? Regards, Erik. Michael Sparer wrote: hi, - your

RE: DropDownChoice always on the top

2008-01-08 Thread Dan Kaplan
Cool. Would it be the wicket way to automatically do this in the dropdown choice so that wicket developers don't have understand this bug themselves? -Original Message- From: dariusz.holda [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 08, 2008 5:25 AM To: users@wicket.apache.org

Re: Feedback with AjaxButton

2008-01-08 Thread Martijn Lindhout
yep, it works 2008/1/8, Edvin Syse [EMAIL PROTECTED]: I have a reusable component inside a form. I added a FeedbackPanel to the component with a ComponentFeedbackMessageFilter. The component has a required DateTextField. When I submit the form using Ajax with no value provided for the

Custom logging system conflict with restoring sessions

2008-01-08 Thread Scott Sauyet
I'm not sure exactly what my question is other than Do you have any suggestions? :-( I'm using a custom extension to log4j's FileAppender. I need to configure this in a class that loads a separate properties file. It took me a while to figure a way to do this so that my configuration

Re: Custom logging system conflict with restoring sessions

2008-01-08 Thread Nick Heudecker
Do you mean if a Wicket component exists in a user's session between app server restarts? On Jan 8, 2008 3:10 PM, Scott Sauyet [EMAIL PROTECTED] wrote: I'm not sure exactly what my question is other than Do you have any suggestions? :-( I'm using a custom extension to log4j's FileAppender.

Re: Changing the year of a DatePicker

2008-01-08 Thread jweekend
It would also be good to have a Today button (that may be invisible by default if it offends anybody). I'm sure I used a Wicket calendar component in the 1.2.? days that had this useful feature (by default). It would be even better to have a button that can say Today as default but that could be

Re: Custom logging system conflict with restoring sessions

2008-01-08 Thread Scott Sauyet
Exactly. I do want to allow that. And until this issue that was never a problem. I could restart the server and continue where I was in the application. But I think I would sacrifice that if I could for my logging issue. -- Scott Nick Heudecker wrote: Do you mean if a Wicket component

Re: Wickettester and session?

2008-01-08 Thread cricdigs
Hi, I have the same issue. If I use ZeuzGroupApplication.class I get the known issue of ClassCastException and if I use the new ZeuzGroupApplication(), I get the following error. Any help will be greatly appreciated... Regards. java.lang.IllegalStateException: No WebApplicationContext found:

Re: Javascript call to wicket

2008-01-08 Thread jweekend
This is an interesting and useful thread and goes over ground not too well covered elsewhere, afaics. Would it be worthwhile to get an authoritatively edited version up on the Wiki, maybe in the reference section? Regards - Cemal http://jWeekend.co.uk http://jWeekend.co.uk Pills wrote:

Re: Wickettester and session?

2008-01-08 Thread Igor Vaynberg
spring web application expects the spring container to be available. so you need to setup that first and make sure the tester can get to it -igor On Jan 8, 2008 2:17 PM, cricdigs [EMAIL PROTECTED] wrote: Thanks for your quick reply. But sorry, not sure what you mean. This is my WicketTester:

Re: Javascript call to wicket

2008-01-08 Thread Pills
Thank you, I choosed your first and pretty solution, and it works fine. But how to get the parameters in the java code? I see nothing in the class AjaxRequestTarget that may return the parameters of the request? Michael Sparer wrote: hi, - your component has to implement

Stream resource on setWindowClosedCallback

2008-01-08 Thread Artur W.
Hi! I have a form inside a ModalWindow. When user submit the form I want to close to window and stream pdf. I tried: setWindowClosedCallback(new ModalWindow.WindowClosedCallback() { public void onClose(AjaxRequestTarget target) {

Re: Copenhagen Meeting

2008-01-08 Thread Flemming Boller
That suits also me! 29 jan tuesday ? /Flemming On Jan 8, 2008 7:54 PM, Frank Bille [EMAIL PROTECTED] wrote: I'm fresh for a new meeting. What about the last week of January? Preferable late afternoon starting around 4-6pm. Frank On Jan 3, 2008 11:17 AM, Nino Saturnino Martinez Vazquez

Re: Javascript call to wicket

2008-01-08 Thread Michael Sparer
The parameters you defined in JS are regular HTTP GET parameters, so, as I wrote earlier, you can get them out of the request. You can do that like so: Map map = ((WebRequestCycle)RequestCycle.get()).getRequest().getParameterMap(); Maybe there's also an easier way but I'm not really into wicket's

RE: DropDownChoice always on the top

2008-01-08 Thread dariusz.holda
The thing is you are not changing the select component, in our case dropdown, but you are adding iframe to a component you wish to obfuscate the dropdown. Hence there is no point in changing the dropdownchoice. Dan Kaplan-3 wrote: Cool. Would it be the wicket way to automatically do this in