Nabble users: don't edit your posts!
Dear nabble users, The amount of messages coming in through nabble is astounding. Unfortunately this is mostly due to the ability of you editing your messages, which causes them to be sent twice or thrice to this list. As nabble hides that fact from you (it knows which message you have edited), this may not be something you are aware of. By editing you messages you cause the core devs, and others that have subscribed to the list to see your message two or three times. This causes a lot of irritation for us: it is annoying to see the same post twice, or more. It is annoying to reply to them (which one do we need to reply to?) It makes following the thread hard. Therefore I urge you to stop editing your messages once you have sent them. If you don't do so, we will have to close down the option of posting through nabble and only allow messages coming in from subscribed users. Martijn Dashorst - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SSL
No try to debug that but i guess it is more tomcat or wat you use then wicket. On 3/12/08, Tormod Øverlier [EMAIL PROTECTED] wrote: Do you have any idea as to why I'm always redirected to the start page when I try to enter a SSL-enabled page, even though I'm following the description for SSL on the Wicket Wiki? Johan Compagner wrote: wicket doesn't redirect to a full url wicket only uses relative onces so if you type https://server/ then that first part https://server will not be changed by wicket On Tue, Mar 11, 2008 at 10:15 AM, Tormod Øverlier [EMAIL PROTECTED] wrote: I'm trying to use SSL on certain pages in my application by using the description for Wicket 1.3 in the wiki. However, when I access a page with SSL, I'm always redirected to the start page. I see that the respond-method in my WebRequestCycleProcessor is called 3 times. The first time, it calls webReponse.reponse() with a SSL enabled url, but without the ?wicket:interface stuff behind. The second and third time, it sets the url to a non-SSL url pointing to the start page. I have set the render strategy according to the description in the wiki. 1. Any suggestions to my specific problem? 2. Are there any plans to include a more direct support for SSL in future versions of Wicket? Thanks. Tormod. -- View this message in context: http://www.nabble.com/SSL-tp15975713p15975713.html Sent from the Wicket - User mailing list archive at Nabble.comhttp://nabble.com/ . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/SSL-tp15975713p15998744.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Accordion(wicket-stuff) and a YU DatePicket together don't work.
Hi Fernando, looks like there are a clash of some sort with the javascript, so you could try to change load order of the javascript or something like that(could it be because the calendar uses a different version of yahoo lib?). Im sick currently, so cant help out. I hope to be up on my feet by next week. Fernando Wermus wrote: I have developed some pages using the Nino Saturnino's accordion which is in wicket-stuff. I got some erros in YU DatePicker when I added it to a Accordion. The error, a javascript error is the following, YAHOO.util.Event.purgeElement is not a function http:///resources/org.apache.wicket.extensions.yui.YuiLib/calendar/calendar.js Line 2983 For any ideas, this is my code, ... ListWebMarkupContainer markupItems = new ArrayListWebMarkupContainer(); markupItems.add(new ResumenPartido(AccordionPanelItem.ITEM_ID, inscripcion)); AccordionPanelItem itemResumenDelPartido = new AccordionPanelItem(Resumen del partido + inscripcion.getNombre(), markupItems); ... public class ResumenPartido extends Panel { public ResumenPartido(String id, InscripcionPartido inscripcion) { ... add(crearFecha(cuando, inscripcion)); ... } private DateTextField crearFecha(String id, InscripcionPartido inscripcion) { DateTextField fecha=new DateTextField(id,new PropertyModel(inscripcion,cuandoDate)); fecha.add(new DatePicker(){ @Override protected boolean enableMonthYearSelection() { return true; } }); return fecha; } ...} -- -Wicket for love -Jme for fun Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Ajax form validation... i can't get it work!
Sorry to disturb you again, guys, but i'm on a great problem. I have to delivered a prototype of a brand new application at my work, and we try to defense the idea of doing with wicket. The thing is that I must do a validation form like this (exactly, the same). http://wicketstuff.org/wicketdojo13/?wicket:bookmarkablePage=%3Aorg.wicketstuff.dojo.examples.validation.ValidationTestPageDisplayer Example I have been testing this example, but the problem is that there is a bug associated with my environment (wicket 1.3 and wicketDojo) and i can't get this example working, because I get a java.util.ConcurrentModificationException May anybody give a short example of how to do the same, but in another way? I'm in a hurry and it would be very appreciated... Thanks in advance and sorry again. -- View this message in context: http://www.nabble.com/Ajax-form-validation...-i-can%27t-get-it-work%21-tp15999612p15999612.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: styling thead in DataTable
Christain, I'm a Wicket newbie and would like some helpful tips, as you already gave one. I was looking at the DataTable's source and tried to play with the markup of my inherited table. Can you give an example / link ref / more explanation of how it's done? thanks very much On Wed, Mar 12, 2008 at 1:43 AM, Christian Alejandro Marquez Grabia [EMAIL PROTECTED] wrote: Martin, Yes...you would have to set a wicket:id for the thead to add attributes dynamically. This is easily done by setting markup to a subclass of datatable, and using the same structure used in the wicket-extensions jar. Cheers, Christian On 3/11/08, Eyal Golan [EMAIL PROTECTED] wrote: Thanks Christian, As Igor suggested, I did use a CSS (at the beginning I didn't find the style attribute I needed). I'll keep in mind the onComponentTag() as well. As I mentioned before, my problem was solved, but when I have time, I'll try to find the thead of a DataTable issue. Thanks guys On Tue, Mar 11, 2008 at 3:45 AM, Christian Alejandro Marquez Grabia [EMAIL PROTECTED] wrote: You can change tag attributes by overriding the onComponentTag() method, at least that is what I do when modifying any class or other attribute. (you should get the attribute from the tag parameter, and then set it there as well) I'm not sure where you should add that for the thead builder, but if you find it, then you'll get it done. You may also use IBehaviours, like SimpleAttributeModifier. Or as Igor well said, use your own markup (you could see the default markup inside the jar, and simply add the attribute you want) Rgds, Christian On 3/10/08, Igor Vaynberg [EMAIL PROTECTED] wrote: there shouldnt be anything you cannot do through css that you can do through adding things to markup that said you can always subclass datatable and provide your own markup -igor On Mon, Mar 10, 2008 at 3:31 PM, Eyal Golan [EMAIL PROTECTED] wrote: well, I can and this is what I actually did. I found out that I can use in style, the attribute: *text-align* that has solved me the problem. But my (more general) question is: what if there is an attribute that can't be set in style? as what I understand, it can't be set in a CSS (if I'm mistaken, please tell me how it's done). How can I add attributes to thead of a DataTable? Hope I'm clear enough. Eyal On Mon, Mar 10, 2008 at 7:17 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: can you not use css? -igor On Mon, Mar 10, 2008 at 6:17 AM, Eyal Golan [EMAIL PROTECTED] wrote: Hey all, I am having an issue that seems to be simple, but still, no success. I have a normal DataTable. I add to it the toptoolbars manually: HeadersToolbar thead = new HeadersToolbar(entityDataTable, entitiesProvider); entityDataTable.addTopToolbar(thead); This is how it looks in the HTML: table wicket:id=entitiesList class=browserTable This is how (part of) the generated HTML looks like: table class=browserTable wicket:id=entitiesList thead tr class=headers th wicket:id=header class=wicket_orderUpwicket:border _moz-userdefined=a wicket:id=orderByLink class= href=?wicket:interface=:4:tabs:browserTabbedPanel:panel:entitiesList:topToolbars:2:toolbar:headers:1:header:orderByLink::ILinkListener::wicket:body _moz-userdefined=span wicket:id=labelPerson ID/span/wicket:body/a/wicket:border /th I want a simple thing: I want to align the header labels to the left. The problem(s): - style doesn't have an attribute of align. Only vertical-align. - I tried to add to the HeadersToolbar an AttributeModifier: thead.add(new AttributeModifier(align, true, new Model(left))); Nothing seems working. I am using Firebug and the label thead keeps with no attribute. Can anyone help? Thank a lot -- Eyal Golan [EMAIL PROTECTED] Visit: http://jvdrums.sourceforge.net/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Eyal Golan [EMAIL PROTECTED] Visit: http://jvdrums.sourceforge.net/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Eyal
Re: Nabble users: don't edit your posts!
Considering the number of times certain questions are asked on this list that are answered 1000 times in the archive, I'm kind of afraid this isn't really going to help (unless it's posted frequently). Is it not possible for nabble to disable the edit function for specifically the wicket lists? In the last 24 hours there have been at least 8 double posts! Regards, Sebastiaan Martijn Dashorst wrote: Dear nabble users, The amount of messages coming in through nabble is astounding. Unfortunately this is mostly due to the ability of you editing your messages, which causes them to be sent twice or thrice to this list. As nabble hides that fact from you (it knows which message you have edited), this may not be something you are aware of. By editing you messages you cause the core devs, and others that have subscribed to the list to see your message two or three times. This causes a lot of irritation for us: it is annoying to see the same post twice, or more. It is annoying to reply to them (which one do we need to reply to?) It makes following the thread hard. Therefore I urge you to stop editing your messages once you have sent them. If you don't do so, we will have to close down the option of posting through nabble and only allow messages coming in from subscribed users. Martijn Dashorst - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] smime.p7s Description: S/MIME Cryptographic Signature
Re: Nabble users: don't edit your posts!
On 3/12/08, Sebastiaan van Erk [EMAIL PROTECTED] wrote: Considering the number of times certain questions are asked on this list that are answered 1000 times in the archive, I'm kind of afraid this isn't really going to help (unless it's posted frequently). I know, but not asking is most certainly not going to help. Is it not possible for nabble to disable the edit function for specifically the wicket lists? In the last 24 hours there have been at least 8 double posts! I asked, and they don't have that facility. Maybe if you ask too (support at nabble.com), and others that see this as a problem, they will fix it. Until then... Martijn -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.1 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.1 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Revisited: How to mount a form?
You can't mount a form. Only bookmarkable pages can be mounted. Martijn On 3/12/08, Jörn Zaefferer [EMAIL PROTECTED] wrote: Hi, I'm trying to mount forms in my wicket application more appropiate URLs. For example I want to replace this: action=../?wicket:interface=:3:registerpanel:registerForm::IFormSubmitListener:: with something like this (I'm not sure yet if the version parameter is necessary, or whatever that is): action=../register/form/?version=3 What I have so far is this: In Application#init: mount(new FormMount(/register/action/, RegisterPanel.RegisterForm.class)); public class FormMount extends AbstractRequestTargetUrlCodingStrategy { private final Class? extends Form formClass; public FormMount(String mountPath, Class? extends Form formClass) { super(mountPath); this.formClass = formClass; } public IRequestTarget decode(RequestParameters requestParameters) { return null; } public CharSequence encode(IRequestTarget requestTarget) { return null; } public boolean matches(IRequestTarget requestTarget) { if (requestTarget instanceof IListenerInterfaceRequestTarget) { IListenerInterfaceRequestTarget target = (IListenerInterfaceRequestTarget) requestTarget; return target.getTarget().getClass().equals(formClass); } return false; } } Now, I have no idea how to write the encode and decode implementations. The existing implementations are all non-trivial and I can't find a way to instantiate the appropiate IRequestTarget. Thanks for any hints Jörn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.1 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.1 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Revisited: How to mount a form?
Hi, I'm trying to mount forms in my wicket application more appropiate URLs. For example I want to replace this: action=../?wicket:interface=:3:registerpanel:registerForm::IFormSubmitListener:: with something like this (I'm not sure yet if the version parameter is necessary, or whatever that is): action=../register/form/?version=3 What I have so far is this: In Application#init: mount(new FormMount(/register/action/, RegisterPanel.RegisterForm.class)); public class FormMount extends AbstractRequestTargetUrlCodingStrategy { private final Class? extends Form formClass; public FormMount(String mountPath, Class? extends Form formClass) { super(mountPath); this.formClass = formClass; } public IRequestTarget decode(RequestParameters requestParameters) { return null; } public CharSequence encode(IRequestTarget requestTarget) { return null; } public boolean matches(IRequestTarget requestTarget) { if (requestTarget instanceof IListenerInterfaceRequestTarget) { IListenerInterfaceRequestTarget target = (IListenerInterfaceRequestTarget) requestTarget; return target.getTarget().getClass().equals(formClass); } return false; } } Now, I have no idea how to write the encode and decode implementations. The existing implementations are all non-trivial and I can't find a way to instantiate the appropiate IRequestTarget. Thanks for any hints Jörn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Revisited: How to mount a form?
That is not an acceptable answer. And from what I've seen, Wickets RequestCodingStrategy-architecture allows you to mount forms just as well - its just not exactly easy. Any others? On Wed, Mar 12, 2008 at 10:14 AM, Martijn Dashorst [EMAIL PROTECTED] wrote: You can't mount a form. Only bookmarkable pages can be mounted. Martijn On 3/12/08, Jörn Zaefferer [EMAIL PROTECTED] wrote: Hi, I'm trying to mount forms in my wicket application more appropiate URLs. For example I want to replace this: action=../?wicket:interface=:3:registerpanel:registerForm::IFormSubmitListener:: with something like this (I'm not sure yet if the version parameter is necessary, or whatever that is): action=../register/form/?version=3 What I have so far is this: In Application#init: mount(new FormMount(/register/action/, RegisterPanel.RegisterForm.class)); public class FormMount extends AbstractRequestTargetUrlCodingStrategy { private final Class? extends Form formClass; public FormMount(String mountPath, Class? extends Form formClass) { super(mountPath); this.formClass = formClass; } public IRequestTarget decode(RequestParameters requestParameters) { return null; } public CharSequence encode(IRequestTarget requestTarget) { return null; } public boolean matches(IRequestTarget requestTarget) { if (requestTarget instanceof IListenerInterfaceRequestTarget) { IListenerInterfaceRequestTarget target = (IListenerInterfaceRequestTarget) requestTarget; return target.getTarget().getClass().equals(formClass); } return false; } } Now, I have no idea how to write the encode and decode implementations. The existing implementations are all non-trivial and I can't find a way to instantiate the appropiate IRequestTarget. Thanks for any hints Jörn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.1 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.1 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Revisited: How to mount a form?
Jörn, Sorry the answer is not acceptable to you but that is the correct answer. A Form (i.e. org.apache.wicket.markup.html.form.Form or a subclass of such) cannot be rendered unless it is added to a WebPage. Sorry, that is just how Wicket works. I would suggest that you read the Getting Started guide on the wiki (http://cwiki.apache.org/WICKET/newuserguide.html) for further information. Jay On Wed, Mar 12, 2008 at 5:23 AM, Jörn Zaefferer [EMAIL PROTECTED] wrote: That is not an acceptable answer. And from what I've seen, Wickets RequestCodingStrategy-architecture allows you to mount forms just as well - its just not exactly easy. Any others? On Wed, Mar 12, 2008 at 10:14 AM, Martijn Dashorst [EMAIL PROTECTED] wrote: You can't mount a form. Only bookmarkable pages can be mounted. Martijn On 3/12/08, Jörn Zaefferer [EMAIL PROTECTED] wrote: Hi, I'm trying to mount forms in my wicket application more appropiate URLs. For example I want to replace this: action=../?wicket:interface=:3:registerpanel:registerForm::IFormSubmitListener:: with something like this (I'm not sure yet if the version parameter is necessary, or whatever that is): action=../register/form/?version=3 What I have so far is this: In Application#init: mount(new FormMount(/register/action/, RegisterPanel.RegisterForm.class)); public class FormMount extends AbstractRequestTargetUrlCodingStrategy { private final Class? extends Form formClass; public FormMount(String mountPath, Class? extends Form formClass) { super(mountPath); this.formClass = formClass; } public IRequestTarget decode(RequestParameters requestParameters) { return null; } public CharSequence encode(IRequestTarget requestTarget) { return null; } public boolean matches(IRequestTarget requestTarget) { if (requestTarget instanceof IListenerInterfaceRequestTarget) { IListenerInterfaceRequestTarget target = (IListenerInterfaceRequestTarget) requestTarget; return target.getTarget ().getClass().equals(formClass); } return false; } } Now, I have no idea how to write the encode and decode implementations. The existing implementations are all non-trivial and I can't find a way to instantiate the appropiate IRequestTarget. Thanks for any hints Jörn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.1 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.1 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Computer Science: solving today's problems tomorrow.
Re: Revisited: How to mount a form?
Jay: I didn't ask for rendering a form without a page - I just want to control the url in the form's action attribute. Johan: I can mount a page, but that doesn't affect the action-attribute of the form at all. I need to make it non-trivial for an attacker to find out which web framework I'm using. Currently the form-urls make it way too obvious that Wicket is in charge. The same is true for ILinkListeners. If this really isn't possible at all, I'll most likely have to drop Wicket once we've got the prototype ready. I really hope that isn't necessary, there is too much good stuff in Wicket. I still think that WebApplication's mount-method is the way to go, I'd just need a bit of help to get the encoding and decoding implemented. Thanks all! Jörn On Wed, Mar 12, 2008 at 10:37 AM, Johan Compagner [EMAIL PROTECTED] wrote: Forms point back to the page. So the url that is generated for the form is the page its url so you have to mount the page where the form is on And if you want a nice url you could try to use HybridUrlEncoding But why do you want nice url for forms? They are just in the markup they will not show up (normally) in the url bar johan On Wed, Mar 12, 2008 at 10:23 AM, Jörn Zaefferer [EMAIL PROTECTED] wrote: That is not an acceptable answer. And from what I've seen, Wickets RequestCodingStrategy-architecture allows you to mount forms just as well - its just not exactly easy. Any others? On Wed, Mar 12, 2008 at 10:14 AM, Martijn Dashorst [EMAIL PROTECTED] wrote: You can't mount a form. Only bookmarkable pages can be mounted. Martijn On 3/12/08, Jörn Zaefferer [EMAIL PROTECTED] wrote: Hi, I'm trying to mount forms in my wicket application more appropiate URLs. For example I want to replace this: action=../?wicket:interface=:3:registerpanel:registerForm::IFormSubmitListener:: with something like this (I'm not sure yet if the version parameter is necessary, or whatever that is): action=../register/form/?version=3 What I have so far is this: In Application#init: mount(new FormMount(/register/action/, RegisterPanel.RegisterForm.class)); public class FormMount extends AbstractRequestTargetUrlCodingStrategy { private final Class? extends Form formClass; public FormMount(String mountPath, Class? extends Form formClass) { super(mountPath); this.formClass = formClass; } public IRequestTarget decode(RequestParameters requestParameters) { return null; } public CharSequence encode(IRequestTarget requestTarget) { return null; } public boolean matches(IRequestTarget requestTarget) { if (requestTarget instanceof IListenerInterfaceRequestTarget) { IListenerInterfaceRequestTarget target = (IListenerInterfaceRequestTarget) requestTarget; return target.getTarget ().getClass().equals(formClass); } return false; } } Now, I have no idea how to write the encode and decode implementations. The existing implementations are all non-trivial and I can't find a way to instantiate the appropiate IRequestTarget. Thanks for any hints Jörn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.1 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.1 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Revisited: How to mount a form?
My simple form's action looks like: action=?x=ddw0qAw21grCPRao*Ubfef2Sc3qqyFsw0T9XGN5CArkF*CTRiwidzg when I use that along with the CachingSunJceCryptFactory. On 3/12/08, James Carman [EMAIL PROTECTED] wrote: Have you looked at: org.apache.wicket.protocol.http.request.CryptedUrlWebRequestCodingStrategy On 3/12/08, Jörn Zaefferer [EMAIL PROTECTED] wrote: Hi, I'm trying to mount forms in my wicket application more appropiate URLs. For example I want to replace this: action=../?wicket:interface=:3:registerpanel:registerForm::IFormSubmitListener:: with something like this (I'm not sure yet if the version parameter is necessary, or whatever that is): action=../register/form/?version=3 What I have so far is this: In Application#init: mount(new FormMount(/register/action/, RegisterPanel.RegisterForm.class)); public class FormMount extends AbstractRequestTargetUrlCodingStrategy { private final Class? extends Form formClass; public FormMount(String mountPath, Class? extends Form formClass) { super(mountPath); this.formClass = formClass; } public IRequestTarget decode(RequestParameters requestParameters) { return null; } public CharSequence encode(IRequestTarget requestTarget) { return null; } public boolean matches(IRequestTarget requestTarget) { if (requestTarget instanceof IListenerInterfaceRequestTarget) { IListenerInterfaceRequestTarget target = (IListenerInterfaceRequestTarget) requestTarget; return target.getTarget().getClass().equals(formClass); } return false; } } Now, I have no idea how to write the encode and decode implementations. The existing implementations are all non-trivial and I can't find a way to instantiate the appropiate IRequestTarget. Thanks for any hints Jörn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Revisited: How to mount a form?
Forms point back to the page. So the url that is generated for the form is the page its url so you have to mount the page where the form is on And if you want a nice url you could try to use HybridUrlEncoding But why do you want nice url for forms? They are just in the markup they will not show up (normally) in the url bar johan On Wed, Mar 12, 2008 at 10:23 AM, Jörn Zaefferer [EMAIL PROTECTED] wrote: That is not an acceptable answer. And from what I've seen, Wickets RequestCodingStrategy-architecture allows you to mount forms just as well - its just not exactly easy. Any others? On Wed, Mar 12, 2008 at 10:14 AM, Martijn Dashorst [EMAIL PROTECTED] wrote: You can't mount a form. Only bookmarkable pages can be mounted. Martijn On 3/12/08, Jörn Zaefferer [EMAIL PROTECTED] wrote: Hi, I'm trying to mount forms in my wicket application more appropiate URLs. For example I want to replace this: action=../?wicket:interface=:3:registerpanel:registerForm::IFormSubmitListener:: with something like this (I'm not sure yet if the version parameter is necessary, or whatever that is): action=../register/form/?version=3 What I have so far is this: In Application#init: mount(new FormMount(/register/action/, RegisterPanel.RegisterForm.class)); public class FormMount extends AbstractRequestTargetUrlCodingStrategy { private final Class? extends Form formClass; public FormMount(String mountPath, Class? extends Form formClass) { super(mountPath); this.formClass = formClass; } public IRequestTarget decode(RequestParameters requestParameters) { return null; } public CharSequence encode(IRequestTarget requestTarget) { return null; } public boolean matches(IRequestTarget requestTarget) { if (requestTarget instanceof IListenerInterfaceRequestTarget) { IListenerInterfaceRequestTarget target = (IListenerInterfaceRequestTarget) requestTarget; return target.getTarget ().getClass().equals(formClass); } return false; } } Now, I have no idea how to write the encode and decode implementations. The existing implementations are all non-trivial and I can't find a way to instantiate the appropiate IRequestTarget. Thanks for any hints Jörn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.1 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.1 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Revisited: How to mount a form?
Have you looked at: org.apache.wicket.protocol.http.request.CryptedUrlWebRequestCodingStrategy On 3/12/08, Jörn Zaefferer [EMAIL PROTECTED] wrote: Hi, I'm trying to mount forms in my wicket application more appropiate URLs. For example I want to replace this: action=../?wicket:interface=:3:registerpanel:registerForm::IFormSubmitListener:: with something like this (I'm not sure yet if the version parameter is necessary, or whatever that is): action=../register/form/?version=3 What I have so far is this: In Application#init: mount(new FormMount(/register/action/, RegisterPanel.RegisterForm.class)); public class FormMount extends AbstractRequestTargetUrlCodingStrategy { private final Class? extends Form formClass; public FormMount(String mountPath, Class? extends Form formClass) { super(mountPath); this.formClass = formClass; } public IRequestTarget decode(RequestParameters requestParameters) { return null; } public CharSequence encode(IRequestTarget requestTarget) { return null; } public boolean matches(IRequestTarget requestTarget) { if (requestTarget instanceof IListenerInterfaceRequestTarget) { IListenerInterfaceRequestTarget target = (IListenerInterfaceRequestTarget) requestTarget; return target.getTarget().getClass().equals(formClass); } return false; } } Now, I have no idea how to write the encode and decode implementations. The existing implementations are all non-trivial and I can't find a way to instantiate the appropiate IRequestTarget. Thanks for any hints Jörn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Revisited: How to mount a form?
You can just make a fork of WebRequestCodingStrategy and change the constants. -Matej On Wed, Mar 12, 2008 at 10:46 AM, Jörn Zaefferer [EMAIL PROTECTED] wrote: Jay: I didn't ask for rendering a form without a page - I just want to control the url in the form's action attribute. Johan: I can mount a page, but that doesn't affect the action-attribute of the form at all. I need to make it non-trivial for an attacker to find out which web framework I'm using. Currently the form-urls make it way too obvious that Wicket is in charge. The same is true for ILinkListeners. If this really isn't possible at all, I'll most likely have to drop Wicket once we've got the prototype ready. I really hope that isn't necessary, there is too much good stuff in Wicket. I still think that WebApplication's mount-method is the way to go, I'd just need a bit of help to get the encoding and decoding implemented. Thanks all! Jörn On Wed, Mar 12, 2008 at 10:37 AM, Johan Compagner [EMAIL PROTECTED] wrote: Forms point back to the page. So the url that is generated for the form is the page its url so you have to mount the page where the form is on And if you want a nice url you could try to use HybridUrlEncoding But why do you want nice url for forms? They are just in the markup they will not show up (normally) in the url bar johan On Wed, Mar 12, 2008 at 10:23 AM, Jörn Zaefferer [EMAIL PROTECTED] wrote: That is not an acceptable answer. And from what I've seen, Wickets RequestCodingStrategy-architecture allows you to mount forms just as well - its just not exactly easy. Any others? On Wed, Mar 12, 2008 at 10:14 AM, Martijn Dashorst [EMAIL PROTECTED] wrote: You can't mount a form. Only bookmarkable pages can be mounted. Martijn On 3/12/08, Jörn Zaefferer [EMAIL PROTECTED] wrote: Hi, I'm trying to mount forms in my wicket application more appropiate URLs. For example I want to replace this: action=../?wicket:interface=:3:registerpanel:registerForm::IFormSubmitListener:: with something like this (I'm not sure yet if the version parameter is necessary, or whatever that is): action=../register/form/?version=3 What I have so far is this: In Application#init: mount(new FormMount(/register/action/, RegisterPanel.RegisterForm.class)); public class FormMount extends AbstractRequestTargetUrlCodingStrategy { private final Class? extends Form formClass; public FormMount(String mountPath, Class? extends Form formClass) { super(mountPath); this.formClass = formClass; } public IRequestTarget decode(RequestParameters requestParameters) { return null; } public CharSequence encode(IRequestTarget requestTarget) { return null; } public boolean matches(IRequestTarget requestTarget) { if (requestTarget instanceof IListenerInterfaceRequestTarget) { IListenerInterfaceRequestTarget target = (IListenerInterfaceRequestTarget) requestTarget; return target.getTarget ().getClass().equals(formClass); } return false; } } Now, I have no idea how to write the encode and decode implementations. The existing implementations are all non-trivial and I can't find a way to instantiate the appropiate IRequestTarget. Thanks for any hints Jörn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.1 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.1 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Resizable and
Re: Strange thing in Application constructor
I'm talking about acceptance tests executed using selenium against the real application (we don't use WicketTester at all). What kind of patch do you have? -Roberto Mr Mean wrote: Are you talking about test behavior or real life app behavior? Maurice -- View this message in context: http://www.nabble.com/Strange-thing-in-Application-constructor-tp15786017p16001746.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ajax form validation... i can't get it work!
Hi Daniel, You should really read http://java.sun.com/j2se/1.5.0/docs/api/java/util/ConcurrentModificationException.html. You'll find that you have some code that iterates over a collection, and within that iteration the collection is modified. Regards, Erik. Daniel Alonso wrote: Sorry to disturb you again, guys, but i'm on a great problem. I have to delivered a prototype of a brand new application at my work, and we try to defense the idea of doing with wicket. The thing is that I must do a validation form like this (exactly, the same). http://wicketstuff.org/wicketdojo13/?wicket:bookmarkablePage=%3Aorg.wicketstuff.dojo.examples.validation.ValidationTestPageDisplayer Example I have been testing this example, but the problem is that there is a bug associated with my environment (wicket 1.3 and wicketDojo) and i can't get this example working, because I get a java.util.ConcurrentModificationException May anybody give a short example of how to do the same, but in another way? I'm in a hurry and it would be very appreciated... Thanks in advance and sorry again. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Strange thing in Application constructor
Its a patch for WicketTester, so not relevant for your situation. That's why i asked first instead of blurting out noise like Johan did. :P Maurice On Wed, Mar 12, 2008 at 12:11 PM, Roberto Fasciolo [EMAIL PROTECTED] wrote: I'm talking about acceptance tests executed using selenium against the real application (we don't use WicketTester at all). What kind of patch do you have? -Roberto Mr Mean wrote: Are you talking about test behavior or real life app behavior? Maurice -- View this message in context: http://www.nabble.com/Strange-thing-in-Application-constructor-tp15786017p16001746.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Strange thing in Application constructor
But in regards to your stateless page problem. Not only must the page be stateless, but also every component on the page. A form is not stateless, so you should use a StatelessForm on your login page. Also if a RestartResponseAtInterceptPage occurs (which is likely if you either use wicket-auth-roles or wicket-security) the session must be made non temporary to store the original page so you can later return to it. A couple of ways of avoiding this is to: - set the login page to the homepage - make sure all users access the loginpage directly instead of coming from the homepage (which sees the user needs to authenticate and throws the exception to redirect to the loginpage) Maurice On Wed, Mar 12, 2008 at 12:26 PM, Maurice Marrink [EMAIL PROTECTED] wrote: Its a patch for WicketTester, so not relevant for your situation. That's why i asked first instead of blurting out noise like Johan did. :P Maurice On Wed, Mar 12, 2008 at 12:11 PM, Roberto Fasciolo [EMAIL PROTECTED] wrote: I'm talking about acceptance tests executed using selenium against the real application (we don't use WicketTester at all). What kind of patch do you have? -Roberto Mr Mean wrote: Are you talking about test behavior or real life app behavior? Maurice -- View this message in context: http://www.nabble.com/Strange-thing-in-Application-constructor-tp15786017p16001746.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Ajax CheckGroup problem exception: java.lang.IllegalStateException: No Page found for component
Hi, I made a select-all check box inside a table. I used the example from http://javathoughts.capesugarbird.com/2007/09/ajax-select-all-checkbox-for-wicket.html It works well in most cases. Here's some code: Adding the checkgroup to the panel: private void addCheckGroup() { checkGroup = new MyAjaxCheckBox(allChecked, new PropertyModel(this, allChecked)) { private static final long serialVersionUID = 1L; @Override protected void onUpdate(AjaxRequestTarget target) { final boolean isSelected = isChecked(); if (isSelected) { checkGroupModel.addAll(entitiesList); } else { checkGroupModel.clear(); } for (MyAjaxCheckBox check : checkboxes) { check.setOutputMarkupId(true); target.addComponent(check); } for (EntityWrapper entity : entitiesList) { entity.setSelect(isSelected); } //target.addComponent(EntitiesPanel.this); EntitiesPanel.this.onUpdate(target); } @Override public boolean isVisible() { return (withSelect entitiesList != null entitiesList.size() 0); } }; checkGroup.setOutputMarkupId(true); //checkGroup.setVisible(false); add(checkGroup); } The Checkbox column inside the table, and the fragment it uses: private AbstractColumn createCheckboxColumn() { AbstractColumn p = new AbstractColumn(new Model()) { private static final long serialVersionUID = 1L; public void populateItem(Item cellItem, String componentId, IModel rowModel) { EntityWrapper confEntity = (EntityWrapper) rowModel.getObject(); Fragment frag = new CheckboxEntityFrag(componentId, checkboxFrag, EntitiesPanel.this, confEntity); cellItem.add(frag); } }; return p; } private CheckboxEntityFrag(String id, String markupId, MarkupContainer markupProvider, final EntityWrapper value) { super(id, markupId, markupProvider); checkbox = new MyAjaxCheckBox(entityCheckbox, new PropertyModel(value, select)) { private static final long serialVersionUID = 1L; @Override protected void onUpdate(AjaxRequestTarget target) { if (isChecked()) { if (!checkGroupModel.contains(value)) checkGroupModel.add(value); } else { checkGroupModel.remove(value); } setAllChecked(checkGroupModel.size() == entitiesList.size()); checkGroup.setOutputMarkupId(true); target.addComponent(checkGroup); EntitiesPanel.this.onUpdate(target); } }; add(checkbox); checkboxes.add(checkbox); } } The problem: someone else uses my panel for his purposes. He has a page (search page) that has my panel (with the table and the checkboxes). His page has a navigation button - NEXT that uses setResponsePage. The next page has a PREV button to go back. Going back is also with setResponsePage WITH THE ORIGINAL one. The scenario: Open the search page (with my panel) - the 'select-all' work fine. Press next. Press back. Press the 'select-all' again. I get an exception: java.lang.IllegalStateException: No Page found for component [MarkupContainer [Component id = entityCheckbox, page = No Page, path = 1:cells:1:cell:entityCheckbox.EntitiesPanel$CheckboxEntityFrag$1]] Is there something in a page's component's life cycle that I'm missing? Hope it's clear. (I'll be away for a few days so bare with me if I'm not answering) Thanks -- Eyal Golan [EMAIL PROTECTED] Visit: http://jvdrums.sourceforge.net/
Re: OpenId with Wicket
Yep. Just what Igor said. I've successfully been using open id with my wicket app for quite a while. Once the RequestUtils method was added, it became really simple. On Wed, Mar 12, 2008 at 12:22 AM, Igor Vaynberg [EMAIL PROTECTED] wrote: mount a bookmarkable page. get a url for it via urlfor(mypage.class) use requestutils to translate the url into an absolute one. give that to openid provider. make sure you have a constructor in that page that takes PageParameters, use them to pull out posted values. -igor On Tue, Mar 11, 2008 at 9:28 PM, mpinner [EMAIL PROTECTED] wrote: Couple Questions: How do I setup a returnUrl to which an OpenId Provider would Post/Get? For those not familiar with OpenId, I'll try to explain. I need to redirect my user to their OpenId Provider, which will post back to me that they are who authenticated. When I send this redirect I need to include a URL that the provider can access. Normally this would be some sort of servlet, but I'm trying to be good and use Wicket for all my web interactions. For those really interested, the Java lib I'm using is best documented here: http://code.google.com/p/openid4java/wiki/QuickStart Has anyone had any luck with OpenId and Wicket? Thanks, I love what I've used of Wicket so far. I look forward to learning lots more. Matt -- View this message in context: http://www.nabble.com/OpenId-with-Wicket-tp15997724p15997724.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Include feedback messages description on alt Image property
Hi again to everybody. After looking tons of examples related to wicket 1.2 I have no idea of how i can do the next: At this moment I cant show an error icon next to an erroneus field after submitting a form. The thing is that i must include the message feedback string as part of the alt property description. At this moment, i have a MyFormComponentFeedbackIndicator attached to the field i want to check, and when the error happens, the image is showed... but i have no idea of how a can manage the problem of the alt image attribute. If you don't mind I'm going to attach some code: MyFormComponentFeedbackIndicator -- public class MyFormComponentFeedbackIndicator extends FormComponentFeedbackIndicator { /** * */ private static final long serialVersionUID = 1L; private static final ResourceReference RESOURCE_REF = new ResourceReference(Page2.class, error.png); private FeedbackMessagesmessages = null; public MyFormComponentFeedbackIndicator(String id) { super(id); String prueba=null; prueba=; FeedbackMessage message=null; Image imagen=new Image(imageModelResourceReference, new Model(RESOURCE_REF)); messages = Session.get().getFeedbackMessages(); Iterator it=messages.iterator(); while (it.hasNext()){ message=(FeedbackMessage)it.next(); prueba=message.getMessage().toString(); } imagen.add(new SimpleAttributeModifier(alt, prueba)); add(imagen); } } - MyFormComponentFeedbackIndicator.html wicket:panel /wicket:panel piece of webpage class MyFormComponentFeedbackIndicator panelErrorSfid=null; sfid = new TextField(sfid); sfid.setRequired(true); sfid.add(StringValidator.maximumLength(15)); sfid.setLabel(new Model(sfid)); panelErrorSfid=new MyFormComponentFeedbackIndicator(errorsSfid); panelErrorSfid.setIndicatorFor(sfid); Is there any solution?Thanks so much in advance. -- View this message in context: http://www.nabble.com/Include-feedback-messages-description-on-%22alt%22-Image-property-tp16001976p16001976.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Nabble users: don't edit your posts!
IMO, I'd disable the Nabble posting. If people really have questions, they'll subscribe to the list. -Nick
Re: Nabble users: don't edit your posts!
I posted the problem to their support forum, hopefully it will help. :-) http://www.nabble.com/Double-posts-to-mailing-lists-due-to-edits-on-nabble-to16000975.html Regards, Sebastiaan Martijn Dashorst wrote: On 3/12/08, Sebastiaan van Erk [EMAIL PROTECTED] wrote: Considering the number of times certain questions are asked on this list that are answered 1000 times in the archive, I'm kind of afraid this isn't really going to help (unless it's posted frequently). I know, but not asking is most certainly not going to help. Is it not possible for nabble to disable the edit function for specifically the wicket lists? In the last 24 hours there have been at least 8 double posts! I asked, and they don't have that facility. Maybe if you ask too (support at nabble.com), and others that see this as a problem, they will fix it. Until then... Martijn smime.p7s Description: S/MIME Cryptographic Signature
Re: Ajax CheckGroup problem exception: java.lang.IllegalStateException: No Page found for component
One more thing. The problem occurs also when reloading the search (original) page. ie - pressing the F5. On Wed, Mar 12, 2008 at 2:18 PM, Eyal Golan [EMAIL PROTECTED] wrote: Hi, I made a select-all check box inside a table. I used the example from http://javathoughts.capesugarbird.com/2007/09/ajax-select-all-checkbox-for-wicket.html It works well in most cases. Here's some code: Adding the checkgroup to the panel: private void addCheckGroup() { checkGroup = new MyAjaxCheckBox(allChecked, new PropertyModel(this, allChecked)) { private static final long serialVersionUID = 1L; @Override protected void onUpdate(AjaxRequestTarget target) { final boolean isSelected = isChecked(); if (isSelected) { checkGroupModel.addAll(entitiesList); } else { checkGroupModel.clear(); } for (MyAjaxCheckBox check : checkboxes) { check.setOutputMarkupId(true); target.addComponent(check); } for (EntityWrapper entity : entitiesList) { entity.setSelect(isSelected); } //target.addComponent(EntitiesPanel.this); EntitiesPanel.this.onUpdate(target); } @Override public boolean isVisible() { return (withSelect entitiesList != null entitiesList.size() 0); } }; checkGroup.setOutputMarkupId(true); //checkGroup.setVisible(false); add(checkGroup); } The Checkbox column inside the table, and the fragment it uses: private AbstractColumn createCheckboxColumn() { AbstractColumn p = new AbstractColumn(new Model()) { private static final long serialVersionUID = 1L; public void populateItem(Item cellItem, String componentId, IModel rowModel) { EntityWrapper confEntity = (EntityWrapper) rowModel.getObject(); Fragment frag = new CheckboxEntityFrag(componentId, checkboxFrag, EntitiesPanel.this, confEntity); cellItem.add(frag); } }; return p; } private CheckboxEntityFrag(String id, String markupId, MarkupContainer markupProvider, final EntityWrapper value) { super(id, markupId, markupProvider); checkbox = new MyAjaxCheckBox(entityCheckbox, new PropertyModel(value, select)) { private static final long serialVersionUID = 1L; @Override protected void onUpdate(AjaxRequestTarget target) { if (isChecked()) { if (!checkGroupModel.contains(value)) checkGroupModel.add(value); } else { checkGroupModel.remove(value); } setAllChecked(checkGroupModel.size() == entitiesList.size()); checkGroup.setOutputMarkupId(true); target.addComponent(checkGroup); EntitiesPanel.this.onUpdate(target); } }; add(checkbox); checkboxes.add(checkbox); } } The problem: someone else uses my panel for his purposes. He has a page (search page) that has my panel (with the table and the checkboxes). His page has a navigation button - NEXT that uses setResponsePage. The next page has a PREV button to go back. Going back is also with setResponsePage WITH THE ORIGINAL one. The scenario: Open the search page (with my panel) - the 'select-all' work fine. Press next. Press back. Press the 'select-all' again. I get an exception: java.lang.IllegalStateException: No Page found for component [MarkupContainer [Component id = entityCheckbox, page = No Page, path = 1:cells:1:cell:entityCheckbox.EntitiesPanel$CheckboxEntityFrag$1]] Is there something in a page's component's life cycle that I'm missing? Hope it's clear. (I'll be away for a few days so bare with me if I'm not answering) Thanks -- Eyal Golan [EMAIL PROTECTED] Visit: http://jvdrums.sourceforge.net/ -- Eyal Golan [EMAIL PROTECTED] Visit: http://jvdrums.sourceforge.net/
Re: Double submit problem
Here's a solution that SEEMS to be working. It incorporates our solution to the double submit problem that we used on our JSP's. It didn't appear to be working for me at first, but seems to be now. (It does use the old servlet request/session objects, but this may change once all our old code is upgraded to wicket.) public abstract class NoDoubleSubmitForm extends Form { private String token; protected NoDoubleSubmitForm(String id) { super(id); } protected NoDoubleSubmitForm(String id, IModel model) { super(id, model); } protected abstract void onSubmitted(); protected void onResubmitted() { setResponsePage(CustomErrorPage.class); } @Override protected final void onSubmit() { if(isValidToken()) onSubmitted(); else onResubmitted(); } @Override protected void onBeforeRender() { super.onBeforeRender(); saveToken(); } private boolean isValidToken() { HttpServletRequest request = ((WebRequestCycle) RequestCycle.get()).getWebRequest().getHttpServletRequest(); if (!isTokenValid(request)) { Token.resetToken(request); // Removes unique token string from session return false; } Token.resetToken(request); // Removes unique token string from session return true; } public boolean isTokenValid(HttpServletRequest request) { // Retrieve the saved transaction token from our session HttpSession session = request.getSession(false); if (session == null) return false; String saved = (String) session.getAttribute(Token.TRANSACTION_TOKEN_KEY); if (saved == null) return false; if (token == null) return false; // Do the values match? return saved.equals(token); } private void saveToken() { HttpServletRequest request = ((WebRequestCycle) RequestCycle.get()).getWebRequest().getHttpServletRequest(); HttpSession session = request.getSession(); Token.saveToken(request); // Generates a unique string for this request and stores it in session token = (String) session.getAttribute(Token.TRANSACTION_TOKEN_KEY); // Save the generated token in this page instance } } Like I said, for now this appears to be working. I just extend all my forms from this class and implement onSubmitted() with the same code I previously put in onSubmit(). The key is putting matching unique strings in session and in the page instance. On submit, those string should match, at which point, the string in session is cleared and the form is processed as normal. If another submit comes in, the string in session has been cleared so it doesn't match the string svaed in the page instance. In the case where setResponsePage is not called, onBeforeRender resets the token string, so submitting from the refreshed page won't register as an error. Our JSP version of this involves putting the token string in session and also saving a copy to a hidden field on the JSP page. Which I think is similar (although maybe a bit more complex) to what Martijn was suggesting. Thanks for all you suggestions. Joel -- View this message in context: http://www.nabble.com/Double-submit-problem-tp15957979p16002307.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Nabble users: don't edit your posts!
One other reason why Nabble resends the message is if someone posts a message and if it hasn't been accepted yet, Nabble puts these notices saying your message has not been accepted so try posting your message again... for someone new to Nabble forum they think they need repost their message again, which also makes them think I can edit my message since I am reposting it. This has happened to me recently and I am sorry to repost and edit it and won't repeat it again. Ashley Martijn Dashorst wrote: On 3/12/08, Sebastiaan van Erk [EMAIL PROTECTED] wrote: Considering the number of times certain questions are asked on this list that are answered 1000 times in the archive, I'm kind of afraid this isn't really going to help (unless it's posted frequently). I know, but not asking is most certainly not going to help. Is it not possible for nabble to disable the edit function for specifically the wicket lists? In the last 24 hours there have been at least 8 double posts! I asked, and they don't have that facility. Maybe if you ask too (support at nabble.com), and others that see this as a problem, they will fix it. Until then... Martijn -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.1 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.1 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Nabble-users%3A-don%27t-edit-your-posts%21-tp15999424p16002546.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Serialisation/serialization documentation?
Dear All, I'm trying to get a better understanding off when/how/where Wicket serialises components and non-transient/non-static references they hold. To tune and sanity check our application. Playing with writeObject, readObject I can see it writing on every ajax request but only reading when I restart Tomcat (with serialised session store). I've searched around (with both spellings) but not found a recent explanation of this. Many thanks. I'll try not to post twice! Thanks Sam -- View this message in context: http://www.nabble.com/Serialisation-serialization-documentation--tp16002654p16002654.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Serialisation/serialization documentation?
Look for page store in the archives and the IPageStore interface. To get your application to deserialize stuff, simply press the back button on a wicket page, and click on a wicket link in the resulting page. That should get your page loaded from the page store. Regards, Sebastiaan Sam Hough wrote: Dear All, I'm trying to get a better understanding off when/how/where Wicket serialises components and non-transient/non-static references they hold. To tune and sanity check our application. Playing with writeObject, readObject I can see it writing on every ajax request but only reading when I restart Tomcat (with serialised session store). I've searched around (with both spellings) but not found a recent explanation of this. Many thanks. I'll try not to post twice! Thanks Sam smime.p7s Description: S/MIME Cryptographic Signature
StringResourceModel labels within values
is there way to do something like: .properties file: some.label=Some Label some.text=Some Text some.key=This text will have ${some.label} and ${some.text}
Re: Serialisation/serialization documentation?
I just remember Johan gave a presentation about this at the last WUG in Amsterdam: http://www.slideshare.net/jcompagner/session-stores-page-maps-and-pages Regards, Sebastiaan Sam Hough wrote: Dear All, I'm trying to get a better understanding off when/how/where Wicket serialises components and non-transient/non-static references they hold. To tune and sanity check our application. Playing with writeObject, readObject I can see it writing on every ajax request but only reading when I restart Tomcat (with serialised session store). I've searched around (with both spellings) but not found a recent explanation of this. Many thanks. I'll try not to post twice! Thanks Sam smime.p7s Description: S/MIME Cryptographic Signature
Panel state when created from GridView
I have a panel that contains a boolean property to track its state (editMode). I have a page that creates several of these panels by using a GridView, which gets the model from the datasource and passes it to the panels constructor. The panel has a Link and its onclick just toggles the editMode boolean. I am not using AJAX, so naturally the page refreshes when the link is clicked. When the page refreshes, new instances of the panels are recreated, thus losing the setting of the editMode member variable. I can make the page track the editMode of each panel in various ways, but I was wondering if there is a better way? Thanks! Ryan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Deploy Wicket 1.3 project to Websphere 6.1
Hi, I am getting Error 404 when running the helloworld example. I read it somewhere that I should use WicketServlet instead of WicketFilter. Anyone has experiences deploy to Websphere? Any suggestion? Thank you very much! Justine
Panel not updated on modelchange
Hi I have a panel with an AbstractReadOnlyModel that i want to change when i select an radiobutton on another panel. The radiobuttons are in a radiogroup with a properymodel to the same object that I have in the AbstractReadOnlyModel. But when I select the radiobuttons the modelobject is changed but panel is not updated. I have have tried triggering an modeupdate on the panel when when a radiobutten is selected but the panel is not updated. If I go to another page on the selection of a radiobutton the panel updates correctly, But I want i to update even the page dont change. Any Ideas on how can I make that happend? Ole-Harald -- View this message in context: http://www.nabble.com/Panel-not-updated-on-modelchange-tp16007420p16007420.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Panel not updated on modelchange
Ajax or non-ajax? Eelco On Wed, Mar 12, 2008 at 9:40 AM, deletethisprofile [EMAIL PROTECTED] wrote: Hi I have a panel with an AbstractReadOnlyModel that i want to change when i select an radiobutton on another panel. The radiobuttons are in a radiogroup with a properymodel to the same object that I have in the AbstractReadOnlyModel. But when I select the radiobuttons the modelobject is changed but panel is not updated. I have have tried triggering an modeupdate on the panel when when a radiobutten is selected but the panel is not updated. If I go to another page on the selection of a radiobutton the panel updates correctly, But I want i to update even the page dont change. Any Ideas on how can I make that happend? Ole-Harald -- View this message in context: http://www.nabble.com/Panel-not-updated-on-modelchange-tp16007420p16007420.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Is it possible to escape HTML in a feedback message?
I have the following in a page: If the feedback message contains XML, it doesn't get escaped. Is there any way to turn on HTML escaping? Thanks, Matt -- View this message in context: http://www.nabble.com/Is-it-possible-to-escape-HTML-in-a-feedback-message--tp16008403p16008403.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Include feedback messages description on alt Image property
just write your own feedbackpanel that works the way you want. look at the source of the original one. -igor On Wed, Mar 12, 2008 at 5:25 AM, Daniel Alonso [EMAIL PROTECTED] wrote: Hi again to everybody. After looking tons of examples related to wicket 1.2 I have no idea of how i can do the next: At this moment I cant show an error icon next to an erroneus field after submitting a form. The thing is that i must include the message feedback string as part of the alt property description. At this moment, i have a MyFormComponentFeedbackIndicator attached to the field i want to check, and when the error happens, the image is showed... but i have no idea of how a can manage the problem of the alt image attribute. If you don't mind I'm going to attach some code: MyFormComponentFeedbackIndicator -- public class MyFormComponentFeedbackIndicator extends FormComponentFeedbackIndicator { /** * */ private static final long serialVersionUID = 1L; private static final ResourceReference RESOURCE_REF = new ResourceReference(Page2.class, error.png); private FeedbackMessagesmessages = null; public MyFormComponentFeedbackIndicator(String id) { super(id); String prueba=null; prueba=; FeedbackMessage message=null; Image imagen=new Image(imageModelResourceReference, new Model(RESOURCE_REF)); messages = Session.get().getFeedbackMessages(); Iterator it=messages.iterator(); while (it.hasNext()){ message=(FeedbackMessage)it.next(); prueba=message.getMessage().toString(); } imagen.add(new SimpleAttributeModifier(alt, prueba)); add(imagen); } } - MyFormComponentFeedbackIndicator.html wicket:panel /wicket:panel piece of webpage class MyFormComponentFeedbackIndicator panelErrorSfid=null; sfid = new TextField(sfid); sfid.setRequired(true); sfid.add(StringValidator.maximumLength(15)); sfid.setLabel(new Model(sfid)); panelErrorSfid=new MyFormComponentFeedbackIndicator(errorsSfid); panelErrorSfid.setIndicatorFor(sfid); Is there any solution?Thanks so much in advance. -- View this message in context: http://www.nabble.com/Include-feedback-messages-description-on-%22alt%22-Image-property-tp16001976p16001976.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Serialisation/serialization documentation?
Thanks Sebastiaan, How does serialisation kick in when using Ajax? ie Same page all the time Sebastiaan van Erk wrote: Look for page store in the archives and the IPageStore interface. To get your application to deserialize stuff, simply press the back button on a wicket page, and click on a wicket link in the resulting page. That should get your page loaded from the page store. Regards, Sebastiaan Sam Hough wrote: Dear All, I'm trying to get a better understanding off when/how/where Wicket serialises components and non-transient/non-static references they hold. To tune and sanity check our application. Playing with writeObject, readObject I can see it writing on every ajax request but only reading when I restart Tomcat (with serialised session store). I've searched around (with both spellings) but not found a recent explanation of this. Many thanks. I'll try not to post twice! Thanks Sam -- View this message in context: http://www.nabble.com/Serialisation-serialization-documentation--tp16002654p16007427.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Serialisation/serialization documentation?
On Wed, Mar 12, 2008 at 9:44 AM, Sam Hough [EMAIL PROTECTED] wrote: Thanks Sebastiaan, How does serialisation kick in when using Ajax? ie Same page all the time Same page but different versions. Each page version is separately serialized. Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: StringResourceModel labels within values
you can roll your own model... -igor On Wed, Mar 12, 2008 at 8:20 AM, i ii [EMAIL PROTECTED] wrote: is there way to do something like: .properties file: some.label=Some Label some.text=Some Text some.key=This text will have ${some.label} and ${some.text} - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Panel state when created from GridView
see setitemreusestrategy() on the gridpanel -igor On Wed, Mar 12, 2008 at 9:06 AM, Ryan [EMAIL PROTECTED] wrote: I have a panel that contains a boolean property to track its state (editMode). I have a page that creates several of these panels by using a GridView, which gets the model from the datasource and passes it to the panels constructor. The panel has a Link and its onclick just toggles the editMode boolean. I am not using AJAX, so naturally the page refreshes when the link is clicked. When the page refreshes, new instances of the panels are recreated, thus losing the setting of the editMode member variable. I can make the page track the editMode of each panel in various ways, but I was wondering if there is a better way? Thanks! Ryan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Accordion(wicket-stuff) and a YU DatePicket together don't work.
Ok. How can I change the order of javascript files loading in Wicket? On 3/12/08, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Hi Fernando, looks like there are a clash of some sort with the javascript, so you could try to change load order of the javascript or something like that(could it be because the calendar uses a different version of yahoo lib?). Im sick currently, so cant help out. I hope to be up on my feet by next week. Fernando Wermus wrote: I have developed some pages using the Nino Saturnino's accordion which is in wicket-stuff. I got some erros in YU DatePicker when I added it to a Accordion. The error, a javascript error is the following, YAHOO.util.Event.purgeElement is not a function http:///resources/org.apache.wicket.extensions.yui.YuiLib/calendar/calendar.js Line 2983 For any ideas, this is my code, ... ListWebMarkupContainer markupItems = new ArrayListWebMarkupContainer(); markupItems.add(new ResumenPartido( AccordionPanelItem.ITEM_ID, inscripcion)); AccordionPanelItem itemResumenDelPartido = new AccordionPanelItem(Resumen del partido + inscripcion.getNombre(), markupItems); ... public class ResumenPartido extends Panel { public ResumenPartido(String id, InscripcionPartido inscripcion) { ... add(crearFecha(cuando, inscripcion)); ... } private DateTextField crearFecha(String id, InscripcionPartido inscripcion) { DateTextField fecha=new DateTextField(id,new PropertyModel(inscripcion,cuandoDate)); fecha.add(new DatePicker(){ @Override protected boolean enableMonthYearSelection() { return true; } }); return fecha; } ...} -- -Wicket for love -Jme for fun Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Fernando Wermus.
Re: Panel not updated on modelchange
Non-ajax. Ole-Harald Eelco Hillenius wrote: Ajax or non-ajax? Eelco On Wed, Mar 12, 2008 at 9:40 AM, deletethisprofile [EMAIL PROTECTED] wrote: Hi I have a panel with an AbstractReadOnlyModel that i want to change when i select an radiobutton on another panel. The radiobuttons are in a radiogroup with a properymodel to the same object that I have in the AbstractReadOnlyModel. But when I select the radiobuttons the modelobject is changed but panel is not updated. I have have tried triggering an modeupdate on the panel when when a radiobutten is selected but the panel is not updated. If I go to another page on the selection of a radiobutton the panel updates correctly, But I want i to update even the page dont change. Any Ideas on how can I make that happend? Ole-Harald -- View this message in context: http://www.nabble.com/Panel-not-updated-on-modelchange-tp16007420p16007420.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Panel-not-updated-on-modelchange-tp16007420p16009871.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is it possible to escape HTML in a feedback message?
what ever was after I have the following in a page: got stripped -igor On Wed, Mar 12, 2008 at 9:56 AM, mraible [EMAIL PROTECTED] wrote: I have the following in a page: If the feedback message contains XML, it doesn't get escaped. Is there any way to turn on HTML escaping? Thanks, Matt -- View this message in context: http://www.nabble.com/Is-it-possible-to-escape-HTML-in-a-feedback-message--tp16008403p16008403.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is it possible to escape HTML in a feedback message?
lt;span wicket:id=feedback class=message/spangt; igor.vaynberg wrote: what ever was after I have the following in a page: got stripped -igor On Wed, Mar 12, 2008 at 9:56 AM, mraible [EMAIL PROTECTED] wrote: I have the following in a page: If the feedback message contains XML, it doesn't get escaped. Is there any way to turn on HTML escaping? Thanks, Matt -- View this message in context: http://www.nabble.com/Is-it-possible-to-escape-HTML-in-a-feedback-message--tp16008403p16008403.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Is-it-possible-to-escape-HTML-in-a-feedback-message--tp16008403p16009950.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Issues in Wicket Filter
So, I'm having a problem with Wicket in that it is ignoring query string parameters. There are two problems. Here is the use case for problem 1: 1. Go to http://foo.com/yourapp?id=2 2. In your application class override newRequestCycle and newSession and put breakpoints in there 3. In either method you will never get the id. It always comes out null. I looked in the WicketFilter code and there is all this URL manipulation with forward slash going on. Why? I compared this to WicketServlet in 1.2and there is nothing about all this forward slash stuff. So, if you change the url to http://foo.com/yourapp/?id=2 you do get the id. That makes no sense. This broke functionality from Wicket 1.2 and there is nothing about this stuff in the migration guide. So problem 2: 1. Go to http://foo.com/yourapp/?id=2 2. In your application class override newRequestCycle and newSession and put breakpoints in there 3. In newRequestCycle, call session.invalidateNow(); 4. When it first hits newRequestCycle, you have the id. But after it calls session.invalidateNow(), the WicketFilter redirects back to your homepage and goes back to newRequestCycle and then to newSession. This second time it hits these methods, the id comes out null. Again, the WicketFilter code ignores query string params. Why? Doesn't make sense and again broke functionality that was working in Wicket 1.2 and was never documented. I have tried all the different IRequestTargetUrlCodingStrategies and none of them fix this problem. It appears to be a problem in the WicketFilter code in ignoring query string params. Any thoughts on this? Thanks!
Direct only *.html to Wicket Filter
I would like to include a couple of utility JSP s along with my otherwise Wicket-ized application. However, I don't know how to instruct the Wicket Filter to only handle HTML pages? I want the container (WebLogic) to handle the JSPs. My first attempt was: lt;filter-mapping lt;filter-namewicket_filterlt;/filter-name lt;url-pattern/*.htmllt;/url-pattern lt;/filter-mapping I struck out with the stack trace: java.lang.IllegalArgumentException: for WicketFilter wicket_eval_filter must start with '/' and end with '*'. at org.apache.wicket.protocol.http.WicketFilter.getFilterPath(WicketFilter.java:693) at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:472) etc I checked the logic of WicketFilter and was incredulous to see if (!urlPattern.startsWith(/) || !urlPattern.endsWith(*)) { // throw the exception } Why? Is that a requirement of the servlet spec? I think not. Why have a mapping element if it is forced to be of the form /*? More importantly, how can I make sure that my JSP doesn't get funnelled to the WicketFilter? Sri -- View this message in context: http://www.nabble.com/Direct-only-*.html-to-Wicket-Filter-tp1601p1601.html Sent from the Wicket - User mailing list archive at Nabble.com.
help with Signin2 example
Hi, I am new to Wicket, and trying to get the Signin2 (user authorization) example working. I am using Wicket 1.3 and JBoss 4.5. The problem is that after I sign in, it doesn't redirect to the home page. It tries to redirect to http://localhost:8080/index.jsp (which is presumably just a default). How is the redirect mechanism supposed to work? Thanks, Andrew B ___ The information in this email or in any file attached hereto is intended only for the personal and confiden- tial use of the individual or entity to which it is addressed and may contain information that is propri- etary and confidential. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communica- tion is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product. Email trans- mission cannot be guaranteed to be secure or error- free. P6070214
span wicket:id=mainNavigation/
Hi, The Signin2 example uses span wicket:id=mainNavigation/ in the page. This doesn't correspond to any components added by the page's Java class, and throws an error: WicketMessage: Unable to find component with id 'mainNavigation' in [Page class = com.company.page.auth.SignIn, id = 0, version = 0]. This means that you declared wicket:id=mainNavigation in your markup, but that you either did not add the component to your page at all, or that the hierarchy does not match. [markup = file:/C:/jboss-4.2.2.GA/server/default/deploy/optionsnews.war/WEB-INF/classes/com/company/page/auth/SignIn.html The page's Java constructor just does the following: add(new SignInPanel(signInPanel) { public boolean signIn(String username, String password) { return ((SignInSession) getSession()).authenticate(username, password); } }); Thanks in advance, Andrew ___ The information in this email or in any file attached hereto is intended only for the personal and confiden- tial use of the individual or entity to which it is addressed and may contain information that is propri- etary and confidential. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communica- tion is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product. Email trans- mission cannot be guaranteed to be secure or error- free. P6070214
Re: Direct only *.html to Wicket Filter
it should be just fine to funnel your jsps into wicket. wicketfilter checks if the request is for wicket or not and if not lets the servlet container handle it...thats why its now a filter and not a servlet... -igor On Wed, Mar 12, 2008 at 11:10 AM, Sri Sankaran [EMAIL PROTECTED] wrote: I would like to include a couple of utility JSP s along with my otherwise Wicket-ized application. However, I don't know how to instruct the Wicket Filter to only handle HTML pages? I want the container (WebLogic) to handle the JSPs. My first attempt was: lt;filter-mapping lt;filter-namewicket_filterlt;/filter-name lt;url-pattern/*.htmllt;/url-pattern lt;/filter-mapping I struck out with the stack trace: java.lang.IllegalArgumentException: for WicketFilter wicket_eval_filter must start with '/' and end with '*'. at org.apache.wicket.protocol.http.WicketFilter.getFilterPath(WicketFilter.java:693) at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:472) etc I checked the logic of WicketFilter and was incredulous to see if (!urlPattern.startsWith(/) || !urlPattern.endsWith(*)) { // throw the exception } Why? Is that a requirement of the servlet spec? I think not. Why have a mapping element if it is forced to be of the form /*? More importantly, how can I make sure that my JSP doesn't get funnelled to the WicketFilter? Sri -- View this message in context: http://www.nabble.com/Direct-only-*.html-to-Wicket-Filter-tp1601p1601.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: span wicket:id=mainNavigation/
i believe mainnavigation comes from WicketExamplePage which signin2 page extends... -igor On Wed, Mar 12, 2008 at 11:38 AM, Andrew Broderick [EMAIL PROTECTED] wrote: Hi, The Signin2 example uses span wicket:id=mainNavigation/ in the page. This doesn't correspond to any components added by the page's Java class, and throws an error: WicketMessage: Unable to find component with id 'mainNavigation' in [Page class = com.company.page.auth.SignIn, id = 0, version = 0]. This means that you declared wicket:id=mainNavigation in your markup, but that you either did not add the component to your page at all, or that the hierarchy does not match. [markup = file:/C:/jboss-4.2.2.GA/server/default/deploy/optionsnews.war/WEB-INF/classes/com/company/page/auth/SignIn.html The page's Java constructor just does the following: add(new SignInPanel(signInPanel) { public boolean signIn(String username, String password) { return ((SignInSession) getSession()).authenticate(username, password); } }); Thanks in advance, Andrew ___ The information in this email or in any file attached hereto is intended only for the personal and confiden- tial use of the individual or entity to which it is addressed and may contain information that is propri- etary and confidential. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communica- tion is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product. Email trans- mission cannot be guaranteed to be secure or error- free. P6070214 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: span wicket:id=mainNavigation/
Yes, of course. So it does. That solves that problem. But, WicketExamplePage just seems to add a standard header that outputs the page name. So, omitting this should not cause the redirect from the signin page to the home page to fail, should it? (See my earlier message about problems with the Signin2 example). Thanks -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2008 1:51 PM To: users@wicket.apache.org Subject: Re: span wicket:id=mainNavigation/ i believe mainnavigation comes from WicketExamplePage which signin2 page extends... -igor On Wed, Mar 12, 2008 at 11:38 AM, Andrew Broderick [EMAIL PROTECTED] wrote: Hi, The Signin2 example uses span wicket:id=mainNavigation/ in the page. This doesn't correspond to any components added by the page's Java class, and throws an error: WicketMessage: Unable to find component with id 'mainNavigation' in [Page class = com.company.page.auth.SignIn, id = 0, version = 0]. This means that you declared wicket:id=mainNavigation in your markup, but that you either did not add the component to your page at all, or that the hierarchy does not match. [markup = file:/C:/jboss-4.2.2.GA/server/default/deploy/optionsnews.war/WEB-INF/classes/com/company/page/auth/SignIn.html The page's Java constructor just does the following: add(new SignInPanel(signInPanel) { public boolean signIn(String username, String password) { return ((SignInSession) getSession()).authenticate(username, password); } }); Thanks in advance, Andrew ___ The information in this email or in any file attached hereto is intended only for the personal and confiden- tial use of the individual or entity to which it is addressed and may contain information that is propri- etary and confidential. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communica- tion is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product. Email trans- mission cannot be guaranteed to be secure or error- free. P6070214 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Direct only *.html to Wicket Filter
Alright! That works. Thank you very much. Sri igor.vaynberg wrote: it should be just fine to funnel your jsps into wicket. wicketfilter checks if the request is for wicket or not and if not lets the servlet container handle it...thats why its now a filter and not a servlet... -igor On Wed, Mar 12, 2008 at 11:10 AM, Sri Sankaran [EMAIL PROTECTED] wrote: I would like to include a couple of utility JSP s along with my otherwise Wicket-ized application. However, I don't know how to instruct the Wicket Filter to only handle HTML pages? I want the container (WebLogic) to handle the JSPs. My first attempt was: lt;filter-mapping lt;filter-namewicket_filterlt;/filter-name lt;url-pattern/*.htmllt;/url-pattern lt;/filter-mapping I struck out with the stack trace: java.lang.IllegalArgumentException: for WicketFilter wicket_eval_filter must start with '/' and end with '*'. at org.apache.wicket.protocol.http.WicketFilter.getFilterPath(WicketFilter.java:693) at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:472) etc I checked the logic of WicketFilter and was incredulous to see if (!urlPattern.startsWith(/) || !urlPattern.endsWith(*)) { // throw the exception } Why? Is that a requirement of the servlet spec? I think not. Why have a mapping element if it is forced to be of the form /*? More importantly, how can I make sure that my JSP doesn't get funnelled to the WicketFilter? Sri -- View this message in context: http://www.nabble.com/Direct-only-*.html-to-Wicket-Filter-tp1601p1601.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Direct-only-*.html-to-Wicket-Filter-tp1601p16012519.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Issues in Wicket Filter
I was able to fix my issue by making sure that the home page was not mounted to any coding strategy. However, the / issue is still there, but I think I can get around it with Apache. Still this should be in the migration guide, because both problems broke functionality that worked in 1.2 On Wed, Mar 12, 2008 at 10:58 AM, Andrew Berman [EMAIL PROTECTED] wrote: So, I'm having a problem with Wicket in that it is ignoring query string parameters. There are two problems. Here is the use case for problem 1: 1. Go to http://foo.com/yourapp?id=2 2. In your application class override newRequestCycle and newSession and put breakpoints in there 3. In either method you will never get the id. It always comes out null. I looked in the WicketFilter code and there is all this URL manipulation with forward slash going on. Why? I compared this to WicketServlet in 1.2 and there is nothing about all this forward slash stuff. So, if you change the url to http://foo.com/yourapp/?id=2 you do get the id. That makes no sense. This broke functionality from Wicket 1.2 and there is nothing about this stuff in the migration guide. So problem 2: 1. Go to http://foo.com/yourapp/?id=2 2. In your application class override newRequestCycle and newSession and put breakpoints in there 3. In newRequestCycle, call session.invalidateNow(); 4. When it first hits newRequestCycle, you have the id. But after it calls session.invalidateNow(), the WicketFilter redirects back to your homepage and goes back to newRequestCycle and then to newSession. This second time it hits these methods, the id comes out null. Again, the WicketFilter code ignores query string params. Why? Doesn't make sense and again broke functionality that was working in Wicket 1.2and was never documented. I have tried all the different IRequestTargetUrlCodingStrategies and none of them fix this problem. It appears to be a problem in the WicketFilter code in ignoring query string params. Any thoughts on this? Thanks!
Re: Issues in Wicket Filter
migration guide is a wiki page... -igor On Wed, Mar 12, 2008 at 12:36 PM, Andrew Berman [EMAIL PROTECTED] wrote: I was able to fix my issue by making sure that the home page was not mounted to any coding strategy. However, the / issue is still there, but I think I can get around it with Apache. Still this should be in the migration guide, because both problems broke functionality that worked in 1.2 On Wed, Mar 12, 2008 at 10:58 AM, Andrew Berman [EMAIL PROTECTED] wrote: So, I'm having a problem with Wicket in that it is ignoring query string parameters. There are two problems. Here is the use case for problem 1: 1. Go to http://foo.com/yourapp?id=2 2. In your application class override newRequestCycle and newSession and put breakpoints in there 3. In either method you will never get the id. It always comes out null. I looked in the WicketFilter code and there is all this URL manipulation with forward slash going on. Why? I compared this to WicketServlet in 1.2 and there is nothing about all this forward slash stuff. So, if you change the url to http://foo.com/yourapp/?id=2 you do get the id. That makes no sense. This broke functionality from Wicket 1.2 and there is nothing about this stuff in the migration guide. So problem 2: 1. Go to http://foo.com/yourapp/?id=2 2. In your application class override newRequestCycle and newSession and put breakpoints in there 3. In newRequestCycle, call session.invalidateNow(); 4. When it first hits newRequestCycle, you have the id. But after it calls session.invalidateNow(), the WicketFilter redirects back to your homepage and goes back to newRequestCycle and then to newSession. This second time it hits these methods, the id comes out null. Again, the WicketFilter code ignores query string params. Why? Doesn't make sense and again broke functionality that was working in Wicket 1.2and was never documented. I have tried all the different IRequestTargetUrlCodingStrategies and none of them fix this problem. It appears to be a problem in the WicketFilter code in ignoring query string params. Any thoughts on this? Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Issues in Wicket Filter
BTW - The slash problem is Line 255 of WicketFilter. It just completely disregards the query string... final String redirectUrl = servletRequest.getRequestURI() + /; https://issues.apache.org/jira/browse/WICKET-1416 On Wed, Mar 12, 2008 at 12:36 PM, Andrew Berman [EMAIL PROTECTED] wrote: I was able to fix my issue by making sure that the home page was not mounted to any coding strategy. However, the / issue is still there, but I think I can get around it with Apache. Still this should be in the migration guide, because both problems broke functionality that worked in 1.2 On Wed, Mar 12, 2008 at 10:58 AM, Andrew Berman [EMAIL PROTECTED] wrote: So, I'm having a problem with Wicket in that it is ignoring query string parameters. There are two problems. Here is the use case for problem 1: 1. Go to http://foo.com/yourapp?id=2 2. In your application class override newRequestCycle and newSession and put breakpoints in there 3. In either method you will never get the id. It always comes out null. I looked in the WicketFilter code and there is all this URL manipulation with forward slash going on. Why? I compared this to WicketServlet in 1.2 and there is nothing about all this forward slash stuff. So, if you change the url to http://foo.com/yourapp/?id=2 you do get the id. That makes no sense. This broke functionality from Wicket 1.2 and there is nothing about this stuff in the migration guide. So problem 2: 1. Go to http://foo.com/yourapp/?id=2 2. In your application class override newRequestCycle and newSession and put breakpoints in there 3. In newRequestCycle, call session.invalidateNow(); 4. When it first hits newRequestCycle, you have the id. But after it calls session.invalidateNow(), the WicketFilter redirects back to your homepage and goes back to newRequestCycle and then to newSession. This second time it hits these methods, the id comes out null. Again, the WicketFilter code ignores query string params. Why? Doesn't make sense and again broke functionality that was working in Wicket 1.2and was never documented. I have tried all the different IRequestTargetUrlCodingStrategies and none of them fix this problem. It appears to be a problem in the WicketFilter code in ignoring query string params. Any thoughts on this? Thanks!
include files under HTTPS
I've run into a strange issue where the page that have include file break when viewed under https. My include files are .html files and work beautifuly normally. But I just viewed the site in https mode and all the sections of the site that have includes now show this: This object may be found here And it is linked to the include file! When I click on it, I see the include file and that is also under https. Any ideas? G -- View this message in context: http://www.nabble.com/include-files-under-HTTPS-tp16012582p16012582.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: StringResourceModel labels within values
I think if you just give SRM a model that again gets the values from the localizer then it should work fine. On 3/12/08, i ii [EMAIL PROTECTED] wrote: is there way to do something like: .properties file: some.label=Some Label some.text=Some Text some.key=This text will have ${some.label} and ${some.text} - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: StringResourceModel labels within values
but will that work recusively? :) -igor On Wed, Mar 12, 2008 at 1:44 PM, Johan Compagner [EMAIL PROTECTED] wrote: I think if you just give SRM a model that again gets the values from the localizer then it should work fine. On 3/12/08, i ii [EMAIL PROTECTED] wrote: is there way to do something like: .properties file: some.label=Some Label some.text=Some Text some.key=This text will have ${some.label} and ${some.text} - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
form component parameter missing in request
I have a form with 15 form components. Only 14 parameters for these components are being sent over from the form when it is submitted. Are there any known issues with 1.2.6 that might result in this? Potentially relevant details include: 1 -- The form is in a ModalWindow 2 -- The component is a CheckBox, and is in a WebMarkupContainer that may or may not be visible, which in turn is in a WebMarkupContainer, which is on the Form 3 -- This last WebMarkupContainer is the target of a separate FormComponent's AjaxFormComponentUpdatingBehavior(onchange) 4 -- The form is submitted via an AjaxSubmitLink The gist of things is that we have to ask whether an applicant is a Married Wisconsin resident if they indicate that they are a Wisconsin resident. Hence, the U.S. State dropdown has an onchange behavior that updates the outermost WebMarkupContainer for the Are you a married Wisconsin resident checkbox. If the state is WI then the inner WebMarkupContainer is visible, and hence the married WI resident checkbox, label feedback border are rendered on the form. When the form is submitted [wicket-ajax.js, line 614] all of the form fields are submitted except this checkbox: address1416 Main address2 app_creditCardApplicationTabs_panel_creditCardForm:hf:0 birthday5/5/77 cityMadison country US email [EMAIL PROTECTED] firstName Scott homePhone 702555 income 8 lastNameSwank mothersMaidenName fakedecision ssn 11122 state WI zipcode 630010001 The (very verbose because I've been debugging it) code follows: // we only ask whether the customer is a married wisconsin resident if they // are a wisconsin resident IModel wiResModel = new AbstractCheckBoxModel() { private static final long serialVersionUID = 0L; @Override public boolean isSelected(Component component) { return status.getApplication().isMarried(); } @Override public void setSelected(Component component, boolean flag) { status.getApplication().setMarried(flag); } }; TabIndexCheckBox wisconsinResident = new TabIndexCheckBox(wiResident, wiResModel) { private static final long serialVersionUID = 0L; @Override public String[] getInputAsArray() { String[] input = super.getInputAsArray(); return input; } }; wisconsinResident.setEnableTabIndex(true); // model.bind(wisconsinResident).to().getApplication().getMarried(); WebMarkupContainer wisconsinResidentVisible = new WebMarkupContainer(wiResidentVisible) { private static final long serialVersionUID = 0L; @Override public boolean isVisible() { return WISCONSIN_STATE_CODE.equalsIgnoreCase(state.getValue()); } }; wisconsinResidentVisible.add(wisconsinResident); BorderFactory.addFeedbackBorder(wisconsinResident, wisconsinResidentVisible); final WebMarkupContainer wisconsinResidentWrapper = new AjaxWrapper(wiResidentContainer); wisconsinResidentWrapper.add(wisconsinResidentVisible); add(wisconsinResidentWrapper); // update the wisconsin wrapper when the state changes state.add(new AjaxFormComponentUpdatingBehavior(onchange) { private static final long serialVersionUID = 0L; @Override protected void onUpdate(AjaxRequestTarget target) { target.addComponent(wisconsinResidentWrapper); } }); -- Scott Swank reformed mathematician - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is it possible to escape HTML in a feedback message?
Yes it does - thanks! FeedbackPanel feedback = (FeedbackPanel) backPage.get(feedback); feedback.setVisible(true); feedback.setEscapeModelStrings(true); Is there anyway to make escapeModelStrings on by default? Thanks, Matt igor.vaynberg wrote: does feedbackpanel.setescapemodelstrings(true) do it? -igor On Wed, Mar 12, 2008 at 10:34 AM, mraible [EMAIL PROTECTED] wrote: lt;span wicket:id=feedback class=message/spangt; igor.vaynberg wrote: what ever was after I have the following in a page: got stripped -igor On Wed, Mar 12, 2008 at 9:56 AM, mraible [EMAIL PROTECTED] wrote: I have the following in a page: If the feedback message contains XML, it doesn't get escaped. Is there any way to turn on HTML escaping? Thanks, Matt -- View this message in context: http://www.nabble.com/Is-it-possible-to-escape-HTML-in-a-feedback-message--tp16008403p16008403.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Is-it-possible-to-escape-HTML-in-a-feedback-message--tp16008403p16009950.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Is-it-possible-to-escape-HTML-in-a-feedback-message--tp16008403p16012617.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DateTime.setLabel() issue and a related (but general) setLabel() question
Hey Guys, I'm building my first Wicket app and, so far, am really loving Wicket! I've built my first form and am stumped on a issue with the DateTime component. I call setLabel() on all the fields in my form and all the labels I provide appear in the validation error messages except one, the DateTime field. Here's the code HTML: tr tdMy Date:/td tdspan wicket:id=myDate/span/td /tr JAVA: form.add(new DateField(myDate).setLabel(new Model(My Date)); The problem is that the validation error message refers to the field as date and not My Date. Looking at the source, DateTime.java, I can see why. It appears the setLabel() is being applied to the FormComponentPanel, which DateTime extends and not the 'private final DateTextField dateField' within DateTime. I don't see a way to get at the private dateField to setLabel() on it. How should this be done? And a related setLabel() question Looking at my example code above, you can see that the label My Date is being maintained in both the HTML and the Java. It would be nice if I could just specify it in the Java and have Wicket apply it in the HTML. For example... HTML: tr tdspan wicket:id=myDate.label[wicket puts label here - with colon?]/span/td tdspan wicket:id=myDate/span/td /tr Is this possible now? Or is it a reasonable feature idea? Thanks! Phil
Re: Is it possible to escape HTML in a feedback message?
Subclass it. On Wed, Mar 12, 2008 at 2:24 PM, mraible [EMAIL PROTECTED] wrote: Yes it does - thanks! FeedbackPanel feedback = (FeedbackPanel) backPage.get(feedback); feedback.setVisible(true); feedback.setEscapeModelStrings(true); Is there anyway to make escapeModelStrings on by default? Thanks, Matt igor.vaynberg wrote: does feedbackpanel.setescapemodelstrings(true) do it? -igor On Wed, Mar 12, 2008 at 10:34 AM, mraible [EMAIL PROTECTED] wrote: lt;span wicket:id=feedback class=message/spangt; igor.vaynberg wrote: what ever was after I have the following in a page: got stripped -igor On Wed, Mar 12, 2008 at 9:56 AM, mraible [EMAIL PROTECTED] wrote: I have the following in a page: If the feedback message contains XML, it doesn't get escaped. Is there any way to turn on HTML escaping? Thanks, Matt -- View this message in context: http://www.nabble.com/Is-it-possible-to-escape-HTML-in-a-feedback-message--tp16008403p16008403.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Is-it-possible-to-escape-HTML-in-a-feedback-message--tp16008403p16009950.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Is-it-possible-to-escape-HTML-in-a-feedback-message--tp16008403p16012617.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Scott Swank reformed mathematician - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DateTime.setLabel() issue and a related (but general) setLabel() question
you can override newDateTextField(..) and call .setLabel() directly on the DateTextField in there. Gerolf On Wed, Mar 12, 2008 at 10:26 PM, Phil Grimm [EMAIL PROTECTED] wrote: Hey Guys, I'm building my first Wicket app and, so far, am really loving Wicket! I've built my first form and am stumped on a issue with the DateTime component. I call setLabel() on all the fields in my form and all the labels I provide appear in the validation error messages except one, the DateTime field. Here's the code HTML: tr tdMy Date:/td tdspan wicket:id=myDate/span/td /tr JAVA: form.add(new DateField(myDate).setLabel(new Model(My Date)); The problem is that the validation error message refers to the field as date and not My Date. Looking at the source, DateTime.java, I can see why. It appears the setLabel() is being applied to the FormComponentPanel, which DateTime extends and not the 'private final DateTextField dateField' within DateTime. I don't see a way to get at the private dateField to setLabel() on it. How should this be done? And a related setLabel() question Looking at my example code above, you can see that the label My Date is being maintained in both the HTML and the Java. It would be nice if I could just specify it in the Java and have Wicket apply it in the HTML. For example... HTML: tr tdspan wicket:id=myDate.label[wicket puts label here - with colon?]/span/td tdspan wicket:id=myDate/span/td /tr Is this possible now? Or is it a reasonable feature idea? Thanks! Phil
Re: DateTime.setLabel() issue and a related (but general) setLabel() question
shouldnt DateField forward its label to the internal field? -igor On Wed, Mar 12, 2008 at 2:32 PM, Gerolf Seitz [EMAIL PROTECTED] wrote: you can override newDateTextField(..) and call .setLabel() directly on the DateTextField in there. Gerolf On Wed, Mar 12, 2008 at 10:26 PM, Phil Grimm [EMAIL PROTECTED] wrote: Hey Guys, I'm building my first Wicket app and, so far, am really loving Wicket! I've built my first form and am stumped on a issue with the DateTime component. I call setLabel() on all the fields in my form and all the labels I provide appear in the validation error messages except one, the DateTime field. Here's the code HTML: tr tdMy Date:/td tdspan wicket:id=myDate/span/td /tr JAVA: form.add(new DateField(myDate).setLabel(new Model(My Date)); The problem is that the validation error message refers to the field as date and not My Date. Looking at the source, DateTime.java, I can see why. It appears the setLabel() is being applied to the FormComponentPanel, which DateTime extends and not the 'private final DateTextField dateField' within DateTime. I don't see a way to get at the private dateField to setLabel() on it. How should this be done? And a related setLabel() question Looking at my example code above, you can see that the label My Date is being maintained in both the HTML and the Java. It would be nice if I could just specify it in the Java and have Wicket apply it in the HTML. For example... HTML: tr tdspan wicket:id=myDate.label[wicket puts label here - with colon?]/span/td tdspan wicket:id=myDate/span/td /tr Is this possible now? Or is it a reasonable feature idea? Thanks! Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
wicket and sun portal, jsr186 and 286 portlet
Hi, I'm looking into using wicket as for deveping portlets in sun portal server, with jsr168/jsr286. I see that the portal needs to have Apache Portals Bridges interface according to http://cwiki.apache.org/WICKET/portal-howto.html, but I cannot find any informat about that. Do anyone have any experience with coding portlets with wicket in sun portal, or know if apache portals bridges is implemented for sun portal? -- Frode - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: wicket and sun portal, jsr186 and 286 portlet
i believe with jsr268 you do not need the bridge... -igor On Wed, Mar 12, 2008 at 2:43 PM, Frode Bjerkenes [EMAIL PROTECTED] wrote: Hi, I'm looking into using wicket as for deveping portlets in sun portal server, with jsr168/jsr286. I see that the portal needs to have Apache Portals Bridges interface according to http://cwiki.apache.org/WICKET/portal-howto.html, but I cannot find any informat about that. Do anyone have any experience with coding portlets with wicket in sun portal, or know if apache portals bridges is implemented for sun portal? -- Frode - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multipart-form with nested ajaxform throws exception in 1.3.1
Michael Sparer wrote: I have a multipart-enabled form, inside this form there is a nested form with ajaxsubmitbehavior. to submit the nested form I'm using an AjaxButton (as the normal button doesn't submit the form via ajax - contrary to its behaviour if not used as nested form) all releases including 1.3.0 supported the submitting of the innerform and sent all of the nested form's fields to the server and came back in a neat ajax response. In 1.3.1 however the Exception java.lang.IllegalStateException: ServletRequest does not contain multipart content gets thrown. That indicates that the surrounding multipart form was submitted instead of just the nested form (and as multipart and ajax aren't close friends the exception gets thrown) isn't that supposed to work or is it, again, a hidden feature I was using? :-) regards, Michael I've been bitten by this bug too. I haven't looked into the problem, perhaps it's an idea to open a ticket? -- View this message in context: http://www.nabble.com/Multipart-form-with-nested-ajaxform-throws-exception-in-1.3.1-tp15975693p16013787.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Hide Wicket AJAX Debug window
Hi All i have a label on my webpage on which i do a in line edit using AjaxEditableLabel. I have included wicket-event.js and wicket-ajax.js javascripts in my page. When i start editing the label the wicket ajax debug window appears on the lower right corner. how can i hide that window. Thanks Haritha -- View this message in context: http://www.nabble.com/Hide-%22Wicket-AJAX-Debug%22-window-tp16013820p16013820.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hide Wicket AJAX Debug window
this window only shows up when you start your wicket application in development mode. it won't show up in production mode. Gerolf On Wed, Mar 12, 2008 at 11:14 PM, hjuturu [EMAIL PROTECTED] wrote: Hi All i have a label on my webpage on which i do a in line edit using AjaxEditableLabel. I have included wicket-event.js and wicket-ajax.js javascripts in my page. When i start editing the label the wicket ajax debug window appears on the lower right corner. how can i hide that window. Thanks Haritha -- View this message in context: http://www.nabble.com/Hide-%22Wicket-AJAX-Debug%22-window-tp16013820p16013820.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hide Wicket AJAX Debug window
You can also do: getDebugSettings().setAjaxDebugModeEnabled(false); in your Application.init() method. On Wed, Mar 12, 2008 at 6:21 PM, Gerolf Seitz [EMAIL PROTECTED] wrote: this window only shows up when you start your wicket application in development mode. it won't show up in production mode. Gerolf On Wed, Mar 12, 2008 at 11:14 PM, hjuturu [EMAIL PROTECTED] wrote: Hi All i have a label on my webpage on which i do a in line edit using AjaxEditableLabel. I have included wicket-event.js and wicket-ajax.js javascripts in my page. When i start editing the label the wicket ajax debug window appears on the lower right corner. how can i hide that window. Thanks Haritha -- View this message in context: http://www.nabble.com/Hide-%22Wicket-AJAX-Debug%22-window-tp16013820p16013820.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ryan Gravener http://ryangravener.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Customising Radio Buttons with JS and CSS
Hey guys, I got a funky idea for the UI. I have a form that consists of set static radio choices and I am looking to add a bit of zing with it. Rather than having the radio button with text, i want to jazz it up with having a 100x100px tile with an image on it representing each of the radio choices. The functionality i want to capture is only one option can be selected at any one time, so clicking on another tile will de-select what is currently selected and select the new tile. I am a bit stuck with this one, I am attempting to re-write the radio choice object but im not having much luck with that so far. -- View this message in context: http://www.nabble.com/Customising-Radio-Buttons-with-JS-and-CSS-tp16015072p16015072.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
London Wicket Training at Easter ... still 4 places left
Al and I are preparing for the London Wicket course coming up next week. This http://jweekend.com/dev/JW035/ 2 day intensive Wicket course has evolved very nicely since we delivered the very first one (to a single student!, from Belgium) in 2007. Students on all our Wicket courses since then have been very generous with their praise and many have been enquiring about a follow-on course which we will consider developing for the summer if there is enough interest ( http://jweekend.com/dev/ContactUsBody/ drop us a line ). We have 4 places left for the course on Friday and Saturday next week, so http://jweekend.com/dev/BookingPage/ book early if you would like to join us for 2 days of intensive Wicket training. Our students also get a MEAPs edition of Martijn Eelco's http://manning.com/dashorst/ Wicket In Action (which is now pretty complete and really complements the wiki etc well ...) courtesy of jWeekend. If you are travelling far (still some 80% of our students travel from abroad), we can also try to help you fix some suitable accommodation. Regards - Cemal http://jWeekend.co.uk http://jWeekend.co.uk -- View this message in context: http://www.nabble.com/London-Wicket-Training-at-Easter-...-still-4-places-left-tp16015858p16015858.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Panel state when created from GridView
On Wed, Mar 12, 2008 at 10:03:28AM -0700, Igor Vaynberg exclaimed: see setitemreusestrategy() on the gridpanel -igor On Wed, Mar 12, 2008 at 9:06 AM, Ryan [EMAIL PROTECTED] wrote: I have a panel that contains a boolean property to track its state (editMode). I have a page that creates several of these panels by using a GridView, which gets the model from the datasource and passes it to the panels constructor. The panel has a Link and its onclick just toggles the editMode boolean. I am not using AJAX, so naturally the page refreshes when the link is clicked. When the page refreshes, new instances of the panels are recreated, thus losing the setting of the editMode member variable. I can make the page track the editMode of each panel in various ways, but I was wondering if there is a better way? Thanks! Ryan Igor, Thanks for you help, I found a great example in WiA. I did find a bug in GridView, and created a JIRA issue (WICKET-1419). Thanks again, -Ryan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Panel state when created from GridView
that is already fixed in the upcoming 1.3.2 -igor On Wed, Mar 12, 2008 at 5:08 PM, Ryan [EMAIL PROTECTED] wrote: On Wed, Mar 12, 2008 at 10:03:28AM -0700, Igor Vaynberg exclaimed: see setitemreusestrategy() on the gridpanel -igor On Wed, Mar 12, 2008 at 9:06 AM, Ryan [EMAIL PROTECTED] wrote: I have a panel that contains a boolean property to track its state (editMode). I have a page that creates several of these panels by using a GridView, which gets the model from the datasource and passes it to the panels constructor. The panel has a Link and its onclick just toggles the editMode boolean. I am not using AJAX, so naturally the page refreshes when the link is clicked. When the page refreshes, new instances of the panels are recreated, thus losing the setting of the editMode member variable. I can make the page track the editMode of each panel in various ways, but I was wondering if there is a better way? Thanks! Ryan Igor, Thanks for you help, I found a great example in WiA. I did find a bug in GridView, and created a JIRA issue (WICKET-1419). Thanks again, -Ryan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DateTime.setLabel() issue and a related (but general) setLabel() question
Igor, That's what I was thinking to suggest too, but I think that solution breaks down when the component has more than one internal field like DateTimeField does. Gerolf, Thanks for the tip. I think that should work for the dateField. Any ideas on what would one do to set the label on the DateTimeField.hoursField and DateTimeField.minutesField? --Phil igor.vaynberg wrote: shouldnt DateField forward its label to the internal field? -igor On Wed, Mar 12, 2008 at 2:32 PM, Gerolf Seitz [EMAIL PROTECTED] wrote: you can override newDateTextField(..) and call .setLabel() directly on the DateTextField in there. Gerolf -- View this message in context: http://www.nabble.com/DateTime.setLabel%28%29-issue-and-a-related-%28but-general%29-setLabel%28%29-question-tp16015278p16019096.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Intention of PropertyModel in 1.3
This used to work in 1.2.6, but now 1.3.1 complains that there is no setter for this class. hmm, this should still work. mind filing a jira bug with a quickstart? You're right, it does still work. The thing is that during the algorithm when the properties of the bean are being tested the entire exception stack is being printed out. This is a bit confusing because it can lead the developer to think that an error occurred. I propose to log information instead of printing out the entire exception stack. If you agree to this, I don't mind submitting a patch. What level is this reported to? Its not error right? Current, DEBUG. Still, though, I think a logging message would be better than polluting output with the entire stack trace... Cheers, Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]