Re: sorry, what do u mean for that?
It's late and my mind is going to sleep, but I think it's because an ajax link there will need the AjaxRequestTarget, which you're replacing. I'm pretty sure you'll have to redirect to it from within an ajax request. Try with a normal link first to test that it's working. Then you'll probably need to find a way to redirect from the ajax to download. On Wed, Jan 7, 2009 at 1:57 AM, wch2001 wch2...@hotmail.com wrote: Thanks , Jeremy, I tried to use AjaxSubmitLink , to @Override protected void onSubmit(AjaxRequestTarget target, Form form) { final File f1 = new File(path.trim() + / + fname); if (f1.exists()) { final String fn = f1.getName(); IResourceStream resourceStream = new FileResourceStream(new org.apache.wicket.util.file.File(f1)); getRequestCycle().setRequestTarget(new ResourceStreamRequestTarget(resourceStream) { @Override public String getFileName() { return fn; } }); } } But when i clicked the AjaxSubmitLink, i can not get the popup window for saving. I mean when i clicked the ajaxsumbitlink, there is nothing , not like downloadlink to popup window. can u give me some suggestion? thanks Jeremy Thomerson-5 wrote: Roll your own link: LinkFile downloadLink = new LinkFile(yourID, yourModelThatReturnsAFile) { private static final long serialVersionUID = 1L; @Override public void onClick() { File file = getModelObject(); if (file.exists()) { IResourceStream rs = new FileResourceStream(file); getRequestCycle().setRequestTarget(new ResourceStreamRequestTarget(rs)); } else { error(getString(nonexistent-file)); } } }; That code is mostly copied from DownloadLink. -- Jeremy Thomerson http://www.wickettraining.com On Wed, Jan 7, 2009 at 1:35 AM, wch2001 wch2...@hotmail.com wrote: I use DownloadLink, when file is not existed, there is not any info message. how to solve it? I want to show some message like No file finds when the file is not existed thanks a lot Jeremy Thomerson-5 wrote: Well, interestingly enough, I still fail to find a question in your question. Maybe a little more code and an accurate description of your problem would help us give you a more sane answer, which we'd happily do. On Wed, Jan 7, 2009 at 12:19 AM, wch2001 wch2...@hotmail.com wrote: My question is I am doing downloadLink , when the file is existed, it is ok to download it, but when the file is not existed, no any error message No file exist! to popup! According to debug, i can see it already go to the line: target.appendJavascript(alert('No file exist!')); John Krasnay wrote: It was a bad joke. You asked for suggestions but didn't explain what your problem was. jk On Tue, Jan 06, 2009 at 07:51:25PM -0800, wch2001 wrote: -- View this message in context: http://www.nabble.com/Help%2CDownloadLink%2C-when-file-is-not-existed%2C-not-error-message-tp21307695p21324403.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/Help%2CDownloadLink%2C-when-file-is-not-existed%2C-not-error-message-tp21307695p21325599.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Jeremy Thomerson http://www.wickettraining.com -- View this message in context: http://www.nabble.com/Help%2CDownloadLink%2C-when-file-is-not-existed%2C-not-error-message-tp21307695p21326180.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context:
Re: Filter or update content of AjaxFallbackDefaultDataTable
Thank you James, for this pointer. I looked around and did some tests until I managed to understand the FilterForm/IFilterStateLocator To my understanding, it seems that this approach does not update the table in an Ajax-ified way. Am I correct? On Tue, Jan 6, 2009 at 12:23 PM, James Carman jcar...@carmanconsulting.comwrote: Have you looked at the classes in this package? http://wicket.apache.org/docs/wicket-1.3.2/wicket-extensions/apidocs/org/apache/wicket/extensions/markup/html/repeater/data/table/filter/package-summary.html On Mon, Jan 5, 2009 at 11:06 AM, David Ojeda dojeda-l...@integra.la wrote: Hello wicketeers! I hace yet another question about AjaxFallbackDefaultDataTable (I will call it AFDTT): I have an AFDDT with, say, 100 rows. I would like to filter this table so it only shows the elements that meet a certain condition, OR, redefine its DataProvider so it shows some elements. I've been researching on how to do this (as an ajax update) but I am still unable to do it. I saw the AFDDT code, and it seems that this is not possible, so I have two alternatives: 1. Subclass and implement a way to change the contents of the AFDDT 2. Create another AFDDT instance, and do a .replaceWith() I suspect that option 2 could use a lot of memory. Do you guys have any other ideas or experience on this? Thank you
Re: FormComponent cookie persistent issue
Hi Serkan I am using firefox 3.1 beta2, but i dont think that this is a browser related issue, because i am seeing the same behavior in IE7. The cookies are created for both FF and IE. The problem is that they get a expire date set to current time, which means that they are not available anymore. If i remove the mount they will get a expire date in the future and the typed value will stay in the input field. For example with mount i type admin in the first input field and password in the second. Press the login link and i see that the input fields are reset. If i remove the mount and do the same, admin and password will stay in the input fields. /Murat 2009/1/6 Serkan Camurcuoglu serkan.camurcuo...@telenity.com Hi Murat, It seems to work both ways in my setup. I'm using Firefox 3.0. It successfully saves the username and password when I check the remember me checkbox, and clears them when I uncheck it. Did you check the host, path and the values of the cookies in your browser? Murat Yücel wrote: Hi again Did anyone had the time to look at the attached project? Are you guys seeing the same behaviour? /Murat 2008/12/31 Murat Yücel kodeperke...@gmail.com Hi Cemal Thanks for the response. I have attached the project. If you uncomment this line: mountBookmarkablePage(homepage, HomePage.class); in WicketApplication.java, then you can see the difference in the behaviour. /Murat 2008/12/31 jWeekend jweekend_for...@cabouge.com Murat, It is OK, just delete the target folder and zip it up before sending your quickstart project to this list. Regards - Cemal http://www.jWeekend.co.uk jWeekend Murat Yücel-2 wrote: By the way i am using wicket 1.3.5. I dont know if you need other information? I can send the quickstart project if anyone is interested. I dont know if it is okey to attach it to the mailing list. /Murat 2008/12/29 Murat Yücel kodeperke...@gmail.com Hi All I have a strange problem with persisting form component values. In my project i have a SignInPanel. The SignInPanel has a rememberMe checkbox. If the checkbox is checked then the values will get persisted in a cookie. This part is working very well if the user doesnt login from a mounted bookmarkable page. If the user login from a mounted bookmarkable page, then i can see that the value is saved by calling the CookieValuePersister, but on load the values are gone again. I have made a simple quickstart project and i am seing the same behaviour here. Am I missing something? Why doesnt cookie persist work for a mounted bookmarkable page? Hope that you can help. Kind regards /Murat -- View this message in context: http://www.nabble.com/FormComponent-cookie-persistent-issue-tp21197389p21230575.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: where to find SpringComponentInjector class
download wicket from http://www.apache.org/dyn/closer.cgi/wicket/1.4-rc1 , open the archive and include the wicket-spring-* jar(s) in your classpath francisco On Tue, Jan 6, 2009 at 8:37 PM, rjilani jil...@lifebiosystems.com wrote: Hi: can some one tell me which jars holds the class SpringComponentInjector. It doesn't look like the part of the core (I am using netbeans id that has pre-installed wicket jars). I also appreciate if some one tell me the url from where I can download the jar containing SpringComponentInjector. Thanks, RJ. -- View this message in context: http://www.nabble.com/where-to-find-SpringComponentInjector-class-tp21317448p21317448.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
File download
Hello, How can I allow a user to download a file from a stream? for example an xls that's generated when the user clicks a download button? where should I place the file to be downloaded? Thanks in advance, Edgar Merino - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: File download
If the file exists on the server's HDD, you can use DownloadLink. Else, if you need to generate it on the fly, have a look at RequestCycle#setRequestTarget Edgar Merino a écrit : Hello, How can I allow a user to download a file from a stream? for example an xls that's generated when the user clicks a download button? where should I place the file to be downloaded? Thanks in advance, Edgar Merino - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
wicket:link - how to configure the markup of the current page.
Hi all, I am looking into customizing the way the current page is marked up. I have wicket:link a href=SummaryAdd.htmlwicket:message key=summary.add.a //a a href=DispositionEditHub.htmlwicket:message key=dispositionEdit.h //a a href=Finish.htmlwicket:message key=finish.h //a /wicket:link Now if I request SummaryAdd.html it get transformed to: spanemInsertar sumario/em/span ... Where can I configure that instead spanem something else got rendered? TIA for any information. salu2 -- Thorsten Scherler thorsten.at.apache.org Open Source Java consulting, training and solutions Sociedad Andaluza para el Desarrollo de la Sociedad de la Información, S.A.U. (SADESI) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
[announce]Wicketstuff the Movie!
Proud to present from the comitters at wicketstuff Wicketstuff The Movie! Go here to see http://vimeo.com/2748657 I might be doing a similar one for Wicket if theres any interest..? Ps the movie are created with the codeswarm project..
Re: wicket:link - how to configure the markup of the current page.
in your application: getMarkupSettings().setDefaultBeforeDisabledLink() and getMarkupSettings().setDefaultAfterDisabledLink() regards, Michael Thorsten Scherler-3 wrote: Hi all, I am looking into customizing the way the current page is marked up. I have wicket:link SummaryAdd.html wicket:message key=summary.add.a / DispositionEditHub.html wicket:message key=dispositionEdit.h / Finish.html wicket:message key=finish.h / /wicket:link Now if I request SummaryAdd.html it get transformed to: emInsertar sumario/em ... Where can I configure that instead em something else got rendered? TIA for any information. salu2 -- Thorsten Scherler thorsten.at.apache.org Open Source Java consulting, training and solutions Sociedad Andaluza para el Desarrollo de la Sociedad de la Información, S.A.U. (SADESI) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - Michael Sparer http://talk-on-tech.blogspot.com -- View this message in context: http://www.nabble.com/wicket%3Alink---how-to-configure-the-markup-of-the-current-page.-tp21329712p21329835.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [announce]Wicketstuff the Movie!
I always dreamed of being part of a movie ... maybe that's the start of my movie star career - I'll certainly thank wicket when I get my Academy Award ;-) Nino Martinez-2 wrote: Proud to present from the comitters at wicketstuff Wicketstuff The Movie! Go here to see http://vimeo.com/2748657 I might be doing a similar one for Wicket if theres any interest..? Ps the movie are created with the codeswarm project.. - Michael Sparer http://talk-on-tech.blogspot.com -- View this message in context: http://www.nabble.com/-announce-Wicketstuff-the-Movie%21-tp21329704p21329883.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicket:link - how to configure the markup of the current page.
El mié, 07-01-2009 a las 03:53 -0800, Michael Sparer escribió: in your application: getMarkupSettings().setDefaultBeforeDisabledLink() and getMarkupSettings().setDefaultAfterDisabledLink() Hmm, I saw the methods but thought it was for something else. Cheers Micheal, I will add a note to the wiki page. salu2 regards, Michael Thorsten Scherler-3 wrote: Hi all, I am looking into customizing the way the current page is marked up. I have wicket:link SummaryAdd.html wicket:message key=summary.add.a / DispositionEditHub.html wicket:message key=dispositionEdit.h / Finish.html wicket:message key=finish.h / /wicket:link Now if I request SummaryAdd.html it get transformed to: emInsertar sumario/em ... Where can I configure that instead em something else got rendered? TIA for any information. salu2 -- Thorsten Scherler thorsten.at.apache.org Open Source Java consulting, training and solutions Sociedad Andaluza para el Desarrollo de la Sociedad de la Información, S.A.U. (SADESI) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - Michael Sparer http://talk-on-tech.blogspot.com -- Thorsten Scherler thorsten.at.apache.org Open Source Java consulting, training and solutions Sociedad Andaluza para el Desarrollo de la Sociedad de la Información, S.A.U. (SADESI) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [announce]Wicketstuff the Movie!
Yeah, I guess I actually should have asked before if people wanted to star in the movie .. I hope I dont get sued.. 2009/1/7 Michael Sparer michael.spa...@gmx.at I always dreamed of being part of a movie ... maybe that's the start of my movie star career - I'll certainly thank wicket when I get my Academy Award ;-) Nino Martinez-2 wrote: Proud to present from the comitters at wicketstuff Wicketstuff The Movie! Go here to see http://vimeo.com/2748657 I might be doing a similar one for Wicket if theres any interest..? Ps the movie are created with the codeswarm project.. - Michael Sparer http://talk-on-tech.blogspot.com -- View this message in context: http://www.nabble.com/-announce-Wicketstuff-the-Movie%21-tp21329704p21329883.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
DropDownChoice onchange event with AjaxEventBehaviour
Hi I have a select box with an AjaxEventBehaviour linked to its onchange event. I want to perform the following but I need some help. When onchange occurs the following steps are implemented using the AjaxRequestTarget: 1. Update a WebMarkupContainer containerA with the words processing... 2. Update a WebMarkupContainer containerB with a DataView table. 3. Update containerA to display empty, ie. No words. How could I implement step 1 during the onchange event, and then have steps 2 3 execute after the onchange event? Regards, Yazeed Isaacs - Java Developer yaz...@transactionjunction.co.za - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DropDownChoice onchange event with AjaxEventBehaviour
Hi, On Wed, Jan 7, 2009 at 1:19 PM, Yazeed Isaacs yaz...@switch.tj wrote: Hi I have a select box with an AjaxEventBehaviour linked to its onchange event. I want to perform the following but I need some help. When onchange occurs the following steps are implemented using the AjaxRequestTarget: 1. Update a WebMarkupContainer containerA with the words processing... update containerA with processing... and an AJAX timer... Once processing is finished update containerB and remove timer with a an empty panel? Best, Ernesto 2. Update a WebMarkupContainer containerB with a DataView table. 3. Update containerA to display empty, ie. No words. How could I implement step 1 during the onchange event, and then have steps 2 3 execute after the onchange event? Regards, Yazeed Isaacs - Java Developer yaz...@transactionjunction.co.za - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DropDownChoice onchange event with AjaxEventBehaviour
Why not implement all actions within the same onchange? ** Martin 2009/1/7 Yazeed Isaacs yaz...@switch.tj: Hi I have a select box with an AjaxEventBehaviour linked to its onchange event. I want to perform the following but I need some help. When onchange occurs the following steps are implemented using the AjaxRequestTarget: 1. Update a WebMarkupContainer containerA with the words processing... 2. Update a WebMarkupContainer containerB with a DataView table. 3. Update containerA to display empty, ie. No words. How could I implement step 1 during the onchange event, and then have steps 2 3 execute after the onchange event? Regards, Yazeed Isaacs - Java Developer yaz...@transactionjunction.co.za - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: FormComponent cookie persistent issue
In my case (when using mounted home page), when setting cookies, the expire time is automatically set as one month from current date, and when clearing cookies the expire time is it is set as 01.01.1970.. It's really strange that the expire time is current time on your system.. Murat Yücel wrote: Hi Serkan I am using firefox 3.1 beta2, but i dont think that this is a browser related issue, because i am seeing the same behavior in IE7. The cookies are created for both FF and IE. The problem is that they get a expire date set to current time, which means that they are not available anymore. If i remove the mount they will get a expire date in the future and the typed value will stay in the input field. For example with mount i type admin in the first input field and password in the second. Press the login link and i see that the input fields are reset. If i remove the mount and do the same, admin and password will stay in the input fields. /Murat 2009/1/6 Serkan Camurcuoglu serkan.camurcuo...@telenity.com Hi Murat, It seems to work both ways in my setup. I'm using Firefox 3.0. It successfully saves the username and password when I check the remember me checkbox, and clears them when I uncheck it. Did you check the host, path and the values of the cookies in your browser? Murat Yücel wrote: Hi again Did anyone had the time to look at the attached project? Are you guys seeing the same behaviour? /Murat 2008/12/31 Murat Yücel kodeperke...@gmail.com Hi Cemal Thanks for the response. I have attached the project. If you uncomment this line: mountBookmarkablePage(homepage, HomePage.class); in WicketApplication.java, then you can see the difference in the behaviour. /Murat 2008/12/31 jWeekend jweekend_for...@cabouge.com Murat, It is OK, just delete the target folder and zip it up before sending your quickstart project to this list. Regards - Cemal http://www.jWeekend.co.uk jWeekend Murat Yücel-2 wrote: By the way i am using wicket 1.3.5. I dont know if you need other information? I can send the quickstart project if anyone is interested. I dont know if it is okey to attach it to the mailing list. /Murat 2008/12/29 Murat Yücel kodeperke...@gmail.com Hi All I have a strange problem with persisting form component values. In my project i have a SignInPanel. The SignInPanel has a rememberMe checkbox. If the checkbox is checked then the values will get persisted in a cookie. This part is working very well if the user doesnt login from a mounted bookmarkable page. If the user login from a mounted bookmarkable page, then i can see that the value is saved by calling the CookieValuePersister, but on load the values are gone again. I have made a simple quickstart project and i am seing the same behaviour here. Am I missing something? Why doesnt cookie persist work for a mounted bookmarkable page? Hope that you can help. Kind regards /Murat -- View this message in context: http://www.nabble.com/FormComponent-cookie-persistent-issue-tp21197389p21230575.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: DropDownChoice onchange event with AjaxEventBehaviour
If I implement all 3 steps in the same onchange event, then step 3 would remove the text in step 1, resulting in no text being seen on the page. Yazeed Isaacs - Java Developer yaz...@transactionjunction.co.za -Original Message- From: Martin Makundi [mailto:martin.maku...@koodaripalvelut.com] Sent: 07 January 2009 02:30 PM To: users@wicket.apache.org Subject: Re: DropDownChoice onchange event with AjaxEventBehaviour Why not implement all actions within the same onchange? ** Martin 2009/1/7 Yazeed Isaacs yaz...@switch.tj: Hi I have a select box with an AjaxEventBehaviour linked to its onchange event. I want to perform the following but I need some help. When onchange occurs the following steps are implemented using the AjaxRequestTarget: 1. Update a WebMarkupContainer containerA with the words processing... 2. Update a WebMarkupContainer containerB with a DataView table. 3. Update containerA to display empty, ie. No words. How could I implement step 1 during the onchange event, and then have steps 2 3 execute after the onchange event? Regards, Yazeed Isaacs - Java Developer yaz...@transactionjunction.co.za - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DropDownChoice onchange event with AjaxEventBehaviour
Hi, Are you able to see the words processing...? From your post I thought what you wanted was to have some kind of feedback for a lengthy process and once it was finished then update the table and no longer show the processing... anymore... Best, Ernesto On Wed, Jan 7, 2009 at 1:59 PM, Yazeed Isaacs yaz...@switch.tj wrote: If I implement all 3 steps in the same onchange event, then step 3 would remove the text in step 1, resulting in no text being seen on the page. Yazeed Isaacs - Java Developer yaz...@transactionjunction.co.za -Original Message- From: Martin Makundi [mailto:martin.maku...@koodaripalvelut.com] Sent: 07 January 2009 02:30 PM To: users@wicket.apache.org Subject: Re: DropDownChoice onchange event with AjaxEventBehaviour Why not implement all actions within the same onchange? ** Martin 2009/1/7 Yazeed Isaacs yaz...@switch.tj: Hi I have a select box with an AjaxEventBehaviour linked to its onchange event. I want to perform the following but I need some help. When onchange occurs the following steps are implemented using the AjaxRequestTarget: 1. Update a WebMarkupContainer containerA with the words processing... 2. Update a WebMarkupContainer containerB with a DataView table. 3. Update containerA to display empty, ie. No words. How could I implement step 1 during the onchange event, and then have steps 2 3 execute after the onchange event? Regards, Yazeed Isaacs - Java Developer yaz...@transactionjunction.co.za - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DropDownChoice onchange event with AjaxEventBehaviour
Can you post what you need to do. Does Step 2 take some time to complete? You could: do step 1 do step 2 and wait for response then do step 3 cheers, Steve On 7 Jan 2009, at 12:59, Yazeed Isaacs wrote: If I implement all 3 steps in the same onchange event, then step 3 would remove the text in step 1, resulting in no text being seen on the page. Yazeed Isaacs - Java Developer yaz...@transactionjunction.co.za -Original Message- From: Martin Makundi [mailto:martin.maku...@koodaripalvelut.com] Sent: 07 January 2009 02:30 PM To: users@wicket.apache.org Subject: Re: DropDownChoice onchange event with AjaxEventBehaviour Why not implement all actions within the same onchange? ** Martin 2009/1/7 Yazeed Isaacs yaz...@switch.tj: Hi I have a select box with an AjaxEventBehaviour linked to its onchange event. I want to perform the following but I need some help. When onchange occurs the following steps are implemented using the AjaxRequestTarget: 1. Update a WebMarkupContainer containerA with the words processing... 2. Update a WebMarkupContainer containerB with a DataView table. 3. Update containerA to display empty, ie. No words. How could I implement step 1 during the onchange event, and then have steps 2 3 execute after the onchange event? Regards, Yazeed Isaacs - Java Developer yaz...@transactionjunction.co.za - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org smime.p7s Description: S/MIME cryptographic signature
RE: DropDownChoice onchange event with AjaxEventBehaviour
Yes, I want feedback text for a lengthy process and then update the table and remove the feedback text. I'm not seeing the words processing... due to all 3 steps in the same onchange event. Example: AjaxEventBehaviour(onchange) { @Override protected onEvent(AjaxRequestTarget target) { // step 1 containerA.replace(new Label(text,processing...)); target.addComponent(containerA); // step 2 DataView data = new DataView(data, new DataProvider(), 10); containerB.replace(data); target.addComponent(containerB); // step 3 containerA.replace(new Label(text,)); target.addComponent(containerA); } } Obviously, step 1 does not belong in the onEvent method since step 3 replace the text with , however step 1 needs to happen during the onchange event. Regards, Yazeed Isaacs - Java Developer yaz...@transactionjunction.co.za -Original Message- From: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] Sent: 07 January 2009 03:08 PM To: users@wicket.apache.org Subject: Re: DropDownChoice onchange event with AjaxEventBehaviour Hi, Are you able to see the words processing...? From your post I thought what you wanted was to have some kind of feedback for a lengthy process and once it was finished then update the table and no longer show the processing... anymore... Best, Ernesto On Wed, Jan 7, 2009 at 1:59 PM, Yazeed Isaacs yaz...@switch.tj wrote: If I implement all 3 steps in the same onchange event, then step 3 would remove the text in step 1, resulting in no text being seen on the page. Yazeed Isaacs - Java Developer yaz...@transactionjunction.co.za -Original Message- From: Martin Makundi [mailto:martin.maku...@koodaripalvelut.com] Sent: 07 January 2009 02:30 PM To: users@wicket.apache.org Subject: Re: DropDownChoice onchange event with AjaxEventBehaviour Why not implement all actions within the same onchange? ** Martin 2009/1/7 Yazeed Isaacs yaz...@switch.tj: Hi I have a select box with an AjaxEventBehaviour linked to its onchange event. I want to perform the following but I need some help. When onchange occurs the following steps are implemented using the AjaxRequestTarget: 1. Update a WebMarkupContainer containerA with the words processing... 2. Update a WebMarkupContainer containerB with a DataView table. 3. Update containerA to display empty, ie. No words. How could I implement step 1 during the onchange event, and then have steps 2 3 execute after the onchange event? Regards, Yazeed Isaacs - Java Developer yaz...@transactionjunction.co.za - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DropDownChoice onchange event with AjaxEventBehaviour
What I suggested before could work but it is a bit more complicated than your current solution. 1-Step 1: go to the server and start a new thread with the lengthy process and keep track of it update panel with processing... and a timer that goes back to the server to check if the job is finished. 2-Once the Job is finished replace your processing... with an empty panel (with no timer) and update the panel with the table. I use a similar approach when exporting data so that the user can track progress ( or even cancel it if it is taking to long to complete) Best, Ernesto On Wed, Jan 7, 2009 at 2:27 PM, Yazeed Isaacs yaz...@switch.tj wrote: Yes, I want feedback text for a lengthy process and then update the table and remove the feedback text. I'm not seeing the words processing... due to all 3 steps in the same onchange event. Example: AjaxEventBehaviour(onchange) { @Override protected onEvent(AjaxRequestTarget target) { // step 1 containerA.replace(new Label(text,processing...)); target.addComponent(containerA); // step 2 DataView data = new DataView(data, new DataProvider(), 10); containerB.replace(data); target.addComponent(containerB); // step 3 containerA.replace(new Label(text,)); target.addComponent(containerA); } } Obviously, step 1 does not belong in the onEvent method since step 3 replace the text with , however step 1 needs to happen during the onchange event. Regards, Yazeed Isaacs - Java Developer yaz...@transactionjunction.co.za -Original Message- From: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] Sent: 07 January 2009 03:08 PM To: users@wicket.apache.org Subject: Re: DropDownChoice onchange event with AjaxEventBehaviour Hi, Are you able to see the words processing...? From your post I thought what you wanted was to have some kind of feedback for a lengthy process and once it was finished then update the table and no longer show the processing... anymore... Best, Ernesto On Wed, Jan 7, 2009 at 1:59 PM, Yazeed Isaacs yaz...@switch.tj wrote: If I implement all 3 steps in the same onchange event, then step 3 would remove the text in step 1, resulting in no text being seen on the page. Yazeed Isaacs - Java Developer yaz...@transactionjunction.co.za -Original Message- From: Martin Makundi [mailto:martin.maku...@koodaripalvelut.com] Sent: 07 January 2009 02:30 PM To: users@wicket.apache.org Subject: Re: DropDownChoice onchange event with AjaxEventBehaviour Why not implement all actions within the same onchange? ** Martin 2009/1/7 Yazeed Isaacs yaz...@switch.tj: Hi I have a select box with an AjaxEventBehaviour linked to its onchange event. I want to perform the following but I need some help. When onchange occurs the following steps are implemented using the AjaxRequestTarget: 1. Update a WebMarkupContainer containerA with the words processing... 2. Update a WebMarkupContainer containerB with a DataView table. 3. Update containerA to display empty, ie. No words. How could I implement step 1 during the onchange event, and then have steps 2 3 execute after the onchange event? Regards, Yazeed Isaacs - Java Developer yaz...@transactionjunction.co.za - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Nested inner forms, each with their own AjaxSubmitLink, but only the 1st onSubmit ever gets called
Hi, I have searched theforums for a similar situation but can't seem to find anything. I have a complicated panel that consists of an outer form that contains 2 inner forms: a) The outer form has an AjaxSubmitLink with an onSubmit() that gets fired as expected. b) Each inner form has its own AjaxSubmitLink that allows the user to enter specific text which then gets added to the panel. All 3 forms have unique wicket id's. My problem is that when the user presses 'enter' in either of the 2 inner forms, the onSubmit of the 1st inner form always fires! The wicket Ajax Debugger confirms that the 2nd inner form has focus, but that the 1st inner form is the target of the submit request! I would expect that the 2nd inner form be the target. If i comment out the 1st inner form, then the 2nd inner form's onSubmit fires as expected. The inner forms are created by a subclass since all that changes is the name of the wicket components inside each form so no need to duplicate the code. Here's my code for the inner forms: i) JAVA: final Form tagsForm = new Form(userTypedTags + tagType); AjaxSubmitLink link = new AjaxSubmitLink(onReturnSubmitTags+tagType, tagsForm) { private static final long serialVersionUID = 1L; @Override public void onSubmit(AjaxRequestTarget target, Form tagsForm) { LOGGER.info( in AjaxSubmitLink's onsubmit for tagType: + tagType); addSelectedTag(selectedTags, tagText.getModelObjectAsString()); tagText.setModelObject(); target.addComponent(selectedContainer); target.addComponent(tagsForm); } }; tagsForm.add(link); tagsForm.setOutputMarkupId(true); add(tagsForm); ii) HTML for one of the subclasses that requires a form to be created for 'Pros' text (the 2nd subclass creates a form for 'Cons' text): wicket:extend form wicket:id=userTypedTagsPros input type=text wicket:id=userTagsPros class=text/ input type=submit wicket:id=onReturnSubmitTagsPros style=display: none; /form /wicket:extend Have you seen anything similar? Many thanks for your time, Jeremy -- View this message in context: http://www.nabble.com/Nested-inner-forms%2C-each-with-their-own-AjaxSubmitLink%2C-but-only-the-1st-onSubmit-ever-gets-called-tp21331944p21331944.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: FormComponent cookie persistent issue
is your application deployed to the root context (e.g. / ) ? Because your working cookie path is / while the cookie path that is not working is something like /homepage/wicket:interface/:0: . In my setup (I'm using the quickstart project that you sent) the path of my cookie is always /myproject which is the context path of the application. Can you repeat the same behavior using your own quickstart project? I suggest you to use wireshark or live http headers firefox plugin to check the http headers to see what's going on.. Murat Yücel wrote: Hi Serkan I must have seen wrong before. I am getting the same thing as you have described. The expire date is one month in the future. The only difference is in the path variable. If you clear your cookies and type something in the input fields when mount is enabled. Are you then able to see them again when you press the login button? I have attached some screenshots of the cookie and the webpage I see with and without mount. /Murat 2009/1/7 Serkan Camurcuoglu serkan.camurcuo...@telenity.com mailto:serkan.camurcuo...@telenity.com In my case (when using mounted home page), when setting cookies, the expire time is automatically set as one month from current date, and when clearing cookies the expire time is it is set as 01.01.1970.. It's really strange that the expire time is current time on your system.. Murat Yücel wrote: Hi Serkan I am using firefox 3.1 beta2, but i dont think that this is a browser related issue, because i am seeing the same behavior in IE7. The cookies are created for both FF and IE. The problem is that they get a expire date set to current time, which means that they are not available anymore. If i remove the mount they will get a expire date in the future and the typed value will stay in the input field. For example with mount i type admin in the first input field and password in the second. Press the login link and i see that the input fields are reset. If i remove the mount and do the same, admin and password will stay in the input fields. /Murat 2009/1/6 Serkan Camurcuoglu serkan.camurcuo...@telenity.com mailto:serkan.camurcuo...@telenity.com Hi Murat, It seems to work both ways in my setup. I'm using Firefox 3.0. It successfully saves the username and password when I check the remember me checkbox, and clears them when I uncheck it. Did you check the host, path and the values of the cookies in your browser? Murat Yücel wrote: Hi again Did anyone had the time to look at the attached project? Are you guys seeing the same behaviour? /Murat 2008/12/31 Murat Yücel kodeperke...@gmail.com mailto:kodeperke...@gmail.com Hi Cemal Thanks for the response. I have attached the project. If you uncomment this line: mountBookmarkablePage(homepage, HomePage.class); in WicketApplication.java, then you can see the difference in the behaviour. /Murat 2008/12/31 jWeekend jweekend_for...@cabouge.com mailto:jweekend_for...@cabouge.com Murat, It is OK, just delete the target folder and zip it up before sending your quickstart project to this list. Regards - Cemal http://www.jWeekend.co.uk jWeekend Murat Yücel-2 wrote: By the way i am using wicket 1.3.5. I dont know if you need other information? I can send the quickstart project if anyone is interested. I dont know if it is okey to attach it to the mailing list. /Murat 2008/12/29 Murat Yücel kodeperke...@gmail.com mailto:kodeperke...@gmail.com Hi All I have a strange problem with persisting
Re: Nested inner forms, each with their own AjaxSubmitLink, but only the 1st onSubmit ever gets called
According to me this is a browser thing, nothing Wicket can do anything about (without registering which field has focus, and sending that with the form, detecting that the default submit was triggered by pressing enter, figuring out which form was actually meant, etc. Martijn On Wed, Jan 7, 2009 at 3:06 PM, Jeremy2009 jscol...@gmail.com wrote: Hi, I have searched theforums for a similar situation but can't seem to find anything. I have a complicated panel that consists of an outer form that contains 2 inner forms: a) The outer form has an AjaxSubmitLink with an onSubmit() that gets fired as expected. b) Each inner form has its own AjaxSubmitLink that allows the user to enter specific text which then gets added to the panel. All 3 forms have unique wicket id's. My problem is that when the user presses 'enter' in either of the 2 inner forms, the onSubmit of the 1st inner form always fires! The wicket Ajax Debugger confirms that the 2nd inner form has focus, but that the 1st inner form is the target of the submit request! I would expect that the 2nd inner form be the target. If i comment out the 1st inner form, then the 2nd inner form's onSubmit fires as expected. The inner forms are created by a subclass since all that changes is the name of the wicket components inside each form so no need to duplicate the code. Here's my code for the inner forms: i) JAVA: final Form tagsForm = new Form(userTypedTags + tagType); AjaxSubmitLink link = new AjaxSubmitLink(onReturnSubmitTags+tagType, tagsForm) { private static final long serialVersionUID = 1L; @Override public void onSubmit(AjaxRequestTarget target, Form tagsForm) { LOGGER.info( in AjaxSubmitLink's onsubmit for tagType: + tagType); addSelectedTag(selectedTags, tagText.getModelObjectAsString()); tagText.setModelObject(); target.addComponent(selectedContainer); target.addComponent(tagsForm); } }; tagsForm.add(link); tagsForm.setOutputMarkupId(true); add(tagsForm); ii) HTML for one of the subclasses that requires a form to be created for 'Pros' text (the 2nd subclass creates a form for 'Cons' text): wicket:extend form wicket:id=userTypedTagsPros input type=text wicket:id=userTagsPros class=text/ input type=submit wicket:id=onReturnSubmitTagsPros style=display: none; /form /wicket:extend Have you seen anything similar? Many thanks for your time, Jeremy -- View this message in context: http://www.nabble.com/Nested-inner-forms%2C-each-with-their-own-AjaxSubmitLink%2C-but-only-the-1st-onSubmit-ever-gets-called-tp21331944p21331944.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Nested inner forms, each with their own AjaxSubmitLink, but only the 1st onSubmit ever gets called
Hi Martijn, Thanks for your super-fast reply. According to the Wicket Ajax Debugger, it says INFO: focus set on userTagsCons144 - which is the 2nd inner form's text field. On clicking 'enter', is the Ajax javascript able to check which form-related object has the current focus and therefore decide which inner form to dispatch the Ajax request to? If not, is there any kind of work-around? Would I get the same problem if the inner forms were not nested? Many thanks, Jeremy Martijn Dashorst wrote: According to me this is a browser thing, nothing Wicket can do anything about (without registering which field has focus, and sending that with the form, detecting that the default submit was triggered by pressing enter, figuring out which form was actually meant, etc. Martijn On Wed, Jan 7, 2009 at 3:06 PM, Jeremy2009 jscol...@gmail.com wrote: Hi, I have searched theforums for a similar situation but can't seem to find anything. I have a complicated panel that consists of an outer form that contains 2 inner forms: a) The outer form has an AjaxSubmitLink with an onSubmit() that gets fired as expected. b) Each inner form has its own AjaxSubmitLink that allows the user to enter specific text which then gets added to the panel. All 3 forms have unique wicket id's. My problem is that when the user presses 'enter' in either of the 2 inner forms, the onSubmit of the 1st inner form always fires! The wicket Ajax Debugger confirms that the 2nd inner form has focus, but that the 1st inner form is the target of the submit request! I would expect that the 2nd inner form be the target. If i comment out the 1st inner form, then the 2nd inner form's onSubmit fires as expected. The inner forms are created by a subclass since all that changes is the name of the wicket components inside each form so no need to duplicate the code. Here's my code for the inner forms: i) JAVA: final Form tagsForm = new Form(userTypedTags + tagType); AjaxSubmitLink link = new AjaxSubmitLink(onReturnSubmitTags+tagType, tagsForm) { private static final long serialVersionUID = 1L; @Override public void onSubmit(AjaxRequestTarget target, Form tagsForm) { LOGGER.info( in AjaxSubmitLink's onsubmit for tagType: + tagType); addSelectedTag(selectedTags, tagText.getModelObjectAsString()); tagText.setModelObject(); target.addComponent(selectedContainer); target.addComponent(tagsForm); } }; tagsForm.add(link); tagsForm.setOutputMarkupId(true); add(tagsForm); ii) HTML for one of the subclasses that requires a form to be created for 'Pros' text (the 2nd subclass creates a form for 'Cons' text): wicket:extend form wicket:id=userTypedTagsPros input type=text wicket:id=userTagsPros class=text/ input type=submit wicket:id=onReturnSubmitTagsPros style=display: none; /form /wicket:extend Have you seen anything similar? Many thanks for your time, Jeremy -- View this message in context: http://www.nabble.com/Nested-inner-forms%2C-each-with-their-own-AjaxSubmitLink%2C-but-only-the-1st-onSubmit-ever-gets-called-tp21331944p21331944.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/Nested-inner-forms%2C-each-with-their-own-AjaxSubmitLink%2C-but-only-the-1st-onSubmit-ever-gets-called-tp21331944p21332248.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
session problem
Hi all, I have problem with a Wicket app deployed to a new host with shared tomcat : Not Found The requested URL /Pharmaco/;jsessionid=77264BF90D4FC51FD38AEF8259D8AD91 was not found on this server. Wicket seems to need a directory /work/Catalina/localhost/Pharmaco/WicketFilter-filestore in the Tomcat install directory for saving session information. I dont have any right at this path. Any idea to save this information in my own app ? Thanks in advance Pierre
RE: DataView vs ListView
My humble opinion is that you have to pay the price somewhere. Either you are going to load all that data into memory in a List or get it from the database for each page. I use JPersist to map the database to objects. I have found it to be quite fast. Connection pooling helps too. If you have several users searching and returning large Lists in memory, you may not be too happy with those results either :) -Original Message- From: Dane Laverty [mailto:danelave...@chemeketa.edu] Sent: Tuesday, January 06, 2009 8:08 PM To: users@wicket.apache.org Subject: DataView vs ListView I've been trying to understand when DataView would come in handy. I have a SQL database table with about 1,000,000 rows. The user can enter a search string, and my application returns a list of all the rows that match the search string. This list might be over 10,000 rows. At first I thought this would be a perfect situation for a DataView, since it involves large numbers of rows, and I don't necessarily want to get all 10,000 rows if the user only needs to look at the first 20. However, I'm finding that, since DataView re-queries the database with each page view of the results list, any time advantage I might have gotten initially is quickly lost. It seems that using a PageableListView, I just query the database once and I'm good. So my question is, am I misunderstanding the purpose of the DataView? All of the online examples I find for DataView use Java databases rather than SQL relational databases. Is the DataView only useful if you already have some kind of a Java database to back it up? Or is there some way that I can take advantage of DataView in this situation without having to re-query the database whenever the user clicks to a different page of the result list? _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ EMAIL CONFIDENTIALITY NOTICE This Email message, and any attachments, may contain confidential patient health information that is legally protected. This information is intended only for the use of the individual or entity named above. The authorized recipient of this information is prohibited from disclosing this information to any other party unless required to do so by law or regulation and is required to destroy the information after its stated need has been fulfilled. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or action taken in reliance on the contents of this message is strictly prohibited. If you have received this information in error, please notify the sender immediately by replying to this message and delete the message from your system. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: XSLT in a Panel
So I am not understanding how to setup the XML input source here. Here is what I have: // XSL --- ?xml version=1.0 encoding=UTF-8? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xsl:output method=text encoding=UTF-8/ !-- simply copy the message to the result tree -- xsl:template match=/ A message should be below. xsl:value-of select=message/ below is above here /xsl:template /xsl:stylesheet // JAVA -- MarkupContainer? report = new MarkupContainerString(ReportPanel); report.setModel(new Model(?xml version=\1.0\ encoding=\UTF-8\?messageYep, it worked!/message)); add(report); XsltTransformerBehavior trans = new XsltTransformerBehavior(); report.add(trans); I can see that the associated XSL file is being used, but I am not seeing the message. I thought is might be bad xpath, so I essentially copied XsltTransformerBehavior and printed out the XML input like so: @Override public CharSequence transform(final Component ? component, final CharSequence output) throws Exception { System.out.println(output); return new XsltTransformer(xslFile).transform(component, output); } What I saw was: What I expected was: messageYep, it worked!/message What am I doing wrong? This should be simple and I am sure there is an easy fix. jeredm wrote: I believe that is what I am looking for; however, I am not able to get the objects to work. Are there any Hello World examples of those objects in action? igor.vaynberg wrote: see XsltTransformer and XsltTransformerBehavior -igor On Mon, Jan 5, 2009 at 4:08 PM, jeredm jer...@maplewoodsoftware.com wrote: I have a rather extensive report that is done in an application that I am porting to a Wicket application. This report relies on a SQL Server XML select (for xml explicit) that nests data so that I don't know how to do a single database select that will give me all the data I need in a flat format. The application I am porting from uses a simple xsl transform to handle the display of the report. Is there a way that I can make a Wicket Panel using an xsl transform that is nested inside a generic wicket panel? I want to keep the transform portable, so that I can use is only in a panel that needs it and do not have to manipulate how the application handles mounting of pages, for example. Here is the sort of code I am looking for: public class ReportPanel extends Panel { ... public ReportPanel(String id){ super(id); layoutPanel(); } private void layoutPanel(){ // Most are not real objects here, but this is what I would like to do ObjectThatHoldsXML myXML = ... XSLFilePointerObject myXSL = ... TransformedComponent mySPANTag = new TransformedComponent(reportPanel, new Model(XSLTHTMLTransformerObject.transform(myXML, myXSL)); ... add(mySpanTag); } } If anybody has a short Hello World example that would be great. I looked through http://www.wicket-library.com/wicket-examples/staticpages/ and I don't think that the implementation is what I need (I could very likely be understanding it incorrectly). Thanks for the help! Jered -- View this message in context: http://www.nabble.com/XSLT-in-a-Panel-tp21301555p21301555.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/XSLT-in-a-Panel-tp21301555p21332963.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DataView vs ListView
Why do you read up to 1 records into memory? Nobody will be able to view all of these ever. I would set a limit at around 500-1000 records and provide some advanced filtering instead. Am 07.01.2009 um 15:52 schrieb Ames, Tim: My humble opinion is that you have to pay the price somewhere. Either you are going to load all that data into memory in a List or get it from the database for each page. I use JPersist to map the database to objects. I have found it to be quite fast. Connection pooling helps too. If you have several users searching and returning large Lists in memory, you may not be too happy with those results either :) -Original Message- From: Dane Laverty [mailto:danelave...@chemeketa.edu] Sent: Tuesday, January 06, 2009 8:08 PM To: users@wicket.apache.org Subject: DataView vs ListView I've been trying to understand when DataView would come in handy. I have a SQL database table with about 1,000,000 rows. The user can enter a search string, and my application returns a list of all the rows that match the search string. This list might be over 10,000 rows. At first I thought this would be a perfect situation for a DataView, since it involves large numbers of rows, and I don't necessarily want to get all 10,000 rows if the user only needs to look at the first 20. However, I'm finding that, since DataView re-queries the database with each page view of the results list, any time advantage I might have gotten initially is quickly lost. It seems that using a PageableListView, I just query the database once and I'm good. So my question is, am I misunderstanding the purpose of the DataView? All of the online examples I find for DataView use Java databases rather than SQL relational databases. Is the DataView only useful if you already have some kind of a Java database to back it up? Or is there some way that I can take advantage of DataView in this situation without having to re-query the database whenever the user clicks to a different page of the result list? _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ EMAIL CONFIDENTIALITY NOTICE This Email message, and any attachments, may contain confidential patient health information that is legally protected. This information is intended only for the use of the individual or entity named above. The authorized recipient of this information is prohibited from disclosing this information to any other party unless required to do so by law or regulation and is required to destroy the information after its stated need has been fulfilled. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or action taken in reliance on the contents of this message is strictly prohibited. If you have received this information in error, please notify the sender immediately by replying to this message and delete the message from your system. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DataView vs ListView
Also, in MySQL syntax, you've got stuff like this that gets you right to the page you want: sql = Select ... whatever ..; sql += limit + query.getFrom() + ,+query.getCount(); Oracle and other variants have similar options - I agree conn pool probably makes most difference. -- Jim On Wed, Jan 7, 2009 at 9:52 AM, Ames, Tim tim.a...@promedica.org wrote: My humble opinion is that you have to pay the price somewhere. Either you are going to load all that data into memory in a List or get it from the database for each page. I use JPersist to map the database to objects. I have found it to be quite fast. Connection pooling helps too. If you have several users searching and returning large Lists in memory, you may not be too happy with those results either :) -Original Message- From: Dane Laverty [mailto:danelave...@chemeketa.edu] Sent: Tuesday, January 06, 2009 8:08 PM To: users@wicket.apache.org Subject: DataView vs ListView I've been trying to understand when DataView would come in handy. I have a SQL database table with about 1,000,000 rows. The user can enter a search string, and my application returns a list of all the rows that match the search string. This list might be over 10,000 rows. At first I thought this would be a perfect situation for a DataView, since it involves large numbers of rows, and I don't necessarily want to get all 10,000 rows if the user only needs to look at the first 20. However, I'm finding that, since DataView re-queries the database with each page view of the results list, any time advantage I might have gotten initially is quickly lost. It seems that using a PageableListView, I just query the database once and I'm good. So my question is, am I misunderstanding the purpose of the DataView? All of the online examples I find for DataView use Java databases rather than SQL relational databases. Is the DataView only useful if you already have some kind of a Java database to back it up? Or is there some way that I can take advantage of DataView in this situation without having to re-query the database whenever the user clicks to a different page of the result list? _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ EMAIL CONFIDENTIALITY NOTICE This Email message, and any attachments, may contain confidential patient health information that is legally protected. This information is intended only for the use of the individual or entity named above. The authorized recipient of this information is prohibited from disclosing this information to any other party unless required to do so by law or regulation and is required to destroy the information after its stated need has been fulfilled. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or action taken in reliance on the contents of this message is strictly prohibited. If you have received this information in error, please notify the sender immediately by replying to this message and delete the message from your system. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: DropDownChoice onchange event with AjaxEventBehaviour
You should use the same label and just replace the model object: final Label label = new Label(text, new Model()); ... label.setModelObject(processing...); ... label.setModelObject(); -Original Message- From: Yazeed Isaacs [mailto:yaz...@switch.tj] Sent: Wednesday, January 07, 2009 8:27 AM To: users@wicket.apache.org Subject: RE: DropDownChoice onchange event with AjaxEventBehaviour Yes, I want feedback text for a lengthy process and then update the table and remove the feedback text. I'm not seeing the words processing... due to all 3 steps in the same onchange event. Example: AjaxEventBehaviour(onchange) { @Override protected onEvent(AjaxRequestTarget target) { // step 1 containerA.replace(new Label(text,processing...)); target.addComponent(containerA); // step 2 DataView data = new DataView(data, new DataProvider(), 10); containerB.replace(data); target.addComponent(containerB); // step 3 containerA.replace(new Label(text,)); target.addComponent(containerA); } } Obviously, step 1 does not belong in the onEvent method since step 3 replace the text with , however step 1 needs to happen during the onchange event. Regards, Yazeed Isaacs - Java Developer yaz...@transactionjunction.co.za -Original Message- From: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] Sent: 07 January 2009 03:08 PM To: users@wicket.apache.org Subject: Re: DropDownChoice onchange event with AjaxEventBehaviour Hi, Are you able to see the words processing...? From your post I thought what you wanted was to have some kind of feedback for a lengthy process and once it was finished then update the table and no longer show the processing... anymore... Best, Ernesto On Wed, Jan 7, 2009 at 1:59 PM, Yazeed Isaacs yaz...@switch.tj wrote: If I implement all 3 steps in the same onchange event, then step 3 would remove the text in step 1, resulting in no text being seen on the page. Yazeed Isaacs - Java Developer yaz...@transactionjunction.co.za -Original Message- From: Martin Makundi [mailto:martin.maku...@koodaripalvelut.com] Sent: 07 January 2009 02:30 PM To: users@wicket.apache.org Subject: Re: DropDownChoice onchange event with AjaxEventBehaviour Why not implement all actions within the same onchange? ** Martin 2009/1/7 Yazeed Isaacs yaz...@switch.tj: Hi I have a select box with an AjaxEventBehaviour linked to its onchange event. I want to perform the following but I need some help. When onchange occurs the following steps are implemented using the AjaxRequestTarget: 1. Update a WebMarkupContainer containerA with the words processing... 2. Update a WebMarkupContainer containerB with a DataView table. 3. Update containerA to display empty, ie. No words. How could I implement step 1 during the onchange event, and then have steps 2 3 execute after the onchange event? Regards, Yazeed Isaacs - Java Developer yaz...@transactionjunction.co.za - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
[OT] PHP based Open Source Content Management Systems
Does anyone have a recommendation for a PHP Open Source Content Management System? I ask as I volunteered to setup my local running club's web site and I'm constrained to PHP due to their hosting plan. I would be grateful for a recommendation if you have experience with them. Best, JP.
Regarding URL mapping
Hi Does anyone know how to use FriendlyUrlMapper in wicket to get the current url's content? Nilesh N. More Legal Disclaimer: This electronic message and all contents contain information from Cybage Software Private Limited which may be privileged, confidential, or otherwise protected from disclosure. The information is intended to be for the addressee(s) only. If you are not an addressee, any disclosure, copy, distribution, or use of the contents of this message is strictly prohibited. If you have received this electronic message in error please notify the sender by reply e-mail to and destroy the original message and all copies. Cybage has taken every reasonable precaution to minimize the risk of malicious content in the mail, but is not liable for any damage you may sustain as a result of any malicious content in this e-mail. You should carry out your own malicious content checks before opening the e-mail or attachment. www.cybage.com
Re: XSLT in a Panel
markup container doesnt output its model, use a label instead. and also call setescapemodelstrings(false) on the label. -igor On Wed, Jan 7, 2009 at 7:00 AM, jeredm jer...@maplewoodsoftware.com wrote: So I am not understanding how to setup the XML input source here. Here is what I have: // XSL --- ?xml version=1.0 encoding=UTF-8? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xsl:output method=text encoding=UTF-8/ !-- simply copy the message to the result tree -- xsl:template match=/ A message should be below. xsl:value-of select=message/ below is above here /xsl:template /xsl:stylesheet // JAVA -- MarkupContainer? report = new MarkupContainerString(ReportPanel); report.setModel(new Model(?xml version=\1.0\ encoding=\UTF-8\?messageYep, it worked!/message)); add(report); XsltTransformerBehavior trans = new XsltTransformerBehavior(); report.add(trans); I can see that the associated XSL file is being used, but I am not seeing the message. I thought is might be bad xpath, so I essentially copied XsltTransformerBehavior and printed out the XML input like so: @Override public CharSequence transform(final Component ? component, final CharSequence output) throws Exception { System.out.println(output); return new XsltTransformer(xslFile).transform(component, output); } What I saw was: What I expected was: messageYep, it worked!/message What am I doing wrong? This should be simple and I am sure there is an easy fix. jeredm wrote: I believe that is what I am looking for; however, I am not able to get the objects to work. Are there any Hello World examples of those objects in action? igor.vaynberg wrote: see XsltTransformer and XsltTransformerBehavior -igor On Mon, Jan 5, 2009 at 4:08 PM, jeredm jer...@maplewoodsoftware.com wrote: I have a rather extensive report that is done in an application that I am porting to a Wicket application. This report relies on a SQL Server XML select (for xml explicit) that nests data so that I don't know how to do a single database select that will give me all the data I need in a flat format. The application I am porting from uses a simple xsl transform to handle the display of the report. Is there a way that I can make a Wicket Panel using an xsl transform that is nested inside a generic wicket panel? I want to keep the transform portable, so that I can use is only in a panel that needs it and do not have to manipulate how the application handles mounting of pages, for example. Here is the sort of code I am looking for: public class ReportPanel extends Panel { ... public ReportPanel(String id){ super(id); layoutPanel(); } private void layoutPanel(){ // Most are not real objects here, but this is what I would like to do ObjectThatHoldsXML myXML = ... XSLFilePointerObject myXSL = ... TransformedComponent mySPANTag = new TransformedComponent(reportPanel, new Model(XSLTHTMLTransformerObject.transform(myXML, myXSL)); ... add(mySpanTag); } } If anybody has a short Hello World example that would be great. I looked through http://www.wicket-library.com/wicket-examples/staticpages/ and I don't think that the implementation is what I need (I could very likely be understanding it incorrectly). Thanks for the help! Jered -- View this message in context: http://www.nabble.com/XSLT-in-a-Panel-tp21301555p21301555.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/XSLT-in-a-Panel-tp21301555p21332963.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: FormComponent cookie persistent issue
Hi Serkan I am using the Start.java located in the test folder to startup the project. The context path is removed there. When I add a context path, then it is working fine. Both cookies is created with path /myproject. But the problem exist if you remove the context path. This is the way i run it on my server and i guess that this should also work for wicket. Can you confirm that you have the same problem when removing the context path. /Murat 2009/1/7 Serkan Camurcuoglu serkan.camurcuo...@telenity.com is your application deployed to the root context (e.g. / ) ? Because your working cookie path is / while the cookie path that is not working is something like /homepage/wicket:interface/:0: . In my setup (I'm using the quickstart project that you sent) the path of my cookie is always /myproject which is the context path of the application. Can you repeat the same behavior using your own quickstart project? I suggest you to use wireshark or live http headers firefox plugin to check the http headers to see what's going on.. Murat Yücel wrote: Hi Serkan I must have seen wrong before. I am getting the same thing as you have described. The expire date is one month in the future. The only difference is in the path variable. If you clear your cookies and type something in the input fields when mount is enabled. Are you then able to see them again when you press the login button? I have attached some screenshots of the cookie and the webpage I see with and without mount. /Murat 2009/1/7 Serkan Camurcuoglu serkan.camurcuo...@telenity.com mailto: serkan.camurcuo...@telenity.com In my case (when using mounted home page), when setting cookies, the expire time is automatically set as one month from current date, and when clearing cookies the expire time is it is set as 01.01.1970.. It's really strange that the expire time is current time on your system.. Murat Yücel wrote: Hi Serkan I am using firefox 3.1 beta2, but i dont think that this is a browser related issue, because i am seeing the same behavior in IE7. The cookies are created for both FF and IE. The problem is that they get a expire date set to current time, which means that they are not available anymore. If i remove the mount they will get a expire date in the future and the typed value will stay in the input field. For example with mount i type admin in the first input field and password in the second. Press the login link and i see that the input fields are reset. If i remove the mount and do the same, admin and password will stay in the input fields. /Murat 2009/1/6 Serkan Camurcuoglu serkan.camurcuo...@telenity.com mailto:serkan.camurcuo...@telenity.com Hi Murat, It seems to work both ways in my setup. I'm using Firefox 3.0. It successfully saves the username and password when I check the remember me checkbox, and clears them when I uncheck it. Did you check the host, path and the values of the cookies in your browser? Murat Yücel wrote: Hi again Did anyone had the time to look at the attached project? Are you guys seeing the same behaviour? /Murat 2008/12/31 Murat Yücel kodeperke...@gmail.com mailto:kodeperke...@gmail.com Hi Cemal Thanks for the response. I have attached the project. If you uncomment this line: mountBookmarkablePage(homepage, HomePage.class); in WicketApplication.java, then you can see the difference in the behaviour. /Murat 2008/12/31 jWeekend jweekend_for...@cabouge.com mailto:jweekend_for...@cabouge.com Murat, It is OK, just delete the target folder and zip it up before sending your quickstart project to this list. Regards - Cemal http://www.jWeekend.co.uk jWeekend Murat Yücel-2 wrote: By the way i am using wicket 1.3.5. I dont know if you need other information? I can send the quickstart project if anyone is interested. I dont know if it is okey to attach it to the mailing list. /Murat
Re: [OT] PHP based Open Source Content Management Systems
I stumbled upon this page yesterday: http://www.packtpub.com/article/2008-open-source-cms-award-winner-announced James Perry wrote: Does anyone have a recommendation for a PHP Open Source Content Management System? I ask as I volunteered to setup my local running club's web site and I'm constrained to PHP due to their hosting plan. I would be grateful for a recommendation if you have experience with them. Best, JP. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: XSLT in a Panel
Thank You!!! That works great! igor.vaynberg wrote: markup container doesnt output its model, use a label instead. and also call setescapemodelstrings(false) on the label. -igor On Wed, Jan 7, 2009 at 7:00 AM, jeredm jer...@maplewoodsoftware.com wrote: So I am not understanding how to setup the XML input source here. Here is what I have: // XSL --- ?xml version=1.0 encoding=UTF-8? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xsl:output method=text encoding=UTF-8/ !-- simply copy the message to the result tree -- xsl:template match=/ A message should be below. xsl:value-of select=message/ below is above here /xsl:template /xsl:stylesheet // JAVA -- MarkupContainer? report = new MarkupContainerString(ReportPanel); report.setModel(new Model(?xml version=\1.0\ encoding=\UTF-8\?messageYep, it worked!/message)); add(report); XsltTransformerBehavior trans = new XsltTransformerBehavior(); report.add(trans); I can see that the associated XSL file is being used, but I am not seeing the message. I thought is might be bad xpath, so I essentially copied XsltTransformerBehavior and printed out the XML input like so: @Override public CharSequence transform(final Component ? component, final CharSequence output) throws Exception { System.out.println(output); return new XsltTransformer(xslFile).transform(component, output); } What I saw was: What I expected was: messageYep, it worked!/message What am I doing wrong? This should be simple and I am sure there is an easy fix. jeredm wrote: I believe that is what I am looking for; however, I am not able to get the objects to work. Are there any Hello World examples of those objects in action? igor.vaynberg wrote: see XsltTransformer and XsltTransformerBehavior -igor On Mon, Jan 5, 2009 at 4:08 PM, jeredm jer...@maplewoodsoftware.com wrote: I have a rather extensive report that is done in an application that I am porting to a Wicket application. This report relies on a SQL Server XML select (for xml explicit) that nests data so that I don't know how to do a single database select that will give me all the data I need in a flat format. The application I am porting from uses a simple xsl transform to handle the display of the report. Is there a way that I can make a Wicket Panel using an xsl transform that is nested inside a generic wicket panel? I want to keep the transform portable, so that I can use is only in a panel that needs it and do not have to manipulate how the application handles mounting of pages, for example. Here is the sort of code I am looking for: public class ReportPanel extends Panel { ... public ReportPanel(String id){ super(id); layoutPanel(); } private void layoutPanel(){ // Most are not real objects here, but this is what I would like to do ObjectThatHoldsXML myXML = ... XSLFilePointerObject myXSL = ... TransformedComponent mySPANTag = new TransformedComponent(reportPanel, new Model(XSLTHTMLTransformerObject.transform(myXML, myXSL)); ... add(mySpanTag); } } If anybody has a short Hello World example that would be great. I looked through http://www.wicket-library.com/wicket-examples/staticpages/ and I don't think that the implementation is what I need (I could very likely be understanding it incorrectly). Thanks for the help! Jered -- View this message in context: http://www.nabble.com/XSLT-in-a-Panel-tp21301555p21301555.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/XSLT-in-a-Panel-tp21301555p21332963.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/XSLT-in-a-Panel-tp21301555p21333772.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional
Re: [OT] PHP based Open Source Content Management Systems
Hi James, i would propose TYPOlight [1]. Our company uses it for many customers and until now their feedback is very positive. :) greetings, Witold [1] http://www.typolight.org/index.html Am Wed, 7 Jan 2009 15:20:39 + schrieb James Perry james.austin.pe...@gmail.com: Does anyone have a recommendation for a PHP Open Source Content Management System? I ask as I volunteered to setup my local running club's web site and I'm constrained to PHP due to their hosting plan. I would be grateful for a recommendation if you have experience with them. Best, JP. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: DataView vs ListView
Jim, I think his comment was that he did not want to go back to the DB. But, yes I agree. In SQL Server 2005 it is a little trickier. You have to open up a selectMethod=cursor at connection time. In SQL Server selectMethod=direct is the default :( After converting from MySql to SQL Server it took me a lot of research to find this one! -Original Message- From: Jim Pinkham [mailto:pinkh...@gmail.com] Sent: Wednesday, January 07, 2009 10:07 AM To: users@wicket.apache.org Subject: Re: DataView vs ListView Also, in MySQL syntax, you've got stuff like this that gets you right to the page you want: sql = Select ... whatever ..; sql += limit + query.getFrom() + ,+query.getCount(); Oracle and other variants have similar options - I agree conn pool probably makes most difference. -- Jim On Wed, Jan 7, 2009 at 9:52 AM, Ames, Tim tim.a...@promedica.org wrote: My humble opinion is that you have to pay the price somewhere. Either you are going to load all that data into memory in a List or get it from the database for each page. I use JPersist to map the database to objects. I have found it to be quite fast. Connection pooling helps too. If you have several users searching and returning large Lists in memory, you may not be too happy with those results either :) -Original Message- From: Dane Laverty [mailto:danelave...@chemeketa.edu] Sent: Tuesday, January 06, 2009 8:08 PM To: users@wicket.apache.org Subject: DataView vs ListView I've been trying to understand when DataView would come in handy. I have a SQL database table with about 1,000,000 rows. The user can enter a search string, and my application returns a list of all the rows that match the search string. This list might be over 10,000 rows. At first I thought this would be a perfect situation for a DataView, since it involves large numbers of rows, and I don't necessarily want to get all 10,000 rows if the user only needs to look at the first 20. However, I'm finding that, since DataView re-queries the database with each page view of the results list, any time advantage I might have gotten initially is quickly lost. It seems that using a PageableListView, I just query the database once and I'm good. So my question is, am I misunderstanding the purpose of the DataView? All of the online examples I find for DataView use Java databases rather than SQL relational databases. Is the DataView only useful if you already have some kind of a Java database to back it up? Or is there some way that I can take advantage of DataView in this situation without having to re-query the database whenever the user clicks to a different page of the result list? _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ EMAIL CONFIDENTIALITY NOTICE This Email message, and any attachments, may contain confidential patient health information that is legally protected. This information is intended only for the use of the individual or entity named above. The authorized recipient of this information is prohibited from disclosing this information to any other party unless required to do so by law or regulation and is required to destroy the information after its stated need has been fulfilled. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or action taken in reliance on the contents of this message is strictly prohibited. If you have received this information in error, please notify the sender immediately by replying to this message and delete the message from your system. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ EMAIL CONFIDENTIALITY NOTICE This Email message, and any attachments, may contain confidential patient health information that is legally protected. This information is intended only for the use of the individual or entity named above. The authorized recipient of this information is prohibited from disclosing this information to any other party unless required to do so by law or regulation and is required to destroy the information after its stated need has been fulfilled. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or action taken in reliance on the contents of this message is strictly prohibited. If you have received this information in error, please notify the sender immediately by replying to this message and delete the message from your system. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: brainstorming
It's a good idea, but I believe it would be difficult to implement in IDEA. From my experience, writing a plugin for IDEA is tedious and very labor intensive since there are few docs and little support from Jetbrains. They don't seem motivated to support their plugin framework. That said, if I can ever figure out why my Wicket plugin isn't working, I'll be sure to look into refactoring support. :) On Mon, Jan 5, 2009 at 2:57 AM, Daniele Dellafiore ilde...@gmail.comwrote: Hi everyone. I am thinking about how could be useful to have a feature like the one I am going to describe. I would like to receive feedback from you. Using wicket for a long time now, one of the most tedious task is panel refactoring. I mean, often you start with some simple panel then it grows and you split in several panels. This operation is tedious becouse there is no IDE support for refactoring both java and html side. The generation/update of the java code starting from html seems to be useful. I figure out a couple of sceneries: 1. I want to create a brand new app, I spend some time with the designer that produce the html/css for the basic three pages of my first release: home, list of product and details. Really basic. Then I want to create the webapp based on wicket: I would like to give the three html pages and the css to a software that generates for me all the wicket panels, html and java files. I can act like this: after getting the files from the designer, I go into that and put the wicket:id wherever I want. So I can tell the magical wicket compiler where to create panel. Then I can get all my java and the corresponding wicket:panel and pages with extends. I guess it should be possible, technically. 2. I want to refactor: after the first release I need some more elements in my pages so the designer add the elements to html pages (with the wicket:id) and then I want to update my wicket files. Here come the trick: very probably I have added some java code to the panels that the compiler creates the first time. I want to update, probably I need to split some panel into 2 or 3 different panels. Le me think about how it should work, for a single page. First, we get the html/css with wicket:id· Then our wizard split it into all wicket pages and panels. Should be easy. Then we need to generate the java code. we can determine the kind of wicket component from the html tag: button, label, a, and so on... Then usually we make changes to java code, to add behavior and so on. Then we want to refactor, two scenario here: 1. arrives the new html pages from the designer 2. we refactor in place. In case 2, maybe we just need some ide support: some refactoring actions starting from wicket panels that affects java code. wicket bench offers something but nothing for refactoring and the project is almost dead right now. In case 1 is harder, I think is possible to handle automatically only some cases like we just have new panels where before we have a single one AND we still have that old one that is now a container of the new panels Well, It cannot seem that much but these are some automations that can be done and cover a lot of repetetive task in building a wicket app. In particular the first thing allow us to have a full web site parsed from a generic html page. What do you think? Am I getting crazy or there is something useful here? -- Daniele Dellafiore http://blog.ildella.net/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Nick Heudecker Professional Wicket Training Consulting http://www.systemmobile.com Eventful - Intelligent Event Management http://www.eventfulhq.com
Re: FormComponent cookie persistent issue
Murat, I tried (using the Start class) as soon as you sent your quickstart and witnessed the same result you did. I have not looked into the reason it behaves as it does or differently with a non-root context. Regards - Cemal http://www.jWeekend.com jWeekend Murat Yücel-2 wrote: Hi Serkan I am using the Start.java located in the test folder to startup the project. The context path is removed there. When I add a context path, then it is working fine. Both cookies is created with path /myproject. But the problem exist if you remove the context path. This is the way i run it on my server and i guess that this should also work for wicket. Can you confirm that you have the same problem when removing the context path. /Murat 2009/1/7 Serkan Camurcuoglu serkan.camurcuo...@telenity.com is your application deployed to the root context (e.g. / ) ? Because your working cookie path is / while the cookie path that is not working is something like /homepage/wicket:interface/:0: . In my setup (I'm using the quickstart project that you sent) the path of my cookie is always /myproject which is the context path of the application. Can you repeat the same behavior using your own quickstart project? I suggest you to use wireshark or live http headers firefox plugin to check the http headers to see what's going on.. Murat Yücel wrote: Hi Serkan I must have seen wrong before. I am getting the same thing as you have described. The expire date is one month in the future. The only difference is in the path variable. If you clear your cookies and type something in the input fields when mount is enabled. Are you then able to see them again when you press the login button? I have attached some screenshots of the cookie and the webpage I see with and without mount. /Murat 2009/1/7 Serkan Camurcuoglu serkan.camurcuo...@telenity.com mailto: serkan.camurcuo...@telenity.com In my case (when using mounted home page), when setting cookies, the expire time is automatically set as one month from current date, and when clearing cookies the expire time is it is set as 01.01.1970.. It's really strange that the expire time is current time on your system.. Murat Yücel wrote: Hi Serkan I am using firefox 3.1 beta2, but i dont think that this is a browser related issue, because i am seeing the same behavior in IE7. The cookies are created for both FF and IE. The problem is that they get a expire date set to current time, which means that they are not available anymore. If i remove the mount they will get a expire date in the future and the typed value will stay in the input field. For example with mount i type admin in the first input field and password in the second. Press the login link and i see that the input fields are reset. If i remove the mount and do the same, admin and password will stay in the input fields. /Murat 2009/1/6 Serkan Camurcuoglu serkan.camurcuo...@telenity.com mailto:serkan.camurcuo...@telenity.com Hi Murat, It seems to work both ways in my setup. I'm using Firefox 3.0. It successfully saves the username and password when I check the remember me checkbox, and clears them when I uncheck it. Did you check the host, path and the values of the cookies in your browser? Murat Yücel wrote: Hi again Did anyone had the time to look at the attached project? Are you guys seeing the same behaviour? /Murat 2008/12/31 Murat Yücel kodeperke...@gmail.com mailto:kodeperke...@gmail.com Hi Cemal Thanks for the response. I have attached the project. If you uncomment this line: mountBookmarkablePage(homepage, HomePage.class); in WicketApplication.java, then you can see the difference in the behaviour. /Murat 2008/12/31 jWeekend jweekend_for...@cabouge.com mailto:jweekend_for...@cabouge.com Murat, It is OK, just delete the target folder and zip it up before sending your quickstart project to this list. Regards - Cemal http://www.jWeekend.co.uk jWeekend Murat Yücel-2 wrote: By the way i am using wicket 1.3.5. I dont know if you need other information? I can
Re: ComponentResolver and CompoundPropertyModels
Thanks Igor! I was mistankenly replacing the model on component resolver. Now it works fine! what you have to do is add a component instead of autoadd Unfortunately add doesn't work during render phase, where component resolvers are called. I found this mail about the subject: http://osdir.com/ml/java.wicket.devel/2005-03/msg00552.html So the only way to make this work is commenting out the removal? igor.vaynberg wrote: autocomponents are components that only exist during the render phase, thus they are removed after. what you have to do is add a component instead of autoadd. if your model is not being updated set a breakpoint in updatemodel() and see what it is doing, also make sure there are no validation errors. -igor On Mon, Jan 5, 2009 at 12:43 PM, Ricardo Mayerhofer ricardo.ekm.lis...@gmail.com wrote: Thanks Jan, I will look into it! Igor, you were right. Auto components are deleted. I commented that part of the code, so now I can access the component (and its model) on form's submit. Therefore, the property is not being setted on the form model yet... Do you have any idea why? BTW, why auto components are deleted after rendering? Jan Kriesten-2 wrote: Hi, auto components are removed after rendering is complete if i recall correctly, so there is nothing processing the submitted input. there are a couple of problems with that approach, same for embedding components in markup with the wicket:component I approached a similar problem auto-adding components with templates. My solution can be found here: http://www.footprint.de/fcc/2008/11/some-wicket-scala/ Instead of handling wxComponent you might filter for other tags - so that might be the solution for you, too. Hope this helps. Best regards, --- Jan. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/ComponentResolver-and-CompoundPropertyModels-tp21209434p21298927.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/ComponentResolver-and-CompoundPropertyModels-tp21209434p2133.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: using AutoCompleteTextField with wicket 1.4-rc1
I found my problem-- mootools javascript and wicket ajax components don't play nicely :-( Jason Novotny wrote: Hi, I saw the example of the autocomplete textfield at http://www.wicket-library.com/wicket-examples/ajax/autocomplete.1 and I'm trying to use it. Problem is it doesn't look like it responds at all when I start typing in the textfield. I see that the rendered input field does not have a onchange attribute added like the example does. Does anyone know what I'm missing? Here is my html and java below? form wicket:id=form1 Country: input type=text wicket:id=ac size=50/ /form and my java (same as the example) FormVoid form = new FormVoid(form1); add(form); form.add(new AutoCompleteTextFieldString(ac, new ModelString()) { protected IteratorString getChoices(String input) { if (Strings.isEmpty(input)) { return Collections.EMPTY_LIST.iterator(); } ListString choices = new ArrayListString(10); Locale[] locales = Locale.getAvailableLocales(); for (int i = 0; i locales.length; i++) { final Locale locale = locales[i]; final String country = locale.getDisplayCountry(); if (country.toUpperCase().startsWith(input.toUpperCase())) { choices.add(country); if (choices.size() == 10) { break; } } } return choices.iterator(); } }); } Thanks a bunch, Jason - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Sorting a column populated through pupulateItem method...
I have a requirement to sort a column of a Datatable which does not have any property values. Sorting property columns is easy using the getSortProperty() method. However in this case, I am populating the values in the column using the populateItem(org.apache.wicket.markup.repeater.Item cellItem, java.lang.String componentId, org.apache.wicket.model.IModel rowModel) method. The column values are generated using additional logic in this method and are not representative of any property value. Any ideas?? -- View this message in context: http://www.nabble.com/Sorting-a-column-populated-through-pupulateItem-method...-tp21337870p21337870.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Sending data to a wicket form through a POST from an external site
I need to get data from an external site via a POST. Is there a way that wicket will trigger a form submit on the posted data? Otherwise I have to handle the params myself. I looked through the forum archives, and previous posts on a similar topic went unreplied. Any answer is appreciated. - R
URL fragment has unmatched key/value pairs
hi all, i'm constantly seeing stuff like: WARN 2009-01-03 19:48:06,203 [http-8080-14] URL fragment has unmatched key/value pairs, responding with 404. Fragment: aide-et-services in my logs, and don't have a clue where that comes from. (i even had Fragment: admin, Fragment: bank-account , and things of the sort) so certainly someone is playing around with urls. i tried to reproduce this unsuccessfully - does somebody know what url generates this warning? thanks, francisco - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
From which Maven repository can I find the wicket-contrib-jasperreports JAR file(s)?
Is there a Maven2 repository where I can download the wicket-contrib-jasperreports JAR files? http://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-contrib-jasperreports -- View this message in context: http://www.nabble.com/From-which-Maven-repository-can-I-find-the-wicket-contrib-jasperreports-JAR-file%28s%29--tp21346332p21346332.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org