Assistance required on WebSessions
Hi guys, I have a method getAllUsers(); that must be called when the session initializes and destroyed (i.e. call clear(); ) when the the user logs out OR the session expires, I need assistance on where to place the two methods ( getAllUsers() and clear() ) in the wicket application, the methods are spring injected. thanks, Kimotho.
Re: Assistance required on WebSessions
http://www.google.com/search?q=wicket+session+destroyed -- Jeremy Thomerson http://www.wickettraining.com On Fri, Apr 30, 2010 at 1:50 AM, Robert Kimotho kimot...@gmail.com wrote: Hi guys, I have a method getAllUsers(); that must be called when the session initializes and destroyed (i.e. call clear(); ) when the the user logs out OR the session expires, I need assistance on where to place the two methods ( getAllUsers() and clear() ) in the wicket application, the methods are spring injected. thanks, Kimotho.
Detecting Page Inactivity From Wicket
How can one know when the user has left the browser screen and has not been active for a while from client side Is there also a way to attach an event to browser page focus any tips
Re: DataView disappearing after AJAX update
Thanks alot Ernesto, exactly what I've been wanting, the dropdown no longer crashes when there is no data. Cheers, Kimotho. On Thu, Apr 29, 2010 at 4:39 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Kimotho, Following example works. package test.dataview; import java.io.Serializable; import java.util.ArrayList; import java.util.List; public class TestBean implements Serializable { private static final long serialVersionUID = 1L; public static final ListString CATEGORIES = new ArrayListString(); static { CATEGORIES.add(A); CATEGORIES.add(B); CATEGORIES.add(C); }; private static ListTestBean beans; String name; String category; public TestBean() { } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getCategory() { return category; } public void setCategory(String category) { this.category = category; } public static ListTestBean getBeans() { if(beans == null) { beans = new ArrayListTestBean(); for(String cat: new String[]{A,B}) for(int i=0; i10; i++) { TestBean bean = new TestBean(); bean.setCategory(cat); bean.setName(Name + cat + i); beans.add(bean); } } return beans; } } package test.dataview; import java.util.ArrayList; import java.util.List; import org.apache.wicket.markup.repeater.data.IDataProvider; import org.apache.wicket.model.IModel; import org.apache.wicket.model.Model; public class TestBeanDataProvider implements IDataProviderTestBean { private static final long serialVersionUID = 1L; private TestBean filter; private ListTestBean list; /** * */ public TestBeanDataProvider() { } public java.util.Iterator? extends TestBean iterator(int first, int count) { return getList().iterator(); }; public int size() { return getList().size(); } public IModelTestBean model(TestBean object) { return new ModelTestBean(object); } ListTestBean getList() { if(filter == null || filter.category == null) { return TestBean.getBeans(); } if(list == null) { list = new ArrayListTestBean(); for(TestBean bean: TestBean.getBeans()){ if(bean.category.equals(filter.category)) list.add(bean); } } return list; } public void detach() { list = null; }; public TestBean getFilter() { return filter; } public void setFilter(TestBean filter) { this.filter = filter; } } - package test.dataview; import org.apache.wicket.ajax.AjaxRequestTarget; import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior; import org.apache.wicket.markup.html.WebMarkupContainer; import org.apache.wicket.markup.html.basic.Label; import org.apache.wicket.markup.html.form.DropDownChoice; import org.apache.wicket.markup.html.form.Form; import org.apache.wicket.markup.html.panel.Panel; import org.apache.wicket.markup.repeater.Item; import org.apache.wicket.markup.repeater.data.DataView; import org.apache.wicket.model.Model; public class TestDataViewPanel extends Panel { private static final long serialVersionUID = 1L; private WebMarkupContainer toRepaint; private TestBean bean; private TestBeanDataProvider dataProvider; /** * Constructor that is invoked when page is invoked without a session. * * @param parameters *Page parameters */ public TestDataViewPanel(String id) { super(id); bean = new TestBean(); dataProvider = new TestBeanDataProvider(); toRepaint = new WebMarkupContainer(toRepaint); toRepaint.setOutputMarkupId(true); add(toRepaint); FormTestBean form = new FormTestBean(form); toRepaint.add(form); DropDownChoiceString category = new DropDownChoiceString(category, new ModelString() { private static final long serialVersionUID = 1L;
Re: DataView disappearing after AJAX update
You are welcome. Just an additional comment. On method public IModelTestBean model(TestBean object) { return new ModelTestBean(object); } of the DataProvider it might be better to return an LDM in order to keep page lightweight. Cheers, Ernesto On Fri, Apr 30, 2010 at 9:51 AM, Robert Kimotho kimot...@gmail.com wrote: Thanks alot Ernesto, exactly what I've been wanting, the dropdown no longer crashes when there is no data. Cheers, Kimotho. On Thu, Apr 29, 2010 at 4:39 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Kimotho, Following example works. package test.dataview; import java.io.Serializable; import java.util.ArrayList; import java.util.List; public class TestBean implements Serializable { private static final long serialVersionUID = 1L; public static final ListString CATEGORIES = new ArrayListString(); static { CATEGORIES.add(A); CATEGORIES.add(B); CATEGORIES.add(C); }; private static ListTestBean beans; String name; String category; public TestBean() { } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getCategory() { return category; } public void setCategory(String category) { this.category = category; } public static ListTestBean getBeans() { if(beans == null) { beans = new ArrayListTestBean(); for(String cat: new String[]{A,B}) for(int i=0; i10; i++) { TestBean bean = new TestBean(); bean.setCategory(cat); bean.setName(Name + cat + i); beans.add(bean); } } return beans; } } package test.dataview; import java.util.ArrayList; import java.util.List; import org.apache.wicket.markup.repeater.data.IDataProvider; import org.apache.wicket.model.IModel; import org.apache.wicket.model.Model; public class TestBeanDataProvider implements IDataProviderTestBean { private static final long serialVersionUID = 1L; private TestBean filter; private ListTestBean list; /** * */ public TestBeanDataProvider() { } public java.util.Iterator? extends TestBean iterator(int first, int count) { return getList().iterator(); }; public int size() { return getList().size(); } public IModelTestBean model(TestBean object) { return new ModelTestBean(object); } ListTestBean getList() { if(filter == null || filter.category == null) { return TestBean.getBeans(); } if(list == null) { list = new ArrayListTestBean(); for(TestBean bean: TestBean.getBeans()){ if(bean.category.equals(filter.category)) list.add(bean); } } return list; } public void detach() { list = null; }; public TestBean getFilter() { return filter; } public void setFilter(TestBean filter) { this.filter = filter; } } - package test.dataview; import org.apache.wicket.ajax.AjaxRequestTarget; import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior; import org.apache.wicket.markup.html.WebMarkupContainer; import org.apache.wicket.markup.html.basic.Label; import org.apache.wicket.markup.html.form.DropDownChoice; import org.apache.wicket.markup.html.form.Form; import org.apache.wicket.markup.html.panel.Panel; import org.apache.wicket.markup.repeater.Item; import org.apache.wicket.markup.repeater.data.DataView; import org.apache.wicket.model.Model; public class TestDataViewPanel extends Panel { private static final long serialVersionUID = 1L; private WebMarkupContainer toRepaint; private TestBean bean; private TestBeanDataProvider dataProvider; /** * Constructor that is invoked when page is invoked without a session. * * @param parameters * Page parameters */ public TestDataViewPanel(String id) { super(id); bean = new TestBean(); dataProvider = new TestBeanDataProvider(); toRepaint = new
Re: wicket:message attribute in regular html tags with child components
Hasn't anybody else been in this situation ? I finally checked it is necessary for a regular tag with a wicket:message attribute and with wicket component childs to be also a wicket component... Maybe it would be nice to have this information on the wiki page talking about the wicket:message attribute... This example would give the error: public class TestPage extends Page { public TestPage(){ add(new Label(childLabel, Sample text for the label)); } } html body table wicket:message=summary:anyResourceKey trtdspan wicket:id=childLabel/span/td/tr /table /body /html The only way I see to get around it is to : public class TestPage extends Page { public TestPage(){ WebMarkupContainer cont = new WebMarkupContainer(cont); add(cont); cont.add(new Label(childLabel, Sample text for the label)); } } html body table wicket:id=cont wicket:message=summary:anyResourceKey trtdspan wicket:id=childLabel/span/td/tr /table /body /html Cheers, Xavier 2010/4/29 Xavier López xavil...@gmail.com Yes, you are right, Wilhelmsen, and that's what Wicket is doing, I understand that correctly. The problem is, when I have a wicket component attached to that table tag. Wicket seems to treat that table as a component, with autogenerated wicket:id, and logically, expects the child components (in markup) to be added to it. I suppose I have to manually model that table into a wicket component (i.e. WebMarkupContainer) in order to be able to add those child components to it and let Wicket process the component hierarchy correctly... BTW, I just noticed I wrote the last message incorrectly: input type=text wicket:message=title:myresource/input Turns into input type=text title=Test Title/input Thanks, Xavier 2010/4/29 Wilhelmsen Tor Iver toriv...@arrive.no i meant where do you expect the localized message to be rendered into? if wicket:message is attached to the table tag? Well, since he is using the attribute version of wicket:message, I guess he expects the output from table wicket:message=summary:myresource to be table summary=localized message with key myresource - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
BreadCrumbPage struggle
Hi, I'm trying to implement a BreadCrumbPage What I did was to generate a BasePage, which has a BreadCrumbBar on it, and I subclass a startPage from it, which implements the IBreadCrumbParticipant interface. The BreadCrumbBar is passed as parameter to this new page, so that instead of creating the breadCrumbBar all again, I just say Add the passed one to the page. Furthermore I use a BreadCrumbBar.setActive(this) to add the StartPage to the BreadCrumbBar. in the onActivate method I do nothing at the moment. The problem is, that when running the page I get a StackOverflowError: The call order is the following: Session.getDirtyObjectsList dirtyPage Page.onDetach Component.detach BreadCrumbBar.onDetach Component.detach detachChildren Component.detach BreadCrumbBar.onDetach [...] For me this makes sense, since the BreadCrumbBar is a Child of the Page which is a Child of the BreadCrumbBar.(if I understood the implementation correctly) The Question is how to implement a BreadCrumbPage correctly? One option I was thinking of is to subclass BreadCrumbBar and override the onDetach method or to override the Components onDetach method. However, using a call to super() in one of the two methods will still result in the same problem. Any hints on this? Regards Wolf - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Detecting Page Inactivity From Wicket
Not being an expert in either Wicket, HTML or javascript/ajax, I would say this is not really a Wicket issue... If it is possible in Javascript/Ajax then it is possible with Wicket. Maybe this discussion can help: http://stackoverflow.com/questions/1060008/is-there-a-way-to-detect-if-a-browser-window-is-not-currently-active -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Detecting-Page-Inactivity-From-Wicket-tp2076570p2076714.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 Wiki
I've been seeing this for about 2 weeks, usually I just looked at the html page source to find the code. But if someone had a fix for this problem, it would be greatly appreciated! Natalie -Original Message- From: Martin Schayna [mailto:martin.scha...@abra.eu] Sent: Thursday, April 29, 2010 12:07 PM To: users@wicket.apache.org Subject: Re: Wicket Wiki It's problem only {code} segments in wiki pages :) Workaround: you can see hidden text by editing page -- but you have to register. Just click on Edit Page link, than on Preview tab. Martin Schayna On 29.4.2010 15:48, Brian Mulholland wrote: I must be in some minority given that the problem hasn't been noticed and fixed, but does anyone else have issues seeing the code example on the Wiki site? I have to view source and pick them out from the code in order to see them. The rest of the site renders fine, but those sections show up as thin blue lines (almost like customHRs). For example, I have attached a screenshot of what this page looks like in my browser (every page on the wiki with source code sections looks the same): https://cwiki.apache.org/WICKET/using-custom-converters.html At work I am using MSIE 6, but at home i use Google Chrome. They both do this. Any maintainers of the wiki on this list who might want to pass that along to someone who can fix the style sheet or whatever might be causing it? - 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: AjaxFallbackDefaultDataTable Model Not Updating
Is the solution to add AjaxFormComponentUpdatingBehavior/AjaxFormChoiceComponentUpdatingBehavior to each of the editable form components? -Original Message- From: Corbin, James [mailto:jcor...@iqnavigator.com] Sent: Thursday, April 29, 2010 4:42 PM To: users@wicket.apache.org Subject: AjaxFallbackDefaultDataTable Model Not Updating A co-worker of mine created an AjaxFallbackDefaultDataTable with editable cells. In this case they are dropdowns. She is dynamically adding rows to the table. If she modifies one of the component drop down (PropertyModel) values in one of the cells and then adds a new row, the changes she made to the previous row(s) are lost. She noticed that the setter method on the property is not called, but the getter is being called. I'm pretty sure that if she submits the form the model would get updated (normal form processing) and her changes would be persisted to the model, but how can she get the model to update without submitting the form? I seem to remember previous forum topics related to this issue, but couldn't remember the suggested solutions. Does the solution have to do with selecting a different ItemReuseStrategy? Thanks, J.D. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
mexico.com
Wicketeers, We at Vegas.com have been able to re-purpose our Wicket-based air/hotel search application and purchase/checkout application. This is the new Mexico.com. www.mexico.com Thank you again. The re-use of components and abstract pages was tremendous. Best, Scott - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: mexico.com
Great! Keep 'em coming. -- Jeremy Thomerson http://www.wickettraining.com On Fri, Apr 30, 2010 at 10:12 AM, Scott Swank scott.sw...@gmail.com wrote: Wicketeers, We at Vegas.com have been able to re-purpose our Wicket-based air/hotel search application and purchase/checkout application. This is the new Mexico.com. www.mexico.com Thank you again. The re-use of components and abstract pages was tremendous. Best, Scott - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: mexico.com
site looks great. i'm curious, how did you approach the stateless pages using Wicket? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/mexico-com-tp2077060p2077139.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: AjaxFallbackDefaultDataTable Model Not Updating
On Thu, Apr 29, 2010 at 3:42 PM, Corbin, James jcor...@iqnavigator.com wrote: A co-worker of mine created an AjaxFallbackDefaultDataTable with editable cells. In this case they are dropdowns. She is dynamically adding rows to the table. If she modifies one of the component drop down (PropertyModel) values in one of the cells and then adds a new row, the changes she made to the previous row(s) are lost. She noticed that the setter method on the property is not called, but the getter is being called. I'm pretty sure that if she submits the form the model would get updated (normal form processing) and her changes would be persisted to the model, but how can she get the model to update without submitting the form? I seem to remember previous forum topics related to this issue, but couldn't remember the suggested solutions. Does the solution have to do with selecting a different ItemReuseStrategy? yes, something that keeps the items around. also whatever button you use to add new rows or do any kind of request to the server has to be a submit button. -igor Thanks, J.D. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicket:message attribute in regular html tags with child components
wicket:message is not intended to be used on actual wicket components, only on raw markup. if you have a component then its trivial to add the localized attribute from code. remember, wicket prefers everything to be done from code. wicket:message exists because creating a markup container in code and adding the attribute that way is too noisy since the container would serve no other function. -igor On Fri, Apr 30, 2010 at 2:14 AM, Xavier López xavil...@gmail.com wrote: Hasn't anybody else been in this situation ? I finally checked it is necessary for a regular tag with a wicket:message attribute and with wicket component childs to be also a wicket component... Maybe it would be nice to have this information on the wiki page talking about the wicket:message attribute... This example would give the error: public class TestPage extends Page { public TestPage(){ add(new Label(childLabel, Sample text for the label)); } } html body table wicket:message=summary:anyResourceKey trtdspan wicket:id=childLabel/span/td/tr /table /body /html The only way I see to get around it is to : public class TestPage extends Page { public TestPage(){ WebMarkupContainer cont = new WebMarkupContainer(cont); add(cont); cont.add(new Label(childLabel, Sample text for the label)); } } html body table wicket:id=cont wicket:message=summary:anyResourceKey trtdspan wicket:id=childLabel/span/td/tr /table /body /html Cheers, Xavier 2010/4/29 Xavier López xavil...@gmail.com Yes, you are right, Wilhelmsen, and that's what Wicket is doing, I understand that correctly. The problem is, when I have a wicket component attached to that table tag. Wicket seems to treat that table as a component, with autogenerated wicket:id, and logically, expects the child components (in markup) to be added to it. I suppose I have to manually model that table into a wicket component (i.e. WebMarkupContainer) in order to be able to add those child components to it and let Wicket process the component hierarchy correctly... BTW, I just noticed I wrote the last message incorrectly: input type=text wicket:message=title:myresource/input Turns into input type=text title=Test Title/input Thanks, Xavier 2010/4/29 Wilhelmsen Tor Iver toriv...@arrive.no i meant where do you expect the localized message to be rendered into? if wicket:message is attached to the table tag? Well, since he is using the attribute version of wicket:message, I guess he expects the output from table wicket:message=summary:myresource to be table summary=localized message with key myresource - Tor Iver - 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: mexico.com
Thanks, though I was only involved early on with this project. Only the initial page is stateless, after that search results are in your session. On Fri, Apr 30, 2010 at 9:06 AM, robert.mcguinness robert.mcguinness@gmail.com wrote: site looks great. i'm curious, how did you approach the stateless pages using Wicket? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: mexico.com
Looks nice Scott. Job well done to the team there at Vegas.com. On Fri, Apr 30, 2010 at 9:30 AM, Scott Swank scott.sw...@gmail.com wrote: Thanks, though I was only involved early on with this project. Only the initial page is stateless, after that search results are in your session. On Fri, Apr 30, 2010 at 9:06 AM, robert.mcguinness robert.mcguinness@gmail.com wrote: site looks great. i'm curious, how did you approach the stateless pages using Wicket? - 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: mexico.com
Scott - can you provide any details on the hardware supporting mexico.com or vegas.com? On Fri, Apr 30, 2010 at 9:30 AM, Scott Swank scott.sw...@gmail.com wrote: Thanks, though I was only involved early on with this project. Only the initial page is stateless, after that search results are in your session. On Fri, Apr 30, 2010 at 9:06 AM, robert.mcguinness robert.mcguinness@gmail.com wrote: site looks great. i'm curious, how did you approach the stateless pages using Wicket? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: mexico.com
Thanks for sharing this, its going to be great help for us in convincing one of our travel related clients to trust Wicket! John- On Fri, Apr 30, 2010 at 9:36 AM, Carl Sziebert car...@gmail.com wrote: Looks nice Scott. Job well done to the team there at Vegas.com. On Fri, Apr 30, 2010 at 9:30 AM, Scott Swank scott.sw...@gmail.com wrote: Thanks, though I was only involved early on with this project. Only the initial page is stateless, after that search results are in your session. On Fri, Apr 30, 2010 at 9:06 AM, robert.mcguinness robert.mcguinness@gmail.com wrote: site looks great. i'm curious, how did you approach the stateless pages using Wicket? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: mexico.com
Well done! The site's working perfectly! Žilvinas Vilutis Mobile: (+370) 652 38353 E-mail: cika...@gmail.com On Fri, Apr 30, 2010 at 8:12 AM, Scott Swank scott.sw...@gmail.com wrote: Wicketeers, We at Vegas.com have been able to re-purpose our Wicket-based air/hotel search application and purchase/checkout application. This is the new Mexico.com. www.mexico.com Thank you again. The re-use of components and abstract pages was tremendous. Best, Scott - 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: mexico.com
A bit much informations especially if you open a details window. Question why is the avg of 7 times $316 = $315.24? $316$316$316$316$316$316$316$315.24 view total price javascript:void(0); Room Charges: $4,413.36 Taxes Fees: $337.68 (more info javascript:void(0);) Total Price: $4,751.04 Close Window javascript:void(0); Cheers Per
Wicket page test 1.4 is now available
Dear all, Wicket page test 1.4 is now available. It is a library allowing you to unit test your Wicket pages easily, supporting AJAX and Javascript without changes to your pages. New features implemented in this version: * Provide a super easy way to locate a DOM element with the Wicket ID. For example, to locate the input element generated by a TextField with wicket:id=productName, just use wicket=//productName as the locator. To locate such element in the 3rd form with wicket:id=myForm, use wicket=//myForm[3]//productName. Get it from maven as described in http://wicketpagetest.sourceforge.net/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Facebook XFBML friends invite
Hello Wicket community, I need help to use the multi-friend-selector to invite all friends in my application! I don't really see how to use it in wicket and i can't find the information i need... Could you help me? Maybe with an example! I want to use the default window = http://wiki.developers.facebook.com/index.php/Fb:multi-friend-selector Thank you! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Facebook-XFBML-friends-invite-tp2077335p2077335.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: Strict XHTML validation
Hi, I just came across this same issue... I was just wondering why the wicket:id attributes wouldn't pass validation? Isn't that what this xmlns:wicket is for? Thanks! Jamie -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Strict-XHTML-validation-tp1858650p2077664.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: Image Upload Using TinyMCE Within Wicket Framework
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 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) java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) 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