Re: Changing the year of a DatePicker
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 PROTECTED] wrote: Hi all, I use a YUI DatePicker with a DateTextField (from wicket-datetime). By default, I can only scroll by month. Is it possible to have a dopdown list for the year? Thanx, -- Martijn Lindhout JointEffort IT Services http://www.jointeffort.nl [EMAIL PROTECTED] +31 (0)6 18 47 25 29
Re: AjaxEditableLabel in 1.3.0
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, everything works fine. I have used the example code from: http://www.wicket-library.com/wicket-examples/ajax/editable-label.1 setModel(new CompoundPropertyModel(this)); add(new AjaxEditableLabel(userStatus)); I can edit the field but it fails to save. According to Tomcat it's setModel that is causing the errors. java.lang.IllegalAccessError: tried to access method org.apache.wicket.Component.onModelChanging()V from class org.apache.wicket.extensions.ajax.markup.html.AjaxEditableLabel$1 Can anyone please point me to the right direction as to how I can fix this without having to use rc1? Thanks, g -- View this message in context: http://www.nabble.com/AjaxEditableLabel-in-1.3.0-tp14675483p14675483.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Missing PageParameters with Wicket 1.3
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 I received these parameters without any trouble, with 1.3 the pageparameters are always empty. The application entry point is MainApplication: public class MainApplication extends WebApplication { public MainApplication() { } public Class getHomePage() { return Home.class; } ... public class Home extends WebPage { public Home(PageParameters params) { System.out.println(--- Home Params:+params); ... Any help would be apreciated. Marius Semmling Telefon: 0251/70017-333 Telefax: 0251/70017-222 E-Mail: [EMAIL PROTECTED] [pma:] software + systeme GmbH Ein Unternehmen von Pramerica Financial Münsterstr. 111 48155 Münster http://www.pma.de Geschäftsführung: Jörg Matheis Handelsregister: Amtsgericht Münster HRB 4256 Diese Information ist ausschliesslich fuer die adressierte Person oder Organisation bestimmt und koennte vertrauliches Material enthalten. Sollten Sie diese Nachricht irrtuemlich erhalten haben, bitten wir Sie, sich mit dem Absender in Verbindung zu setzen und das Material von Ihrem Computer zu loeschen. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. Wir weisen darauf hin, dass Email-Nachrichten mit und ohne Zutun von Dritten verloren gehen, veraendert oder verfaelscht werden koennen. Herkoemmliche E-Mails sind nicht gegen den Zugriff von Dritten geschuetzt und deshalb ist auch die Vertraulichkeit unter Umstaenden nicht gewahrt. Wir haften deshalb nicht fuer die Unversehrtheit von E-Mails nachdem sie unseren Herrschaftsbereich verlassen haben und koennen Ihnen hieraus entstehende Schaeden nicht ersetzen. Sollte trotz der von uns verwendeten Virus-Schutz-Programmen durch die Zusendung von E-Mails ein Virus in Ihre Systeme gelangen, haften wir nicht fuer eventuell hieraus entstehende Schaeden. Dieser Haftungsausschluss gilt nur soweit gesetzlich zulaessig.
Re: Wicket 1.3 portlets in Liferay
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: http://issues.apache.org/jira/browse/WICKET-1132 http://www.liferay.com/web/guest/community/forums/message_boards/message/338111 But in short: it works a bit: If you implement a bridge like the one in http://www.nabble.com/Portlet-howto-tt13093514.html by charly You should get things working a bit. But Ajax won't work because your not allowed to set the text/xml contenttype header (what wicket does) Dynamic resources won't work because the response is not directly accessible (as portlet 1.0 spec) and there are some other issues... I've been trying to get some things working and I've had to alter some of the portal code. I have ajax working (a bit). But I'm constantly running into other things... Thijs racso wrote: How easy is it to use Wicket 1.3 application as a portlet in Liferay Portal 4.xx? As anyone tried it yet? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Javascript call to wicket
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 flash, but I don't know how to update a wicket model using a javascript/ajax call. Has anybody some hint about that? Thanks you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Referring Page links to a deployed context
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 Jan 7, 2008 8:52 AM, mbelarbi [EMAIL PROTECTED] wrote: It's ok i solved the problem. It had nothing to do with the mount code. It was more specific to what calls this links, for example firstPage is called from another page in the following way: add(new ExternalLink(firstPage, /firstPage)); the solution is exactly what Erik Van saidremove the / infront of firstPage from the the line of code above, not from: mount(new IndexedParamUrlCodingStrategy(/firstPage, FirstPage.class, null)); thanks everyone. mbelarbi wrote: Hi, If my app (MyTest) is the root context everything runs smoothly. This is because in my MyTestApplication class, in the constructor i have mount(new IndexedParamUrlCodingStrategy(/firstPage, FirstPage.class, null)); mount(new IndexedParamUrlCodingStrategy(/secondPage, SecondPage.class, null)); mount(new IndexedParamUrlCodingStrategy(/thirdPage, ThirdPage.class, null)); This means that if i deployed this on saywww.MyTest.com and clicked on a link which took me to the frstPage the url will be www.MyTest.com/firstPage Now, this is when i get a problemwhen the deployed context isn't the root, for example if the root is www.anotherApp.com and my app runs on www.anotherApp.com/MyTest, when i click on first page now it will try and look for www.anotherApp.com/firstPage not www.anotherapp.com/MyTest/firstPage. in a nutshell the problem is that all the links in the app refer to the root context and not the deployed context. so basically what i'm looking for is something like this mount(new IndexedParamUrlCodingStrategy([WHAT EVER THE DEPLOYED CONTEXT IS]+/firstPage, FirstPage.class, null)); How can i fix this? -- View this message in context: http://www.nabble.com/Referring-Page-links-to-a-deployed-context-tp14668169p14670116.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Referring-Page-links-to-a-deployed-context-tp14668169p14686131.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Script in RenderHead method of AjaxFormChoiceComponentUpdatingBehavior needs fixing
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 method of AjaxFormChoiceComponentUpdatingBehavior. The script assumes that the Radio Component will be the immediate child of the RadioGroup Component, But in some or in most of the cases that is not correct. That is not the case even in the Wicket Examples, in examples the hierarchy is RadioGroup/ListView/Radio. I modified the script to work with RadioGroup/ListView/Radio hierarchy and it is working. Do i need to open a jira for this. Regards Dipu On Jan 4, 2008 5:01 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: ajaxformchoicecomponentupdatingbehavior or something similar... -igor On Jan 4, 2008 8:53 AM, wicket user [EMAIL PROTECTED] wrote: Hi all, I am trying to add AjaxFormComponentUpdateBehavior to Radio/RadioGroup, I cant add the behaviour to the Radio as its not a FormComponent. Adding the behaviour to RadioGroup is not working as well. Is there any work around to get it working. Regards Dipu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DataView and Checkboxs: Dummy question
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 doing something like this: /CODE/ public class InfoList extends WebPage { .. Form f = new InfoDataForm(form,infoProvider); private class InfoDataForm extends Form { SortableDataProvider dp; HashSetLong selectedValues = new HashSetLong(); ChequeListForm(String id, SortableDataProvider dp) { super(id); this.dp = dp; final DataView infoDataView = new DataView(infoList, dp) { @Override protected void populateItem(Item item) { Info info = (Info) item.getModelObject(); item.add(new CheckBox(check, new SelectItemUsingCheckboxModel(info,selectedValues))); item.add(new Label(data1, info.data1())); item.add(new Label(data2, info.data2())); } } add(infoDataView); @Override protected void onSubmit() { super.onSubmit(); for (Long i: selectedValues) { System.out.println(i); //delete rows here } } } private class SelectItemUsingCheckboxModel extends AbstractCheckBoxModel { private final Info info; private Set selection; public SelectCheckByChequeModel(Info info, Set selection) { this.info = info; this.selection = selection; } @Override public boolean isSelected() { return selection.contains(info); } @Override public void select() { selection.add(info); } @Override public void unselect() { selection.remove(info); } } } // I believe that I used the dataview and dataprovider correctly, but I am not sure about checkbox... Once I am learning, I would like to know if this is the correct way to do that, or if not, what I should do... Thanks a lot - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Javascript call to wicket
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 callWicket() { var wcall = wicketAjaxGet('${url}' + addToUrl, function() { }, function() { }); // addToUrl are optional parameters } and then in the java-code HashMapString, String map = new HashMapString, String(); map.put(url, getCallbackUrl().toString()); // getcallbackurl is from AbstractAjaxBehavior return new DojoPackagedTextTemplate(YourClass.class, CometdDefaultBehaviorTemplate.js) .asString(map); and then add it in your responseheader (renderHead method) with response.renderJavaScript(...) this may be not the easiest method but allows the most flexibility. hope that helps Michael Pills wrote: 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 flash, but I don't know how to update a wicket model using a javascript/ajax call. Has anybody some hint about that? Thanks you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Michael Sparer http://talk-on-tech.blogspot.com -- View this message in context: http://www.nabble.com/Javascript-call-to-wicket-tp14685384p14688033.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AjaxEditableLabel in 1.3.0
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 some JREs thinks that an anonymous classes should not have access to enclosing class' inherited protected methods. /Per Frank Bille-2 wrote: 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, everything works fine. I have used the example code from: http://www.wicket-library.com/wicket-examples/ajax/editable-label.1 setModel(new CompoundPropertyModel(this)); add(new AjaxEditableLabel(userStatus)); I can edit the field but it fails to save. According to Tomcat it's setModel that is causing the errors. java.lang.IllegalAccessError: tried to access method org.apache.wicket.Component.onModelChanging()V from class org.apache.wicket.extensions.ajax.markup.html.AjaxEditableLabel$1 Can anyone please point me to the right direction as to how I can fix this without having to use rc1? Thanks, g -- View this message in context: http://www.nabble.com/AjaxEditableLabel-in-1.3.0-tp14675483p14675483.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/AjaxEditableLabel-in-1.3.0-tp14675483p14687720.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Google to host the London Wicket Event ...
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 familiar names registering again this time! Make sure you register and confirm (via the automated email) early if you'd like to come along. Regards - Cemal http://jWeekend.co.uk http://jWeekend.co.uk jweekend wrote: I am pleased to announce that our next monthly London Wicket Users Group event (February 6) will be generously hosted by Google (close to Victoria Station). Special thanks go to http://herebebeasties.com/ Al Maw for arranging this - he even mentioned something about sandwiches (tbc). Full presentation and location details are at http://www.jweekend.com/dev/LWUGReg/ the event home page . Register and confirm (via the automated email) early if you'd like to be sure of a place. Regards - Cemal http://jWeekend.co.uk http://jWeekend.co.uk PS Thanks to everyone that kindly offered to host us this time. I hope we can take you up on your kind offers in the future. -- View this message in context: http://www.nabble.com/Google-to-host-the-London-Wicket-Event-...-tp14653945p14688080.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DropDownChoice always on the top
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: you should probably try a css mailing list... -igor On Jan 7, 2008 12:48 AM, dariusz.holda [EMAIL PROTECTED] wrote: With Modal window it's actualy ok. sorry for confusion. I've noticed that if you show modal window the dropdowns disappear. With the list from the AutoCompleteTextField it's not but only if the last row in the list overlaps the dropdownchoice. I discovered that if I detach a column from a table (freeze it, so it always stays on the left even if you scroll) and scroll with the column over the dropdown it's going under the dropdownchoice. Is there some way to change this behavior so my detached column will always be on top? I've tried with z-index and it doesn't work. Regards, Dariusz dariusz.holda wrote: Hi, I've noticed that no matter what z-index I set for dropdownchoice component it stays on the top. I needed it hidden under ModalWindow and under list displayed by AutoCompleteTextField. Did someone have similar problem? Regards, Dariusz -- View this message in context: http://www.nabble.com/DropDownChoice-always-on-the-top-tp14600922p14660395.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/DropDownChoice-always-on-the-top-tp14600922p14689348.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Javascript call to wicket
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 wicketstuff-dojo, e.g. function callWicket() { var wcall = wicketAjaxGet('${url}' + addToUrl, function() { }, function() { }); // addToUrl are optional parameters } and then in the java-code HashMapString, String map = new HashMapString, String(); map.put(url, getCallbackUrl().toString()); // getcallbackurl is from AbstractAjaxBehavior return new DojoPackagedTextTemplate(YourClass.class, CometdDefaultBehaviorTemplate.js) .asString(map); and then add it in your responseheader (renderHead method) with response.renderJavaScript(...) this may be not the easiest method but allows the most flexibility. hope that helps Michael Hello Michael, thank you for your answer. I have two little problems with this way: - how can I get an instance of ResponseHeader from a WebPage? - I need to use an AbstractAjaxBehavior, but where do I need to add it? Simply on the page? Or on my ShockwaveComponent? Thank you ;) -- View this message in context: http://www.nabble.com/Javascript-call-to-wicket-tp14685384p14689818.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JMeter load testing and Ajax - is it possible
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 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 are visible, I submit the form normally. I tried to make this flow into a JMeter script. I am using the JMeter regex support and am able to scrape the ajax post url. I verified that the ajax call successfully returns the XML response along with the expected HTML chunk without any problems by using a response debug listener in JMeter. Only thing I could be missing is that random=0.5855686047921232 kind of thing at the end of the URL. The problem is this form has validation involving the second drop down and when runing the JMeter script, the form validation always fails on submit. It appears that even when JMeter has the drop-down value in the POST, Wicket doesn't see it I'm guessing maybe because the previous Ajax operation did not work and Wicket thinks the second drop down is not visible yet. I seem to have everything right except the random thing. So my question is - is it possible to use something like JMeter when Ajax is involved and has anyone had any success with something like this? Does Wicket require the random param in the Ajax request / url ? If this random param is indeed required what is the best way to derive the value expected. If it is some wicket-ajax javascript function, it may be possible to get it evaluated by JMeter (rhino?) but it sounds like a very, very long shot :| Any suggestions or ideas would be greatly appreciated. Thanks, Peter. -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0
JMeter load testing and Ajax - is it possible
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 are visible, I submit the form normally. I tried to make this flow into a JMeter script. I am using the JMeter regex support and am able to scrape the ajax post url. I verified that the ajax call successfully returns the XML response along with the expected HTML chunk without any problems by using a response debug listener in JMeter. Only thing I could be missing is that random=0.5855686047921232 kind of thing at the end of the URL. The problem is this form has validation involving the second drop down and when runing the JMeter script, the form validation always fails on submit. It appears that even when JMeter has the drop-down value in the POST, Wicket doesn't see it I'm guessing maybe because the previous Ajax operation did not work and Wicket thinks the second drop down is not visible yet. I seem to have everything right except the random thing. So my question is - is it possible to use something like JMeter when Ajax is involved and has anyone had any success with something like this? Does Wicket require the random param in the Ajax request / url ? If this random param is indeed required what is the best way to derive the value expected. If it is some wicket-ajax javascript function, it may be possible to get it evaluated by JMeter (rhino?) but it sounds like a very, very long shot :| Any suggestions or ideas would be greatly appreciated. Thanks, Peter.
Re: JMeter load testing and Ajax - is it possible
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 all. After the ajax operation and when both the drop-downs are visible, I submit the form normally. I tried to make this flow into a JMeter script. I am using the JMeter regex support and am able to scrape the ajax post url. I verified that the ajax call successfully returns the XML response along with the expected HTML chunk without any problems by using a response debug listener in JMeter. Only thing I could be missing is that random=0.5855686047921232 kind of thing at the end of the URL. The problem is this form has validation involving the second drop down and when runing the JMeter script, the form validation always fails on submit. It appears that even when JMeter has the drop-down value in the POST, Wicket doesn't see it I'm guessing maybe because the previous Ajax operation did not work and Wicket thinks the second drop down is not visible yet. I seem to have everything right except the random thing. So my question is - is it possible to use something like JMeter when Ajax is involved and has anyone had any success with something like this? Does Wicket require the random param in the Ajax request / url ? If this random param is indeed required what is the best way to derive the value expected. If it is some wicket-ajax javascript function, it may be possible to get it evaluated by JMeter (rhino?) but it sounds like a very, very long shot :| Any suggestions or ideas would be greatly appreciated. I tend to use siege quite a bit, but in this case I don't think it'll do what you need. One of the jetty devs recently did some cometd benchmarking [1] you can find the code here [2] and maybe with some hacking get it to do what you want. imho this has to be less painful than anything involving jmeter. (netbeans coincidentally has some built-in jmeter support, but doubt that will help this case as well.) Sorry I can't be more help also try the jmeter list maybe? Good luck ./C [1] http://cometdaily.com/2008/01/07/2-reasons-that-comet-scales/ [2] http://fisheye.codehaus.org/browse/jetty-contrib/jetty/branches/jetty-6.1/contrib/cometd/client/src/test/java/org/mortbay/cometd/client/BayeuxLoadGenerator.java?r=root: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Javascript call to wicket
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; eval(inputEl.getAttribute('onclick')); } Somewhere in the page: form wicket:id=ajaxForm style=display: none;input wicket:id=myField type=hidden value=//form Note that 'anchor8', the Wicket generated id of the input element, still needs te be made dynamic. Not sure how yet. The code: Form form = new Form(ajaxForm); add(form); final HiddenField myField = new HiddenField(myField, new Model(), String.class); form.add(myField); myField.add(new AjaxFormSubmitBehavior(onclick) { @Override protected void onError(AjaxRequestTarget target) { throw new RuntimeException(foutje); // not sure what to do here } @Override protected void onSubmit(AjaxRequestTarget target) { String myValue = (String) myField.getConvertedInput(); processAjaxRequest(target, myValue); } }); Improvements are very welcome. Regards, Erik. Sébastien Piller wrote: 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 flash, but I don't know how to update a wicket model using a javascript/ajax call. Has anybody some hint about that? Thanks you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Missing PageParameters with Wicket 1.3
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 called from a html file which sets some parameters (something like wicket?param1=xparam=y ...). With wicket 1.2.6 I received these parameters without any trouble, with 1.3 the pageparameters are always empty. The application entry point is MainApplication: public class MainApplication extends WebApplication { public MainApplication() { } public Class getHomePage() { return Home.class; } ... public class Home extends WebPage { public Home(PageParameters params) { System.out.println(--- Home Params:+params); ... Any help would be apreciated. Marius Semmling Telefon: 0251/70017-333 Telefax: 0251/70017-222 E-Mail: [EMAIL PROTECTED] [pma:] software + systeme GmbH Ein Unternehmen von Pramerica Financial Münsterstr. 111 48155 Münster http://www.pma.de Geschäftsführung: Jörg Matheis Handelsregister: Amtsgericht Münster HRB 4256 Diese Information ist ausschliesslich fuer die adressierte Person oder Organisation bestimmt und koennte vertrauliches Material enthalten. Sollten Sie diese Nachricht irrtuemlich erhalten haben, bitten wir Sie, sich mit dem Absender in Verbindung zu setzen und das Material von Ihrem Computer zu loeschen. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. Wir weisen darauf hin, dass Email-Nachrichten mit und ohne Zutun von Dritten verloren gehen, veraendert oder verfaelscht werden koennen. Herkoemmliche E-Mails sind nicht gegen den Zugriff von Dritten geschuetzt und deshalb ist auch die Vertraulichkeit unter Umstaenden nicht gewahrt. Wir haften deshalb nicht fuer die Unversehrtheit von E-Mails nachdem sie unseren Herrschaftsbereich verlassen haben und koennen Ihnen hieraus entstehende Schaeden nicht ersetzen. Sollte trotz der von uns verwendeten Virus-Schutz-Programmen durch die Zusendung von E-Mails ein Virus in Ihre Systeme gelangen, haften wir nicht fuer eventuell hieraus entstehende Schaeden. Dieser Haftungsausschluss gilt nur soweit gesetzlich zulaessig.
Date validation
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 wicket.util.convert.converters.AbstractConverter.newConversionException(AbstractConverter.java:72) at wicket.util.convert.converters.AbstractConverter.parse(AbstractConverter.java:52) at wicket.util.convert.converters.DateConverter.convert(DateConverter.java:73) at wicket.util.convert.Converter.convert(Converter.java:207) Thank you Marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JMeter load testing and Ajax - is it possible
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 sure it is optional :) Martijn On Jan 8, 2008 3:44 PM, Peter Thomas [EMAIL PROTECTED] 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 that I had in the context of Ajax / JMeter. Thanks cbergstrom for the links as well. I got it working now, the problem was that I had messed up the AbstractFormValidator for the form :) Something to do with getDependentFormComponents() and component.getInput() vs getConvertedInput() etc. Anyway now I have a JMeter script that includes a solitary Ajax call that works now. It looks like it should be possible to examine the XML returned and do fancy conditional stuff in subsequent steps, but I don't need this now, maybe later. Thanks, Peter. 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 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 are visible, I submit the form normally. I tried to make this flow into a JMeter script. I am using the JMeter regex support and am able to scrape the ajax post url. I verified that the ajax call successfully returns the XML response along with the expected HTML chunk without any problems by using a response debug listener in JMeter. Only thing I could be missing is that random=0.5855686047921232 kind of thing at the end of the URL. The problem is this form has validation involving the second drop down and when runing the JMeter script, the form validation always fails on submit. It appears that even when JMeter has the drop-down value in the POST, Wicket doesn't see it I'm guessing maybe because the previous Ajax operation did not work and Wicket thinks the second drop down is not visible yet. I seem to have everything right except the random thing. So my question is - is it possible to use something like JMeter when Ajax is involved and has anyone had any success with something like this? Does Wicket require the random param in the Ajax request / url ? If this random param is indeed required what is the best way to derive the value expected. If it is some wicket-ajax javascript function, it may be possible to get it evaluated by JMeter (rhino?) but it sounds like a very, very long shot :| Any suggestions or ideas would be greatly appreciated. Thanks, Peter. -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0 -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0
Re: JMeter load testing and Ajax - is it possible
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 the links as well. I got it working now, the problem was that I had messed up the AbstractFormValidator for the form :) Something to do with getDependentFormComponents() and component.getInput() vs getConvertedInput() etc. Anyway now I have a JMeter script that includes a solitary Ajax call that works now. It looks like it should be possible to examine the XML returned and do fancy conditional stuff in subsequent steps, but I don't need this now, maybe later. Thanks, Peter. 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 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 are visible, I submit the form normally. I tried to make this flow into a JMeter script. I am using the JMeter regex support and am able to scrape the ajax post url. I verified that the ajax call successfully returns the XML response along with the expected HTML chunk without any problems by using a response debug listener in JMeter. Only thing I could be missing is that random=0.5855686047921232 kind of thing at the end of the URL. The problem is this form has validation involving the second drop down and when runing the JMeter script, the form validation always fails on submit. It appears that even when JMeter has the drop-down value in the POST, Wicket doesn't see it I'm guessing maybe because the previous Ajax operation did not work and Wicket thinks the second drop down is not visible yet. I seem to have everything right except the random thing. So my question is - is it possible to use something like JMeter when Ajax is involved and has anyone had any success with something like this? Does Wicket require the random param in the Ajax request / url ? If this random param is indeed required what is the best way to derive the value expected. If it is some wicket-ajax javascript function, it may be possible to get it evaluated by JMeter (rhino?) but it sounds like a very, very long shot :| Any suggestions or ideas would be greatly appreciated. Thanks, Peter. -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0
Re: Date validation
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 ConversionException: wicket.util.convert.ConversionException: Cannot parse '32-01-2008' using format [EMAIL PROTECTED] at wicket.util.convert.converters.AbstractConverter.newConversionException(AbstractConverter.java:72) at wicket.util.convert.converters.AbstractConverter.parse(AbstractConverter.java:52) at wicket.util.convert.converters.DateConverter.convert(DateConverter.java:73) at wicket.util.convert.Converter.convert(Converter.java:207) Thank you Marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: required for Checkbox
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 checkbox, it's always satisfied. In otherwords, a checkbox always has a value so setRequired=true has no effect on a checkbox. Yeah, that's exactly the correct behavior in my mind. - -- Kent Tong Wicket tutorials freely available at http://www.agileskills2.org/EWDW Axis2 tutorials freely available at http://www.agileskills2.org/DWSAA -- View this message in context: http://www.nabble.com/%22required%22- for-Checkbox-tp14662131p14680214.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Date validation
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 SimpleDateValidator extends AbstractValidator { private static final long serialVersionUID = 1L; public void validate(FormComponent component) { DateConverter converter = new DateConverter(true); try { Object date = converter.convert(component.getModelObject(),Locale.getDefault()); } catch (Exception e){ error(component); } } } On Jan 8, 2008 12:11 PM, Eelco Hillenius [EMAIL PROTECTED] wrote: 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 ConversionException: wicket.util.convert.ConversionException: Cannot parse '32-01-2008' using format [EMAIL PROTECTED] at wicket.util.convert.converters.AbstractConverter.newConversionException(AbstractConverter.java:72) at wicket.util.convert.converters.AbstractConverter.parse(AbstractConverter.java:52) at wicket.util.convert.converters.DateConverter.convert(DateConverter.java:73) at wicket.util.convert.Converter.convert(Converter.java:207) Thank you Marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Feedback with AjaxButton
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 onError(...) method is called on the AjaxButton. Do I have to do something there to get the message displayed? -- Martijn Lindhout JointEffort IT Services http://www.jointeffort.nl [EMAIL PROTECTED] +31 (0)6 18 47 25 29
Re: Date validation
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 (newsItem, dueDate)); form.add(dateField); form.add(new DatePicker(dateFieldPicker, dateField)); Anyway, I solved the problem creating a SimpleDateValidator public class SimpleDateValidator extends AbstractValidator { private static final long serialVersionUID = 1L; public void validate(FormComponent component) { DateConverter converter = new DateConverter(true); try { Object date = converter.convert(component.getModelObject(),Locale.getDefault()); } catch (Exception e){ error(component); } } } On Jan 8, 2008 12:11 PM, Eelco Hillenius [EMAIL PROTECTED] wrote: 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 ConversionException: wicket.util.convert.ConversionException: Cannot parse '32-01-2008' using format [EMAIL PROTECTED] at wicket.util.convert.converters.AbstractConverter.newConversionException(AbstractConverter.java:72) at wicket.util.convert.converters.AbstractConverter.parse(AbstractConverter.java:52) at wicket.util.convert.converters.DateConverter.convert(DateConverter.java:73) at wicket.util.convert.Converter.convert(Converter.java:207) Thank you Marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is it possible to use wicket without having any html page?
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)); horizontalPanel.add(new Button(Another button)); Did wonder about making them smart enough to realise if they were meant to use their own HTML or parent HTML but that seemed like it could get very nasty. Even the brochure type parts of the site are getting more CSS and less HTML heavy so maybe they will move over to this new style. Presumably can optimise out the Panel wrapper if it starts to hurt performance. Just need bookmarking/history and end to page expired and will all be rosy ;) Cheers Sam Johan Compagner wrote: If you want default html for those things use panels. Make for all those components a panel part that has its own markup (so do that once) Then reuse those components everywhere. Not that you gain much in my eyes because you still need to have a span that places the panel at the right place On 1/7/08, Sam Hough [EMAIL PROTECTED] wrote: Nino.Martinez wrote: Using markup inheritance: one super class with a corresponding html and a sub class with corrosponding html, extending the super class to the special need. And maybe a mounted page that redirects to the wanted sub based on parameters. Dear Nino, Can you do this for components that don't extend http://wicketstuff.org/wicket13doc/org/apache/wicket/markup/html/WebMarkupContainerWithAssociatedMarkup.html ? So say have an AjaxFallbackButton that you can just add to a Repeater? So can have all the goodness of large swathe of HTML managed by the HTML monkey but still let me, Java monkey, add components (without specific HTML)? I can only see how I would do that by wrapping the Button in a Panel but that seems like a lot of overhead and the object I would be returning would look like a Panel not a Button Re: Why not just use Echo - could be that 80% of app is perfect fit for Wicket but 20% would be nicer if just had default HTML for Button, Link, TextField etc...? Cheers Sam -- View this message in context: http://www.nabble.com/Is-it-possible-to-use-wicket-without-having-any-html-page--tp14607438p14668784.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Is-it-possible-to-use-wicket-without-having-any-html-page--tp14607438p14691913.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JMeter load testing and Ajax - is it possible
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 that I had in the context of Ajax / JMeter. Thanks cbergstrom for the links as well. I got it working now, the problem was that I had messed up the AbstractFormValidator for the form :) Something to do with getDependentFormComponents() and component.getInput() vs getConvertedInput() etc. Anyway now I have a JMeter script that includes a solitary Ajax call that works now. It looks like it should be possible to examine the XML returned and do fancy conditional stuff in subsequent steps, but I don't need this now, maybe later. If you come up with some interesting numbers which may be reproducible you should certainly blog or post your results. I've been on a similar tangent lately. Success, ./C - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Date validation
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 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 SimpleDateValidator extends AbstractValidator { private static final long serialVersionUID = 1L; public void validate(FormComponent component) { DateConverter converter = new DateConverter(true); try { Object date = converter.convert(component.getModelObject(),Locale.getDefault()); } catch (Exception e){ error(component); } } } On Jan 8, 2008 12:11 PM, Eelco Hillenius [EMAIL PROTECTED] wrote: 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 ConversionException: wicket.util.convert.ConversionException: Cannot parse '32-01-2008' using format [EMAIL PROTECTED] at wicket.util.convert.converters.AbstractConverter.newConversionException(AbstractConverter.java:72) at wicket.util.convert.converters.AbstractConverter.parse(AbstractConverter.java:52) at wicket.util.convert.converters.DateConverter.convert(DateConverter.java:73) at wicket.util.convert.Converter.convert(Converter.java:207) Thank you Marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Feedback with AjaxButton
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 called on the AjaxButton. Do I have to do something there to get the message displayed? You need to add the FeedbackPanel to the AjaxRequestTarget in the on onError() method so that it will rerender: target.addComponent(feedbackPanel); -- Edvin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JMeter load testing and Ajax - is it possible
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 ajax although this was on 1.2.6... regards Nino 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 all. After the ajax operation and when both the drop-downs are visible, I submit the form normally. I tried to make this flow into a JMeter script. I am using the JMeter regex support and am able to scrape the ajax post url. I verified that the ajax call successfully returns the XML response along with the expected HTML chunk without any problems by using a response debug listener in JMeter. Only thing I could be missing is that random=0.5855686047921232 kind of thing at the end of the URL. The problem is this form has validation involving the second drop down and when runing the JMeter script, the form validation always fails on submit. It appears that even when JMeter has the drop-down value in the POST, Wicket doesn't see it I'm guessing maybe because the previous Ajax operation did not work and Wicket thinks the second drop down is not visible yet. I seem to have everything right except the random thing. So my question is - is it possible to use something like JMeter when Ajax is involved and has anyone had any success with something like this? Does Wicket require the random param in the Ajax request / url ? If this random param is indeed required what is the best way to derive the value expected. If it is some wicket-ajax javascript function, it may be possible to get it evaluated by JMeter (rhino?) but it sounds like a very, very long shot :| Any suggestions or ideas would be greatly appreciated. Thanks, Peter. -- Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Download Link Problem
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 workarround is, that you simulate a static href https://xyc.com/abc/mygeneratedExcel.xls Unfortunately, I am currently using a ResourceLink in combination with a DynamicWebResource.and the Links look something like this: https://xyc.com/abc/?wicket:interface=:3:detailTable:exportExcel::IResourceListener :: Can you please give me a hint, how I have to go about this? Thanks in advance. Best regards Marcus
Re: Javascript call to wicket
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 actions and to append your changes to the response e.g. in your panel final AbstractDefaultAjaxBehavior behave = new AbstractDefaultAjaxBehavior() { protected void respond(final AjaxRequestTarget target) { target.add(new Label(foo, yeah I just called this from flash!)); } }; add(behave); the method behave.getCallbackUrl(); gives you the url to call that respond method. I.e. if you paste the String returned from that method into your browser, you'll invoke the respond method, the same applies for the javascript method - Dojopackagedtexttemplate is part of the wicketstuff dojo project, don't know if you need more than that class or if it's possible without the project. we used that as part of the wicketstuff-push project ... add this to your pom: dependency groupIdorg.wicketstuff/groupId artifactIdwicketstuff-dojo/artifactId version1.3.0-SNAPSHOT/version /dependency Michael Pills wrote: 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 wicketstuff-dojo, e.g. function callWicket() { var wcall = wicketAjaxGet('${url}' + addToUrl, function() { }, function() { }); // addToUrl are optional parameters } and then in the java-code HashMapString, String map = new HashMapString, String(); map.put(url, getCallbackUrl().toString()); // getcallbackurl is from AbstractAjaxBehavior return new DojoPackagedTextTemplate(YourClass.class, CometdDefaultBehaviorTemplate.js) .asString(map); and then add it in your responseheader (renderHead method) with response.renderJavaScript(...) this may be not the easiest method but allows the most flexibility. hope that helps Michael Hello Michael, thank you for your answer. I have two little problems with this way: - how can I get an instance of ResponseHeader from a WebPage? - I need to use an AbstractAjaxBehavior, but where do I need to add it? Simply on the page? Or on my ShockwaveComponent? Thank you ;) EDIT: And I find no class named DojoPackagedTextTemplate... is it included in a wicket's subproject? - Michael Sparer http://talk-on-tech.blogspot.com -- View this message in context: http://www.nabble.com/Javascript-call-to-wicket-tp14685384p14693821.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
pageContext.getErrorData()?
Is there a wicket equivalent to pageContext.getErrorData()? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: pageContext.getErrorData()?
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 additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DataView and Checkboxs: Dummy question
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 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 doing something like this: /CODE/ public class InfoList extends WebPage { .. Form f = new InfoDataForm(form,infoProvider); private class InfoDataForm extends Form { SortableDataProvider dp; HashSetLong selectedValues = new HashSetLong(); ChequeListForm(String id, SortableDataProvider dp) { super(id); this.dp = dp; final DataView infoDataView = new DataView(infoList, dp) { @Override protected void populateItem(Item item) { Info info = (Info) item.getModelObject(); item.add(new CheckBox(check, new SelectItemUsingCheckboxModel(info,selectedValues))); item.add(new Label(data1, info.data1())); item.add(new Label(data2, info.data2())); } } add(infoDataView); @Override protected void onSubmit() { super.onSubmit(); for (Long i: selectedValues) { System.out.println(i); //delete rows here } } } private class SelectItemUsingCheckboxModel extends AbstractCheckBoxModel { private final Info info; private Set selection; public SelectCheckByChequeModel(Info info, Set selection) { this.info = info; this.selection = selection; } @Override public boolean isSelected() { return selection.contains(info); } @Override public void select() { selection.add(info); } @Override public void unselect() { selection.remove(info); } } } // I believe that I used the dataview and dataprovider correctly, but I am not sure about checkbox... Once I am learning, I would like to know if this is the correct way to do that, or if not, what I should do... Thanks a lot - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Changing the year of a DatePicker
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) and the so called Calendar Navigator should appear. hth, Gerolf On Jan 8, 2008 8:29 AM, Martijn Lindhout [EMAIL PROTECTED] wrote: Hi all, I use a YUI DatePicker with a DateTextField (from wicket-datetime). By default, I can only scroll by month. Is it possible to have a dopdown list for the year? Thanx, -- Martijn Lindhout JointEffort IT Services http://www.jointeffort.nl [EMAIL PROTECTED] +31 (0)6 18 47 25 29 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Script in RenderHead method of AjaxFormChoiceComponentUpdatingBehavior needs fixing
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 use the latest wicket version. How ever i have noticed a problem with the script in the renderHead method of AjaxFormChoiceComponentUpdatingBehavior. The script assumes that the Radio Component will be the immediate child of the RadioGroup Component, But in some or in most of the cases that is not correct. That is not the case even in the Wicket Examples, in examples the hierarchy is RadioGroup/ListView/Radio. I modified the script to work with RadioGroup/ListView/Radio hierarchy and it is working. Do i need to open a jira for this. Regards Dipu On Jan 4, 2008 5:01 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: ajaxformchoicecomponentupdatingbehavior or something similar... -igor On Jan 4, 2008 8:53 AM, wicket user [EMAIL PROTECTED] wrote: Hi all, I am trying to add AjaxFormComponentUpdateBehavior to Radio/RadioGroup, I cant add the behaviour to the Radio as its not a FormComponent. Adding the behaviour to RadioGroup is not working as well. Is there any work around to get it working. Regards Dipu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JMeter load testing and Ajax - is it possible
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 for dropdowns?)... yep :) and the learnings from that ended up on the wiki, hope to add more soon... My case was to have a dropdown populate the palette via onchange and ajax although this was on 1.2.6... regards Nino 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 all. After the ajax operation and when both the drop-downs are visible, I submit the form normally. I tried to make this flow into a JMeter script. I am using the JMeter regex support and am able to scrape the ajax post url. I verified that the ajax call successfully returns the XML response along with the expected HTML chunk without any problems by using a response debug listener in JMeter. Only thing I could be missing is that random=0.5855686047921232 kind of thing at the end of the URL. The problem is this form has validation involving the second drop down and when runing the JMeter script, the form validation always fails on submit. It appears that even when JMeter has the drop-down value in the POST, Wicket doesn't see it I'm guessing maybe because the previous Ajax operation did not work and Wicket thinks the second drop down is not visible yet. I seem to have everything right except the random thing. So my question is - is it possible to use something like JMeter when Ajax is involved and has anyone had any success with something like this? Does Wicket require the random param in the Ajax request / url ? If this random param is indeed required what is the best way to derive the value expected. If it is some wicket-ajax javascript function, it may be possible to get it evaluated by JMeter (rhino?) but it sounds like a very, very long shot :| Any suggestions or ideas would be greatly appreciated. Thanks, Peter. -- Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JMeter load testing and Ajax - is it possible
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 it):) Kudos:) And btw I've had no trouble testing ajax with jmeter(was it you who helped me with the regx for dropdowns?)... yep :) and the learnings from that ended up on the wiki, hope to add more soon... My case was to have a dropdown populate the palette via onchange and ajax although this was on 1.2.6... regards Nino 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 all. After the ajax operation and when both the drop-downs are visible, I submit the form normally. I tried to make this flow into a JMeter script. I am using the JMeter regex support and am able to scrape the ajax post url. I verified that the ajax call successfully returns the XML response along with the expected HTML chunk without any problems by using a response debug listener in JMeter. Only thing I could be missing is that random=0.5855686047921232 kind of thing at the end of the URL. The problem is this form has validation involving the second drop down and when runing the JMeter script, the form validation always fails on submit. It appears that even when JMeter has the drop-down value in the POST, Wicket doesn't see it I'm guessing maybe because the previous Ajax operation did not work and Wicket thinks the second drop down is not visible yet. I seem to have everything right except the random thing. So my question is - is it possible to use something like JMeter when Ajax is involved and has anyone had any success with something like this? Does Wicket require the random param in the Ajax request / url ? If this random param is indeed required what is the best way to derive the value expected. If it is some wicket-ajax javascript function, it may be possible to get it evaluated by JMeter (rhino?) but it sounds like a very, very long shot :| Any suggestions or ideas would be greatly appreciated. Thanks, Peter. -- Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JMeter load testing and Ajax - is it possible
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 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 it):) Kudos:) And btw I've had no trouble testing ajax with jmeter(was it you who helped me with the regx for dropdowns?)... yep :) and the learnings from that ended up on the wiki, hope to add more soon... My case was to have a dropdown populate the palette via onchange and ajax although this was on 1.2.6... regards Nino 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 all. After the ajax operation and when both the drop-downs are visible, I submit the form normally. I tried to make this flow into a JMeter script. I am using the JMeter regex support and am able to scrape the ajax post url. I verified that the ajax call successfully returns the XML response along with the expected HTML chunk without any problems by using a response debug listener in JMeter. Only thing I could be missing is that random=0.5855686047921232 kind of thing at the end of the URL. The problem is this form has validation involving the second drop down and when runing the JMeter script, the form validation always fails on submit. It appears that even when JMeter has the drop-down value in the POST, Wicket doesn't see it I'm guessing maybe because the previous Ajax operation did not work and Wicket thinks the second drop down is not visible yet. I seem to have everything right except the random thing. So my question is - is it possible to use something like JMeter when Ajax is involved and has anyone had any success with something like this? Does Wicket require the random param in the Ajax request / url ? If this random param is indeed required what is the best way to derive the value expected. If it is some wicket-ajax javascript function, it may be possible to get it evaluated by JMeter (rhino?) but it sounds like a very, very long shot :| Any suggestions or ideas would be greatly appreciated. Thanks, Peter. -- Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JMeter load testing and Ajax - is it possible
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -igor On Jan 8, 2008 10:00 AM, anita nichols [EMAIL PROTECTED] wrote: 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 it):) Kudos:) And btw I've had no trouble testing ajax with jmeter(was it you who helped me with the regx for dropdowns?)... yep :) and the learnings from that ended up on the wiki, hope to add more soon... My case was to have a dropdown populate the palette via onchange and ajax although this was on 1.2.6... regards Nino 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 all. After the ajax operation and when both the drop-downs are visible, I submit the form normally. I tried to make this flow into a JMeter script. I am using the JMeter regex support and am able to scrape the ajax post url. I verified that the ajax call successfully returns the XML response along with the expected HTML chunk without any problems by using a response debug listener in JMeter. Only thing I could be missing is that random=0.5855686047921232 kind of thing at the end of the URL. The problem is this form has validation involving the second drop down and when runing the JMeter script, the form validation always fails on submit. It appears that even when JMeter has the drop-down value in the POST, Wicket doesn't see it I'm guessing maybe because the previous Ajax operation did not work and Wicket thinks the second drop down is not visible yet. I seem to have everything right except the random thing. So my question is - is it possible to use something like JMeter when Ajax is involved and has anyone had any success with something like this? Does Wicket require the random param in the Ajax request / url ? If this random param is indeed required what is the best way to derive the value expected. If it is some wicket-ajax javascript function, it may be possible to get it evaluated by JMeter (rhino?) but it sounds like a very, very long shot :| Any suggestions or ideas would be greatly appreciated. Thanks, Peter. -- Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: pageContext.getErrorData()?
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, 2008 10:07 AM, Hoover, William [EMAIL PROTECTED] wrote: I didn't see any methods in FeedbackMessages for: pageContext.getErrorData().getStatusCode(); pageContext.getErrorData().getThrowable(); ... Am I missing something? -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 08, 2008 12:43 PM To: users@wicket.apache.org Subject: Re: pageContext.getErrorData()? 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 additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Copenhagen Meeting
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 our car has to go to the mechanic.. And what about topics? Should we have one about testing with wicket, and while some where exploring testing with wicket others could fix bugs with the wicket tester? brtw:I have a nice blog tutorial for wicket, using JPA-SPRING and hibernate for new comers... regards Nino Flemming Boller wrote: dammit :-) Cheers /FLemming ps: Should we arrange on a wicket meeting in copenhagen, now that 1.3.0is released - Nino, Frank ? On Jan 2, 2008 10:11 PM, Flemming Boller [EMAIL PROTECTED] wrote: Hi First of all, congrats with the new release, great work! I am behind a corporate firewall that infect downloading of jarfiles, so I like the old wicket quickstart :-) I have updated the old Wicket QuickStart zip file for use with 1.3.0. I have only set it up with Eclipse and with JDK 1.4, so the jar file for jmx is excluded in the classpath together with wicke-velocity. You can download it from my homepage, if you need it http://boller.dk/wicket-quickstart-1.3.0.zip Cheers and -- Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Changing the year of a DatePicker
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 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) and the so called Calendar Navigator should appear. hth, Gerolf On Jan 8, 2008 8:29 AM, Martijn Lindhout [EMAIL PROTECTED] wrote: Hi all, I use a YUI DatePicker with a DateTextField (from wicket-datetime). By default, I can only scroll by month. Is it possible to have a dopdown list for the year? Thanx, -- Martijn Lindhout JointEffort IT Services http://www.jointeffort.nl [EMAIL PROTECTED] +31 (0)6 18 47 25 29 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: pageContext.getErrorData()?
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 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, 2008 1:12 PM To: users@wicket.apache.org Subject: Re: pageContext.getErrorData()? 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, 2008 10:07 AM, Hoover, William [EMAIL PROTECTED] wrote: I didn't see any methods in FeedbackMessages for: pageContext.getErrorData().getStatusCode(); pageContext.getErrorData().getThrowable(); ... Am I missing something? -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 08, 2008 12:43 PM To: users@wicket.apache.org Subject: Re: pageContext.getErrorData()? 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 additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JMeter load testing and Ajax - is it possible
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 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -igor On Jan 8, 2008 10:00 AM, anita nichols [EMAIL PROTECTED] wrote: 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 it):) Kudos:) And btw I've had no trouble testing ajax with jmeter(was it you who helped me with the regx for dropdowns?)... yep :) and the learnings from that ended up on the wiki, hope to add more soon... My case was to have a dropdown populate the palette via onchange and ajax although this was on 1.2.6... regards Nino 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 all. After the ajax operation and when both the drop-downs are visible, I submit the form normally. I tried to make this flow into a JMeter script. I am using the JMeter regex support and am able to scrape the ajax post url. I verified that the ajax call successfully returns the XML response along with the expected HTML chunk without any problems by using a response debug listener in JMeter. Only thing I could be missing is that random=0.5855686047921232 kind of thing at the end of the URL. The problem is this form has validation involving the second drop down and when runing the JMeter script, the form validation always fails on submit. It appears that even when JMeter has the drop-down value in the POST, Wicket doesn't see it I'm guessing maybe because the previous Ajax operation did not work and Wicket thinks the second drop down is not visible yet. I seem to have everything right except the random thing. So my question is - is it possible to use something like JMeter when Ajax is involved and has anyone had any success with something like this? Does Wicket require the random param in the Ajax request / url ? If this random param is indeed required what is the best way to derive the value expected. If it is some wicket-ajax javascript function, it may be possible to get it evaluated by JMeter (rhino?) but it sounds like a very, very long shot :| Any suggestions or ideas would be greatly appreciated. Thanks, Peter. -- Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: pageContext.getErrorData()?
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, 2008 1:12 PM To: users@wicket.apache.org Subject: Re: pageContext.getErrorData()? 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, 2008 10:07 AM, Hoover, William [EMAIL PROTECTED] wrote: I didn't see any methods in FeedbackMessages for: pageContext.getErrorData().getStatusCode(); pageContext.getErrorData().getThrowable(); ... Am I missing something? -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 08, 2008 12:43 PM To: users@wicket.apache.org Subject: Re: pageContext.getErrorData()? 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 additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Javascript call to wicket
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 get the get parameters out of the request. It actually _is_ quite ugly, but you get them like so: Map map = ((WebRequestCycle)RequestCycle.get()).getRequest().getParameterMap(); Maybe there's also an easier way but I'm not really into wicket's requestcycle ... I saw this approach (JS-template + AbstractDefaultAjaxBehavior) in the wicketstuff-push project that was done by Xavier Hanin and Vincent Demant. If you want to see it in production check it out from SVN and take a look at the org.wicketstuff.push.cometd package. There's a JS-template and the class that uses it (CometdBehavior). regards, Michael Erik van Oosten-3 wrote: 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 component has to implement IHeaderContributor, that's where the response-object gets passed. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Michael Sparer http://talk-on-tech.blogspot.com -- View this message in context: http://www.nabble.com/Javascript-call-to-wicket-tp14685384p14696846.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Javascript call to wicket
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 component has to implement IHeaderContributor, that's where the response-object gets passed. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: DropDownChoice always on the top
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 Subject: Re: DropDownChoice always on the top 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: you should probably try a css mailing list... -igor On Jan 7, 2008 12:48 AM, dariusz.holda [EMAIL PROTECTED] wrote: With Modal window it's actualy ok. sorry for confusion. I've noticed that if you show modal window the dropdowns disappear. With the list from the AutoCompleteTextField it's not but only if the last row in the list overlaps the dropdownchoice. I discovered that if I detach a column from a table (freeze it, so it always stays on the left even if you scroll) and scroll with the column over the dropdown it's going under the dropdownchoice. Is there some way to change this behavior so my detached column will always be on top? I've tried with z-index and it doesn't work. Regards, Dariusz dariusz.holda wrote: Hi, I've noticed that no matter what z-index I set for dropdownchoice component it stays on the top. I needed it hidden under ModalWindow and under list displayed by AutoCompleteTextField. Did someone have similar problem? Regards, Dariusz -- View this message in context: http://www.nabble.com/DropDownChoice-always-on-the-top-tp14600922p14660395.h tml Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/DropDownChoice-always-on-the-top-tp14600922p14689348.h tml Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Feedback with AjaxButton
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 date, no feedback message appears... The onError(...) method is called on the AjaxButton. Do I have to do something there to get the message displayed? You need to add the FeedbackPanel to the AjaxRequestTarget in the on onError() method so that it will rerender: target.addComponent(feedbackPanel); -- Edvin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Martijn Lindhout JointEffort IT Services http://www.jointeffort.nl [EMAIL PROTECTED] +31 (0)6 18 47 25 29
Custom logging system conflict with restoring sessions
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 would run before any Wicket logging calls were done (more precisely, before log4j's configuration is run.) But I managed to do it by running that configuration in the init() of a separate servlet that loads before Wicket's. This works fine, but occasionally it would fail, and it took me quite some time to determine the cause. The problem occurs if there is a session containing a Wicket component. When the server tries to reconstruct that component, there is a call to LogFactory.getLog(Component.class), which eventually leads to log4j's configuration running before my extra servlet has run. Has anyone run into a similar situation, and did you find a good solution? Thanks, -- Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Custom logging system conflict with restoring sessions
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. 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 would run before any Wicket logging calls were done (more precisely, before log4j's configuration is run.) But I managed to do it by running that configuration in the init() of a separate servlet that loads before Wicket's. This works fine, but occasionally it would fail, and it took me quite some time to determine the cause. The problem occurs if there is a session containing a Wicket component. When the server tries to reconstruct that component, there is a call to LogFactory.getLog(Component.class), which eventually leads to log4j's configuration running before my extra servlet has run. Has anyone run into a similar situation, and did you find a good solution? Thanks, -- Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Nick Heudecker Professional Wicket Training Consulting http://www.systemmobile.com Eventful - Intelligent Event Management http://www.eventfulhq.com
Re: Changing the year of a DatePicker
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 configured to say T-3, for example, for a meaningful special/important/commonly-used date in the context of the app. Regards - Cemal http://jWeekend.co.uk http://jWeekend.co.uk igor.vaynberg wrote: 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) and the so called Calendar Navigator should appear. hth, Gerolf On Jan 8, 2008 8:29 AM, Martijn Lindhout [EMAIL PROTECTED] wrote: Hi all, I use a YUI DatePicker with a DateTextField (from wicket-datetime). By default, I can only scroll by month. Is it possible to have a dopdown list for the year? Thanx, -- Martijn Lindhout JointEffort IT Services http://www.jointeffort.nl [EMAIL PROTECTED] +31 (0)6 18 47 25 29 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Changing-the-year-of-a-DatePicker-tp14684117p14699908.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Custom logging system conflict with restoring sessions
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 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. 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 would run before any Wicket logging calls were done (more precisely, before log4j's configuration is run.) But I managed to do it by running that configuration in the init() of a separate servlet that loads before Wicket's. This works fine, but occasionally it would fail, and it took me quite some time to determine the cause. The problem occurs if there is a session containing a Wicket component. When the server tries to reconstruct that component, there is a call to LogFactory.getLog(Component.class), which eventually leads to log4j's configuration running before my extra servlet has run. Has anyone run into a similar situation, and did you find a good solution? Thanks, -- Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wickettester and session?
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: no ContextLoaderListener registered? at org.springframework.web.context.support.WebApplicationContextUtils.getRequiredWebApplicationContext(WebApplicationContextUtils.java:86) at org.apache.wicket.spring.SpringWebApplication.internalInit(SpringWebApplication.java:77) at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:511) at org.apache.wicket.protocol.http.MockWebApplication.init(MockWebApplication.java:148) at org.apache.wicket.util.tester.BaseWicketTester.init(BaseWicketTester.java:204) at org.apache.wicket.util.tester.WicketTester.init(WicketTester.java:308) at org.apache.wicket.util.tester.WicketTester.init(WicketTester.java:291) David Shepherdson-2 wrote: On 4 Jan 2008, at 1.19 pm, Nino Saturnino Martinez Vazquez Wael wrote: Ahh, that might just be it then.. I've just verified it. I guess I used a too general session, as you wrote the stuff passes when using websession. Im gonna close the bug. Thanks for your help. No probs -- glad there was a good explanation for it in the end! David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Wickettester-and-session--tp14459864p14700073.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Javascript call to wicket
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: 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 flash, but I don't know how to update a wicket model using a javascript/ajax call. Has anybody some hint about that? Thanks you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Javascript-call-to-wicket-tp14685384p14700516.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wickettester and session?
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: public class StoreWicketTester extends WicketTester { public StoreWicketTester() { super(new StoreApplication()); } } And StoreApplication extends SpringWebApplication: public class StoreApplication extends SpringWebApplication { ... } And my test invokes thus: final StoreWicketTester wicketTester = new StoreWicketTester(); igor.vaynberg wrote: for springwebapplication you are used to mean springwebapplicationfactory -igor On Jan 8, 2008 2:01 PM, cricdigs [EMAIL PROTECTED] wrote: 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: no ContextLoaderListener registered? at org.springframework.web.context.support.WebApplicationContextUtils.getRequiredWebApplicationContext(WebApplicationContextUtils.java:86) at org.apache.wicket.spring.SpringWebApplication.internalInit(SpringWebApplication.java:77) at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:511) at org.apache.wicket.protocol.http.MockWebApplication.init(MockWebApplication.java:148) at org.apache.wicket.util.tester.BaseWicketTester.init(BaseWicketTester.java:204) at org.apache.wicket.util.tester.WicketTester.init(WicketTester.java:308) at org.apache.wicket.util.tester.WicketTester.init(WicketTester.java:291) David Shepherdson-2 wrote: On 4 Jan 2008, at 1.19 pm, Nino Saturnino Martinez Vazquez Wael wrote: Ahh, that might just be it then.. I've just verified it. I guess I used a too general session, as you wrote the stuff passes when using websession. Im gonna close the bug. Thanks for your help. No probs -- glad there was a good explanation for it in the end! David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Wickettester-and-session--tp14459864p14700073.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Wickettester-and-session--tp14459864p14700186.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Javascript call to wicket
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 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 actions and to append your changes to the response -- View this message in context: http://www.nabble.com/Javascript-call-to-wicket-tp14685384p14700577.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Stream resource on setWindowClosedCallback
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) { RequestCycle.get().setRequestTarget(new IRequestTarget() { public void detach(RequestCycle requestCycle) { } public void respond(RequestCycle requestCycle) { MyPpdf pdf; try { pdf = new MyPpdf(); WebResponse webResponse = (WebResponse) requestCycle.getResponse(); webResponse.setAttachmentHeader(pdf_ + System.currentTimeMillis() + .pdf); webResponse.setContentType(application/pdf); pdf.genPdf().writeTo(webResponse.getOutputStream()); } catch (Exception e) { e.printStackTrace(); } } }); } }); but it doesn't work. I tried this too: setWindowClosedCallback(new ModalWindow.WindowClosedCallback() { public void onClose(AjaxRequestTarget target) { try { ResourceStreamRequestTarget pdfTarget = new ResourceStreamRequestTarget(new FileResourceStream(new File(MyPdfFile.pdf))); RequestCycle.get().setRequestTarget(pdfTarget); } catch (Exception e) { e.printStackTrace(); } } }); In both cases I've got an error in Firefox console: Error: not well-formed Source File: http://127.0.0.1:8080/myapp/wickete/page Line: 1, Column: 9 Source Code: %PDF-1.4^ Thanks for help in advance, Artur -- View this message in context: http://www.nabble.com/Stream-resource-on-setWindowClosedCallback-tp14706092p14706092.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Copenhagen Meeting
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 Wael [EMAIL PROTECTED] wrote: Yes I think so, dates anyone? Currently im free, although in the start of next week our car has to go to the mechanic.. And what about topics? Should we have one about testing with wicket, and while some where exploring testing with wicket others could fix bugs with the wicket tester? brtw:I have a nice blog tutorial for wicket, using JPA-SPRING and hibernate for new comers... regards Nino Flemming Boller wrote: dammit :-) Cheers /FLemming ps: Should we arrange on a wicket meeting in copenhagen, now that 1.3.0is released - Nino, Frank ? On Jan 2, 2008 10:11 PM, Flemming Boller [EMAIL PROTECTED] wrote: Hi First of all, congrats with the new release, great work! I am behind a corporate firewall that infect downloading of jarfiles, so I like the old wicket quickstart :-) I have updated the old Wicket QuickStart zip file for use with 1.3.0. I have only set it up with Eclipse and with JDK 1.4, so the jar file for jmx is excluded in the classpath together with wicke-velocity. You can download it from my homepage, if you need it http://boller.dk/wicket-quickstart-1.3.0.zip Cheers and -- Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Javascript call to wicket
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 requestcycle ... Pills wrote: 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 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 actions and to append your changes to the response - Michael Sparer http://talk-on-tech.blogspot.com -- View this message in context: http://www.nabble.com/Javascript-call-to-wicket-tp14685384p14706775.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: DropDownChoice always on the top
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 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 Subject: Re: DropDownChoice always on the top 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: you should probably try a css mailing list... -igor On Jan 7, 2008 12:48 AM, dariusz.holda [EMAIL PROTECTED] wrote: With Modal window it's actualy ok. sorry for confusion. I've noticed that if you show modal window the dropdowns disappear. With the list from the AutoCompleteTextField it's not but only if the last row in the list overlaps the dropdownchoice. I discovered that if I detach a column from a table (freeze it, so it always stays on the left even if you scroll) and scroll with the column over the dropdown it's going under the dropdownchoice. Is there some way to change this behavior so my detached column will always be on top? I've tried with z-index and it doesn't work. Regards, Dariusz dariusz.holda wrote: Hi, I've noticed that no matter what z-index I set for dropdownchoice component it stays on the top. I needed it hidden under ModalWindow and under list displayed by AutoCompleteTextField. Did someone have similar problem? Regards, Dariusz -- View this message in context: http://www.nabble.com/DropDownChoice-always-on-the-top-tp14600922p14660395.h tml Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/DropDownChoice-always-on-the-top-tp14600922p14689348.h tml Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/DropDownChoice-always-on-the-top-tp14600922p14706861.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]