RE: Wicket - TinyMCE/FckEditor
W dniu 2011-08-02 09:34, Josh Kamau pisze: Hi Michal, If you want a really nice and simple Rich Text Editor, take a look at visural-wicket project. NicEdit is dead. Its not supported for long time. Doh! I did noticed it has some quirks in it's operation. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: radio button example help
Hi, wmike1...@gmail.com wrote: How is the current selection recognized? the RadioChoice get's a PropertyModel from the CompoundPropertyModel automagically. You could do it explicitely like the following: new RadioChoice(site, new PropertyModel(input, site), SITES); wmike1...@gmail.com wrote: Why does the compound property model (the Input object) not have any getters/setters? Wicket's property resolver uses field access if no getter/setter is present. Hope this helps Sven -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/radio-button-example-help-tp3710953p3711589.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 handle exceptions caused by img src=GARBAGE?
Are you expecting to actually serves images content from your own application directory using this methods?, you may need to parse and clean the HTML you are planning to serves in order to avoid those invalid HTTP GET. On Mon, Aug 1, 2011 at 11:45 PM, Alec Swan [via Apache Wicket] ml-node+3711221-2121860390-65...@n4.nabble.com wrote: Hello, Our app has a basic HTML editor where users can enter some HTML code. Sometimes users enter something like img src=GARBAGE. When the browser displays renders the page with this HTML it treats GARBAGE as a relative URL. So, the browser tacks GARBAGE on to the current page URL causing the application to throw an error. In fact, if the current page URL is http://xxx/yyy/oid/1 the browser will send and HTTP request to http://xxx/yyy/oid/GARBAGE making it look like oid parameter is invalid. Is there a way to distinguish between this scenario and a scenario where the user did enter an invalid oid value? Thanks, Alec - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3711221i=0 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=3711221i=1 -- If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/How-to-handle-exceptions-caused-by-img-src-GARBAGE-tp3711221p3711221.html To start a new topic under Apache Wicket, email ml-node+1842946-398011874-65...@n4.nabble.com To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=. -- JC -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-handle-exceptions-caused-by-img-src-GARBAGE-tp3711221p3712443.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 - TinyMCE/FckEditor
I created a Wicket FCKEditor component some time back. It takes care of rendering the javascripts and all the rest for you and you just instantiate it like: add(new FCKTextArea(id)); If you would like this, drop me a line and I'll dig out the code. cheers. Steve On 02/08/2011, at 3:53 PM, Chris Colman wrote: Unfortunately we're using some features of FckEditor that don't seem to be supported by Visural. The main one is the support of images and being able to specify an image provider that can provide the user with a list of images available to choose from. The developer can define virtually any implementation they want of the image provider. If that sort of thing were available today we'd really like to move to Visural. -Original Message- From: Josh Kamau [mailto:joshnet2...@gmail.com] Sent: Tuesday, 2 August 2011 3:34 PM To: users@wicket.apache.org Subject: Re: Wicket - TinyMCE/FckEditor Hi Michal, If you want a really nice and simple Rich Text Editor, take a look at visural-wicket project. Here is the link to the demos - http://wicket.visural.net/examples/app/ regards. Josh. On Tue, Aug 2, 2011 at 8:27 AM, Chris Colman chr...@stepaheadsoftware.comwrote: Are there any examples of Wicket integrated with FckEditor (the one before CkEditor)? -Original Message- From: Michal Letynski [mailto:m...@consol.ae] Sent: Tuesday, 2 August 2011 3:25 PM To: users@wicket.apache.org Subject: Re: Wicket - TinyMCE Hi. W dniu 2011-08-02 04:29, ramazan pekin pisze: Hi to everyone, I am looking for rich text editor and I found TinyMCE. But I couldnt find any document/example page how can I integrate wicket and TinyMCE explained detailed. Do you know is there any documentation or example about this subject? There are some examples for it: https://github.com/wicketstuff/core/tree/master/jdk-1.5-parent/tinymce- parent/tinymce-examples Thanks, br. Ramazan - 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 - 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
Disabling Entire Page, and Redirecting to Page in N Seconds
I need to disable an entire page, with all its components, and display a message (possibly in the FeedbackPanel) saying, Operation successful. You will be redirected in N seconds (e.g. 5). After N seconds, I will do a setRedirectPage(..) to a different page. The point is that the user should see the Success message but doesn't have to do anything else to be re-directed to the main page, just wait a few seconds. In the meantime, he should be prevented from manipulating the current form in any way. Is there a way to quickly implement this? Thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Disabling-Entire-Page-and-Redirecting-to-Page-in-N-Seconds-tp3712976p3712976.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 1.5 and glassfish 3.1.1 clustering (session replication)
Same application, Apache Tomcat 7.x with Cluster / enabled, Apache mod_proxy, mod_proxy_balancer - everything looks perfect :) Added getRequestCycleSettings().setRenderStrategy(RenderStrategy.ONE_PASS_RENDER); still no success on Glassfish. -- Regards, Vytautas --- www.xaloon.org www.allcarindex.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Using IResourceCachingStrategy with context relative resources(non PackageResource)
Yes, it is there for package resources. Better would be write a javax.servlet.Filter with the described logic. On Tue, Aug 2, 2011 at 11:46 AM, Serban.Balamaci thespamtr...@gmail.com wrote: Hello all, I'm using Wicket 1.5RC5.1. It seems that IResourceCachingStrategy can only be used on PackageResource(in BasicResourceReferenceMapper getCachingStrategy().decorateUrl() if reference instanceof PackageResourceReference), is that right? Could I obtain the benefits for resources that are under /webapp/js, /webapp/css? Because I want to use wro4j to compact js and css files and write under js and css at /webapp/wro, but also have the benefits of FilenameWithVersionResourceCachingStrategy, so everytime the application is redeployed I want the users to receive the new compacted .js and .css files. Is there another approach? Thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Using-IResourceCachingStrategy-with-context-relative-resources-non-PackageResource-tp3712574p3712574.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 -- Pedro Henrique Oliveira dos Santos - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Disabling Entire Page, and Redirecting to Page in N Seconds
Hi, Jquery UI has a nice css to overlay components. You can try to present one protecting the page and presenting some message. e.g. Overlay = { show : function() { var w = $('body').width(); var h = $('body').height(); var markup = 'div class=ui-widget-overlay style=width: ' + w + 'px; height: ' + h + 'px; z-index: 1001;some message/div'; $('body').prepend(markup); } } at the server side: target.appendJavaScript( 'Overlay.show(); waitSomeMoment(); redirect(); '); On Tue, Aug 2, 2011 at 1:46 PM, eugenebalt eugeneb...@yahoo.com wrote: I need to disable an entire page, with all its components, and display a message (possibly in the FeedbackPanel) saying, Operation successful. You will be redirected in N seconds (e.g. 5). After N seconds, I will do a setRedirectPage(..) to a different page. The point is that the user should see the Success message but doesn't have to do anything else to be re-directed to the main page, just wait a few seconds. In the meantime, he should be prevented from manipulating the current form in any way. Is there a way to quickly implement this? Thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Disabling-Entire-Page-and-Redirecting-to-Page-in-N-Seconds-tp3712976p3712976.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 -- Pedro Henrique Oliveira dos Santos - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Using IResourceCachingStrategy with context relative resources(non PackageResource)
Serban, if you are using wro4j-maven-plugin, you can achieve the FilenameWithVersionResourceCachingStrategy feature by providing the http://code.google.com/p/wro4j/wiki/OutputNamingStrategy Resource Naming Strategy . -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Using-IResourceCachingStrategy-with-context-relative-resources-non-PackageResource-tp3712574p3713308.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 1.5 and glassfish 3.1.1 clustering (session replication)
I thought session is managed by container ( Glassfish in this case ) and wicket version should not matter at all. Unless wicket is checking host / path / port or whatever when checking to create a session or not? Regards Žilvinas Vilutis Mobile: (+1) 623 330 6048 E-mail: cika...@gmail.com On Tue, Aug 2, 2011 at 8:05 PM, Vytautas turi...@gmail.com wrote: Same application, Apache Tomcat 7.x with Cluster / enabled, Apache mod_proxy, mod_proxy_balancer - everything looks perfect :) Added getRequestCycleSettings().setRenderStrategy(RenderStrategy.ONE_PASS_RENDER); still no success on Glassfish. -- Regards, Vytautas --- www.xaloon.org www.allcarindex.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: Using IResourceCachingStrategy with context relative resources(non PackageResource)
Merci Alex, I indeed use the maven plugin and didn't consider a NamingStrategy, but at first look we would not be able to reference back the generated file in Wicket, right? But I think that context resources not only PackageResources should be candidates for a ResourceCachingStrategy and not need a special filter to handle this. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Using-IResourceCachingStrategy-with-context-relative-resources-non-PackageResource-tp3712574p3713469.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
Safari hangs on ajax form submit
This problem is only present when using Safari (Chrome, FF, and IE work fine. Specifically I found this in Safari 5 on Windows 7). Also, only when using ajax buttons for both forms submittal, rather than a vanilla form submission for the second form. I have two forms on a single page, the second one isn't visible on page load. When you submit the first form I change the visibility so that the first form is invisible and the second is visible: pTarget.addComponent(_form1.setVisible(false)); pTarget.addComponent(_form2.setVisible(true)); In Safari only this result in neither form rendered after submission. Switching the order in form1's onSubmit() rectifies the immediate problem: pTarget.addComponent(_form2.setVisible(true)); pTarget.addComponent(_form1.setVisible(false)); However, now when you submit the second form, the client hangs on INFO: Response parsed. Now invoking steps... It never gets to the submit button's onsubmit(). It gets stuck while processing steps in the processNext() function of Wicket.FunctionsExecuter in wicket-ajax.js and so it never calls the final success function, hence the hang. As a work around, you can change the first form's onSubmit() to this: pTarget.addComponent(_form2.setVisible(true)); pTarget.addComponent(_form1.add(new SimpleAttributeModifier(style, visibility:hidden))); Is there a real fix for this? It seems like there may be a bug in how wicket-ajax.js handles Safari. Thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Safari-hangs-on-ajax-form-submit-tp3713539p3713539.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: Safari hangs on ajax form submit
Are you encountering this? https://issues.apache.org/jira/browse/WICKET-3820 I also recently submitted this so failures like this aren't so catastrophic. https://issues.apache.org/jira/browse/WICKET-3937 On Tue, Aug 2, 2011 at 12:46 PM, trodi t_roy...@hotmail.com wrote: This problem is only present when using Safari (Chrome, FF, and IE work fine. Specifically I found this in Safari 5 on Windows 7). Also, only when using ajax buttons for both forms submittal, rather than a vanilla form submission for the second form. I have two forms on a single page, the second one isn't visible on page load. When you submit the first form I change the visibility so that the first form is invisible and the second is visible: pTarget.addComponent(_form1.setVisible(false)); pTarget.addComponent(_form2.setVisible(true)); In Safari only this result in neither form rendered after submission. Switching the order in form1's onSubmit() rectifies the immediate problem: pTarget.addComponent(_form2.setVisible(true)); pTarget.addComponent(_form1.setVisible(false)); However, now when you submit the second form, the client hangs on INFO: Response parsed. Now invoking steps... It never gets to the submit button's onsubmit(). It gets stuck while processing steps in the processNext() function of Wicket.FunctionsExecuter in wicket-ajax.js and so it never calls the final success function, hence the hang. As a work around, you can change the first form's onSubmit() to this: pTarget.addComponent(_form2.setVisible(true)); pTarget.addComponent(_form1.add(new SimpleAttributeModifier(style, visibility:hidden))); Is there a real fix for this? It seems like there may be a bug in how wicket-ajax.js handles Safari. Thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Safari-hangs-on-ajax-form-submit-tp3713539p3713539.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: Safari hangs on ajax form submit
Dan Retzlaff wrote: Are you encountering this? https://issues.apache.org/jira/browse/WICKET-3820 I also recently submitted this so failures like this aren't so catastrophic. https://issues.apache.org/jira/browse/WICKET-3937 Yes, this was the problem I was encountering. Your submitted fix solves my problem, thanks. It looks like Wicket 1.4.18 will have this fixed as well, according to the bug's commentary. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Safari-hangs-on-ajax-form-submit-tp3713539p3713726.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 1.5 and glassfish 3.1.1 clustering (session replication)
looks like a glassfish bug. -igor On Tue, Aug 2, 2011 at 7:29 AM, Vytautas R. turi...@gmail.com wrote: Hello, Environment: Windows platform, Glassfish 3.1.1, Apache Wicket 1.5-RC5.1 (quickstart from wicket.apache.org) Created to nodes, deployed very simple web application. HttpServletRequest request = (HttpServletRequest) ((WebRequest) RequestCycle.get().getRequest()).getContainerRequest(); HttpSession session = request.getSession(); DateFormat formatter = new SimpleDateFormat(dd/MM/ hh:mm:ss.SSS); String serverInstance = System.getProperty(com.sun.aas.instanceName); String sessionId = session.getId(); String creationDate = formatter.format(session.getCreationTime()); String lastAccessTime = formatter.format(session.getLastAccessedTime()); if (session.isNew()) { session.setAttribute(Test, value); } String attribute = (String)session.getAttribute(Test); add(new Label(sessionId, sessionId)); add(new Label(creationDate, creationDate)); add(new Label(lastAccessTime, lastAccessTime)); add(new Label(attribute, attribute)); add(new Label(serverInstance, serverInstance)); Session is not replicated and new one is created when switching from one cluster to another. However: The same Windows platform, Glassfish 3.1.1, Apache Wicket 1.4.17 (quickstart from wicket.apache.org) - everything seems to be working fine (session is replicated). just small change to get servlet request: HttpServletRequest request = (HttpServletRequest) ((WebRequest) RequestCycle.get().getRequest()).getHttpServletRequest(); Anybody has an idea what might be wrong? -- Best regards, Vytautas R. --- www.xaloon.org www.allcarindex.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: Using IResourceCachingStrategy with context relative resources(non PackageResource)
It should be possible to include dynamically all resources in the page contained inside a servlet context folder (no need to know the exact name of the resource). -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Using-IResourceCachingStrategy-with-context-relative-resources-non-PackageResource-tp3712574p3713807.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: Scala DSL for Wicket
Another interesting piece of code with this Scala DSL // gender radio button val gender = radioGroup[String](gender) gender.radio(male, Model.of(Male)) gender.radio(female, Model.of(Female)) gender.setRequired(true) The HTML: div wicket:id=sexo span input wicket:id=male id=male class=field radio type=radio / label class=choice for=maleMasculino/label /span span input wicket:id=female id=female class=field radio type=radio / label class=choice for=femaleFemale/label /span /div This way, the HTMLis exactly the way the designer sent it to me. *Bruno Borges* www.brunoborges.com.br +55 21 76727099
Re: Disabling Entire Page, and Redirecting to Page in N Seconds
Thanks. Good suggestion. Will give it a try, but never worked with jQuery before. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Disabling-Entire-Page-and-Redirecting-to-Page-in-N-Seconds-tp3712976p3714169.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