Regarding WICKET-3321 not solved in Wicket 1.4.6
Hi, I have been waiting for the fix of Wicket-3321. It should have been solved in Wicket 1.4.6 according to the defect/jira info: https://issues.apache.org/jira/browse/WICKET-3321 But i can't find it under the list of fixed issues in Wicket 1.4.6: https://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=truemode=hidesorter/order=DESCsorter/field=prioritypid=12310561fixfor=12314470 And it appears that the problem still exists with Wicket 1.4.6. Can anyone please explain why the defect has been abandoned in Wicket 1.4.6, i have been waiting for it for some time now. Thanks in advance. Muro
Re: Regarding WICKET-3321 not solved in Wicket 1.4.6
Hehe sorry for the mistake On Thu, Feb 24, 2011 at 11:41 AM, Matthias Keller matthias.kel...@ergon.chwrote: Hmm Well the Issue sais it is fixed in 1.4.*16* not .6 ... and 1.4.16 is not yet released Matt On 2011-02-24 11:38, Muro Copenhagen wrote: Hi, I have been waiting for the fix of Wicket-3321. It should have been solved in Wicket 1.4.6 according to the defect/jira info: https://issues.apache.org/jira/browse/WICKET-3321 But i can't find it under the list of fixed issues in Wicket 1.4.6: https://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=truemode=hidesorter/order=DESCsorter/field=prioritypid=12310561fixfor=12314470 And it appears that the problem still exists with Wicket 1.4.6. Can anyone please explain why the defect has been abandoned in Wicket 1.4.6, i have been waiting for it for some time now. Thanks in advance. Muro
Regarding AjaxIndicatorAppender and IE
Hi, Has anyone experienced problems with IE (v. 8) and AjaxIndicatorAppender. The problem i am experiencing in IE, not Firefox, is that the indicator is only shown the first time i click on submit. If i have a feedback panel, and enter all input fields, the indicator is shown, and i then get the next page. But if i don't enter anything, the indicator is shown(just for a second) then i get the errors on the feedback panel, and then when entering all the input fields the indicator is not shown... And this behavior only exist in IE...i know IE sucks... Anyone with ideas on what the problem might be? Best Regards Muro
Re: Concerning changing image onsubmit
Hi Igor, Thanks for the reply...i found IndicatingAjaxButton that i could use. It almost does what i want, it adds the busy button next to the submit button. I now need to disable the original button. I tried this without any luck: http://wicketbyexample.com/disabling-an-ajax-submit-button/ Do you know how to add an attribute like: style=display: none; to the original submit button on the fly, when click. I mean what behavior to use/implement? Best Regards Muro On Tue, Nov 30, 2010 at 5:27 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: write a behavior that adds javascript to the button that does that. -igor On Tue, Nov 30, 2010 at 3:07 AM, Muro Copenhagen copenha...@gmail.com wrote: Hi, I want to change the button image to a ajaxloader image, after the user clicks on submit, and there are no feedback errors. It has to work both on a regular button and on a ajax button. Any suggestions on how to make this work? Best Regards Muro - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Concerning changing image onsubmit
Hi, I want to change the button image to a ajaxloader image, after the user clicks on submit, and there are no feedback errors. It has to work both on a regular button and on a ajax button. Any suggestions on how to make this work? Best Regards Muro
non-bookmarkable pages with pageparameters?
Hi I have a page that is session based(nonbookmarkable) but at the same time i want to make sure a request parameter is shown in the url... How would i achieve that ? This is what i am trying to achieve, with example from my code: My page code constructors: public DeliverySecure() { this(new DeliveryInfo()); } public DeliverySecure(DeliveryInfo deliveryInfo) { ... } This page is called to separete ways: 1 - setResponsePage(DeliverySecure.class, new PageParameters(secure=on)); 2- setResponsePage(new DeliverySecure(deliveryInfo)); When i call the DeliverySecure page with approach 1, i get a url with the request parameter: ...secure=on, surely because it treats the page as bookmarkable. But with the 2. approach i get a url like: ...wicket:interface=:7 Can i somehow force wicket to add the browser parameter secure=on, when loading the nonbookmarkable page with approach 2 ? If so how would i achieve that, even though i want load the page with the session based deliveryInfo object i have...? Best Regards Muro
Re: non-bookmarkable pages with pageparameters?
Hi Erik, I tried that with no luck... How would i do this: setResponsePage(new DeliverySecure(deliveryInfo)), and at the same time send pageparameters to the same page? Best Regards Muro On Tue, Jul 6, 2010 at 4:10 PM, Erik van Oosten e.vanoos...@grons.nlwrote: Hi Muro, Mount your page with a HybridUrlCodingStrategy. For example the MixedParamHybridUrlCodingStrategy. Regards, Erik. Op 06-07-10 15:30, Muro Copenhagen wrote: Hi I have a page that is session based(nonbookmarkable) but at the same time i want to make sure a request parameter is shown in the url... How would i achieve that ? This is what i am trying to achieve, with example from my code: My page code constructors: public DeliverySecure() { this(new DeliveryInfo()); } public DeliverySecure(DeliveryInfo deliveryInfo) { ... } This page is called to separete ways: 1 - setResponsePage(DeliverySecure.class, new PageParameters(secure=on)); 2- setResponsePage(new DeliverySecure(deliveryInfo)); When i call the DeliverySecure page with approach 1, i get a url with the request parameter: ...secure=on, surely because it treats the page as bookmarkable. But with the 2. approach i get a url like: ...wicket:interface=:7 Can i somehow force wicket to add the browser parametersecure=on, when loading the nonbookmarkable page with approach 2 ? If so how would i achieve that, even though i want load the page with the session based deliveryInfo object i have...? Best Regards Muro -- 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-rendering javascript in behavior
Hi, I have a small behavior that prevents doubleclick on buttons. It is added to Modal popups on a page. The problem i have is that if the Modal window appears twice on a page, the javascript variable value of the first popup is used. This is because i am using: response.renderJavascript(...); which is only rendered once. How can i force rerendering of the javascript, or is there any other way of achieving defaulting the javascript variable, for each modal window on my page? This is how it my behavior looks: public class PreventDoubleClickBehavior extends AbstractBehavior { private String submitScript = if(submitting) {this.disabled = true; return false;} else {submitting = true;}; @Override public void renderHead(IHeaderResponse response) { response.renderJavascript(var submitting = false;, pdcJS); } @Override public void onComponentTag(Component component, ComponentTag tag) { IValueMap valueMap = tag.getAttributes(); CharSequence oldOnclickFunctions = valueMap.getCharSequence(onclick); if (oldOnclickFunctions == null) { oldOnclickFunctions = ; } tag.put(onclick, submitScript + oldOnclickFunctions); } } Thanks in advance... Muro
Re: Image Upload Using TinyMCE Within Wicket Framework
Hi Michal The idea is that users can upload a question, with images related to that question. So after upload, the image will be seen as regular text. We are expecting many pictures to be uploaded...So i probably want to use shared resources. But still then i have to parse and rerender the src of the image? I will try to work on a solution with shared resources :) Thanks for the help Best Regards Muro 2010/5/20 Michał Letyński mletyn...@consol.pl Hi Muro. W dniu 2010-05-19 15:12, Muro Copenhagen pisze: Hi Michal, Thanks for the reply Yes that was my idea. It would be better with a static reference to a localdrive folder, so the folder works as a image repository. I am working on a wepapp where users has to login...the problem i am experiencing is that the the image reference is temporary, based on user login etc. So if user logs in, uploads the image, the next time the user logs in the reference to the image would be wrong. What are you doing with those uploaded images and text which come from tiny ? Do you display them after submit as normal text in the page ? I have also a login application. Text/images which came from tiny are shown as news to any logged user. But this whole text must be parsed and src of image must be rerendered. I get this text and build panel with dynamic labels and images (dynamic markup). Some like this: public abstract class AbstractImagePanel extends Panel implements IMarkupResourceStreamProvider, IMarkupCacheKeyProvider { public IResourceStream getMarkupResourceStream(MarkupContainer pContainer, Class? pContainerClass) { String markup = String.format(wicket:panel%s/wicket:panel, createMarkup()); StringBufferResourceStream stringBuf = new StringBufferResourceStream(); stringBuf.append(markup); return stringBuf; } private String createMarkup() { StringBuffer sb = new StringBuffer(); Matcher matcher = getMatcher(); int index = 0; while(matcher.find()) { matcher.appendReplacement(sb, String.format(IMG_TAG, (index++)+matcher.group(1)+getMarkupId())); } matcher.appendTail(sb); return sb.toString(); } @Override protected void onBeforeRender() { super.onBeforeRender(); // Images must be added on each request, before phase render removeAll(); addImages(); } } in addImmages() i het the same matcher parsing with adding Image components return new Image(pIndex+pFileName+getMarkupId(), new Resource() { @Override public IResourceStream getResourceStream() { return ResourceStream which points to our image } }); Of course you can also put it to sharedResources. But it depends on how many images you are going to upload :) In sharedResources we should have images which are provided with our application. Also a different user would not be able to see the same image... Therefore i was thinking on a solution like this one integrated with youre code...: http://dotev.blogspot.com/2009/11/serving-images-and-other-resources-with.html And images could be referenced as in the link...: resources/global/images?id=image105 Would it be possible ? Best Regards Muro 2010/5/19 Michał Letyńskimletyn...@consol.pl Hi. Whay do you want to change exactly Muro ? Temporary path is set to javax.servlet.context.tempdir. Image must be temporary uploaded somewhere to show it in editor later. This src inimg tag points into ImageUploadPanel which implements IResourceListener. So the ImageUploadPanel is called when a resource is requested. (resource is created from image which is uploaded to temp directory). Do you want to have a static path like ../../resources/images/locked.gif ? W dniu 2010-05-18 17:52, Muro Copenhagen pisze: Hi... I am facing a new problem with the TinyMCE upload image, i hope someone can assist me on. I can see that the ImageUpload tinymce example uses a temporary path to store the images... If i want to store them on a static folder, like the folder: c:\images How would i achive that ? If can to overwrite you getTemporaryDirPath() folder and set it to c:\images, the upload works fine. But the reference to the image, is store with the wicket session reference. Here is the an example on how it is stored: img src=?wicket:interface=:25:editCaseForm:uploadPanel::IResourceListener::amp;filename=testerman.JPGamp;contenttype=image/jpeg alt= / How would i manage to store it a manner so it is not session dependent...? Any help will be appreciated... Best Regards Muso On Fri, May 14, 2010 at 3:03 PM, Muro Copenhagencopenha...@gmail.com wrote: Hi Michal Great thanks for the help.. Best Regards Muro 2010/5/14 Michał Letyńskimletyn...@consol.pl Hi
Re: Image Upload Using TinyMCE Within Wicket Framework
Hi Michal, Thanks for the reply Yes that was my idea. It would be better with a static reference to a localdrive folder, so the folder works as a image repository. I am working on a wepapp where users has to login...the problem i am experiencing is that the the image reference is temporary, based on user login etc. So if user logs in, uploads the image, the next time the user logs in the reference to the image would be wrong. Also a different user would not be able to see the same image... Therefore i was thinking on a solution like this one integrated with youre code...: http://dotev.blogspot.com/2009/11/serving-images-and-other-resources-with.html And images could be referenced as in the link...: resources/global/images?id=image105 Would it be possible ? Best Regards Muro 2010/5/19 Michał Letyński mletyn...@consol.pl Hi. Whay do you want to change exactly Muro ? Temporary path is set to javax.servlet.context.tempdir. Image must be temporary uploaded somewhere to show it in editor later. This src in img tag points into ImageUploadPanel which implements IResourceListener. So the ImageUploadPanel is called when a resource is requested. (resource is created from image which is uploaded to temp directory). Do you want to have a static path like ../../resources/images/locked.gif ? W dniu 2010-05-18 17:52, Muro Copenhagen pisze: Hi... I am facing a new problem with the TinyMCE upload image, i hope someone can assist me on. I can see that the ImageUpload tinymce example uses a temporary path to store the images... If i want to store them on a static folder, like the folder: c:\images How would i achive that ? If can to overwrite you getTemporaryDirPath() folder and set it to c:\images, the upload works fine. But the reference to the image, is store with the wicket session reference. Here is the an example on how it is stored: img src=?wicket:interface=:25:editCaseForm:uploadPanel::IResourceListener::amp;filename=testerman.JPGamp;contenttype=image/jpeg alt= / How would i manage to store it a manner so it is not session dependent...? Any help will be appreciated... Best Regards Muso On Fri, May 14, 2010 at 3:03 PM, Muro Copenhagencopenha...@gmail.com wrote: Hi Michal Great thanks for the help.. Best Regards Muro 2010/5/14 Michał Letyńskimletyn...@consol.pl Hi. Yes you are right the last released version is 1.4.1. So you must build it localy. W dniu 2010-05-14 11:19, Muro Copenhagen pisze: Hi Michal I appreciate you're effort spelling things out. I am still not sure on how to get it to work. When i add this dependency to my project it won't work: dependency groupIdorg.wicketstuff/groupId artifactIdtinymce/artifactId version1.4.7-SNAPSHOT/version /dependency And that makes sense since i can't find that version in the repo: http://wicketstuff.org/maven/repository So how would i get my project to use the tinymce version 1.4.7-SNAPSHOT ? Maybe it's a silly question... but i am not sure how to make it work... Best Regards Muro 2010/5/13 Michał Letyńskimletyn...@consol.pl Hi. Its commited to trunk and in pom we have 1.4.7-SNAPSHOT so it should be available ... W dniu 2010-05-12 15:23, Muro Copenhagen pisze: Hi again... I guess a new release of wicket-stuff tinymce has to be made in order to use it... The current release 1.4-rc7 misses the changes you have commited... Who can make a new release of wicket-stuff tinymce so we can use the commited code ? Best Regards Muro 2010/5/12 Michał Letyńskimletyn...@consol.pl Hi. Its one of tiny examples: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/tinymce-parent/tinymce-examples W dniu 2010-05-12 12:40, Muro Copenhagen pisze: Hi Michael, That is a great example. But you mentioned that you have commited the sample to wicket-stuff. I can't find it anywhere so can you please send a link or something... Best regards Muro On Tue, May 4, 2010 at 2:49 PM, Robert Kimothokimot...@gmail.com wrote: You are right I have a wicket path in src and it looks like this 'resources/wicket.contrib.tinymce.InPlaceEditBehavior/tiny_mce/plugins/emotions/img/smiley-cool.gif' this is what you get submitted to the server, but the image does not get displayed. Can you guide me to using the IResourceListener or getting the emoticon displayed at the client side. Regards, Kimotho. 2010/5/4 Michał Letyńskimletyn...@consol.pl Hi. If you have images in tiny with external src it should work but if you have in src a wicket path you must change it (to component which will get the image look at IResourceListener) before displainng image in label, multilinelabel, etc. W dniu 2010-05-03 09:10, Robert Kimotho pisze: When I submit a form with an emoticon from the fullfeatured tinymce
Re: Image Upload Using TinyMCE Within Wicket Framework
Hi... I am facing a new problem with the TinyMCE upload image, i hope someone can assist me on. I can see that the ImageUpload tinymce example uses a temporary path to store the images... If i want to store them on a static folder, like the folder: c:\images How would i achive that ? If can to overwrite you getTemporaryDirPath() folder and set it to c:\images, the upload works fine. But the reference to the image, is store with the wicket session reference. Here is the an example on how it is stored: img src=?wicket:interface=:25:editCaseForm:uploadPanel::IResourceListener::amp;filename=testerman.JPGamp;contenttype=image/jpeg alt= / How would i manage to store it a manner so it is not session dependent...? Any help will be appreciated... Best Regards Muso On Fri, May 14, 2010 at 3:03 PM, Muro Copenhagen copenha...@gmail.comwrote: Hi Michal Great thanks for the help.. Best Regards Muro 2010/5/14 Michał Letyński mletyn...@consol.pl Hi. Yes you are right the last released version is 1.4.1. So you must build it localy. W dniu 2010-05-14 11:19, Muro Copenhagen pisze: Hi Michal I appreciate you're effort spelling things out. I am still not sure on how to get it to work. When i add this dependency to my project it won't work: dependency groupIdorg.wicketstuff/groupId artifactIdtinymce/artifactId version1.4.7-SNAPSHOT/version /dependency And that makes sense since i can't find that version in the repo: http://wicketstuff.org/maven/repository So how would i get my project to use the tinymce version 1.4.7-SNAPSHOT ? Maybe it's a silly question... but i am not sure how to make it work... Best Regards Muro 2010/5/13 Michał Letyńskimletyn...@consol.pl Hi. Its commited to trunk and in pom we have 1.4.7-SNAPSHOT so it should be available ... W dniu 2010-05-12 15:23, Muro Copenhagen pisze: Hi again... I guess a new release of wicket-stuff tinymce has to be made in order to use it... The current release 1.4-rc7 misses the changes you have commited... Who can make a new release of wicket-stuff tinymce so we can use the commited code ? Best Regards Muro 2010/5/12 Michał Letyńskimletyn...@consol.pl Hi. Its one of tiny examples: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/tinymce-parent/tinymce-examples W dniu 2010-05-12 12:40, Muro Copenhagen pisze: Hi Michael, That is a great example. But you mentioned that you have commited the sample to wicket-stuff. I can't find it anywhere so can you please send a link or something... Best regards Muro On Tue, May 4, 2010 at 2:49 PM, Robert Kimothokimot...@gmail.com wrote: You are right I have a wicket path in src and it looks like this 'resources/wicket.contrib.tinymce.InPlaceEditBehavior/tiny_mce/plugins/emotions/img/smiley-cool.gif' this is what you get submitted to the server, but the image does not get displayed. Can you guide me to using the IResourceListener or getting the emoticon displayed at the client side. Regards, Kimotho. 2010/5/4 Michał Letyńskimletyn...@consol.pl Hi. If you have images in tiny with external src it should work but if you have in src a wicket path you must change it (to component which will get the image look at IResourceListener) before displainng image in label, multilinelabel, etc. W dniu 2010-05-03 09:10, Robert Kimotho pisze: When I submit a form with an emoticon from the fullfeatured tinymce, the image doesn't get displayed in the destination only the text. any suggestions, I've been stuck here for a while now. 2010/5/1 新希望软件 -- 俞宏伟nhsoft@gmail.com image upload example run failuer, the application throwsNoClassDefFoundError . WicketMessage: Can't instantiate page using constructor public wicket.contrib.examples.tinymce.ImageUploadTinyMCEPage() Root cause: java.lang.NoClassDefFoundError: wicket/contrib/tinymce/image/ImageUploadPanel at wicket.contrib.examples.tinymce.ImageUploadTinyMCEPage.init(ImageUploadTinyMCEPage.java:42) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.apache.wicket.session.DefaultPageFactory.createPage(DefaultPageFactory.java:192) at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:57) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:298) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:320) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.processEvents
Re: Image Upload Using TinyMCE Within Wicket Framework
Hi Michal I appreciate you're effort spelling things out. I am still not sure on how to get it to work. When i add this dependency to my project it won't work: dependency groupIdorg.wicketstuff/groupId artifactIdtinymce/artifactId version1.4.7-SNAPSHOT/version /dependency And that makes sense since i can't find that version in the repo: http://wicketstuff.org/maven/repository So how would i get my project to use the tinymce version 1.4.7-SNAPSHOT ? Maybe it's a silly question... but i am not sure how to make it work... Best Regards Muro 2010/5/13 Michał Letyński mletyn...@consol.pl Hi. Its commited to trunk and in pom we have 1.4.7-SNAPSHOT so it should be available ... W dniu 2010-05-12 15:23, Muro Copenhagen pisze: Hi again... I guess a new release of wicket-stuff tinymce has to be made in order to use it... The current release 1.4-rc7 misses the changes you have commited... Who can make a new release of wicket-stuff tinymce so we can use the commited code ? Best Regards Muro 2010/5/12 Michał Letyńskimletyn...@consol.pl Hi. Its one of tiny examples: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/tinymce-parent/tinymce-examples W dniu 2010-05-12 12:40, Muro Copenhagen pisze: Hi Michael, That is a great example. But you mentioned that you have commited the sample to wicket-stuff. I can't find it anywhere so can you please send a link or something... Best regards Muro On Tue, May 4, 2010 at 2:49 PM, Robert Kimothokimot...@gmail.com wrote: You are right I have a wicket path in src and it looks like this 'resources/wicket.contrib.tinymce.InPlaceEditBehavior/tiny_mce/plugins/emotions/img/smiley-cool.gif' this is what you get submitted to the server, but the image does not get displayed. Can you guide me to using the IResourceListener or getting the emoticon displayed at the client side. Regards, Kimotho. 2010/5/4 Michał Letyńskimletyn...@consol.pl Hi. If you have images in tiny with external src it should work but if you have in src a wicket path you must change it (to component which will get the image look at IResourceListener) before displainng image in label, multilinelabel, etc. W dniu 2010-05-03 09:10, Robert Kimotho pisze: When I submit a form with an emoticon from the fullfeatured tinymce, the image doesn't get displayed in the destination only the text. any suggestions, I've been stuck here for a while now. 2010/5/1 新希望软件 -- 俞宏伟nhsoft@gmail.com image upload example run failuer, the application throwsNoClassDefFoundError . WicketMessage: Can't instantiate page using constructor public wicket.contrib.examples.tinymce.ImageUploadTinyMCEPage() Root cause: java.lang.NoClassDefFoundError: wicket/contrib/tinymce/image/ImageUploadPanel at wicket.contrib.examples.tinymce.ImageUploadTinyMCEPage.init(ImageUploadTinyMCEPage.java:42) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.apache.wicket.session.DefaultPageFactory.createPage(DefaultPageFactory.java:192) at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:57) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:298) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:320) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java:234) at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428) at org.apache.wicket.RequestCycle.request(RequestCycle.java:545) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:479) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:312) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765
Re: Image Upload Using TinyMCE Within Wicket Framework
Hi Michal Great thanks for the help.. Best Regards Muro 2010/5/14 Michał Letyński mletyn...@consol.pl Hi. Yes you are right the last released version is 1.4.1. So you must build it localy. W dniu 2010-05-14 11:19, Muro Copenhagen pisze: Hi Michal I appreciate you're effort spelling things out. I am still not sure on how to get it to work. When i add this dependency to my project it won't work: dependency groupIdorg.wicketstuff/groupId artifactIdtinymce/artifactId version1.4.7-SNAPSHOT/version /dependency And that makes sense since i can't find that version in the repo: http://wicketstuff.org/maven/repository So how would i get my project to use the tinymce version 1.4.7-SNAPSHOT ? Maybe it's a silly question... but i am not sure how to make it work... Best Regards Muro 2010/5/13 Michał Letyńskimletyn...@consol.pl Hi. Its commited to trunk and in pom we have 1.4.7-SNAPSHOT so it should be available ... W dniu 2010-05-12 15:23, Muro Copenhagen pisze: Hi again... I guess a new release of wicket-stuff tinymce has to be made in order to use it... The current release 1.4-rc7 misses the changes you have commited... Who can make a new release of wicket-stuff tinymce so we can use the commited code ? Best Regards Muro 2010/5/12 Michał Letyńskimletyn...@consol.pl Hi. Its one of tiny examples: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/tinymce-parent/tinymce-examples W dniu 2010-05-12 12:40, Muro Copenhagen pisze: Hi Michael, That is a great example. But you mentioned that you have commited the sample to wicket-stuff. I can't find it anywhere so can you please send a link or something... Best regards Muro On Tue, May 4, 2010 at 2:49 PM, Robert Kimothokimot...@gmail.com wrote: You are right I have a wicket path in src and it looks like this 'resources/wicket.contrib.tinymce.InPlaceEditBehavior/tiny_mce/plugins/emotions/img/smiley-cool.gif' this is what you get submitted to the server, but the image does not get displayed. Can you guide me to using the IResourceListener or getting the emoticon displayed at the client side. Regards, Kimotho. 2010/5/4 Michał Letyńskimletyn...@consol.pl Hi. If you have images in tiny with external src it should work but if you have in src a wicket path you must change it (to component which will get the image look at IResourceListener) before displainng image in label, multilinelabel, etc. W dniu 2010-05-03 09:10, Robert Kimotho pisze: When I submit a form with an emoticon from the fullfeatured tinymce, the image doesn't get displayed in the destination only the text. any suggestions, I've been stuck here for a while now. 2010/5/1 新希望软件 -- 俞宏伟nhsoft@gmail.com image upload example run failuer, the application throwsNoClassDefFoundError . WicketMessage: Can't instantiate page using constructor public wicket.contrib.examples.tinymce.ImageUploadTinyMCEPage() Root cause: java.lang.NoClassDefFoundError: wicket/contrib/tinymce/image/ImageUploadPanel at wicket.contrib.examples.tinymce.ImageUploadTinyMCEPage.init(ImageUploadTinyMCEPage.java:42) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.apache.wicket.session.DefaultPageFactory.createPage(DefaultPageFactory.java:192) at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:57) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:298) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:320) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java:234) at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428) at org.apache.wicket.RequestCycle.request(RequestCycle.java:545) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:479) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:312) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157
Re: Image Upload Using TinyMCE Within Wicket Framework
Hi Michael, That is a great example. But you mentioned that you have commited the sample to wicket-stuff. I can't find it anywhere so can you please send a link or something... Best regards Muro On Tue, May 4, 2010 at 2:49 PM, Robert Kimotho kimot...@gmail.com wrote: You are right I have a wicket path in src and it looks like this 'resources/wicket.contrib.tinymce.InPlaceEditBehavior/tiny_mce/plugins/emotions/img/smiley-cool.gif' this is what you get submitted to the server, but the image does not get displayed. Can you guide me to using the IResourceListener or getting the emoticon displayed at the client side. Regards, Kimotho. 2010/5/4 Michał Letyński mletyn...@consol.pl Hi. If you have images in tiny with external src it should work but if you have in src a wicket path you must change it (to component which will get the image look at IResourceListener) before displainng image in label, multilinelabel, etc. W dniu 2010-05-03 09:10, Robert Kimotho pisze: When I submit a form with an emoticon from the fullfeatured tinymce, the image doesn't get displayed in the destination only the text. any suggestions, I've been stuck here for a while now. 2010/5/1 新希望软件 -- 俞宏伟nhsoft@gmail.com image upload example run failuer, the application throwsNoClassDefFoundError . WicketMessage: Can't instantiate page using constructor public wicket.contrib.examples.tinymce.ImageUploadTinyMCEPage() Root cause: java.lang.NoClassDefFoundError: wicket/contrib/tinymce/image/ImageUploadPanel at wicket.contrib.examples.tinymce.ImageUploadTinyMCEPage.init(ImageUploadTinyMCEPage.java:42) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.apache.wicket.session.DefaultPageFactory.createPage(DefaultPageFactory.java:192) at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:57) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:298) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:320) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java:234) at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428) at org.apache.wicket.RequestCycle.request(RequestCycle.java:545) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:479) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:312) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) Complete stack: org.apache.wicket.WicketRuntimeException: Can't instantiate page using constructor public wicket.contrib.examples.tinymce.ImageUploadTinyMCEPage() at org.apache.wicket.session.DefaultPageFactory.createPage(DefaultPageFactory.java:212) at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:57) at
Re: Image Upload Using TinyMCE Within Wicket Framework
Hi, Cool...thats nice... Best regards Muro 2010/5/12 Michał Letyński mletyn...@consol.pl Hi. Its one of tiny examples: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/tinymce-parent/tinymce-examples W dniu 2010-05-12 12:40, Muro Copenhagen pisze: Hi Michael, That is a great example. But you mentioned that you have commited the sample to wicket-stuff. I can't find it anywhere so can you please send a link or something... Best regards Muro On Tue, May 4, 2010 at 2:49 PM, Robert Kimothokimot...@gmail.com wrote: You are right I have a wicket path in src and it looks like this 'resources/wicket.contrib.tinymce.InPlaceEditBehavior/tiny_mce/plugins/emotions/img/smiley-cool.gif' this is what you get submitted to the server, but the image does not get displayed. Can you guide me to using the IResourceListener or getting the emoticon displayed at the client side. Regards, Kimotho. 2010/5/4 Michał Letyńskimletyn...@consol.pl Hi. If you have images in tiny with external src it should work but if you have in src a wicket path you must change it (to component which will get the image look at IResourceListener) before displainng image in label, multilinelabel, etc. W dniu 2010-05-03 09:10, Robert Kimotho pisze: When I submit a form with an emoticon from the fullfeatured tinymce, the image doesn't get displayed in the destination only the text. any suggestions, I've been stuck here for a while now. 2010/5/1 新希望软件 -- 俞宏伟nhsoft@gmail.com image upload example run failuer, the application throwsNoClassDefFoundError . WicketMessage: Can't instantiate page using constructor public wicket.contrib.examples.tinymce.ImageUploadTinyMCEPage() Root cause: java.lang.NoClassDefFoundError: wicket/contrib/tinymce/image/ImageUploadPanel at wicket.contrib.examples.tinymce.ImageUploadTinyMCEPage.init(ImageUploadTinyMCEPage.java:42) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.apache.wicket.session.DefaultPageFactory.createPage(DefaultPageFactory.java:192) at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:57) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:298) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:320) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java:234) at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428) at org.apache.wicket.RequestCycle.request(RequestCycle.java:545) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:479) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:312) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) Complete stack: org.apache.wicket.WicketRuntimeException: Can't instantiate page using constructor public wicket.contrib.examples.tinymce.ImageUploadTinyMCEPage
Re: Image Upload Using TinyMCE Within Wicket Framework
Hi again... I guess a new release of wicket-stuff tinymce has to be made in order to use it... The current release 1.4-rc7 misses the changes you have commited... Who can make a new release of wicket-stuff tinymce so we can use the commited code ? Best Regards Muro 2010/5/12 Michał Letyński mletyn...@consol.pl Hi. Its one of tiny examples: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/tinymce-parent/tinymce-examples W dniu 2010-05-12 12:40, Muro Copenhagen pisze: Hi Michael, That is a great example. But you mentioned that you have commited the sample to wicket-stuff. I can't find it anywhere so can you please send a link or something... Best regards Muro On Tue, May 4, 2010 at 2:49 PM, Robert Kimothokimot...@gmail.com wrote: You are right I have a wicket path in src and it looks like this 'resources/wicket.contrib.tinymce.InPlaceEditBehavior/tiny_mce/plugins/emotions/img/smiley-cool.gif' this is what you get submitted to the server, but the image does not get displayed. Can you guide me to using the IResourceListener or getting the emoticon displayed at the client side. Regards, Kimotho. 2010/5/4 Michał Letyńskimletyn...@consol.pl Hi. If you have images in tiny with external src it should work but if you have in src a wicket path you must change it (to component which will get the image look at IResourceListener) before displainng image in label, multilinelabel, etc. W dniu 2010-05-03 09:10, Robert Kimotho pisze: When I submit a form with an emoticon from the fullfeatured tinymce, the image doesn't get displayed in the destination only the text. any suggestions, I've been stuck here for a while now. 2010/5/1 新希望软件 -- 俞宏伟nhsoft@gmail.com image upload example run failuer, the application throwsNoClassDefFoundError . WicketMessage: Can't instantiate page using constructor public wicket.contrib.examples.tinymce.ImageUploadTinyMCEPage() Root cause: java.lang.NoClassDefFoundError: wicket/contrib/tinymce/image/ImageUploadPanel at wicket.contrib.examples.tinymce.ImageUploadTinyMCEPage.init(ImageUploadTinyMCEPage.java:42) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.apache.wicket.session.DefaultPageFactory.createPage(DefaultPageFactory.java:192) at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:57) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:298) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:320) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java:234) at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428) at org.apache.wicket.RequestCycle.request(RequestCycle.java:545) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:479) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:312) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409
Adding child to parent component
Hi, Can anyone tell me if it is possible to extend a panel, and adding the child panel inside a component of the parent panel. So i'm looking for something like this: Parent extends Panel { public Parent (String id) { super(id); WebMarkupContainer div = new WebMarkupContainer(myDiv); add(div); } } Child extends Parent { public Child (String id) { super(id); add(new Label(label, HelloWorld); } Then the web part of the Parent panel should be something like: wicket:panel div wicket:id=myDivwicket:child //div /wicket:panel So how to add the child to a component on the parent rather than adding on head level ? Any ideas ? Best Regards Muro
Re: Adding child to parent component
Thanks for the answer It's not exactly what i mean...But if you look at the provided example... What if you wanted the child to be placed insided a component on the parent... something like: div wicket:id=... wicket:child / /div In example you provided the child is not placed inside a component added to the parent, rather its at top level: div wicket:child / /div Could this be achieved ... ? Best Regards Muro... On Thu, Jan 21, 2010 at 1:21 PM, Stefan Droog sdr...@educator.eu wrote: Is this what you mean? http://wicket.apache.org/examplemarkupinheritance.html -Original Message- From: Muro Copenhagen [mailto:copenha...@gmail.com] Sent: Thursday, January 21, 2010 1:16 PM To: users@wicket.apache.org Subject: Adding child to parent component Hi, Can anyone tell me if it is possible to extend a panel, and adding the child panel inside a component of the parent panel. So i'm looking for something like this: Parent extends Panel { public Parent (String id) { super(id); WebMarkupContainer div = new WebMarkupContainer(myDiv); add(div); } } Child extends Parent { public Child (String id) { super(id); add(new Label(label, HelloWorld); } Then the web part of the Parent panel should be something like: wicket:panel div wicket:id=myDivwicket:child //div /wicket:panel So how to add the child to a component on the parent rather than adding on head level ? Any ideas ? Best Regards Muro The information contained in this communication is confidential, intended solely for the use of the individual or entity to whom it is addressed and may be legally privileged and protected by professional secrecy. Access to this message by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, or distribution of the message, or any action or omission taken by you in reliance on it is prohibited and may be unlawful. Please immediately contact the sender if you have received this message in error. This email does not constitute any commitment from Cordys Holding BV or any of its subsidiaries except when expressly agreed in a written agreement between the intended recipient and Cordys Holding BV or its subsidiaries. Cordys is neither liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt. Cordys does not guarantee that the integrity of this communication has been maintained nor that the communication is free of viruses, interceptions or interference. If you are not the intended recipient of this communication please return the communication to the sender and delete and destroy all copies. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Adding child to parent component
Hi I think i found a solution... I was looking for something like this: http://old.nabble.com/panel-wicket:extend-confusion-td22862369.html http://www.mail-archive.com/wicket-u...@lists.sourceforge.net/msg15151.html So i think the transparent resolver should fix my problem... Best Regards... Muro On Thu, Jan 21, 2010 at 2:10 PM, Muro Copenhagen copenha...@gmail.comwrote: Thanks for the answer It's not exactly what i mean...But if you look at the provided example... What if you wanted the child to be placed insided a component on the parent... something like: div wicket:id=... wicket:child / /div In example you provided the child is not placed inside a component added to the parent, rather its at top level: div wicket:child / /div Could this be achieved ... ? Best Regards Muro... On Thu, Jan 21, 2010 at 1:21 PM, Stefan Droog sdr...@educator.eu wrote: Is this what you mean? http://wicket.apache.org/examplemarkupinheritance.html -Original Message- From: Muro Copenhagen [mailto:copenha...@gmail.com] Sent: Thursday, January 21, 2010 1:16 PM To: users@wicket.apache.org Subject: Adding child to parent component Hi, Can anyone tell me if it is possible to extend a panel, and adding the child panel inside a component of the parent panel. So i'm looking for something like this: Parent extends Panel { public Parent (String id) { super(id); WebMarkupContainer div = new WebMarkupContainer(myDiv); add(div); } } Child extends Parent { public Child (String id) { super(id); add(new Label(label, HelloWorld); } Then the web part of the Parent panel should be something like: wicket:panel div wicket:id=myDivwicket:child //div /wicket:panel So how to add the child to a component on the parent rather than adding on head level ? Any ideas ? Best Regards Muro The information contained in this communication is confidential, intended solely for the use of the individual or entity to whom it is addressed and may be legally privileged and protected by professional secrecy. Access to this message by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, or distribution of the message, or any action or omission taken by you in reliance on it is prohibited and may be unlawful. Please immediately contact the sender if you have received this message in error. This email does not constitute any commitment from Cordys Holding BV or any of its subsidiaries except when expressly agreed in a written agreement between the intended recipient and Cordys Holding BV or its subsidiaries. Cordys is neither liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt. Cordys does not guarantee that the integrity of this communication has been maintained nor that the communication is free of viruses, interceptions or interference. If you are not the intended recipient of this communication please return the communication to the sender and delete and destroy all copies. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Adding child to parent component
And this is link explains it pretty good: http://cwiki.apache.org/WICKET/markup-inheritance.html On Thu, Jan 21, 2010 at 2:25 PM, Muro Copenhagen copenha...@gmail.comwrote: Hi I think i found a solution... I was looking for something like this: http://old.nabble.com/panel-wicket:extend-confusion-td22862369.html http://www.mail-archive.com/wicket-u...@lists.sourceforge.net/msg15151.html So i think the transparent resolver should fix my problem... Best Regards... Muro On Thu, Jan 21, 2010 at 2:10 PM, Muro Copenhagen copenha...@gmail.comwrote: Thanks for the answer It's not exactly what i mean...But if you look at the provided example... What if you wanted the child to be placed insided a component on the parent... something like: div wicket:id=... wicket:child / /div In example you provided the child is not placed inside a component added to the parent, rather its at top level: div wicket:child / /div Could this be achieved ... ? Best Regards Muro... On Thu, Jan 21, 2010 at 1:21 PM, Stefan Droog sdr...@educator.eu wrote: Is this what you mean? http://wicket.apache.org/examplemarkupinheritance.html -Original Message- From: Muro Copenhagen [mailto:copenha...@gmail.com] Sent: Thursday, January 21, 2010 1:16 PM To: users@wicket.apache.org Subject: Adding child to parent component Hi, Can anyone tell me if it is possible to extend a panel, and adding the child panel inside a component of the parent panel. So i'm looking for something like this: Parent extends Panel { public Parent (String id) { super(id); WebMarkupContainer div = new WebMarkupContainer(myDiv); add(div); } } Child extends Parent { public Child (String id) { super(id); add(new Label(label, HelloWorld); } Then the web part of the Parent panel should be something like: wicket:panel div wicket:id=myDivwicket:child //div /wicket:panel So how to add the child to a component on the parent rather than adding on head level ? Any ideas ? Best Regards Muro The information contained in this communication is confidential, intended solely for the use of the individual or entity to whom it is addressed and may be legally privileged and protected by professional secrecy. Access to this message by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, or distribution of the message, or any action or omission taken by you in reliance on it is prohibited and may be unlawful. Please immediately contact the sender if you have received this message in error. This email does not constitute any commitment from Cordys Holding BV or any of its subsidiaries except when expressly agreed in a written agreement between the intended recipient and Cordys Holding BV or its subsidiaries. Cordys is neither liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt. Cordys does not guarantee that the integrity of this communication has been maintained nor that the communication is free of viruses, interceptions or interference. If you are not the intended recipient of this communication please return the communication to the sender and delete and destroy all copies. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Close window javascript
Hi, I'm trying to close a popup window after the user has submitted a message. I'm using a javascript to close the window but without any luck. Can anyone see what goes wrong? This is the AjaxSubmitLink that should submit the message and close the window: AjaxSubmitLink submit = new AjaxSubmitLink(submitLink) { @Override public void onSubmit(AjaxRequestTarget target, Form form) { if (log.isDebugEnabled()) { log.debug(Saveing comment + comment); } target.addComponent(response.setVisible(true)); target.addComponent(this.setVisible(false)); caseCommentService.create(...); this.getPage().add(new AbstractAjaxTimerBehavior(Duration.milliseconds(3000)) { protected void onTimer(final AjaxRequestTarget target) { stop(); target.prependJavascript(window.close();); } }); } }; myForm.add(submit); What i'm trying to achieve is to show a message(response.setVisible(true))..) in three seconds before closing the window. But something it does not seem to work. Best Regards Muro
Re: Close window javascript
Hi, Thanks Sefan...that helped me on the way... It's working now... Best Regards Muro On Mon, Jan 18, 2010 at 1:03 PM, Stefan Droog sdr...@educator.eu wrote: See ModalWindow.close(final AjaxRequestTarget target) S -Original Message- From: Muro Copenhagen [mailto:copenha...@gmail.com] Sent: Monday, January 18, 2010 11:12 AM To: users@wicket.apache.org Subject: Close window javascript Hi, I'm trying to close a popup window after the user has submitted a message. I'm using a javascript to close the window but without any luck. Can anyone see what goes wrong? This is the AjaxSubmitLink that should submit the message and close the window: AjaxSubmitLink submit = new AjaxSubmitLink(submitLink) { @Override public void onSubmit(AjaxRequestTarget target, Form form) { if (log.isDebugEnabled()) { log.debug(Saveing comment + comment); } target.addComponent(response.setVisible(true)); target.addComponent(this.setVisible(false)); caseCommentService.create(...); this.getPage().add(new AbstractAjaxTimerBehavior(Duration.milliseconds(3000)) { protected void onTimer(final AjaxRequestTarget target) { stop(); target.prependJavascript(window.close();); } }); } }; myForm.add(submit); What i'm trying to achieve is to show a message(response.setVisible(true))..) in three seconds before closing the window. But something it does not seem to work. Best Regards Muro The information contained in this communication is confidential, intended solely for the use of the individual or entity to whom it is addressed and may be legally privileged and protected by professional secrecy. Access to this message by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, or distribution of the message, or any action or omission taken by you in reliance on it is prohibited and may be unlawful. Please immediately contact the sender if you have received this message in error. This email does not constitute any commitment from Cordys Holding BV or any of its subsidiaries except when expressly agreed in a written agreement between the intended recipient and Cordys Holding BV or its subsidiaries. Cordys is neither liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt. Cordys does not guarantee that the integrity of this communication has been maintained nor that the communication is free of viruses, interceptions or interference. If you are not the intended recipient of this communication please return the communication to the sender and delete and destroy all copies. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket does not(?) prevent multiple submits
Hi, I have this urgent an vital problem i must solve, so i hope someone could assist. I am seeing this odd case of double/triple submit of forms, that should't I hope someone can explain what goes wrong. I have a page that i am adding a Form to. The page and form is straightforward and contains: public FirstPage(PageParameters parameters) { ... MyForm form = new MyForm(myForm, kmt); .. form.add(new SubmitLink(continue)); add(form); } class MyForm extends Form { ... protected void onSubmit() { MyEvent event = (MyEvent ) getSession().getApprovalEvent(); getModelManager().handleEvent(event); FinishEvent finishEvent = new FinishEvent (); getModelManager().handleEvent(finishEvent ); setResponsePage(ReceiptPage.class, new PageParameters(secure=ok)); } } As i understand wicket, it should not be possible to submit the form several times. However i can see in the log, that a second and even a third post is submitted, just before the line setResponsePage(ReceiptPage.class ... is reached/executed. The second submit will fail, because the first MyEvent must only be executed once. Can anyone explain how this could occur... Thanks in advance ... Muro
Re: Wicket datepicker disable weekdays
Hi... Actually it works now. I will paste my script here, just in case anyone else should have a need for the same feature: If someone wants to disable let sey fridays in the wicket datepicker calendar it can be achieved by overriding the DatePicker getAdditionalJavascript() method. And if you add this javascript in the getAdditionalJavascript method, the desired week days should be disabled: // cell.innerHTML = 'a href=\#\ class=\' + this.Style.CSS_CELL_OOB + '\' + this.buildDayLabel(workingDate) + \/a\;\n String myRenderer = var myCustomRenderer = function(workingDate, cell) {\n + cell.innerHTML = this.buildDayLabel(workingDate);\n + YAHOO.util.Dom.addClass(cell, 'previous');\n + return YAHOO.widget.Calendar.STOP_RENDER;\n}; myRenderer += \n YAHOO.wicket[' + getComponentMarkupId() + DpJs'].addWeekdayRenderer(1, myCustomRenderer);; // disable sundays return myRenderer; This link was a great help: http://www.stephaniebender.de/extras/yui/examples/calendar/render/1.html Thanks again Leo... Best Regards Muro On Mon, Nov 23, 2009 at 2:30 PM, Muro Copenhagen copenha...@gmail.comwrote: Hi Leo... Thanks... It helped me further on. I made it work, in a non-wicket purely javascript version. But something goes wrong in the wicket datepicker version. I override the getAdditionalJavascript method for the DatePicker with the following: @Override protected String getAdditionalJavascript() { String myRenderer = var myCustomRenderer = function(workingDate, cell) {\n + cell.innerHTML = 'x';\n + YAHOO.util.Dom.addClass(cell, 'disallowed');\n + return YAHOO.widget.Calendar.STOP_RENDER;\n}; return myRenderer + \n YAHOO.wicket[' + getComponentMarkupId() + DpJs'].addWeekdayRenderer(1, myCustomRenderer);; But for some reason i can't associate the customRenderer with the datepicker. Any hint's on how to do that ? I must admit i am relatively new to wicket. Thanks in advance. Muro On Fri, Nov 20, 2009 at 9:26 PM, Leo Erlandsson leo.erlands...@tyringe.com wrote: This is certainly possible. You need to use YUI Calendar Renderers. They are documented in the YUI Cal2 API Doc. You can find an example of what you are trying to achieve here (thanks Google): http://www.stephaniebender.de/extras/yui/examples/calendar/render/1.html Basically, you'll want to do this for all disallowed weekdays: var myCustomRenderer = function(workingDate, cell) { cell.innerHTML = X; YAHOO.util.Dom.addClass(cell, disallowed); return YAHOO.widget.Calendar.STOP_RENDER; } YAHOO.example.calendar.cal1.addWeekdayRenderer(1, myCustomRenderer); This will put an X on all Sundays, making them disabled. Also, it will add a CSS class ('disallowed') that can be customized if you want to change the appearance of disabled cells. -- View this message in context: http://old.nabble.com/Wicket-datepicker-disable-weekdays-tp26444084p26447477.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: Wicket datepicker disable weekdays
Hi Leo... Thanks... It helped me further on. I made it work, in a non-wicket purely javascript version. But something goes wrong in the wicket datepicker version. I override the getAdditionalJavascript method for the DatePicker with the following: @Override protected String getAdditionalJavascript() { String myRenderer = var myCustomRenderer = function(workingDate, cell) {\n + cell.innerHTML = 'x';\n + YAHOO.util.Dom.addClass(cell, 'disallowed');\n + return YAHOO.widget.Calendar.STOP_RENDER;\n}; return myRenderer + \n YAHOO.wicket[' + getComponentMarkupId() + DpJs'].addWeekdayRenderer(1, myCustomRenderer);; But for some reason i can't associate the customRenderer with the datepicker. Any hint's on how to do that ? I must admit i am relatively new to wicket. Thanks in advance. Muro On Fri, Nov 20, 2009 at 9:26 PM, Leo Erlandsson leo.erlands...@tyringe.comwrote: This is certainly possible. You need to use YUI Calendar Renderers. They are documented in the YUI Cal2 API Doc. You can find an example of what you are trying to achieve here (thanks Google): http://www.stephaniebender.de/extras/yui/examples/calendar/render/1.html Basically, you'll want to do this for all disallowed weekdays: var myCustomRenderer = function(workingDate, cell) { cell.innerHTML = X; YAHOO.util.Dom.addClass(cell, disallowed); return YAHOO.widget.Calendar.STOP_RENDER; } YAHOO.example.calendar.cal1.addWeekdayRenderer(1, myCustomRenderer); This will put an X on all Sundays, making them disabled. Also, it will add a CSS class ('disallowed') that can be customized if you want to change the appearance of disabled cells. -- View this message in context: http://old.nabble.com/Wicket-datepicker-disable-weekdays-tp26444084p26447477.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 datepicker disable weekdays
Hi, I tried to google for this feature i want without any luck :) I want to use the wicket datepicker but i want to disable fridays, saturdays and sundays. Does anyone have a clue on how to achieve this with the datepicker ? Thanks in advance... Best Regards Muro
Re: Wicket datepicker disable weekdays
Hi Martin, Thanks actually i did...but could not find something... Maybe i have overlooked stuff ? Best Regards Muro On Fri, Nov 20, 2009 at 3:27 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Hi! Did you look at the api documentation: http://developer.yahoo.com/yui/calendar/ ** Martin 2009/11/20 Muro Copenhagen copenha...@gmail.com: Hi, I tried to google for this feature i want without any luck :) I want to use the wicket datepicker but i want to disable fridays, saturdays and sundays. Does anyone have a clue on how to achieve this with the datepicker ? Thanks in advance... Best Regards Muro - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Show source problem using AbstractAjaxTimerBehavior
Hi, I am using the wicket AbstractAjaxTimerBehavior, that checks if a job i have executed has finished. When it has finished, i have a link i want to display. I have also added an attribut modifier to the link, that will add a javascript onclick to the link. My problem is that the changes made inside the AbstractAjaxTimerBehavior is not shown when i use show source. But it actually displays the changes on the web page. How come it displays the changes, but i can't see the changes when i use show source ? Can i force wicket/the browser to auto render/display the changes when the timer has finished. My concern is that the javascript i have added to the link will not be triggered, since it is not shown on the source. Here is a snapshot of my code: // senere link tracking link.add(new AttributeModifier(onclick, true, new Model(webTracking.trackEvent('test');))); final AsyncronEventExecuter e = new AsyncronEventExecuter(...); add(new AbstractAjaxTimerBehavior(Duration.milliseconds(1000)) { protected void onTimer(final AjaxRequestTarget target) { if (e.isFinished()) { stop(); target.addComponent(link.setVisible(true)); } } Thanks in advance Best Regards Muro
Re: Show source problem using AbstractAjaxTimerBehavior
Well that explains it. Ok, thanks for the tip Igor and Jeremy... Best Regards On Mon, Nov 16, 2009 at 10:57 PM, Jeremy Thomerson jer...@wickettraining.com wrote: Or use the web developer tools in FF and use view generated source. -- Jeremy Thomerson http://www.wickettraining.com On Mon, Nov 16, 2009 at 9:42 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: source only shows the initial load, not the changes made via ajax executed javascript. use firebug to view the actual dom structure. -igor On Mon, Nov 16, 2009 at 6:16 AM, Muro Copenhagen copenha...@gmail.com wrote: Hi, I am using the wicket AbstractAjaxTimerBehavior, that checks if a job i have executed has finished. When it has finished, i have a link i want to display. I have also added an attribut modifier to the link, that will add a javascript onclick to the link. My problem is that the changes made inside the AbstractAjaxTimerBehavior is not shown when i use show source. But it actually displays the changes on the web page. How come it displays the changes, but i can't see the changes when i use show source ? Can i force wicket/the browser to auto render/display the changes when the timer has finished. My concern is that the javascript i have added to the link will not be triggered, since it is not shown on the source. Here is a snapshot of my code: // senere link tracking link.add(new AttributeModifier(onclick, true, new Model(webTracking.trackEvent('test');))); final AsyncronEventExecuter e = new AsyncronEventExecuter(...); add(new AbstractAjaxTimerBehavior(Duration.milliseconds(1000)) { protected void onTimer(final AjaxRequestTarget target) { if (e.isFinished()) { stop(); target.addComponent(link.setVisible(true)); } } Thanks in advance Best Regards Muro - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket vs. CKEditor/FCKEditor Java integration
Thanks for the swift answer... Best Regards Muro On Fri, Nov 6, 2009 at 3:16 PM, Roman Ilin roman.i...@gmail.com wrote: There is good TinyMCE component in wicket. http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-tinymce On Fri, Nov 6, 2009 at 3:13 PM, Muro Copenhagen copenha...@gmail.com wrote: Hi Has anyone any experience on using Wicket and the CKEditor ? Is there any Wicket integration to the CKEditor like the FCK Editor Java integration...? Best Regards Muro - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: RadioChoice showing last choosen value - what am i doing wrong
Hi Igor, The code did not work with even though the component was enabled. The equals and hashcode methods are implemented for the LabelValue. But instead of using my own Model implementation and managing the dynamic behaviour, i added a PropertyModel to the RadioChoice, and now it works perfectly. Here is the code, if someone should be interested: public class QuestionPanel extends Panel { private LabelValue selectedValue; radioChoice = new RadioChoice(radioChoice, new PropertyModel(this, selectedValue), yesNoList, new ChoiceRenderer(label, value)).setSuffix(); ... selectedValue = getPreviouslyChoosenLabelValue(); ... } Thanks for the response Igor... Best Regards Muro On Mon, Oct 12, 2009 at 5:06 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: does that code work if the component is not disabled? does LabelValue have equals/hashcode properly implemented so the one you push with setmodelobject will match one in the yesNoChoices collection? -igor On Mon, Oct 12, 2009 at 6:40 AM, Muro Copenhagen copenha...@gmail.com wrote: Hi, Any help on this issue regarding the RadioChoice component will be appreciated. I'm having difficiltius showing the (previously) selected RadioChoice, and can not figure out what's going wrong. Here is my code: public class QuestionRightPanel extends Panel { private String selectedValue; private RadioChoice radioChoice; ... public QuestionRightPanel() { ... radioChoice = new RadioChoice(radioChoice, new MyModel(), yesNoChoices, new ChoiceRenderer(label, value)).setSuffix(); ... selectedValue = getAlreadyChoosenValue(); if (questionAnswered) { radioChoice.setVisible(true); radioChoice.setEnabled(false); radioChoice.setModelObject(new LabelValue(convertYesNo(selectedValue), selectedValue)); } class MyModel extends Model { @Override public Object getObject() { return selectedValue; } @Override public void setObject(Serializable object) { if (object != null) { // set the yes-no value choosen. selectedValue = ((LabelValue) object).getValue(); } } } As seen i don't want the user to answer the question again by disabling the radioChoice if the question already has been answered. By why can't i set the default selected option to be the value i desire by the code: radioChoice.setModelObject(new LabelValue(convertYesNo(selectedValue), selectedValue)); Hope someone has the answer... Best Regards Muro - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RadioChoice showing last choosen value - what am i doing wrong
Hi, Any help on this issue regarding the RadioChoice component will be appreciated. I'm having difficiltius showing the (previously) selected RadioChoice, and can not figure out what's going wrong. Here is my code: public class QuestionRightPanel extends Panel { private String selectedValue; private RadioChoice radioChoice; ... public QuestionRightPanel() { ... radioChoice = new RadioChoice(radioChoice, new MyModel(), yesNoChoices, new ChoiceRenderer(label, value)).setSuffix(); ... selectedValue = getAlreadyChoosenValue(); if (questionAnswered) { radioChoice.setVisible(true); radioChoice.setEnabled(false); radioChoice.setModelObject(new LabelValue(convertYesNo(selectedValue), selectedValue)); } class MyModel extends Model { @Override public Object getObject() { return selectedValue; } @Override public void setObject(Serializable object) { if (object != null) { // set the yes-no value choosen. selectedValue = ((LabelValue) object).getValue(); } } } As seen i don't want the user to answer the question again by disabling the radioChoice if the question already has been answered. By why can't i set the default selected option to be the value i desire by the code: radioChoice.setModelObject(new LabelValue(convertYesNo(selectedValue), selectedValue)); Hope someone has the answer... Best Regards Muro
Re: Starting with Wicket, Spring, Maven and JDBC
Hi Pedro Try Appfuse-light with the desired combination: https://appfuse-light.dev.java.net/servlets/ProjectDocumentList?folderID=8006expandFolder=8006folderID=0 It should be at the bottom. Best Regards Muro On Thu, Sep 24, 2009 at 12:04 PM, Pedro Sena sena.pe...@gmail.com wrote: I'll check them Thanks Eric, On Wed, Sep 23, 2009 at 8:08 PM, Erik Post eriksen...@gmail.com wrote: Well, besides iolite, you could take a look at wicket-phonebook and wicketopia. They're not JDBC but they both come with Spring preconfigured. The phonebook has a couple of example DAO's and iBatis (among others) set up. You could take those as a starting point and 'add' JDBC. Cheers, Erik On Wed, Sep 23, 2009 at 11:33 PM, Pedro Sena sena.pe...@gmail.com wrote: Hi Guys, I'm new to Wicket with Spring(I never used Spring before, just Seam). I'm using lolite but it comes with JPA instead of JDBC. I would like to know if there is some archetype for the setup that I described in the title. I already checked wicket stuff if no luck. Thanks in advance, -- /** * Pedro Sena * Systems Architect * Sun Certified Java Programmer * Sun Certified Web Component Developer */ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- /** * Pedro Sena * Systems Architect * Sun Certified Java Programmer * Sun Certified Web Component Developer */
Regarding: HybridUrlCodingStrategy and session expired
Hi, I hope someone can help me on this issue. I have a payment page and receipt page. The receipt page invalidates the session, so user can't go back. Due to some external configuration i needed to use HybridUrlCodingStrategy to make sure that payment page has a url containing ...Secure. This way it would be caught by some setup we have, making the page secure. Before i used the HybridUrlCodingStrategy the goback button from the receipt page to the payment page would show me the session expired error. But since i have been using the HybridUrlCodingStrategy i get an error, because wicket is trying to process the payment page. The payment page and receipt page are non-bookmarkable, but the HybridUrlCodingStrategy consideres the page as bookmarkable. Could it be related to this..? Does anyone have an idea on what i am doing wrong, or what to do to fix this problem so i get the session expired when using goback button ? Best Regards Muro
Re: Help on wizard solution...
Hi John and Eyal Thanks, i appreciate the help you offer. I will get back to you if it should be necessecary :) Best Regards Muro On Wed, Sep 9, 2009 at 10:15 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Or have the complete definition on the database and use a factory approach to generate the steps and the content of the steps... That way you don't to hide/show anything but generate what you want, e.g. using repeaters, out of some predefined wizard defining grammar... Best, Ernesto On Wed, Sep 9, 2009 at 8:42 AM, Matthias Keller matthias.kel...@ergon.ch wrote: Hi Well, if you know of all the steps but there's only some small difference (like you said, Step 6 might be D or F), you might also consider a normal Wizard, but use the conditional step functionality. That way you would add ALL pages, but hide those that are not relevant. Hiding can also be done dynamically, for example if on the first step, option A is selected, step 6 is visible, else not. This is done in each step by overriding the evaluate() method. If it returns true, the step is displayed, if false, not. Matt John Armstrong wrote: I've done this in both DynamicWizards as well as regular wizards and can pass some code along if you need it. My rule of thumb is If you can gather all of the content together for your wizard use a regular wizard (eg: non-dependent configuration directives), if future wizard steps can change based on a specific wizard step then use a DynamicWizard (eg: If you pick A on Step 5 then Step 6 shows D, otherwise Step 6 shows F I have found that controlling backwards and forwards navigation in a dynamic wizard very difficult since you are responsible for all of the logic. John- On Tue, Sep 8, 2009 at 8:30 AM, Eyal Golanegola...@gmail.com wrote: I had some experience with what you need so i hope I could help you if you need something. I implemented the dynamic wizard and it was actually lots of fun :) Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary On Tue, Sep 8, 2009 at 5:51 PM, Muro Copenhagen copenha...@gmail.com wrote: Thanks Pedro and Peter, I'll try the DynamicWizardModel, it seems as the right choice. But a quick google search didn't provide any example, so i must try making it work. Hopefully it will... Best Regards Muro On Tue, Sep 8, 2009 at 4:35 PM, Pedro Santos pedros...@gmail.com wrote: I think the wizard is the correct approach... You can try use DynamicWizardModel on your wizard. javadoc: * Wizard model that is specialized on dynamic wizards. Unlike the default, static * {...@link WizardModel wizard model}, this model isn't very intelligent, but rather delegates much * of the work and knowledge to the {...@link IDynamicWizardStep dynamic wizard steps} it uses. on IDynamicWizardStep you can implement the ordering and navegation rules based on database and page params. On Tue, Sep 8, 2009 at 11:20 AM, Muro Copenhagen copenha...@gmail.com wrote: Hi, I could use some input on how to solve a problem i have. In my web-app i have some cases, and each cases have several questions. And i want the user to flow between the pages in a wizard manner like the example in: http://www.wicket-library.com/wicket-examples/wizard/ The only problem i have is that all the questions are database driven, and is not a fixed set of pages. But the wizard example is in the link is fixed. How would i make a dynamic database driven wizard, where the content of the wizard pages are database driven? Or is the wizard approach not the right way of doing it...? What i want to achieve is a user browsing through several question in case, with the option of moving backwards between the question. Any input from anyone ...? Best Regards Muro - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Help on wizard solution...
Thanks Pedro and Peter, I'll try the DynamicWizardModel, it seems as the right choice. But a quick google search didn't provide any example, so i must try making it work. Hopefully it will... Best Regards Muro On Tue, Sep 8, 2009 at 4:35 PM, Pedro Santos pedros...@gmail.com wrote: I think the wizard is the correct approach... You can try use DynamicWizardModel on your wizard. javadoc: * Wizard model that is specialized on dynamic wizards. Unlike the default, static * {...@link WizardModel wizard model}, this model isn't very intelligent, but rather delegates much * of the work and knowledge to the {...@link IDynamicWizardStep dynamic wizard steps} it uses. on IDynamicWizardStep you can implement the ordering and navegation rules based on database and page params. On Tue, Sep 8, 2009 at 11:20 AM, Muro Copenhagen copenha...@gmail.com wrote: Hi, I could use some input on how to solve a problem i have. In my web-app i have some cases, and each cases have several questions. And i want the user to flow between the pages in a wizard manner like the example in: http://www.wicket-library.com/wicket-examples/wizard/ The only problem i have is that all the questions are database driven, and is not a fixed set of pages. But the wizard example is in the link is fixed. How would i make a dynamic database driven wizard, where the content of the wizard pages are database driven? Or is the wizard approach not the right way of doing it...? What i want to achieve is a user browsing through several question in case, with the option of moving backwards between the question. Any input from anyone ...? Best Regards Muro
Help on wizard solution...
Hi, I could use some input on how to solve a problem i have. In my web-app i have some cases, and each cases have several questions. And i want the user to flow between the pages in a wizard manner like the example in: http://www.wicket-library.com/wicket-examples/wizard/ The only problem i have is that all the questions are database driven, and is not a fixed set of pages. But the wizard example is in the link is fixed. How would i make a dynamic database driven wizard, where the content of the wizard pages are database driven? Or is the wizard approach not the right way of doing it...? What i want to achieve is a user browsing through several question in case, with the option of moving backwards between the question. Any input from anyone ...? Best Regards Muro
Regarding AjaxEditableLabel and feedback
Hi, I have an issue with AjaxEditableLabel that i hope i can get some help with. In my application i have a couple of AjaxEditableLabel's. Though i am not interested in the default feature of AjaxEditableLabel. I want edit button and a save button, that switches automatically between the Label and TextInput mode for all the AjaxEditableLabel fields i have. I used AjaxFallbackLink to implement a save button and edit button, that switches between the Label and TextInput fields of the AjaxEditableLabel. And this works for me now. The only problem i have is that the feedback is not displaying unless i submit the form. It does not show when i switch between the modes. When i log the onError method in my instance of the AjaxEditableLabel, i can see that the error is caugth, but for some reason not displayed. Here is some of my code: MyAjaxEditableLabel adress = new MyAjaxEditableLabel(adress, new PropertyModel(wildcardProfil, adress.street)); add(adresse.setRequired(true)); FeedbackPanel adressFP = new NbFeedbackPanel(adress.feedback, new ContainerFeedbackMessageFilter(adress)); add(adressFP); And the AjaxFallbackLink's: class SaveAjaxFallbackLink extends AjaxFallbackLink { public void onClick(AjaxRequestTarget target) { if (target != null) { // shift visibility adress.makeEditorlVisible(true); adress.makeLabelVisible(false); target.addComponent(adress); ... } class EditAjaxFallbackLink extends AjaxFallbackLink { public void onClick(AjaxRequestTarget target) { if (target != null) { // shift visibility adress.makeEditorlVisible(true); adress.makeLabelVisible(false); target.addComponent(adress); ... } So when i click edit it should be in display mode, when click save it should save the content and go back to none-edit mode. But how do i get the feedback, when press the save button ? Hope someone can help me on this. Best Regards Cemil
Re: Using repeater depending on ajax enabled dropdown choice
Hi, I figured it out on my own. Sorry for the spam :) Best Regards Muro On Mon, Aug 31, 2009 at 10:15 AM, copenhag copenhagen copenha...@gmail.comwrote: Hi, I tried to implement a repeater(DataView) that should change depending on a dropdownchoice. I wanted the repeater to change right away, so i ajax enabled the dropdownchoice, but for some reason it does not work. Can anyone tell me what i am doing wrong, or does anyone have an sample on the mentioned behaviour? Here is my code: public class CategoryOverviewPage { ... DropDownChoice dropDownChoice = new MyDropDownChoice(categories, new MyModel(caseCategory), caseCategoryService.getAllWithExtraOption(), new ChoiceRenderer(category, id)); SortableCaseDataProvider dp = new MySortableCaseDataProvider(CaseCategory.DEFAULT_OPTION); DataView dataView = new MyDataView(sorting, dp); dataView.setOutputMarkupId(true); final WebMarkupContainer table = new WebMarkupContainer(table); table.add(dataView); table.setOutputMarkupId(true); form.add(tabel); // add ajax behavior to categories choice option dropDownChoice.add(new AjaxFormComponentUpdatingBehavior(onchange) { private static final long serialVersionUID = 4599145001919000272L; protected void onUpdate(AjaxRequestTarget target) { log.debug(Updating list by ajax); log.debug(CaseCategory + caseCategory); SortableCaseDataProvider myDp = new MySortableCaseDataProvider(caseCategory); DataView myDataView = new MyDataView(sorting, myDp); myDataView.setOutputMarkupId(true); WebMarkupContainer myTable = new WebMarkupContainer(table); myTable .add(myDataView); myTable.setOutputMarkupId(true); table.replaceWith(myTable); target.addComponent(table); } }); form.add(dropDownChoice); } So when user chooses a different category from the dropdown choice box, i try to replace the repater with a different one, that has the same id. I thought this should work... Best Regards Muro