RE: Help with integrating NTLM in wicket application
You can try http://jcifs.samba.org/ for NTLM authentication, i have used it in the past and it just works. jchappelle wrote: > > Bryan, > > We have an NTLMPage that we redirect the browser to. If there is no > authorization header this is what we do. > > String auth = request.getHeader("Authorization"); > if (auth == null) > { > setRedirect(false); > response.setHeader("WWW-Authenticate", "NTLM"); > throw new AbortWithHttpStatusException(401, false); > > } > > I hope this helps. > > Thanks, > > Josh > > -Original Message- > From: Bryan Montgomery [mailto:mo...@english.net] > Sent: Friday, March 19, 2010 3:36 PM > To: users@wicket.apache.org > Subject: Help with integrating NTLM in wicket application > > Hello, > I have two applications, one a stand alone web app and one wicket based. > Currently they both use form authentication however I am trying to add > NTLM > authentication for SSO from our windows intranet. > > Leveraging jcifs, I've been able to do this pretty easily with the stand > alone web app. However I've been struggling over the last couple of days > with the wicket app. > > I'll preface this with the caveat that I have only done some very simple > stuff with wicket to date. > > The flow is that the user makes a request and the program flow is > redirected > to LoginPage, and in turn to LoginPanel. In LoginPanel the first thing it > does is check if there is an authentication header, if not which is the > case, it sets the status to SC_UNAUTHORIZED and adds a header of > "WWW-Authenticate: NTLM". I then started with flushing the response and > not > adding anything else. > > In theory this response should tell the browser to resubmit the same > request > with the authentication information. However, from our log files I can see > that the request second time around only has the Login in the request > cycle, > compared to the startup page being in the request cycle initally. > > After looking on the web I've tried various combinations including trying > continueToOriginalDestination in the onBeforeRender method. > > One thing I've noticed is that it seems that setting the status and header > on the > ((WebResponse)response).getHttpServletResponse() only takes effect when I > do > not call flushBuffer() on it. This subseqently throws an exception in the > wicket processing because the response has already been closed. > > I feel that I am so close - but can't quite get it right! > > I was hoping to integrate this with minimal changes to the code but am > thinking that maybe I should start from scratch? I've found a few posts > online of similar situations but I haven't been able to put all the pieces > together yet. > > Appreciate the help in getting this sorted out. > > Thanks, > Bryan. > > http://markmail.org/message/cjy4o4ndtigius55#query:+page:1+mid:t3foamferfh2t > wwj+state:results > http://old.nabble.com/Wicket-NTLM-Single-sign-on-integration-Question-td1786 > 8669.html > > > - > 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/Help-with-integrating-NTLM-in-wicket-application-tp27963924p27987318.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [wicket] Load Testing Wicket Applications
Umm, you're right probably not much. The way we use it was to record against a HTTPS connection where the jmeter http-proxy wasn't supporting it at that time (i dont know if it supported right now). nino martinez wael wrote: > > Why not record it with the Jmeter http proxy? And do the same? What does > badboy bring to the game? > > > http://www.exforsys.com/tutorials/jmeter/using-http-proxy-server-to-record-page-requests.html > > 2010/1/29 Juan Carlos Garcia M. > >> >> What about using BadBoy App for recording and then exporting the recorded >> test suite into a JMeter Script for load testing your application: >> >> http://www.badboy.com.au/ >> >> >> nino martinez wael wrote: >> > >> > I think it will be hard, because there are so many options for >> everything. >> > I >> > mean for that kind of tool you would assume a lot of things. And in the >> > end >> > you will probably end up with something similar to jmeter.. Maybe you >> > could >> > create a plugin for jmeter ? >> > >> > I still think recording scenarios with Jmeter and correcting them to >> work >> > are the most painless solution. >> > >> > my 2 cents >> > >> > 2010/1/28 James Perry >> > >> >> Today I looked for a programmatic way to load test a Wicket >> >> application and there doesn't appear to be any tools at present to do >> >> so. I was thinking of writing one that load tests Wicket >> >> applications in a programmatic manner, which IMHO will be cleaner than >> >> using regular expressions with JMeter. I was thinking of an API that >> >> specifies the a test suite contain individual load tests, which >> >> contain the amount of threads to create and the target components to >> >> test. I do not have a deep knowledge of the internals of Wicket so it >> >> would be good to receive advice on the best way to program this tool. >> >> >> >> Best, >> >> James. >> >> >> >> - >> >> 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/-wicket--Load-Testing-Wicket-Applications-tp27360294p27376601.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > -- View this message in context: http://old.nabble.com/-wicket--Load-Testing-Wicket-Applications-tp27360294p27376940.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [wicket] Load Testing Wicket Applications
What about using BadBoy App for recording and then exporting the recorded test suite into a JMeter Script for load testing your application: http://www.badboy.com.au/ nino martinez wael wrote: > > I think it will be hard, because there are so many options for everything. > I > mean for that kind of tool you would assume a lot of things. And in the > end > you will probably end up with something similar to jmeter.. Maybe you > could > create a plugin for jmeter ? > > I still think recording scenarios with Jmeter and correcting them to work > are the most painless solution. > > my 2 cents > > 2010/1/28 James Perry > >> Today I looked for a programmatic way to load test a Wicket >> application and there doesn't appear to be any tools at present to do >> so. I was thinking of writing one that load tests Wicket >> applications in a programmatic manner, which IMHO will be cleaner than >> using regular expressions with JMeter. I was thinking of an API that >> specifies the a test suite contain individual load tests, which >> contain the amount of threads to create and the target components to >> test. I do not have a deep knowledge of the internals of Wicket so it >> would be good to receive advice on the best way to program this tool. >> >> Best, >> James. >> >> - >> 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/-wicket--Load-Testing-Wicket-Applications-tp27360294p27376601.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: Ajax editable image @L
There isn't such component in wicket to achieve that, but it should be fairly easy to build i.e: 1-Having a Panel with the FileUpload that you want 2-Having a Panel with the image tag that you want 3-Having a WebMarkup Container that act as a placeHolder for either 1 or 2 at a given time. on you onClick behavior of the image panel you could call something like [ImagePanel.this.replaceWith(referenceOfFileUploadPanel)] To just Swap between panels, take a look at this http://pawelzubkiewicz.blogspot.com/2009/06/wicket-swapping-replacing-fragments.html example Hope you get the Idea alecswan1 wrote: > > I am using Wicket to implement an image component which behaves > similarly to AjaxEditableLabel. > > When the component is rendered it should look like a regular image > .. . When the user clicks on the image, it should display > a file upload component which will allow the user to replace the > image. > > What is the easiest way to implement this behavior? Is there a > component that already does this? If not, which Wicket class should I > extend? > > Thanks, > > Alec > > - > 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/Ajax-editable-image-%40L-tp27084451p27085401.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: How to close a Wicket application?
@Giovanni, Maybe you should re-think that requirement. Even thought your intentions are good, if you review carefully your statement "if some important configuration is missing", what could be missing if you deploy your application as a self contained war? You mean like DataSources or Container specific configuration? If that happens to you then you should need to review your deployment strategy. Or if you can explain more what are you trying to achieve or explain what problem is you actually having, we could find you an alternate solution. Giovanni-40 wrote: > > Hi Martjin, > > I tried with System.exit(1) on Weblogic, but it is also stopping the whole > Weblogic server. It seems that this solution is too strong. :) > > Maybe the solution ofMartin Grigorov is softer. > > At the end, we are using the ApplicationContext.close() method, which > seems to stop the Spring beans, except the Wicket bean (I don't understand > why). Then, if a user tries to call a Wicket page, he will get an error, > not because the Wicket app is down, but because the collaborating Spring > beans are down. > > regards, > giovanni > > > > > > > > From: Martijn Dashorst > To: users@wicket.apache.org > Sent: Thu, January 7, 2010 12:13:53 PM > Subject: Re: How to close a Wicket application? > > Call System.exit(1) ... that will do the trick. > > Always nice to see all applications deployed to a container disappear. > > Martijn > > On Thu, Jan 7, 2010 at 12:03 PM, Erik van Oosten > wrote: >> There is no hook in Wicket to stop. Wicket normally starts and ends with >> the >> web context it is running in. So ending the application is done by >> undeploying the web-app. You'll need to find hooks in your serlvet >> container. Spring will automatically shutdown with the web context as >> well. >> >> Regards, >> Erik. >> >> Giovanni wrote: >>> >>> I am using Spring + Wicket. >>> >>> When the Wicket application starts, if some important configuration is >>> missing, I want to close all the application context, destroying all the >>> Spring beans, including also the Wicket application, which is configured >>> as >>> a Spring bean by SpringWebApplicationFactory. >>> >>> I used the close() (I also tried stop() and destroy() methods) of the >>> ApplicationContext, but it doesn't destroy the Wicket app. >>> >>> I then searched for a method of Wicket Application, which allows to >>> stop/close the webapp, but I did not find it. >>> >>> How is it possible to stop a Wicket application from inside the >>> application itself (that is suicide)? >>> >>> Best regards, >>> giovanni >>> >> >> -- >> Erik van Oosten >> http://day-to-day-stuff.blogspot.com/ >> >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > > > -- > Become a Wicket expert, learn from the best: http://wicketinaction.com > Apache Wicket 1.4 increases type safety for web applications > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4 > > - > 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/How-to-close-a-Wicket-application--tp27057651p27064635.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: Accessing Page components
Totally right! :) Pieter Degraeuwe wrote: > > It is indeed a better (more proper) way to do it your way, but the Link > object will be serialized as well, since it is not a > DetachableLoadableModel > if I'm not mistaking... > > > > On Thu, Dec 17, 2009 at 6:15 PM, Juan Carlos Garcia M. > wrote: > >> >> Pieter, passing the [*final *Link link = new Link();] object to the >> anonymous >> AjaxSubmitLink will Serialize the the link object itself. >> >> why not using the form.getModelObject() from the form parameter in >> ajaxsubmitl...@onsubmit()? >> >> *new LinkDAO().save(form.getModelObject())*; >> >> >> >> Pieter Degraeuwe wrote: >> > >> > class LinkForm extends Form { >> >private AddLinkCallback callback; >> >public LinkForm(String id, *final *AddLinkCallback callback) { >> >super(id); >> >this.callback = callback; >> > >> >*final *Link link = new Link(); >> >this.setModel(new Model(link)); >> >add(new TextField("name", new PropertyModel(link, >> > "name"))); >> >add(new TextField("address",new PropertyModel(link, >> > "address"))); >> >add(new AjaxSubmitLink("ok"){ >> >@Override >> >protected void onSubmit(AjaxRequestTarget >> target, >> > Form form) { >> >*new LinkDAO().save(l)*; >> >callback.onAdd(target); >> >} >> >}); >> >} >> > >> >@Override >> >protected void onSubmit() { >> > System.out.println("ok"); >> > Link l = (Link)this.getModelObject(); >> >new LinkDAO().save(l); >> > >> > callback.onAdd(target ); // >> > ??? >> >} >> > } >> > On Thu, Dec 17, 2009 at 3:02 PM, marioosh.net >> > wrote: >> > >> >> >> >> >> >> >> >> Pieter Degraeuwe wrote: >> >> > >> >> > I don't have the habit to exend from Form, since I don't need to put >> >> logic >> >> > there (I put it in my submitLinks/buttons) >> >> > >> >> > On Thu, Dec 17, 2009 at 2:45 PM, Pieter Degraeuwe < >> >> > pieter.degrae...@systemworks.be> wrote: >> >> > >> >> >> Use the onSubmit(AjaxRequestTarget target) of your AjaxSubmitLink >> >> instead >> >> >> of your form. >> >> >> (Note that if you make use of FeedbackPanel, youd should also >> override >> >> >> the >> >> >> onError() method of that ajaxlink to 'refresh' your feedback panel) >> >> >> >> >> > >> >> >> >> At first I wanted to do this in onSubmit of AjaxSubmitLink, but i've >> >> problem >> >> to get name and address components inside this method :( >> >> >> >> -- >> >> View this message in context: >> >> >> http://old.nabble.com/Accessing-Page-components-tp26824375p26828432.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 >> >> >> >> >> > >> > >> > -- >> > Pieter Degraeuwe >> > Systemworks bvba >> > Belgiëlaan 61 >> > 9070 Destelbergen >> > GSM: +32 (0)485/68.60.85 >> > Email: pieter.degrae...@systemworks.be >> > visit us at http://www.systemworks.be >> > >> > >> >> -- >> View this message in context: >> http://old.nabble.com/Accessing-Page-components-tp26824375p26831586.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 >> >> > > > -- > Pieter Degraeuwe > Systemworks bvba > Belgiëlaan 61 > 9070 Destelbergen > GSM: +32 (0)485/68.60.85 > Email: pieter.degrae...@systemworks.be > visit us at http://www.systemworks.be > > -- View this message in context: http://old.nabble.com/Accessing-Page-components-tp26824375p26835876.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: Accessing Page components
Pieter, passing the [*final *Link link = new Link();] object to the anonymous AjaxSubmitLink will Serialize the the link object itself. why not using the form.getModelObject() from the form parameter in ajaxsubmitl...@onsubmit()? *new LinkDAO().save(form.getModelObject())*; Pieter Degraeuwe wrote: > > class LinkForm extends Form { >private AddLinkCallback callback; >public LinkForm(String id, *final *AddLinkCallback callback) { >super(id); >this.callback = callback; > >*final *Link link = new Link(); >this.setModel(new Model(link)); >add(new TextField("name", new PropertyModel(link, > "name"))); >add(new TextField("address",new PropertyModel(link, > "address"))); >add(new AjaxSubmitLink("ok"){ >@Override >protected void onSubmit(AjaxRequestTarget target, > Form form) { >*new LinkDAO().save(l)*; >callback.onAdd(target); >} >}); >} > >@Override >protected void onSubmit() { > System.out.println("ok"); > Link l = (Link)this.getModelObject(); >new LinkDAO().save(l); > > callback.onAdd(target ); // > ??? >} > } > On Thu, Dec 17, 2009 at 3:02 PM, marioosh.net > wrote: > >> >> >> >> Pieter Degraeuwe wrote: >> > >> > I don't have the habit to exend from Form, since I don't need to put >> logic >> > there (I put it in my submitLinks/buttons) >> > >> > On Thu, Dec 17, 2009 at 2:45 PM, Pieter Degraeuwe < >> > pieter.degrae...@systemworks.be> wrote: >> > >> >> Use the onSubmit(AjaxRequestTarget target) of your AjaxSubmitLink >> instead >> >> of your form. >> >> (Note that if you make use of FeedbackPanel, youd should also override >> >> the >> >> onError() method of that ajaxlink to 'refresh' your feedback panel) >> >> >> > >> >> At first I wanted to do this in onSubmit of AjaxSubmitLink, but i've >> problem >> to get name and address components inside this method :( >> >> -- >> View this message in context: >> http://old.nabble.com/Accessing-Page-components-tp26824375p26828432.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 >> >> > > > -- > Pieter Degraeuwe > Systemworks bvba > Belgiëlaan 61 > 9070 Destelbergen > GSM: +32 (0)485/68.60.85 > Email: pieter.degrae...@systemworks.be > visit us at http://www.systemworks.be > > -- View this message in context: http://old.nabble.com/Accessing-Page-components-tp26824375p26831586.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: Parameterized Component
Johan, Can you elaborate more on that please? What is this new solution? Johan Compagner wrote: > > so you where talking about property models in general (not the compound) > > We have a solution for that now > > On Tue, Dec 15, 2009 at 11:25, Martin Makundi < > martin.maku...@koodaripalvelut.com> wrote: > >> Yes, but it ties your beans to wicket ids. More refactoring and >> maintenance work. >> >> Anyways, if it works for you, use it. >> >> my 2cents >> >> ** >> Martin >> >> 2009/12/15 Johan Compagner : >> > why not >> > it kills a lot of code. >> > >> > >> > On Mon, Dec 14, 2009 at 17:45, Martin Makundi < >> > martin.maku...@koodaripalvelut.com> wrote: >> > >> >> I wouldn't use CPM for anything serious anyways... >> >> >> >> my 2cents >> >> >> >> ** >> >> Martin >> >> >> >> 2009/12/14 Xavier López : >> >> > Hi, >> >> > >> >> > In my application I have a number of fields that allow validation, >> by >> >> means >> >> > of a validation CheckBox. In order to provide some flexibility for >> this >> >> kind >> >> > of validation fields, I'd like to have them implemented in a >> Component >> >> (i.e. >> >> > ValidationTickPanel), so that they provide their own markup and >> other >> >> panels >> >> > using it should not know about its contents. ValidationTickPanel >> extends >> >> > Panel in order to be able to provide own markup. >> >> > >> >> > The problem is, I'd like to have the CheckBox's wicket:id set from >> the >> >> > parent panel (in order to use CompoundPropertyModel). But I'm afraid >> that >> >> > it's impossible to have a variable wicket_id inside >> >> > ValidationTickPanel.html... >> >> > >> >> > public class ValidationTick extends Panel implements >> RestrictedComponent >> >> { >> >> >public ValidationTick(String componentId, String checkId, IModel >> >> > checkModel){ >> >> >super(componentId); >> >> >CheckBox check = new CheckBox(checkId, checkModel); >> >> >Label label = new Label(checkId+"Label", new >> >> > StringResourceModel("")); >> >> >add(check); >> >> >add(label); >> >> >} >> >> > } >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > Usually, checkModel would be null as the goal would be to use >> >> > compoundPropertyModel on the checkBox..My question is, is it >> possible >> to >> >> > achieve this ? Or should I be discarding the CPM idea and passing >> for >> >> > instance a PropertyModel to ValidationTickPanel ? >> >> > >> >> > Thanks a lot, >> >> > Xavier >> >> > >> >> >> >> - >> >> 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/Parameterized-Component-tp26780051p26795873.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: Can't get attribute from AuthenticatedWebSession for no-role -needed page.
At any time, WebSession.get() will give you Wicket Session Object, but it will not get persisted until you actually hit a page which requires state full behavior. (Someone please correct me if im wrong.) liny wrote: > > Hi, > > "user id" is the username. I want to set user id into session attribute. > After I call WebSession.bind(), now the problem is solved. > But why MyauthenticatedWebSession is temporary in default? (no session id) > > > > Pedro Santos-6 wrote: >> >> Please, what is "user id" that you refers? >> >> On Wed, Sep 9, 2009 at 5:31 AM, Anders wrote: >> >>> Hi, >>> >>> I can get the user id attribute from my authenticatedWebSession in a >>> role-needed page. >>> But I can't get user id when I go to no-role-needed page. >>> Do I need to override newSession() method in WebApplication? >>> Please help me~ >>> >>> Belows are my classes: >>> >>> public class HelloWorldApplication extends AuthenticatedWebApplication >>> { >>> @Override >>> protected Class getWebSessionClass() >>> { >>>return MyAuthenticatedWebSession.class; >>> } >>> >>> @Override >>> protected Class getSignInPageClass() >>> { >>>return MySignInPage.class; >>> } >>> } >>> >>> public class MyAuthenticatedWebSession extends AuthenticatedWebSession >>> { >>> public MyAuthenticatedWebSession(Request request) >>> { >>>super(request); >>> } >>> >>> @Override >>> public boolean authenticate(String username, String password) >>> { >>>//do some authentication process >>>setAttribute("userId", username); >>>return true; >>> } >>> >>> @Override >>> public Roles getRoles() >>> { >>>if(isSignedIn()) >>>{ >>> Roles roles = getUserRoles(); >>> if(roles == null) >>> { >>>roles = new Roles(); >>>roles.add("ROLE_USER"); >>> } >>> return roles; >>>} >>>return null; >>> } >>> >>> public static MyAuthenticatedWebSession get() >>> { >>>return (MyAuthenticatedWebSession) Session.get(); >>> } >>> >>> public String getUserId() >>> { >>>return (String) getAttribute("userId"); >>> } >>> >>> public Roles getUserRoles() >>> { >>>return (Roles) getAttribute("roles"); >>> } >>> } >>> >>> -- >>> -- >>> ~Mia は 最高!~ >>> -- >>> >> >> > > -- View this message in context: http://www.nabble.com/Can%27t-get-attribute-from-AuthenticatedWebSession-for-no-role--needed--page.-tp25360742p25364559.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: Apache Wicket 1.4 takes type safety to the next level
Congratulations to the Wicket Team, and everyone who contributed to make this happens. Thanks for this great Framework. Carl-Eric Menzel-5 wrote: > > On Thu, 30 Jul 2009 12:54:29 +0200 > Martijn Dashorst wrote: > >> The Apache Wicket project is proud to announce the release of Apache >> Wicket 1.4. > > Congratulations to the team and all contributors, and a big thank you! > > Carl-Eric > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://www.nabble.com/Apache-Wicket-1.4-takes-type-safety-to-the-next-level-tp24736219p24747196.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: AjaxUpdate FeedbackPanel And window.open popup
Hi, You can append a javascript to the AjaxRequestTarget something like: ajaxRequestTarget.add(myPanelToUpdate); ajaxRequestTarget.appendJavascript("alert('hello');"); Check: http://www.mkyong.com/wicket/how-to-call-javscript-after-ajax-update-wicket/ Hope this is what you looking for. MartinM wrote: > > Hi! > > Is it possible to simultaneously AjaxUpdate FeedbackPanel And > window.open popup ? > > I need to open a popup (external site) and simultaneously give > instructions on feedback panel. Anyone done this before? > > ** > Martin > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://www.nabble.com/AjaxUpdate-FeedbackPanel-And-window.open-popup-tp24452985p24453443.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: Detaching and ModalWindow causes race condition
@Martijn, did you came up with a solution to this. I'll be glad to hear it. Juan Carlos Garcia M. wrote: > > @Martijn, did came up with a solution to this. I'll be glad to hear it. > > Thanks > > > Per Lundholm wrote: >> >> Oh, that is a good one. >> >> You could make it a modal window. After a while that window (I assume) >> would get to contain more and more settings. Then all of a sudden, the >> last setting you added will really make statistics take a very long >> time. Since the user probably can't foresee that, you wish to confirm >> that the user have understood the implications. So you need a modal >> window that ... oops ... you are already in a modal window. >> >> The first thing is to think about as an alternative is to start with >> direct manipulation. Is there any way you could change the settings >> right when you are looking at the statistics? Typical example is the >> familiar "click on column heading to sort table on contents of that >> column". Consider drag-n-drop objects if that is natural. >> >> Second is to have the modal window inline on the page in panel. After >> all, selected settings and the result in the same window feels better >> than switching to another window, modal or not and then back. But >> there may not be room for that. Can you split the settings in groups >> to inline on several places on the page? >> >> Next thing to consider is to have it on another page and here comes >> another concern in regarding the concept of settings, life cycle. Do >> all settings have the same settings? Which are per request, per >> session, per user, per application? Side point? Well, it sure controls >> presentation since settings with different life cycle should not be >> presented together. >> >> If the selection of statistics is a very separate activity, maybe it >> should be on separate page before the page that presents the result? >> Changing settings would be reached by pressing the back button. >> >> As you understand, I am guessing here as I have not much to go on. But >> these are my thoughts. Try direct manipulation, keep selections >> visible all the time or resort to a separate page. Save modal windows >> for that yes/no confirmation. You will need it eventually. >> >> Kindly, >> Per >> >> >> On Sat, Jul 4, 2009 at 2:13 PM, Eyal Golan wrote: >>> Per, >>> I see what you're saying and I have a question. >>> How would you implement (UI concern) a setting page? >>> What I mean is, suppose I have a page that shows some statistics. >>> The statistics can be set by the user. >>> We implemented a link / button that opens up a modal window to select >>> the >>> statistics. >>> How would you do it? >>> >>> >>> Eyal Golan >>> egola...@gmail.com >>> >>> Visit: http://jvdrums.sourceforge.net/ >>> LinkedIn: http://www.linkedin.com/in/egolan74 >>> >>> P Save a tree. Please don't print this e-mail unless it's really >>> necessary >>> >>> >>> On Sat, Jul 4, 2009 at 1:40 PM, Per Lundholm >>> wrote: >>> >>>> Sorry Martijn but you are so ahead of me that I can't even follow the >>>> suggestion you make. >>>> >>>> However, I just can support you on not using modal windows. We have a >>>> back office application written in Swing that use modal windows a lot >>>> and it is just getting worse by each feature added. >>>> >>>> Modal windows are really a last resort and should not be used at all, >>>> if you can avoid it. What I have seen is that they tend to grow in >>>> functionality over time and suddenly you are faced with the question: >>>> "should I put a modal window here, oh, I am already in a modal >>>> window". >>>> >>>> (Ranting further), modal windows are primarily for non-expert users >>>> that need guidance when you wish to be certain that they know the >>>> implications of what they do. There should be nothing but some >>>> information and a yes/no question. >>>> >>>> Apparently, it seems that the users are pushing you around and >>>> customer is always right, so what to do? I suggest a step back and >>>> present a complete new style of interaction that would give users a >>>> much better flow in the interaction than now. >>>> >>>> Th
Re: Detaching and ModalWindow causes race condition
@Martijn, did came up with a solution to this. I'll be glad to hear it. Thanks Per Lundholm wrote: > > Oh, that is a good one. > > You could make it a modal window. After a while that window (I assume) > would get to contain more and more settings. Then all of a sudden, the > last setting you added will really make statistics take a very long > time. Since the user probably can't foresee that, you wish to confirm > that the user have understood the implications. So you need a modal > window that ... oops ... you are already in a modal window. > > The first thing is to think about as an alternative is to start with > direct manipulation. Is there any way you could change the settings > right when you are looking at the statistics? Typical example is the > familiar "click on column heading to sort table on contents of that > column". Consider drag-n-drop objects if that is natural. > > Second is to have the modal window inline on the page in panel. After > all, selected settings and the result in the same window feels better > than switching to another window, modal or not and then back. But > there may not be room for that. Can you split the settings in groups > to inline on several places on the page? > > Next thing to consider is to have it on another page and here comes > another concern in regarding the concept of settings, life cycle. Do > all settings have the same settings? Which are per request, per > session, per user, per application? Side point? Well, it sure controls > presentation since settings with different life cycle should not be > presented together. > > If the selection of statistics is a very separate activity, maybe it > should be on separate page before the page that presents the result? > Changing settings would be reached by pressing the back button. > > As you understand, I am guessing here as I have not much to go on. But > these are my thoughts. Try direct manipulation, keep selections > visible all the time or resort to a separate page. Save modal windows > for that yes/no confirmation. You will need it eventually. > > Kindly, > Per > > > On Sat, Jul 4, 2009 at 2:13 PM, Eyal Golan wrote: >> Per, >> I see what you're saying and I have a question. >> How would you implement (UI concern) a setting page? >> What I mean is, suppose I have a page that shows some statistics. >> The statistics can be set by the user. >> We implemented a link / button that opens up a modal window to select the >> statistics. >> How would you do it? >> >> >> Eyal Golan >> egola...@gmail.com >> >> Visit: http://jvdrums.sourceforge.net/ >> LinkedIn: http://www.linkedin.com/in/egolan74 >> >> P Save a tree. Please don't print this e-mail unless it's really >> necessary >> >> >> On Sat, Jul 4, 2009 at 1:40 PM, Per Lundholm >> wrote: >> >>> Sorry Martijn but you are so ahead of me that I can't even follow the >>> suggestion you make. >>> >>> However, I just can support you on not using modal windows. We have a >>> back office application written in Swing that use modal windows a lot >>> and it is just getting worse by each feature added. >>> >>> Modal windows are really a last resort and should not be used at all, >>> if you can avoid it. What I have seen is that they tend to grow in >>> functionality over time and suddenly you are faced with the question: >>> "should I put a modal window here, oh, I am already in a modal >>> window". >>> >>> (Ranting further), modal windows are primarily for non-expert users >>> that need guidance when you wish to be certain that they know the >>> implications of what they do. There should be nothing but some >>> information and a yes/no question. >>> >>> Apparently, it seems that the users are pushing you around and >>> customer is always right, so what to do? I suggest a step back and >>> present a complete new style of interaction that would give users a >>> much better flow in the interaction than now. >>> >>> Thanks for reading. :-) >>> >>> Kindly, >>> Per >>> >>> On Fri, Jul 3, 2009 at 3:11 PM, Martijn >>> Dashorst wrote: >>> > In our apps we (wrongfully IMO) make heavily use of ModalWindow (our >>> > users seem to like them). We ran into an issue/race condition where we >>> > have shared a model between the calling page and the ModalWindow. We >>> > have an autocomplete textfield with an onblur handler attached. This >>> > onblur handler is triggered when the modal window is shown resulting >>> > in two parallel Ajax requests to the server. This causes the shared >>> > model to be attached and detached at the same time, resulting in >>> > rather funky behavior. >>> > >>> > I know that one solution is to not share the model between the >>> > ModalWindow and the calling page. But we are looking for alternative >>> > (more general) solutions. >>> > >>> > Options we thought of: >>> > - would locking the session for page directed requests implementable >>> > (i.e. let resource requests through the barrier, but not both requests >>> > to the calling page
Re: Trying to add string literal to Javascript for Google Analytics
Have you Try using a http://wicket.apache.org/docs/wicket-1.3.2/wicket/apidocs/org/apache/wicket/util/template/TextTemplateHeaderContributor.html HeaderContribution , factoring out that JavaScript into a separate .js and then do variable Interpolation. See the following example at http://chillenious.wordpress.com/2006/05/03/wicket-header-contributions-with-behaviors/ Eelco Hillenius blog's Hope this is what you need. Neil Ferguson-2 wrote: > > Thanks for the reply. I'd rather keep the script in my markup if > possible. Is there any way to do this so that I don't have to output > the entire Javascript block from my Java code? > > Thanks. > > Neil. > > On Mon, Jun 22, 2009 at 6:24 AM, Igor Vaynberg > wrote: >> output the entire javascript block as a string using new >> label().setescapemodelstrings(false) >> >> -igor >> >> On Sun, Jun 21, 2009 at 11:18 AM, Neil Ferguson >> wrote: >>> Hi all. >>> >>> I'm trying to set a string literal in some Javascript, in order to try >>> and pass a page URL to Google Analytics. I've tried creating a panel >>> with the following markup, and putting it just before the end of my >>> body tag: >>> >>> >> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> >>> http://www.w3.org/1999/xhtml"; >>> xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd"; >>> >>> >>> >>> var gaJsHost = (("https:" == >>> document.location.protocol) ? >>> "https://ssl."; : "http://www.";); >>> document.write(unescape("%3Cscript src='" >>> + gaJsHost + >>> "google-analytics.com/ga.js' >>> type='text/javascript'%3E%3C/script%3E")); >>> >>> >>> try { >>> var pageTracker = >>> _gat._getTracker("TRACKINGID"); >>> pageTracker._trackPageview(''); >>> } catch(err) {} >>> >>> >>> >>> >>> >>> As you can see, I'm trying to set the parameter of the _trackPageview >>> method (or function, whatever it's called in Javascript). I've tried >>> doing this using a span tag, as you can see, but it doesn't work, and >>> I get the following message: >>> >>> "WicketMessage: The component(s) below failed to render. A common >>> problem is that you have added a component in code but forgot to >>> reference it in the markup (thus the component will never be >>> rendered)." >>> >>> The Java code for my panel looks like the following: >>> >>> public class FooterPanel extends Panel { >>> >>> private static final long serialVersionUID = >>> 9196070061210793618L; >>> >>> public FooterPanel(String id, String analyticsPagename) { >>> super(id); >>> Label label = new Label("analyticspagename", >>> analyticsPagename); >>> label.setRenderBodyOnly(true); >>> add(label); >>> } >>> >>> } >>> >>> I didn't really expect this to work, but I can't think of a better >>> way. I'm sure that I'm missing something really obvious here, so can >>> anyone help? >>> >>> BTW, I'm really enjoying using Wicket. I have a severe allergy to XML, >>> so it's brilliant. >>> >>> 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 > > > -- View this message in context: http://www.nabble.com/Trying-to-add-string-literal-to-Javascript-for-Google-Analytics-tp24137280p24152508.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: JDeveloper - Can I get a show of hands?
I always thought God used only in LISP :) Nicolas Melendez wrote: > > god used Eclipse 1.0 to develop universe. > > NM > Software Developer - Buenos aires, Argentina. > > On Fri, Jun 19, 2009 at 5:44 PM, Martijn Reuvers > wrote: > >> You might want to try Netbeans for UML (there is a single plugin, >> install it and it works fine). I have not had any problems with it, it >> has quite some features (similar to the ones in JDeveloper). >> >> Use SQLDeveloper (of Oracle as well) if you need to replace Toad, >> however keep in mind it does not have all the dba features Toad >> provides, no free tool has these in fact. >> >> Well Apex is Apex, it cannot be replaced easily as its tied so closely >> to the oracle database and its pl/sql. >> >> As soon as you use Maven there is no need anymore for JDeveloper, at >> least not for running/building the project. If you really require >> specific features for instance for Apex you can still create a single >> workspace next to the normal maven one and use that separately. >> >> As for weblogic, just deploy a war manually through its console if you >> need to test it. However for faster testing I'd use Jetty with mvn >> jetty:run (you can always add a weblogic*.xml to the final war to >> override some libraries or so). >> >> >> On Fri, Jun 19, 2009 at 5:26 PM, Dane Laverty >> wrote: >> > I've really enjoyed getting to use Maven on my recent projects. I'm no >> > Maven expert, but I'm finding that I don't have to be -- it really >> > just does a great job. Getting Maven working with JDeveloper has not >> > been going well so far, so that's been one hangup. >> > >> > There are a few reasons for the department-wide IDE mandate. Our >> > manager has just discovered UML (I don't know anything about it, to be >> > honest), and JDeveloper provides UML functionality out of the box, >> > while any of the free Eclipse UML plugins I could find required a >> > mountain of dependencies and don't appear to work as smoothly as the >> > JDev one. Also, we're trying to replace TOAD as our database tool, and >> > JDev looks like it can do that. The third reason is that most of our >> > applications are Oracle ApEx, and JDev has stuff for that too. >> > >> > I'm trying to port my existing apps to JDeveloper, but without much >> > success. The main problems so far are: >> > - How do I import a Wicket project using the Maven standard directory >> > layout? (I am aware of the Maven JDev plugin for JDev 10, but it has >> > issues with JDev 11) >> > - How do I run a Wicket app in JDeveloper using the internal WebLogic >> server? >> > - Does JDeveloper have some sort of Maven-like functionality for >> > project lifecycle management? >> > >> > I imagine (hope) that most of these questions have easy answers, but >> > I'm just not finding a lot of relevant online >> > documentation/discussion. Most of the JDeveloper web app documentation >> > is focused on EJBs or basic Servlet/JSP-based apps. >> > >> > >> > On Fri, Jun 19, 2009 at 3:53 AM, James >> > Carman wrote: >> >> +1 on using Maven. Most folks at our job site use eclipse, but I'm an >> >> IntelliJ junkie (they got me hooked many years ago and I can't break >> >> free). For the most part, we don't have issues between environments, >> >> provided folks have their plugins set up correctly. >> >> >> >> On Fri, Jun 19, 2009 at 6:39 AM, Martijn Reuvers >> >> wrote: >> >>> >> >>> When you use ADF, then stick to JDeveloper you'll get a lot of >> >>> integration for your application and can really build applications >> >>> fast. >> >>> >> >>> However if you use open-source frameworks like wicket, you're better >> >>> off using one of the other IDE's (Netbeans, Eclipse, IntelliJ). Just >> >>> use maven or so, then your management has nothing to say, as it does >> >>> not really matter what IDE you use. I always say: Use whatever gets >> >>> the job done. =) >> >>> >> >>> On Fri, Jun 19, 2009 at 1:00 AM, Dane Laverty >> wrote: >> >>> > Our management has chosen to make JDeveloper 11g the required IDE >> for >> >>> > the department. Searching the Wicket mailing list archives, I find >> >>> > that there is very little discussion about JDev. I'd be interested >> to >> >>> > know, are any of you currently using JDeveloper as your main Wicket >> >>> > IDE? >> >>> > >> >>> > >> - >> >>> > 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: Wicket-like JavaScript Components
Have you take a look at http://extjs.com/ http://extjs.com/ insom wrote: > > I'm working on a small project where I'm limited to using only JavaScript. > I > love the Wicket programming model, especially reusable components. Is > anyone > aware of a JavaScript framework or JavaScript techniques that would allow > me > to approximate Wicket components? > > -- View this message in context: http://www.nabble.com/Wicket-like-JavaScript-Components-tp24038056p24038240.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: how to avoid multiple session for the same username
You're right i got confused, probably was thinking on something else when i replied. =) Thanks Jeremy Thomerson-5 wrote: > > it wouldn't need to grow - it could be a single column in the users > table - next to userid. > > -- > Jeremy Thomerson > http://www.wickettraining.com > > > > > On Fri, Jun 12, 2009 at 12:57 PM, Juan Carlos Garcia > M. wrote: >> >> Also attach some HttpSessionListener to your web application in order to >> remove old sessions from the database whenever they get destroyed and >> prevent that table for growing without control. >> >> >> Jeremy Thomerson-5 wrote: >>> >>> Store the session ID in your DB whenever someone signs in. Then if >>> someone signs in, and the session ID is not the same, you can either >>> block them from signing in, or you can have something in the request >>> cycle that checks on every request to make sure that this session ID >>> is still allowed to be signed in. If it's not, sign out. >>> >>> -- >>> Jeremy Thomerson >>> http://www.wickettraining.com >>> >>> >>> >>> >>> On Fri, Jun 12, 2009 at 12:30 PM, tubin gen wrote: >>>> I need suggestions on implementing single user login , like My system >>>> has >>>> a >>>> user with a username jdavid and my application should not allow two >>>> different sessions for the same username jdavid , can one session >>>> peep >>>> into all other session >>>> to see if the any has a usernaem jdavid, I am basically looking for >>>> some >>>> pattern if any available for restricting multiple session for the >>>> same >>>> username . >>>> >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/how-to-avoid-multiple-session-for-the-same-username-tp24003169p24003587.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://www.nabble.com/how-to-avoid-multiple-session-for-the-same-username-tp24003169p24004841.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: how to avoid multiple session for the same username
Also attach some HttpSessionListener to your web application in order to remove old sessions from the database whenever they get destroyed and prevent that table for growing without control. Jeremy Thomerson-5 wrote: > > Store the session ID in your DB whenever someone signs in. Then if > someone signs in, and the session ID is not the same, you can either > block them from signing in, or you can have something in the request > cycle that checks on every request to make sure that this session ID > is still allowed to be signed in. If it's not, sign out. > > -- > Jeremy Thomerson > http://www.wickettraining.com > > > > > On Fri, Jun 12, 2009 at 12:30 PM, tubin gen wrote: >> I need suggestions on implementing single user login , like My system has >> a >> user with a username jdavid and my application should not allow two >> different sessions for the same username jdavid , can one session peep >> into all other session >> to see if the any has a usernaem jdavid, I am basically looking for some >> pattern if any available for restricting multiple session for the same >> username . >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://www.nabble.com/how-to-avoid-multiple-session-for-the-same-username-tp24003169p24003587.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: Problem with Maven archetype, Eclipse Classpath and jetty:run
The first problem you mention is due to a change in how the maven eclipse plugins works, documented as a bug in: " http://www.mail-archive.com/d...@maven.apache.org/msg80176.html http://www.mail-archive.com/d...@maven.apache.org/msg80176.html " Known Issues: * [MECLIPSE-443] - Only include **/*.java in Java source directories may affect you if you use ajdt or have non-java sources in your directories that you expect to be compiled Release 2.6.1 (which may get renamed to 2.7) has fixed this issue and will be released shortly. However in order to get it works and better don't need to worry about fixing this in eclipse every time you generate the Eclipse project through mvn eclipse:eclipse, you can specify to use version 2.5 of maven-eclipse-plugin in your POM.xml org.apache.maven.plugins maven-eclipse-plugin 2.5 Hope this help. igor.vaynberg wrote: > > On Tue, May 26, 2009 at 3:25 AM, Carl-Eric Menzel > wrote: >> - The classpath file generated by 'mvn eclipse:eclipse' has an >> include-pattern of '**/*.java' for both src/test/java and >> src/main/java. This means that by default none of the HTML files or >> other resources will be copied to the classpath when for example >> using the 'Start' class. > > go to preferences/compiler/building/output folder and remove *.html > from Filtered Resources list. > >> The second problem is due to the way I set up my project -- it may be >> odd (is it?), but I think this is rather sensible for standalone >> component development. >> >> - I am developing a standalone component for use in other projects, so >> under src/main/ I'd like to have only the classes and resources that >> belong to the component. On the other hand, for testing and debugging >> purposes, a simple Wicket application and page are very handy, so I >> moved those from src/main to src/test, since these shouldn't show up >> in the generated jar file. > > test is for tests :) > > the proper way to do this is to create a multimodule project - one > module containing the component and another containing a demo which > you can also use for testing. > > -igor > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://www.nabble.com/Problem-with-Maven-archetype%2C-Eclipse-Classpath-and-jetty%3Arun-tp23720481p23725755.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: "conditional" form validators (nested forms issue)
Set Button#setDefaultFormProcessing(false) Also check: http://cwiki.apache.org/WICKET/multiple-submit-buttons.html multiple-submit-buttons Leszek Gawron-2 wrote: > > Hello, > > say i have a small form : > >* first name - text field required >* last name - text field required >* phone no - text field required >* submit button to add new contact > > everything works fine until I put the form into a wizard step. It turns > out that wizard itself is a form. So now we have : > > wizard >- some refreshing view >- add contact form > * first name - text field required > * last name - text field required > * phone no - text field required > * submit button to add new contact >- wizard navigation buttons > > Pressing wizard "Next" button makes addContactForm validate which raises > required text fields errors. You cannot leave the step. > > Is there a way to fire form/field validators only if a specific button > has been pressed? > lg > > -- > Leszek Gawron > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://www.nabble.com/%22conditional%22-form-validators-%28nested-forms-issue%29-tp23651166p23658102.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: components are not rendering help me out
Did you add the form to the page itself?: add(form); Jeremy Thomerson-5 wrote: > > Yes - we must have the stack trace or at least the error text to know what > you're talking about. > > And, when you get this problem fixed, I'd suggest swapping your link out > with BookmarkablePageLink. > > -- > Jeremy Thomerson > http://www.wickettraining.com > > > > On Tue, Apr 21, 2009 at 12:51 AM, Per Newgro wrote: > >> Please provide the stacktrace of your exception. >> >> Cheers >> Per >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > -- View this message in context: http://www.nabble.com/components-are-not-rendering-help-me-out-tp23149120p23156312.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