Re: ComponentFeedbackPanel with Firefox 3.6.x - repeating error messages
Figured it out... the sample I had found at some point used label instead of span Changing it to span seems to have it working in all browsers now. ..darcy -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ComponentFeedbackPanel-with-Firefox-3-6-x-repeating-error-messages-tp3734945p3735132.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
rendering component
Hi, Is it possible not to render a component for security issues. I know i can use IAuthorizationStrategy for this but i want to to it manually I don't need just setVisible(false), i really need not to render that component. I don't know which method to override. Below code gives error. TextField nameField = new TextFieldString(name, new PropertyModelString(this, name)) { @Override protected void onRender(MarkupStream markupStream) { } }; Any way ? Thanks.
Re: rendering component
Am 11.08.2011 11:59, schrieb Lurtz Nazgul: Hi, Is it possible not to render a component for security issues. I know i can use IAuthorizationStrategy for this but i want to to it manually I don't need just setVisible(false), i really need not to render that component. I don't know which method to override. Below code gives error. TextField nameField = new TextFieldString(name, new PropertyModelString(this, name)) { @Override protected void onRender(MarkupStream markupStream) { } }; Any way ? Thanks. Maybe you can add a placeholder (WebMarkupContainer or something). Add then you could use replace in onBeforeRender. If this is not allowed you don't replace the placeholder. Hth Mike - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: rendering component
org.apache.wicket.Component.setVisibilityAllowed(boolean) is for that purpose. if component.isVisibleInHierachy() returns false then the component is not rendered. What exactly is the problem with setVisible(false) ? On Thu, Aug 11, 2011 at 12:59 PM, Lurtz Nazgul lu...@ymail.com wrote: Hi, Is it possible not to render a component for security issues. I know i can use IAuthorizationStrategy for this but i want to to it manually I don't need just setVisible(false), i really need not to render that component. I don't know which method to override. Below code gives error. TextField nameField = new TextFieldString(name, new PropertyModelString(this, name)) { @Override protected void onRender(MarkupStream markupStream) { } }; Any way ? Thanks. -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: rendering component
setVisible(false) , actually renders component but disables it via style sheet like input type=input value=name style=display:none I don't want that. I will try isVisibleInHierachy now. Thanks. From: Martin Grigorov mgrigo...@apache.org To: users@wicket.apache.org; Lurtz Nazgul lu...@ymail.com Sent: Thursday, August 11, 2011 1:32 PM Subject: Re: rendering component org.apache.wicket.Component.setVisibilityAllowed(boolean) is for that purpose. if component.isVisibleInHierachy() returns false then the component is not rendered. What exactly is the problem with setVisible(false) ? On Thu, Aug 11, 2011 at 12:59 PM, Lurtz Nazgul lu...@ymail.com wrote: Hi, Is it possible not to render a component for security issues. I know i can use IAuthorizationStrategy for this but i want to to it manually I don't need just setVisible(false), i really need not to render that component. I don't know which method to override. Below code gives error. TextField nameField = new TextFieldString(name, new PropertyModelString(this, name)) { @Override protected void onRender(MarkupStream markupStream) { } }; Any way ? Thanks. -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: rendering component
setVisible(false) , actually renders component but disables it via style sheet Isn't that the case only when you use setOutputPlaceholderTag(true)? For other cases, nothing is output AFAIK. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: rendering component
On Thu, Aug 11, 2011 at 1:42 PM, Wilhelmsen Tor Iver toriv...@arrive.no wrote: setVisible(false) , actually renders component but disables it via style sheet Isn't that the case only when you use setOutputPlaceholderTag(true)? For other cases, nothing is output AFAIK. true - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: custom (non wicket) modal dialog. Problem with urls.
Problem is solved now: i extract the application-relative-path with: String path = Strings.stripJSessionId(request.getRequestURI()); the trick is to overwrite method onComponentTag(ComponentTag tag) of class ResourceLink and prepend the application -relative path so i end up with e.g.: /mybaseurl/mypath/?wicket:interface=:85:border:_body:dialogContainer:contentPanels:infoTextContentPanel:externalLinks:0:externalLink::IResourceListener:: complete code: public class CustomResourceLink extends ResourceLinkVoid { private static final long serialVersionUID = -4848428865939435963L; private boolean applicationRelative = false; private PopupSettings popupSettings = null; public CustomResourceLink (String id, Resource resource) { super(id, resource); } @Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); if (isLinkEnabled() == false) { disableLink(tag); } else { if (getURL() != null) { String url = getURL().toString(); if (applicationRelative) { if (url.length() 0 url.charAt(0) == '/') { url = url.substring(1); } url = RequestUtils.getBaseUrl(this) + url; } // if the tag is an anchor proper if (tag.getName().equalsIgnoreCase(a) || tag.getName().equalsIgnoreCase(link) || tag.getName().equalsIgnoreCase(area)) { // generate the href attribute tag.put(href, Strings.replaceAll(url, , amp;)); // Add any popup script if (popupSettings != null) { // NOTE: don't encode to HTML as that is not valid // JavaScript tag.put(onclick, popupSettings.getPopupJavaScript()); } } else { // generate a popup script by asking popup settings for one if (popupSettings != null) { popupSettings.setTarget(' + url + '); String popupScript = popupSettings.getPopupJavaScript(); tag.put(onclick, popupScript); } else { // or generate an onclick JS handler directly tag.put(onclick, window.location.href=' + url + ';return false;); } } } if (popupSettings != null) { IPageMap popupPageMap = popupSettings.getPageMap(this); if (popupPageMap != null popupPageMap.getName() != null) { tag.put(target, popupPageMap.getName()); } } } } public void setApplicationRelative(boolean contextRelative) { this.applicationRelative = contextRelative; } } public class RequestUtils { public static String getBaseUrl(Component comp) { ServletWebRequest servletWebRequest = (ServletWebRequest) comp .getRequest(); HttpServletRequest request = servletWebRequest.getHttpServletRequest(); String path = Strings.stripJSessionId(request.getRequestURI()); return path; } } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/custom-non-wicket-modal-dialog-Problem-with-urls-tp3726196p3735554.html Sent from the Users forum mailing list archive at Nabble.com.
Re: Wicket 1.5: Question (or feature request) afterOnInitialize()
Igor: thank you for your reply and your solution. Could you please discuss this case with other developers and let me know what they think? In my opinion framework should make my job easier not force me to do workarounds to get what I need. Just a thought. Martin: thank you :D Kind regards Armando -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-Question-or-feature-request-afterOnInitialize-tp3732520p3735601.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Form looses data
Hi, i've added a domain model globally to my session. A form for editing this data is provided on page A. On this i have 2 submit buttons. One with setDefaultFormProcessing false (to previous page) and one with true (to next step). If i press the main submit (next step | dfp = true) then everything works as expected. If i press the other (previous page |dfp = false) and redirect to Page A all data are lost. I'm absolutely aware of the issue that false in defaultFormProcessing is not submitting the data. But because i cannot reproduce the input changed part of the form processing, i can't submit the invalid data manually. Is there any way to achieve my goal? Thanks Mike - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Form looses data
Shouldn't you be submitting that button anyway? dfp = true *Bruno Borges* www.brunoborges.com.br +55 21 76727099 On Thu, Aug 11, 2011 at 10:44 AM, Mike Mander wicket-m...@gmx.de wrote: Hi, i've added a domain model globally to my session. A form for editing this data is provided on page A. On this i have 2 submit buttons. One with setDefaultFormProcessing false (to previous page) and one with true (to next step). If i press the main submit (next step | dfp = true) then everything works as expected. If i press the other (previous page |dfp = false) and redirect to Page A all data are lost. I'm absolutely aware of the issue that false in defaultFormProcessing is not submitting the data. But because i cannot reproduce the input changed part of the form processing, i can't submit the invalid data manually. Is there any way to achieve my goal? Thanks Mike --**--**- To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.orgusers-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
CheckGroup updateModel + setrequired (Bug?)
When I set the *setRequired(true)* in a CheckGroup and Override the *onValidate* of the Form, calling *updateFormComponentModels();* to update the Models, a NullPointerException occurs in CheckGroup.updateModel. This only occurs when setRequired is setted to true, not happening when not setted or when explicitly setted to false. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/CheckGroup-updateModel-setrequired-Bug-tp3736032p3736032.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: CheckGroup updateModel + setrequired (Bug?)
Are you calling super.onValidate() ? And I think before updating the models, all components must be visitted. *Bruno Borges* www.brunoborges.com.br +55 21 76727099 On Thu, Aug 11, 2011 at 11:39 AM, delta lsgpimen...@gmail.com wrote: When I set the *setRequired(true)* in a CheckGroup and Override the *onValidate* of the Form, calling *updateFormComponentModels();* to update the Models, a NullPointerException occurs in CheckGroup.updateModel. This only occurs when setRequired is setted to true, not happening when not setted or when explicitly setted to false. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/CheckGroup-updateModel-setrequired-Bug-tp3736032p3736032.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: CheckGroup updateModel + setrequired (Bug?)
Yeap, I'm calling ;) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/CheckGroup-updateModel-setrequired-Bug-tp3736032p3736067.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Form looses data
Am 11.08.2011 16:36, schrieb Bruno Borges: Shouldn't you be submitting that button anyway? dfp = true *Bruno Borges* www.brunoborges.com.br +55 21 76727099 On Thu, Aug 11, 2011 at 10:44 AM, Mike Manderwicket-m...@gmx.de wrote: Hi, i've added a domain model globally to my session. A form for editing this data is provided on page A. On this i have 2 submit buttons. One with setDefaultFormProcessing false (to previous page) and one with true (to next step). If i press the main submit (next step | dfp = true) then everything works as expected. If i press the other (previous page |dfp = false) and redirect to Page A all data are lost. I'm absolutely aware of the issue that false in defaultFormProcessing is not submitting the data. But because i cannot reproduce the input changed part of the form processing, i can't submit the invalid data manually. Is there any way to achieve my goal? Thanks Mike --**--**- To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.orgusers-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org Then i can't goback to previous page without filling the form. The scenario is 1. goto basket 2. goto checkout (Page A in post) enter some data 3. goback to basket (dfp = false) validation should be bypassed 4. goto checkout = all entered data are present But until now with this scenario i lost all data in step 4 Thanks Mike PS: I use buttons to stay in javascript-less mode :-) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Component with ListView that adds other Components?
I think that's a case for using Border. http://wicket.apache.org/apidocs/1.4/org/apache/wicket/markup/html/border/Border.html You may check the migration of Border behaviour in 1.5 at https://cwiki.apache.org/WICKET/migration-to-wicket-15.html#MigrationtoWicket1.5-RemovedmagicfromBorderComponent Cheers, *Bruno Borges* www.brunoborges.com.br +55 21 76727099 On Wed, Aug 3, 2011 at 8:19 PM, Gary Thomas 7za...@gmail.com wrote: Stumped on this, seemed it should simple: I am making a component that uses a ListView. Two important requirements: 1) This component will add Components and other markup before the list items, which I do not want the page designer or Java coder to worry about adding themselves in markup or code. 2) I want the page designer to be able to specify the markup that will be repeated for list items, just like a ListView: ul li wicket:id=mylist Blah blah blah /li /ul So this Component's usage would look like this: ul wicket:id=mycomponent li wicket:id=mylist Blah blah blah /li /ul Which would generate this (fake markup example): ul id=mycomponent My Important Stuff buttonYadda/button form ... /form li Blah blah blah /li li Blah blah blah /li li Blah blah blah /li ... /ul I was going to use a panel, but realized I have no idea how to grab markup to use within the ListView. Help? Thanks, G --**--**- To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.orgusers-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Form looses data
You want to go back to another page without having to fill the form, but you also don't want to lose data you typed in in the previous screen? Seems weird to me. Have you considered to add Ajax update behaviour? onBlur of components, you could update the model of each component. *Bruno Borges* www.brunoborges.com.br +55 21 76727099 On Thu, Aug 11, 2011 at 11:50 AM, Mike Mander wicket-m...@gmx.de wrote: Am 11.08.2011 16:36, schrieb Bruno Borges: Shouldn't you be submitting that button anyway? dfp = true *Bruno Borges* www.brunoborges.com.br +55 21 76727099 On Thu, Aug 11, 2011 at 10:44 AM, Mike Manderwicket-m...@gmx.de wrote: Hi, i've added a domain model globally to my session. A form for editing this data is provided on page A. On this i have 2 submit buttons. One with setDefaultFormProcessing false (to previous page) and one with true (to next step). If i press the main submit (next step | dfp = true) then everything works as expected. If i press the other (previous page |dfp = false) and redirect to Page A all data are lost. I'm absolutely aware of the issue that false in defaultFormProcessing is not submitting the data. But because i cannot reproduce the input changed part of the form processing, i can't submit the invalid data manually. Is there any way to achieve my goal? Thanks Mike --** --**- To unsubscribe, e-mail: users-unsubscribe@wicket.**apa**che.orghttp://apache.org users-unsubscribe@**wicket.apache.orgusers-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org Then i can't goback to previous page without filling the form. The scenario is 1. goto basket 2. goto checkout (Page A in post) enter some data 3. goback to basket (dfp = false) validation should be bypassed 4. goto checkout = all entered data are present But until now with this scenario i lost all data in step 4 Thanks Mike PS: I use buttons to stay in javascript-less mode :-) --**--**- To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.orgusers-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: CheckGroup updateModel + setrequired (Bug?)
Hmmm, the error only occurs when no CheckBox in the CheckGroup is marked, but considering this scenario the super.onValidate() should complain about I don't have any CheckBox marked in a CheckGroup with serRequired(true), that's not what happening. And since this validation don't exists, when CheckGroup.updateModel is called I receive a NullPointerException. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/CheckGroup-updateModel-setrequired-Bug-tp3736032p3736096.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: CheckGroup updateModel + setrequired (Bug?)
Hmmm, the error only occurs when no CheckBox in the CheckGroup is marked, but considering this scenario the super.onValidate() should complain about I don't have any CheckBox marked in a CheckGroup with serRequired(true), that's not what happening. And since this validation don't exists, when CheckGroup.updateModel is called I receive a NullPointerException. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/CheckGroup-updateModel-setrequired-Bug-tp3736032p3736099.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: CheckGroup updateModel + setrequired (Bug?)
Is that Wicket 1.5 RC5.1 ? *Bruno Borges* www.brunoborges.com.br +55 21 76727099 On Thu, Aug 11, 2011 at 12:00 PM, delta lsgpimen...@gmail.com wrote: Hmmm, the error only occurs when no CheckBox in the CheckGroup is marked, but considering this scenario the super.onValidate() should complain about I don't have any CheckBox marked in a CheckGroup with serRequired(true), that's not what happening. And since this validation don't exists, when CheckGroup.updateModel is called I receive a NullPointerException. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/CheckGroup-updateModel-setrequired-Bug-tp3736032p3736099.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: CheckGroup updateModel + setrequired (Bug?)
It's 1.4.15 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/CheckGroup-updateModel-setrequired-Bug-tp3736032p3736109.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Form looses data
Am 11.08.2011 16:54, schrieb Bruno Borges: You want to go back to another page without having to fill the form, but you also don't want to lose data you typed in in the previous screen? Seems weird to me. Have you considered to add Ajax update behaviour? onBlur of components, you could update the model of each component. *Bruno Borges* www.brunoborges.com.br +55 21 76727099 On Thu, Aug 11, 2011 at 11:50 AM, Mike Manderwicket-m...@gmx.de wrote: Am 11.08.2011 16:36, schrieb Bruno Borges: Shouldn't you be submitting that button anyway? dfp = true *Bruno Borges* www.brunoborges.com.br +55 21 76727099 On Thu, Aug 11, 2011 at 10:44 AM, Mike Manderwicket-m...@gmx.de wrote: Hi, i've added a domain model globally to my session. A form for editing this data is provided on page A. On this i have 2 submit buttons. One with setDefaultFormProcessing false (to previous page) and one with true (to next step). If i press the main submit (next step | dfp = true) then everything works as expected. If i press the other (previous page |dfp = false) and redirect to Page A all data are lost. I'm absolutely aware of the issue that false in defaultFormProcessing is not submitting the data. But because i cannot reproduce the input changed part of the form processing, i can't submit the invalid data manually. Is there any way to achieve my goal? Thanks Mike --** --**- To unsubscribe, e-mail: users-unsubscribe@wicket.**apa**che.orghttp://apache.org users-unsubscribe@**wicket.apache.orgusers-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org Then i can't goback to previous page without filling the form. The scenario is 1. goto basket 2. goto checkout (Page A in post) enter some data 3. goback to basket (dfp = false) validation should be bypassed 4. goto checkout = all entered data are present But until now with this scenario i lost all data in step 4 Thanks Mike PS: I use buttons to stay in javascript-less mode :-) --**--**- To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.orgusers-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org Ajax is not an option - i have to stay javascript-less. You want to go back to another page without having to fill the form, but you also don't want to lose data you typed in in the previous screen? Seems weird to me. Not the previous screen. The current screen. I come from basket. I goto checkout. I start typing. I think oops what was the option in basket and goback to basket (dfp = false). I check the basket option and think ok let's go on checkout. And on checkout i think - damn all typed data have gone. So i leave the shop. That's the scenario i try to catch. Thanks Mike - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket Wizard Question
I have a five step static Wicket Wizard which works great for the most part. I am running on Wicket 1.4.13. I am seeing some odd behavior and stepping through a debugger hasn't yielded any causes so I am reaching out to the forum for help. If I navigate through the wizard by pressing the Next button all the way to the final step (step 5), I DO NOT complete the wizard by pressing Finish, but instead press the Previous button which takes me to step 4. From step 4, I then press the Next button. At this point, I would expect to be taken to step 5, instead it appears to complete the wizard skipping step 5 and navigating me out of the wizard completely. It acts like its executing Finish but I cannot step through the wizard in the debugger and see that is indeed what is happening. I cannot really supply any code, but from what I can tell, I am not doing anything out of the ordinary. It really is just a basic wizard. Thoughts? J.D.
Re: CheckGroup updateModel + setrequired (Bug?)
Could you test your app with 1.4.18 ? Just in case... *Bruno Borges* www.brunoborges.com.br +55 21 76727099 On Thu, Aug 11, 2011 at 12:04 PM, delta lsgpimen...@gmail.com wrote: It's 1.4.15 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/CheckGroup-updateModel-setrequired-Bug-tp3736032p3736109.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Form looses data
In your GoBack button's submit method (dpf = false), call form.updateFormComponentModels() *Bruno Borges * www.brunoborges.com.br +55 21 76727099 On Thu, Aug 11, 2011 at 12:08 PM, Mike Mander wicket-m...@gmx.de wrote: Am 11.08.2011 16:54, schrieb Bruno Borges: You want to go back to another page without having to fill the form, but you also don't want to lose data you typed in in the previous screen? Seems weird to me. Have you considered to add Ajax update behaviour? onBlur of components, you could update the model of each component. *Bruno Borges* www.brunoborges.com.br +55 21 76727099 On Thu, Aug 11, 2011 at 11:50 AM, Mike Manderwicket-m...@gmx.de wrote: Am 11.08.2011 16:36, schrieb Bruno Borges: Shouldn't you be submitting that button anyway? dfp = true *Bruno Borges* www.brunoborges.com.br +55 21 76727099 On Thu, Aug 11, 2011 at 10:44 AM, Mike Manderwicket-m...@gmx.de wrote: Hi, i've added a domain model globally to my session. A form for editing this data is provided on page A. On this i have 2 submit buttons. One with setDefaultFormProcessing false (to previous page) and one with true (to next step). If i press the main submit (next step | dfp = true) then everything works as expected. If i press the other (previous page |dfp = false) and redirect to Page A all data are lost. I'm absolutely aware of the issue that false in defaultFormProcessing is not submitting the data. But because i cannot reproduce the input changed part of the form processing, i can't submit the invalid data manually. Is there any way to achieve my goal? Thanks Mike --**--**--** --**- To unsubscribe, e-mail: users-unsubscribe@wicket.apa**che.org http://apache.org** users-unsubscribe@**wicket.**apache.org http://wicket.apache.org users-unsubscribe@**wicket.apache.orgusers-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org Then i can't goback to previous page without filling the form. The scenario is 1. goto basket 2. goto checkout (Page A in post) enter some data 3. goback to basket (dfp = false) validation should be bypassed 4. goto checkout = all entered data are present But until now with this scenario i lost all data in step 4 Thanks Mike PS: I use buttons to stay in javascript-less mode :-) --** --**- To unsubscribe, e-mail: users-unsubscribe@wicket.**apa**che.orghttp://apache.org users-unsubscribe@**wicket.apache.orgusers-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org Ajax is not an option - i have to stay javascript-less. You want to go back to another page without having to fill the form, but you also don't want to lose data you typed in in the previous screen? Seems weird to me. Not the previous screen. The current screen. I come from basket. I goto checkout. I start typing. I think oops what was the option in basket and goback to basket (dfp = false). I check the basket option and think ok let's go on checkout. And on checkout i think - damn all typed data have gone. So i leave the shop. That's the scenario i try to catch. Thanks Mike --**--**- To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.orgusers-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Form looses data
Is possible using reuseManager, but you need to keep reference to it somewhere. http://apache-wicket.1842946.n4.nabble.com/Check-box-loses-checked-state-after-error-td1855690.html ** Martin 2011/8/11 Bruno Borges bruno.bor...@gmail.com: In your GoBack button's submit method (dpf = false), call form.updateFormComponentModels() *Bruno Borges * www.brunoborges.com.br +55 21 76727099 On Thu, Aug 11, 2011 at 12:08 PM, Mike Mander wicket-m...@gmx.de wrote: Am 11.08.2011 16:54, schrieb Bruno Borges: You want to go back to another page without having to fill the form, but you also don't want to lose data you typed in in the previous screen? Seems weird to me. Have you considered to add Ajax update behaviour? onBlur of components, you could update the model of each component. *Bruno Borges* www.brunoborges.com.br +55 21 76727099 On Thu, Aug 11, 2011 at 11:50 AM, Mike Manderwicket-m...@gmx.de wrote: Am 11.08.2011 16:36, schrieb Bruno Borges: Shouldn't you be submitting that button anyway? dfp = true *Bruno Borges* www.brunoborges.com.br +55 21 76727099 On Thu, Aug 11, 2011 at 10:44 AM, Mike Manderwicket-m...@gmx.de wrote: Hi, i've added a domain model globally to my session. A form for editing this data is provided on page A. On this i have 2 submit buttons. One with setDefaultFormProcessing false (to previous page) and one with true (to next step). If i press the main submit (next step | dfp = true) then everything works as expected. If i press the other (previous page |dfp = false) and redirect to Page A all data are lost. I'm absolutely aware of the issue that false in defaultFormProcessing is not submitting the data. But because i cannot reproduce the input changed part of the form processing, i can't submit the invalid data manually. Is there any way to achieve my goal? Thanks Mike --**--**--** --**- To unsubscribe, e-mail: users-unsubscribe@wicket.apa**che.org http://apache.org** users-unsubscribe@**wicket.**apache.org http://wicket.apache.org users-unsubscribe@**wicket.apache.orgusers-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org Then i can't goback to previous page without filling the form. The scenario is 1. goto basket 2. goto checkout (Page A in post) enter some data 3. goback to basket (dfp = false) validation should be bypassed 4. goto checkout = all entered data are present But until now with this scenario i lost all data in step 4 Thanks Mike PS: I use buttons to stay in javascript-less mode :-) --** --**- To unsubscribe, e-mail: users-unsubscribe@wicket.**apa**che.orghttp://apache.org users-unsubscribe@**wicket.apache.orgusers-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org Ajax is not an option - i have to stay javascript-less. You want to go back to another page without having to fill the form, but you also don't want to lose data you typed in in the previous screen? Seems weird to me. Not the previous screen. The current screen. I come from basket. I goto checkout. I start typing. I think oops what was the option in basket and goback to basket (dfp = false). I check the basket option and think ok let's go on checkout. And on checkout i think - damn all typed data have gone. So i leave the shop. That's the scenario i try to catch. Thanks Mike --**--**- To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.orgusers-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Form looses data
Models must be updated anyway, and that's solved with form.updateFormComponentModels() *Bruno Borges* www.brunoborges.com.br +55 21 76727099 On Thu, Aug 11, 2011 at 12:21 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Is possible using reuseManager, but you need to keep reference to it somewhere. http://apache-wicket.1842946.n4.nabble.com/Check-box-loses-checked-state-after-error-td1855690.html ** Martin 2011/8/11 Bruno Borges bruno.bor...@gmail.com: In your GoBack button's submit method (dpf = false), call form.updateFormComponentModels() *Bruno Borges * www.brunoborges.com.br +55 21 76727099 On Thu, Aug 11, 2011 at 12:08 PM, Mike Mander wicket-m...@gmx.de wrote: Am 11.08.2011 16:54, schrieb Bruno Borges: You want to go back to another page without having to fill the form, but you also don't want to lose data you typed in in the previous screen? Seems weird to me. Have you considered to add Ajax update behaviour? onBlur of components, you could update the model of each component. *Bruno Borges* www.brunoborges.com.br +55 21 76727099 On Thu, Aug 11, 2011 at 11:50 AM, Mike Manderwicket-m...@gmx.de wrote: Am 11.08.2011 16:36, schrieb Bruno Borges: Shouldn't you be submitting that button anyway? dfp = true *Bruno Borges* www.brunoborges.com.br +55 21 76727099 On Thu, Aug 11, 2011 at 10:44 AM, Mike Manderwicket-m...@gmx.de wrote: Hi, i've added a domain model globally to my session. A form for editing this data is provided on page A. On this i have 2 submit buttons. One with setDefaultFormProcessing false (to previous page) and one with true (to next step). If i press the main submit (next step | dfp = true) then everything works as expected. If i press the other (previous page |dfp = false) and redirect to Page A all data are lost. I'm absolutely aware of the issue that false in defaultFormProcessing is not submitting the data. But because i cannot reproduce the input changed part of the form processing, i can't submit the invalid data manually. Is there any way to achieve my goal? Thanks Mike --**--**--** --**- To unsubscribe, e-mail: users-unsubscribe@wicket.apa**che.org http://apache.org** users-unsubscribe@**wicket.**apache.org http://wicket.apache.org users-unsubscribe@**wicket.apache.org users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org Then i can't goback to previous page without filling the form. The scenario is 1. goto basket 2. goto checkout (Page A in post) enter some data 3. goback to basket (dfp = false) validation should be bypassed 4. goto checkout = all entered data are present But until now with this scenario i lost all data in step 4 Thanks Mike PS: I use buttons to stay in javascript-less mode :-) --** --**- To unsubscribe, e-mail: users-unsubscribe@wicket.**apa**che.org http://apache.org users-unsubscribe@**wicket.apache.org users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org Ajax is not an option - i have to stay javascript-less. You want to go back to another page without having to fill the form, but you also don't want to lose data you typed in in the previous screen? Seems weird to me. Not the previous screen. The current screen. I come from basket. I goto checkout. I start typing. I think oops what was the option in basket and goback to basket (dfp = false). I check the basket option and think ok let's go on checkout. And on checkout i think - damn all typed data have gone. So i leave the shop. That's the scenario i try to catch. Thanks Mike --**--**- To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.org users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket 1.5: Question (or feature request) afterOnInitialize()
On Thu, Aug 11, 2011 at 4:35 AM, armandoxxx armando@dropchop.com wrote: Igor: thank you for your reply and your solution. Could you please discuss this case with other developers and let me know what they think? this is the place where the developers discuss things. if any of them want to chime in they are free to do so. this list is our main means of communication. In my opinion framework should make my job easier not force me to do workarounds to get what I need. Just a thought. nothing i have shown you is a workaround, it is using extension points offered by the framework to layer in new functionality specific to your usecase. -igor Martin: thank you :D Kind regards Armando -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-Question-or-feature-request-afterOnInitialize-tp3732520p3735601.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: CheckGroup updateModel + setrequired (Bug?)
why are you calling updatemodels() from inside onvalidate()? this is what happens anyways if validation passes. i am guessing your code does not check if the form is valid before calling updatemodels() which causes the error you are describing since you are forcing a model update for a component that is in an invalid state. -igor On Thu, Aug 11, 2011 at 7:59 AM, delta lsgpimen...@gmail.com wrote: Hmmm, the error only occurs when no CheckBox in the CheckGroup is marked, but considering this scenario the super.onValidate() should complain about I don't have any CheckBox marked in a CheckGroup with serRequired(true), that's not what happening. And since this validation don't exists, when CheckGroup.updateModel is called I receive a NullPointerException. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/CheckGroup-updateModel-setrequired-Bug-tp3736032p3736096.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket 1.5: Question (or feature request) afterOnInitialize()
Isn't this correct? onInitialize() { super.onInitialize(); ... // whatever I put here would be the same as overriding onAfterInitialize(); } *Bruno Borges* www.brunoborges.com.br +55 21 76727099 On Thu, Aug 11, 2011 at 12:35 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: On Thu, Aug 11, 2011 at 4:35 AM, armandoxxx armando@dropchop.com wrote: Igor: thank you for your reply and your solution. Could you please discuss this case with other developers and let me know what they think? this is the place where the developers discuss things. if any of them want to chime in they are free to do so. this list is our main means of communication. In my opinion framework should make my job easier not force me to do workarounds to get what I need. Just a thought. nothing i have shown you is a workaround, it is using extension points offered by the framework to layer in new functionality specific to your usecase. -igor Martin: thank you :D Kind regards Armando -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-Question-or-feature-request-afterOnInitialize-tp3732520p3735601.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Form looses data
No, if you don't want to update models, you can use reusemanager. It retains the raw unsubmitted values in rawInput fields. ** Martin 2011/8/11 Bruno Borges bruno.bor...@gmail.com: Models must be updated anyway, and that's solved with form.updateFormComponentModels() *Bruno Borges* www.brunoborges.com.br +55 21 76727099 On Thu, Aug 11, 2011 at 12:21 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Is possible using reuseManager, but you need to keep reference to it somewhere. http://apache-wicket.1842946.n4.nabble.com/Check-box-loses-checked-state-after-error-td1855690.html ** Martin 2011/8/11 Bruno Borges bruno.bor...@gmail.com: In your GoBack button's submit method (dpf = false), call form.updateFormComponentModels() *Bruno Borges * www.brunoborges.com.br +55 21 76727099 On Thu, Aug 11, 2011 at 12:08 PM, Mike Mander wicket-m...@gmx.de wrote: Am 11.08.2011 16:54, schrieb Bruno Borges: You want to go back to another page without having to fill the form, but you also don't want to lose data you typed in in the previous screen? Seems weird to me. Have you considered to add Ajax update behaviour? onBlur of components, you could update the model of each component. *Bruno Borges* www.brunoborges.com.br +55 21 76727099 On Thu, Aug 11, 2011 at 11:50 AM, Mike Manderwicket-m...@gmx.de wrote: Am 11.08.2011 16:36, schrieb Bruno Borges: Shouldn't you be submitting that button anyway? dfp = true *Bruno Borges* www.brunoborges.com.br +55 21 76727099 On Thu, Aug 11, 2011 at 10:44 AM, Mike Manderwicket-m...@gmx.de wrote: Hi, i've added a domain model globally to my session. A form for editing this data is provided on page A. On this i have 2 submit buttons. One with setDefaultFormProcessing false (to previous page) and one with true (to next step). If i press the main submit (next step | dfp = true) then everything works as expected. If i press the other (previous page |dfp = false) and redirect to Page A all data are lost. I'm absolutely aware of the issue that false in defaultFormProcessing is not submitting the data. But because i cannot reproduce the input changed part of the form processing, i can't submit the invalid data manually. Is there any way to achieve my goal? Thanks Mike --**--**--** --**- To unsubscribe, e-mail: users-unsubscribe@wicket.apa**che.org http://apache.org** users-unsubscribe@**wicket.**apache.org http://wicket.apache.org users-unsubscribe@**wicket.apache.org users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org Then i can't goback to previous page without filling the form. The scenario is 1. goto basket 2. goto checkout (Page A in post) enter some data 3. goback to basket (dfp = false) validation should be bypassed 4. goto checkout = all entered data are present But until now with this scenario i lost all data in step 4 Thanks Mike PS: I use buttons to stay in javascript-less mode :-) --** --**- To unsubscribe, e-mail: users-unsubscribe@wicket.**apa**che.org http://apache.org users-unsubscribe@**wicket.apache.org users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org Ajax is not an option - i have to stay javascript-less. You want to go back to another page without having to fill the form, but you also don't want to lose data you typed in in the previous screen? Seems weird to me. Not the previous screen. The current screen. I come from basket. I goto checkout. I start typing. I think oops what was the option in basket and goback to basket (dfp = false). I check the basket option and think ok let's go on checkout. And on checkout i think - damn all typed data have gone. So i leave the shop. That's the scenario i try to catch. Thanks Mike --**--**- To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.org users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: CheckGroup updateModel + setrequired (Bug?)
I'm doing that to force the Models to update, since when I receive a validate error, like when I dont fill a required field, the checkgroup in the page loose the ckeckboxes marked, so I update the models and the marked checkboxes come back (So the user dont have to mark all over again just because of a field he forgot to fill). Why the component is in a invalid state? It's in a invalid state because of the setRequired(true)? The error only happens in this scenario, like I said before. I tried the *hasError()*: if (!hasError()) { updateFormComponentModels(); } It returns true when I don't mark any checkbox in the checkgroups (ok), but since the *updateFormComponentModels()* will only be called if no error occurs, I will loose the marked checkboxes. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/CheckGroup-updateModel-setrequired-Bug-tp3736032p3736592.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: CheckGroup updateModel + setrequired (Bug?)
I can't, we must work with this version, because of the company. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/CheckGroup-updateModel-setrequired-Bug-tp3736032p3736594.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
onInitialize in the page construction/initialization lifecycle
I just realized that onInitialize() isn't the 'initialize' of traditional frameworks that I thought it was: The style of initialization that occurs in the lifecycle after instance construction has completed and the call to the constructors has returned. onInitialize appears to be called while still executing the base class constructor code which makes things awkward. It is called before the code in derived (extended) class constructors, after the initial super(parameters); has been executed which means any set up code that I have put in the constructors has not yet been executed when onInitialize() is called - which makes the use cases for onInitialize() much more rare than I first thought. Given than the purpose of using onInitialize(), according to my thinking, was to be able to perform some 'post instance construction' initialization I was quite surprised to find that the relevant attributes were still uninitialized. Is there a real 'onInitialize' style override I can use to add components to a page after the page has been fully constructed and hence all of its attributes are configured properly? I'm using 1.4.x. Is the lifecycle and execution of onInitialize() any different in 1.5.x?
Re: onInitialize in the page construction/initialization lifecycle
this is true only for page#oninitialize() which is called at the time the first add(component) is called. it remains like this for backwards compatbility with the first introduction of #oninitialize(). in 1.5 this has been changed so that oninitialize() is called after the page is constructed. -igor On Thu, Aug 11, 2011 at 5:00 PM, Chris Colman chr...@stepaheadsoftware.com wrote: I just realized that onInitialize() isn't the 'initialize' of traditional frameworks that I thought it was: The style of initialization that occurs in the lifecycle after instance construction has completed and the call to the constructors has returned. onInitialize appears to be called while still executing the base class constructor code which makes things awkward. It is called before the code in derived (extended) class constructors, after the initial super(parameters); has been executed which means any set up code that I have put in the constructors has not yet been executed when onInitialize() is called - which makes the use cases for onInitialize() much more rare than I first thought. Given than the purpose of using onInitialize(), according to my thinking, was to be able to perform some 'post instance construction' initialization I was quite surprised to find that the relevant attributes were still uninitialized. Is there a real 'onInitialize' style override I can use to add components to a page after the page has been fully constructed and hence all of its attributes are configured properly? I'm using 1.4.x. Is the lifecycle and execution of onInitialize() any different in 1.5.x? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: onInitialize in the page construction/initialization lifecycle
this is true only for page#oninitialize() which is called at the time the first add(component) is called. it remains like this for backwards compatbility with the first introduction of #oninitialize(). Ahuh! In 1.5 this has been changed so that oninitialize() is called after the page is constructed. Cool! I think you just convinced me to migrate to 1.5.x ASAP! (That was the little shove I needed!) -igor On Thu, Aug 11, 2011 at 5:00 PM, Chris Colman chr...@stepaheadsoftware.com wrote: I just realized that onInitialize() isn't the 'initialize' of traditional frameworks that I thought it was: The style of initialization that occurs in the lifecycle after instance construction has completed and the call to the constructors has returned. onInitialize appears to be called while still executing the base class constructor code which makes things awkward. It is called before the code in derived (extended) class constructors, after the initial super(parameters); has been executed which means any set up code that I have put in the constructors has not yet been executed when onInitialize() is called - which makes the use cases for onInitialize() much more rare than I first thought. Given than the purpose of using onInitialize(), according to my thinking, was to be able to perform some 'post instance construction' initialization I was quite surprised to find that the relevant attributes were still uninitialized. Is there a real 'onInitialize' style override I can use to add components to a page after the page has been fully constructed and hence all of its attributes are configured properly? I'm using 1.4.x. Is the lifecycle and execution of onInitialize() any different in 1.5.x? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: CheckGroup updateModel + setrequired (Bug?)
Even if you can't upgrade the production version its worth testing it against the newer version of Wicket to see if the bug is resolved. On Thu, Aug 11, 2011 at 12:43 PM, delta lsgpimen...@gmail.com wrote: I can't, we must work with this version, because of the company. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/CheckGroup-updateModel-setrequired-Bug-tp3736032p3736594.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
[Announce] Wicket Stuff Core 1.4.18 Released
Hello, Following the release of wicket 1.4.18 I have cut a matching wicketstuff-core release. The artifacts have been promoted and should be synced into the maven central repository with in a 2-3 hours. They can be retrieved like this: dependency groupIdorg.wicketstuff/groupId artifactIdmodalx/artifactId version1.4.18/version /dependency The release tag is here: https://github.com/wicketstuff/core/tree/wicketstuff-core-1.4.18 Development on the next release takes place on the core-1.4.x branch here: https://github.com/wicketstuff/core/tree/core-1.4.x Issues can be reported here: https://github.com/wicketstuff/core/issues The Project Wiki is available here: https://github.com/wicketstuff/core/wiki New Modules included in this release: ModalX: Extensions to the upstream Wicket ModalWindow component. Changelog between wicketstuff-core-1.4.17.3 and this release: martin-g (4): Add ModalX project. Rename packages to org.wicketstuff Ignore SBT's project/boot/ folder Rename folder css.modalx to css/modalx as it was in SVN export Chris Colman (1): Added wrapper Form around ModalWindow to comply with Wicket design and Michael O'Cleirigh (1): commit wicketstuff-core-1.4.18 release pom's (This listing was generated using: git shortlog -n wicketstuff-core-1.4.18..wicketstuff-core-1.4.17.3). I will plan to do the next release within one month of today but if you commit code and/or need a release cut sooner please either contact me directly or file a ticket. Regards, Mike - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [Announce] Wicket Stuff Core 1.4.18 Released
Mike, excelent job!! Thank you very much. *Bruno Borges* www.brunoborges.com.br +55 21 76727099 On Thu, Aug 11, 2011 at 10:56 PM, Michael O'Cleirigh michael.ocleir...@rivulet.ca wrote: Hello, Following the release of wicket 1.4.18 I have cut a matching wicketstuff-core release. The artifacts have been promoted and should be synced into the maven central repository with in a 2-3 hours. They can be retrieved like this: dependency groupIdorg.wicketstuff/**groupId artifactIdmodalx/**artifactId version1.4.18/version /dependency The release tag is here: https://github.com/**wicketstuff/core/tree/** wicketstuff-core-1.4.18https://github.com/wicketstuff/core/tree/wicketstuff-core-1.4.18 Development on the next release takes place on the core-1.4.x branch here: https://github.com/**wicketstuff/core/tree/core-1.**4.xhttps://github.com/wicketstuff/core/tree/core-1.4.x Issues can be reported here: https://github.com/**wicketstuff/core/issueshttps://github.com/wicketstuff/core/issues The Project Wiki is available here: https://github.com/** wicketstuff/core/wiki https://github.com/wicketstuff/core/wiki New Modules included in this release: ModalX: Extensions to the upstream Wicket ModalWindow component. Changelog between wicketstuff-core-1.4.17.3 and this release: martin-g (4): Add ModalX project. Rename packages to org.wicketstuff Ignore SBT's project/boot/ folder Rename folder css.modalx to css/modalx as it was in SVN export Chris Colman (1): Added wrapper Form around ModalWindow to comply with Wicket design and Michael O'Cleirigh (1): commit wicketstuff-core-1.4.18 release pom's (This listing was generated using: git shortlog -n wicketstuff-core-1.4.18..**wicketstuff-core-1.4.17.3). I will plan to do the next release within one month of today but if you commit code and/or need a release cut sooner please either contact me directly or file a ticket. Regards, Mike --**--**- To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.orgusers-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Ajax Response xml showing in browser
Hi Jeremy, did you find a solution as we've had the problem for a long time now and more and more people are reporting it as they move over to FF and Chrome? On Tue, Jan 25, 2011 at 3:39 AM, Jeremy Thomerson jer...@wickettraining.com wrote: Perhaps this thread will help: http://apache-wicket.1842946.n4.nabble.com/Ajax-response-render-as-source-in-the-browser-tt3028722.html -- Jeremy Thomerson http://wickettraining.com *Need a CMS for Wicket? Use Brix! http://brixcms.org* On Mon, Jan 24, 2011 at 9:48 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote: please attach a quickstart that reproduce it to a jira issue. -igor On Sun, Jan 23, 2011 at 10:40 PM, Jeffrey Schneller jeffrey.schnel...@envisa.com wrote: Got an odd issue occurring where the Ajax Response xml is showing in the browser rather than modifying the DOM of the page as it usually does. The scenario is the following: My Login page is abstract and has an abstract method called onLoginSuccess. When the login is successful we call onLoginSuccess. Abstract Class called LoginLink which extends AjaxLink LoginLink has an abstract method called onSuccess() and onAlreadyLoggedIn() The Login page is constructed and has it's abstract method onLoginSuccess defined to call onSuccess() The onClick method of LoginLink does a setResponsePage to my Login page if not already logged in and calls onAlreadyLoggedIn() if the user is already logged into the site. I have a page called Page1 which contains a LoginLink. The onSuccess() method is defined to setResponsePage() to the page I ultimately need to go to say Page2. The onAlreadyLoggedIn() method is defined to setResponsePage() to the page I ultimately need to go to say Page2. On Page2, there are AjaxButtons to submit forms. If any button is clicked I get the AjaxResponse xml showing in the browser window. Any ideas on how to solve this? Is there another way of doing this interaction with built in wicket components. Thanks. Jeff - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Ajax response render as source in the browser
just to say we still have this issue and its getting more and more worse as people are moving to FF and Chrome. We have no idea how to solve as we cannot reproduce it consistently. On Mon, Dec 13, 2010 at 8:41 PM, Wayne W waynemailingli...@gmail.com wrote: Hello everyone, I thought you might be interested. At the weekend I experienced this problem myself on my local machine, so I had the chance to debug and figure what was happening. The short version is 99.9% sure its a javascript engine bug on Firefox (and we've had a couple of users say they had it on Chome). The only way to 'fix' the issue was to clear all cached data from the browser. Restarting the browser or the server made no difference. I will report this to Mozilla today. Luckily I could consistently make it fail and succeed so I could debug and trace exactly what was happening. I don't know if thus is something to do with the URL format of the request (I very much doubt it) but its odd that this has never been reported before, but clearly it wasn't working for use and for some of our users. We observed the following: GOOD REQUEST We could set break points in the wicket-ajax.js and step though it until the Request.doGet line 841 where transport.send(null) is called. The headers where: Response Headers Content-Type text/xml; charset=utf-8 Pragma no-cache Cache-Control no-cache, must-revalidate Expires Mon, 26 Jul 1997 05:00:00 GMT Content-Length 3346 Server Jetty(6.1.4) Request Headers Host foo7.glasscubesdev.com:8080 User-Agent Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12 ( .NET CLR 3.5.30729; .NET4.0C) Accept text/xml Accept-Language en-gb,en-us;q=0.9,de;q=0.8,es;q=0.7,pl;q=0.6,hu;q=0.4,nl;q=0.3,sv-se;q=0.2,en;q=0.1 Accept-Encoding gzip,deflate Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive 115 Connection keep-alive Wicket-Ajax true Wicket-FocusedElementId changeBillingAddress177 Referer http://foo7.glasscubesdev.com:8080/?wicket:interface=:20 Cookie JSESSIONID=1vsuz0qz6v33o Now for the BAD REQUEST At first none of the break points in the javascript would hit at all , we'd click on the ajaxlink and immediately we would see the ajax response from the server in the browser window and the URL in the address bar as: http://foo7.glasscubesdev.com:8080/?wicket:interface=:44:changeBillingAddress::IBehaviorListener:0:random=0.7035102055608244 So we knew the javascript must of been running as the random parameter was different each time it failed. I then realised that I needed to 're-set' the break points in the wicket-ajax.js again. It seems that firefug was treating the js file as a different file when on the failing request versus the good request. Anyhow once I realised that I could step through it again to the same line in the Request::doGet(). At this point we got the behaviour as described before with the URL in the browser and the ajax response in the page. Looking at the headers we can see: Response Headers Content-Type text/xml; charset=utf-8 Expires Mon, 26 Jul 1997 05:00:00 GMT Cache-Control no-cache, must-revalidate Pragma no-cache Content-Length 3346 Server Jetty(6.1.4) Request Headers Host foo7.glasscubesdev.com:8080 User-Agent Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12 ( .NET CLR 3.5.30729; .NET4.0C) Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language en-gb,en-us;q=0.9,de;q=0.8,es;q=0.7,pl;q=0.6,hu;q=0.4,nl;q=0.3,sv-se;q=0.2,en;q=0.1 Accept-Encoding gzip,deflate Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive 115 Connection keep-alive Cookie JSESSIONID=1vsuz0qz6v33o The wicket specific headers and content type are not there, even though the code was explicitly setting them just before the call to transport send. Our only conclusion is that is must be a javascript engine bug, we just surprised this has never reported before as its not a wicket bug . On Tue, Nov 16, 2010 at 5:29 PM, Wayne W waynemailingli...@gmail.com wrote: Hello, we've upgraded the apache to 2.2.15 in production and this made no difference. However today we got a screen shot from one client who has been having the issue see: https://home.glasscubes.com/share/code/8a8c7ecf37fe9d95cefaf787529b0828 (you'll need to download to see the details of the URL) What's really odd about this is that it looks like the browser is doing a HTTP GET rather than using the xml request object - you can plainly see in the browser the URL. Looking at the code for the onclick event it looks (to me normal) (see below). Anyone got any further ideas on this? Its like the wicketAjaxGet is literally doing a GET! a onclick=if (document.getElementById('spinnerContainere')) (document.getElementById('spinnerContainere')).style.display = 'inline';if
Mapper based on user-defined URLs
Hi all, I've digged into PackageMapper and CryptoMapper trying to achieve a Mapper based on user defined URLs, but honestly, it is not easy (at least for me). The goal is to provide access to pages in package com.mysite.profile (pages: Guests, Messages, Wall, Home, etc) through a root path with user name like: http://mysite.com/${username}/Guests And, one user may open as several tabs as he wants, each for different user. Links should also be easily provided between pages beneath that path. One workaround came to mind: - loop through user database and mountPackage for each username But this seems a little odd to do, so that's why I came to the list. Anybody with a suggestion? *Bruno Borges* www.brunoborges.com.br +55 21 76727099
Re: Mapper based on user-defined URLs
if you create a quickstart that people can play with you will get a lot more responses... -igor On Thu, Aug 11, 2011 at 10:38 PM, Bruno Borges bruno.bor...@gmail.com wrote: Hi all, I've digged into PackageMapper and CryptoMapper trying to achieve a Mapper based on user defined URLs, but honestly, it is not easy (at least for me). The goal is to provide access to pages in package com.mysite.profile (pages: Guests, Messages, Wall, Home, etc) through a root path with user name like: http://mysite.com/${username}/Guests And, one user may open as several tabs as he wants, each for different user. Links should also be easily provided between pages beneath that path. One workaround came to mind: - loop through user database and mountPackage for each username But this seems a little odd to do, so that's why I came to the list. Anybody with a suggestion? *Bruno Borges* www.brunoborges.com.br +55 21 76727099 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket 1.5: Question (or feature request) afterOnInitialize()
@IGor: I figured it out .. no need for new features. @Bruno: if you cann onAfterInitialize() in onInitialize() you can't be sure all components on the page we're initialized() Regards Armando -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-Question-or-feature-request-afterOnInitialize-tp3732520p3738002.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org