Re: inmethod grid
Ok i'll put in my stuff when I get time, hopefully during next week.. 2010/7/2 Charles Deal chuckdea...@gmail.com Some of my changes alter the inmethod core to facilitate inheritance too. If the change is in the name of a more extensible component, than I say go for it. On Thu, Jul 1, 2010 at 1:16 PM, nino martinez wael nino.martinez.w...@gmail.com wrote: Heh, I guess he don't mind the additions me and Charles have made then. Only thing about my code are that my delete button are using a workaround to be functional, otherwise i'd have to change Matejs core code so it supports inheritance better.. Nice that his site are running brix, and also shows it.. regards Nino 2010/7/1 Martijn Dashorst martijn.dasho...@gmail.com Matej is busy getting rich from his iPhone application called Air Video (http://inmethod.com). Note that the website is running brix cms. Martijn On Thu, Jul 1, 2010 at 2:49 PM, nino martinez wael nino.martinez.w...@gmail.com wrote: I'd say we give Matej til tomorrow, and then we put in our changes? I tried to get a hold of Matej on facebook, but no answer.. And I know at least one who would like to use my changes.. 2010/7/1 Charles Deal chuckdea...@gmail.com I believe Matej is the only developer. I also have code to contribute to the project. Considering it is a WicketStuff project, I suppose that we could make the changes ourselves. I posted my changes as patches in order to get some feedback, but I received no comments for or against my proposed changes. On Thu, Jul 1, 2010 at 2:07 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: Wondering if there are any active developers on inmethod? A while ago I wrote that I had 2 components that I wanted to contribute, so should I just add them or? I guess if no one answers it's a silent yes ? -nino -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.4 increases type safety for web applications Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.8 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
modal window and its css
Hi all, I am using modal window in conjunction with a page. This page has a css contributor. But there is something wrong with the page into the modal window. The text inputs don't show correctly. It seems that the modal window css is working over the page. I thought that the page was into an iframe. Thus the page itself wouldn't be modified by the modal window css.This doesn't seems to be the behavior. thanks in advance. -- Fernando Wermus. www.linkedin.com/in/fernandowermus
Re: Wicket Sessions and Load Balancing
Steven, Have you tried to enforce creation of a session on the home page? A WebSession.get().bind() in the homepage will do the trick. This only makes a difference when your homepage is stateless. Regards, Erik. 2010/7/1 Steven Haineslyg...@yahoo.com My guess is that when the homepage is loaded that Wicket provides a new jsessionid (I sometimes see it coming in the submission url) but then the user is directed to another server on the next request, and because the user does not yet have a JSESSIONID cookie, but does have the jsessionid in the URL, the Wicket instance that receives the request searches and cannot find the session id and marks the page as expired. The next request then populates the browser's cookie and the sticky session works.This is just a theory, but it would explain the behavior. -- Sent from my SMTP compliant software Erik van Oosten http://day-to-day-stuff.blogspot.com/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: dropdownchoice onchange event called before propertymodel updates
Can you post more code from your example? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/dropdownchoice-onchange-event-called-before-propertymodel-updates-tp2275897p2276047.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: javascript message after ajax request
AjaxButton submitButton = new AjaxButton(wid, form) { public void onSubmit(AjaxRequestTarget target) { // your logic here targer.appendJavascript(showPopup(document.getElementById('myPopupId'))); } } On Thu, 2010-07-01 at 17:21 +0100, Maris Orbidans wrote: Wicket experts, I have a form with Ajax submit button. Upon completing ajax request I want to show javascript popup with a message from server. How to do it ? Maris - 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
Correct way of setting charset
Hello, what is the correct way of setting my pages charset? I did something like this and it didnt have any effect: @Override protected void configureResponse() { super.configureResponse(); final String encoding = text/ + getMarkupType() + ; charset=UTF-8; getResponse().setContentType(encoding); } I want to set everything in UTF-8. Also, when I did something like this(like it is said in docs, I got error: final String encoding = text/ + getMarkupType() + ; charset= + CharSetUtil.getEncoding(getRequestCycle()); getResponse().setContentType(encoding); And the error: java.lang.IndexOutOfBoundsException: Index: 4, Size: 0 at java.util.ArrayList.add(ArrayList.java:367) at org.apache.wicket.extensions.util.encoding.CharSetMap.init(CharSetMap.java:238) at org.apache.wicket.extensions.util.encoding.CharSetUtil.initialize(CharSetUtil.java:72) at org.apache.wicket.extensions.util.encoding.CharSetUtil.getEncoding(CharSetUtil.java:102) Sigmar
Re: Refreshing DataView fails if it was initially empty
Use setOutputMarkupPlaceholderTag(true) for your component -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Refreshing-DataView-fails-if-it-was-initially-empty-tp2273568p2276085.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Markup Inheritance example with Ajax?
Am 25.06.2010 20:09, schrieb Jeremy Thomerson: If you want to do this, you are basically using the single-page paradigm where your content is always a panel. Basically you just create a single page, and then all of your content goes into panels instead of pages with markup inheritance. Then swap the panel in your link and add it to the ajax response. You can make these bookmarkable through PageParameters. Thank you both. Panels are what I've been looking for. Jeremy Thomerson On Fri, Jun 25, 2010 at 12:29 PM, heapifyman heapify...@gmail.com wrote: Hello all, I would like to extend the Markup Inheritance example (http://wicket.apache.org/examplemarkupinheritance.html) by replacing the content part of the page (i.e. the wicket:child) using Ajax. I tried to replace the BookmarkablePageLink on the BasePage with an AjaxLink but this does not seem to work because one cannot add a WebPage (e.g. Page1 in the example) to the target in the onClick() method. Is there a way in Wicket to have a BasePage with header, content and footer and replace the content by using Ajax? I'd appreciate if anyone could point me to some example or documentation. Best regards, philip signature.asc Description: OpenPGP digital signature
StringHeaderContributor from a panel added by AJAX
Hi, I have a panel that I add via AJAX to my page. On this panel I have a StringHeaderContributor block that I want to add. It's not doing anything. Does this not work when added via AJAX? The same code works fine when on a normal page. String altText = some value from an i18n properties file; StringHeaderContributor initJavascript = new StringHeaderContributor( script type=\text/javascript\ + $(document).ready( function(){ + initDatePickerAltText(' + altText + '); + }); + /script); add(initJavascript); The reason I need to do this is because I need to send an internationalised string to a javascript function to set up it's alt text which I retrieve from the message bundle. I can't do this on the base page because the javascript component hasn't been added to the page at this stage. thanks, Steve smime.p7s Description: S/MIME cryptographic signature
Wicketstuff-core configuration
Hi, This morning I saw that I broke wicketstuff-core for a second time with my changes in sub-projects. Apologies ! wicket-stuff trunk #5439: [mocleiri] fixes the org.eclipse.jetty dependency in push-parent/push-examples that was breaking the build. The ${jetty.version} property redefined in the push-examples pom.xml clashed with the parent jetty plugin dependency since there are no org.mortbay.jetty artifacts for the 7.x.y series. The fix is to rename the property to org.eclipse.jetty and update the dependency versions. This approach was already taken with the wicket-html5-parent/pom.xml so the second part of the fix is to push up the definition of the property into the wicketstuff-core/pom.xml There is a problem in the current parent pom configuration, though. The parent pom configures the plugins themselves, not the pluginDependencies. This makes me some troubles because now I cannot add jetty-maven-plugin (this is ver. 7.x) to the projects I'm working on. The fix above fixes only the build but later when I start to use mvn jetty:run it still uses maven-jetty-plugin (ver 6.x) and fails with class loader problems. Trying with the full name fails too (mvn org.mortbay.jetty:jetty-maven-plugin:run). This now uses the proper ver.7 of the plugin but again there are mix of ver.6 and ver.7 jars in the plugin classpath and again class loading problems. If there are no objections or solution to this problem then I'm going to move the plugin configuration to pluginManagement. If there are not too many plugins then I'll fix them all, otherwise just the ones I'm using in my projects. Cheers martin-g - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: StringHeaderContributor from a panel added by AJAX
Im have you tried implementing the headercontributor Interface in your ajax component instead of using the headercontributor directly? regards Nino 2010/7/2 Steve Swinsburg steve.swinsb...@gmail.com Hi, I have a panel that I add via AJAX to my page. On this panel I have a StringHeaderContributor block that I want to add. It's not doing anything. Does this not work when added via AJAX? The same code works fine when on a normal page. String altText = some value from an i18n properties file; StringHeaderContributor initJavascript = new StringHeaderContributor( script type=\text/javascript\ + $(document).ready( function(){ + initDatePickerAltText(' + altText + '); + }); + /script); add(initJavascript); The reason I need to do this is because I need to send an internationalised string to a javascript function to set up it's alt text which I retrieve from the message bundle. I can't do this on the base page because the javascript component hasn't been added to the page at this stage. thanks, Steve
Re: Wicketstuff-core configuration
Just go ahead, if it does not breake anything.. :) 2010/7/2 Martin Grigorov mcgreg...@e-card.bg Hi, This morning I saw that I broke wicketstuff-core for a second time with my changes in sub-projects. Apologies ! wicket-stuff trunk #5439: [mocleiri] fixes the org.eclipse.jetty dependency in push-parent/push-examples that was breaking the build. The ${jetty.version} property redefined in the push-examples pom.xml clashed with the parent jetty plugin dependency since there are no org.mortbay.jetty artifacts for the 7.x.y series. The fix is to rename the property to org.eclipse.jetty and update the dependency versions. This approach was already taken with the wicket-html5-parent/pom.xml so the second part of the fix is to push up the definition of the property into the wicketstuff-core/pom.xml There is a problem in the current parent pom configuration, though. The parent pom configures the plugins themselves, not the pluginDependencies. This makes me some troubles because now I cannot add jetty-maven-plugin (this is ver. 7.x) to the projects I'm working on. The fix above fixes only the build but later when I start to use mvn jetty:run it still uses maven-jetty-plugin (ver 6.x) and fails with class loader problems. Trying with the full name fails too (mvn org.mortbay.jetty:jetty-maven-plugin:run). This now uses the proper ver.7 of the plugin but again there are mix of ver.6 and ver.7 jars in the plugin classpath and again class loading problems. If there are no objections or solution to this problem then I'm going to move the plugin configuration to pluginManagement. If there are not too many plugins then I'll fix them all, otherwise just the ones I'm using in my projects. Cheers martin-g - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: component .... not found on page for a Link colun in the Datatable after self refresh using the AjaxSelfUpdatingTimerBehavior
Hello, Have you found the resolution to this problem? Thank you! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/component-not-found-on-page-for-a-Link-colun-in-the-Datatable-after-self-refresh-using-the-AjaxSelfUr-tp1892913p2276311.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
[OT How can I open an account on jRoller?
Dear list, the jRoller site has disabled signup for a accounts. Does anybody know whom I can contact for a new account? TIA best regards have a nice weekend! Erich
Re: component .... not found on page for a Link colun in the Datatable after self refresh using the AjaxSelfUpdatingTimerBehavior
Hi, My conclusion is that this is not really a wicket error, since we're clicking a link which no longer exists after the Ajax update. My solution to this has been to catch these exceptions in my WebRequestCycleProcessor, like this: @Override public IRequestTarget resolve(RequestCycle requestCycle, RequestParameters requestParameters) { try { return super.resolve(requestCycle, requestParameters); } catch (InvalidUrlException e) { if (requestCycle.getRequest().getURL().contains(ILinkListener)) { return new PageRequestTarget(requestCycle.getRequest().getPage()); } throw e; } } What happens is that if I get this exception and the request URL contains ILinkListener, I just return the page which the user is already at. For the user it will seem like nothing happens, which at least is better than that they get an exception. This is not a pretty solution, but the best I could think of. If someone knows of a better or more general soultion to this problem I would be happy to know. /Daniel -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/component-not-found-on-page-for-a-Link-colun-in-the-Datatable-after-self-refresh-using-the-AjaxSelfUr-tp1892913p2276328.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [OT How can I open an account on jRoller?
Wrong list... Martijn On Fri, Jul 2, 2010 at 1:28 PM, Erich W Schreiner eschrei...@yahoo.com wrote: Dear list, the jRoller site has disabled signup for a accounts. Does anybody know whom I can contact for a new account? TIA best regards have a nice weekend! Erich -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.4 increases type safety for web applications Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.8 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: component .... not found on page for a Link colun in the Datatable after self refresh using the AjaxSelfUpdatingTimerBehavior
Try to use AjaxLink(iconLink) instead your Link(iconLink) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/component-not-found-on-page-for-a-Link-colun-in-the-Datatable-after-self-refresh-using-the-AjaxSelfUr-tp1892913p2276332.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: StringHeaderContributor from a panel added by AJAX
Thanks, but the ajax component is actually just a datepicker from jQuery so it's not Wicket related. I think I'll need to get my Javascript to load the message bundle directly so it doesn't need to go via Wicket. cheers, Steve On 02/07/2010, at 6:46 PM, nino martinez wael wrote: Im have you tried implementing the headercontributor Interface in your ajax component instead of using the headercontributor directly? regards Nino 2010/7/2 Steve Swinsburg steve.swinsb...@gmail.com Hi, I have a panel that I add via AJAX to my page. On this panel I have a StringHeaderContributor block that I want to add. It's not doing anything. Does this not work when added via AJAX? The same code works fine when on a normal page. String altText = some value from an i18n properties file; StringHeaderContributor initJavascript = new StringHeaderContributor( script type=\text/javascript\ + $(document).ready( function(){ + initDatePickerAltText(' + altText + '); + }); + /script); add(initJavascript); The reason I need to do this is because I need to send an internationalised string to a javascript function to set up it's alt text which I retrieve from the message bundle. I can't do this on the base page because the javascript component hasn't been added to the page at this stage. thanks, Steve - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: open Modal Window without AjaxRequestTarget
Hi. You must make content visible manually since its done in show(ajaxtarget) method. So override makeVisible() method from modal window or just set getContent().setVisible(true) in onBeforeRender. W dniu 2010-07-01 20:59, Pierre Goupil pisze: Good evening, I tried it but nothing shows. My Firebug gives this error: either src or element must be set I did use setContent()! Can anyone help, please? Regards, Pierre On Thu, Jul 1, 2010 at 9:41 AM, Pierre Goupilgoupilpie...@gmail.comwrote: I'll give that a try, men. Thank you! Regards, Pierre On Thu, Jul 1, 2010 at 8:21 AM, Stefan Lindnerlind...@visionet.dewrote: See ModalWindow.getWindowOpenJavascript() and use it like this ModalWindow myModalWindow = new ModalWIndow.. someComponent.add(new SimpleAttributeModifier(onclick, myModalWindow.getWindowOpenJavascript())); I didn't try I but I think it should work like this. Stefan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Les deux règles universelles du bide : 1) on n'explique pas un bide 2) dans le futur, un bide sera toujours un bide. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Refreshing modal window
Hi, it does not work. On Wed, Jun 30, 2010 at 6:35 PM, Nelson Segura nsegu...@gmail.com wrote: To execute javascript after AJAX, do the following ajaxRequestTarget.appendJavascript(alert('hello');); To jump to a section using javascript use window.location.hash = '#idname'; You can put a #top anchor on top of your window, and then jump to it using the combination of code above. I have not tried this myself, though :) ajaxRequestTarget.appendJavascript(window.location.hash = '#top';); -Nelson On Wed, Jun 30, 2010 at 1:54 PM, Anna Simbirtsev asimbirt...@gmail.com wrote: I need to scroll to the top on ajax response. Would you have an example on how to do it? On Wed, Jun 30, 2010 at 4:27 PM, Nelson Segura nsegu...@gmail.com wrote: Are you refreshing the whole window or just the feedback panel? You can try to refresh the whole window, or you can include some java script that scrolls your window to the top on the ajax response. -Nelson On Wed, Jun 30, 2010 at 12:22 PM, Anna Simbirtsev asimbirt...@gmail.com wrote: Hi, My problem is that after the user clicks AjaxSubmit button, and the confirmation message is displayed in feedback panel, the window does not refresh, so if the user scrolled to the bottom of the model window, he/she does not see the confirmation message. How can I get the modal window to refresh, so the top part of the window is visible? Thanks, Anna -- Anna Simbirtsev (416) 729-7331 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Anna Simbirtsev (416) 729-7331
Re: Rerender modal window fields without ajaxtargetrequest
I get a null pointer exception, I think the AjaxRequestTarget.get() returns null. On Thu, Jul 1, 2010 at 2:41 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Anna, You mean how to access AjaxRequestTarget? Try AjaxRequestTarget.get(): I think it can be accessed as a thread local. Ernesto On Thu, Jul 1, 2010 at 3:22 AM, Anna Simbirtsev asimbirt...@gmail.com wrote: Hi, AjaxSubmitLink removeLink = new AjaxSubmitLink(removeLink) { @Override public void onSubmit(AjaxTargetRequest target) { MyPanel.this.replaceWith(new ConfirmDeletePanel( MyPanel.this.getId(), are you sure) { @Override protected void onCancel() { this.replaceWith(MyPanel.this); } @Override protected void onConfirm() { // do something you want confirmed beforehand // then this.replaceWith(MyPanel.this); } }); } }; In onConfirm function of ConfirmDeletePanel, how can I rerender some fields in the MyPanel.this after it is replaced back if i don't have AjaxTargetRequest? I mean onConfirm changes the values that are displayed on MyPanel and I want to refresh them. Thanks Anna - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Anna Simbirtsev (416) 729-7331
Re: Refreshing modal window
I think because its a modal window, it has the same url as the parent window. On Fri, Jul 2, 2010 at 9:47 AM, Anna Simbirtsev asimbirt...@gmail.comwrote: Hi, it does not work. On Wed, Jun 30, 2010 at 6:35 PM, Nelson Segura nsegu...@gmail.com wrote: To execute javascript after AJAX, do the following ajaxRequestTarget.appendJavascript(alert('hello');); To jump to a section using javascript use window.location.hash = '#idname'; You can put a #top anchor on top of your window, and then jump to it using the combination of code above. I have not tried this myself, though :) ajaxRequestTarget.appendJavascript(window.location.hash = '#top';); -Nelson On Wed, Jun 30, 2010 at 1:54 PM, Anna Simbirtsev asimbirt...@gmail.com wrote: I need to scroll to the top on ajax response. Would you have an example on how to do it? On Wed, Jun 30, 2010 at 4:27 PM, Nelson Segura nsegu...@gmail.com wrote: Are you refreshing the whole window or just the feedback panel? You can try to refresh the whole window, or you can include some java script that scrolls your window to the top on the ajax response. -Nelson On Wed, Jun 30, 2010 at 12:22 PM, Anna Simbirtsev asimbirt...@gmail.com wrote: Hi, My problem is that after the user clicks AjaxSubmit button, and the confirmation message is displayed in feedback panel, the window does not refresh, so if the user scrolled to the bottom of the model window, he/she does not see the confirmation message. How can I get the modal window to refresh, so the top part of the window is visible? Thanks, Anna -- Anna Simbirtsev (416) 729-7331 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Anna Simbirtsev (416) 729-7331 -- Anna Simbirtsev (416) 729-7331
fancy javascript effects in wicket
I was considering adding some fancy javascript effects to some of my wicket pages/components. While googling I saw references to dojo and jQuery integrations with Wicket. Which is better, up to date, more actively supported etc.,? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Animating the opening of a modal window
Is it possible to animate the opening of a modal window using wicket? I know it can be done in javascript but I'm wondering how I go about it with wicket. Do I need to install a javascript framework and somehow invoke its features from Wicket? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: StackOverFlowError
this happened to me the other day. turned out to be a coding error. i wrapped a compoundpropertymodel in a propertylistview (which already wraps a model into a compoundpropertymodel). once the code was fix the problem went away. my data set was also large. about 1000 rows in a table being displayed on screen. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/StackOverFlowError-tp2276618p2276655.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: extending AbstractFormValidator as a validation adapter
validation is needed because you cant stuff abc into an Integer field, so it cannot be turned off completely. if you dont add any validators and dont call setrequired then you should be good to go because the only remaining bit wicket will do before pushing into your models is type checking and conversion. -igor On Thu, Jul 1, 2010 at 10:27 PM, Ray Weidner ray.weidner.develo...@gmail.com wrote: Thanks for your reply, Jeremy. I just got around to reading it. I had been under the impression that I'd have to call something from the #onSubmit to trigger the feedback, but I tried it out based on your suggestion, and it fits the bill. This deferred validation is actually pretty useful in a number of situations, so thanks. It would be nice if Wicket had a built-in way of turning off validation for certain buttons without turning off the form-to-model update, i.e. not #setDefaultFormProcessing, which precludes the latter. On Wed, Jun 30, 2010 at 12:08 AM, Jeremy Thomerson jer...@wickettraining.com wrote: If you need to validate after the data has been pushed to the model, then just validate in the onSubmit and call error on the individual components for the form. Leave the form validator out of it. On Tue, Jun 29, 2010 at 11:03 PM, Ray Weidner ray.weidner.develo...@gmail.com wrote: Igor (or anyone else who knows the answer), There is one problem with my implementation of the FormValidator in the code that I included earlier. It performs validation using the Form's model object, which is a problem because the input hasn't been mapped onto it at this stage of validation. What I'd like to do now is somehow perform this validation from within the #onSubmit call. I don't know if this is even possible. I am hoping that perhaps I could register the errors by calling error(String) as you mentioned, and then redirecting the form back to processing these validation errors as it normally would. Below is a simplification of the code I'd like to execute in this situation. Note the text // TODO: ??? That's the part that I need to fill in, ideally redirecting back down the 'invalid' pathway. The HTML here is just a form with some fields and a submit button, so I'll omit. *public interface BusinessValidator { public ValidationResult validate (Record record, Action action); } public interface BusinessValidationResult { public boolean isValid (); public Set String getGeneralErrorMessages (); public Set String getFieldErrorFieldNames (); public Set String getFieldErrorMessage (String fieldName); } public interface BusinessService { public List Action getAllActions (); public BusinessValidator getValidator (Action action); public void save (Record record); [lots of other stuff] ... } public class RecordUpdatePage extends WebPage { private Record theRecord = null; private Form Record theForm = null; private BusinessService theService = null; private Action selectedAction = null; public RecordEditPage (BusinessService service, Record record) { theService = service; theRecord = record; createForm (); } public Record getRecord () { return theRecord; } private void createForm () { theForm = new Form Record (recordUpdateForm); theForm.setModel (new CompoundPropertyModel Record (theRecord)); theForm.add (new DropDownChoice Action (action, new PropertyModel Action (this, selectedAction), new LoadableDetachableModel List Action () { @Override protected List Action load () { return new ArrayList Action (theService.getAllActions ()); } }, ) ); ... [add a bunch of fields] ... theForm.add (new Button (save)) { @Override public void onSubmit () { save (); } }; } private void save () { if (! validate ()) { // TODO: ??? } else { theService.save (record); setResponsePage (MainPage.class); } } public boolean validate () { BusinessValidator validator = theService.getValidator (selectedAction); Record record = ((Form Record) form).getModel ().getObject (); BusinessValidation result = validator.validate (theRecord, selectedAction); if (result.isValid ()) { return true; } for (String generalErrorMessage : result.getGeneralErrorMessages ()) { theForm.error (generalErrorMessage); } Map String, Set String fieldErrorMap = result.getErrorMessageMap (); for (String fieldName : fieldErrorMap.keySet ()) { for (String fieldErrorMessage : fieldErrorMap.get (fieldName)) { Component field = theForm.get (fieldName); if (field != null) { field.error (fieldErrorMessage); } else { theForm.error (fieldErrorMessage); } } } return false; } }* On Tue, Jun 29, 2010 at 10:29 AM, Ray Weidner ray.weidner.develo...@gmail.com wrote: Thanks, Igor, I now see the methods you are talking about, and your explanation makes perfect sense. On Tue, Jun 29, 2010 at 1:16 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: On Mon, Jun 28, 2010 at 9:27 PM, Ray Weidner
Re: StackOverFlowError
Hmm... I don't really follow. On Fri, Jul 2, 2010 at 11:31 AM, robert.mcguinness robert.mcguinness@gmail.com wrote: this happened to me the other day. turned out to be a coding error. i wrapped a compoundpropertymodel in a propertylistview (which already wraps a model into a compoundpropertymodel). once the code was fix the problem went away. my data set was also large. about 1000 rows in a table being displayed on screen. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/StackOverFlowError-tp2276618p2276655.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to override container markup package loaction?
there is a wiki page on how to change where markup is loaded from. -igor On Wed, Jun 30, 2010 at 10:57 PM, Arjun Dhar dhar...@yahoo.com wrote: How does one override container markup package loaction? If I provide mysite.wicket.pages for my Java Wicket components, then the html markup must be in the same package. I want the HTML to live in html. So how can I override mysite.wicket.pages with html when wicket searches for components? thanks, Arjun -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-override-container-markup-package-loaction-tp2274647p2274647.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: StackOverFlowError
setresponsepage(new mypage(thispage)); or indirectly via an anonymous model class or something that holds a reference to the page. -igor On Fri, Jul 2, 2010 at 9:57 AM, Douglas Ferguson doug...@douglasferguson.us wrote: Hmm... I don't really follow. On Fri, Jul 2, 2010 at 11:31 AM, robert.mcguinness robert.mcguinness@gmail.com wrote: this happened to me the other day. turned out to be a coding error. i wrapped a compoundpropertymodel in a propertylistview (which already wraps a model into a compoundpropertymodel). once the code was fix the problem went away. my data set was also large. about 1000 rows in a table being displayed on screen. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/StackOverFlowError-tp2276618p2276655.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Rerender modal window fields without ajaxtargetrequest
Then that probably means you are not making an AJAX round trip... public static AjaxRequestTarget get() { final RequestCycle requestCycle = RequestCycle.get(); if (requestCycle != null) { if (requestCycle.getRequestTarget() instanceof AjaxRequestTarget) { return (AjaxRequestTarget)requestCycle.getRequestTarget(); } } return null; } Ernesto On Fri, Jul 2, 2010 at 4:13 PM, Anna Simbirtsev asimbirt...@gmail.com wrote: I get a null pointer exception, I think the AjaxRequestTarget.get() returns null. On Thu, Jul 1, 2010 at 2:41 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Anna, You mean how to access AjaxRequestTarget? Try AjaxRequestTarget.get(): I think it can be accessed as a thread local. Ernesto On Thu, Jul 1, 2010 at 3:22 AM, Anna Simbirtsev asimbirt...@gmail.com wrote: Hi, AjaxSubmitLink removeLink = new AjaxSubmitLink(removeLink) { @Override public void onSubmit(AjaxTargetRequest target) { MyPanel.this.replaceWith(new ConfirmDeletePanel( MyPanel.this.getId(), are you sure) { @Override protected void onCancel() { this.replaceWith(MyPanel.this); } �...@override protected void onConfirm() { // do something you want confirmed beforehand // then this.replaceWith(MyPanel.this); } }); } }; In onConfirm function of ConfirmDeletePanel, how can I rerender some fields in the MyPanel.this after it is replaced back if i don't have AjaxTargetRequest? I mean onConfirm changes the values that are displayed on MyPanel and I want to refresh them. Thanks Anna - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Anna Simbirtsev (416) 729-7331 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to override container markup package loaction?
https://cwiki.apache.org/WICKET/control-where-html-files-are-loaded-from.html ? On Fri, Jul 2, 2010 at 6:58 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: there is a wiki page on how to change where markup is loaded from. -igor On Wed, Jun 30, 2010 at 10:57 PM, Arjun Dhar dhar...@yahoo.com wrote: How does one override container markup package loaction? If I provide mysite.wicket.pages for my Java Wicket components, then the html markup must be in the same package. I want the HTML to live in html. So how can I override mysite.wicket.pages with html when wicket searches for components? thanks, Arjun -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-override-container-markup-package-loaction-tp2274647p2274647.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Refreshing modal window
I'm sorry, it actually works in IE, but not in Mozilla. Does anybody have any idea how to get it to work in Mozilla? Thank you On Fri, Jul 2, 2010 at 10:37 AM, Anna Simbirtsev asimbirt...@gmail.comwrote: I think because its a modal window, it has the same url as the parent window. On Fri, Jul 2, 2010 at 9:47 AM, Anna Simbirtsev asimbirt...@gmail.comwrote: Hi, it does not work. On Wed, Jun 30, 2010 at 6:35 PM, Nelson Segura nsegu...@gmail.comwrote: To execute javascript after AJAX, do the following ajaxRequestTarget.appendJavascript(alert('hello');); To jump to a section using javascript use window.location.hash = '#idname'; You can put a #top anchor on top of your window, and then jump to it using the combination of code above. I have not tried this myself, though :) ajaxRequestTarget.appendJavascript(window.location.hash = '#top';); -Nelson On Wed, Jun 30, 2010 at 1:54 PM, Anna Simbirtsev asimbirt...@gmail.com wrote: I need to scroll to the top on ajax response. Would you have an example on how to do it? On Wed, Jun 30, 2010 at 4:27 PM, Nelson Segura nsegu...@gmail.com wrote: Are you refreshing the whole window or just the feedback panel? You can try to refresh the whole window, or you can include some java script that scrolls your window to the top on the ajax response. -Nelson On Wed, Jun 30, 2010 at 12:22 PM, Anna Simbirtsev asimbirt...@gmail.com wrote: Hi, My problem is that after the user clicks AjaxSubmit button, and the confirmation message is displayed in feedback panel, the window does not refresh, so if the user scrolled to the bottom of the model window, he/she does not see the confirmation message. How can I get the modal window to refresh, so the top part of the window is visible? Thanks, Anna -- Anna Simbirtsev (416) 729-7331 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Anna Simbirtsev (416) 729-7331 -- Anna Simbirtsev (416) 729-7331 -- Anna Simbirtsev (416) 729-7331
Re: fancy javascript effects in wicket
Hi Cris, I use WiQuery and it is rather complete, the project has an active community of developers and it is easy to get answers to your questions on their forum. I haven't tried jWicket but I've seen Stefan Lidner is very active in this list and from time to time he announces new versions of jWicket on this list and he also gladly answer questions of jWicket users. If you want to see WiQuery effects in action take a look at 1- http://wiquery-plugins-demo.appspot.com/demo/?wicket:bookmarkablePage=:com.wiquery.plugins.demo.EffectsPage (core effects) 2-http://wiquery-plugins-demo.appspot.com/demo/?wicket:bookmarkablePage=:com.wiquery.plugins.demo.UIEffectsPage (some UI effects) Best, Ernesto On Fri, Jul 2, 2010 at 5:08 PM, Chris Colman chr...@stepaheadsoftware.com wrote: I was considering adding some fancy javascript effects to some of my wicket pages/components. While googling I saw references to dojo and jQuery integrations with Wicket. Which is better, up to date, more actively supported etc.,? - 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: Nested Repeaters in an HTML Table -- Uggh!
What is your problem with this? Inheritance? ** Martin 2010/7/2 duncan787 duncan...@gmail.com: I have been trying for several days to get this to work. I am trying to write a generic Wicket Panel that I can reuse to display columns and rows from any given datasource. The generic Panel needs to support a dynamic number of rows and a dynamic number of columns. Hence the nested repeaters. I can't get it to work and am dying trying! Any help would be GREATLY appreciated! wicket:panel table tr th wicket:id=columnNameRepeater[column name here]/th /tr tr wicket:id=dataRowRepeater td wicket:id=columnRepeater[cell data here]/td td wicket:id=not_a_repeater_only_one_column_needed_here[Insert Button, Delete Button]/td /tr /table /wicket:panel -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Nested-Repeaters-in-an-HTML-Table-Uggh-tp2276861p2276861.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Nested Repeaters in an HTML Table -- Uggh!
Show your component code and the error if you want someone to help this problem fixed. Žilvinas Vilutis Mobile: (+370) 652 38353 E-mail: cika...@gmail.com On Fri, Jul 2, 2010 at 12:58 PM, duncan787 duncan...@gmail.com wrote: I have been trying for several days to get this to work. I am trying to write a generic Wicket Panel that I can reuse to display columns and rows from any given datasource. The generic Panel needs to support a dynamic number of rows and a dynamic number of columns. Hence the nested repeaters. I can't get it to work and am dying trying! Any help would be GREATLY appreciated! wicket:panel table tr th wicket:id=columnNameRepeater[column name here]/th /tr tr wicket:id=dataRowRepeater td wicket:id=columnRepeater[cell data here]/td td wicket:id=not_a_repeater_only_one_column_needed_here[Insert Button, Delete Button]/td /tr /table /wicket:panel -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Nested-Repeaters-in-an-HTML-Table-Uggh-tp2276861p2276861.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Nested Repeaters in an HTML Table -- Uggh!
Why not use DataGridView? On Fri, Jul 2, 2010 at 9:58 PM, duncan787 duncan...@gmail.com wrote: I have been trying for several days to get this to work. I am trying to write a generic Wicket Panel that I can reuse to display columns and rows from any given datasource. The generic Panel needs to support a dynamic number of rows and a dynamic number of columns. Hence the nested repeaters. I can't get it to work and am dying trying! Any help would be GREATLY appreciated! wicket:panel table tr th wicket:id=columnNameRepeater[column name here]/th /tr tr wicket:id=dataRowRepeater td wicket:id=columnRepeater[cell data here]/td td wicket:id=not_a_repeater_only_one_column_needed_here[Insert Button, Delete Button]/td /tr /table /wicket:panel -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Nested-Repeaters-in-an-HTML-Table-Uggh-tp2276861p2276861.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Nested Repeaters in an HTML Table -- Uggh!
wicket:panel table tr th wicket:id=columnNameRepeater[column name here]/th thactions/th /tr tr wicket:id=dataRowRepeater td wicket:id=columnRepeater[cell data here]/td tdinput type=submit wicket:id=delete value=delete//td /tr /table /wicket:panel -igor On Fri, Jul 2, 2010 at 12:58 PM, duncan787 duncan...@gmail.com wrote: I have been trying for several days to get this to work. I am trying to write a generic Wicket Panel that I can reuse to display columns and rows from any given datasource. The generic Panel needs to support a dynamic number of rows and a dynamic number of columns. Hence the nested repeaters. I can't get it to work and am dying trying! Any help would be GREATLY appreciated! wicket:panel table tr th wicket:id=columnNameRepeater[column name here]/th /tr tr wicket:id=dataRowRepeater td wicket:id=columnRepeater[cell data here]/td td wicket:id=not_a_repeater_only_one_column_needed_here[Insert Button, Delete Button]/td /tr /table /wicket:panel -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Nested-Repeaters-in-an-HTML-Table-Uggh-tp2276861p2276861.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: debugging PageExpiredExceptions
Thanks for the reply Martijn. I have done some poking around and I think this thread holds the key: http://apache-wicket.1842946.n4.nabble.com/PageExpiredException-ajax-request-td1878866.html#a1878866 PageExpiredException - ajax request It looks like our 'stateless' page gets rendered with AJAX links in it that get saved to the pagemap. If I open another browser window and interact with the application for a period of time it seems the AJAX link references in the initial tab are removed from the page map so if I click on any of them the app returns a PEE. So it seems the answer is to detect the PEE and then regenerate a fresh version of the page. I am still working on that part but at least I have learned some more about areas of the framework I hadn't spent enough time with to this point. Some questions around ajax, stateless/statefull pages and page mounts. (please forgive me if any of these reflect my ignorance). - if I have a stateless page(mounted page with an empty/PageParameter constructor) but add elements/panels with AJAX behaviors does it become statefull? Confusingly isStateless() always returns true even though the page seems to be referenced in the pagemap. I'm still trying to fully understand the relationship between stateless and statefull in Wicket. - should either of the following have any effect? getRequestCycleSettings().setBufferResponse(false); getRequestCycleSettings().setRenderStrategy(IRequestCycleSettings.ONE_PASS_RENDER); - setting setAutomaticMultiWindowSupport to true adds the following to new urls: /wicket:pageMapName/wicket-3/. Is there any way to prevent this as it mangles the URL effect I am trying to implement? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/debugging-PageExpiredExceptions-tp1882040p2277017.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: PageExpiredException - ajax request
igor.vaynberg wrote: requestcycle rc=getrequestcycle(); response orig=rc.getresponse(); rc.setresponse(new noopresponse()); page.render(); rc.setresponse(orig); -igor This may be a silly question but can you shed some light on the line: rc.setresponse(new noopresponse()); Specifically the reference to noopresponse. Is that a reference to an existing method in Wicket or something that needs to be written for the solution? I get the general gist of the proposal but am a little confused by what this line is intended to to. thanks, sean -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/PageExpiredException-ajax-request-tp1878866p2277019.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket links does not work in Firefox/IE?
Hi all, I built a web app with Wicket and it works fine in Chrome, Safari but it does not work in Firefox and IE. In Firefox/IE after clicking on links of navigation, the corresponding page does not display but if I click refresh ( or F5) it is OK. Could you give me a solution to get rid of this problem? Thanks and regards, Duy
Re: PageExpiredException - ajax request
org.apache.wicket.response.NullResponse -igor On Fri, Jul 2, 2010 at 5:38 PM, sbrookes2 seanbroo...@shaw.ca wrote: igor.vaynberg wrote: requestcycle rc=getrequestcycle(); response orig=rc.getresponse(); rc.setresponse(new noopresponse()); page.render(); rc.setresponse(orig); -igor This may be a silly question but can you shed some light on the line: rc.setresponse(new noopresponse()); Specifically the reference to noopresponse. Is that a reference to an existing method in Wicket or something that needs to be written for the solution? I get the general gist of the proposal but am a little confused by what this line is intended to to. thanks, sean -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/PageExpiredException-ajax-request-tp1878866p2277019.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: StringHeaderContributor from a panel added by AJAX
yeah im just talking about implementing the interface instead of using the class directly.. I've seen it working, instead of using implementation.. 2010/7/2 Steve Swinsburg steve.swinsb...@gmail.com Thanks, but the ajax component is actually just a datepicker from jQuery so it's not Wicket related. I think I'll need to get my Javascript to load the message bundle directly so it doesn't need to go via Wicket. cheers, Steve On 02/07/2010, at 6:46 PM, nino martinez wael wrote: Im have you tried implementing the headercontributor Interface in your ajax component instead of using the headercontributor directly? regards Nino 2010/7/2 Steve Swinsburg steve.swinsb...@gmail.com Hi, I have a panel that I add via AJAX to my page. On this panel I have a StringHeaderContributor block that I want to add. It's not doing anything. Does this not work when added via AJAX? The same code works fine when on a normal page. String altText = some value from an i18n properties file; StringHeaderContributor initJavascript = new StringHeaderContributor( script type=\text/javascript\ + $(document).ready( function(){ + initDatePickerAltText(' + altText + '); + }); + /script); add(initJavascript); The reason I need to do this is because I need to send an internationalised string to a javascript function to set up it's alt text which I retrieve from the message bundle. I can't do this on the base page because the javascript component hasn't been added to the page at this stage. thanks, Steve - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org