Re: 2 pagemap values in parameters
I've narrowed it down and it has something to do with with AjaxButton, or AjaxSubmitLink, I swapped it out for an AjaxLink and the error goes away (but I don't get all the behaviors I need). It also seems that autosuggest is not causing this problem, as I remove it from the page and the error persists. On Dec 12, 2009, at 12:10 AM, Douglas Ferguson wrote: > I'm still trying to sort out my class cast error, does know what might cause > a value of "resources"? > > wicket:pageMapName = "[people, resources]" > > I'm seeing this when I set this: > getPageSettings().setAutomaticMultiWindowSupport(true); > - > 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: Canoo WebTest
Per-Olof Norén wrote: > > I´m currently working on a project where we run JUnit, Wicket-Tester and > canoo web tests on a wicket-spring application. > The application is to a large degree ajax-based and as far we can tell > canoo is silently ignoring to run wicket ajax-javascript for eg onClick > events. > Take a look at http://wicketpagetest.sourceforge.net which allows you to test AJAX. - -- Kent Tong Better way to unit test Wicket pages (http://wicketpagetest.sourceforge.net) -- View this message in context: http://old.nabble.com/Canoo-WebTest-tp26724748p26755311.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
2 pagemap values in parameters
I'm still trying to sort out my class cast error, does know what might cause a value of "resources"? wicket:pageMapName = "[people, resources]" I'm seeing this when I set this: getPageSettings().setAutomaticMultiWindowSupport(true); - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: table columns ajax update
it's in wicketstuff. On Tue, Dec 8, 2009 at 3:38 PM, actarus.xxx wrote: > > Hi guys, where can I find this fantastic TableColumns? > > Thanx > > > > Pedro H. O. dos Santos wrote: > > > > I just commit the new version: > > > > - Refactoring the OrderingImage class > > - Using TableColumns and default renders per class to resolve the cell > > component creation > > - Remove the static cell model version > > - Css separation for selectableListView, since this class can to be used > > for > > direferent purposes than Table > > - Development of columns components that use ajax timing behavior > > > > On the table-example you can notes the line: > > > > table.getColumnModel().addColumn(new SelfUpdateColumn(1, > > Duration.seconds(5))); > > > > Hope it is what you looking for, > > best regards > > > > > > On Mon, Oct 5, 2009 at 3:19 AM, vineet semwal > > wrote: > > > >> Pedro, > >> eagerly waiting for next version ;) > >> > >> thank you , > >> > >> -- > >> regards, > >> Vineet Semwal > >> > >> On Mon, Oct 5, 2009 at 4:25 AM, Pedro Santos > wrote: > >> > >> > Hi Semwal, > >> > it has capability to update some columns. I update HomePage on > >> > table-example > >> > to show how it can be done now. But it makes no sense, since the model > >> on > >> > non editable cells table are static, so the values on table model will > >> not > >> > be queried every ajax update. > >> > In next version, all table cells will have dynamic models. > >> > > >> > > >> > On Sun, Oct 4, 2009 at 3:04 AM, vineet semwal < > >> vineetsemwal1...@gmail.com > >> > >wrote: > >> > > >> > > Pedro, > >> > > does it have or will it have capability to update some columns in a > >> > table > >> > > with ajax timer ? > >> > > > >> > > table still is good but good to hear that you are doing major > >> > improvement > >> > > in design ;) > >> > > > >> > > thank you ! > >> > > -- > >> > > regards, > >> > > Vineet Semwal > >> > > > >> > > > >> > > On Sun, Oct 4, 2009 at 3:57 AM, Pedro Santos > >> > wrote: > >> > > > >> > > > Hi Semwal, I'm currently working on Table class design to turn > >> simple > >> > > this > >> > > > kind of extension. > >> > > > > >> > > > On Sat, Oct 3, 2009 at 10:38 AM, vineet semwal > >> > > > wrote: > >> > > > > >> > > > > can i update some columns in wicket-stuff table with ajax timer > ? > >> > > > > i have seen wicket-stuff table example but can't understand how > >> to > >> do > >> > > it > >> > > > .. > >> > > > > > >> > > > > -- > >> > > > > regards, > >> > > > > Vineet Semwal > >> > > > > > >> > > > > >> > > > > >> > > > > >> > > > -- > >> > > > Pedro Henrique Oliveira dos Santos > >> > > > > >> > > > >> > > >> > > >> > > >> > -- > >> > Pedro Henrique Oliveira dos Santos > >> > > >> > > > > > > > > -- > > Pedro Henrique Oliveira dos Santos > > > > > > -- > View this message in context: > http://old.nabble.com/table-columns-ajax-update-tp25728860p26691434.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 > > -- regards, Vineet Semwal
Re: not addding componet in case of error
add empty webmarkupcontainers as your components,if no error,replace the containers with your components else you don't need to replace. On Sat, Dec 12, 2009 at 8:02 AM, Swarnim Ranjitkar wrote: > > I have a case where I check some error condition at the beginning of the > code. If there is error I just want to display error message so > basically it is > if (error == true){ > display message > } else { > //render regular page > add(component1) > add(compnent2) > } > > if there is error I don't have any data to generate my component. Is there > a clean way to do this. I'm getting > Unable to find component with id 'chart1image' exception. Appreciate your > feedback > thank you > > > -- regards, Vineet Semwal
not addding componet in case of error
I have a case where I check some error condition at the beginning of the code. If there is error I just want to display error message so basically it is if (error == true){ display message } else { //render regular page add(component1) add(compnent2) } if there is error I don't have any data to generate my component. Is there a clean way to do this. I'm getting Unable to find component with id 'chart1image' exception. Appreciate your feedback thank you
Re: login with a parameter, no form
you can do it in any method, you have to do it in the one that checks if the user is logged in. -igor On Fri, Dec 11, 2009 at 3:05 PM, fachhoch wrote: > > I am sorry to ask you again, I did not understand , I am asking which method > should I override in auth strategy, which method in auth strategy will I > be able to do RequestCycle.get() , get parameter and log in user ? > > igor.vaynberg wrote: >> >> in your auth strategy simply call RequestCycle.get() >> >> -igor >> >> On Fri, Dec 11, 2009 at 2:53 PM, fachhoch wrote: >>> >>> Please tell me where is there in the below text ? >>> >>> so check >>> there for the parameter being present >>> >>> I saw the class SimplePageAuthorizationStrategy but could not figure >>> out >>> where I can check for parameter ? Please tell me more . >>> >>> >>> >>> igor.vaynberg wrote: the auth strategy runs before your class is instantiated, so check there for the parameter being present and log the user in. -igor On Fri, Dec 11, 2009 at 1:58 PM, tubin gen wrote: > My application does not authenticate user ,some external application > authenticates and redirects to my application passing a parameter to > identify the user, using this parameter I have to create a session and > userdetails. > > I am using SimplePageAuthrizationStrategy > > > getSecuritySettings().setAuthorizationStrategy(new > SimplePageAuthorizationStrategy(BasePage.class,getSignInPageClass()){ > �...@override > protected boolean isAuthorized() { > return ((AuditWebSession)Session.get()).isSignedIn(); > //return true; > } > }); > > > here my SignInPage > > public class SSIIntegrationLogin extends WebPage { > > private String sessionId; > > public SSIIntegrationLogin(PageParameters pageParameters) { > > sessionId=getRequestCycle().getRequest().getParameter(Parameters.PARAM_SSI_SESSION_ID); > if (signIn(sessionId)){ > onSignInSucceeded(); > }else{ > onSignInFailed(); > } > } > > protected void onSignInFailed() > { > setRedirect(true); > setResponsePage(SingInFailedPage.class); > } > > > public boolean signIn(String sessionId) > { > return AuthenticatedWebSession.get().signIn(sessionId,""); > } > > protected void onSignInSucceeded() > { > // If login has been called because the user was not yet > // logged in, than continue to the original destination, > // otherwise to the Home page > if (!continueToOriginalDestination()) > { > setRedirect(true); > > setResponsePage(getApplication().getSessionSettings().getPageFactory().newPage( > getApplication().getHomePage(), > (PageParameters)null)); > } > } > > } > > the problem is getting the parameter PARAM_SSI_SESSION_ID the > external > application will redirect to a link like > http://hostname/myapp?PARAM_SSI_SESSION_ID=tert > > > any request to my application will be first cheked by authorization and > becasue the user is not signed in he will be redirected to SingInpage > in > my > case SSIIntegrationLogin , here I need the parameter > PARAM_SSI_SESSION_Id > now I was expecting the above code to work but I never get the > parameter > PARAM_SSI_SESSION_Id , please tell me how can I get this parameter ? > or > is > there any beter way to handle this ? > - 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://old.nabble.com/login-with-a-parameter%2C-no-form-tp26752039p26752667.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://old.nabble.com/login-with-a-parameter%2C-no-form-tp26752039p26752817.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional comman
Model object properties go null after RestartResponseAtInterceptPageException.
I have a page with about 10 text fields. The model for the page is a ValueMap. All of the values in the ValueMap get set to null when a user gets redirected back to the original page after a RestartResponseAtInterceptPageException. All of the keys in the ValueMap are still there. What do I need to do to fix this? Warren - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: class cast exception when using setAutomaticMultiWindowSupport(true)
I am using the trunk to determine if the bug is still there. It exists on 1.4.1 + I would just like to make a quick start so this could get fixed. However, I'm not sure how to mimic the new window thing with wicket tester. D/ On Dec 11, 2009, at 4:03 PM, Matej Knopp wrote: > Why are you using trunk? Trunk is currently in highly unstable > experimental state. > > -Matej > > On Fri, Dec 11, 2009 at 11:02 PM, Douglas Ferguson > wrote: >> Anybody have any advice on how to do this quick start? >> >> Here's how I create the issue. >> >> 1) Open a new window (so that the AutomaticMultiWindowSupport adds the >> params) >> 2) Open a page with hidden modal >> 3) Click on link to show the hidden modal >> 4) Click on my ajax link in the modal == Blow UP >> >> I'm not sure how to recreate step 1 using wicket tester. >> >> D/ >> >> >> On Dec 11, 2009, at 1:40 AM, Jonas wrote: >> >>> I think there was a message on this list reporting the same >>> String/String ClassCastException >>> a few days ago, but I don't remember if it was related to autocomplete. >>> >>> On Fri, Dec 11, 2009 at 4:05 AM, Douglas Ferguson >>> wrote: The problem exists on the trunk. Has anybody else seen this? If nobody has seen this I will try to make a quickstart. D/ On Dec 10, 2009, at 4:11 PM, nino martinez wael wrote: > have you tried with the latest from trunk? That way you can see quickly if > it's fixed there... > > 2009/12/10 Douglas Ferguson > >> I traced through this and there appears to be 2 items in the pagemap and >> I >> think it is related to >> getPageSettings().setAutomaticMultiWindowSupport(true); >> >> wicket:pageMapName = "[people, resources]" >> org.apache.wicket.markup.html.WicketEventReference = "wicket-event.js" >> >> >> >> On Dec 10, 2009, at 12:36 PM, Douglas Ferguson wrote: >> >>> I'm getting this error from autocomplete after upgrading.. >>> ... >>> java.lang.ClassCastException: >>> [Ljava.lang.String; cannot be cast to java.lang.String >>> >> org.apache.wicket.request.target.coding.BookmarkablePageRequestTargetUrlCodingStrategy.decode(BookmarkablePageRequestTargetUrlCodingStrategy.java:91) >>> >>> >> org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.targetForRequest(WebRequestCodingStrategy.java:507) >>> >>> >> org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:191) >>> >>>org.apache.wicket.RequestCycle.step(RequestCycle.java:1310) >>> >>>org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428) >>> >>>org.apache.wicket.RequestCycle.request(RequestCycle.java:545) >>> >>> >> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:468) >>> >>> >> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:301) >>> >>> >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) >>> >>> >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) >>> >>> >> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) >>> >>> >> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172) >>> >>> >> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) >>> >>> >> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) >>> >>> >> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) >>> >>> >> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) >>> >>>org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200) >>> >>>org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283) >>> >>>org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773) >>> >>> >> org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703) >>> >>> >> org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895) >>> >>> >> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) >>> >>>java.lang.Thread.run(Thread.java:636) >>> >>> >>> - >>> 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: login with a parameter, no form
I am sorry to ask you again, I did not understand , I am asking which method should I override in auth strategy, which method in auth strategy will I be able to do RequestCycle.get() , get parameter and log in user ? igor.vaynberg wrote: > > in your auth strategy simply call RequestCycle.get() > > -igor > > On Fri, Dec 11, 2009 at 2:53 PM, fachhoch wrote: >> >> Please tell me where is there in the below text ? >> >> so check >> there for the parameter being present >> >> I saw the class SimplePageAuthorizationStrategy but could not figure >> out >> where I can check for parameter ? Please tell me more . >> >> >> >> igor.vaynberg wrote: >>> >>> the auth strategy runs before your class is instantiated, so check >>> there for the parameter being present and log the user in. >>> >>> -igor >>> >>> On Fri, Dec 11, 2009 at 1:58 PM, tubin gen wrote: My application does not authenticate user ,some external application authenticates and redirects to my application passing a parameter to identify the user, using this parameter I have to create a session and userdetails. I am using SimplePageAuthrizationStrategy getSecuritySettings().setAuthorizationStrategy(new SimplePageAuthorizationStrategy(BasePage.class,getSignInPageClass()){ �...@override protected boolean isAuthorized() { return ((AuditWebSession)Session.get()).isSignedIn(); //return true; } }); here my SignInPage public class SSIIntegrationLogin extends WebPage { private String sessionId; public SSIIntegrationLogin(PageParameters pageParameters) { sessionId=getRequestCycle().getRequest().getParameter(Parameters.PARAM_SSI_SESSION_ID); if (signIn(sessionId)){ onSignInSucceeded(); }else{ onSignInFailed(); } } protected void onSignInFailed() { setRedirect(true); setResponsePage(SingInFailedPage.class); } public boolean signIn(String sessionId) { return AuthenticatedWebSession.get().signIn(sessionId,""); } protected void onSignInSucceeded() { // If login has been called because the user was not yet // logged in, than continue to the original destination, // otherwise to the Home page if (!continueToOriginalDestination()) { setRedirect(true); setResponsePage(getApplication().getSessionSettings().getPageFactory().newPage( getApplication().getHomePage(), (PageParameters)null)); } } } the problem is getting the parameter PARAM_SSI_SESSION_ID the external application will redirect to a link like http://hostname/myapp?PARAM_SSI_SESSION_ID=tert any request to my application will be first cheked by authorization and becasue the user is not signed in he will be redirected to SingInpage in my case SSIIntegrationLogin , here I need the parameter PARAM_SSI_SESSION_Id now I was expecting the above code to work but I never get the parameter PARAM_SSI_SESSION_Id , please tell me how can I get this parameter ? or is there any beter way to handle this ? >>> >>> - >>> 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://old.nabble.com/login-with-a-parameter%2C-no-form-tp26752039p26752667.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://old.nabble.com/login-with-a-parameter%2C-no-form-tp26752039p26752817.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: login with a parameter, no form
in your auth strategy simply call RequestCycle.get() -igor On Fri, Dec 11, 2009 at 2:53 PM, fachhoch wrote: > > Please tell me where is there in the below text ? > > so check > there for the parameter being present > > I saw the class SimplePageAuthorizationStrategy but could not figure out > where I can check for parameter ? Please tell me more . > > > > igor.vaynberg wrote: >> >> the auth strategy runs before your class is instantiated, so check >> there for the parameter being present and log the user in. >> >> -igor >> >> On Fri, Dec 11, 2009 at 1:58 PM, tubin gen wrote: >>> My application does not authenticate user ,some external application >>> authenticates and redirects to my application passing a parameter to >>> identify the user, using this parameter I have to create a session and >>> userdetails. >>> >>> I am using SimplePageAuthrizationStrategy >>> >>> >>> getSecuritySettings().setAuthorizationStrategy(new >>> SimplePageAuthorizationStrategy(BasePage.class,getSignInPageClass()){ >>> �...@override >>> protected boolean isAuthorized() { >>> return ((AuditWebSession)Session.get()).isSignedIn(); >>> //return true; >>> } >>> }); >>> >>> >>> here my SignInPage >>> >>> public class SSIIntegrationLogin extends WebPage { >>> >>> private String sessionId; >>> >>> public SSIIntegrationLogin(PageParameters pageParameters) { >>> >>> sessionId=getRequestCycle().getRequest().getParameter(Parameters.PARAM_SSI_SESSION_ID); >>> if (signIn(sessionId)){ >>> onSignInSucceeded(); >>> }else{ >>> onSignInFailed(); >>> } >>> } >>> >>> protected void onSignInFailed() >>> { >>> setRedirect(true); >>> setResponsePage(SingInFailedPage.class); >>> } >>> >>> >>> public boolean signIn(String sessionId) >>> { >>> return AuthenticatedWebSession.get().signIn(sessionId,""); >>> } >>> >>> protected void onSignInSucceeded() >>> { >>> // If login has been called because the user was not yet >>> // logged in, than continue to the original destination, >>> // otherwise to the Home page >>> if (!continueToOriginalDestination()) >>> { >>> setRedirect(true); >>> >>> setResponsePage(getApplication().getSessionSettings().getPageFactory().newPage( >>> getApplication().getHomePage(), >>> (PageParameters)null)); >>> } >>> } >>> >>> } >>> >>> the problem is getting the parameter PARAM_SSI_SESSION_ID the >>> external >>> application will redirect to a link like >>> http://hostname/myapp?PARAM_SSI_SESSION_ID=tert >>> >>> >>> any request to my application will be first cheked by authorization and >>> becasue the user is not signed in he will be redirected to SingInpage in >>> my >>> case SSIIntegrationLogin , here I need the parameter >>> PARAM_SSI_SESSION_Id >>> now I was expecting the above code to work but I never get the parameter >>> PARAM_SSI_SESSION_Id , please tell me how can I get this parameter ? or >>> is >>> there any beter way to handle this ? >>> >> >> - >> 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://old.nabble.com/login-with-a-parameter%2C-no-form-tp26752039p26752667.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: login with a parameter, no form
Please tell me where is there in the below text ? so check there for the parameter being present I saw the class SimplePageAuthorizationStrategy but could not figure out where I can check for parameter ? Please tell me more . igor.vaynberg wrote: > > the auth strategy runs before your class is instantiated, so check > there for the parameter being present and log the user in. > > -igor > > On Fri, Dec 11, 2009 at 1:58 PM, tubin gen wrote: >> My application does not authenticate user ,some external application >> authenticates and redirects to my application passing a parameter to >> identify the user, using this parameter I have to create a session and >> userdetails. >> >> I am using SimplePageAuthrizationStrategy >> >> >> getSecuritySettings().setAuthorizationStrategy(new >> SimplePageAuthorizationStrategy(BasePage.class,getSignInPageClass()){ >> �...@override >> protected boolean isAuthorized() { >> return ((AuditWebSession)Session.get()).isSignedIn(); >> //return true; >> } >> }); >> >> >> here my SignInPage >> >> public class SSIIntegrationLogin extends WebPage { >> >> private String sessionId; >> >> public SSIIntegrationLogin(PageParameters pageParameters) { >> >> sessionId=getRequestCycle().getRequest().getParameter(Parameters.PARAM_SSI_SESSION_ID); >> if (signIn(sessionId)){ >> onSignInSucceeded(); >> }else{ >> onSignInFailed(); >> } >> } >> >> protected void onSignInFailed() >> { >> setRedirect(true); >> setResponsePage(SingInFailedPage.class); >> } >> >> >> public boolean signIn(String sessionId) >> { >> return AuthenticatedWebSession.get().signIn(sessionId,""); >> } >> >> protected void onSignInSucceeded() >> { >> // If login has been called because the user was not yet >> // logged in, than continue to the original destination, >> // otherwise to the Home page >> if (!continueToOriginalDestination()) >> { >> setRedirect(true); >> >> setResponsePage(getApplication().getSessionSettings().getPageFactory().newPage( >> getApplication().getHomePage(), >> (PageParameters)null)); >> } >> } >> >> } >> >> the problem is getting the parameter PARAM_SSI_SESSION_ID the >> external >> application will redirect to a link like >> http://hostname/myapp?PARAM_SSI_SESSION_ID=tert >> >> >> any request to my application will be first cheked by authorization and >> becasue the user is not signed in he will be redirected to SingInpage in >> my >> case SSIIntegrationLogin , here I need the parameter >> PARAM_SSI_SESSION_Id >> now I was expecting the above code to work but I never get the parameter >> PARAM_SSI_SESSION_Id , please tell me how can I get this parameter ? or >> is >> there any beter way to handle this ? >> > > - > 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://old.nabble.com/login-with-a-parameter%2C-no-form-tp26752039p26752667.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: login with a parameter, no form
the auth strategy runs before your class is instantiated, so check there for the parameter being present and log the user in. -igor On Fri, Dec 11, 2009 at 1:58 PM, tubin gen wrote: > My application does not authenticate user ,some external application > authenticates and redirects to my application passing a parameter to > identify the user, using this parameter I have to create a session and > userdetails. > > I am using SimplePageAuthrizationStrategy > > > getSecuritySettings().setAuthorizationStrategy(new > SimplePageAuthorizationStrategy(BasePage.class,getSignInPageClass()){ > �...@override > protected boolean isAuthorized() { > return ((AuditWebSession)Session.get()).isSignedIn(); > //return true; > } > }); > > > here my SignInPage > > public class SSIIntegrationLogin extends WebPage { > > private String sessionId; > > public SSIIntegrationLogin(PageParameters pageParameters) { > > sessionId=getRequestCycle().getRequest().getParameter(Parameters.PARAM_SSI_SESSION_ID); > if (signIn(sessionId)){ > onSignInSucceeded(); > }else{ > onSignInFailed(); > } > } > > protected void onSignInFailed() > { > setRedirect(true); > setResponsePage(SingInFailedPage.class); > } > > > public boolean signIn(String sessionId) > { > return AuthenticatedWebSession.get().signIn(sessionId,""); > } > > protected void onSignInSucceeded() > { > // If login has been called because the user was not yet > // logged in, than continue to the original destination, > // otherwise to the Home page > if (!continueToOriginalDestination()) > { > setRedirect(true); > > setResponsePage(getApplication().getSessionSettings().getPageFactory().newPage( > getApplication().getHomePage(), (PageParameters)null)); > } > } > > } > > the problem is getting the parameter PARAM_SSI_SESSION_ID the external > application will redirect to a link like > http://hostname/myapp?PARAM_SSI_SESSION_ID=tert > > > any request to my application will be first cheked by authorization and > becasue the user is not signed in he will be redirected to SingInpage in my > case SSIIntegrationLogin , here I need the parameter > PARAM_SSI_SESSION_Id > now I was expecting the above code to work but I never get the parameter > PARAM_SSI_SESSION_Id , please tell me how can I get this parameter ? or is > there any beter way to handle this ? > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: class cast exception when using setAutomaticMultiWindowSupport(true)
Why are you using trunk? Trunk is currently in highly unstable experimental state. -Matej On Fri, Dec 11, 2009 at 11:02 PM, Douglas Ferguson wrote: > Anybody have any advice on how to do this quick start? > > Here's how I create the issue. > > 1) Open a new window (so that the AutomaticMultiWindowSupport adds the params) > 2) Open a page with hidden modal > 3) Click on link to show the hidden modal > 4) Click on my ajax link in the modal == Blow UP > > I'm not sure how to recreate step 1 using wicket tester. > > D/ > > > On Dec 11, 2009, at 1:40 AM, Jonas wrote: > >> I think there was a message on this list reporting the same >> String/String ClassCastException >> a few days ago, but I don't remember if it was related to autocomplete. >> >> On Fri, Dec 11, 2009 at 4:05 AM, Douglas Ferguson >> wrote: >>> The problem exists on the trunk. >>> >>> Has anybody else seen this? >>> >>> If nobody has seen this I will try to make a quickstart. >>> >>> D/ >>> >>> On Dec 10, 2009, at 4:11 PM, nino martinez wael wrote: >>> have you tried with the latest from trunk? That way you can see quickly if it's fixed there... 2009/12/10 Douglas Ferguson > I traced through this and there appears to be 2 items in the pagemap and I > think it is related to > getPageSettings().setAutomaticMultiWindowSupport(true); > > wicket:pageMapName = "[people, resources]" > org.apache.wicket.markup.html.WicketEventReference = "wicket-event.js" > > > > On Dec 10, 2009, at 12:36 PM, Douglas Ferguson wrote: > >> I'm getting this error from autocomplete after upgrading.. >> ... >> java.lang.ClassCastException: >> [Ljava.lang.String; cannot be cast to java.lang.String >> > org.apache.wicket.request.target.coding.BookmarkablePageRequestTargetUrlCodingStrategy.decode(BookmarkablePageRequestTargetUrlCodingStrategy.java:91) >> >> > org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.targetForRequest(WebRequestCodingStrategy.java:507) >> >> > org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:191) >> >> org.apache.wicket.RequestCycle.step(RequestCycle.java:1310) >> >> org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428) >> >> org.apache.wicket.RequestCycle.request(RequestCycle.java:545) >> >> > org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:468) >> >> > org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:301) >> >> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) >> >> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) >> >> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) >> >> > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172) >> >> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) >> >> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) >> >> > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) >> >> > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) >> >> org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200) >> >> org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283) >> >> org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773) >> >> > org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703) >> >> > org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895) >> >> > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) >> >> java.lang.Thread.run(Thread.java:636) >> >> >> - >> 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: class cast exception when using setAutomaticMultiWindowSupport(true)
Anybody have any advice on how to do this quick start? Here's how I create the issue. 1) Open a new window (so that the AutomaticMultiWindowSupport adds the params) 2) Open a page with hidden modal 3) Click on link to show the hidden modal 4) Click on my ajax link in the modal == Blow UP I'm not sure how to recreate step 1 using wicket tester. D/ On Dec 11, 2009, at 1:40 AM, Jonas wrote: > I think there was a message on this list reporting the same > String/String ClassCastException > a few days ago, but I don't remember if it was related to autocomplete. > > On Fri, Dec 11, 2009 at 4:05 AM, Douglas Ferguson > wrote: >> The problem exists on the trunk. >> >> Has anybody else seen this? >> >> If nobody has seen this I will try to make a quickstart. >> >> D/ >> >> On Dec 10, 2009, at 4:11 PM, nino martinez wael wrote: >> >>> have you tried with the latest from trunk? That way you can see quickly if >>> it's fixed there... >>> >>> 2009/12/10 Douglas Ferguson >>> I traced through this and there appears to be 2 items in the pagemap and I think it is related to getPageSettings().setAutomaticMultiWindowSupport(true); wicket:pageMapName = "[people, resources]" org.apache.wicket.markup.html.WicketEventReference = "wicket-event.js" On Dec 10, 2009, at 12:36 PM, Douglas Ferguson wrote: > I'm getting this error from autocomplete after upgrading.. > ... > java.lang.ClassCastException: > [Ljava.lang.String; cannot be cast to java.lang.String > org.apache.wicket.request.target.coding.BookmarkablePageRequestTargetUrlCodingStrategy.decode(BookmarkablePageRequestTargetUrlCodingStrategy.java:91) > > org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.targetForRequest(WebRequestCodingStrategy.java:507) > > org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:191) > >org.apache.wicket.RequestCycle.step(RequestCycle.java:1310) > >org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428) > >org.apache.wicket.RequestCycle.request(RequestCycle.java:545) > > org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:468) > > org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:301) > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172) > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) > >org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200) > >org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283) > >org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773) > > org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703) > > org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895) > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) > >java.lang.Thread.run(Thread.java:636) > > > - > 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
login with a parameter, no form
My application does not authenticate user ,some external application authenticates and redirects to my application passing a parameter to identify the user, using this parameter I have to create a session and userdetails. I am using SimplePageAuthrizationStrategy getSecuritySettings().setAuthorizationStrategy(new SimplePageAuthorizationStrategy(BasePage.class,getSignInPageClass()){ @Override protected boolean isAuthorized() { return ((AuditWebSession)Session.get()).isSignedIn(); //return true; } }); here my SignInPage public class SSIIntegrationLogin extends WebPage { private String sessionId; public SSIIntegrationLogin(PageParameters pageParameters) { sessionId=getRequestCycle().getRequest().getParameter(Parameters.PARAM_SSI_SESSION_ID); if (signIn(sessionId)){ onSignInSucceeded(); }else{ onSignInFailed(); } } protected void onSignInFailed() { setRedirect(true); setResponsePage(SingInFailedPage.class); } public boolean signIn(String sessionId) { return AuthenticatedWebSession.get().signIn(sessionId,""); } protected void onSignInSucceeded() { // If login has been called because the user was not yet // logged in, than continue to the original destination, // otherwise to the Home page if (!continueToOriginalDestination()) { setRedirect(true); setResponsePage(getApplication().getSessionSettings().getPageFactory().newPage( getApplication().getHomePage(), (PageParameters)null)); } } } the problem is getting theparameter PARAM_SSI_SESSION_ID the external application will redirect to a link like http://hostname/myapp?PARAM_SSI_SESSION_ID=tert any request to my application will be first cheked by authorization and becasue the user is not signed in he will be redirected to SingInpage in my case SSIIntegrationLogin , here I need the parameter PARAM_SSI_SESSION_Id now I was expecting the above code to work but I never get the parameter PARAM_SSI_SESSION_Id , please tell me how can I get this parameter ? or is there any beter way to handle this ?
Re: How to post form to new window using AjaxSubmitLink
I had a similar need and did as Igor suggested. Here is an example: add(new AjaxButton("ajax-button"){ public void onSubmit(AjaxRequestTarget target, Form form) { ...create result page, get the url path to it... target.appendJavascript("window.open('http://page_path_goes_here ','window_name');"); } }); Something funny i'm working through in testing (and this a javascript issue, not wicket) is that IE won't open the window unless the window name is strictly alpha-numeric. FF works fine though. Zak On Fri, Dec 11, 2009 at 2:50 PM, Igor Vaynberg wrote: > you can output some javascript using the ajaxrequesttarget that does > window.open > > -igor > > On Fri, Dec 11, 2009 at 12:31 PM, Jeff Andersen > wrote: > > I need to know how I can post a form to a new window using an > AjaxSubmitLink. I have a small page where a user can make a few setting > changes and then either save those settings (using an AjaxButton) or preview > those settings (using an AjaxSubmitLink) in a new window. The problem is, I > can't figure out how to make the preview button open in a new window. Since > there are no popup settings for an AjaxSubmitLink, I'm not sure what to do. > > > > I've tried searching for a solution and the best I could find indicated > that I should use a form target="_blank". But that doesn't seem to change > anything. The call to setResponsePage always results in the preview page > opening in the same browser window. > > > > Below is the code for my submit and preview buttons: > > > >AjaxButton submit = new AjaxButton("websiteSetting-submit-button") > { > > > >@Override > >protected void onError(AjaxRequestTarget target, Form form) > { > >super.onError(target, form); > >feedbackPanel.add(new AttributeModifier("style", true, new > Model("color:red;"))); > >target.addComponent(feedbackPanel); > >target.addComponent(form); > >} > > > >@Override > >protected void onSubmit(AjaxRequestTarget target, Form > form) { > >processSubmission(target, form, false); > >} > > > >//Prepending the call to set the target to nothing for normal > form submission. > >@Override > >protected IAjaxCallDecorator getAjaxCallDecorator() { > >return new > AjaxPreprocessingCallDecorator(super.getAjaxCallDecorator()) { > > > >private static final long serialVersionUID = 1L; > > > >@Override > >public CharSequence preDecorateScript(CharSequence > script) { > >String sJs = "document.getElementById('" + > form.getMarkupId() + "').target = '';"; > > > >return sJs + script; > >} > >}; > >} > >}; > > > >AjaxSubmitLink preview = new > AjaxSubmitLink("websiteSetting-preview-button") { > > > >@Override > >protected void onError(AjaxRequestTarget target, Form form) > { > >super.onError(target, form); > >feedbackPanel.add(new AttributeModifier("style", true, new > Model("color:red;"))); > >target.addComponent(feedbackPanel); > >target.addComponent(form); > >} > > > >@Override > >protected void onSubmit(AjaxRequestTarget target, Form > form) { > >setResponsePage(HomePage.class); > >} > > > >//Prepending the call to set the target to "_blank" for > preview submission to new window. > >@Override > >protected IAjaxCallDecorator getAjaxCallDecorator() { > >return new > AjaxPreprocessingCallDecorator(super.getAjaxCallDecorator()) { > > > >private static final long serialVersionUID = 1L; > > > >@Override > >public CharSequence preDecorateScript(CharSequence > script) { > >String sJs = "document.getElementById('" + > form.getMarkupId() + "').target = '_blank';alert(document.getElementById('" > + form.getMarkupId() + "').target);"; > > > >return sJs + script; > >} > >}; > >} > >}; > > > > Thanks, > > Jeff > > > > * This e-mail and any files transmitted with it may contain confidential > and/or privileged information and intended solely for the use of the > individual or entity to whom they are addressed. If you are not the > addressee or authorized to receive this for the addressee, you must not use, > copy, disclose, or take any action based on this message or any information > herein. If you have received this message in error, please advise the sender > immediately by reply e-mail and delete this message. > > > > - > To un
Re: FileUploadField in a ModalWindow (wicket 1.4.3)?
Hi, UploadProgressBar in a nested form also does not work (onsubmit added to a div representing the inner form, but should be added to the onsubmit button of the outer form element). a *very hacky* "solution" is something like boolean added = false; protected void onBeforeRender() { if(!added) { added = true; add(new UploadProgressBar("progress", this.getRootForm())); } super.onBeforeRender(); } May or may not work, in my prelimary tests this solution works. might be better to add the onsubmit code to the most outer form, anyone skilled with javascript may help me here :) Best Regards, Ilja Pavkovic Am Freitag, 4. Dezember 2009 08:38:18 schrieb Igor Vaynberg: > sounds like we may have to search up the component tree until we find a > form... > > can you create a quickstart and attach it to the jira issue? > > -igor > > On Thu, Dec 3, 2009 at 10:43 PM, Doug Leeper wrote: > > Found the code where the iframe is being used > > (resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js) > > > > When looking at the generated html for the modal window in a nested form > > situation, it shows the submit button actually being submitted by > > wicketSubmitFormById(formId,...) The formId is the inner "form" but the > > Form class actually generates a "div" element instead of a "form" (not > > the root form) and removes the enctype. Since the enctype has been > > removed, the Javascript cannot create the iframe as it looking to see if > > the form has the enctype="multipart/form-data"...hence the request is > > being sent via Ajax still and not the iframe. > > > > So my thought is that that in the Form.onComponentTag() it should not > > remove the enctype if isMultiPart() is true but add a variable enctype to > > the div...but not sure if this is allowed. > > > > Can someone verify this as this is not my area of expertise (JavaScript > > or Ajax internals)? > > > > Thanks > > - Doug > > -- > > View this message in context: > > http://old.nabble.com/FileUploadField-in-a-ModalWindow-%28wicket-1.4.3%29 > >--tp26577255p26635788.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 > -- binaere bauten gmbh · tempelhofer ufer 1a · 10961 berlin +49 · 171 · 9342 465 Handelsregister: HRB 115854 - Amtsgericht Charlottenburg Geschäftsführer: Dipl.-Inform. Ilja Pavkovic, Dipl.-Inform. Jost Becker - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to post form to new window using AjaxSubmitLink
you can output some javascript using the ajaxrequesttarget that does window.open -igor On Fri, Dec 11, 2009 at 12:31 PM, Jeff Andersen wrote: > I need to know how I can post a form to a new window using an AjaxSubmitLink. > I have a small page where a user can make a few setting changes and then > either save those settings (using an AjaxButton) or preview those settings > (using an AjaxSubmitLink) in a new window. The problem is, I can't figure > out how to make the preview button open in a new window. Since there are no > popup settings for an AjaxSubmitLink, I'm not sure what to do. > > I've tried searching for a solution and the best I could find indicated that > I should use a form target="_blank". But that doesn't seem to change > anything. The call to setResponsePage always results in the preview page > opening in the same browser window. > > Below is the code for my submit and preview buttons: > > AjaxButton submit = new AjaxButton("websiteSetting-submit-button") { > > �...@override > protected void onError(AjaxRequestTarget target, Form form) { > super.onError(target, form); > feedbackPanel.add(new AttributeModifier("style", true, new > Model("color:red;"))); > target.addComponent(feedbackPanel); > target.addComponent(form); > } > > �...@override > protected void onSubmit(AjaxRequestTarget target, Form form) { > processSubmission(target, form, false); > } > > //Prepending the call to set the target to nothing for normal form > submission. > �...@override > protected IAjaxCallDecorator getAjaxCallDecorator() { > return new > AjaxPreprocessingCallDecorator(super.getAjaxCallDecorator()) { > > private static final long serialVersionUID = 1L; > > �...@override > public CharSequence preDecorateScript(CharSequence script) > { > String sJs = "document.getElementById('" + > form.getMarkupId() + "').target = '';"; > > return sJs + script; > } > }; > } > }; > > AjaxSubmitLink preview = new > AjaxSubmitLink("websiteSetting-preview-button") { > > �...@override > protected void onError(AjaxRequestTarget target, Form form) { > super.onError(target, form); > feedbackPanel.add(new AttributeModifier("style", true, new > Model("color:red;"))); > target.addComponent(feedbackPanel); > target.addComponent(form); > } > > �...@override > protected void onSubmit(AjaxRequestTarget target, Form form) { > setResponsePage(HomePage.class); > } > > //Prepending the call to set the target to "_blank" for preview > submission to new window. > �...@override > protected IAjaxCallDecorator getAjaxCallDecorator() { > return new > AjaxPreprocessingCallDecorator(super.getAjaxCallDecorator()) { > > private static final long serialVersionUID = 1L; > > �...@override > public CharSequence preDecorateScript(CharSequence script) > { > String sJs = "document.getElementById('" + > form.getMarkupId() + "').target = '_blank';alert(document.getElementById('" + > form.getMarkupId() + "').target);"; > > return sJs + script; > } > }; > } > }; > > Thanks, > Jeff > > * This e-mail and any files transmitted with it may contain confidential > and/or privileged information and intended solely for the use of the > individual or entity to whom they are addressed. If you are not the addressee > or authorized to receive this for the addressee, you must not use, copy, > disclose, or take any action based on this message or any information herein. > If you have received this message in error, please advise the sender > immediately by reply e-mail and delete this message. > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: FileUploadField in a ModalWindow (wicket 1.4.3)?
Hi, the same problem occurs with an UploadProgressBar in a nested form. The nested form is a div having an onsubmit-tag holding the ajax call to the progress bar. Best Regards, Ilja Am Freitag, 4. Dezember 2009 08:38:18 schrieb Igor Vaynberg: > sounds like we may have to search up the component tree until we find a > form... > > can you create a quickstart and attach it to the jira issue? > > -igor > > On Thu, Dec 3, 2009 at 10:43 PM, Doug Leeper wrote: > > Found the code where the iframe is being used > > (resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js) > > > > When looking at the generated html for the modal window in a nested form > > situation, it shows the submit button actually being submitted by > > wicketSubmitFormById(formId,...) The formId is the inner "form" but the > > Form class actually generates a "div" element instead of a "form" (not > > the root form) and removes the enctype. Since the enctype has been > > removed, the Javascript cannot create the iframe as it looking to see if > > the form has the enctype="multipart/form-data"...hence the request is > > being sent via Ajax still and not the iframe. > > > > So my thought is that that in the Form.onComponentTag() it should not > > remove the enctype if isMultiPart() is true but add a variable enctype to > > the div...but not sure if this is allowed. > > > > Can someone verify this as this is not my area of expertise (JavaScript > > or Ajax internals)? > > > > Thanks > > - Doug > > -- > > View this message in context: > > http://old.nabble.com/FileUploadField-in-a-ModalWindow-%28wicket-1.4.3%29 > >--tp26577255p26635788.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 > -- Ilja Pavkovic Leitung Entwicklung und Projektsteuerung, Gesellschafter Bitte beachten Sie unsere neuen Kontaktdaten! Apliki Psychologische IT-Beratung Tempelhofer Ufer 1a 10961 Berlin Fon +49 · 30 · 99277999 · 0 Mob +49 · 171 · 9342465 Mail ilja.pavko...@apliki.de Netz www.apliki.de __ Apliki GmbH & Co. KG, Berlin, AG Charlottenburg, HRA 39114 Persönlich haftend: Apliki Beteiligungs GmbH, Berlin, AG Charlottenburg, HRB 104921 vertreten durch: Steffen Eßers, Björn Balazs, Ilja Pavkovic - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Limiting PageStore size
It's in the 2.0 in alternate future. Time travel is a tricky thing. -Matej On Fri, Dec 11, 2009 at 9:37 PM, Johan Compagner wrote: > did wicket 2.0 had a tardis?? > i am checking svn right now for those lost diamonds! > > On 11/12/2009, Igor Vaynberg wrote: >> maybe wicket 2.0 will come with a TardisPageStore :) >> >> -igor >> >> On Fri, Dec 11, 2009 at 8:56 AM, Neil Curzon wrote: >>> You are right, I was not testing correctly. The pages were just cached and >>> clicking on any non-bookmarkable link in them caused a page expired. >>> >>> Thanks >>> >>> On Thu, Dec 10, 2009 at 6:11 PM, Matej Knopp >>> wrote: >>> Are you sure you have been testing it correctly? The pagestore is cyclic. That means once it reaches it's limit it's the oldest pages get overwritten. -Matej On Thu, Dec 10, 2009 at 11:56 PM, Neil Curzon wrote: > Hi all, > > We're in the process of going live with our wicket app, so we're trying to > figure out certain details, currently PageStore size. > > I notice that by looking at the page store on disk, typically our pages add > 10-20kb each to the pagemap. The default 10mb limit would store a lot > of > pages, but we were thinking of using a smaller limit. I tried adjusting the > limit to 100kb, and as expected, the page store size capped out at > about > 100kb. > > I was expecting the consequence of this to be that the back button > would not > work all the way to the beginning. Actually, what happens is that, > after my > page map size hits the limit and stops growing, even if I continue to click > around the app for a while, I can still hit the back button all the way back > to the login, without hitting our "page expired" page. This surprised > me. Is > this expected behavior? If the back button works with a 100kb page map file, > why use a 10mb one? > > Any help would be appreciated! > > Thanks, > Neil > - 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: Limiting PageStore size
did wicket 2.0 had a tardis?? i am checking svn right now for those lost diamonds! On 11/12/2009, Igor Vaynberg wrote: > maybe wicket 2.0 will come with a TardisPageStore :) > > -igor > > On Fri, Dec 11, 2009 at 8:56 AM, Neil Curzon wrote: >> You are right, I was not testing correctly. The pages were just cached and >> clicking on any non-bookmarkable link in them caused a page expired. >> >> Thanks >> >> On Thu, Dec 10, 2009 at 6:11 PM, Matej Knopp >> wrote: >> >>> Are you sure you have been testing it correctly? The pagestore is >>> cyclic. That means once it reaches it's limit it's the oldest pages >>> get overwritten. >>> >>> -Matej >>> >>> On Thu, Dec 10, 2009 at 11:56 PM, Neil Curzon >>> wrote: >>> > Hi all, >>> > >>> > We're in the process of going live with our wicket app, so we're trying >>> to >>> > figure out certain details, currently PageStore size. >>> > >>> > I notice that by looking at the page store on disk, typically our pages >>> add >>> > 10-20kb each to the pagemap. The default 10mb limit would store a lot >>> > of >>> > pages, but we were thinking of using a smaller limit. I tried adjusting >>> the >>> > limit to 100kb, and as expected, the page store size capped out at >>> > about >>> > 100kb. >>> > >>> > I was expecting the consequence of this to be that the back button >>> > would >>> not >>> > work all the way to the beginning. Actually, what happens is that, >>> > after >>> my >>> > page map size hits the limit and stops growing, even if I continue to >>> click >>> > around the app for a while, I can still hit the back button all the way >>> back >>> > to the login, without hitting our "page expired" page. This surprised >>> > me. >>> Is >>> > this expected behavior? If the back button works with a 100kb page map >>> file, >>> > why use a 10mb one? >>> > >>> > Any help would be appreciated! >>> > >>> > Thanks, >>> > Neil >>> > >>> >>> - >>> 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
Palette - adding available choice via AJAX
I have a palette defined with a set of available choices. I can move those choices to the right into the selected choices. On my page I have a modal popup that can be launched to add a custom choice. The choice is added to the available choices in the palette but the selected choices are reset. How do I keep the selected choices set and add the new choice to remaining available choices. I have done a Google search but don't have the correct keywords to find anything useful. The key pieces of code are below. Thanks. Private List definedOptions = new ArrayList(); // code found in constructor of page final Palette palette = new Palette("options", new Model((Serializable)definedOptions), renderer, 10, true); palette.setMarkupId("palette"); palette.setOutputMarkupId(true); palette.setOutputMarkupPlaceholderTag(true); add(palette); // code found in the onclick of the AjaxLink on the page definedOptions.add(opt); target.addComponent(palette); ___ Jeffrey A. Schneller Envisa End-to-End E-Commerce for the Multi-Channel Merchant 281 Pleasant Street Framingham, MA 01701 P: (508) 405-1220 x115 C: (508) 954-8044 F: (508) 405-1219
How to post form to new window using AjaxSubmitLink
I need to know how I can post a form to a new window using an AjaxSubmitLink. I have a small page where a user can make a few setting changes and then either save those settings (using an AjaxButton) or preview those settings (using an AjaxSubmitLink) in a new window. The problem is, I can't figure out how to make the preview button open in a new window. Since there are no popup settings for an AjaxSubmitLink, I'm not sure what to do. I've tried searching for a solution and the best I could find indicated that I should use a form target="_blank". But that doesn't seem to change anything. The call to setResponsePage always results in the preview page opening in the same browser window. Below is the code for my submit and preview buttons: AjaxButton submit = new AjaxButton("websiteSetting-submit-button") { @Override protected void onError(AjaxRequestTarget target, Form form) { super.onError(target, form); feedbackPanel.add(new AttributeModifier("style", true, new Model("color:red;"))); target.addComponent(feedbackPanel); target.addComponent(form); } @Override protected void onSubmit(AjaxRequestTarget target, Form form) { processSubmission(target, form, false); } //Prepending the call to set the target to nothing for normal form submission. @Override protected IAjaxCallDecorator getAjaxCallDecorator() { return new AjaxPreprocessingCallDecorator(super.getAjaxCallDecorator()) { private static final long serialVersionUID = 1L; @Override public CharSequence preDecorateScript(CharSequence script) { String sJs = "document.getElementById('" + form.getMarkupId() + "').target = '';"; return sJs + script; } }; } }; AjaxSubmitLink preview = new AjaxSubmitLink("websiteSetting-preview-button") { @Override protected void onError(AjaxRequestTarget target, Form form) { super.onError(target, form); feedbackPanel.add(new AttributeModifier("style", true, new Model("color:red;"))); target.addComponent(feedbackPanel); target.addComponent(form); } @Override protected void onSubmit(AjaxRequestTarget target, Form form) { setResponsePage(HomePage.class); } //Prepending the call to set the target to "_blank" for preview submission to new window. @Override protected IAjaxCallDecorator getAjaxCallDecorator() { return new AjaxPreprocessingCallDecorator(super.getAjaxCallDecorator()) { private static final long serialVersionUID = 1L; @Override public CharSequence preDecorateScript(CharSequence script) { String sJs = "document.getElementById('" + form.getMarkupId() + "').target = '_blank';alert(document.getElementById('" + form.getMarkupId() + "').target);"; return sJs + script; } }; } }; Thanks, Jeff * This e-mail and any files transmitted with it may contain confidential and/or privileged information and intended solely for the use of the individual or entity to whom they are addressed. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose, or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message.
Re: Get stateful page url
dont remember, havent used 1.3.x in quiet a while. -igor On Fri, Dec 11, 2009 at 10:57 AM, Zak Johnson wrote: > Is urlFor(Page page) available in the 1.3.7 release? I tried using the > urlFor method provided in the component, but I didn't see one that took a > page as a parameter. I'm in an enterprise environment that has me restricted > to that older package. :( > > Zak > > On Fri, Dec 11, 2009 at 11:29 AM, Igor Vaynberg > wrote: > >> urlfor exists on component, so you can simply say >> >> urlfor(page) inside any component method >> >> -gior >> >> On Fri, Dec 11, 2009 at 9:18 AM, Zak Johnson wrote: >> > Thanks Igor, that lead me in the right direction. Here is what I did: >> > >> > page.getRequestCycle().urlFor(page); >> > That gave me the specific page url I was looking for. >> > Seems kinda roundabout, so if there is a better way, let me know. >> > >> > Thanks! >> > >> > Zak >> > >> > On Fri, Dec 11, 2009 at 10:49 AM, Igor Vaynberg > >wrote: >> > >> >> urlfor(page) >> >> >> >> -igor >> >> >> >> On Fri, Dec 11, 2009 at 7:36 AM, Zak Johnson >> wrote: >> >> > Yes, your example is what I was doing in the past to execute the JS on >> >> the >> >> > form submit. My problem is getting the actual page url to feed into my >> JS >> >> > call. I know there is a way to get it because I've done it before, I >> just >> >> > can't remember how and I lost the original code. >> >> > >> >> > Zak >> >> > >> >> > >> >> > On Fri, Dec 11, 2009 at 9:25 AM, Martin Makundi < >> >> > martin.maku...@koodaripalvelut.com> wrote: >> >> > >> >> >> Hi! >> >> >> >> >> >> It is a bit similar to my problem once: >> >> >> http://osdir.com/ml/users-wicket.apache.org/2009-07/msg00471.html >> >> >> >> >> >> The idea is that you do an ajax form submit, then you return an ajax >> >> >> response that opens the result popup window. >> >> >> >> >> >> ** >> >> >> Martin >> >> >> >> >> >> 2009/12/11 Zak Johnson : >> >> >> > So the reason I need this is because I have a requirement to submit >> a >> >> >> form >> >> >> > which keeps the main page constant but opens the result page in a >> new >> >> >> > window. Also, it can't be a modal window. I need to be able to >> popup >> >> >> several >> >> >> > windows without taking control away from the main page, and without >> >> >> re-using >> >> >> > the same popup. Not my favorite design choice, but it's a >> requirement >> >> >> that I >> >> >> > can't get around. I had done this before by just feeding the new >> page >> >> >> > instance URL to a javascript function to popup the windows.I was >> >> planning >> >> >> on >> >> >> > getting the base URL from RequestUtils and just appending the >> unique >> >> page >> >> >> > url to the end. If someone knows of a better way to do this, I'm >> all >> >> >> ears. >> >> >> > >> >> >> > Zak >> >> >> > >> >> >> > On Fri, Dec 11, 2009 at 9:10 AM, Martin Makundi < >> >> >> > martin.maku...@koodaripalvelut.com> wrote: >> >> >> > >> >> >> >> Why do you need it? Maybe there is a better way around it? >> >> >> >> >> >> >> >> ** >> >> >> >> Martin >> >> >> >> >> >> >> >> 2009/12/11 Zak Johnson : >> >> >> >> > I am trying to figure out a way to grab the url of a stateful >> page >> >> >> >> instance. >> >> >> >> > So for example, I want to click a link which creates a new page >> and >> >> >> >> before >> >> >> >> > redirecting to that page I want to grab the >> >> ?wicket:interface=:1 >> >> >> part >> >> >> >> of >> >> >> >> > the URL. I stumbled across a simple way to do this before, but >> I've >> >> >> lost >> >> >> >> > that code and can't remember how I did it. I know I can use the >> >> page >> >> >> map >> >> >> >> > properties to get the page id and version, then just insert them >> >> into >> >> >> a >> >> >> >> > string but I have to believe there is a better way. Also, it's >> >> >> important >> >> >> >> > that I NOT use bookmarkable pages. Any ideas? >> >> >> >> > >> >> >> >> > Zak >> >> >> >> > >> >> >> >> >> >> >> >> >> - >> >> >> >> 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
Re: Get stateful page url
Is urlFor(Page page) available in the 1.3.7 release? I tried using the urlFor method provided in the component, but I didn't see one that took a page as a parameter. I'm in an enterprise environment that has me restricted to that older package. :( Zak On Fri, Dec 11, 2009 at 11:29 AM, Igor Vaynberg wrote: > urlfor exists on component, so you can simply say > > urlfor(page) inside any component method > > -gior > > On Fri, Dec 11, 2009 at 9:18 AM, Zak Johnson wrote: > > Thanks Igor, that lead me in the right direction. Here is what I did: > > > > page.getRequestCycle().urlFor(page); > > That gave me the specific page url I was looking for. > > Seems kinda roundabout, so if there is a better way, let me know. > > > > Thanks! > > > > Zak > > > > On Fri, Dec 11, 2009 at 10:49 AM, Igor Vaynberg >wrote: > > > >> urlfor(page) > >> > >> -igor > >> > >> On Fri, Dec 11, 2009 at 7:36 AM, Zak Johnson > wrote: > >> > Yes, your example is what I was doing in the past to execute the JS on > >> the > >> > form submit. My problem is getting the actual page url to feed into my > JS > >> > call. I know there is a way to get it because I've done it before, I > just > >> > can't remember how and I lost the original code. > >> > > >> > Zak > >> > > >> > > >> > On Fri, Dec 11, 2009 at 9:25 AM, Martin Makundi < > >> > martin.maku...@koodaripalvelut.com> wrote: > >> > > >> >> Hi! > >> >> > >> >> It is a bit similar to my problem once: > >> >> http://osdir.com/ml/users-wicket.apache.org/2009-07/msg00471.html > >> >> > >> >> The idea is that you do an ajax form submit, then you return an ajax > >> >> response that opens the result popup window. > >> >> > >> >> ** > >> >> Martin > >> >> > >> >> 2009/12/11 Zak Johnson : > >> >> > So the reason I need this is because I have a requirement to submit > a > >> >> form > >> >> > which keeps the main page constant but opens the result page in a > new > >> >> > window. Also, it can't be a modal window. I need to be able to > popup > >> >> several > >> >> > windows without taking control away from the main page, and without > >> >> re-using > >> >> > the same popup. Not my favorite design choice, but it's a > requirement > >> >> that I > >> >> > can't get around. I had done this before by just feeding the new > page > >> >> > instance URL to a javascript function to popup the windows.I was > >> planning > >> >> on > >> >> > getting the base URL from RequestUtils and just appending the > unique > >> page > >> >> > url to the end. If someone knows of a better way to do this, I'm > all > >> >> ears. > >> >> > > >> >> > Zak > >> >> > > >> >> > On Fri, Dec 11, 2009 at 9:10 AM, Martin Makundi < > >> >> > martin.maku...@koodaripalvelut.com> wrote: > >> >> > > >> >> >> Why do you need it? Maybe there is a better way around it? > >> >> >> > >> >> >> ** > >> >> >> Martin > >> >> >> > >> >> >> 2009/12/11 Zak Johnson : > >> >> >> > I am trying to figure out a way to grab the url of a stateful > page > >> >> >> instance. > >> >> >> > So for example, I want to click a link which creates a new page > and > >> >> >> before > >> >> >> > redirecting to that page I want to grab the > >> ?wicket:interface=:1 > >> >> part > >> >> >> of > >> >> >> > the URL. I stumbled across a simple way to do this before, but > I've > >> >> lost > >> >> >> > that code and can't remember how I did it. I know I can use the > >> page > >> >> map > >> >> >> > properties to get the page id and version, then just insert them > >> into > >> >> a > >> >> >> > string but I have to believe there is a better way. Also, it's > >> >> important > >> >> >> > that I NOT use bookmarkable pages. Any ideas? > >> >> >> > > >> >> >> > Zak > >> >> >> > > >> >> >> > >> >> >> > - > >> >> >> 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: [announce] Wicket 1.4.4
and now with a working changelog link: https://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=true&&pid=12310561&fixfor=12314323&sorter/field=priority&sorter/order=DESC -igor On Fri, Dec 11, 2009 at 10:16 AM, Igor Vaynberg wrote: > The Apache Wicket project is proud to announce the fourth maintenance > release of Apache Wicket 1.4. > > Download Apache Wicket 1.4 > -- > You can download the release here: > http://www.apache.org/dyn/closer.cgi/wicket/1.4.4 > > Or use this in your Maven pom's to upgrade to the new version: > > > org.apache.wicket > wicket > 1.4.4 > > > Changes > - > A complete list of changes can be found here: > https://issues.apache.org/jira/secure/IssueNavigator.jspa?fixfor=12314323 > > We thank you for your patience and support. > > -The Wicket Team > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
[announce] Wicket 1.4.4
The Apache Wicket project is proud to announce the fourth maintenance release of Apache Wicket 1.4. Download Apache Wicket 1.4 -- You can download the release here: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4 Or use this in your Maven pom's to upgrade to the new version: org.apache.wicket wicket 1.4.4 Changes - A complete list of changes can be found here: https://issues.apache.org/jira/secure/IssueNavigator.jspa?fixfor=12314323 We thank you for your patience and support. -The Wicket Team - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Get stateful page url
urlfor exists on component, so you can simply say urlfor(page) inside any component method -gior On Fri, Dec 11, 2009 at 9:18 AM, Zak Johnson wrote: > Thanks Igor, that lead me in the right direction. Here is what I did: > > page.getRequestCycle().urlFor(page); > That gave me the specific page url I was looking for. > Seems kinda roundabout, so if there is a better way, let me know. > > Thanks! > > Zak > > On Fri, Dec 11, 2009 at 10:49 AM, Igor Vaynberg > wrote: > >> urlfor(page) >> >> -igor >> >> On Fri, Dec 11, 2009 at 7:36 AM, Zak Johnson wrote: >> > Yes, your example is what I was doing in the past to execute the JS on >> the >> > form submit. My problem is getting the actual page url to feed into my JS >> > call. I know there is a way to get it because I've done it before, I just >> > can't remember how and I lost the original code. >> > >> > Zak >> > >> > >> > On Fri, Dec 11, 2009 at 9:25 AM, Martin Makundi < >> > martin.maku...@koodaripalvelut.com> wrote: >> > >> >> Hi! >> >> >> >> It is a bit similar to my problem once: >> >> http://osdir.com/ml/users-wicket.apache.org/2009-07/msg00471.html >> >> >> >> The idea is that you do an ajax form submit, then you return an ajax >> >> response that opens the result popup window. >> >> >> >> ** >> >> Martin >> >> >> >> 2009/12/11 Zak Johnson : >> >> > So the reason I need this is because I have a requirement to submit a >> >> form >> >> > which keeps the main page constant but opens the result page in a new >> >> > window. Also, it can't be a modal window. I need to be able to popup >> >> several >> >> > windows without taking control away from the main page, and without >> >> re-using >> >> > the same popup. Not my favorite design choice, but it's a requirement >> >> that I >> >> > can't get around. I had done this before by just feeding the new page >> >> > instance URL to a javascript function to popup the windows.I was >> planning >> >> on >> >> > getting the base URL from RequestUtils and just appending the unique >> page >> >> > url to the end. If someone knows of a better way to do this, I'm all >> >> ears. >> >> > >> >> > Zak >> >> > >> >> > On Fri, Dec 11, 2009 at 9:10 AM, Martin Makundi < >> >> > martin.maku...@koodaripalvelut.com> wrote: >> >> > >> >> >> Why do you need it? Maybe there is a better way around it? >> >> >> >> >> >> ** >> >> >> Martin >> >> >> >> >> >> 2009/12/11 Zak Johnson : >> >> >> > I am trying to figure out a way to grab the url of a stateful page >> >> >> instance. >> >> >> > So for example, I want to click a link which creates a new page and >> >> >> before >> >> >> > redirecting to that page I want to grab the >> ?wicket:interface=:1 >> >> part >> >> >> of >> >> >> > the URL. I stumbled across a simple way to do this before, but I've >> >> lost >> >> >> > that code and can't remember how I did it. I know I can use the >> page >> >> map >> >> >> > properties to get the page id and version, then just insert them >> into >> >> a >> >> >> > string but I have to believe there is a better way. Also, it's >> >> important >> >> >> > that I NOT use bookmarkable pages. Any ideas? >> >> >> > >> >> >> > Zak >> >> >> > >> >> >> >> >> >> - >> >> >> 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: Get stateful page url
Thanks Igor, that lead me in the right direction. Here is what I did: page.getRequestCycle().urlFor(page); That gave me the specific page url I was looking for. Seems kinda roundabout, so if there is a better way, let me know. Thanks! Zak On Fri, Dec 11, 2009 at 10:49 AM, Igor Vaynberg wrote: > urlfor(page) > > -igor > > On Fri, Dec 11, 2009 at 7:36 AM, Zak Johnson wrote: > > Yes, your example is what I was doing in the past to execute the JS on > the > > form submit. My problem is getting the actual page url to feed into my JS > > call. I know there is a way to get it because I've done it before, I just > > can't remember how and I lost the original code. > > > > Zak > > > > > > On Fri, Dec 11, 2009 at 9:25 AM, Martin Makundi < > > martin.maku...@koodaripalvelut.com> wrote: > > > >> Hi! > >> > >> It is a bit similar to my problem once: > >> http://osdir.com/ml/users-wicket.apache.org/2009-07/msg00471.html > >> > >> The idea is that you do an ajax form submit, then you return an ajax > >> response that opens the result popup window. > >> > >> ** > >> Martin > >> > >> 2009/12/11 Zak Johnson : > >> > So the reason I need this is because I have a requirement to submit a > >> form > >> > which keeps the main page constant but opens the result page in a new > >> > window. Also, it can't be a modal window. I need to be able to popup > >> several > >> > windows without taking control away from the main page, and without > >> re-using > >> > the same popup. Not my favorite design choice, but it's a requirement > >> that I > >> > can't get around. I had done this before by just feeding the new page > >> > instance URL to a javascript function to popup the windows.I was > planning > >> on > >> > getting the base URL from RequestUtils and just appending the unique > page > >> > url to the end. If someone knows of a better way to do this, I'm all > >> ears. > >> > > >> > Zak > >> > > >> > On Fri, Dec 11, 2009 at 9:10 AM, Martin Makundi < > >> > martin.maku...@koodaripalvelut.com> wrote: > >> > > >> >> Why do you need it? Maybe there is a better way around it? > >> >> > >> >> ** > >> >> Martin > >> >> > >> >> 2009/12/11 Zak Johnson : > >> >> > I am trying to figure out a way to grab the url of a stateful page > >> >> instance. > >> >> > So for example, I want to click a link which creates a new page and > >> >> before > >> >> > redirecting to that page I want to grab the > ?wicket:interface=:1 > >> part > >> >> of > >> >> > the URL. I stumbled across a simple way to do this before, but I've > >> lost > >> >> > that code and can't remember how I did it. I know I can use the > page > >> map > >> >> > properties to get the page id and version, then just insert them > into > >> a > >> >> > string but I have to believe there is a better way. Also, it's > >> important > >> >> > that I NOT use bookmarkable pages. Any ideas? > >> >> > > >> >> > Zak > >> >> > > >> >> > >> >> - > >> >> 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: Limiting PageStore size
maybe wicket 2.0 will come with a TardisPageStore :) -igor On Fri, Dec 11, 2009 at 8:56 AM, Neil Curzon wrote: > You are right, I was not testing correctly. The pages were just cached and > clicking on any non-bookmarkable link in them caused a page expired. > > Thanks > > On Thu, Dec 10, 2009 at 6:11 PM, Matej Knopp wrote: > >> Are you sure you have been testing it correctly? The pagestore is >> cyclic. That means once it reaches it's limit it's the oldest pages >> get overwritten. >> >> -Matej >> >> On Thu, Dec 10, 2009 at 11:56 PM, Neil Curzon >> wrote: >> > Hi all, >> > >> > We're in the process of going live with our wicket app, so we're trying >> to >> > figure out certain details, currently PageStore size. >> > >> > I notice that by looking at the page store on disk, typically our pages >> add >> > 10-20kb each to the pagemap. The default 10mb limit would store a lot of >> > pages, but we were thinking of using a smaller limit. I tried adjusting >> the >> > limit to 100kb, and as expected, the page store size capped out at about >> > 100kb. >> > >> > I was expecting the consequence of this to be that the back button would >> not >> > work all the way to the beginning. Actually, what happens is that, after >> my >> > page map size hits the limit and stops growing, even if I continue to >> click >> > around the app for a while, I can still hit the back button all the way >> back >> > to the login, without hitting our "page expired" page. This surprised me. >> Is >> > this expected behavior? If the back button works with a 100kb page map >> file, >> > why use a 10mb one? >> > >> > Any help would be appreciated! >> > >> > Thanks, >> > Neil >> > >> >> - >> 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: WicketForge 0.6.0 for IDEA 9
Thanks to a patch from Andy Goossens, WicketForge 0.6.0 now has support for IDEA 9. You can visit the Google Code site to download it, or if you wait a couple days it will be available from the JetBrains plugin repository. http://code.google.com/p/wicketforge/downloads/list Thanks for your time. -- Nick Heudecker http://www.systemmobile.com
Re: Limiting PageStore size
You are right, I was not testing correctly. The pages were just cached and clicking on any non-bookmarkable link in them caused a page expired. Thanks On Thu, Dec 10, 2009 at 6:11 PM, Matej Knopp wrote: > Are you sure you have been testing it correctly? The pagestore is > cyclic. That means once it reaches it's limit it's the oldest pages > get overwritten. > > -Matej > > On Thu, Dec 10, 2009 at 11:56 PM, Neil Curzon > wrote: > > Hi all, > > > > We're in the process of going live with our wicket app, so we're trying > to > > figure out certain details, currently PageStore size. > > > > I notice that by looking at the page store on disk, typically our pages > add > > 10-20kb each to the pagemap. The default 10mb limit would store a lot of > > pages, but we were thinking of using a smaller limit. I tried adjusting > the > > limit to 100kb, and as expected, the page store size capped out at about > > 100kb. > > > > I was expecting the consequence of this to be that the back button would > not > > work all the way to the beginning. Actually, what happens is that, after > my > > page map size hits the limit and stops growing, even if I continue to > click > > around the app for a while, I can still hit the back button all the way > back > > to the login, without hitting our "page expired" page. This surprised me. > Is > > this expected behavior? If the back button works with a 100kb page map > file, > > why use a 10mb one? > > > > Any help would be appreciated! > > > > Thanks, > > Neil > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: Get stateful page url
urlfor(page) -igor On Fri, Dec 11, 2009 at 7:36 AM, Zak Johnson wrote: > Yes, your example is what I was doing in the past to execute the JS on the > form submit. My problem is getting the actual page url to feed into my JS > call. I know there is a way to get it because I've done it before, I just > can't remember how and I lost the original code. > > Zak > > > On Fri, Dec 11, 2009 at 9:25 AM, Martin Makundi < > martin.maku...@koodaripalvelut.com> wrote: > >> Hi! >> >> It is a bit similar to my problem once: >> http://osdir.com/ml/users-wicket.apache.org/2009-07/msg00471.html >> >> The idea is that you do an ajax form submit, then you return an ajax >> response that opens the result popup window. >> >> ** >> Martin >> >> 2009/12/11 Zak Johnson : >> > So the reason I need this is because I have a requirement to submit a >> form >> > which keeps the main page constant but opens the result page in a new >> > window. Also, it can't be a modal window. I need to be able to popup >> several >> > windows without taking control away from the main page, and without >> re-using >> > the same popup. Not my favorite design choice, but it's a requirement >> that I >> > can't get around. I had done this before by just feeding the new page >> > instance URL to a javascript function to popup the windows.I was planning >> on >> > getting the base URL from RequestUtils and just appending the unique page >> > url to the end. If someone knows of a better way to do this, I'm all >> ears. >> > >> > Zak >> > >> > On Fri, Dec 11, 2009 at 9:10 AM, Martin Makundi < >> > martin.maku...@koodaripalvelut.com> wrote: >> > >> >> Why do you need it? Maybe there is a better way around it? >> >> >> >> ** >> >> Martin >> >> >> >> 2009/12/11 Zak Johnson : >> >> > I am trying to figure out a way to grab the url of a stateful page >> >> instance. >> >> > So for example, I want to click a link which creates a new page and >> >> before >> >> > redirecting to that page I want to grab the ?wicket:interface=:1 >> part >> >> of >> >> > the URL. I stumbled across a simple way to do this before, but I've >> lost >> >> > that code and can't remember how I did it. I know I can use the page >> map >> >> > properties to get the page id and version, then just insert them into >> a >> >> > string but I have to believe there is a better way. Also, it's >> important >> >> > that I NOT use bookmarkable pages. Any ideas? >> >> > >> >> > Zak >> >> > >> >> >> >> - >> >> 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: Get stateful page url
Yes, your example is what I was doing in the past to execute the JS on the form submit. My problem is getting the actual page url to feed into my JS call. I know there is a way to get it because I've done it before, I just can't remember how and I lost the original code. Zak On Fri, Dec 11, 2009 at 9:25 AM, Martin Makundi < martin.maku...@koodaripalvelut.com> wrote: > Hi! > > It is a bit similar to my problem once: > http://osdir.com/ml/users-wicket.apache.org/2009-07/msg00471.html > > The idea is that you do an ajax form submit, then you return an ajax > response that opens the result popup window. > > ** > Martin > > 2009/12/11 Zak Johnson : > > So the reason I need this is because I have a requirement to submit a > form > > which keeps the main page constant but opens the result page in a new > > window. Also, it can't be a modal window. I need to be able to popup > several > > windows without taking control away from the main page, and without > re-using > > the same popup. Not my favorite design choice, but it's a requirement > that I > > can't get around. I had done this before by just feeding the new page > > instance URL to a javascript function to popup the windows.I was planning > on > > getting the base URL from RequestUtils and just appending the unique page > > url to the end. If someone knows of a better way to do this, I'm all > ears. > > > > Zak > > > > On Fri, Dec 11, 2009 at 9:10 AM, Martin Makundi < > > martin.maku...@koodaripalvelut.com> wrote: > > > >> Why do you need it? Maybe there is a better way around it? > >> > >> ** > >> Martin > >> > >> 2009/12/11 Zak Johnson : > >> > I am trying to figure out a way to grab the url of a stateful page > >> instance. > >> > So for example, I want to click a link which creates a new page and > >> before > >> > redirecting to that page I want to grab the ?wicket:interface=:1 > part > >> of > >> > the URL. I stumbled across a simple way to do this before, but I've > lost > >> > that code and can't remember how I did it. I know I can use the page > map > >> > properties to get the page id and version, then just insert them into > a > >> > string but I have to believe there is a better way. Also, it's > important > >> > that I NOT use bookmarkable pages. Any ideas? > >> > > >> > Zak > >> > > >> > >> - > >> 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 > >
SV: validate() form (Form.class) - how to validate form by hand?
> But in Wicket 1.4.3 the validate() method is protected so it's not > visible. By the way actually only hasError() method is public. In your Form class you can just override it with public visibility when you need it to be. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Get stateful page url
Hi! It is a bit similar to my problem once: http://osdir.com/ml/users-wicket.apache.org/2009-07/msg00471.html The idea is that you do an ajax form submit, then you return an ajax response that opens the result popup window. ** Martin 2009/12/11 Zak Johnson : > So the reason I need this is because I have a requirement to submit a form > which keeps the main page constant but opens the result page in a new > window. Also, it can't be a modal window. I need to be able to popup several > windows without taking control away from the main page, and without re-using > the same popup. Not my favorite design choice, but it's a requirement that I > can't get around. I had done this before by just feeding the new page > instance URL to a javascript function to popup the windows.I was planning on > getting the base URL from RequestUtils and just appending the unique page > url to the end. If someone knows of a better way to do this, I'm all ears. > > Zak > > On Fri, Dec 11, 2009 at 9:10 AM, Martin Makundi < > martin.maku...@koodaripalvelut.com> wrote: > >> Why do you need it? Maybe there is a better way around it? >> >> ** >> Martin >> >> 2009/12/11 Zak Johnson : >> > I am trying to figure out a way to grab the url of a stateful page >> instance. >> > So for example, I want to click a link which creates a new page and >> before >> > redirecting to that page I want to grab the ?wicket:interface=:1 part >> of >> > the URL. I stumbled across a simple way to do this before, but I've lost >> > that code and can't remember how I did it. I know I can use the page map >> > properties to get the page id and version, then just insert them into a >> > string but I have to believe there is a better way. Also, it's important >> > that I NOT use bookmarkable pages. Any ideas? >> > >> > Zak >> > >> >> - >> 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: Get stateful page url
So the reason I need this is because I have a requirement to submit a form which keeps the main page constant but opens the result page in a new window. Also, it can't be a modal window. I need to be able to popup several windows without taking control away from the main page, and without re-using the same popup. Not my favorite design choice, but it's a requirement that I can't get around. I had done this before by just feeding the new page instance URL to a javascript function to popup the windows.I was planning on getting the base URL from RequestUtils and just appending the unique page url to the end. If someone knows of a better way to do this, I'm all ears. Zak On Fri, Dec 11, 2009 at 9:10 AM, Martin Makundi < martin.maku...@koodaripalvelut.com> wrote: > Why do you need it? Maybe there is a better way around it? > > ** > Martin > > 2009/12/11 Zak Johnson : > > I am trying to figure out a way to grab the url of a stateful page > instance. > > So for example, I want to click a link which creates a new page and > before > > redirecting to that page I want to grab the ?wicket:interface=:1 part > of > > the URL. I stumbled across a simple way to do this before, but I've lost > > that code and can't remember how I did it. I know I can use the page map > > properties to get the page id and version, then just insert them into a > > string but I have to believe there is a better way. Also, it's important > > that I NOT use bookmarkable pages. Any ideas? > > > > Zak > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: Get stateful page url
Why do you need it? Maybe there is a better way around it? ** Martin 2009/12/11 Zak Johnson : > I am trying to figure out a way to grab the url of a stateful page instance. > So for example, I want to click a link which creates a new page and before > redirecting to that page I want to grab the ?wicket:interface=:1 part of > the URL. I stumbled across a simple way to do this before, but I've lost > that code and can't remember how I did it. I know I can use the page map > properties to get the page id and version, then just insert them into a > string but I have to believe there is a better way. Also, it's important > that I NOT use bookmarkable pages. Any ideas? > > Zak > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Get stateful page url
I am trying to figure out a way to grab the url of a stateful page instance. So for example, I want to click a link which creates a new page and before redirecting to that page I want to grab the ?wicket:interface=:1 part of the URL. I stumbled across a simple way to do this before, but I've lost that code and can't remember how I did it. I know I can use the page map properties to get the page id and version, then just insert them into a string but I have to believe there is a better way. Also, it's important that I NOT use bookmarkable pages. Any ideas? Zak
validate() form (Form.class) - how to validate form by hand?
Hello everyone, How to run validation of form (Form.class) by hand? Form.class javadoc says: "If you want you can call validate() to execute form validation, hasError() to find out whether validate() resulted in validation errors, and updateFormComponentModels() to update the models of nested form components. " But in Wicket 1.4.3 the validate() method is protected so it's not visible. By the way actually only hasError() method is public. Why is this method protected? Is javadoc stale or there is just a misunderstanding on my side? Thank you. Best regards, michalb - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AjaxEditableLabel
Hi, Well, I have overrided AjaxEditableLabel to use the wicketAjaxPost (that's solved my problem), because I shall not change the URIEncoding (there may be conflits with others applications running under the Tomcat server and I'm not allowed to do that :'( ). Thanks for your reply Regards Julien Roche Aka Indiana_Jules On Tue, Dec 8, 2009 at 8:30 PM, TahitianGabriel wrote: > > Try to add URIEncoding="UTF-8" in the Connector meta in the server.xml file > of Tomcat: > > > > Should solve your problem... > > Regards, > > Gabriel. > -- > View this message in context: > http://old.nabble.com/AjaxEditableLabel-tp26676156p26699350.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 > >