Re: [Wicket-user] Pro Wicket and RestartResponseAtInterceptPage question

2007-02-02 Thread karthik Guru
It has to do with this problem - http://www.nabble.com/a-problem-with-continueToOriginalDestination-tf1427448.html#a3849601 Wicket doesn't remember the actual post url in this case. I added a bug and rfe. These are the bug/rfe tracking numbers

Re: [Wicket-user] [Upload] Upload and Ajax

2007-02-02 Thread Paolo Di Tommaso
I have implemented an ajax upload using wicket, but you still have to use the common trick to submit to an hidden iframe /. For example: iframe name=uploadtarget style=display:none /iframe form wicket:id=upload target=uploadtarget input type=filewicket:id=file / /form Submitting to an hidden

Re: [Wicket-user] setResizable(false) for ModalWindow doesn't work

2007-02-02 Thread Matej Knopp
Hi you are calling setResizable too late. When MyModalPage constructor is called, the window is already shown. You have to call setResizable (as well as the other methods) _before_ calling modalWindow.show(). -Matej beboris wrote: We have the following code that attempts to create a modal

Re: [Wicket-user] ui framework choice

2007-02-02 Thread Timo Rantalaiho
On Thu, 01 Feb 2007, Scott Swank wrote: And we just got WicketTester up running. Very nice stuff. Its I checked yesterday and our .ui package had a line coverage of 96 % or something such, slightly more than the overall for the whole software :) capabilities are already impressing folk.

Re: [Wicket-user] [Upload] Upload and Ajax

2007-02-02 Thread Johan Compagner
ahh yes not really ajax but that would work. johan On 2/2/07, Paolo Di Tommaso [EMAIL PROTECTED] wrote: I have implemented an ajax upload using wicket, but you still have to use the common trick to submit to an hidden iframe /. For example: iframe name=uploadtarget style=display:none /iframe

[Wicket-user] How can I add some javascript to make sure the main page will occupy whole browser?

2007-02-02 Thread Carfield Yim
We have a small version of login windows which exist within an iframe. After the user login we need to make the main page occupy the whole browser windows. How can I add that javascript to onload event of that main page? -

Re: [Wicket-user] Pro Wicket and RestartResponseAtInterceptPage question

2007-02-02 Thread Robert ...
Okay that makes it clear. Then I will just ignore this problem and hope it will be fixed by the time I really need it :) Perhaps a note could be added to the errata about it? I tried opening the tracking number, but I get a page with Artifact: Only Group Members Can View Private ArtifactTypes

[Wicket-user] Problem of adding confirm javascript to link

2007-02-02 Thread Carfield Yim
For some delete link, I've add a confirm() javascript for Link.getOnClickScript() . However I found that even I click cancel at the javascript popup wicket will still execute the link. (delete the record in my case) How can I press the cancel message to wicket?

Re: [Wicket-user] ui framework choice

2007-02-02 Thread Johan Compagner
I was able to test some ajax functionality by firing events with WicketTester, but something related to forms not. The problematic form thing I just tested with Wicket Bench then. If anyone is interested I can cook up a quickstart representing the WicketTester-with-ajaxified-form problem.

Re: [Wicket-user] Pro Wicket and RestartResponseAtInterceptPage question

2007-02-02 Thread Johan Compagner
yes thats on my todo list johan On 2/2/07, karthik Guru [EMAIL PROTECTED] wrote: It has to do with this problem - http://www.nabble.com/a-problem-with-continueToOriginalDestination-tf1427448.html#a3849601 Wicket doesn't remember the actual post url in this case. I added a bug and rfe.

Re: [Wicket-user] How can I add some javascript to make sure the mainpage will occupy whole browser?

2007-02-02 Thread Nino Wael
You could write parent.location, and redirect to the page you want to fill the whole page. But im not sure if it's a dirty hack. As Web developer tool bar reports it as access denied in FF. Looking forward to hear about some other ideas.. -Nino -Original Message- From: [EMAIL

Re: [Wicket-user] Problem of adding confirm javascript to link

2007-02-02 Thread Igor Vaynberg
package wicket.misc; import wicket.Component; import wicket.ajax.ClientEvent; import wicket.behavior.AbstractBehavior; import wicket.markup.ComponentTag; import wicket.model.IModel; public class JavascriptConfirm extends AbstractBehavior { private final ClientEvent event; private final

[Wicket-user] Pro Wicket - Form.process()

2007-02-02 Thread Robert ...
Hi, Page 96 of the Pro Wicket book describes how discouraging it is that you lose your initial selection, because Wicket does not update form component models during Form submission. A getForm().process() is needed in the DropDownChoice.onSelectionChanged() However when testing it (with wicket

Re: [Wicket-user] Pro Wicket - Form.process()

2007-02-02 Thread Igor Vaynberg
you could just download the source and take a look yourself /** * Called when a selection changes. */ public final void onSelectionChanged() { convert(); updateModel(); onSelectionChanged(getModelObject()); } from the above i would say yes, the behavior

Re: [Wicket-user] How can I add some javascript to make sure the mainpage will occupy whole browser?

2007-02-02 Thread Carfield Yim
I guess I know how to write the javascript. The probably is how can I trigger the onload event at wicket On 2/2/07, Nino Wael [EMAIL PROTECTED] wrote: You could write parent.location, and redirect to the page you want to fill the whole page. But im not sure if it's a dirty hack. As Web

Re: [Wicket-user] Wicket gear like logo's

2007-02-02 Thread Martijn Dashorst
Something like this? http://www.alibaba.com/catalog/11037305/Punched_Hole_Bag_With_Wicket.html I think you can only order in quantities of 1,000,000 so you'd better get popular! If you look for a logo, then get: http://wicketframework.org/style/logo.png Martijn On 2/2/07, nilo.de.roock

[Wicket-user] Wicket gear like logo's

2007-02-02 Thread nilo.de.roock
I wanted to decorate my site a bit with Wicket gear but I couldn't find any. Please help. Thanks, -nilo -- View this message in context: http://www.nabble.com/-Wicket-user-Wicket-gear-like-logo%27s-tf3160302.html#a8765258 Sent from the Wicket - User mailing list archive at Nabble.com.

[Wicket-user] Composite Behavior....

2007-02-02 Thread Erik Brakkee
Hi, I have encountered a situation where I would like to add more than one behavior to a component. One example is that of a tooltip where I need a header contributor to load some javascript and an attibute to contain the tooltip text. In wicket you can do this by adding two behaviors to a

Re: [Wicket-user] Composite Behavior....

2007-02-02 Thread Frank Bille
Hi Erik I think the ToolTip behaviour would be a good addition to extentions. However I can see that there is some legal problems since the javascript you use is under CC which is still much unclear in ASF land. CC ShareAlike is questionable[1] so I would like os to not use it for now if

Re: [Wicket-user] Problem of adding confirm javascript to link

2007-02-02 Thread Justin Lee
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 More simply, you could do this: add(new AttributeModifier(onClick, true, new Model(javascript:return confirm('Are you sure you want to delete this?');))); Igor Vaynberg wrote: package wicket.misc; import wicket.Component; import

Re: [Wicket-user] Composite Behavior....

2007-02-02 Thread Erik Brakkee
Hi Frank, On 2/2/07, Frank Bille [EMAIL PROTECTED] wrote: Hi Erik I think the ToolTip behaviour would be a good addition to extentions. However I can see that there is some legal problems since the javascript you use is under CC which is still much unclear in ASF land. CC ShareAlike is

Re: [Wicket-user] Strategy for many to one component relationships in 1.2.x

2007-02-02 Thread Ryan
Looks like that is what I am going to have to do. Yet another reason wicket 2.0 is going to be nice. =) Ryan On 2/1/07, Igor Vaynberg [EMAIL PROTECTED] wrote: On 2/1/07, Ryan [EMAIL PROTECTED] wrote: You don't get off that easy. =) What if login link parent is not the same parent as the

Re: [Wicket-user] Problem of adding confirm javascript to link

2007-02-02 Thread Igor Vaynberg
yes, but that will eat any other javascript in the event. -igor On 2/2/07, Justin Lee [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 More simply, you could do this: add(new AttributeModifier(onClick, true, new Model(javascript:return confirm('Are you sure

Re: [Wicket-user] Problem of adding confirm javascript to link

2007-02-02 Thread Igor Vaynberg
replace ClientEvent with a string then and pass in onclick or something. -igor On 2/2/07, Carfield Yim [EMAIL PROTECTED] wrote: Thanks a lot! however I don't have wicket.ajax.ClientEvent at wicket 1.2.4 and wicket extension 1.2.4 . May be it locate at other projects? By the way, I haven't

Re: [Wicket-user] Strategy for many to one component relationships in 1.2.x

2007-02-02 Thread Igor Vaynberg
the approach isnt much different in 2.0 just that you can find the loginpanel in the constructor -igor On 2/2/07, Ryan [EMAIL PROTECTED] wrote: Looks like that is what I am going to have to do. Yet another reason wicket 2.0 is going to be nice. =) Ryan On 2/1/07, Igor Vaynberg [EMAIL

Re: [Wicket-user] Problem of adding confirm javascript to link

2007-02-02 Thread Carfield Yim
Sorry, look like Link.getOnClickScript() is actually work, just I only call 'confirm xxx' but not ' return confrm xxx' On 2/2/07, Justin Lee [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 More simply, you could do this: add(new AttributeModifier(onClick, true,

Re: [Wicket-user] Is there easy way to make AjaxFallbackDefaultDataTable non-sortable?

2007-02-02 Thread Carfield Yim
This work very nice, thx On 2/1/07, Martijn Dashorst [EMAIL PROTECTED] wrote: Use other Column constructors (one parameter less). Martijn On 2/1/07, Carfield Yim [EMAIL PROTECTED] wrote: There is some table we don't want user to sort, can I make AjaxFallbackDefaultDataTable not able to

Re: [Wicket-user] Not sure how to use DatePicker component

2007-02-02 Thread Scott Swank
The text field has yy, while the date picker puts into the date -- whether it's MM/dd/ or dd/MM/ (due to i18n). Then we get an annoying npe rendering the feedback panel -- which I still haven't tracked down. popup contains panel panel contains form form contains fields with

Re: [Wicket-user] Not sure how to use DatePicker component

2007-02-02 Thread Eelco Hillenius
Give us a stacktrace if you have it. Eelco On 2/2/07, Scott Swank [EMAIL PROTECTED] wrote: The text field has yy, while the date picker puts into the date -- whether it's MM/dd/ or dd/MM/ (due to i18n). Then we get an annoying npe rendering the feedback panel -- which I still

Re: [Wicket-user] Not sure how to use DatePicker component

2007-02-02 Thread Scott Swank
It's clearly the AjaxFormValidatingBehavior.addToAllFormComponents(this, onblur, wicket.util.time.Duration.seconds(2)). Without that everything works as expected. We'll just comment that out for out demo. Here's the code the stack trace. public RoomRequestForm(String id, IModel model,

Re: [Wicket-user] Not sure how to use DatePicker component

2007-02-02 Thread Eelco Hillenius
The date converter is being phased out because it is messy in many ways (and the java.util.Date API is partly to blame for that!). I think you would do best just copying the whole component to your own project and then tweaking it in getInitiScript and by depending on your own date converter for

Re: [Wicket-user] Not sure how to use DatePicker component

2007-02-02 Thread Eelco Hillenius
I just asked on the developer list http://www.nabble.com/replacement-for-date-picker-tf3162478.html Eelco On 2/2/07, Scott Swank [EMAIL PROTECTED] wrote: Nice, thank you. Where does the process to replace DatePicker stand? On 2/2/07, Eelco Hillenius [EMAIL PROTECTED] wrote: The date

Re: [Wicket-user] Wicket 2.0 bookmarkable page issue?

2007-02-02 Thread Aaron Hiniker
My web.xml: web-app display-nameArchetype Created Web Application/display-name filter filter-nameEDI/filter-name filter-classwicket.protocol.http.WicketFilter/filter-class init-param param-nameapplicationClassName/param-name param-value com.edicorp.erp.web.Application

Re: [Wicket-user] Wicket 2.0 bookmarkable page issue?

2007-02-02 Thread Igor Vaynberg
you should probably specify the filterpath param as well, even if it is empty or a / -igor On 2/2/07, Aaron Hiniker [EMAIL PROTECTED] wrote: My web.xml: web-app display-nameArchetype Created Web Application/display-name filter filter-nameEDI/filter-name

Re: [Wicket-user] Fighting Too many open files problem related to wicket resource files

2007-02-02 Thread beboris
Thanks for the hints. Between those and what we've already known, we should be fine... Bob. Johan Compagner wrote: Tomcat can do that: http://tomcat.apache.org/tomcat-5.5-doc/config/context.html see anti resource and anti jar locking. I think the end result will be that tomcat

Re: [Wicket-user] setResizable(false) for ModalWindow doesn't work

2007-02-02 Thread beboris
Thank you, Matej. It did the trick... Bob. Matej Knopp wrote: Hi you are calling setResizable too late. When MyModalPage constructor is called, the window is already shown. You have to call setResizable (as well as the other methods) _before_ calling modalWindow.show(). -Matej

[Wicket-user] Ajax DropDownChoice - retain selected value when choices are refreshed

2007-02-02 Thread Peter Thomas
Hi, I have these two DropDownChoices (A and B) and I am refreshing the choices in B through Ajax when the selection in A changes. AjaxFormComponentUpdatingBehavior works fine, no problems here. In my case many of the choices in B are common for all the possible selections in A. Consider the