Re: [Wicket-user] Page Expiration when first clicking AJAX
I have an issue with links and page expiration about which I posted a jira entry here: https://issues.apache.org/jira/browse/WICKET-557 I haven't the least idea about whether this is related or not to your problem. Cheers, Carlos On 5/12/07, Andrew Berman <[EMAIL PROTECTED]> wrote: > There's two things here: > > 1. When I click the Ajax link and it doesn't work and the page redirects to > the home page, the links are exactly the same > 2. When I do a refresh on the browser, the Ajax links are different and > there is no jsessionid in the url in the browser. > > Is this the same problem you posted about? Is there any workaround right > now? > > > On 5/12/07, Johan Compagner < [EMAIL PROTECTED]> wrote: > > that really looks at the problem i already posted to the dev list, > > can you compare the pages before and after you refresh the page? look > > at the urls > > > > On 5/12/07, Andrew Berman <[EMAIL PROTECTED]> wrote: > > > Hey Guys, > > > > > > Thanks for your replies. > > > > > > James: I'll try what you are talking about and see if that fixes the > > > problem. I hope it does > > > > > > Eelco: No multiple servers. I am able to replicate the issue on my > local > > > machine as well. > > > > > > Johan: The url coming in is http://localhost/consumer which Wicket auto > > > redirects to /consumer/app/HomePage. However, even if > I use the full URL of > > > /consumer/app/HomePage, I still get the issue. > > > > > > You can actually see the issue in action if you go to > > > http://www.cellphonetradeins.com and click, for > example, the Cell Phones > > > link on the side. I set the PageExpired page to be the home page, so > the > > > page simply refreshes or doesn't work at all. However, when you reload > the > > > page and then click the link, it works as desired. So basically, all > AJAX > > > links and buttons fail when you first go to the site when you have no > > > cache. You can continue to replicate the issue if you keep clearing > your > > > cache and then go to the site again. > > > > > > Thanks again for your help, > > > > > > Andrew > > > > > > On 5/12/07, Johan Compagner <[EMAIL PROTECTED]> wrote: > > > > > > > > what is your url you are comming into your app? > > > > do you redirect then? What is the final url? > > > > > > > > johan > > > > > > > > > > > > On 5/12/07, Andrew Berman < [EMAIL PROTECTED]> wrote: > > > > > > > > > Igor, Eelco, anyone? This issue is pretty major as I'm losing all > the > > > > > session info when they first come into the app > > > > > > > > > > On 5/11/07, Andrew Berman < [EMAIL PROTECTED] > wrote: > > > > > > > > > > > > Could there be an issue with the PageMap? > > > > > > > > > > > > On 5/11/07, Andrew Berman < [EMAIL PROTECTED] > wrote: > > > > > > > > > > > > > > I am having a strange issue. If I access my site for the first > time > > > > > > > (I clear all cookies, sessions, and cache before going to the > site), > > > the > > > > > > > page comes up fine. However, if I click one of the AJAX links, > I > > > get a page > > > > > > > expired error. Any thoughts why this is happening? I see it > create > > > a new > > > > > > > session and the cookie, but it looks like the Ajax link is not > valid > > > for > > > > > > > some reason. I am using Wicket 1.2.6. Any thoughts? > > > > > > > > > > > > > > Thanks for any help, > > > > > > > > > > > > > > Andrew > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > - > > > > > This SF.net email is sponsored by DB2 Express > > > > > Download DB2 Express C - the FREE version of DB2 express and take > > > > > control of your XML. No limits. Just data. Click to get it now. > > > > > http://sourceforge.net/powerbar/db2/ > > > > > ___ > > > > > Wicket-user mailing list > > > > > Wicket-user@lists.sourceforge.net > > > > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > > > > > > > > > > > - > > > > This SF.net email is sponsored by DB2 Express > > > > Download DB2 Express C - the FREE version of DB2 express and take > > > > control of your XML. No limits. Just data. Click to get it now. > > > > http://sourceforge.net/powerbar/db2/ > > > > ___ > > > > Wicket-user mailing list > > > > Wicket-user@lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > > > > > > > > - > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > ___ > > Wicket-user mailing list > > Wicket-user@lists.sourcef
Re: [Wicket-user] Page Expiration when first clicking AJAX
There's two things here: 1. When I click the Ajax link and it doesn't work and the page redirects to the home page, the links are exactly the same 2. When I do a refresh on the browser, the Ajax links are different and there is no jsessionid in the url in the browser. Is this the same problem you posted about? Is there any workaround right now? On 5/12/07, Johan Compagner <[EMAIL PROTECTED]> wrote: that really looks at the problem i already posted to the dev list, can you compare the pages before and after you refresh the page? look at the urls On 5/12/07, Andrew Berman <[EMAIL PROTECTED]> wrote: > Hey Guys, > > Thanks for your replies. > > James: I'll try what you are talking about and see if that fixes the > problem. I hope it does > > Eelco: No multiple servers. I am able to replicate the issue on my local > machine as well. > > Johan: The url coming in is http://localhost/consumer which Wicket auto > redirects to /consumer/app/HomePage. However, even if I use the full URL of > /consumer/app/HomePage, I still get the issue. > > You can actually see the issue in action if you go to > http://www.cellphonetradeins.com and click, for example, the Cell Phones > link on the side. I set the PageExpired page to be the home page, so the > page simply refreshes or doesn't work at all. However, when you reload the > page and then click the link, it works as desired. So basically, all AJAX > links and buttons fail when you first go to the site when you have no > cache. You can continue to replicate the issue if you keep clearing your > cache and then go to the site again. > > Thanks again for your help, > > Andrew > > On 5/12/07, Johan Compagner <[EMAIL PROTECTED]> wrote: > > > > what is your url you are comming into your app? > > do you redirect then? What is the final url? > > > > johan > > > > > > On 5/12/07, Andrew Berman < [EMAIL PROTECTED]> wrote: > > > > > Igor, Eelco, anyone? This issue is pretty major as I'm losing all the > > > session info when they first come into the app > > > > > > On 5/11/07, Andrew Berman <[EMAIL PROTECTED] > wrote: > > > > > > > > Could there be an issue with the PageMap? > > > > > > > > On 5/11/07, Andrew Berman <[EMAIL PROTECTED] > wrote: > > > > > > > > > > I am having a strange issue. If I access my site for the first time > > > > > (I clear all cookies, sessions, and cache before going to the site), > the > > > > > page comes up fine. However, if I click one of the AJAX links, I > get a page > > > > > expired error. Any thoughts why this is happening? I see it create > a new > > > > > session and the cookie, but it looks like the Ajax link is not valid > for > > > > > some reason. I am using Wicket 1.2.6. Any thoughts? > > > > > > > > > > Thanks for any help, > > > > > > > > > > Andrew > > > > > > > > > > > > > > > > > > > > > > > - > > > This SF.net email is sponsored by DB2 Express > > > Download DB2 Express C - the FREE version of DB2 express and take > > > control of your XML. No limits. Just data. Click to get it now. > > > http://sourceforge.net/powerbar/db2/ > > > ___ > > > Wicket-user mailing list > > > Wicket-user@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > > - > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > ___ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wickettester and Validators
you have to build the message yourself then. page.getLocalizer().getString("RequiredValidator") or something like that -igor On 5/12/07, behlma <[EMAIL PROTECTED]> wrote: Anyone or is it the wrong approach? behlma wrote: > > Hi guys, > I'm just fiddling around with the FormTester. > > Say I have a RequiredValidator and StringLengthValidator on my textfields > in a form, with custom error messages specified in the page's .properties > file. > > How can I let wickettester retrieve those custom message, instead of > hardcoding them into: > > tester.assertErrorMessages(new String[] {"my custom error message for > LengthVal", "my custom error message for StringVal} > ? > -- View this message in context: http://www.nabble.com/Wickettester-and-Validators-tf3728789.html#a10448855 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Page Expiration when first clicking AJAX
that really looks at the problem i already posted to the dev list, can you compare the pages before and after you refresh the page? look at the urls On 5/12/07, Andrew Berman <[EMAIL PROTECTED]> wrote: > Hey Guys, > > Thanks for your replies. > > James: I'll try what you are talking about and see if that fixes the > problem. I hope it does > > Eelco: No multiple servers. I am able to replicate the issue on my local > machine as well. > > Johan: The url coming in is http://localhost/consumer which Wicket auto > redirects to /consumer/app/HomePage. However, even if I use the full URL of > /consumer/app/HomePage, I still get the issue. > > You can actually see the issue in action if you go to > http://www.cellphonetradeins.com and click, for example, the Cell Phones > link on the side. I set the PageExpired page to be the home page, so the > page simply refreshes or doesn't work at all. However, when you reload the > page and then click the link, it works as desired. So basically, all AJAX > links and buttons fail when you first go to the site when you have no > cache. You can continue to replicate the issue if you keep clearing your > cache and then go to the site again. > > Thanks again for your help, > > Andrew > > On 5/12/07, Johan Compagner <[EMAIL PROTECTED]> wrote: > > > > what is your url you are comming into your app? > > do you redirect then? What is the final url? > > > > johan > > > > > > On 5/12/07, Andrew Berman < [EMAIL PROTECTED]> wrote: > > > > > Igor, Eelco, anyone? This issue is pretty major as I'm losing all the > > > session info when they first come into the app > > > > > > On 5/11/07, Andrew Berman <[EMAIL PROTECTED] > wrote: > > > > > > > > Could there be an issue with the PageMap? > > > > > > > > On 5/11/07, Andrew Berman <[EMAIL PROTECTED] > wrote: > > > > > > > > > > I am having a strange issue. If I access my site for the first time > > > > > (I clear all cookies, sessions, and cache before going to the site), > the > > > > > page comes up fine. However, if I click one of the AJAX links, I > get a page > > > > > expired error. Any thoughts why this is happening? I see it create > a new > > > > > session and the cookie, but it looks like the Ajax link is not valid > for > > > > > some reason. I am using Wicket 1.2.6. Any thoughts? > > > > > > > > > > Thanks for any help, > > > > > > > > > > Andrew > > > > > > > > > > > > > > > > > > > > > > > - > > > This SF.net email is sponsored by DB2 Express > > > Download DB2 Express C - the FREE version of DB2 express and take > > > control of your XML. No limits. Just data. Click to get it now. > > > http://sourceforge.net/powerbar/db2/ > > > ___ > > > Wicket-user mailing list > > > Wicket-user@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > > - > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > ___ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wickettester and Validators
Anyone or is it the wrong approach? behlma wrote: > > Hi guys, > I'm just fiddling around with the FormTester. > > Say I have a RequiredValidator and StringLengthValidator on my textfields > in a form, with custom error messages specified in the page's .properties > file. > > How can I let wickettester retrieve those custom message, instead of > hardcoding them into: > > tester.assertErrorMessages(new String[] {"my custom error message for > LengthVal", "my custom error message for StringVal} > ? > -- View this message in context: http://www.nabble.com/Wickettester-and-Validators-tf3728789.html#a10448855 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Page Expiration when first clicking AJAX
Hey Guys, Thanks for your replies. James: I'll try what you are talking about and see if that fixes the problem. I hope it does Eelco: No multiple servers. I am able to replicate the issue on my local machine as well. Johan: The url coming in is http://localhost/consumer which Wicket auto redirects to /consumer/app/HomePage. However, even if I use the full URL of /consumer/app/HomePage, I still get the issue. You can actually see the issue in action if you go to http://www.cellphonetradeins.com and click, for example, the Cell Phones link on the side. I set the PageExpired page to be the home page, so the page simply refreshes or doesn't work at all. However, when you reload the page and then click the link, it works as desired. So basically, all AJAX links and buttons fail when you first go to the site when you have no cache. You can continue to replicate the issue if you keep clearing your cache and then go to the site again. Thanks again for your help, Andrew On 5/12/07, Johan Compagner <[EMAIL PROTECTED]> wrote: what is your url you are comming into your app? do you redirect then? What is the final url? johan On 5/12/07, Andrew Berman < [EMAIL PROTECTED]> wrote: > Igor, Eelco, anyone? This issue is pretty major as I'm losing all the > session info when they first come into the app > > On 5/11/07, Andrew Berman <[EMAIL PROTECTED] > wrote: > > > > Could there be an issue with the PageMap? > > > > On 5/11/07, Andrew Berman <[EMAIL PROTECTED] > wrote: > > > > > > I am having a strange issue. If I access my site for the first time > > > (I clear all cookies, sessions, and cache before going to the site), the > > > page comes up fine. However, if I click one of the AJAX links, I get a page > > > expired error. Any thoughts why this is happening? I see it create a new > > > session and the cookie, but it looks like the Ajax link is not valid for > > > some reason. I am using Wicket 1.2.6. Any thoughts? > > > > > > Thanks for any help, > > > > > > Andrew > > > > > > > > > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] HomePage url changes when user returns from a second wicket page
Wicket adds the following markup to my HomePage (http://localhost:8081/wicket/test) : ]]>*/ and the user's address bar shows http://localhost:8081/wicket/test, which is nice. Under what circumstances would the HomePage include something other than window.name="wicket:default"? For example, when the user returns to the (same?) HomePage from another page (eg Page2, also a wicket page in the same app) using setResponsePage(new HomePage(showAlert,alertMessage) in its form's onSubmit() - because I need to pass in some indication of what has just happened on Page2), this markup in the HomePage becomes ]]>*/ and I have a different url (http://localhost:8081/wicket/test?wicket:interface=:3::) in the address bar. Not so "nice". Can this second type of url be avoided ? In Page2.java, if I use setResponsePage(new HomePage()), I also get this second type of url but if I use setResponsePage(HomePage.class) the address bar shows the "nice" url (http://localhost:8081/wicket/test). Is it because the original instance of HomePage is used only if I setResponsePage(HomePage.class)? -- View this message in context: http://www.nabble.com/HomePage-url-changes-when-user-returns-from-a-second-wicket-page-tf3732701.html#a10448319 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] have problems with AjaxSelfUpdatingTimerBehavior and AjaxTabbedPanel
Good stuff! On 5/12/07, Matej Knopp <[EMAIL PROTECTED]> wrote: Should be fixed for 1.3. -Matej On 5/11/07, James McLaughlin <[EMAIL PROTECTED]> wrote: > done! > https://issues.apache.org/jira/browse/WICKET-556 > > with a brief discussion of other possibilities. > > best, > jim > > > On 5/11/07, Matej Knopp <[EMAIL PROTECTED]> wrote: > > Yeah, looks like a good idea :) > > > > On 5/11/07, Johan Compagner <[EMAIL PROTECTED]> wrote: > > > please make a jira issue with the fix you now have > > > > > > On 5/10/07, Murat Yücel < [EMAIL PROTECTED]> wrote: > > > > Hi James > > > > > > > > Thanks for the fix. It works like a charm :)... Is this something that > > > > wicket will solve > > > > in a future release? > > > > > > > > /Murat > > > > > > > > 2007/5/10, James McLaughlin <[EMAIL PROTECTED]>: > > > > > > > > > > erm, sorry that was: > > > > > > > > > > > http://www.nabble.com/Re%3A-AjaxTimer-clearTimeout-p9401965.html > > > > > > > > > > On 5/10/07, James McLaughlin < [EMAIL PROTECTED]> wrote: > > > > > > > > > > > > Hi Murat, > > > > > > I posted a hack to fix this several months back: > > > > > > > > > > > > > http://www.nabble.com/AjaxTimer-clearTimeout-tf3364438.html#a9360559 > > > > > > > > > > > > Essentially, I have the timer check if the markup for the > component it > > > > > > was bound to is still in the page, and return without firing if it > is > > > > not. > > > > > > Hope this helps. > > > > > > > > > > > > best, > > > > > > jim > > > > > > > > > > > > On 5/10/07, Murat Yücel <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > Hi All > > > > > > > > > > > > > > I had some problem with ajax when using wicket 1.2.6. I read the > > > > > > > thread with the following subject: > > > > > > > Problem with concurren ajax requests on page > > > > > > > > > > > > > > Matej suggested that a upgrade to wicket 1.3 would solve the > ajax > > > > > > > problem. So i upgraded the application > > > > > > > to wicket-1.3.0-incubating-SNAPSHOT. > > > > > > > > > > > > > > Now I have problems with AjaxSelfUpdatingTimerBehavior when > using it > > > > > > > together with AjaxTabbedPanel. > > > > > > > > > > > > > > Panel 1 includes a subpanel which has an > > > > > > > AjaxSelfUpdatingTimerBehavior. > > > > > > > Panel 2 has another subpanel and it doesnt include the subpanel > from > > > > > > > panel 1. > > > > > > > > > > > > > > When swithing "page" from panel 1 to panel 2 then after 5 > seconds > > > > > > > which is the duration of the first subpanel > > > > > > > then i get the following error: > > > > > > > > > > > > > > org.apache.wicket.WicketRuntimeException: > component > > > > > > > contentpanel:menu:panel:showthreads not found > on page > > > > > > > dk.team.ninan.web.wicket.BasePage[id = 1], > listener interface = > > > > > > > [RequestListenerInterface name=IBehaviorListener, method=public > > > > abstract > > > > > > > void > org.apache.wicket.behavior.IBehaviorListener.onRequest()] > > > > > > > at > > > > > > > > > > > > org.apache.wicket.request.AbstractRequestCycleProcessor.resolveListenerInterfaceTarget > > > > > > > (AbstractRequestCycleProcessor.java:394) > > > > > > > at > > > > > > > > > > > > org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage ( > > > > > > > AbstractRequestCycleProcessor.java:440) > > > > > > > at > > > > > > > > org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve( > > > > > > > WebRequestCycleProcessor.java:137) > > > > > > > > > > > > > > The error message is correct because the panel showthreads is no > > > > > > > longer a part of BasePage, but why doesnt the behaviour > disappear > > > > > > > when replacing panels? What am i doing wrong? :) > > > > > > > > > > > > > > /Murat > > > > > > > > > > > > > > > > > > > > > > > > > > - > > > > > > > This SF.net email is sponsored by DB2 Express > > > > > > > Download DB2 Express C - the FREE version of DB2 express and > take > > > > > > > control of your XML. No limits. Just data. Click to get it now. > > > > > > > http://sourceforge.net/powerbar/db2/ > > > > > > > ___ > > > > > > > Wicket-user mailing list > > > > > > > Wicket-user@lists.sourceforge.net > > > > > > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > - > > > > > This SF.net email is sponsored by DB2 Express > > > > > Download DB2 Express C - the FREE version of DB2 express and take > > > > > control of your XML. No limits. Just data. Click to get it now. > > > > > http://sourceforge.net/powerbar/db2/ > > > > > ___ > > > > > Wicket-user mailing list > > > > > Wicket-user@lists.sourceforge.net > > > > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > > > > > > > > > > > > >
Re: [Wicket-user] have problems with AjaxSelfUpdatingTimerBehavior and AjaxTabbedPanel
Should be fixed for 1.3. -Matej On 5/11/07, James McLaughlin <[EMAIL PROTECTED]> wrote: > done! > https://issues.apache.org/jira/browse/WICKET-556 > > with a brief discussion of other possibilities. > > best, > jim > > > On 5/11/07, Matej Knopp <[EMAIL PROTECTED]> wrote: > > Yeah, looks like a good idea :) > > > > On 5/11/07, Johan Compagner <[EMAIL PROTECTED]> wrote: > > > please make a jira issue with the fix you now have > > > > > > On 5/10/07, Murat Yücel < [EMAIL PROTECTED]> wrote: > > > > Hi James > > > > > > > > Thanks for the fix. It works like a charm :)... Is this something that > > > > wicket will solve > > > > in a future release? > > > > > > > > /Murat > > > > > > > > 2007/5/10, James McLaughlin <[EMAIL PROTECTED]>: > > > > > > > > > > erm, sorry that was: > > > > > > > > > > > http://www.nabble.com/Re%3A-AjaxTimer-clearTimeout-p9401965.html > > > > > > > > > > On 5/10/07, James McLaughlin < [EMAIL PROTECTED]> wrote: > > > > > > > > > > > > Hi Murat, > > > > > > I posted a hack to fix this several months back: > > > > > > > > > > > > > http://www.nabble.com/AjaxTimer-clearTimeout-tf3364438.html#a9360559 > > > > > > > > > > > > Essentially, I have the timer check if the markup for the > component it > > > > > > was bound to is still in the page, and return without firing if it > is > > > > not. > > > > > > Hope this helps. > > > > > > > > > > > > best, > > > > > > jim > > > > > > > > > > > > On 5/10/07, Murat Yücel <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > Hi All > > > > > > > > > > > > > > I had some problem with ajax when using wicket 1.2.6. I read the > > > > > > > thread with the following subject: > > > > > > > Problem with concurren ajax requests on page > > > > > > > > > > > > > > Matej suggested that a upgrade to wicket 1.3 would solve the > ajax > > > > > > > problem. So i upgraded the application > > > > > > > to wicket-1.3.0-incubating-SNAPSHOT. > > > > > > > > > > > > > > Now I have problems with AjaxSelfUpdatingTimerBehavior when > using it > > > > > > > together with AjaxTabbedPanel. > > > > > > > > > > > > > > Panel 1 includes a subpanel which has an > > > > > > > AjaxSelfUpdatingTimerBehavior. > > > > > > > Panel 2 has another subpanel and it doesnt include the subpanel > from > > > > > > > panel 1. > > > > > > > > > > > > > > When swithing "page" from panel 1 to panel 2 then after 5 > seconds > > > > > > > which is the duration of the first subpanel > > > > > > > then i get the following error: > > > > > > > > > > > > > > org.apache.wicket.WicketRuntimeException: > component > > > > > > > contentpanel:menu:panel:showthreads not found > on page > > > > > > > dk.team.ninan.web.wicket.BasePage[id = 1], > listener interface = > > > > > > > [RequestListenerInterface name=IBehaviorListener, method=public > > > > abstract > > > > > > > void > org.apache.wicket.behavior.IBehaviorListener.onRequest()] > > > > > > > at > > > > > > > > > > > > org.apache.wicket.request.AbstractRequestCycleProcessor.resolveListenerInterfaceTarget > > > > > > > (AbstractRequestCycleProcessor.java:394) > > > > > > > at > > > > > > > > > > > > org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage( > > > > > > > AbstractRequestCycleProcessor.java:440) > > > > > > > at > > > > > > > > org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve( > > > > > > > WebRequestCycleProcessor.java:137) > > > > > > > > > > > > > > The error message is correct because the panel showthreads is no > > > > > > > longer a part of BasePage, but why doesnt the behaviour > disappear > > > > > > > when replacing panels? What am i doing wrong? :) > > > > > > > > > > > > > > /Murat > > > > > > > > > > > > > > > > > > > > > > > > > > - > > > > > > > This SF.net email is sponsored by DB2 Express > > > > > > > Download DB2 Express C - the FREE version of DB2 express and > take > > > > > > > control of your XML. No limits. Just data. Click to get it now. > > > > > > > http://sourceforge.net/powerbar/db2/ > > > > > > > ___ > > > > > > > Wicket-user mailing list > > > > > > > Wicket-user@lists.sourceforge.net > > > > > > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > - > > > > > This SF.net email is sponsored by DB2 Express > > > > > Download DB2 Express C - the FREE version of DB2 express and take > > > > > control of your XML. No limits. Just data. Click to get it now. > > > > > http://sourceforge.net/powerbar/db2/ > > > > > ___ > > > > > Wicket-user mailing list > > > > > Wicket-user@lists.sourceforge.net > > > > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > > > > > > > > > > > > > ---
Re: [Wicket-user] I have problem with custom component
One possible solution (for 1.2) is to call updateModel on each checkbox in your submit handler. For wicket 1.3, the solution would be much nicer. Just put a form in your component. Wicket 1.3 supports nested forms and if any button in the nested form (the one you place in your component) is submited, only the inner form is processed. So no required fields outside the inner form will be validated. -Matej On 5/12/07, blackboy zabaha <[EMAIL PROTECTED]> wrote: > > Hi, > Â Â Â I'm trying to make a custom component. It shows list of items, user > can check the checkboxs then click delete button to delete all selected > items, or can click add button to go to an add item page. > > Â Â Â At first I test it alone in a form, it work ok, but later when I try > it in real work that the form might contains some required fields or some > validations, I got a problem that when some required fields not set or some > inputs not valid then I click add/delete, error message will shown up, of > course it is not good idea to fill and validate all other fields first > before using this component. > > Â Â Â So I have to do setDefaultFormProcessing(false) on add button and > delete button. but now I face the problem that my selected checkboxs not > update their models , so I can't remove the selected items, even I try > form.updateFormComponentModels(); but they still not updated. > > Â Â Â I can't find out what I do wrong and how to solve it, so I attach > source code of my component and simple test page here and need somebody > kindly help me solve this, Thanks you. > > Â Â Â P.S. > Â Â Â - I'm using wicket 1.2.4, tomcat 5.5, java 5 > Â Â Â - something has been removed (javascript, css, img) to make the code > more simple and concerned with the problem only > > Blackzabaha > > > > Give spam the boot. Take control with tough spam protection > in the all-new Yahoo! Mail Beta. > > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] I have problem with custom component
Hi, ÃÂ ÃÂ ÃÂ I'm trying to make a custom component. It shows list of items, usercan check the checkboxs then click delete buttonto delete all selected items, or can click add button to go to an add itempage. ÃÂ ÃÂ ÃÂ At first I test it alone in a form, it work ok, but later when Itry it in real work that the form might contains some required fieldsor some validations, I got a problem that when some required fields notset or some inputs not valid then I click add/delete, error messagewill shown up, of course it is not good idea to fill and validate allother fields first before using this component. ÃÂ ÃÂ ÃÂ So I have to do setDefaultFormProcessing(false) on add button anddelete button. but now I face the problem that my selected checkboxsnot update their models , so I can't remove the selected items, even Itry form.updateFormComponentModels(); but they still not updated. ÃÂ ÃÂ ÃÂ I can't find out what I do wrong and how to solve it, so I attachsource code of my component and simple test page here and need somebodykindly help me solve this, Thanks you. ÃÂ ÃÂ ÃÂ P.S. ÃÂ ÃÂ ÃÂ - I'm using wicket 1.2.4, tomcat 5.5, java 5 ÃÂ ÃÂ ÃÂ - something has been removed (javascript, css, img) to make thecode more simple and concerned with the problem only Blackzabaha - Give spam the boot. Take control with tough spam protection in the all-new Yahoo! Mail Beta. TestWicketComponent.rar Description: 1540935311-TestWicketComponent.rar - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to display applet in wicket?
One problem, which could arise, is the URL from which is the graph.class loaded. When you've got your applet page on http://server.com/page/applet.html, browser JVM willl try to load graph.class from http://server.com/page/graph.class URL. Also make sure that you have a correct case (Java classes should start with an uppercase letter, therefore I think it is better to have /app/*. Therefore our applet page has URL http://[servername]:8080/[appname]/app?wicket:bookmarkablePage=:uinf.wid.tools.UserProfileApplet, which means that the JAR files are loaded from the http://[servername]:8080/[appname] directory, i. e. from JAR files which are located in the directory just above the WEB-INF. If your webpage is mounted (for example to http://[servername]:8080/[appname]/app/userprofile), you could come across JAR loading problems, because JVM will try to load JAR/CLASS file from that http://[servername]:8080/[appname]/app/userprofile, which does not correspond to any server directory, therefore it will not find your JARs/CLASSes. edward durai wrote: > > Hi to all, > > I have one graph.java file. In HTML I can display like > > > > > > value="1/4/2007,2/4/2007,3/4/2007,4/4/2007,5/4/2007,6/4/2007,7/4/2007,8/4/2007,9/4/2007"> > > > > > > > In Wicket, how can I display this applet file? Please explain me. > > Thank you for answering > > > -- View this message in context: http://www.nabble.com/How-to-display-applet-in-wicket--tf3725676.html#a10445420 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to display applet in wicket?
actually my html file looks like here I have one Graph.class file inside mywicket.examples folder. Could you tell me what is archive="applets.jar,log4j-1.2.12.jar". Is it essential. Because Graph.java is not inside in jar file. So what jar file here i have to include. My Aim is to display the graph, x axis contains Date and y axis contains average speed. BUt i am getting class not found exception. Graph igor.vaynberg wrote: > > what is your html look like? what does the html that wicket outputs look > like? there might be a path problem where the browser cant find the jar. > > -igor > > > On 5/12/07, edward durai <[EMAIL PROTECTED]> wrote: >> >> >> Hi! >> >> I have put both graph.class and html file. In non-wicket page it is >> working. >> but in wicket it is not working. >> >> Please advise. >> Thanks >> >> >> >> >> howzat wrote: >> > >> > Does the markup you give below work in a non-wicket page? >> > I would make a the simplest possible html page including your applet >> tag >> > below to see if it works. When it works, compare it to the html >> generated >> > by wicket. If they are the same, you should observe exactly the same >> > result in your browser in both cases. >> > >> > >> > >> > edward durai wrote: >> >> >> >> Hi, >> >> >> >> I have tried. but i am not able to display that applet. Please give me >> >> one sample. Thanks >> >> >> >> >> >> >> >> Robert Novotny wrote: >> >>> >> >>> Hello, >> >>> there is nothing special in displaying applets in wicket pages. Just >> put >> >>> the proper applet tags into the HTML page template. You don't even >> need >> >>> to have corresponding components in the Java class, since applet is >> not >> >>> a wicket component. >> >>> >> >>> Robert Novotny >> >>> >> >>> >> >>> >> >>> edward durai wrote: >> >> Hi to all, >> >> I have one graph.java file. In HTML I can display like >> >> >> >> >> >> > >> value="1/4/2007,2/4/2007,3/4/2007,4/4/2007,5/4/2007,6/4/2007,7/4/2007,8/4/2007,9/4/2007"> >> >> >> >> >> >> >> In Wicket, how can I display this applet file? Please explain me. >> >> Thank you for answering >> >> >> >> >>> >> >>> >> >> >> >> >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/How-to-display-applet-in-wicket--tf3725676.html#a10443641 >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> ___ >> Wicket-user mailing list >> Wicket-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > -- View this message in context: http://www.nabble.com/How-to-display-applet-in-wicket--tf3725676.html#a10444340 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to display applet in wicket?
actually my html file looks like here I have one Graph.class file inside mywicket.examples folder. Could you tell me what is archive="applets.jar,log4j-1.2.12.jar". Is it essential. Because Graph.java is not inside in jar file. So what jar file here i have to include. My Aim is to display the graph, x axis contains Date and y axis contains average speed. BUt i am getting class not found exception. Graph Robert Novotny wrote: > > Hello, > in my experience, the most frequent problems with applets are connected > with classpath problems. Could you have a look into the Java Console > output and search for the potential ClassNotFoundError stack traces? (If I > remember correctly, you could right click on the applet that failed > loading and use 'Show Java Console' from the popup menu). > > Besides that, this is an applet page from our project: > HTML template: > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> > http://www.w3.org/1999/xhtml";> > > > Applet Page > > > > > User profile >code="uinf.wid.tools.UserProfileApplet.class" > archive="applets.jar,log4j-1.2.12.jar" > name="UserProfileApplet" > width=800 > height=600> > > > > > > Corresponding Java class: > public class UserProfileAppletPage extends WebPage { > public static final Logger logger = > Logger.getLogger(UserProfileAppletPage.class); > > public UserProfileAppletPage() { > logger.debug("UserProfileAppletPage loaded."); > } > } > > > > edward durai wrote: >> >> Hi! >> >> I have put both graph.class and html file. In non-wicket page it is >> working. >> but in wicket it is not working. >> >> Please advise. >> Thanks >> >> >> >> >> howzat wrote: >>> >>> Does the markup you give below work in a non-wicket page? >>> I would make a the simplest possible html page including your applet tag >>> below to see if it works. When it works, compare it to the html >>> generated by wicket. If they are the same, you should observe exactly >>> the same result in your browser in both cases. >>> >>> >>> >>> edward durai wrote: Hi, I have tried. but i am not able to display that applet. Please give me one sample. Thanks Robert Novotny wrote: > > Hello, > there is nothing special in displaying applets in wicket pages. Just > put the proper applet tags into the HTML page template. You don't even > need to have corresponding components in the Java class, since applet > is not a wicket component. > > Robert Novotny > > > > edward durai wrote: >> >> Hi to all, >> >> I have one graph.java file. In HTML I can display like >> >> >> >> >> >> > value="1/4/2007,2/4/2007,3/4/2007,4/4/2007,5/4/2007,6/4/2007,7/4/2007,8/4/2007,9/4/2007"> >> >> >> >> >> >> >> In Wicket, how can I display this applet file? Please explain me. >> >> Thank you for answering >> >> >> > > >>> >>> >> >> > > -- View this message in context: http://www.nabble.com/How-to-display-applet-in-wicket--tf3725676.html#a10444325 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] "Exception loading sessions from persistent storage"
that doesn't matter to much, i think you just changed classes a bit to much and therefore tomcat could load the session store from disk that tomcat does save when you close down tomcat johan On 5/12/07, Lowell Kirsh <[EMAIL PROTECTED]> wrote: I am getting an exception occasionally when I restart my instance of tomcat from within eclipse: "Exception loading sessions from persistent storage". This only happens sometimes and I can't figure out why. But rather than get to the root, since I'm not running in a clustered environment, I imagine I could solve this simply by turning off session saving to disk, right? How do I do that? Thanks, Lowell - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to display applet in wicket?
what is your html look like? what does the html that wicket outputs look like? there might be a path problem where the browser cant find the jar. -igor On 5/12/07, edward durai <[EMAIL PROTECTED]> wrote: Hi! I have put both graph.class and html file. In non-wicket page it is working. but in wicket it is not working. Please advise. Thanks howzat wrote: > > Does the markup you give below work in a non-wicket page? > I would make a the simplest possible html page including your applet tag > below to see if it works. When it works, compare it to the html generated > by wicket. If they are the same, you should observe exactly the same > result in your browser in both cases. > > > > edward durai wrote: >> >> Hi, >> >> I have tried. but i am not able to display that applet. Please give me >> one sample. Thanks >> >> >> >> Robert Novotny wrote: >>> >>> Hello, >>> there is nothing special in displaying applets in wicket pages. Just put >>> the proper applet tags into the HTML page template. You don't even need >>> to have corresponding components in the Java class, since applet is not >>> a wicket component. >>> >>> Robert Novotny >>> >>> >>> >>> edward durai wrote: Hi to all, I have one graph.java file. In HTML I can display like >>> value="1/4/2007,2/4/2007,3/4/2007,4/4/2007,5/4/2007,6/4/2007,7/4/2007,8/4/2007,9/4/2007"> In Wicket, how can I display this applet file? Please explain me. Thank you for answering >>> >>> >> >> > > -- View this message in context: http://www.nabble.com/How-to-display-applet-in-wicket--tf3725676.html#a10443641 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Page Expiration when first clicking AJAX
what is your url you are comming into your app? do you redirect then? What is the final url? johan On 5/12/07, Andrew Berman <[EMAIL PROTECTED]> wrote: Igor, Eelco, anyone? This issue is pretty major as I'm losing all the session info when they first come into the app On 5/11/07, Andrew Berman <[EMAIL PROTECTED]> wrote: > > Could there be an issue with the PageMap? > > On 5/11/07, Andrew Berman <[EMAIL PROTECTED] > wrote: > > > > I am having a strange issue. If I access my site for the first time > > (I clear all cookies, sessions, and cache before going to the site), the > > page comes up fine. However, if I click one of the AJAX links, I get a page > > expired error. Any thoughts why this is happening? I see it create a new > > session and the cookie, but it looks like the Ajax link is not valid for > > some reason. I am using Wicket 1.2.6. Any thoughts? > > > > Thanks for any help, > > > > Andrew > > > > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to display applet in wicket?
Hello, in my experience, the most frequent problems with applets are connected with classpath problems. Could you have a look into the Java Console output and search for the potential ClassNotFoundError stack traces? (If I remember correctly, you could right click on the applet that failed loading and use 'Show Java Console' from the popup menu). Besides that, this is an applet page from our project: HTML template: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.org/1999/xhtml";> Applet Page User profile Corresponding Java class: public class UserProfileAppletPage extends WebPage { public static final Logger logger = Logger.getLogger(UserProfileAppletPage.class); public UserProfileAppletPage() { logger.debug("UserProfileAppletPage loaded."); } } edward durai wrote: > > Hi! > > I have put both graph.class and html file. In non-wicket page it is > working. > but in wicket it is not working. > > Please advise. > Thanks > > > > > howzat wrote: >> >> Does the markup you give below work in a non-wicket page? >> I would make a the simplest possible html page including your applet tag >> below to see if it works. When it works, compare it to the html generated >> by wicket. If they are the same, you should observe exactly the same >> result in your browser in both cases. >> >> >> >> edward durai wrote: >>> >>> Hi, >>> >>> I have tried. but i am not able to display that applet. Please give me >>> one sample. Thanks >>> >>> >>> >>> Robert Novotny wrote: Hello, there is nothing special in displaying applets in wicket pages. Just put the proper applet tags into the HTML page template. You don't even need to have corresponding components in the Java class, since applet is not a wicket component. Robert Novotny edward durai wrote: > > Hi to all, > > I have one graph.java file. In HTML I can display like > > > > > > value="1/4/2007,2/4/2007,3/4/2007,4/4/2007,5/4/2007,6/4/2007,7/4/2007,8/4/2007,9/4/2007"> > > > > > > > In Wicket, how can I display this applet file? Please explain me. > > Thank you for answering > > > >>> >>> >> >> > > -- View this message in context: http://www.nabble.com/How-to-display-applet-in-wicket--tf3725676.html#a10443943 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Page Expiration when first clicking AJAX
Are you working on multiple servers? On 5/12/07, Andrew Berman <[EMAIL PROTECTED]> wrote: > Igor, Eelco, anyone? This issue is pretty major as I'm losing all the > session info when they first come into the app > > > > On 5/11/07, Andrew Berman <[EMAIL PROTECTED]> wrote: > > Could there be an issue with the PageMap? > > > > > > > > On 5/11/07, Andrew Berman <[EMAIL PROTECTED] > wrote: > > > I am having a strange issue. If I access my site for the first time (I > clear all cookies, sessions, and cache before going to the site), the page > comes up fine. However, if I click one of the AJAX links, I get a page > expired error. Any thoughts why this is happening? I see it create a new > session and the cookie, but it looks like the Ajax link is not valid for > some reason. I am using Wicket 1.2.6. Any thoughts? > > > > > > Thanks for any help, > > > > > > Andrew > > > > > > > > > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] popup on submit (but after server side work) & go to home page
Popups without javascript can only be done using alerts, so just add a header contribution displaying the alert. Eelco On 5/12/07, howzat <[EMAIL PROTECTED]> wrote: > > Wicket 1.2.6: > When the user clicks the submit button on a form, I would like to first > perform some logic on the server side (eg persist some stuff the user has > entered), and if this server side logic completes successfully I would like > to display a "success confirmed, hit ok to continue" modal popup. When the > user closes this modal pop-up I would like to return to the application's > home-page. > I am trying to do this by overriding the form's onSubmit method; > public void onSubmit() { > boolean success = doSomeServerSideStuff(dataInputByUserIntoTheForm); > if (success){ > // (a) show a "success confirmed, hit ok to continue" modal popup; > // (b) go to home page > } else { > // ... > } > } > > The code I find in the wicket examples and google use PopupSettings and > Popup (the latter seems no longer to exist). > > 1 - Does anybody have a 1.2.6 snippet to demonstrate this how to achieve (a) > and (b)? > 2 - To get back to the home-page, I am using setResponsePage(new > MyAppsHomePage()). Is that the right way to go back to the home-page? Does > that mean I need to create a new instance of the home-page each time I want > to go back there or is there a cached instance that I can use (assuming that > the user has arrived at the current page via the home page)? > -- > View this message in context: > http://www.nabble.com/popup-on-submit-%28but-after-server-side-work%29---go-to-home-page-tf3730823.html#a10443093 > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to display applet in wicket?
Hi! I have put both graph.class and html file. In non-wicket page it is working. but in wicket it is not working. Please advise. Thanks howzat wrote: > > Does the markup you give below work in a non-wicket page? > I would make a the simplest possible html page including your applet tag > below to see if it works. When it works, compare it to the html generated > by wicket. If they are the same, you should observe exactly the same > result in your browser in both cases. > > > > edward durai wrote: >> >> Hi, >> >> I have tried. but i am not able to display that applet. Please give me >> one sample. Thanks >> >> >> >> Robert Novotny wrote: >>> >>> Hello, >>> there is nothing special in displaying applets in wicket pages. Just put >>> the proper applet tags into the HTML page template. You don't even need >>> to have corresponding components in the Java class, since applet is not >>> a wicket component. >>> >>> Robert Novotny >>> >>> >>> >>> edward durai wrote: Hi to all, I have one graph.java file. In HTML I can display like >>> value="1/4/2007,2/4/2007,3/4/2007,4/4/2007,5/4/2007,6/4/2007,7/4/2007,8/4/2007,9/4/2007"> In Wicket, how can I display this applet file? Please explain me. Thank you for answering >>> >>> >> >> > > -- View this message in context: http://www.nabble.com/How-to-display-applet-in-wicket--tf3725676.html#a10443641 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] popup on submit (but after server side work) & go to home page
Thanks Igor. We're not ready for Ajax yet. What if I don't mind having to reload the original page (that contains the form) and then show the popup straight-away? ie once the page is submitted, reload the page and show the modal popup as soon as the page is loaded? (of course, the popup is not wanted when the page is navigated to from elsewhere, only when the form is submitted). igor.vaynberg wrote: > > what you would have to do is submit the form via ajax, then in onsubmit > add > some javascript to the ajax request target that shows the popup. > > -igor > > On 5/11/07, howzat <[EMAIL PROTECTED]> wrote: >> >> >> Wicket 1.2.6: >> When the user clicks the submit button on a form, I would like to first >> perform some logic on the server side (eg persist some stuff the user >> has >> entered), and if this server side logic completes successfully I would >> like >> to display a "success confirmed, hit ok to continue" modal popup. When >> the >> user closes this modal pop-up I would like to return to the application's >> home-page. >> I am trying to do this by overriding the form's onSubmit method; >> public void onSubmit() { >> boolean success = doSomeServerSideStuff(dataInputByUserIntoTheForm); >> if (success){ >> // (a) show a "success confirmed, hit ok to continue" modal >> popup; >> // (b) go to home page >> } else { >> // ... >> } >> } >> >> The code I find in the wicket examples and google use PopupSettings and >> Popup (the latter seems no longer to exist). >> >> 1 - Does anybody have a 1.2.6 snippet to demonstrate this how to achieve >> (a) >> and (b)? >> 2 - To get back to the home-page, I am using setResponsePage(new >> MyAppsHomePage()). Is that the right way to go back to the >> home-page? Does >> that mean I need to create a new instance of the home-page each time I >> want >> to go back there or is there a cached instance that I can use (assuming >> that >> the user has arrived at the current page via the home page)? >> -- >> View this message in context: >> http://www.nabble.com/popup-on-submit-%28but-after-server-side-work%29---go-to-home-page-tf3730823.html#a10443093 >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> ___ >> Wicket-user mailing list >> Wicket-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > -- View this message in context: http://www.nabble.com/popup-on-submit-%28but-after-server-side-work%29---go-to-home-page-tf3730823.html#a10443461 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user