Re: 1.4.2 upgrade problem
I can confirm. I see the same exception after upgrade to 1.4.2 Regargds Roman On Mon, Oct 12, 2009 at 11:37 PM, Girts Ziemelis girts.zieme...@gmail.com wrote: Sorry about double post - I sent it first to the dev list accidentally :( I believe there is a bug in wicket 1.4.2, which stopped me from upgrading :( I have created issue for this (quickstart added): https://issues.apache.org/jira/browse/WICKET-2519 Finally I narrowed it down to adding following to quick start, which works fine in 1.4.1 and fails in 1.4.2: 2 lines to HomePage.html wicket:enclosurebr/a wicket:id=logoutwicket:message key=logout //a/wicket:enclosure wicket:enclosurea wicket:id=loginwicket:message key=login //a/wicket:enclosure 2 lines to HomePage.java add(new BookmarkablePageLinkVoid(logout, HomePage.class)); add(new BookmarkablePageLinkVoid(login, HomePage.class)); and HomePage.properties login=Login logout=Logout I get following stack trace WicketMessage: Could not find child with id: login in the wicket:enclosure Root cause: org.apache.wicket.WicketRuntimeException: Could not find child with id: login in the wicket:enclosure at org.apache.wicket.markup.html.internal.Enclosure.checkChildComponent(Enclosure.java:210) at org.apache.wicket.markup.html.internal.Enclosure.ensureAllChildrenPresent(Enclosure.java:249) at org.apache.wicket.markup.html.internal.Enclosure.onComponentTagBody(Enclosure.java:169) at org.apache.wicket.Component.renderComponent(Component.java:2626) at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512) at org.apache.wicket.Component.render(Component.java:2457) at org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:229) at org.apache.wicket.markup.resolver.EnclosureResolver.resolve(EnclosureResolver.java:61) at org.apache.wicket.markup.resolver.ComponentResolvers.resolve(ComponentResolvers.java:81) at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1418) at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1528) at org.apache.wicket.Page.onRender(Page.java:1545) at org.apache.wicket.Component.render(Component.java:2457) at org.apache.wicket.Page.renderPage(Page.java:914) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:262) at org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:105) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1258) 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:468) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:301) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:295) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:503) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:827) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:511) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:210) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:379) at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442) - 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
Website 2.0
We recently did a complete overhaul of our web site: reworked the graphics, refactoring, added some jQuery goodies and of course added lots of features. Wicket really continues to deliver! All in all it was a smooth operation. The complexity of the site continues to grow but we have managed to keep the codebase nice and tight with reusable components. I'm really proud of our work here so far. What ya think? http://jalbum.net // Daniel Frisk - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Getting Wicket Examples To Work On Latest Liferay Or Glassfish Web Space Server
Hi, I have successfuly deployed the wicket examples on apache jetspeed 2 with minimal or no configuration altering at all. I would like to try and deploy it on glassfish web space server however i'm encountering a problem in which When I try to add an application coming from liferay, nothing appears in the page that i'm trying to add a portlet too. I tried it also on the latest liferay community edition version 5.2.3 and get the same results. Is there anything I need to be able to have this working? I'm just trying to see if wicket will work on different portal servers. i'm trying to deploy the latest wicket example release which is 1.4.2 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Getting Wicket Examples To Work On Latest Liferay Or Glassfish Web Space Server
oops sorry i forgot to mention. i'm trying to make the portlets work by the way. On Tue, Oct 13, 2009 at 3:30 PM, Carlo Camerino carlo.camer...@gmail.com wrote: Hi, I have successfuly deployed the wicket examples on apache jetspeed 2 with minimal or no configuration altering at all. I would like to try and deploy it on glassfish web space server however i'm encountering a problem in which When I try to add an application coming from liferay, nothing appears in the page that i'm trying to add a portlet too. I tried it also on the latest liferay community edition version 5.2.3 and get the same results. Is there anything I need to be able to have this working? I'm just trying to see if wicket will work on different portal servers. i'm trying to deploy the latest wicket example release which is 1.4.2 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
quickstart page does not include 1.4.2 as a supported version
Hi, Quickstart [1] page does not include 1.4.2 as a supported version. Shall I create a JIRA issue for this? Best, Ernesto [1]-http://wicket.apache.org/quickstart.html
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
Re: 1.4.2 upgrade problem
try with latest from wicket-1.4.x branch. -igor On Mon, Oct 12, 2009 at 11:30 PM, Roman Ilin roman.i...@gmail.com wrote: I can confirm. I see the same exception after upgrade to 1.4.2 Regargds Roman On Mon, Oct 12, 2009 at 11:37 PM, Girts Ziemelis girts.zieme...@gmail.com wrote: Sorry about double post - I sent it first to the dev list accidentally :( I believe there is a bug in wicket 1.4.2, which stopped me from upgrading :( I have created issue for this (quickstart added): https://issues.apache.org/jira/browse/WICKET-2519 Finally I narrowed it down to adding following to quick start, which works fine in 1.4.1 and fails in 1.4.2: 2 lines to HomePage.html wicket:enclosurebr/a wicket:id=logoutwicket:message key=logout //a/wicket:enclosure wicket:enclosurea wicket:id=loginwicket:message key=login //a/wicket:enclosure 2 lines to HomePage.java add(new BookmarkablePageLinkVoid(logout, HomePage.class)); add(new BookmarkablePageLinkVoid(login, HomePage.class)); and HomePage.properties login=Login logout=Logout I get following stack trace WicketMessage: Could not find child with id: login in the wicket:enclosure Root cause: org.apache.wicket.WicketRuntimeException: Could not find child with id: login in the wicket:enclosure at org.apache.wicket.markup.html.internal.Enclosure.checkChildComponent(Enclosure.java:210) at org.apache.wicket.markup.html.internal.Enclosure.ensureAllChildrenPresent(Enclosure.java:249) at org.apache.wicket.markup.html.internal.Enclosure.onComponentTagBody(Enclosure.java:169) at org.apache.wicket.Component.renderComponent(Component.java:2626) at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512) at org.apache.wicket.Component.render(Component.java:2457) at org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:229) at org.apache.wicket.markup.resolver.EnclosureResolver.resolve(EnclosureResolver.java:61) at org.apache.wicket.markup.resolver.ComponentResolvers.resolve(ComponentResolvers.java:81) at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1418) at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1528) at org.apache.wicket.Page.onRender(Page.java:1545) at org.apache.wicket.Component.render(Component.java:2457) at org.apache.wicket.Page.renderPage(Page.java:914) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:262) at org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:105) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1258) 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:468) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:301) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:295) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:503) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:827) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:511) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:210) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:379) at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442) - 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: Website 2.0
Indeed: nice piece of work ! On Tue, Oct 13, 2009 at 10:01 AM, Juri Prokofiev proj...@gmail.com wrote: This is a really nice work. Amazing! How many human-hours have you spent for development? On Tue, Oct 13, 2009 at 9:54 AM, Daniel Frisk dan...@jalbum.net wrote: We recently did a complete overhaul of our web site: reworked the graphics, refactoring, added some jQuery goodies and of course added lots of features. Wicket really continues to deliver! All in all it was a smooth operation. The complexity of the site continues to grow but we have managed to keep the codebase nice and tight with reusable components. I'm really proud of our work here so far. What ya think? http://jalbum.net // Daniel Frisk - 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 -- Pieter Degraeuwe Systemworks bvba Belgiëlaan 61 9070 Destelbergen GSM: +32 (0)485/68.60.85 Email: pieter.degrae...@systemworks.be visit us at http://www.systemworks.be
How to organize pages layout in real world applications
Hi all, We'll plan to use wicket in our application for one enterprise's information management system. the app's portal layout is someting like this: --- | Header | --- | | | | | | |Nav| Client| | | | | | | | | | | | | | | | | | | | | | --- | footer | --- When we use Wicket's layout way -- Orgnized everything into one page using child, we found that it's reload everything ( header nav etc.) everytime when click links in client area. Is there a nice way organize those pages in a ajax partial refresh way? For example , Nav and client are all represent by a separated *independent* page, When click nav area, only refresh client area, (*Note* client area is represent by a client Page, not a panel). Thanks. Zenberg ding,zenberg.d...@gmail.com 2009-10-13
Re: Website 2.0
This is a really nice work. Amazing! How many human-hours have you spent for development? On Tue, Oct 13, 2009 at 9:54 AM, Daniel Frisk dan...@jalbum.net wrote: We recently did a complete overhaul of our web site: reworked the graphics, refactoring, added some jQuery goodies and of course added lots of features. Wicket really continues to deliver! All in all it was a smooth operation. The complexity of the site continues to grow but we have managed to keep the codebase nice and tight with reusable components. I'm really proud of our work here so far. What ya think? http://jalbum.net // Daniel Frisk - 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: inmethod datagrid and wicket 1.4 and generics
May I create a branch like inmethod-grid-1.0b4? This would help me in checking in intermediate steps and revert if I'm on the wrong way. Approx half of inmehtod grid is generic now. Stefan -Ursprüngliche Nachricht- Von: Matej Knopp [mailto:matej.kn...@gmail.com] Gesendet: Montag, 12. Oktober 2009 17:26 An: users@wicket.apache.org Cc: e...@shinsetsu.nl Betreff: Re: inmethod datagrid and wicket 1.4 and generics I think there is a datagrid project in wicket stuff jira. If you do any work (against current trunk - not 1.3) patch is always welcome. You can create a jira issue for it and attach it there. -Matej On Mon, Oct 12, 2009 at 5:24 PM, Stefan Lindner lind...@visionet.de wrote: Thenk you all for your replies! I found a hand full of mailing list entrys with hints for patches to make some classes generic. Are there any attempts to integrate them into the current trunk? I think a generic IGridColumn would be very handy. Should I start doing it? Stefan - 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
One inmethod datagrid question
Hi, First, thanks Matej for you job! Here is my question: I use the editable datagrid example, and I have added one column to permit deleting functionality. When one user click on delete a row, I modify my datasource, and call the getGrid().setDefaultModelObject(new DataSource ) function. This work fine, if I click in the paging navigation on page 2 and next, come back to the 1st, my datagrid is refreshed. How can I force the refresh directly without click in the navigation paging? PS: Not working with update() function. Thanks for help please.
Re: Website 2.0
Hi David, The website looks great ! Is the wicket application open source ? I think there's a small bug on https://jalbum.net/signup Maybe it's intentional, but I couldn't see why: the first two labels are both linked to the input with id=username li label for=usernameName/label input id=id139 name=name value= class=bigtxt sbox hint type=text div id=id13b class=feedback/div /li li label for=usernameUsername/label input id=username name=userName value= class=bigtxt sbox hint type=text div id=id13c class=feedback/div /li regards Maarten On Tue, Oct 13, 2009 at 10:23 AM, Pieter Degraeuwe pieter.degrae...@systemworks.be wrote: Indeed: nice piece of work ! On Tue, Oct 13, 2009 at 10:01 AM, Juri Prokofiev proj...@gmail.com wrote: This is a really nice work. Amazing! How many human-hours have you spent for development? On Tue, Oct 13, 2009 at 9:54 AM, Daniel Frisk dan...@jalbum.net wrote: We recently did a complete overhaul of our web site: reworked the graphics, refactoring, added some jQuery goodies and of course added lots of features. Wicket really continues to deliver! All in all it was a smooth operation. The complexity of the site continues to grow but we have managed to keep the codebase nice and tight with reusable components. I'm really proud of our work here so far. What ya think? http://jalbum.net // Daniel Frisk - 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 -- Pieter Degraeuwe Systemworks bvba Belgiëlaan 61 9070 Destelbergen GSM: +32 (0)485/68.60.85 Email: pieter.degrae...@systemworks.be visit us at http://www.systemworks.be
Re: Website 2.0
On Tue, Oct 13, 2009 at 11:56 AM, Maarten Bosteels mbosteels@gmail.comwrote: Hi David, oops, I meant Daniel :-) The website looks great ! Is the wicket application open source ? I think there's a small bug on https://jalbum.net/signup Maybe it's intentional, but I couldn't see why: the first two labels are both linked to the input with id=username li label for=usernameName/label input id=id139 name=name value= class=bigtxt sbox hint type=text div id=id13b class=feedback/div /li li label for=usernameUsername/label input id=username name=userName value= class=bigtxt sbox hint type=text div id=id13c class=feedback/div /li regards Maarten On Tue, Oct 13, 2009 at 10:23 AM, Pieter Degraeuwe pieter.degrae...@systemworks.be wrote: Indeed: nice piece of work ! On Tue, Oct 13, 2009 at 10:01 AM, Juri Prokofiev proj...@gmail.com wrote: This is a really nice work. Amazing! How many human-hours have you spent for development? On Tue, Oct 13, 2009 at 9:54 AM, Daniel Frisk dan...@jalbum.net wrote: We recently did a complete overhaul of our web site: reworked the graphics, refactoring, added some jQuery goodies and of course added lots of features. Wicket really continues to deliver! All in all it was a smooth operation. The complexity of the site continues to grow but we have managed to keep the codebase nice and tight with reusable components. I'm really proud of our work here so far. What ya think? http://jalbum.net // Daniel Frisk - 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 -- Pieter Degraeuwe Systemworks bvba Belgiëlaan 61 9070 Destelbergen GSM: +32 (0)485/68.60.85 Email: pieter.degrae...@systemworks.be visit us at http://www.systemworks.be
Re: inmethod datagrid and wicket 1.4 and generics
Sure. If you have commit access to wicket stuff feel free to branch the trunk. -Matej On Tue, Oct 13, 2009 at 10:24 AM, Stefan Lindner lind...@visionet.de wrote: May I create a branch like inmethod-grid-1.0b4? This would help me in checking in intermediate steps and revert if I'm on the wrong way. Approx half of inmehtod grid is generic now. Stefan -Ursprüngliche Nachricht- Von: Matej Knopp [mailto:matej.kn...@gmail.com] Gesendet: Montag, 12. Oktober 2009 17:26 An: users@wicket.apache.org Cc: e...@shinsetsu.nl Betreff: Re: inmethod datagrid and wicket 1.4 and generics I think there is a datagrid project in wicket stuff jira. If you do any work (against current trunk - not 1.3) patch is always welcome. You can create a jira issue for it and attach it there. -Matej On Mon, Oct 12, 2009 at 5:24 PM, Stefan Lindner lind...@visionet.de wrote: Thenk you all for your replies! I found a hand full of mailing list entrys with hints for patches to make some classes generic. Are there any attempts to integrate them into the current trunk? I think a generic IGridColumn would be very handy. Should I start doing it? Stefan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: One inmethod datagrid question
Why do you call getGrid().setDefaultModelObject() again? You should keep the same data source just let it output different data. -Matej 2009/10/13 François Jeunesse francois.jeune...@a-syst.com: Hi, First, thanks Matej for you job! Here is my question: I use the editable datagrid example, and I have added one column to permit deleting functionality. When one user click on delete a row, I modify my datasource, and call the ‘getGrid().setDefaultModelObject(new DataSource…)’ function. This work fine, if I click in the paging navigation on page 2 and next, come back to the 1st, my datagrid is refreshed. How can I force the refresh directly without click in the navigation paging? PS: Not working with update() function. Thanks for help please. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to organize pages layout in real world applications
You can write the links on Nav Page with target for Client page, and no ajax is needed 2009/10/13 Zenberg Ding zenberg.d...@gmail.com Hi all, We'll plan to use wicket in our application for one enterprise's information management system. the app's portal layout is someting like this: --- | Header | --- | | | | | | |Nav| Client| | | | | | | | | | | | | | | | | | | | | | --- | footer | --- When we use Wicket's layout way -- Orgnized everything into one page using child, we found that it's reload everything ( header nav etc.) everytime when click links in client area. Is there a nice way organize those pages in a ajax partial refresh way? For example , Nav and client are all represent by a separated *independent* page, When click nav area, only refresh client area, (*Note* client area is represent by a client Page, not a panel). Thanks. Zenberg ding,zenberg.d...@gmail.com 2009-10-13 -- Pedro Henrique Oliveira dos Santos
Re: Website 2.0
Thanks Maarten, I'd usually describe our software in general as three thirds. We have written 1/3 that is OS, 1/3 isn't open source (yet... because of various reasons) and 1/3 is other open source projects that we use. No parts of our web site itself is open source (yet). We could probably separate our package structure at some point with an open and a closed part. I'll let you know when it happens. Sharp-eyed spotting that bug, I should fix that. // Daniel jalbum.net On 2009-10-13, at 11:56, Maarten Bosteels wrote: Hi David, The website looks great ! Is the wicket application open source ? I think there's a small bug on https://jalbum.net/signup Maybe it's intentional, but I couldn't see why: the first two labels are both linked to the input with id=username li label for=usernameName/label input id=id139 name=name value= class=bigtxt sbox hint type=text div id=id13b class=feedback/div /li li label for=usernameUsername/label input id=username name=userName value= class=bigtxt sbox hint type=text div id=id13c class=feedback/div /li regards Maarten On Tue, Oct 13, 2009 at 10:23 AM, Pieter Degraeuwe pieter.degrae...@systemworks.be wrote: Indeed: nice piece of work ! On Tue, Oct 13, 2009 at 10:01 AM, Juri Prokofiev proj...@gmail.com wrote: This is a really nice work. Amazing! How many human-hours have you spent for development? On Tue, Oct 13, 2009 at 9:54 AM, Daniel Frisk dan...@jalbum.net wrote: We recently did a complete overhaul of our web site: reworked the graphics, refactoring, added some jQuery goodies and of course added lots of features. Wicket really continues to deliver! All in all it was a smooth operation. The complexity of the site continues to grow but we have managed to keep the codebase nice and tight with reusable components. I'm really proud of our work here so far. What ya think? http://jalbum.net // Daniel Frisk - 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 -- Pieter Degraeuwe Systemworks bvba Belgiëlaan 61 9070 Destelbergen GSM: +32 (0)485/68.60.85 Email: pieter.degrae...@systemworks.be visit us at http://www.systemworks.be - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Website 2.0
Thanks guys! We are really happy with the site, it's getting there! I have no idea how many human-hours we have spent. It have gone thru a first incarnation and then some incremental refinements and finally this overhaul that we recently did. ~1000 perhaps, maybe? :-) // Daniel jalbum.net On 2009-10-13, at 10:23, Pieter Degraeuwe wrote: Indeed: nice piece of work ! On Tue, Oct 13, 2009 at 10:01 AM, Juri Prokofiev proj...@gmail.com wrote: This is a really nice work. Amazing! How many human-hours have you spent for development? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to organize pages layout in real world applications
One way is to make your Client area a Wicket Panel and make your nav links extend AjaxLink (or AjaxFallbackLink), then add the Client Panel to the AjaxRequestTarget in your implemented AjaxLink.onClick(AjaxRequestTarget) method. Note, the components you add to the AjaxRequestTarget must have Component.setOutputMarkupId(true). See this code for an example: http://www.wicket-library.com/wicket-examples/ajax/links.1?wicket:bookmarkablePage=sources:org.apache.wicket.examples.source.SourcesPageSourcesPage_class=org.apache.wicket.examples.ajax.builtin.LinksPagesource=LinksPage.java You could also add other Wicket components to the AjaxRequestTarget that you want to see refreshed, such as the navigation. That depends on your design. -Richard 2009/10/13 Pedro Santos pedros...@gmail.com You can write the links on Nav Page with target for Client page, and no ajax is needed 2009/10/13 Zenberg Ding zenberg.d...@gmail.com Hi all, We'll plan to use wicket in our application for one enterprise's information management system. the app's portal layout is someting like this: --- | Header | --- | | | | | | |Nav| Client| | | | | | | | | | | | | | | | | | | | | | --- | footer | --- When we use Wicket's layout way -- Orgnized everything into one page using child, we found that it's reload everything ( header nav etc.) everytime when click links in client area. Is there a nice way organize those pages in a ajax partial refresh way? For example , Nav and client are all represent by a separated *independent* page, When click nav area, only refresh client area, (*Note* client area is represent by a client Page, not a panel). Thanks. Zenberg ding,zenberg.d...@gmail.com 2009-10-13 -- Pedro Henrique Oliveira dos Santos
Re: How to organize pages layout in real world applications
Also, this explains the example: http://wicket.apache.org/exampleajaxcounter.html 2009/10/13 Richard Allen richard.l.al...@gmail.com One way is to make your Client area a Wicket Panel and make your nav links extend AjaxLink (or AjaxFallbackLink), then add the Client Panel to the AjaxRequestTarget in your implemented AjaxLink.onClick(AjaxRequestTarget) method. Note, the components you add to the AjaxRequestTarget must have Component.setOutputMarkupId(true). See this code for an example: http://www.wicket-library.com/wicket-examples/ajax/links.1?wicket:bookmarkablePage=sources:org.apache.wicket.examples.source.SourcesPageSourcesPage_class=org.apache.wicket.examples.ajax.builtin.LinksPagesource=LinksPage.java You could also add other Wicket components to the AjaxRequestTarget that you want to see refreshed, such as the navigation. That depends on your design. -Richard 2009/10/13 Pedro Santos pedros...@gmail.com You can write the links on Nav Page with target for Client page, and no ajax is needed 2009/10/13 Zenberg Ding zenberg.d...@gmail.com Hi all, We'll plan to use wicket in our application for one enterprise's information management system. the app's portal layout is someting like this: --- | Header | --- | | | | | | |Nav| Client| | | | | | | | | | | | | | | | | | | | | | --- | footer | --- When we use Wicket's layout way -- Orgnized everything into one page using child, we found that it's reload everything ( header nav etc.) everytime when click links in client area. Is there a nice way organize those pages in a ajax partial refresh way? For example , Nav and client are all represent by a separated *independent* page, When click nav area, only refresh client area, (*Note* client area is represent by a client Page, not a panel). Thanks. Zenberg ding,zenberg.d...@gmail.com 2009-10-13 -- Pedro Henrique Oliveira dos Santos
Re: FileUploadField blocks component submission when an empty file is selected
igor.vaynberg wrote: weird, you will have to debug and see what is happening. a good place to start is Form#onFormSubmitted() -igor Thanks for the tip, Igor. I have tried this, and my Form#onFormSubmitted() method is only called if the FileUploadField field does not have an empty file selected. However, I have found that my results depend on the internet browser used. Using Mozilla Firefox (Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)) I get the blocking activity that I have already described (form submission requests by submit components do not result in component or form submission). Using Microsoft Internet Explorer 8 (version 8.0.6001.18702) all works fine and an empty file does not block processing in any way. I shall have to proceed, but I do not know whether my problem is a true bug of Wicket or not. I have tried file upload components from other web sites on Firefox and this problem does not arise. I am not a developer of the Wicket framework. Is there any way I can submit this behaviour as a potential bug for someone else to verify or not? Thanks again for your questions and pointers anyway. Ian Marshall -- View this message in context: http://www.nabble.com/FileUploadField-blocks-component-submission-when-an-empty-file-is-selected-tp25855504p25871355.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: FileUpload and events
On Fri, 2009-10-09 at 09:19 +0200, Thorsten Scherler wrote: Hi all, I am implementing a form where I need to upload 2 different files. I want to block the second upload until the user added the first file and I validated on the server. In my Java code I have: fileUploadFieldSello = new FileUploadField(fileUploadFieldSello); fileUploadFieldSello.setRequired(true); AjaxFormComponentUpdatingBehavior update = new AjaxFormComponentUpdatingBehavior( onchange) { @Override protected void onUpdate(AjaxRequestTarget target) { // Here goes the call to my business logic for validation System.out.println(onchange event triggered); fileUploadFieldPdf.setEnabled(true); fileUploadFieldSello.setEnabled(false); target.addComponent(fileUploadFieldPdf); } }; fileUploadFieldSello.add(update); // Add one file input field (sello) add(fileUploadFieldSello); ... Now in my html I have: form wicket:id=ajax-simpleUpload fieldset legendValidación/legend p label for=uploadSello/label input wicket:id=fileUploadFieldSello id=uploadSello type=file/ /p p label for=uploadPDF/label input wicket:id=fileUploadFieldPdf id=uploadPdf type=file/ /p input type=submit value=Validate/ span wicket:id=progress[[ajax upload progressbar]]/span /fieldset /form My problem is that the onchange event seems to never got triggered. This raises the question whether I need to trigger another event? Further somebody knows a good tool to see which the input typefile element is triggering when I select a file? TIA for any infos. Nobody any tips or infos? salu2 -- Thorsten Scherler thorsten.at.apache.org Open Source Java consulting, training and solutions Sociedad Andaluza para el Desarrollo de la Sociedad de la Información, S.A.U. (SADESI) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: inmethod datagrid and wicket 1.4 and generics
Hello Matej, I have created https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/inmethod-grid-generic an made most of the public Interfaces and classes generic. I have generified most parts of the examples too. It would be nice to get any feedback from you. Stefan -Ursprüngliche Nachricht- Von: Matej Knopp [mailto:matej.kn...@gmail.com] Gesendet: Dienstag, 13. Oktober 2009 12:08 An: users@wicket.apache.org Betreff: Re: inmethod datagrid and wicket 1.4 and generics Sure. If you have commit access to wicket stuff feel free to branch the trunk. -Matej On Tue, Oct 13, 2009 at 10:24 AM, Stefan Lindner lind...@visionet.de wrote: May I create a branch like inmethod-grid-1.0b4? This would help me in checking in intermediate steps and revert if I'm on the wrong way. Approx half of inmehtod grid is generic now. Stefan -Ursprüngliche Nachricht- Von: Matej Knopp [mailto:matej.kn...@gmail.com] Gesendet: Montag, 12. Oktober 2009 17:26 An: users@wicket.apache.org Cc: e...@shinsetsu.nl Betreff: Re: inmethod datagrid and wicket 1.4 and generics I think there is a datagrid project in wicket stuff jira. If you do any work (against current trunk - not 1.3) patch is always welcome. You can create a jira issue for it and attach it there. -Matej On Mon, Oct 12, 2009 at 5:24 PM, Stefan Lindner lind...@visionet.de wrote: Thenk you all for your replies! I found a hand full of mailing list entrys with hints for patches to make some classes generic. Are there any attempts to integrate them into the current trunk? I think a generic IGridColumn would be very handy. Should I start doing it? Stefan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Could someone please give me access to the wicketstuff wiki front page?
Hi all, I created a page on the wicketstuff wiki for Inmethod's data grid yesterday. [1] Could someone give me the appropriate permissions to link it on wicketstuff's front page? Alternatively, someone with access could perhaps do it himself... Thanks, Erik [1] http://wicketstuff.org/confluence/display/STUFFWIKI/Inmethod+Grid - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Could someone please give me access to the wicketstuff wiki front page?
Hi Erik, it is just apply some label to your page, and it goes to wiki page. I add the 'component' one, hope that help. http://wicketstuff.org/confluence/display/STUFFWIKI/Wiki On Tue, Oct 13, 2009 at 9:23 AM, Erik Post eriksen...@gmail.com wrote: Hi all, I created a page on the wicketstuff wiki for Inmethod's data grid yesterday. [1] Could someone give me the appropriate permissions to link it on wicketstuff's front page? Alternatively, someone with access could perhaps do it himself... Thanks, Erik [1] http://wicketstuff.org/confluence/display/STUFFWIKI/Inmethod+Grid - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Pedro Henrique Oliveira dos Santos
RE: One inmethod datagrid question
I think I'm doing it in the bad way. Should I get my data source with DataSource myDataSource = getGrid().getDefaultModel(); And after delete the deleted row with something like myDataSource.delete(id); And what next? Can you give me an example please? Thanks -Original Message- From: Matej Knopp [mailto:matej.kn...@gmail.com] Sent: mardi 13 octobre 2009 12:21 To: users@wicket.apache.org Subject: Re: One inmethod datagrid question Why do you call getGrid().setDefaultModelObject() again? You should keep the same data source just let it output different data. -Matej 2009/10/13 François Jeunesse francois.jeune...@a-syst.com: Hi, First, thanks Matej for you job! Here is my question: I use the editable datagrid example, and I have added one column to permit deleting functionality. When one user click on delete a row, I modify my datasource, and call the getGrid().setDefaultModelObject(new DataSource ) function. This work fine, if I click in the paging navigation on page 2 and next, come back to the 1st, my datagrid is refreshed. How can I force the refresh directly without click in the navigation paging? PS: Not working with update() function. Thanks for help please. - 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: FileUpload and events
Thorsten Scherler-3 wrote: Nobody any tips or infos? salu2 In the source code for the org.apache.wicket.markup.html.form.upload.FileUploadField class there is the class-level comment FILE UPLOADS ARE NOT SUPPORTED BY AJAX. USE GOOGLE TO LEARN MORE ABOUT THIS. I am no expert on the FileUploadField class (you can see my post earlier today about that!), but this might have a bearing on your lack of AJAX on-change behaviour. Ian Marshall -- View this message in context: http://www.nabble.com/FileUpload-and-events-tp25816532p25872841.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
Multirequest Feedback
Hi, i use ajax-listeners to validate formcomponents onblur or onkeychanged. an ajax-event will processed and the validationmessage displyed on screen. works fine for one component. when i've more than one there is only the message for the last processed formcomponent. the other's will removed from session. but i want display the messages of all unvalid components on page. thanks a lot alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Multirequest Feedback
you have many form components and only one feedback panel - user put invalid entry on form component 1, panel show error 1 - user put invalid entry on form component 2, panel show error 2, no longer error 1 this is it? 1 - you can create one ComponentFeedbackPanel for each form component 2 - you can validate the form on submit, and all errors will to be presented at once 3 - any other On Tue, Oct 13, 2009 at 10:26 AM, Alexander Elsholz alexander.elsh...@widas.de wrote: Hi, i use ajax-listeners to validate formcomponents onblur or onkeychanged. an ajax-event will processed and the validationmessage displyed on screen. works fine for one component. when i've more than one there is only the message for the last processed formcomponent. the other's will removed from session. but i want display the messages of all unvalid components on page. thanks a lot alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Pedro Henrique Oliveira dos Santos
Many forms on one page and submit handling
Hi, I have one Form-Class which has one main form -- in this form I've got some more forms. Each of them has their own submit button. How can I tell wicket, that it only has to render (validation and so on) only for the form, where the button was pressed? thanks! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Many forms on one page and submit handling
you can add an ComponentFeedbackPanel for each form On Tue, Oct 13, 2009 at 10:39 AM, Peter Arnulf Lustig u...@yahoo.dewrote: Hi, I have one Form-Class which has one main form -- in this form I've got some more forms. Each of them has their own submit button. How can I tell wicket, that it only has to render (validation and so on) only for the form, where the button was pressed? thanks! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Pedro Henrique Oliveira dos Santos
AW: Many forms on one page and submit handling
yes I do it like that. But nevertheless it shows the messages everywhere on each form. check this out: public class CreateQuestionsForm extends Form { TextFieldStringtitle; TextAreaStringfragestellung; ModelStringtitleModel; ModelStringfragestellungModel; BooleanisUpdate= false; Questionq; ModelStringsystemTagModel; // Tag TextFieldStringsystemTag; LinksystemTagAdd; public CreateQuestionsForm(String id) { super(id); titleModel = Model.of(); fragestellungModel = Model.of(); title = new RequiredTextFieldString(title, titleModel); fragestellung = new TextAreaString(fragestellung, fragestellungModel); add(title); add(fragestellung); // -- Biete Möglichkeit für Tag-Erstellung Form form = new Form(systemTagForm) { @Override protected void onSubmit() { Tagging t = new Tagging(); t.setTitle(systemTagModel.getObject()); Worker.SaveTagging(t); } }; FeedbackPanel feedbackPanel = new FeedbackPanel(systemTagFormFeedbackPanel); feedbackPanel.setFilter(new ContainerFeedbackMessageFilter(form)); systemTagModel = Model.of(); systemTag = new RequiredTextFieldString(systemTag, systemTagModel); add(form.add(feedbackPanel).add(systemTag)); } public void setUpdate(Question q) { isUpdate = true; this.q = q; title.setModel(Model.of(q.getTitle())); fragestellung.setModel(Model.of(q.getText())); q.setSysTimestamp(new Date()); } @Override protected void onSubmit() { try { if (!isUpdate) { q = new Question(); } q.setText(fragestellung.getDefaultModelObjectAsString()); q.setTitle(title.getDefaultModelObjectAsString()); if (!isUpdate) { Worker.SaveQuestion(q); } else { Worker.UpdateQuestion(q); } info(Frage gespeichert); } catch (Exception e) { error(Jemand hat diesen Datensatz schneller editiert als du und hat somit gewonnen. Lade den Datensatz über die Liste neu!); } } } - Ursprüngliche Mail Von: Pedro Santos pedros...@gmail.com An: users@wicket.apache.org Gesendet: Dienstag, den 13. Oktober 2009, 15:44:07 Uhr Betreff: Re: Many forms on one page and submit handling you can add an ComponentFeedbackPanel for each form On Tue, Oct 13, 2009 at 10:39 AM, Peter Arnulf Lustig u...@yahoo.dewrote: Hi, I have one Form-Class which has one main form -- in this form I've got some more forms. Each of them has their own submit button. How can I tell wicket, that it only has to render (validation and so on) only for the form, where the button was pressed? thanks! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Pedro Henrique Oliveira dos Santos - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Multirequest Feedback
hi pedro, Pedro Santos pedrosans at gmail.com writes: you have many form components and only one feedback panel - user put invalid entry on form component 1, panel show error 1 - user put invalid entry on form component 2, panel show error 2, no longer error 1 this is it? that's it 1 - you can create one ComponentFeedbackPanel for each form component 2 - you can validate the form on submit, and all errors will to be presented at once for one form. when there are more than one form on page - only messages of last submitted form will displayed 3 - any other that's what i'm looking for. a way to display all validiationmessages of invalid forms on page. thanks alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Many forms on one page and submit handling
looks like you need to use ComponentFeedbackMessageFilter rather than ContainerFeedbackMessageFilter On Tue, Oct 13, 2009 at 10:46 AM, Peter Arnulf Lustig u...@yahoo.dewrote: yes I do it like that. But nevertheless it shows the messages everywhere on each form. check this out: public class CreateQuestionsForm extends Form { TextFieldStringtitle; TextAreaStringfragestellung; ModelStringtitleModel; ModelStringfragestellungModel; BooleanisUpdate= false; Questionq; ModelStringsystemTagModel; // Tag TextFieldStringsystemTag; LinksystemTagAdd; public CreateQuestionsForm(String id) { super(id); titleModel = Model.of(); fragestellungModel = Model.of(); title = new RequiredTextFieldString(title, titleModel); fragestellung = new TextAreaString(fragestellung, fragestellungModel); add(title); add(fragestellung); // -- Biete Möglichkeit für Tag-Erstellung Form form = new Form(systemTagForm) { @Override protected void onSubmit() { Tagging t = new Tagging(); t.setTitle(systemTagModel.getObject()); Worker.SaveTagging(t); } }; FeedbackPanel feedbackPanel = new FeedbackPanel(systemTagFormFeedbackPanel); feedbackPanel.setFilter(new ContainerFeedbackMessageFilter(form)); systemTagModel = Model.of(); systemTag = new RequiredTextFieldString(systemTag, systemTagModel); add(form.add(feedbackPanel).add(systemTag)); } public void setUpdate(Question q) { isUpdate = true; this.q = q; title.setModel(Model.of(q.getTitle())); fragestellung.setModel(Model.of(q.getText())); q.setSysTimestamp(new Date()); } @Override protected void onSubmit() { try { if (!isUpdate) { q = new Question(); } q.setText(fragestellung.getDefaultModelObjectAsString()); q.setTitle(title.getDefaultModelObjectAsString()); if (!isUpdate) { Worker.SaveQuestion(q); } else { Worker.UpdateQuestion(q); } info(Frage gespeichert); } catch (Exception e) { error(Jemand hat diesen Datensatz schneller editiert als du und hat somit gewonnen. Lade den Datensatz über die Liste neu!); } } } - Ursprüngliche Mail Von: Pedro Santos pedros...@gmail.com An: users@wicket.apache.org Gesendet: Dienstag, den 13. Oktober 2009, 15:44:07 Uhr Betreff: Re: Many forms on one page and submit handling you can add an ComponentFeedbackPanel for each form On Tue, Oct 13, 2009 at 10:39 AM, Peter Arnulf Lustig u...@yahoo.de wrote: Hi, I have one Form-Class which has one main form -- in this form I've got some more forms. Each of them has their own submit button. How can I tell wicket, that it only has to render (validation and so on) only for the form, where the button was pressed? thanks! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Pedro Henrique Oliveira dos Santos - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Pedro Henrique Oliveira dos Santos
Re: [ANN] wicket-dnd project
Thanks Sven! Got it working. -- View this message in context: http://www.nabble.com/-ANN--wicket-dnd-project-tp25727819p25873355.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: Multirequest Feedback
you can create one ComponentFeedbackPanel for each form and use only ajax submit buttons or links, it will to keep error mesagens on page. On Tue, Oct 13, 2009 at 10:51 AM, Alexander Elsholz alexander.elsh...@widas.de wrote: hi pedro, Pedro Santos pedrosans at gmail.com writes: you have many form components and only one feedback panel - user put invalid entry on form component 1, panel show error 1 - user put invalid entry on form component 2, panel show error 2, no longer error 1 this is it? that's it 1 - you can create one ComponentFeedbackPanel for each form component 2 - you can validate the form on submit, and all errors will to be presented at once for one form. when there are more than one form on page - only messages of last submitted form will displayed 3 - any other that's what i'm looking for. a way to display all validiationmessages of invalid forms on page. thanks alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Pedro Henrique Oliveira dos Santos
AW: Many forms on one page and submit handling
no, that does not work. Now it shows nothing. - Ursprüngliche Mail Von: Pedro Santos pedros...@gmail.com An: users@wicket.apache.org Gesendet: Dienstag, den 13. Oktober 2009, 15:54:59 Uhr Betreff: Re: Many forms on one page and submit handling looks like you need to use ComponentFeedbackMessageFilter rather than ContainerFeedbackMessageFilter On Tue, Oct 13, 2009 at 10:46 AM, Peter Arnulf Lustig u...@yahoo.dewrote: yes I do it like that. But nevertheless it shows the messages everywhere on each form. check this out: public class CreateQuestionsForm extends Form { TextFieldStringtitle; TextAreaStringfragestellung; ModelStringtitleModel; ModelStringfragestellungModel; BooleanisUpdate= false; Questionq; ModelStringsystemTagModel; // Tag TextFieldStringsystemTag; LinksystemTagAdd; public CreateQuestionsForm(String id) { super(id); titleModel = Model.of(); fragestellungModel = Model.of(); title = new RequiredTextFieldString(title, titleModel); fragestellung = new TextAreaString(fragestellung, fragestellungModel); add(title); add(fragestellung); // -- Biete Möglichkeit für Tag-Erstellung Form form = new Form(systemTagForm) { @Override protected void onSubmit() { Tagging t = new Tagging(); t.setTitle(systemTagModel.getObject()); Worker.SaveTagging(t); } }; FeedbackPanel feedbackPanel = new FeedbackPanel(systemTagFormFeedbackPanel); feedbackPanel.setFilter(new ContainerFeedbackMessageFilter(form)); systemTagModel = Model.of(); systemTag = new RequiredTextFieldString(systemTag, systemTagModel); add(form.add(feedbackPanel).add(systemTag)); } public void setUpdate(Question q) { isUpdate = true; this.q = q; title.setModel(Model.of(q.getTitle())); fragestellung.setModel(Model.of(q.getText())); q.setSysTimestamp(new Date()); } @Override protected void onSubmit() { try { if (!isUpdate) { q = new Question(); } q.setText(fragestellung.getDefaultModelObjectAsString()); q.setTitle(title.getDefaultModelObjectAsString()); if (!isUpdate) { Worker.SaveQuestion(q); } else { Worker.UpdateQuestion(q); } info(Frage gespeichert); } catch (Exception e) { error(Jemand hat diesen Datensatz schneller editiert als du und hat somit gewonnen. Lade den Datensatz über die Liste neu!); } } } - Ursprüngliche Mail Von: Pedro Santos pedros...@gmail.com An: users@wicket.apache.org Gesendet: Dienstag, den 13. Oktober 2009, 15:44:07 Uhr Betreff: Re: Many forms on one page and submit handling you can add an ComponentFeedbackPanel for each form On Tue, Oct 13, 2009 at 10:39 AM, Peter Arnulf Lustig u...@yahoo.de wrote: Hi, I have one Form-Class which has one main form -- in this form I've got some more forms. Each of them has their own submit button. How can I tell wicket, that it only has to render (validation and so on) only for the form, where the button was pressed? thanks! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Pedro Henrique Oliveira dos Santos - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Pedro Henrique Oliveira dos Santos - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Many forms on one page and submit handling
see if that make sense on your project: onError(ajaxrequesttarget target){ target.addcomponent(feedbackPanelForTheFormIamSubmitting ) } On Tue, Oct 13, 2009 at 11:30 AM, Peter Arnulf Lustig u...@yahoo.dewrote: no, that does not work. Now it shows nothing. - Ursprüngliche Mail Von: Pedro Santos pedros...@gmail.com An: users@wicket.apache.org Gesendet: Dienstag, den 13. Oktober 2009, 15:54:59 Uhr Betreff: Re: Many forms on one page and submit handling looks like you need to use ComponentFeedbackMessageFilter rather than ContainerFeedbackMessageFilter On Tue, Oct 13, 2009 at 10:46 AM, Peter Arnulf Lustig u...@yahoo.de wrote: yes I do it like that. But nevertheless it shows the messages everywhere on each form. check this out: public class CreateQuestionsForm extends Form { TextFieldStringtitle; TextAreaStringfragestellung; ModelStringtitleModel; ModelStringfragestellungModel; BooleanisUpdate= false; Questionq; ModelStringsystemTagModel; // Tag TextFieldStringsystemTag; LinksystemTagAdd; public CreateQuestionsForm(String id) { super(id); titleModel = Model.of(); fragestellungModel = Model.of(); title = new RequiredTextFieldString(title, titleModel); fragestellung = new TextAreaString(fragestellung, fragestellungModel); add(title); add(fragestellung); // -- Biete Möglichkeit für Tag-Erstellung Form form = new Form(systemTagForm) { @Override protected void onSubmit() { Tagging t = new Tagging(); t.setTitle(systemTagModel.getObject()); Worker.SaveTagging(t); } }; FeedbackPanel feedbackPanel = new FeedbackPanel(systemTagFormFeedbackPanel); feedbackPanel.setFilter(new ContainerFeedbackMessageFilter(form)); systemTagModel = Model.of(); systemTag = new RequiredTextFieldString(systemTag, systemTagModel); add(form.add(feedbackPanel).add(systemTag)); } public void setUpdate(Question q) { isUpdate = true; this.q = q; title.setModel(Model.of(q.getTitle())); fragestellung.setModel(Model.of(q.getText())); q.setSysTimestamp(new Date()); } @Override protected void onSubmit() { try { if (!isUpdate) { q = new Question(); } q.setText(fragestellung.getDefaultModelObjectAsString()); q.setTitle(title.getDefaultModelObjectAsString()); if (!isUpdate) { Worker.SaveQuestion(q); } else { Worker.UpdateQuestion(q); } info(Frage gespeichert); } catch (Exception e) { error(Jemand hat diesen Datensatz schneller editiert als du und hat somit gewonnen. Lade den Datensatz über die Liste neu!); } } } - Ursprüngliche Mail Von: Pedro Santos pedros...@gmail.com An: users@wicket.apache.org Gesendet: Dienstag, den 13. Oktober 2009, 15:44:07 Uhr Betreff: Re: Many forms on one page and submit handling you can add an ComponentFeedbackPanel for each form On Tue, Oct 13, 2009 at 10:39 AM, Peter Arnulf Lustig u...@yahoo.de wrote: Hi, I have one Form-Class which has one main form -- in this form I've got some more forms. Each of them has their own submit button. How can I tell wicket, that it only has to render (validation and so on) only for the form, where the button was pressed? thanks! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Pedro Henrique Oliveira dos Santos - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Pedro Henrique Oliveira dos Santos - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Pedro Henrique Oliveira dos Santos
Re: quickstart page does not include 1.4.2 as a supported version
fixed, thanks. should show up in a couple of hours when the site syncs. -igor On Tue, Oct 13, 2009 at 12:54 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Hi, Quickstart [1] page does not include 1.4.2 as a supported version. Shall I create a JIRA issue for this? Best, Ernesto [1]-http://wicket.apache.org/quickstart.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: FileUploadField blocks component submission when an empty file is selected
sure, you can create a quickstart that reproduces this and attach it to a jira issue. -igor On Tue, Oct 13, 2009 at 4:44 AM, Ian Marshall general.ianmarshall...@gmail.com wrote: igor.vaynberg wrote: weird, you will have to debug and see what is happening. a good place to start is Form#onFormSubmitted() -igor Thanks for the tip, Igor. I have tried this, and my Form#onFormSubmitted() method is only called if the FileUploadField field does not have an empty file selected. However, I have found that my results depend on the internet browser used. Using Mozilla Firefox (Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)) I get the blocking activity that I have already described (form submission requests by submit components do not result in component or form submission). Using Microsoft Internet Explorer 8 (version 8.0.6001.18702) all works fine and an empty file does not block processing in any way. I shall have to proceed, but I do not know whether my problem is a true bug of Wicket or not. I have tried file upload components from other web sites on Firefox and this problem does not arise. I am not a developer of the Wicket framework. Is there any way I can submit this behaviour as a potential bug for someone else to verify or not? Thanks again for your questions and pointers anyway. Ian Marshall -- View this message in context: http://www.nabble.com/FileUploadField-blocks-component-submission-when-an-empty-file-is-selected-tp25855504p25871355.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: quickstart page does not include 1.4.2 as a supported version
Thanks to you and the rest of the Wicket team! Ernesto P.S. Isn't there a way to automate this so that whenever you have a release it gets updated? On Tue, Oct 13, 2009 at 4:40 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: fixed, thanks. should show up in a couple of hours when the site syncs. -igor On Tue, Oct 13, 2009 at 12:54 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Hi, Quickstart [1] page does not include 1.4.2 as a supported version. Shall I create a JIRA issue for this? Best, Ernesto [1]-http://wicket.apache.org/quickstart.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: quickstart page does not include 1.4.2 as a supported version
On Tue, Oct 13, 2009 at 7:46 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: P.S. Isn't there a way to automate this so that whenever you have a release it gets updated? not an elegant one :) -igor On Tue, Oct 13, 2009 at 4:40 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: fixed, thanks. should show up in a couple of hours when the site syncs. -igor On Tue, Oct 13, 2009 at 12:54 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Hi, Quickstart [1] page does not include 1.4.2 as a supported version. Shall I create a JIRA issue for this? Best, Ernesto [1]-http://wicket.apache.org/quickstart.html - 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: Website 2.0
Very nice work. Do you know about how many hits your site gets regularly? -- Jeremy Thomerson http://www.wickettraining.com On Tue, Oct 13, 2009 at 6:08 AM, Daniel Frisk dan...@jalbum.net wrote: Thanks guys! We are really happy with the site, it's getting there! I have no idea how many human-hours we have spent. It have gone thru a first incarnation and then some incremental refinements and finally this overhaul that we recently did. ~1000 perhaps, maybe? :-) // Daniel jalbum.net On 2009-10-13, at 10:23, Pieter Degraeuwe wrote: Indeed: nice piece of work ! On Tue, Oct 13, 2009 at 10:01 AM, Juri Prokofiev proj...@gmail.com wrote: This is a really nice work. Amazing! How many human-hours have you spent for development? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: FileUpload and events
I am coding for just this event, to try and work around my own FileUploadField problem. My AJAX works using code very similar to yours (thanks for the example)! Have you added the line fileUploadFieldSello.setOutputMarkupId(true); ? You might need to add the line target.addComponent(fileUploadFieldSello); too. -- View this message in context: http://www.nabble.com/FileUpload-and-events-tp25816532p25874785.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
PropertyResolver.MapGetSet does ignore PropertyResolverConverter
Hi, I want to use a MapMyEnum,Boolean within a CompoundPropertyModel but it seems that String keys are supported only since MapGetSet.setValue() ignores the given PropertyResolverConverter. So my SimpleEnumConverter is not used an I end up with: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Enum at java.util.EnumMap.put(EnumMap.java:62) at org.apache.wicket.util.lang.PropertyResolver $MapGetSet.setValue(PropertyResolver.java:743) at org.apache.wicket.util.lang.PropertyResolver $ObjectAndGetSetter.setValue(PropertyResolver.java:588) at org.apache.wicket.util.lang.PropertyResolver.setValue (PropertyResolver.java:136) at org.apache.wicket.model.AbstractPropertyModel.setObject (AbstractPropertyModel.java:169) at org.apache.wicket.Component.setDefaultModelObject (Component.java:3052) at org.apache.wicket.markup.html.form.FormComponent.updateModel (FormComponent.java:1168) Now ListGetSet also ignores PropertyResolverConverter but ArrayGetSet and MethodGetAndSet do not, so is this by Intention or a possible bug? I know the workaround is easy but I would like to use such a map for a group of checkboxes. Thanks in advance, Robin. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: PropertyResolver.MapGetSet does ignore PropertyResolverConverter
Forget this post, obviously wicket IDs have to be strings... On 13.10.2009, at 17:47, Robin Sander wrote: Hi, I want to use a MapMyEnum,Boolean within a CompoundPropertyModel but it seems that String keys are supported only since MapGetSet.setValue() ignores the given PropertyResolverConverter. So my SimpleEnumConverter is not used an I end up with: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Enum at java.util.EnumMap.put(EnumMap.java:62) at org.apache.wicket.util.lang.PropertyResolver $MapGetSet.setValue(PropertyResolver.java:743) at org.apache.wicket.util.lang.PropertyResolver $ObjectAndGetSetter.setValue(PropertyResolver.java:588) at org.apache.wicket.util.lang.PropertyResolver.setValue (PropertyResolver.java:136) at org.apache.wicket.model.AbstractPropertyModel.setObject (AbstractPropertyModel.java:169) at org.apache.wicket.Component.setDefaultModelObject (Component.java:3052) at org.apache.wicket.markup.html.form.FormComponent.updateModel (FormComponent.java:1168) Now ListGetSet also ignores PropertyResolverConverter but ArrayGetSet and MethodGetAndSet do not, so is this by Intention or a possible bug? I know the workaround is easy but I would like to use such a map for a group of checkboxes. Thanks in advance, Robin. - 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: vps hosting for wicket app
These do look like excellent value! I booked our servers with Hetzner and got the IP addresses and root passwords with a few hours. Very good first impressions of telephone support too. In fact, Jan was probably too shy to mention this, but Hetzner support told me he will get some sort of credit if you put his name in the Reference field if you happen to decide based on his tip, like we did, nice tip, thanks Jan. Regards - Cemal jWeekend OO Java Technologies, Wicket Training and Development http://jWeekend.com Jan Kriesten-2 wrote: Hi Matej, I'm using slicehost but looking at this it just seems insane. Have you actually used this hosting? Is there a catch somewhere? I'm using it (3 root servers atm) - even for hosting high traffic customers. The bandwidth is amazing and there hasn't been any service problem since I'm on it. I had a hard disk failure once and it has been replaced within 3 hours (with a downtime of 15 minutes). I only have positive responses from other clients hosting there as well. Best regards, --- Jan. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/vps-hosting-for-wicket-app-tp25774355p25876049.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: AutoCompleteTextField Generics
nope. No problem for me. Try pasting here the problematic code On Mon, Oct 12, 2009 at 10:50 AM, Douglas Ferguson doug...@douglasferguson.us wrote: Has anybody else had problems with AutoCompleteTextField and generics. It almost seems like I'm dealing with an eclipse bug. But basically if I call behavior.getChoices.add(xxx) it is always highlighted in red because, I am restricted by the model use T but the list wants ? extends T. D/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- http://mapsdev.blogspot.com/ Marcelo Takeshi Fukushima - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: mi first app deployed with wicket
make sure the project packaging is set to 'war' so maven will put the required libs in the WEB-INF/lib. On Mon, Oct 12, 2009 at 6:22 PM, Fernando Wermus fernando.wer...@gmail.com wrote: Hi all, I ve been working with Maven, so there is no chance to have some dependecies problems, but Tomcat throw this exception, INFO: ContextListener: attributeAdded('org.apache.catalina.MBeanServer', 'com.sun.jmx.mbeanserver.jmxmbeanser...@105d88a') Oct 12, 2009 4:54:40 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet default threw exception java.lang.NoClassDefFoundError: org/apache/wicket/RequestContext at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:329) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) at java.lang.Thread.run(Thread.java:619) Oct 12, 2009 4:54:51 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet default threw exception any help? -- Fernando Wermus. www.linkedin.com/in/fernandowermus -- http://mapsdev.blogspot.com/ Marcelo Takeshi Fukushima - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
NullPointer in SharedResources when ussing Resourcereference and OSGi
Hello user list, I just wanted to aska quick question and know if I am going in the right direction. I am developping a Wicket application (obviously) that can be extended through module loaded in an OSGi framework. At the first attempt, I got this when using an Image with ResourceReference in Wicket 1.4.1 : java.lang.NullPointerException at org.apache.wicket.SharedResources.resourceKey(SharedResources.java:335) at org.apache.wicket.SharedResources.get(SharedResources.java:219) at org.apache.wicket.ResourceReference.bind(ResourceReference.java:137) at org.apache.wicket.markup.html.image.resource.LocalizedImageResource.bind(LocalizedImageResource.java:180) at org.apache.wicket.markup.html.image.resource.LocalizedImageResource.setResourceReference(LocalizedImageResource.java:246) at org.apache.wicket.markup.html.image.Image.setImageResourceReference(Image.java:178) at org.apache.wicket.markup.html.image.Image.init(Image.java:101) at org.apache.wicket.markup.html.image.Image.init(Image.java:77) From what I can see, this is because the scope passed in Resourcereference is transferred to a class name string and then it is taken back into a Class Object using the default ClassLoader. Because I am using an OSGi framework, the classloader is not quite natural and it can't be used the eaxct same way. I have found a post ( http://markmail.org/message/zrauqq43hmbwjfvm) that is talking about this problem exactly in the Mailing list. However, I wanted to know how I can change the class resolver used by Wicket as sugggested in the post. I have seen tha tthe session object is using a class resolver or it can also be changed using the ApplicationSettings implementation. What is the best approach as to give the possibility to get ride of this problem? Also, I wanted to know if it would not be a good thing for the framework to throw another type of exception then a NullPointer. It is not quite obvious what is going on in the framework when this is happening. Does somebody got the same issue? Is the Classresolver the only possibility for me? Thanks in advance for the answer. Marc-Andre
Re: NullPointer in SharedResources when ussing Resourcereference and OSGi
On Tue, Oct 13, 2009 at 11:30 AM, Marc-Andre Houle mho...@gmail.com wrote: Hello user list, I just wanted to aska quick question and know if I am going in the right direction. I am developping a Wicket application (obviously) that can be extended through module loaded in an OSGi framework. At the first attempt, I got this when using an Image with ResourceReference in Wicket 1.4.1 : java.lang.NullPointerException at org.apache.wicket.SharedResources.resourceKey(SharedResources.java:335) at org.apache.wicket.SharedResources.get(SharedResources.java:219) at org.apache.wicket.ResourceReference.bind(ResourceReference.java:137) at org.apache.wicket.markup.html.image.resource.LocalizedImageResource.bind(LocalizedImageResource.java:180) at org.apache.wicket.markup.html.image.resource.LocalizedImageResource.setResourceReference(LocalizedImageResource.java:246) at org.apache.wicket.markup.html.image.Image.setImageResourceReference(Image.java:178) at org.apache.wicket.markup.html.image.Image.init(Image.java:101) at org.apache.wicket.markup.html.image.Image.init(Image.java:77) From what I can see, this is because the scope passed in Resourcereference is transferred to a class name string and then it is taken back into a Class Object using the default ClassLoader. Because I am using an OSGi framework, the classloader is not quite natural and it can't be used the eaxct same way. I have found a post ( http://markmail.org/message/zrauqq43hmbwjfvm) that is talking about this problem exactly in the Mailing list. However, I wanted to know how I can change the class resolver used by Wicket as sugggested in the post. I have seen tha tthe session object is using a class resolver or it can also be changed using the ApplicationSettings implementation. What is the best approach as to give the possibility to get ride of this problem? MyApplication#init() { ... getApplicationSettings().setClassResolver(myresolver); } Also, I wanted to know if it would not be a good thing for the framework to throw another type of exception then a NullPointer. It is not quite obvious what is going on in the framework when this is happening. actually IClassResolver already specifies that a ClassNotFoundException should be thrown, but looks like that got lost at some point and null was returned instead. i fixed it in 1.5.x, best not to change it in 1.4.x in case people depend on this in their resolvers :| Does somebody got the same issue? Is the Classresolver the only possibility for me? a class resolver is not the only possibility. osgi containers provide implementation-specific ways of making a bundle into a super bundle that can see all classes in the container. some of these techniques are called buddy class loading and dynamic imports. google can help you further. -igor Thanks in advance for the answer. Marc-Andre - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: NullPointer in SharedResources when ussing Resourcereference and OSGi
Thanks a lot for the fast answer. I have already gone by the trouble of making sure the system bundle export all the classpath available so that plugin can take access to it. But I didn't find out those technic previously. (I'm using felix for now because the licensing was much smoother to us). I'll take a look if the resolver option is easy to implement and if not, I'll take a look to find out those osgi specific attribute are available. Again thanks a lot for the fast answer. Marc-Andre On Tue, Oct 13, 2009 at 2:49 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: On Tue, Oct 13, 2009 at 11:30 AM, Marc-Andre Houle mho...@gmail.com wrote: Hello user list, I just wanted to aska quick question and know if I am going in the right direction. I am developping a Wicket application (obviously) that can be extended through module loaded in an OSGi framework. At the first attempt, I got this when using an Image with ResourceReference in Wicket 1.4.1 : java.lang.NullPointerException at org.apache.wicket.SharedResources.resourceKey(SharedResources.java:335) at org.apache.wicket.SharedResources.get(SharedResources.java:219) at org.apache.wicket.ResourceReference.bind(ResourceReference.java:137) at org.apache.wicket.markup.html.image.resource.LocalizedImageResource.bind(LocalizedImageResource.java:180) at org.apache.wicket.markup.html.image.resource.LocalizedImageResource.setResourceReference(LocalizedImageResource.java:246) at org.apache.wicket.markup.html.image.Image.setImageResourceReference(Image.java:178) at org.apache.wicket.markup.html.image.Image.init(Image.java:101) at org.apache.wicket.markup.html.image.Image.init(Image.java:77) From what I can see, this is because the scope passed in Resourcereference is transferred to a class name string and then it is taken back into a Class Object using the default ClassLoader. Because I am using an OSGi framework, the classloader is not quite natural and it can't be used the eaxct same way. I have found a post ( http://markmail.org/message/zrauqq43hmbwjfvm) that is talking about this problem exactly in the Mailing list. However, I wanted to know how I can change the class resolver used by Wicket as sugggested in the post. I have seen tha tthe session object is using a class resolver or it can also be changed using the ApplicationSettings implementation. What is the best approach as to give the possibility to get ride of this problem? MyApplication#init() { ... getApplicationSettings().setClassResolver(myresolver); } Also, I wanted to know if it would not be a good thing for the framework to throw another type of exception then a NullPointer. It is not quite obvious what is going on in the framework when this is happening. actually IClassResolver already specifies that a ClassNotFoundException should be thrown, but looks like that got lost at some point and null was returned instead. i fixed it in 1.5.x, best not to change it in 1.4.x in case people depend on this in their resolvers :| Does somebody got the same issue? Is the Classresolver the only possibility for me? a class resolver is not the only possibility. osgi containers provide implementation-specific ways of making a bundle into a super bundle that can see all classes in the container. some of these techniques are called buddy class loading and dynamic imports. google can help you further. -igor Thanks in advance for the answer. Marc-Andre - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Modular Application
Are there any examples of a modular wicket application? I'm specifically having trouble getting maven to compile a jar which contains a sub-class of WebPage. Using 1.4.2 and have attempted with 1.4.1/1.4.0, packaging a Panel etc... all seems to work fine. demo/locator/web/components/BasePage.java:[17,8] cannot find symbol symbol : method add(org.apache.wicket.markup.html.basic.Label) location: class demo.locator.web.components.BasePage
Re: Modular Application
your module still needs a wicket dependency -igor On Tue, Oct 13, 2009 at 12:20 PM, Ben Tilford bentilf...@gmail.com wrote: Are there any examples of a modular wicket application? I'm specifically having trouble getting maven to compile a jar which contains a sub-class of WebPage. Using 1.4.2 and have attempted with 1.4.1/1.4.0, packaging a Panel etc... all seems to work fine. demo/locator/web/components/BasePage.java:[17,8] cannot find symbol symbol : method add(org.apache.wicket.markup.html.basic.Label) location: class demo.locator.web.components.BasePage - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Modular Application
Something other than? dependency groupIdorg.apache.wicket/groupId artifactIdwicket/artifactId version${wicket.version}/version /dependency On Tue, Oct 13, 2009 at 3:30 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: your module still needs a wicket dependency -igor On Tue, Oct 13, 2009 at 12:20 PM, Ben Tilford bentilf...@gmail.com wrote: Are there any examples of a modular wicket application? I'm specifically having trouble getting maven to compile a jar which contains a sub-class of WebPage. Using 1.4.2 and have attempted with 1.4.1/1.4.0, packaging a Panel etc... all seems to work fine. demo/locator/web/components/BasePage.java:[17,8] cannot find symbol symbol : method add(org.apache.wicket.markup.html.basic.Label) location: class demo.locator.web.components.BasePage - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Modular Application
Looks like you have an project dependency compiled with other Wicket version. That can to be easy detected with eclipse maven pluging, using the hierarchy view On Tue, Oct 13, 2009 at 4:36 PM, Ben Tilford bentilf...@gmail.com wrote: Something other than? dependency groupIdorg.apache.wicket/groupId artifactIdwicket/artifactId version${wicket.version}/version /dependency On Tue, Oct 13, 2009 at 3:30 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: your module still needs a wicket dependency -igor On Tue, Oct 13, 2009 at 12:20 PM, Ben Tilford bentilf...@gmail.com wrote: Are there any examples of a modular wicket application? I'm specifically having trouble getting maven to compile a jar which contains a sub-class of WebPage. Using 1.4.2 and have attempted with 1.4.1/1.4.0, packaging a Panel etc... all seems to work fine. demo/locator/web/components/BasePage.java:[17,8] cannot find symbol symbol : method add(org.apache.wicket.markup.html.basic.Label) location: class demo.locator.web.components.BasePage - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Pedro Henrique Oliveira dos Santos
Re: Modular Application
Is BasePage in your webapp module and you have other pages in other modules? If so, you're going to have a circular dependency. What you could do is set up a web-commons module which contains stuff like BasePage and have your other modules use that. Then, your web module declares all of them as dependencies. That's what we do. On Tue, Oct 13, 2009 at 3:36 PM, Ben Tilford bentilf...@gmail.com wrote: Something other than? dependency groupIdorg.apache.wicket/groupId artifactIdwicket/artifactId version${wicket.version}/version /dependency On Tue, Oct 13, 2009 at 3:30 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: your module still needs a wicket dependency -igor On Tue, Oct 13, 2009 at 12:20 PM, Ben Tilford bentilf...@gmail.com wrote: Are there any examples of a modular wicket application? I'm specifically having trouble getting maven to compile a jar which contains a sub-class of WebPage. Using 1.4.2 and have attempted with 1.4.1/1.4.0, packaging a Panel etc... all seems to work fine. demo/locator/web/components/BasePage.java:[17,8] cannot find symbol symbol : method add(org.apache.wicket.markup.html.basic.Label) location: class demo.locator.web.components.BasePage - 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: Modular Application
No base page is in a common module (probably will be used by more than 1 app in the end). The wicket dependency is declared in a parent project (I've tried moving thinking maybe there was something odd going on there). Using Netbeans I can see the dependency is resolved and on the classpath. Looking at the dependency graph there is only 1 version of wicket in any of the modules and they all have 1.4.2. I did see a conflict with log4j versions but after fixing that I'm still getting the same compilation error. To me its a bit odd that its the add method of WebPage that can't be found. On Tue, Oct 13, 2009 at 4:00 PM, James Carman jcar...@carmanconsulting.comwrote: Is BasePage in your webapp module and you have other pages in other modules? If so, you're going to have a circular dependency. What you could do is set up a web-commons module which contains stuff like BasePage and have your other modules use that. Then, your web module declares all of them as dependencies. That's what we do. On Tue, Oct 13, 2009 at 3:36 PM, Ben Tilford bentilf...@gmail.com wrote: Something other than? dependency groupIdorg.apache.wicket/groupId artifactIdwicket/artifactId version${wicket.version}/version /dependency On Tue, Oct 13, 2009 at 3:30 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: your module still needs a wicket dependency -igor On Tue, Oct 13, 2009 at 12:20 PM, Ben Tilford bentilf...@gmail.com wrote: Are there any examples of a modular wicket application? I'm specifically having trouble getting maven to compile a jar which contains a sub-class of WebPage. Using 1.4.2 and have attempted with 1.4.1/1.4.0, packaging a Panel etc... all seems to work fine. demo/locator/web/components/BasePage.java:[17,8] cannot find symbol symbol : method add(org.apache.wicket.markup.html.basic.Label) location: class demo.locator.web.components.BasePage - 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: Modular Application
Does the maven build work? On Tue, Oct 13, 2009 at 4:11 PM, Ben Tilford bentilf...@gmail.com wrote: No base page is in a common module (probably will be used by more than 1 app in the end). The wicket dependency is declared in a parent project (I've tried moving thinking maybe there was something odd going on there). Using Netbeans I can see the dependency is resolved and on the classpath. Looking at the dependency graph there is only 1 version of wicket in any of the modules and they all have 1.4.2. I did see a conflict with log4j versions but after fixing that I'm still getting the same compilation error. To me its a bit odd that its the add method of WebPage that can't be found. On Tue, Oct 13, 2009 at 4:00 PM, James Carman jcar...@carmanconsulting.comwrote: Is BasePage in your webapp module and you have other pages in other modules? If so, you're going to have a circular dependency. What you could do is set up a web-commons module which contains stuff like BasePage and have your other modules use that. Then, your web module declares all of them as dependencies. That's what we do. On Tue, Oct 13, 2009 at 3:36 PM, Ben Tilford bentilf...@gmail.com wrote: Something other than? dependency groupIdorg.apache.wicket/groupId artifactIdwicket/artifactId version${wicket.version}/version /dependency On Tue, Oct 13, 2009 at 3:30 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: your module still needs a wicket dependency -igor On Tue, Oct 13, 2009 at 12:20 PM, Ben Tilford bentilf...@gmail.com wrote: Are there any examples of a modular wicket application? I'm specifically having trouble getting maven to compile a jar which contains a sub-class of WebPage. Using 1.4.2 and have attempted with 1.4.1/1.4.0, packaging a Panel etc... all seems to work fine. demo/locator/web/components/BasePage.java:[17,8] cannot find symbol symbol : method add(org.apache.wicket.markup.html.basic.Label) location: class demo.locator.web.components.BasePage - 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: Modular Application
Isn't it the case for you manually run mvn install on your parent project? Your local repository may have old .class bytecodes On Tue, Oct 13, 2009 at 5:11 PM, Ben Tilford bentilf...@gmail.com wrote: No base page is in a common module (probably will be used by more than 1 app in the end). The wicket dependency is declared in a parent project (I've tried moving thinking maybe there was something odd going on there). Using Netbeans I can see the dependency is resolved and on the classpath. Looking at the dependency graph there is only 1 version of wicket in any of the modules and they all have 1.4.2. I did see a conflict with log4j versions but after fixing that I'm still getting the same compilation error. To me its a bit odd that its the add method of WebPage that can't be found. On Tue, Oct 13, 2009 at 4:00 PM, James Carman jcar...@carmanconsulting.comwrote: Is BasePage in your webapp module and you have other pages in other modules? If so, you're going to have a circular dependency. What you could do is set up a web-commons module which contains stuff like BasePage and have your other modules use that. Then, your web module declares all of them as dependencies. That's what we do. On Tue, Oct 13, 2009 at 3:36 PM, Ben Tilford bentilf...@gmail.com wrote: Something other than? dependency groupIdorg.apache.wicket/groupId artifactIdwicket/artifactId version${wicket.version}/version /dependency On Tue, Oct 13, 2009 at 3:30 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: your module still needs a wicket dependency -igor On Tue, Oct 13, 2009 at 12:20 PM, Ben Tilford bentilf...@gmail.com wrote: Are there any examples of a modular wicket application? I'm specifically having trouble getting maven to compile a jar which contains a sub-class of WebPage. Using 1.4.2 and have attempted with 1.4.1/1.4.0, packaging a Panel etc... all seems to work fine. demo/locator/web/components/BasePage.java:[17,8] cannot find symbol symbol : method add(org.apache.wicket.markup.html.basic.Label) location: class demo.locator.web.components.BasePage - 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 -- Pedro Henrique Oliveira dos Santos
[WIKI] Websites based on Wicket page presentation
I've been having some very brief communication with Ralf Eichinger who has been making a valuable contribution over the last few weeks by starting to improve documentation on the Wiki, especially with a view to help people evaluating Wicket get a fairer appreciation of it, who's using it and what they are doing with it. Now obviously it is extremely valuable for newcomers to have a page like our Websites based on Wicket [1] to get a feel for who's doing what with Wicket already. And, for apps built on Wicket, like Leg Up and all those other Wicket sites, it is nice to have a central place to put a link on that others may come across and therefore be aware it's out there, and enjoy visiting/using it. It's also encouraging to see this list of apps and sites grows, albeit steadily (I recommend anyone with a public Wicket app to mention it there, it can only do good for all concerned, AFAICS). All the same, there are increasingly more sophisticated and impressive sites highlighting the strength and depth of the community/developers and what magic can be weaved using Wicket (whilst developers amongst us also know that in Wicket such magic is possible at the same time as keeping your application design and code neat, tidy, maintainable and extensible and even rather pleasant to work with). One question that came up is whether the pages listed by URL there should be ordered alphabetically or chronologically. For me, chronological (newest at top, as had been the case originally) makes much more sense because when I look at the site, I can see how things have evolved, quickly identify what's new since I last looked and also answer questions like what were the first public Wicket sites listed here?. This is also a much more robust sorting scheme (people _like_ to add their shiny new apps/sites to the top of the list!) and with no arbitrary rules there's not such a likelihood of breaking the sort order every time anyone adds their site (eg should http://www.eropuit.nl go before or after fabulously40.com), as it was when I went in to add LegUp. Chronological ordering is a scheme that was always quite naturally maintained and therefore required no further maintenance to keep right. What's more, I don't see what the benefit of an artificial sort ordering like alphabetically ordered by URL would be in this context as I doubt anyone looking at the page is not familiar with Ctrl+F if they come looking for some specific page/site/URL. I doubt anyone else has ever been worried about this, but if anyone else has a view on it I'd be pleased to know about it and if there are some good reasons for alphabetically ordering too the list that I have missed I can stop messing up Ralf's order! Regards - Cemal jWeekend OO Java Technologies, Wicket Training and Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Modular Application
@James Everything works if I don't have a sub-class of WebPage outside the war project. @Pedro From command line or on the parent project I get the same error. Also deleted the org/apache/wicket directory out of my .m2 repository and re-downloaded. On Tue, Oct 13, 2009 at 4:19 PM, Pedro Santos pedros...@gmail.com wrote: Isn't it the case for you manually run mvn install on your parent project? Your local repository may have old .class bytecodes On Tue, Oct 13, 2009 at 5:11 PM, Ben Tilford bentilf...@gmail.com wrote: No base page is in a common module (probably will be used by more than 1 app in the end). The wicket dependency is declared in a parent project (I've tried moving thinking maybe there was something odd going on there). Using Netbeans I can see the dependency is resolved and on the classpath. Looking at the dependency graph there is only 1 version of wicket in any of the modules and they all have 1.4.2. I did see a conflict with log4j versions but after fixing that I'm still getting the same compilation error. To me its a bit odd that its the add method of WebPage that can't be found. On Tue, Oct 13, 2009 at 4:00 PM, James Carman jcar...@carmanconsulting.comwrote: Is BasePage in your webapp module and you have other pages in other modules? If so, you're going to have a circular dependency. What you could do is set up a web-commons module which contains stuff like BasePage and have your other modules use that. Then, your web module declares all of them as dependencies. That's what we do. On Tue, Oct 13, 2009 at 3:36 PM, Ben Tilford bentilf...@gmail.com wrote: Something other than? dependency groupIdorg.apache.wicket/groupId artifactIdwicket/artifactId version${wicket.version}/version /dependency On Tue, Oct 13, 2009 at 3:30 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: your module still needs a wicket dependency -igor On Tue, Oct 13, 2009 at 12:20 PM, Ben Tilford bentilf...@gmail.com wrote: Are there any examples of a modular wicket application? I'm specifically having trouble getting maven to compile a jar which contains a sub-class of WebPage. Using 1.4.2 and have attempted with 1.4.1/1.4.0, packaging a Panel etc... all seems to work fine. demo/locator/web/components/BasePage.java:[17,8] cannot find symbol symbol : method add(org.apache.wicket.markup.html.basic.Label) location: class demo.locator.web.components.BasePage - 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 -- Pedro Henrique Oliveira dos Santos
Italian Bank (was Re: Wicket 1.4.2 Released!)
Giovanni, What bank is this? What is the URL and is there anything of particular interest that we can see without accounts? On Sat, Oct 10, 2009 at 7:05 AM, Giovanni pino_o...@yahoo.com wrote: Wow!!! I will upgrade my project for a major italian bank on coming monday. Thanks a lot for all your efforts in developing this great web framework! Best regards, giovanni
Re: [WIKI] Websites based on Wicket page presentation
Chronological, newest at the top seems the best choice, but there is a subtle difference in whether you consider the launch date of the site, or the date in which the site was added to your catalog of Wicket sites. Date of adding is better so you know what sites you haven't looked at yet, and should be the default IMHO, but having a choice of sorting by launch date would be nice also. Cheers, Daniel jWeekend wrote: . One question that came up is whether the pages listed by URL there should be ordered alphabetically or chronologically. For me, chronological (newest at top, as had been the case originally) makes much more sense because when I look at the site, I can see how things have evolved, quickly identify what's new since I last looked and also answer questions like what were the first public Wicket sites listed here?. This is also a much more robust sorting scheme . I doubt anyone else has ever been worried about this, but if anyone else has a view on it I'd be pleased to know about it and if there are some good reasons for alphabetically ordering too the list that I have missed I can stop messing up Ralf's order! Regards - Cemal jWeekend OO Java Technologies, Wicket Training and Development http://jWeekend.com -- View this message in context: http://www.nabble.com/-WIKI--%22Websites-based-on-Wicket%22-page-presentation-tp25880274p25880736.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
DateLabel, joda-time and Liferay locales
It seems joda-time used by DateLabel has an issue with Liferay's use of the locale nb_NO (for Norwegian bokmål in Norwayas opposed to the more common no_NO, where it seems to default to U.S. locale and UTC instead of native (CET+DST here) - i.e. it seems to use both components to decide timezone instead of just the country. What is the best approach to get around this? Med vennlig hilsen TOR IVER WILHELMSEN Senior systemutvikler Arrive AS T (+47) 48 16 06 18 E-post: toriv...@arrive.nomailto:toriv...@arrive.no http://www.arrive.no http://servicedesk.arrive.no
Right justify in DataTable
If I user DefaultDataTable to display table. Is there a way justify the numberic column. eg. I want NumberCol to be right justified then left IColumn[] columns = new IColumn[2]; columns[0] = new PropertyColumn(new Model(NumberCol), NumberCol, NumberCol) columns[1] = new PropertyColumn(new Model(Last Name), name.last, name.last); DefaultDataTable table = new DefaultDataTable(datatable, columns, userProvider, 10);
Re: [WIKI] Websites based on Wicket page presentation
shouldn't it be one of igor's famous tables with the sort headers? then we wouldn't need to argue over how to order it. jWeekend wrote: I've been having some very brief communication with Ralf Eichinger who has been making a valuable contribution over the last few weeks by starting to improve documentation on the Wiki, especially with a view to help people evaluating Wicket get a fairer appreciation of it, who's using it and what they are doing with it. Now obviously it is extremely valuable for newcomers to have a page like our Websites based on Wicket [1] to get a feel for who's doing what with Wicket already. And, for apps built on Wicket, like Leg Up and all those other Wicket sites, it is nice to have a central place to put a link on that others may come across and therefore be aware it's out there, and enjoy visiting/using it. It's also encouraging to see this list of apps and sites grows, albeit steadily (I recommend anyone with a public Wicket app to mention it there, it can only do good for all concerned, AFAICS). All the same, there are increasingly more sophisticated and impressive sites highlighting the strength and depth of the community/developers and what magic can be weaved using Wicket (whilst developers amongst us also know that in Wicket such magic is possible at the same time as keeping your application design and code neat, tidy, maintainable and extensible and even rather pleasant to work with). One question that came up is whether the pages listed by URL there should be ordered alphabetically or chronologically. For me, chronological (newest at top, as had been the case originally) makes much more sense because when I look at the site, I can see how things have evolved, quickly identify what's new since I last looked and also answer questions like what were the first public Wicket sites listed here?. This is also a much more robust sorting scheme (people _like_ to add their shiny new apps/sites to the top of the list!) and with no arbitrary rules there's not such a likelihood of breaking the sort order every time anyone adds their site (eg should http://www.eropuit.nl go before or after fabulously40.com), as it was when I went in to add LegUp. Chronological ordering is a scheme that was always quite naturally maintained and therefore required no further maintenance to keep right. What's more, I don't see what the benefit of an artificial sort ordering like alphabetically ordered by URL would be in this context as I doubt anyone looking at the page is not familiar with Ctrl+F if they come looking for some specific page/site/URL. I doubt anyone else has ever been worried about this, but if anyone else has a view on it I'd be pleased to know about it and if there are some good reasons for alphabetically ordering too the list that I have missed I can stop messing up Ralf's order! Regards - Cemal jWeekend OO Java Technologies, Wicket Training and Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/-WIKI--%22Websites-based-on-Wicket%22-page-presentation-tp25880274p25884516.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: [WIKI] Websites based on Wicket page presentation
I was thinking the same - just make it a table and use jQuery sortable plugin. -- Jeremy Thomerson http://www.wickettraining.com On Tue, Oct 13, 2009 at 9:42 PM, Jonathan Locke jonathan.lo...@gmail.comwrote: shouldn't it be one of igor's famous tables with the sort headers? then we wouldn't need to argue over how to order it. jWeekend wrote: I've been having some very brief communication with Ralf Eichinger who has been making a valuable contribution over the last few weeks by starting to improve documentation on the Wiki, especially with a view to help people evaluating Wicket get a fairer appreciation of it, who's using it and what they are doing with it. Now obviously it is extremely valuable for newcomers to have a page like our Websites based on Wicket [1] to get a feel for who's doing what with Wicket already. And, for apps built on Wicket, like Leg Up and all those other Wicket sites, it is nice to have a central place to put a link on that others may come across and therefore be aware it's out there, and enjoy visiting/using it. It's also encouraging to see this list of apps and sites grows, albeit steadily (I recommend anyone with a public Wicket app to mention it there, it can only do good for all concerned, AFAICS). All the same, there are increasingly more sophisticated and impressive sites highlighting the strength and depth of the community/developers and what magic can be weaved using Wicket (whilst developers amongst us also know that in Wicket such magic is possible at the same time as keeping your application design and code neat, tidy, maintainable and extensible and even rather pleasant to work with). One question that came up is whether the pages listed by URL there should be ordered alphabetically or chronologically. For me, chronological (newest at top, as had been the case originally) makes much more sense because when I look at the site, I can see how things have evolved, quickly identify what's new since I last looked and also answer questions like what were the first public Wicket sites listed here?. This is also a much more robust sorting scheme (people _like_ to add their shiny new apps/sites to the top of the list!) and with no arbitrary rules there's not such a likelihood of breaking the sort order every time anyone adds their site (eg should http://www.eropuit.nl go before or after fabulously40.com), as it was when I went in to add LegUp. Chronological ordering is a scheme that was always quite naturally maintained and therefore required no further maintenance to keep right. What's more, I don't see what the benefit of an artificial sort ordering like alphabetically ordered by URL would be in this context as I doubt anyone looking at the page is not familiar with Ctrl+F if they come looking for some specific page/site/URL. I doubt anyone else has ever been worried about this, but if anyone else has a view on it I'd be pleased to know about it and if there are some good reasons for alphabetically ordering too the list that I have missed I can stop messing up Ralf's order! Regards - Cemal jWeekend OO Java Technologies, Wicket Training and Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/-WIKI--%22Websites-based-on-Wicket%22-page-presentation-tp25880274p25884516.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
Don't forget about ApacheCon US 2009!
Sorry for the almost-shameless plug, but I'm really excited about how ApacheCon US 2009 is shaping up! We will have several great Wicket community members there (I know that Bruno will be in from Brazil), and there will of course be a Wicket session and a one day Wicket training. The more Wicket users we have on site, the more we can tell others about our great framework! Will you be there? Reply here if you're planning on going. We should all get together to do something! I've put together a sample schedule of some sessions other Wicketeers might be interested in: http://www.jeremythomerson.com/blog/2009/10/more-great-reasons-to-go-to-apachecon-us-2009/ -- Jeremy Thomerson http://www.wickettraining.com
Re: Don't forget about ApacheCon US 2009!
Will you be there? Reply here if you're planning on going. We should all get together to do something! I'll be going, hope to see you there :-) Eelco - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket LinkTree and TreeModel serialisation
Hi, I have page with panel (a custom class named TreePanel) that contains Wicket LinkTree. LinkTree uses TreeModel instance which is common for all pages in application (tree model resides in application class). When any page that contains TreePanel being serialized, TreeModel also seriailzes with page instance. I need to avoid TreeModel serialization. I've used LoadableDetachableModel as in following code, but it didn't work. Is it possible to avoid this? public class TreePanel extends Panel { private static final long serialVersionUID = 1L; private static class DocumentTree extends LinkTree { private static final long serialVersionUID = 1L; public DocumentTree(String id, IModelTreeModel model) { super(id, model); getTreeState().expandNode(model.getObject().getRoot()); } @Override protected void onNodeLinkClicked(Object node, BaseTree tree, AjaxRequestTarget target) { TreeModelBean data = (TreeModelBean)((DefaultMutableTreeNode)node).getUserObject(); ((BasePage)getPage()).ajaxRequestReceived(target, data, AjaxEventType.DATA_VIEW_UPDATE); } } private LinkTree tree_; @SuppressWarnings(serial) public TreePanel(String id, TreeModel model) { super(id); tree_ = new DocumentTree(tree, new LoadableDetachableModelTreeModel() { @Override protected TreeModel load() { return MyApp.get().getTreeModel(); } }); add(tree_); } } - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org