Re: double click on AjaxSubmitLink and page expired
thanks Martin - I'll try the veil and report later -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/double-click-on-AjaxSubmitLink-and-page-expired-tp4449450p4453493.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: double click on AjaxSubmitLink and page expired
I already tried removing the "reset" code - didn't work. By veil you mean something like the jquery plugin blockUi? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/double-click-on-AjaxSubmitLink-and-page-expired-tp4449450p4453452.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: double click on AjaxSubmitLink and page expired
in onSubmit of the AjaxSubmitLink i do: getSession.untouch(firstPage); getSession.clear(); setResponsePaeg(new myNextPage()); -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/double-click-on-AjaxSubmitLink-and-page-expired-tp4449450p4453399.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: double click on AjaxSubmitLink and page expired
I used exactly the one in Apache Wicket Cookbook: BlockingDecorator.java: public class BlockingDecorator implements IAjaxCallDecorator { private static final String latch="var locked=this.hasAttribute('data-wicket-blocked');" + "if (locked) { return false; }"+ "this.setAttribute('data-wicket-blocked','data-wicket-blocked');"; private static final String reset="this.removeAttribute('data-wicket-blocked');"; public CharSequence decorateScript(CharSequence script) { return latch + script; } public CharSequence decorateOnSuccessScript(CharSequence script) { return reset + script; } public CharSequence decorateOnFailureScript(CharSequence script) { return reset + script; } } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/double-click-on-AjaxSubmitLink-and-page-expired-tp4449450p4453255.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: double click on AjaxSubmitLink and page expired
hi again Can you help me with this? I'm really stuck with this problem... thanks Rebecca -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/double-click-on-AjaxSubmitLink-and-page-expired-tp4449450p4453153.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: double click on AjaxSubmitLink and page expired
hi Martin First, I understand that wicket internals fail, but why the javascript i added using AjaxCallDecorator (I used the example in the Apache Wicket Cookbook) to block the second submit - has no effect? I see the JS is added in the beginning of the onclick property of the button and is called before the request goes to the server, but i can still press the submit button right after the first click and it somehow arrives to the server again. Second, i use untouch() to remove the previous page from the session, in order to prevent the user from using the back button. Nothing else worked for me and i saw other similar posts in this forum, where other wicket users used the same hack. I'll be glad to use a better solution. thanks Rebecca -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/double-click-on-AjaxSubmitLink-and-page-expired-tp4449450p4449825.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: double click on AjaxSubmitLink and page expired
sorry - i forgot - I'm using wicket 1.4.18 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/double-click-on-AjaxSubmitLink-and-page-expired-tp4449450p4449457.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
double click on AjaxSubmitLink and page expired
Hello all, I have a page with a form and an AjaxSubmitLink on it. In the onSubmit() I do some business logic and redirect the user to the next page using setResponsePage(nextPage). Just before redirecting to the next page I do: getSession.untouch(firstPage); getSession.clear(); I do this in order to prevent the user from returning to this page. The problem is when the user clicks twice on the AjaxSubmitLink - the clear session logic get's called in the first click and then i get "page expired" in the second link. I tried to use AjaxCallDecorator to block the button in the second click, but still got the "page expired". Can you help me here? Am I trying to do something that is not possible? thanks Rebecca -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/double-click-on-AjaxSubmitLink-and-page-expired-tp4449450p4449450.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: How to clear PageMap in Wicket 1.5?
hi dear wicket authors, I must say that the functionallity Matt is describing is a very important feature. We use Matt's hack in all our wicket applications using wicket 1.4. Please (please please) add this as an official feature to 1.5. thanks Rebecca -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-clear-PageMap-in-Wicket-1-5-tp3971976p4310158.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: Button component not enabled in FireFox
hello, This problem happens in chrome v13 too. Does anyone has any idea how to solve this? thanks Rebecca -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Button-component-not-enabled-in-FireFox-tp3675168p3832783.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: How to remove all previous pages from pagemap
Hello, Well i have to say that i spent hours yesterday trying to understand this. It was exactly as Matthias described: On clicking the back button, wicket goes to the server to fetch the page (which is o.k. - i asked browser not to cache). But instead of rendering a new bookmarkable version of the page, it rendered a wizard page that was stored in the server. Nothing helped (getSession().clear(), getPageMap.clear()). Only Matt's solution did the work (thanks Matt). This scenario of a wizard page which redirects to a message page is a very common one (and can't be defined as an ugly solution btw). Also, the need to prevent the user from going back to a wizard he just completed is also very common. Do you precious wicketiers have added/found a solution to this need in Wicket? thanks Rebecca -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-remove-all-previous-pages-from-pagemap-tp3236570p3811843.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: Apache Wicket releases Wicket 1.5
Thank you wicket team for all your work and effort!!! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Apache-Wicket-releases-Wicket-1-5-tp3797412p3798223.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: onchane not working with jquery numeric plugin
I wish things were dependent on what i need (it's a business requirement) :-) About your example - I don't want to show a message on parse error, I just don't want to let the user to input characters that are not numbers. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/onchane-not-working-with-jquery-numeric-plugin-tp3751788p3752224.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: onchane not working with jquery numeric plugin
Hi Martin, I checked the plug-in js file and did not find use of the functions you mentioned. Anyways, even with my poor JS knowledge i understood that there is a clash with the plug-in. Can you recommend of another package that i can use for client side numeric restriction on text field. Is there a wicket way to do it? Thanks a lot Rebecca -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/onchane-not-working-with-jquery-numeric-plugin-tp3751788p3752095.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: onchange not working with jquery numeric plugin
The ajax did work with "onkeyup" but i really need the "onchange" event. What do you mean by "the jquery function must be binded to the same behaviour "? Thanks Rebecca -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/onchane-not-working-with-jquery-numeric-plugin-tp3751788p3752004.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
onchane not working with jquery numeric plugin
hello, I'm using wicket 1.4.16. I have a simple text field component on a phone number panel. I used TexoTela's jquery plugin "jquery.numeric" to enable only numeric input to the text field. I added it in a
Re: onclick ajax event stops working when adding onmouseover
Hello again Do you have an idea why this 2 ajax events don't work together? thanks Rebecca -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/onclick-ajax-event-stops-working-when-adding-onmouseover-tp3674638p3680546.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
onclick ajax event stops working when adding onmouseover
Hello friends, I have a problem i don't understand: I have a list view of columns (inside a list view of rows). When i add an ajaxEventBehaviour("onckick") to each col item - it works. When i add another ajaxEventBehaviour("onmouseover") - the mouse over works but the onclick stops working (it does not enter the onEvent()). What am i doing wrong? here's my code: timeSlotsListView = new ListView>( "timeSlotsLists", new PropertyModel(this, "timeSlotsLists")) { @Override public void populateItem(final ListItem
> row) { List timeSlotsPerDate = row.getModelObject(); row.add(new AttributeModifier("class", true, new AbstractReadOnlyModel() { @Override public String getObject() { return (row.getIndex() % 2 == 1) ? "even" : "odd"; } })); row.add(new ListView("timeSlotsPerDate", timeSlotsPerDate) { @Override protected void populateItem(final ListItem col) { final MeetingTimeSlot meetingTimeSlot = (MeetingTimeSlot) col.getModelObject(); final WebMarkupContainer timeSlotContainer = new WebMarkupContainer("timeSlotContainer"); Label timeRangeLabel = new Label("timeRangeLabel", meetingTimeSlot.getTimeRange()); timeSlotContainer.add(timeRangeLabel); timeSlotContainer.setOutputMarkupId(true); timeSlotContainer.add(new AjaxEventBehavior("onclick") { protected void onEvent(AjaxRequestTarget target) { System.out.println("in timeSlotContainer onclick"); prevTimeSlotContainer.add(new SimpleAttributeModifier("style", "color: #6A6A6A")); target.addComponent(prevTimeSlotContainer); getPanelModelObject().setMeetingTimeSlot( (MeetingTimeSlot) col.getModelObject()); getPanelModelObject().setMeetingBranchLogin(branchAvailabilityData.getBranchLogIn()); selectedMeetingDateContainer.setVisibilityAllowed(true); target.addComponent(selectedMeetingDateContainer); timeSlotContainer.add(new SimpleAttributeModifier("style", "color: red;")); target.addComponent(timeSlotContainer); prevTimeSlotContainer = timeSlotContainer; }; }); timeSlotContainer.add(new AjaxEventBehavior("onmouseover") { protected void onEvent(AjaxRequestTarget target) { System.out.println("in timeSlotContainer onmouseover"); timeSlotContainer.add(new AttributeModifier("class", true, new Model("even"))); target.addComponent(timeSlotContainer); }; }); timeSlotContainer.add(new AjaxEventBehavior("onmouseout") { protected void onEvent(AjaxRequestTarget target) { System.out.println("in timeSlotContainer onmouseout"); String bgStyle = (row.getIndex() % 2 == 1) ? "even" : "odd"; timeSlotContainer.add(new AttributeModifier("class", tru
Re: Howto mark a FormComponent as invalid without having a feedbackmessage?
thanks Martin:-( -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Howto-mark-a-FormComponent-as-invalid-without-having-a-feedbackmessage-tp1871821p3667171.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: Howto mark a FormComponent as invalid without having a feedbackmessage?
Hello Dears, Regarding Matt's question from 2008 - Is there a way to mark a form component as invalid without using the error() method? Rebecca -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Howto-mark-a-FormComponent-as-invalid-without-having-a-feedbackmessage-tp1871821p3667147.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: Displaying update error in Wizard step, need ideas
Hi again I found a solution - just add the "org.apache.wicket.extensions.wizard.FinishButton.step.did.not.complete" to your message file with what ever message you want. I still don't understand why the wizard must error this message anyway? Rebecca -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Displaying-update-error-in-Wizard-step-need-ideas-tp3022966p3626038.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: Displaying update error in Wizard step, need ideas
hi Nelson, Did you find a solution for this one? I have the same problem :-( Thanks Rebecca -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Displaying-update-error-in-Wizard-step-need-ideas-tp3022966p3626027.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: wicket production statistics
Thanks Martin - the list is impressive, but it would really help me if I also had a list of big IT companies other well banks/ organizations that use wicket in production. Does anyone have a promotional presentation about wicket? Thanks Rebbecca -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-production-statistics-tp3574928p3584823.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
wicket production statistics
hello friends, I really love wicket and I want to promote it in my organization. I need some promotional stuff/ presentation on wicket. Also, some statistics of usage in production sites. Can someone point me to a relevant document? Thanks Rebecca -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-production-statistics-tp3574928p3574928.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: adding style to multiple form fields on validaton
hi there Has anyone have an idea for me? Thanks Rebecca -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/adding-style-to-multiple-form-fields-on-validaton-tp3560363p3564982.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: adding style to multiple form fields on validaton
Martin you understood my question - thanks Now, what if compA and compB are added to panelC and when compA is invalid, I want to color all the panel with red? What is the right way to do that? Thanks again Rebecca -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/adding-style-to-multiple-form-fields-on-validaton-tp3560363p3562251.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
adding style to multiple form fields on validaton
Hello friends, I have form with fields A and B. When field A is invalid - it is colored in red (by adding ValidationStyleBehavior to it - see code below) How can I color field B when field A is invalid? class ValidationStyleBehavior extends AbstractBehavior { public void onComponentTag(final Component component, final ComponentTag tag) { FormComponent comp = (FormComponent) component; if (comp.isValid() && comp.getConvertedInput() != null) { tag.getAttributes().put("class", "valid"); } else if (!comp.isValid()) { tag.getAttributes().put("class", "invalid"); } } }; Thanks Rebecca -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/adding-style-to-multiple-form-fields-on-validaton-tp3560363p3560363.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: warn on exit from browser
Thanks Robert, but the setRedirect(true) did not help me -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/warn-on-exit-from-browser-tp3516569p3543593.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: warn on exit from browser
Thank you all for replying It does sound like I'm trying to do something impossible, but I would like to post my code here in case i did not explain the problem correctly: I add onbeforeunload event to the body of my page, which calls a JS function. The JS does submit to my form. In my form onSubmit() I do a setResponsePage. I see that it get's into the onSubmit() (and even to the destination page's constructor), but after exit from onSubmit(), it returns to the original page (refereshing the entered data). Here's the code: on page body.add(new SimpleAttributeModifier("onload", "isSubmit=false;")); StringBuilder js = new StringBuilder(); js.append("if(!isSubmit){checkLeaving( '"); js.append(getString("leaveWizardMessage")); js.append("', '"); js.append(newAccountWizard.getForm().getMarkupId()); js.append("', '"); js.append(newAccountWizard.getConfirmationModal().getMarkupId()); js.append("')};"); body.add(new SimpleAttributeModifier("onbeforeunload", js.toString())); add(body); js file function checkLeaving(message, formId, modalId, linkId){ //alert("formId = " + formId); var answer = confirm(message); if(answer == true){ var form = document.getElementById(formId); //var modal = document.getElementById(modalId); //var submitLink = document.getElementById(linkId); alert("before submit"); form.submit(); //submitLink.onclick(); //return false; } } wizard panel - @Override protected Form newForm(String id) { form = new Form(id){ @Override protected void onSubmit() { System.out.println("in form submit1"); setResponsePage(NewAccountRegistrationPage.class); System.out.println("in form submit2"); } protected void onError() { System.out.println("in form error"); }; }; Can someone please tell me if it's possible? Rebbaca -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/warn-on-exit-from-browser-tp3516569p3534945.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: warn on exit from browser
Thank you andrea, but i already managed to use javascript to show a confirm dialog. What I would like to know is if it is possible to change the default behavior of the browser and to show a wicket popup instead of the confirm dialog? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/warn-on-exit-from-browser-tp3516569p3516849.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
warn on exit from browser
Hello all, I would like to know if there is a way to open a popup window just before the user tries to exit the browser window? I tried using the "onbeforeunload" event on the body tag and managed to get a prompt message that enables me to go back to the page i tried to exit. Do you know a better solution? Thanks Rebecca -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/warn-on-exit-from-browser-tp3516569p3516569.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