Looking for a freelancer
Hi you all! For a challenging project I am looking around for an experienced developer in Wicket, who is willing to give me a helping hand for 1 or 2 days a week. Preferable on site in Hoofddorp, the Netherlands. If this sounds interesting to you, please send me your daily rate and availability. Also. if you like more information, don't hesitate to contact me. thx & best regards, Frank Prins www.copernicus.nl - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [OT] wicket users around the world
China, ZheJiang NingBo francisco treacy-2 wrote: > > to know a little bit more of our great (and vast) community, i was > just wondering if you're keen on sharing where you come from and/or > where you work with wicket... > > for instance, here argentinian/belgian working with wicket in antibes, > france > > francisco > > - > 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/-OT--wicket-users-around-the-world-tp20962108p21028025.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: Why am I getting this error?
Do you ever call listview.removeAll ? 2008/12/15 dbuttery : > > Hi all, > > I have a ListView in which each repeater row has a button to launch a > ModalWindow. I actually do this multiple times in my application so I know > that it does work. > > I just added a new screen that does the same thing and it works fine the > first time that the ModalWindow is launched. -BUT- after that any click on > a link gives me the error shown below... > > Anyone have a clue as to why this is showing up? > > Thanks in advance for any help you can provide! > -Dennis > > ~~ > > WicketMessage: component reportsTableWMC:reportListView:1:runrpt not found > on page net.bplg.enerview.reports.ReportsConsole[id = 0], listener interface > = [RequestListenerInterface name=IBehaviorListener, method=public abstract > void org.apache.wicket.behavior.IBehaviorListener.onRequest()]Root > cause:org.apache.wicket.WicketRuntimeException: component > reportsTableWMC:reportListView:1:runrpt not found on page > net.bplg.enerview.reports.ReportsConsole[id = 0], listener interface = > [RequestListenerInterface name=IBehaviorListener, method=public abstract > void org.apache.wicket.behavior.IBehaviorListener.onRequest()] at > org.apache.wicket.request.AbstractRequestCycleProcessor.resolveListenerInterfaceTarget(AbstractRequestCycleProcessor.java:419) > at > org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage(AbstractRequestCycleProcessor.java:464) > at > org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:139) > at org.apache.wicket.RequestCycle.step(RequestCycle.java:1246) at > org.apache.wicket.RequestCycle.steps(RequestCycle.java:1366) at > org.apache.wicket.RequestCycle.request(RequestCycle.java:498) at > org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:444) > at > org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at > org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378) > at > org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109) > at > org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83) > at > org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390) > at > org.springframework.security.ui.SessionFixationProtectionFilter.doFilterHttp(SessionFixationProtectionFilter.java:67) > at > org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) > at > org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390) > at > org.springframework.security.ui.ExceptionTranslationFilter.doFilterHttp(ExceptionTranslationFilter.java:101) > at > org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) > at > org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390) > at > org.springframework.security.providers.anonymous.AnonymousProcessingFilter.doFilterHttp(AnonymousProcessingFilter.java:105) > at > org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) > at > org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390) > at > org.springframework.security.wrapper.SecurityContextHolderAwareRequestFilter.doFilterHttp(SecurityContextHolderAwareRequestFilter.java:91) > at > org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) > at > org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390) > at > org.springframework.security.ui.AbstractProcessingFilter.doFilterHttp(AbstractProcessingFilter.java:277) > at > org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) > at > org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390) > at > org.springframework.security.ui.logout.LogoutFilter.doFilterHttp(LogoutFilter.java:89) > at > org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) > at > org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390) > at > org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:235) > at > org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) > at > org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterCh
Re: Wicket, FOP, Markup Inheritance and Markup Type
what you can do is have wicket generate the necessary xml you need with wickettester and postprocess that yourself into the pdf. you can override page#getmarkuptype() to return "xml" and wicket will look for the xml file instead of html. -igor On Mon, Dec 15, 2008 at 2:14 PM, Adrian Wiesmann wrote: > Hello everybody > > A quick question out of curiosity. Has anybody played around or tried to > generate XSL-FO from within your Wicket project? > > What I mean is this: > > - Add an XML file to every HTML file. > - Tell Wicket to use the XML instead of the HTML file for the markup. > - Have Wicket do the markup inheritance magic and "rendering" of a FO file > (instead of plain HTML). > - Use the resulting FO to render PDF with Apache FOP. > - Present the PDF file instead the HTML to the client. > > Anyone did so? Anyone played with Wicket and did so in a Swing application > (instead the web environment)? > > I know, these questions may sound strange, but I am currently thinking > about the possibilities of Wicket's markup inheritance and if it is > possible (and makes sense) to use Wicket as a reports generator. Not what > it is intended to do, but just pretend everything makes sense. :) > > Thanks for your comments. > > Cheers, > Adrian > > - > 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: [OT] wicket users around the world
Abuja, Nigeria Live Wicket Projects www.fenlabnigeria.com www.nelexonline.com 2 more next year On Mon, Dec 15, 2008 at 11:00 PM, Stefan Lindner wrote: > Erlangen, Germany > > We are using Wicket Since version 1.0 for all new web projects. > > Stefan > > -Ursprüngliche Nachricht- > Von: Jeremy Levy [mailto:jel...@gmail.com] > Gesendet: Montag, 15. Dezember 2008 23:51 > An: users@wicket.apache.org > Betreff: Re: [OT] wicket users around the world > > New York, NY > > On Mon, Dec 15, 2008 at 12:55 PM, dtoffe wrote: > > > > >Heh +10, seems pretty interesting indeed, very nice graphics... > > > > > > Nino.Martinez wrote: > > > > > > Interesting, why not localize the app, so we get it in english? :) > > > > > > Quan Zhou wrote: > > >> Beijing China.I'm using wicket to develop webgame named FBM > > >> (www.wedomo.com),it's > > >> 600,000 registers, and about 10,000 players online in average. > > >> I also develop my game master tools and log analyzers with wicket. > > >> I love it so much. > > >> > > >> 2008/12/15 Juri Prokofjev > > >> > > >> > > >>> Estonia, Tallinn > > >>> > > >>> I've tried many frameworks, but wicket is one of my favorite. > > >>> > > >>> On Mon, Dec 15, 2008 at 8:39 AM, Ashika Umanga Umagiliya > > >>> wrote: > > >>> > > Sri Lankan ,working in Japan > > > > > Kathmandu, Nepal > > > > > > > > > - > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > For additional commands, e-mail: users-h...@wicket.apache.org > > > > > > > > >>> > > >>> -- > > >>> http://www.autoladu.ee - kõik varuosad ühes kohas > > >>> > > >>> - > > >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > >>> For additional commands, e-mail: users-h...@wicket.apache.org > > >>> > > >>> > > >>> > > >> > > >> > > > > > > -- > > > -Wicket for love > > > > > > Nino Martinez Wael > > > Java Specialist @ Jayway DK > > > http://www.jayway.dk > > > +45 2936 7684 > > > > > > > > > - > > > 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/-OT--wicket-users-around-the-world-tp20962108p21018519.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 > > > > > > > -- > Jeremy Levy > > See my location in real-time: > http://seemywhere.com/jeremy > > Right now we are paying a $2,500 referral fee for any full-time hire we > make > and keep for 90 days. We're looking for Java Developers and Marketers with > Internet marketing experience. You can earn this fee if your referral > leads directly to us hiring one of these people. Call or email me for > details. > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Aladejebi Ayodeji A., DabarObjects Solutions Phone: +234 9 481 7 156 Mobile: +234 803 589 1780 Email: d...@dabarobjects.com Web: www.dabarobjects.com Blog: blog.dabarobjects.com Participate, Collaborate, Innovate Join Community: http://www.cowblock.net/ Get A Free Blog: http://blogs.cowblock.net/
RE: [OT] wicket users around the world
Erlangen, Germany We are using Wicket Since version 1.0 for all new web projects. Stefan -Ursprüngliche Nachricht- Von: Jeremy Levy [mailto:jel...@gmail.com] Gesendet: Montag, 15. Dezember 2008 23:51 An: users@wicket.apache.org Betreff: Re: [OT] wicket users around the world New York, NY On Mon, Dec 15, 2008 at 12:55 PM, dtoffe wrote: > >Heh +10, seems pretty interesting indeed, very nice graphics... > > > Nino.Martinez wrote: > > > > Interesting, why not localize the app, so we get it in english? :) > > > > Quan Zhou wrote: > >> Beijing China.I'm using wicket to develop webgame named FBM > >> (www.wedomo.com),it's > >> 600,000 registers, and about 10,000 players online in average. > >> I also develop my game master tools and log analyzers with wicket. > >> I love it so much. > >> > >> 2008/12/15 Juri Prokofjev > >> > >> > >>> Estonia, Tallinn > >>> > >>> I've tried many frameworks, but wicket is one of my favorite. > >>> > >>> On Mon, Dec 15, 2008 at 8:39 AM, Ashika Umanga Umagiliya > >>> wrote: > >>> > Sri Lankan ,working in Japan > > > Kathmandu, Nepal > > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > > >>> > >>> -- > >>> http://www.autoladu.ee - kõik varuosad ühes kohas > >>> > >>> - > >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > >>> For additional commands, e-mail: users-h...@wicket.apache.org > >>> > >>> > >>> > >> > >> > > > > -- > > -Wicket for love > > > > Nino Martinez Wael > > Java Specialist @ Jayway DK > > http://www.jayway.dk > > +45 2936 7684 > > > > > > - > > 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/-OT--wicket-users-around-the-world-tp20962108p21018519.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 > > -- Jeremy Levy See my location in real-time: http://seemywhere.com/jeremy Right now we are paying a $2,500 referral fee for any full-time hire we make and keep for 90 days. We're looking for Java Developers and Marketers with Internet marketing experience. You can earn this fee if your referral leads directly to us hiring one of these people. Call or email me for details. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [OT] wicket users around the world
New York, NY Ryan Gravener http://ryangravener.com/flex | http://twitter.com/ryangravener On Mon, Dec 15, 2008 at 5:50 PM, Jeremy Levy wrote: > New York, NY > > On Mon, Dec 15, 2008 at 12:55 PM, dtoffe wrote: > > > > >Heh +10, seems pretty interesting indeed, very nice graphics... > > > > > > Nino.Martinez wrote: > > > > > > Interesting, why not localize the app, so we get it in english? :) > > > > > > Quan Zhou wrote: > > >> Beijing China.I'm using wicket to develop webgame named FBM > > >> (www.wedomo.com),it's > > >> 600,000 registers, and about 10,000 players online in average. > > >> I also develop my game master tools and log analyzers with wicket. > > >> I love it so much. > > >> > > >> 2008/12/15 Juri Prokofjev > > >> > > >> > > >>> Estonia, Tallinn > > >>> > > >>> I've tried many frameworks, but wicket is one of my favorite. > > >>> > > >>> On Mon, Dec 15, 2008 at 8:39 AM, Ashika Umanga Umagiliya > > >>> wrote: > > >>> > > Sri Lankan ,working in Japan > > > > > Kathmandu, Nepal > > > > > > > > > - > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > For additional commands, e-mail: users-h...@wicket.apache.org > > > > > > > > >>> > > >>> -- > > >>> http://www.autoladu.ee - kõik varuosad ühes kohas > > >>> > > >>> - > > >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > >>> For additional commands, e-mail: users-h...@wicket.apache.org > > >>> > > >>> > > >>> > > >> > > >> > > > > > > -- > > > -Wicket for love > > > > > > Nino Martinez Wael > > > Java Specialist @ Jayway DK > > > http://www.jayway.dk > > > +45 2936 7684 > > > > > > > > > - > > > 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/-OT--wicket-users-around-the-world-tp20962108p21018519.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 > > > > > > > -- > Jeremy Levy > > See my location in real-time: > http://seemywhere.com/jeremy > > Right now we are paying a $2,500 referral fee for any full-time hire we > make > and keep for 90 days. We're looking for Java Developers and Marketers with > Internet marketing experience. You can earn this fee if your referral > leads directly to us hiring one of these people. Call or email me for > details. >
Re: [OT] wicket users around the world
New York, NY On Mon, Dec 15, 2008 at 12:55 PM, dtoffe wrote: > >Heh +10, seems pretty interesting indeed, very nice graphics... > > > Nino.Martinez wrote: > > > > Interesting, why not localize the app, so we get it in english? :) > > > > Quan Zhou wrote: > >> Beijing China.I'm using wicket to develop webgame named FBM > >> (www.wedomo.com),it's > >> 600,000 registers, and about 10,000 players online in average. > >> I also develop my game master tools and log analyzers with wicket. > >> I love it so much. > >> > >> 2008/12/15 Juri Prokofjev > >> > >> > >>> Estonia, Tallinn > >>> > >>> I've tried many frameworks, but wicket is one of my favorite. > >>> > >>> On Mon, Dec 15, 2008 at 8:39 AM, Ashika Umanga Umagiliya > >>> wrote: > >>> > Sri Lankan ,working in Japan > > > Kathmandu, Nepal > > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > > >>> > >>> -- > >>> http://www.autoladu.ee - kõik varuosad ühes kohas > >>> > >>> - > >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > >>> For additional commands, e-mail: users-h...@wicket.apache.org > >>> > >>> > >>> > >> > >> > > > > -- > > -Wicket for love > > > > Nino Martinez Wael > > Java Specialist @ Jayway DK > > http://www.jayway.dk > > +45 2936 7684 > > > > > > - > > 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/-OT--wicket-users-around-the-world-tp20962108p21018519.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 > > -- Jeremy Levy See my location in real-time: http://seemywhere.com/jeremy Right now we are paying a $2,500 referral fee for any full-time hire we make and keep for 90 days. We're looking for Java Developers and Marketers with Internet marketing experience. You can earn this fee if your referral leads directly to us hiring one of these people. Call or email me for details.
Re: Question re wicket:enclosure tag and resource resolution with wicket:message tags
I can appreciate what it currently does - I just think it could be a little more convenient. It would still provide the default behavior, but allow keys to be translated with the child scope primarily - in the same way it allows visibility to be driven with the child scope. Thanks for your feedback Igor. igor.vaynberg wrote: > > i do not think this is the irght way to go. the nesting is: > > > > > > so clearly the key is owned by the panel. these are the rules for > wicket:message. keep in mind the tag is a convinience and so we try to > keep it as simple as possible. you can always add a label that uses > whatever you want as the localizer. > > -igor > -- View this message in context: http://www.nabble.com/Question-re-wicket%3Aenclosure-tag-and-resource-resolution-with-wicket%3Amessage-tags-tp21008465p21023555.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket, FOP, Markup Inheritance and Markup Type
Hello everybody A quick question out of curiosity. Has anybody played around or tried to generate XSL-FO from within your Wicket project? What I mean is this: - Add an XML file to every HTML file. - Tell Wicket to use the XML instead of the HTML file for the markup. - Have Wicket do the markup inheritance magic and "rendering" of a FO file (instead of plain HTML). - Use the resulting FO to render PDF with Apache FOP. - Present the PDF file instead the HTML to the client. Anyone did so? Anyone played with Wicket and did so in a Swing application (instead the web environment)? I know, these questions may sound strange, but I am currently thinking about the possibilities of Wicket's markup inheritance and if it is possible (and makes sense) to use Wicket as a reports generator. Not what it is intended to do, but just pretend everything makes sense. :) Thanks for your comments. Cheers, Adrian - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Modal window not appearing in IE
It would help if you post some output of for example the wicket-ajax-debug window, or the firefox console. With the information you have given thus far we can't help you. Martijn On Mon, Dec 15, 2008 at 10:51 PM, ecornett wrote: > > I have searched everywhere for an answer to this Wicket question with no > luck. > > > Martijn Dashorst wrote: >> >> As you come through nabble, I trust you have read and understood the >> text that is shown prominently above the forum? >> >>> Before posting, please read "How to ask questions the smart >>> way" [1] and answer these questions for yourself: >>> >>> * Did you check out our live examples >>> * read our wiki >>> * search using google >>> If these fail to provide an answer, posting to the users list is >>> appropriate. Be sure to include full stack traces and code. Did >>> we mention that you read "How to ask questions the smart way" [1] >>> before posting? >> >> Martijn >> >> [1] http://www.catb.org/~esr/faqs/smart-questions.html >> >> On Mon, Dec 15, 2008 at 7:18 PM, ecornett >> wrote: >>> >>> Has anyone else had trouble with modal windows appearing in Firefox but >>> not >>> IE and if so, what is a good solution? I can go into more details if >>> necessary. >>> -- >>> View this message in context: >>> http://www.nabble.com/Modal-window-not-appearing-in-IE-tp21018938p21018938.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 >>> >>> >> >> >> >> -- >> Become a Wicket expert, learn from the best: http://wicketinaction.com >> Apache Wicket 1.3.4 is released >> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. >> >> - >> 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/Modal-window-not-appearing-in-IE-tp21018938p21022867.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 > > -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Modal window not appearing in IE
I have searched everywhere for an answer to this Wicket question with no luck. Martijn Dashorst wrote: > > As you come through nabble, I trust you have read and understood the > text that is shown prominently above the forum? > >> Before posting, please read "How to ask questions the smart >> way" [1] and answer these questions for yourself: >> >> * Did you check out our live examples >> * read our wiki >> * search using google >> If these fail to provide an answer, posting to the users list is >> appropriate. Be sure to include full stack traces and code. Did >> we mention that you read "How to ask questions the smart way" [1] >> before posting? > > Martijn > > [1] http://www.catb.org/~esr/faqs/smart-questions.html > > On Mon, Dec 15, 2008 at 7:18 PM, ecornett > wrote: >> >> Has anyone else had trouble with modal windows appearing in Firefox but >> not >> IE and if so, what is a good solution? I can go into more details if >> necessary. >> -- >> View this message in context: >> http://www.nabble.com/Modal-window-not-appearing-in-IE-tp21018938p21018938.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 >> >> > > > > -- > Become a Wicket expert, learn from the best: http://wicketinaction.com > Apache Wicket 1.3.4 is released > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. > > - > 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/Modal-window-not-appearing-in-IE-tp21018938p21022867.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
Why am I getting this error?
Hi all, I have a ListView in which each repeater row has a button to launch a ModalWindow. I actually do this multiple times in my application so I know that it does work. I just added a new screen that does the same thing and it works fine the first time that the ModalWindow is launched. -BUT- after that any click on a link gives me the error shown below... Anyone have a clue as to why this is showing up? Thanks in advance for any help you can provide! -Dennis ~~ WicketMessage: component reportsTableWMC:reportListView:1:runrpt not found on page net.bplg.enerview.reports.ReportsConsole[id = 0], listener interface = [RequestListenerInterface name=IBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()]Root cause:org.apache.wicket.WicketRuntimeException: component reportsTableWMC:reportListView:1:runrpt not found on page net.bplg.enerview.reports.ReportsConsole[id = 0], listener interface = [RequestListenerInterface name=IBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()] at org.apache.wicket.request.AbstractRequestCycleProcessor.resolveListenerInterfaceTarget(AbstractRequestCycleProcessor.java:419) at org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage(AbstractRequestCycleProcessor.java:464) at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:139) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1246) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1366) at org.apache.wicket.RequestCycle.request(RequestCycle.java:498) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:444) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378) at org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109) at org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390) at org.springframework.security.ui.SessionFixationProtectionFilter.doFilterHttp(SessionFixationProtectionFilter.java:67) at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390) at org.springframework.security.ui.ExceptionTranslationFilter.doFilterHttp(ExceptionTranslationFilter.java:101) at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390) at org.springframework.security.providers.anonymous.AnonymousProcessingFilter.doFilterHttp(AnonymousProcessingFilter.java:105) at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390) at org.springframework.security.wrapper.SecurityContextHolderAwareRequestFilter.doFilterHttp(SecurityContextHolderAwareRequestFilter.java:91) at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390) at org.springframework.security.ui.AbstractProcessingFilter.doFilterHttp(AbstractProcessingFilter.java:277) at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390) at org.springframework.security.ui.logout.LogoutFilter.doFilterHttp(LogoutFilter.java:89) at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390) at org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:235) at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390) at org.springframework.security.util.FilterChainProxy.do
Re: wickethub.org
oh yeah, there's a post where we started figuring out some details about how this would work somewhere on this list Jonathan Locke wrote: > > > this is cool, although i still think this should be auto-updated through a > maven registry crawler. if everyone put the right meta information in > their wicket jars, this resource registry would be entirely automatic, > always fresh, running demos, etc... > > > francisco treacy-2 wrote: >> >> i came up with an idea during the last weeks, having some trouble >> finding wicket resources. >> >> although we have wicketstuff (which is great, and even more now with >> jeremy's awesome job of reorganizing it) i feel there are still lots >> of components, plugins or tools that are lost in cyberspace. thought >> it would be neat to keep a sort of "registry" with useful information >> for wicket developers. >> >> so i decided to quickly put some bits together from an old project and >> rebaptised it as "the wicket hub" - a simple prototype @ >> http://wickethub.org. >> it's meant to be flexible, so except for the title there are no >> required fields when you add/edit a "module". there are already some >> examples. >> >> let me know what you think about features, its relation with >> wicketstuff and if it's usable, etc. or even if the whole thing makes >> no sense - any suggestions appreciated. >> >> francisco >> >> ps: goes without saying, but [disclaimer: it's completely >> experimental] and be aware the place it's hosted is more like a >> shoebox than a server :) >> >> - >> 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/wickethub.org-tp20995774p21022750.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: wickethub.org
this is cool, although i still think this should be auto-updated through a maven registry crawler. if everyone put the right meta information in their wicket jars, this resource registry would be entirely automatic, always fresh, running demos, etc... francisco treacy-2 wrote: > > i came up with an idea during the last weeks, having some trouble > finding wicket resources. > > although we have wicketstuff (which is great, and even more now with > jeremy's awesome job of reorganizing it) i feel there are still lots > of components, plugins or tools that are lost in cyberspace. thought > it would be neat to keep a sort of "registry" with useful information > for wicket developers. > > so i decided to quickly put some bits together from an old project and > rebaptised it as "the wicket hub" - a simple prototype @ > http://wickethub.org. > it's meant to be flexible, so except for the title there are no > required fields when you add/edit a "module". there are already some > examples. > > let me know what you think about features, its relation with > wicketstuff and if it's usable, etc. or even if the whole thing makes > no sense - any suggestions appreciated. > > francisco > > ps: goes without saying, but [disclaimer: it's completely > experimental] and be aware the place it's hosted is more like a > shoebox than a server :) > > - > 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/wickethub.org-tp20995774p21022737.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: Autocomplete text concatenation
One idea I had was to do something like the following code: This class would be added to the AutocompleteTextField (as below). inputSoFar would be the input to the getChoices() method minus the string we are looking for, so for example: fred,jim,b inputSoFar would be 'fred,jim'. input (to getChoices( String input )) would be 'b' after chopping off "fred,jim," - once the user selects 'bob' from the autocompleter, then input would be 'bob' also. So finally in the ChangeBehavor class, inputSoFar + input would resolve to "fred,jim,bob" and be populated in the text field. Two problems with this: a) It seems a bit hokey. b) I have to store inputSoFar as a private member variable in the AutocompleteTextField, which seems like an overhead to me. Anyone got any thoughts? Many thanks, Graeme. public class ChangeBehavior extends AjaxFormComponentUpdatingBehavior { private static final long serialVersionUID = 8090648380154153004L; public ChangeBehavior() { super( "onchange" ); } /* (non-Javadoc) * @see org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior#onUpdate(org.apache.wicket.ajax.AjaxRequestTarget) */ @Override protected void onUpdate( AjaxRequestTarget target ) { String input = String.class.cast( getModelObject() ); setModel( new Model( inputSoFar + input ) ); target.addComponent( AutoCompleteContactTextField.this ); } } Graeme Knight wrote: > > Hi there! > > Something like that - but I was hoping it might be easy to somehow do this > with autocompletetextfield from wicket extensions - I guess there may be a > little trickery to manipulating the unsubmitted text in the textfield > itself (although this comes in as the input for getChoice so I was > wondering if it were somehow useable from that). > > > francisco treacy-2 wrote: >> >> if i understand correctly you need a "multi" autocompleter. >> >> do you mean something like this? >> http://digitarald.de/project/autocompleter/1-1/showcase/delicious-tags/ >> (i have integrated it with wicket, it's indeed used when you edit >> topics of a module in wickethub). >> >> francisco >> >> >> On Mon, Dec 15, 2008 at 8:36 PM, Graeme Knight >> wrote: >>> >>> Hi. >>> >>> Couldn't find an answer but perhaps this is a common thing to want to >>> do: >>> >>> Using an AutoCompleteTextField I want to allow the user to select >>> choices as >>> he types, then update the text area by appending the selected choice. >>> Similar to the way a web mail application would allow a user to type >>> email >>> address after email address and see them appended to the text field. >>> >>> Is there an easy way to achieve this? >>> >>> Many thanks, Graeme. >>> -- >>> View this message in context: >>> http://www.nabble.com/Autocomplete-text-concatenation-tp21020322p21020322.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 >> >> >> > > -- View this message in context: http://www.nabble.com/Autocomplete-text-concatenation-tp21020322p21021857.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: Modal window not appearing in IE
As you come through nabble, I trust you have read and understood the text that is shown prominently above the forum? > Before posting, please read "How to ask questions the smart > way" [1] and answer these questions for yourself: > > * Did you check out our live examples > * read our wiki > * search using google > If these fail to provide an answer, posting to the users list is > appropriate. Be sure to include full stack traces and code. Did > we mention that you read "How to ask questions the smart way" [1] > before posting? Martijn [1] http://www.catb.org/~esr/faqs/smart-questions.html On Mon, Dec 15, 2008 at 7:18 PM, ecornett wrote: > > Has anyone else had trouble with modal windows appearing in Firefox but not > IE and if so, what is a good solution? I can go into more details if > necessary. > -- > View this message in context: > http://www.nabble.com/Modal-window-not-appearing-in-IE-tp21018938p21018938.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 > > -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Autocomplete text concatenation
Hi there! Something like that - but I was hoping it might be easy to somehow do this with autocompletetextfield from wicket extensions - I guess there may be a little trickery to manipulating the unsubmitted text in the textfield itself (although this comes in as the input for getChoice so I was wondering if it were somehow useable from that). francisco treacy-2 wrote: > > if i understand correctly you need a "multi" autocompleter. > > do you mean something like this? > http://digitarald.de/project/autocompleter/1-1/showcase/delicious-tags/ > (i have integrated it with wicket, it's indeed used when you edit > topics of a module in wickethub). > > francisco > > > On Mon, Dec 15, 2008 at 8:36 PM, Graeme Knight > wrote: >> >> Hi. >> >> Couldn't find an answer but perhaps this is a common thing to want to do: >> >> Using an AutoCompleteTextField I want to allow the user to select choices >> as >> he types, then update the text area by appending the selected choice. >> Similar to the way a web mail application would allow a user to type >> email >> address after email address and see them appended to the text field. >> >> Is there an easy way to achieve this? >> >> Many thanks, Graeme. >> -- >> View this message in context: >> http://www.nabble.com/Autocomplete-text-concatenation-tp21020322p21020322.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 > > > -- View this message in context: http://www.nabble.com/Autocomplete-text-concatenation-tp21020322p21020726.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: Autocomplete text concatenation
This is also something you can do with object autocomplete from Wicketstuff francisco treacy wrote: if i understand correctly you need a "multi" autocompleter. do you mean something like this? http://digitarald.de/project/autocompleter/1-1/showcase/delicious-tags/ (i have integrated it with wicket, it's indeed used when you edit topics of a module in wickethub). francisco On Mon, Dec 15, 2008 at 8:36 PM, Graeme Knight wrote: Hi. Couldn't find an answer but perhaps this is a common thing to want to do: Using an AutoCompleteTextField I want to allow the user to select choices as he types, then update the text area by appending the selected choice. Similar to the way a web mail application would allow a user to type email address after email address and see them appended to the text field. Is there an easy way to achieve this? Many thanks, Graeme. -- View this message in context: http://www.nabble.com/Autocomplete-text-concatenation-tp21020322p21020322.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 -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Ajax response not completed
Beats me, seems like somethings wrong,maybe a bug..? I'd create a quickstart (really easy with maven, http://wicket.apache.org/quickstart.html ) and attach it to a jira issue.. If the code are somewhat working, and the only annoying thing are the mouse icon you could try to set the mouse icon manually.. Emanuele Gesuato wrote: Emanuele Gesuato wrote: - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org Here the code of the html and java part: **html** "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> http://www.w3.org/1999/xhtml";> JStore Click me *** java *** add(new AjaxFallbackLink("link"){ @Override public void onClick(AjaxRequestTarget target) { PageParameters params = new PageParameters(); params.add("file", "/home/eg/test.pdf"); params.add("type", "application/pdf"); setResponsePage(FakePageForAjaxPrint.class, params); } }); The other source code are available in the previous email. I forgot to mention that i don't have any error on my browser (Firefox 3.0.4). Javascript works fine but the mouse pointer still kepy busy. I've just tried with firefox 2.0.0.18 but i've got the same problem. The page i'm accessing is a bookmarkable page: could it be related ? Thanks for any help, Emanuele - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Autocomplete text concatenation
if i understand correctly you need a "multi" autocompleter. do you mean something like this? http://digitarald.de/project/autocompleter/1-1/showcase/delicious-tags/ (i have integrated it with wicket, it's indeed used when you edit topics of a module in wickethub). francisco On Mon, Dec 15, 2008 at 8:36 PM, Graeme Knight wrote: > > Hi. > > Couldn't find an answer but perhaps this is a common thing to want to do: > > Using an AutoCompleteTextField I want to allow the user to select choices as > he types, then update the text area by appending the selected choice. > Similar to the way a web mail application would allow a user to type email > address after email address and see them appended to the text field. > > Is there an easy way to achieve this? > > Many thanks, Graeme. > -- > View this message in context: > http://www.nabble.com/Autocomplete-text-concatenation-tp21020322p21020322.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: Remove bulletpoints from messagetext in feedbackpanel
Yeah, and if you want you can also put on a special icon[1], like warning triangle etc for the separate states a feedback message can be.. [1] http://jacorre.com/design/cssnavmenus.htm Adriano dos Santos Fernandes wrote: HITECH79 escreveu: Hallo, how can i remove the bulletpoints from messagetext in the feedbackpanel?? With CSS stylesheet: li.feedbackPanelINFO { list-style-type: none; } li.feedbackPanelERROR { list-style-type: none; } Adriano - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Semigenerating Selenium case's with wicketTester?
Hi Guys I were wondering if any of you have tried todo some semi auto generation with wicketTester for selenium? I mean create a wicket tester that runs a scenario and at the same time it runs a selenium rc and check's if the result are the same somehow? Im not sure if it gives any advantage over just a plain selenium test, but are just wondering.. -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Autocomplete text concatenation
Hi. Couldn't find an answer but perhaps this is a common thing to want to do: Using an AutoCompleteTextField I want to allow the user to select choices as he types, then update the text area by appending the selected choice. Similar to the way a web mail application would allow a user to type email address after email address and see them appended to the text field. Is there an easy way to achieve this? Many thanks, Graeme. -- View this message in context: http://www.nabble.com/Autocomplete-text-concatenation-tp21020322p21020322.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: No WebApplicationContext found: no ContextLoaderListener registered?
Sorry, copied wrong anchor :( should be http://static.springframework.org/spring/docs/2.5.x/reference/beans.html#context-create 2008/12/14, Marat Radchenko : > You didn't init spring in your web.xml > See > http://static.springframework.org/spring/docs/2.5.x/reference/beans.html#beans-factory-scopes-other-web-configuration > > 2008/12/13 wicketworker : > > > > > I am getting the following exception while starting my jetty server : > > > > java.lang.IllegalStateException: No WebApplicationContext found: no > > ContextLoaderListener registered? > >at > > > org.springframework.web.context.support.WebApplicationContextUtils.getRequiredWebApplicationContext(WebApplicationContextUtils.java:70) > >at > > > org.apache.wicket.spring.SpringWebApplicationFactory.createApplication(SpringWebApplicationFactory.java:83) > >at > org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:543) > >at > org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97) > >at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > >at > > > org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:620) > >at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) > > > > Basically i was able to get @SpringBean annotation working, now i am trying > > to append scope="session" to one of my bean in the spring config.. > Following > > is what i have done: > > > > In Web.xml > > - > > > > wicket.uti-webapp > > org.apache.wicket.protocol.http.WicketFilter > > > > applicationFactoryClassName > > > > > org.apache.wicket.spring.SpringWebApplicationFactory > > > > > >applicationBean > >wicketApplication > > > > > > > > > > > > > org.springframework.web.context.request.RequestContextListener > > > > > > In Spring-Config > > > >> class="com.uprr.app.uti.webapp.UtiWebApplication"> > > > > > > > > Can someone please tell me whats wrong? > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > View this message in context: > http://www.nabble.com/No-WebApplicationContext-found%3A-no-ContextLoaderListener-registered--tp20984524p20984524.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: How to donate to Wicket Project
As for the Wicket team, nothing is more welcome than being part of the community and contributing patches and on the mailing list etc. Cheers, Eelco On Sat, Dec 13, 2008 at 3:47 PM, Ayodeji Aladejebi wrote: > Thank you..I think the book is the way to go. I will probably buy it for all > all the java developers in my office > Maybe i should order like 10 copies > > Hmm..sounds good > > thanks > > On Sat, Dec 13, 2008 at 2:16 PM, James Carman > wrote: > >> Of course, the ASF would always love donations: >> >> http://www.apache.org/foundation/contributing.html >> >> Also, you can buy from the Wicket store and part of the proceeds will >> help the ASF (I believe that's how it's set up): >> >> http://www.cafepress.com/apachewicket >> >> The coffee mug is very nice and I also have the golf shirt! Wish I >> had a chance to play golf. >> >> On Sat, Dec 13, 2008 at 8:23 AM, Bruno Borges >> wrote: >> > I don't think the project would accept money that way. If you really >> wanna >> > do that, just buy the book Wicket in Action and Eelco and Martijn will be >> > more than happy. =D >> > >> > But, the best way to really contribute to the project is >> > - submitting bugs >> > - fixing them >> > - helping writing documentation >> > - spreading the word (blogging) >> > >> > =) Good luck with that! And thanks for showing us your willing to >> > contribute. >> > >> > Best regards, >> > Bruno Borges >> > blog.brunoborges.com.br >> > +55 21 76727099 >> > >> > "The glory of great men should always be >> > measured by the means they have used to >> > acquire it." >> > - Francois de La Rochefoucauld >> > >> > >> > On Sat, Dec 13, 2008 at 8:14 AM, Ayodeji Aladejebi > >wrote: >> > >> >> Hi, >> >> I am really grateful for the Wicket Project and really feel like buying >> >> beer >> >> for the wicket team but when i checked sponsorship under the Wicket >> Site, >> >> >> >> it saw too much information except paying methods >> >> >> >> I don't use PayPal as I am not transferring money from US or europe, i >> >> rather require an international Wire transfer account. >> >> >> >> Thank you for the Wicket Project >> >> >> >> >> >> -- >> >> Aladejebi Ayodeji A., >> >> DabarObjects Solutions >> >> Phone: +234 9 481 7 156 >> >> Mobile: +234 803 589 1780 >> >> Email: d...@dabarobjects.com >> >> Web: www.dabarobjects.com >> >> Blog: blog.dabarobjects.com >> >> >> >> Participate, Collaborate, Innovate >> >> Join Community: >> >> http://www.cowblock.net/ >> >> >> >> Get A Free Blog: >> >> http://blogs.cowblock.net/ >> >> >> > >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > > -- > Aladejebi Ayodeji A., > DabarObjects Solutions > Phone: +234 9 481 7 156 > Mobile: +234 803 589 1780 > Email: d...@dabarobjects.com > Web: www.dabarobjects.com > Blog: blog.dabarobjects.com > > Participate, Collaborate, Innovate > Join Community: > http://www.cowblock.net/ > > Get A Free Blog: > http://blogs.cowblock.net/ > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Modal window not appearing in IE
Has anyone else had trouble with modal windows appearing in Firefox but not IE and if so, what is a good solution? I can go into more details if necessary. -- View this message in context: http://www.nabble.com/Modal-window-not-appearing-in-IE-tp21018938p21018938.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [OT] wicket users around the world
Heh +10, seems pretty interesting indeed, very nice graphics... Nino.Martinez wrote: > > Interesting, why not localize the app, so we get it in english? :) > > Quan Zhou wrote: >> Beijing China.I'm using wicket to develop webgame named FBM >> (www.wedomo.com),it's >> 600,000 registers, and about 10,000 players online in average. >> I also develop my game master tools and log analyzers with wicket. >> I love it so much. >> >> 2008/12/15 Juri Prokofjev >> >> >>> Estonia, Tallinn >>> >>> I've tried many frameworks, but wicket is one of my favorite. >>> >>> On Mon, Dec 15, 2008 at 8:39 AM, Ashika Umanga Umagiliya >>> wrote: >>> Sri Lankan ,working in Japan > Kathmandu, Nepal > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> -- >>> http://www.autoladu.ee - kõik varuosad ühes kohas >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >>> >> >> > > -- > -Wicket for love > > Nino Martinez Wael > Java Specialist @ Jayway DK > http://www.jayway.dk > +45 2936 7684 > > > - > 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/-OT--wicket-users-around-the-world-tp20962108p21018519.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
Using YUI or DOJO for context menu ?
Hi there, I've seen two components for integrating a contextual menu in wicket: the yui and the dojo based. Have you got experience in any of them ? What are the major differences ? I'm just using the yui context menu, but i need to add an image on every MenuItem. It seems that this context menu doesn't have support for it: is it better to improve this component or passing to the dojo one (which seems to have this support). I'm not very skilled with wicket and i need some help on how implmenting the image in the menuitem. I've seen that the MenuItem is not a Component and doesn't have an html counterpart. How could i change this component for adding this feature ? Thanks for your help, Emanuele - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wickethub.org
+1 On Mon, Dec 15, 2008 at 5:52 PM, francisco treacy < francisco.tre...@gmail.com> wrote: > thanks daniel for the input. > > wickethub ideally could also be used to keep track of abandoned > projects, so i might add a date of last activity -something like that- > if it makes sense. > > how many times you don't really know where you're standing with a > "wicket integration with [put sth here]" (code quality, updates, > compatibility and so on) ? > > anyway, before adding features and fixing stuff i'd like to make sure > people are interested. > > francisco > > > On Sun, Dec 14, 2008 at 1:42 PM, dtoffe wrote: > > > >I like your idea, there are many wicket related projects in > sourceforge > > and googlecode, some are empty but some are very interesting. Added three > > links. > >Please check the Topics field, I cannot modify a value and have the > old > > values erased, they keep appearing and acumulating with the new values. > > > > Cheers, > > > > Daniel > > > > > > francisco treacy-2 wrote: > >> > >> i came up with an idea during the last weeks, having some trouble > >> finding wicket resources. > >> > >> although we have wicketstuff (which is great, and even more now with > >> jeremy's awesome job of reorganizing it) i feel there are still lots > >> of components, plugins or tools that are lost in cyberspace. thought > >> it would be neat to keep a sort of "registry" with useful information > >> for wicket developers. > >> > >> so i decided to quickly put some bits together from an old project and > >> rebaptised it as "the wicket hub" - a simple prototype @ > >> http://wickethub.org. > >> it's meant to be flexible, so except for the title there are no > >> required fields when you add/edit a "module". there are already some > >> examples. > >> > >> let me know what you think about features, its relation with > >> wicketstuff and if it's usable, etc. or even if the whole thing makes > >> no sense - any suggestions appreciated. > >> > >> francisco > >> > >> ps: goes without saying, but [disclaimer: it's completely > >> experimental] and be aware the place it's hosted is more like a > >> shoebox than a server :) > >> > >> - > >> 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/wickethub.org-tp20995774p2059.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: No WebApplicationContext found: no ContextLoaderListener registered?
Yep. Here's an example of what I typically use: http://svn.carmanconsulting.com/public/wicket-advanced/trunk/src/main/webapp/WEB-INF/web.xml On Mon, Dec 15, 2008 at 10:51 AM, wicketworker wrote: > > Figured out the issue. basically we need to have two listeners in the web.xml > ContextLoaderListener , and RequestContextListener. > > > > wicketworker wrote: >> >> I am getting the following exception while starting my jetty server : >> >> java.lang.IllegalStateException: No WebApplicationContext found: no >> ContextLoaderListener registered? >> at >> org.springframework.web.context.support.WebApplicationContextUtils.getRequiredWebApplicationContext(WebApplicationContextUtils.java:70) >> at >> org.apache.wicket.spring.SpringWebApplicationFactory.createApplication(SpringWebApplicationFactory.java:83) >> at >> org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:543) >> at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97) >> at >> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) >> at >> org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:620) >> at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) >> >> Basically i was able to get @SpringBean annotation working, now i am >> trying to append scope="session" to one of my bean in the spring config.. >> Following is what i have done: >> >> In Web.xml >> - >> >> wicket.uti-webapp >> org.apache.wicket.protocol.http.WicketFilter >> >> applicationFactoryClassName >> >> org.apache.wicket.spring.SpringWebApplicationFactory >> >> >> applicationBean >> wicketApplication >> >> >> >> >> >> org.springframework.web.context.request.RequestContextListener >> >> >> In Spring-Config >> >> > class="com.uprr.app.uti.webapp.UtiWebApplication"> >> >> >> >> Can someone please tell me whats wrong? >> >> >> >> >> >> >> >> >> >> >> >> >> > > -- > View this message in context: > http://www.nabble.com/No-WebApplicationContext-found%3A-no-ContextLoaderListener-registered--tp20984524p21016296.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: wickethub.org
thanks daniel for the input. wickethub ideally could also be used to keep track of abandoned projects, so i might add a date of last activity -something like that- if it makes sense. how many times you don't really know where you're standing with a "wicket integration with [put sth here]" (code quality, updates, compatibility and so on) ? anyway, before adding features and fixing stuff i'd like to make sure people are interested. francisco On Sun, Dec 14, 2008 at 1:42 PM, dtoffe wrote: > >I like your idea, there are many wicket related projects in sourceforge > and googlecode, some are empty but some are very interesting. Added three > links. >Please check the Topics field, I cannot modify a value and have the old > values erased, they keep appearing and acumulating with the new values. > > Cheers, > > Daniel > > > francisco treacy-2 wrote: >> >> i came up with an idea during the last weeks, having some trouble >> finding wicket resources. >> >> although we have wicketstuff (which is great, and even more now with >> jeremy's awesome job of reorganizing it) i feel there are still lots >> of components, plugins or tools that are lost in cyberspace. thought >> it would be neat to keep a sort of "registry" with useful information >> for wicket developers. >> >> so i decided to quickly put some bits together from an old project and >> rebaptised it as "the wicket hub" - a simple prototype @ >> http://wickethub.org. >> it's meant to be flexible, so except for the title there are no >> required fields when you add/edit a "module". there are already some >> examples. >> >> let me know what you think about features, its relation with >> wicketstuff and if it's usable, etc. or even if the whole thing makes >> no sense - any suggestions appreciated. >> >> francisco >> >> ps: goes without saying, but [disclaimer: it's completely >> experimental] and be aware the place it's hosted is more like a >> shoebox than a server :) >> >> - >> 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/wickethub.org-tp20995774p2059.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: DropDownChoice with Model for data and HashMap of key/values
Oh yeah I didn't mean the admins if that what you were referring to in the '5 of us', I just thought maybe more of a community input, like other development mailing lists I'm a part of. But anyway, solution found! cheers, Steve On 15 Dec 2008, at 15:49, Igor Vaynberg wrote: On Mon, Dec 15, 2008 at 6:02 AM, Steve Swinsburg wrote: After a fresh start on a Monday, I figured out how to use a Hashmap in a DropDownChoice component when separate id/display values are required. I was hoping to get a bit more of an explicit answer from the community on this one though, since I was completely stumped, which is what I thought this mailing list was for. keep in mind that there are 5 of us and 400 of you. i believe i gave you more then enough of a push in the right direction to solve the problem. and looks like you did. -igor Anyway, its solved: final LinkedHashMap preferences = new LinkedHashMap(); preferences.put("0", "some choice"); preferences.put("1", "some other choice"); preferences.put("2", "and another choice"); IModel dropDownModel = new Model() { public Object getObject() { return new ArrayList(preferences.keySet()); } }; DropDownChoice profileChoice = new DropDownChoice("preference", dropDownModel, new IChoiceRenderer() { public String getDisplayValue(Object object) { return preferences.get(object); } public String getIdValue(Object object, int index) { return object.toString(); } }); I am using a CompoundPropertyModel for my form where the CPM has the property 'preference', so no need to explicitly tie the two together in the DDC. Hopefully this will help others. cheers, Steve On 12 Dec 2008, at 18:39, Igor Vaynberg wrote: that map needs to be in the choicerenderer. your domain model type is integer, ddc looks like this: dropdownchoice(string id, imodel model, imodel> choices, ichoicerenderer renderer) -igor On Fri, Dec 12, 2008 at 10:36 AM, Steve Swinsburg wrote: Thanks. I now have this: IModel dropDownModel = new Model() { protected Object load() { preferences.put(0, "some choice"); preferences.put(1, "some other choice"); preferences.put(2, "and another choice"); return preferences; //get the HashMap } }; DropDownChoice profileChoice = new DropDownChoice("profile", dropDownModel, new IChoiceRenderer() { public String getDisplayValue(Object object) { return preferences.get(object); } public String getIdValue(Object object, int index) { return object.toString(); } }); where my Form is given a CompoundPropertyModel with one of the parameters being "profile". But, I'm getting an error about my choices being null. java.lang.NullPointerException: List of choices is null - Was the supplied 'Choices' model empty? I can feel I'm close but what have I missed? cheers, Steve On 12 Dec 2008, at 18:14, Igor Vaynberg wrote: new ichoicerenderer() { Object getDisplayValue(integer object) { return choices.get((integer)object); } String getIdValue(integer object, int index) { return object.tostring(); } } -igor On Fri, Dec 12, 2008 at 9:46 AM, Steve Swinsburg wrote: Hi all, I've been over all the DDC examples but am still stumped by this one. I have a model (pojo) which holds user preferences, the preference for each item being an Integer. ie public class UserPreferences { int preferenceOne; int preferenceTwo constructor getters and setters for the ints above } I now want to render a form that has a DDC for each of the preferences in my model. The list of choices that needs to go into the DDC should come from a HashMap or similar (in reality it will come from a database) because I want to store the number attached to the item selected, not the display string. ie LinkedHashMap choices = new LinkedHashMap() choices.put("43", "Something"); choices.put("64", "Something else"); choices.put("87", "blah"); which should render the select list as: Choice Something Choice Something else blah When clicking submit, the value (ie 43) should be attached to the relevant item in the Model (ie preferenceOne would be 43), then I can save it to the database. Everything I've tried with ChoiceRenderer etc seems to get mixed up with the different data models etc. Can someone please present a snippet of code on how to do this, I'm at my wits end. I cannot for the life of me find any explicit info separating the models/data as above. thanks, Steve - 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.
Re: IDataProvider/LoadableDetachableModel for indexed lists
class addressmodel extends ldm { private final int idx; private final imodel customer; public addressmodel(imodel customer, address address) { this.customer=customer; this.idx=customer.getaddresses().indexof(address); } public object load() { return customer.getobject().getaddresses().get(idx); } } -igor On Mon, Dec 15, 2008 at 3:04 AM, cretzel wrote: > > Hi, > > what's the best way to implement an IDataProvider and a LoadableDetachable > for an indexed list? Suppose I have a Customer who has a list of Adresses. > > class Customer { >List adresses; > } > > Now I want to implement a data provider/ldm for the adresses of a customer. > I suppose the usual way is an IDataProvider as an inner class which refers > to the customer model of the component, like: > > class AdressDataProvider implements IDataProvider { >public Iterator iterator() { >Customer c = (Customer)Component.this.getModel(); // somehow get the > customer model >return c.getAdresses().iterator(); >} > >public IModel model(Object o) { >Adress a = (Adress) o; >// Return an LDM which loads the adress by id. >return new AdressLoadableDetachableModel(a.getId()); >} > } > > Question: How would I implement this, when the adress does not have an ID > (e.g. it's a Hibernate Embeddable/CollectionOfElements) but can only be > identified by its index in the customer.adresses list? How do I keep > reference to the owning entity and the index? > > In fact, I know a solution, but I wonder if there's a common pattern to do > this. > > -- > View this message in context: > http://www.nabble.com/IDataProvider-LoadableDetachableModel-for-indexed-lists-tp21011916p21011916.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: No WebApplicationContext found: no ContextLoaderListener registered?
Figured out the issue. basically we need to have two listeners in the web.xml ContextLoaderListener , and RequestContextListener. wicketworker wrote: > > I am getting the following exception while starting my jetty server : > > java.lang.IllegalStateException: No WebApplicationContext found: no > ContextLoaderListener registered? > at > org.springframework.web.context.support.WebApplicationContextUtils.getRequiredWebApplicationContext(WebApplicationContextUtils.java:70) > at > org.apache.wicket.spring.SpringWebApplicationFactory.createApplication(SpringWebApplicationFactory.java:83) > at > org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:543) > at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:620) > at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) > > Basically i was able to get @SpringBean annotation working, now i am > trying to append scope="session" to one of my bean in the spring config.. > Following is what i have done: > > In Web.xml > - > > wicket.uti-webapp > org.apache.wicket.protocol.http.WicketFilter > > applicationFactoryClassName > > org.apache.wicket.spring.SpringWebApplicationFactory > > > applicationBean > wicketApplication > > > > > > org.springframework.web.context.request.RequestContextListener > > > In Spring-Config > > class="com.uprr.app.uti.webapp.UtiWebApplication"> > > > > Can someone please tell me whats wrong? > > > > > > > > > > > > > -- View this message in context: http://www.nabble.com/No-WebApplicationContext-found%3A-no-ContextLoaderListener-registered--tp20984524p21016296.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: DropDownChoice with Model for data and HashMap of key/values
On Mon, Dec 15, 2008 at 6:02 AM, Steve Swinsburg wrote: > After a fresh start on a Monday, I figured out how to use a Hashmap in a > DropDownChoice component when separate id/display values are required. I was > hoping to get a bit more of an explicit answer from the community on this > one though, since I was completely stumped, which is what I thought this > mailing list was for. keep in mind that there are 5 of us and 400 of you. i believe i gave you more then enough of a push in the right direction to solve the problem. and looks like you did. -igor > Anyway, its solved: > > final LinkedHashMap preferences = new LinkedHashMap(); > preferences.put("0", "some choice"); > preferences.put("1", "some other choice"); > preferences.put("2", "and another choice"); > > > IModel dropDownModel = new Model() { > public Object getObject() { > return new ArrayList(preferences.keySet()); > } > }; > > > DropDownChoice profileChoice = new DropDownChoice("preference", > dropDownModel, new IChoiceRenderer() { > > public String getDisplayValue(Object object) { > return preferences.get(object); > } > > public String getIdValue(Object object, int index) { >return object.toString(); > } > }); > > I am using a CompoundPropertyModel for my form where the CPM has the > property 'preference', so no need to explicitly tie the two together in the > DDC. > Hopefully this will help others. > cheers, > Steve > > > > > On 12 Dec 2008, at 18:39, Igor Vaynberg wrote: > > that map needs to be in the choicerenderer. your domain model type is > integer, ddc looks like this: > > dropdownchoice(string id, imodel model, imodel> > choices, ichoicerenderer renderer) > > -igor > > On Fri, Dec 12, 2008 at 10:36 AM, Steve Swinsburg > wrote: > > Thanks. > > I now have this: > > IModel dropDownModel = new Model() { > > protected Object load() { > > preferences.put(0, "some choice"); > > preferences.put(1, "some other choice"); > > preferences.put(2, "and another choice"); > > return preferences; //get the HashMap > > } > > }; > > DropDownChoice profileChoice = new DropDownChoice("profile", dropDownModel, > > new IChoiceRenderer() { > > > > public String getDisplayValue(Object object) { > > return preferences.get(object); > > } > > public String getIdValue(Object object, int index) { > > return object.toString(); > > } > > }); > > where my Form is given a CompoundPropertyModel with one of the parameters > > being "profile". But, I'm getting an error about my choices being null. > > java.lang.NullPointerException: List of choices is null - Was the supplied > > 'Choices' model empty? > > > I can feel I'm close but what have I missed? > > > > cheers, > > Steve > > > > > > On 12 Dec 2008, at 18:14, Igor Vaynberg wrote: > > new ichoicerenderer() { > > Object getDisplayValue(integer object) { > > return choices.get((integer)object); > > } > > String getIdValue(integer object, int index) { > > return object.tostring(); > > } > > } > > -igor > > > On Fri, Dec 12, 2008 at 9:46 AM, Steve Swinsburg > > wrote: > > Hi all, > > I've been over all the DDC examples but am still stumped by this one. I have > > a model (pojo) which holds user preferences, the preference for each item > > being an Integer. > > ie > > public class UserPreferences { > > int preferenceOne; > > int preferenceTwo > > constructor > > getters and setters for the ints above > > } > > I now want to render a form that has a DDC for each of the preferences in my > > model. The list of choices that needs to go into the DDC should come from a > > HashMap or similar (in reality it will come from a database) because I want > > to store the number attached to the item selected, not the display string. > > ie > > LinkedHashMap choices = new LinkedHashMap() > > choices.put("43", "Something"); > > choices.put("64", "Something else"); > > choices.put("87", "blah"); > > which should render the select list as: > > > > Choice Something > > Choice Something else > > blah > > > > When clicking submit, the value (ie 43) should be attached to the relevant > > item in the Model (ie preferenceOne would be 43), then I can save it to the > > database. > > Everything I've tried with ChoiceRenderer etc seems to get mixed up with the > > different data models etc. > > Can someone please present a snippet of code on how to do this, I'm at my > > wits end. I cannot for the life of me find any explicit info separating the > > models/data as above. > > > > thanks, > > Steve > > > > - > > 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...
Re: No WebApplicationContext found: no ContextLoaderListener registered?
org.springframework.web.context.ContextLoaderListener On Mon, Dec 15, 2008 at 10:45 AM, James Carman wrote: > No, you want the ContextLoaderListener, I believe. > > On Mon, Dec 15, 2008 at 10:07 AM, wicketworker wrote: >> >> I think I did. The below listner is what you are referring to right. I still >> get the same exception >> >> org.springframework.web.context.request.RequestContextListener >> >> >> Also,in my Application class's init method i have the following code: >> >> protected void init() { >>super.init(); >>this.addComponentInstantiationListener(new >> SpringComponentInjector(this)); >>this.getMarkupSettings().setStripWicketTags(true); >>this.getDebugSettings().setAjaxDebugModeEnabled(false); >> } >> >> Really appreciated if some one could help me out here.. >> >> >> java.lang.IllegalStateException: No WebApplicationContext found: no >> ContextLoaderListener registered? >>at >> org.springframework.web.context.support.WebApplicationContextUtils.getRequiredWebApplicationContext(WebApplicationContextUtils.java:70) >>at >> org.apache.wicket.spring.injection.annot.SpringComponentInjector.(SpringComponentInjector.java:74) >>at >> com.uprr.app.uti.webapp.UtiWebApplication.init(UtiWebApplication.java:42) >>at >> org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:561) >>at >> org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97) >> >> >> >> >> >> >> >> Marat Radchenko-2 wrote: >>> >>> You didn't init spring in your web.xml >>> See >>> http://static.springframework.org/spring/docs/2.5.x/reference/beans.html#beans-factory-scopes-other-web-configuration >>> >>> 2008/12/13 wicketworker : I am getting the following exception while starting my jetty server : java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered? at org.springframework.web.context.support.WebApplicationContextUtils.getRequiredWebApplicationContext(WebApplicationContextUtils.java:70) at org.apache.wicket.spring.SpringWebApplicationFactory.createApplication(SpringWebApplicationFactory.java:83) at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:543) at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:620) at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) Basically i was able to get @SpringBean annotation working, now i am trying to append scope="session" to one of my bean in the spring config.. Following is what i have done: In Web.xml - wicket.uti-webapp org.apache.wicket.protocol.http.WicketFilter applicationFactoryClassName org.apache.wicket.spring.SpringWebApplicationFactory applicationBean wicketApplication org.springframework.web.context.request.RequestContextListener In Spring-Config >>> class="com.uprr.app.uti.webapp.UtiWebApplication"> Can someone please tell me whats wrong? -- View this message in context: http://www.nabble.com/No-WebApplicationContext-found%3A-no-ContextLoaderListener-registered--tp20984524p20984524.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 >>> >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/No-WebApplicationContext-found%3A-no-ContextLoaderListener-registered--tp20984524p21015514.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: No WebApplicationContext found: no ContextLoaderListener registered?
No, you want the ContextLoaderListener, I believe. On Mon, Dec 15, 2008 at 10:07 AM, wicketworker wrote: > > I think I did. The below listner is what you are referring to right. I still > get the same exception > > org.springframework.web.context.request.RequestContextListener > > > Also,in my Application class's init method i have the following code: > > protected void init() { >super.init(); >this.addComponentInstantiationListener(new > SpringComponentInjector(this)); >this.getMarkupSettings().setStripWicketTags(true); >this.getDebugSettings().setAjaxDebugModeEnabled(false); > } > > Really appreciated if some one could help me out here.. > > > java.lang.IllegalStateException: No WebApplicationContext found: no > ContextLoaderListener registered? >at > org.springframework.web.context.support.WebApplicationContextUtils.getRequiredWebApplicationContext(WebApplicationContextUtils.java:70) >at > org.apache.wicket.spring.injection.annot.SpringComponentInjector.(SpringComponentInjector.java:74) >at > com.uprr.app.uti.webapp.UtiWebApplication.init(UtiWebApplication.java:42) >at > org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:561) >at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97) > > > > > > > > Marat Radchenko-2 wrote: >> >> You didn't init spring in your web.xml >> See >> http://static.springframework.org/spring/docs/2.5.x/reference/beans.html#beans-factory-scopes-other-web-configuration >> >> 2008/12/13 wicketworker : >>> >>> I am getting the following exception while starting my jetty server : >>> >>> java.lang.IllegalStateException: No WebApplicationContext found: no >>> ContextLoaderListener registered? >>>at >>> org.springframework.web.context.support.WebApplicationContextUtils.getRequiredWebApplicationContext(WebApplicationContextUtils.java:70) >>>at >>> org.apache.wicket.spring.SpringWebApplicationFactory.createApplication(SpringWebApplicationFactory.java:83) >>>at >>> org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:543) >>>at >>> org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97) >>>at >>> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) >>>at >>> org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:620) >>>at >>> org.mortbay.jetty.servlet.Context.startContext(Context.java:140) >>> >>> Basically i was able to get @SpringBean annotation working, now i am >>> trying >>> to append scope="session" to one of my bean in the spring config.. >>> Following >>> is what i have done: >>> >>> In Web.xml >>> - >>> >>> wicket.uti-webapp >>> >>> org.apache.wicket.protocol.http.WicketFilter >>> >>> applicationFactoryClassName >>> >>> org.apache.wicket.spring.SpringWebApplicationFactory >>> >>> >>>applicationBean >>>wicketApplication >>> >>> >>> >>> >>> >>> org.springframework.web.context.request.RequestContextListener >>> >>> >>> In Spring-Config >>> >>> >> class="com.uprr.app.uti.webapp.UtiWebApplication"> >>> >>> >>> >>> Can someone please tell me whats wrong? >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/No-WebApplicationContext-found%3A-no-ContextLoaderListener-registered--tp20984524p20984524.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 >> >> >> > > -- > View this message in context: > http://www.nabble.com/No-WebApplicationContext-found%3A-no-ContextLoaderListener-registered--tp20984524p21015514.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: Question re wicket:enclosure tag and resource resolution with wicket:message tags
i do not think this is the irght way to go. the nesting is: so clearly the key is owned by the panel. these are the rules for wicket:message. keep in mind the tag is a convinience and so we try to keep it as simple as possible. you can always add a label that uses whatever you want as the localizer. -igor On Sun, Dec 14, 2008 at 9:23 PM, Ned Collyer wrote: > > I think it would be useful if the message resolution inside a > wicket:enclosure used the "child" (or implicit child) as the component that > is sent thru the localiser. > > This is the scenario > > OverviewPanel extends Panel > > > > > > > > > > # wicket:id="name">[name] > > > > > > > > > > > > > > # wicket:id="name">[name] > > > > > > > ProductsListView.properties > name=Product > > CustomersListView.properties > name=Customers > > I think what's happening at the moment is the OverviewPanel instance is > passed through to the localiser, and as such, its trying to resolve the > wicket:message tag "name" against the OverviewPanel. > > If the child element of the enclosure was sent to the localiser, then it > would make the above example work (This is a sensible usecase IMO). > > Any missing resources would then try to be resolved against the parent - aka > OverviewPanel. > > Any thoughts around this? > -- > View this message in context: > http://www.nabble.com/Question-re-wicket%3Aenclosure-tag-and-resource-resolution-with-wicket%3Amessage-tags-tp21008465p21008465.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: How to update base page panel from child page?
Hi, If you have a WebmarkupContainer (or whatever grouping component) that holds all components of your cart, you can put a public/protected method updateCart(AjaxRequestTarget target) on your base page. When you click on AjaxLink on child page, you can call that method. Same applies for any other ajax callback method that gets AjaxRequestTarget (for example in AjaxButton, AjaxSelfUpdatingBehavior etc...) for example: onClick(final AjaxRequestTarget target){ // do your stuff in here updateCart(target) } in your updateCart method you then do: protected void updateCart(AjaxrequestTarget target){ target.addComponent(cart); } - Mikko -Original Message- From: HHB [mailto:hubaghd...@yahoo.ca] Sent: 14. joulukuuta 2008 11:10 To: users@wicket.apache.org Subject: How to update base page panel from child page? Hey, I use inheritance to do layout. The base page containing main section that should contains child's markup, and cart section. Child pages are supposed to perform operations that will update the cart section (lets say via Ajax). My question is how to ask the cart section to updates its state (and redraw it) from a child page? I'm new to Wicket so forgive my questions :) Thanks for your time. -- View this message in context: http://www.nabble.com/How-to-update-base-page-panel-from-child-page--tp20998486p20998486.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: No WebApplicationContext found: no ContextLoaderListener registered?
I think I did. The below listner is what you are referring to right. I still get the same exception org.springframework.web.context.request.RequestContextListener Also,in my Application class's init method i have the following code: protected void init() { super.init(); this.addComponentInstantiationListener(new SpringComponentInjector(this)); this.getMarkupSettings().setStripWicketTags(true); this.getDebugSettings().setAjaxDebugModeEnabled(false); } Really appreciated if some one could help me out here.. java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered? at org.springframework.web.context.support.WebApplicationContextUtils.getRequiredWebApplicationContext(WebApplicationContextUtils.java:70) at org.apache.wicket.spring.injection.annot.SpringComponentInjector.(SpringComponentInjector.java:74) at com.uprr.app.uti.webapp.UtiWebApplication.init(UtiWebApplication.java:42) at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:561) at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97) Marat Radchenko-2 wrote: > > You didn't init spring in your web.xml > See > http://static.springframework.org/spring/docs/2.5.x/reference/beans.html#beans-factory-scopes-other-web-configuration > > 2008/12/13 wicketworker : >> >> I am getting the following exception while starting my jetty server : >> >> java.lang.IllegalStateException: No WebApplicationContext found: no >> ContextLoaderListener registered? >>at >> org.springframework.web.context.support.WebApplicationContextUtils.getRequiredWebApplicationContext(WebApplicationContextUtils.java:70) >>at >> org.apache.wicket.spring.SpringWebApplicationFactory.createApplication(SpringWebApplicationFactory.java:83) >>at >> org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:543) >>at >> org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97) >>at >> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) >>at >> org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:620) >>at >> org.mortbay.jetty.servlet.Context.startContext(Context.java:140) >> >> Basically i was able to get @SpringBean annotation working, now i am >> trying >> to append scope="session" to one of my bean in the spring config.. >> Following >> is what i have done: >> >> In Web.xml >> - >> >> wicket.uti-webapp >> >> org.apache.wicket.protocol.http.WicketFilter >> >> applicationFactoryClassName >> >> org.apache.wicket.spring.SpringWebApplicationFactory >> >> >>applicationBean >>wicketApplication >> >> >> >> >> >> org.springframework.web.context.request.RequestContextListener >> >> >> In Spring-Config >> >> > class="com.uprr.app.uti.webapp.UtiWebApplication"> >> >> >> >> Can someone please tell me whats wrong? >> >> >> >> >> >> >> >> >> >> >> >> >> -- >> View this message in context: >> http://www.nabble.com/No-WebApplicationContext-found%3A-no-ContextLoaderListener-registered--tp20984524p20984524.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 > > > -- View this message in context: http://www.nabble.com/No-WebApplicationContext-found%3A-no-ContextLoaderListener-registered--tp20984524p21015514.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: AjaxSelfUpdatingBehavior problem with HttpSessionStore
My co-worker commented on the jira. We have now a workaround for this problem but we'd need someone to confirm if it is a good or bad idea. We replaced line 751 from wicket-ajax.js: from "this.url = url;" to " this.url = Wicket.replaceAll(url,"&", "&");" Does anyone know if there are any caveats in doing this? And if there are any, are there any alternative ways to fix this? - Mikko -Original Message- From: Mikko Pukki [mailto:mikko.pu...@syncrontech.com] Sent: 8. joulukuuta 2008 15:50 To: users@wicket.apache.org Subject: RE: AjaxSelfUpdatingBehavior problem with HttpSessionStore Created JIRA issue WICKET-1971 and attached quickstart to it. https://issues.apache.org/jira/browse/WICKET-1971 -Original Message- From: Mikko Pukki [mailto:mikko.pu...@syncrontech.com] Sent: 4. joulukuuta 2008 22:49 To: users@wicket.apache.org Subject: RE: AjaxSelfUpdatingBehavior problem with HttpSessionStore Hi, Sorry, I forgot to mention that the wicket version we are using, is 1.3.5 - Mikko Lähettäjä: Mikko Pukki [mikko.pu...@syncrontech.com] Lähetetty: 4. joulukuuta 2008 22:29 Vastaanottaja: users@wicket.apache.org Aihe: AjaxSelfUpdatingBehavior problem with HttpSessionStore Hi everybody, Recently we discovered that SecondLevelCacheSessionStore was giving us a huge performance hit in some of our applications, so we decided to the old HttpSessionStore. Performance increase was significant and the impact on memory usage was relatively small, so we decided to stick with it. But we also discovered a problem when using AjaxSelfUpdatingbehavior combined with ajax buttons (when ajax button forwards to another page (let's call is PageB) by setResponsePage method). When a user hits a button and immediately after that an ajax request is fired by the AjaxSelfUpdatingbehavior, AccessStackPageMap thinks that user has pressed back button. This is what happens when this behavior occurs: 1) User pressed an ajax button 2) AjaxSelUpdatingBehavior fires another ajax request right after user pressed button 3) User ends up on PageB 4) now pressing ajax buttons on a new page has no effect WebRequestCycleProcessor's resolve method goes now to line 114: if (pageId != access.getId()) { // the page is no longer the active page // - ignore this request processRequest = false; } Wicket Ajax Debug prints something like this: INFO: Initiating Ajax POST request on ? wicket:interface=:1:inputForm:back::IActivePageBehaviorListener:0:&wicket:ignoreIfNotActive=true&random=0.6741350924814413 INFO: Invoking pre-call handler(s)... INFO: Received ajax response (31 characters) INFO: ERROR: Error while parsing response: Could not find root element INFO: Invoking post-call handler(s)... We debugged around a bit and discovered that when this behavior happens, AccessStackPageMap's accept method is called with instance of PageB as entry parameter. But instantly after that a request that came from AjaxSelfUpdatingBehavior calls also AccessStackPageMap's accept method (entry is now the page where AjaxSelfUpdatingBehavior was added). Now reference of PageB is removed from stack and AccessStackPagemap thinks that user is on previous page while user is really on PageB. I made simplest possible quickstart application that behaves like this. I put an AjaxSelfUpdatingBehavior to update a component on a page at 2 second intervals. Then I added an Ajax link and in its onSubmit method I put thread to sleep for 3 seconds before setResponsePage is called. That way this behavior can be repeated always when pressing the button. If the sleep is removed then of course this happens rarely, but in our real life application it shows up very frequently. Should I open a JIRA issue on this and attatch my quickstart application to it? Regards, Mikko - 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: wicket:border is adding table
Thorsten, Yes, that's exactly how BoxBorder draws the box/border. You'd probably prefer to use CSS. Regards - Cemal http://www.jWeekend.co.uk jWeekend Thorsten Scherler-3 wrote: > > Hi all, > > I am playing around with wicket and have a question. > > http://wicket.apache.org/examplenavomatic.html > > is the page I am following to develop a custom application. > > in my html I have > > > >Navigation Links > > someThing.html test > > > > > > > Footer Info > > > and in my java class I have: > > public class NavomaticBorder extends Border { > public NavomaticBorder(final String componentName) { > super(componentName); > add(HeaderContributor.forCss("css/default.css")); > add(new BoxBorder("navigationBorder")); > add(new BoxBorder("bodyBorder")); > add(new Footer("footer")); > } > } > > However in my resulting page I have a tabled rendered within. is rendered > normal and after this it is > rendered within a table: > > bgcolor = "black"> > > > bgcolor = "white"> > > >Navigation Links > ... > > I suspect that it may be because of new BoxBorder but I am not sure. > > Basically my question is: how to tell wicked to NOT render the table? > > TIA for any hints > > salu2 > > > -- > Thorsten Scherler > Open Source Java > > 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 > > > -- View this message in context: http://www.nabble.com/wicket%3Aborder-is-adding-table-tp21014647p21014999.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
wicket:border is adding table
Hi all, I am playing around with wicket and have a question. http://wicket.apache.org/examplenavomatic.html is the page I am following to develop a custom application. in my html I have Navigation Links test Footer Info and in my java class I have: public class NavomaticBorder extends Border { public NavomaticBorder(final String componentName) { super(componentName); add(HeaderContributor.forCss("css/default.css")); add(new BoxBorder("navigationBorder")); add(new BoxBorder("bodyBorder")); add(new Footer("footer")); } } However in my resulting page I have a tabled rendered within. is rendered normal and after this it is rendered within a table: Navigation Links ... I suspect that it may be because of new BoxBorder but I am not sure. Basically my question is: how to tell wicked to NOT render the table? TIA for any hints salu2 -- Thorsten Scherler Open Source Java 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: DropDownChoice with Model for data and HashMap of key/values
After a fresh start on a Monday, I figured out how to use a Hashmap in a DropDownChoice component when separate id/display values are required. I was hoping to get a bit more of an explicit answer from the community on this one though, since I was completely stumped, which is what I thought this mailing list was for. Anyway, its solved: final LinkedHashMap preferences = new LinkedHashMap(); preferences.put("0", "some choice"); preferences.put("1", "some other choice"); preferences.put("2", "and another choice"); IModel dropDownModel = new Model() { public Object getObject() { return new ArrayList(preferences.keySet()); } }; DropDownChoice profileChoice = new DropDownChoice("preference", dropDownModel, new IChoiceRenderer() { public String getDisplayValue(Object object) { return preferences.get(object); } public String getIdValue(Object object, int index) { return object.toString(); } }); I am using a CompoundPropertyModel for my form where the CPM has the property 'preference', so no need to explicitly tie the two together in the DDC. Hopefully this will help others. cheers, Steve On 12 Dec 2008, at 18:39, Igor Vaynberg wrote: that map needs to be in the choicerenderer. your domain model type is integer, ddc looks like this: dropdownchoice(string id, imodel model, imodel> choices, ichoicerenderer renderer) -igor On Fri, Dec 12, 2008 at 10:36 AM, Steve Swinsburg wrote: Thanks. I now have this: IModel dropDownModel = new Model() { protected Object load() { preferences.put(0, "some choice"); preferences.put(1, "some other choice"); preferences.put(2, "and another choice"); return preferences; //get the HashMap } }; DropDownChoice profileChoice = new DropDownChoice("profile", dropDownModel, new IChoiceRenderer() { public String getDisplayValue(Object object) { return preferences.get(object); } public String getIdValue(Object object, int index) { return object.toString(); } }); where my Form is given a CompoundPropertyModel with one of the parameters being "profile". But, I'm getting an error about my choices being null. java.lang.NullPointerException: List of choices is null - Was the supplied 'Choices' model empty? I can feel I'm close but what have I missed? cheers, Steve On 12 Dec 2008, at 18:14, Igor Vaynberg wrote: new ichoicerenderer() { Object getDisplayValue(integer object) { return choices.get((integer)object); } String getIdValue(integer object, int index) { return object.tostring(); } } -igor On Fri, Dec 12, 2008 at 9:46 AM, Steve Swinsburg wrote: Hi all, I've been over all the DDC examples but am still stumped by this one. I have a model (pojo) which holds user preferences, the preference for each item being an Integer. ie public class UserPreferences { int preferenceOne; int preferenceTwo constructor getters and setters for the ints above } I now want to render a form that has a DDC for each of the preferences in my model. The list of choices that needs to go into the DDC should come from a HashMap or similar (in reality it will come from a database) because I want to store the number attached to the item selected, not the display string. ie LinkedHashMap choices = new LinkedHashMap() choices.put("43", "Something"); choices.put("64", "Something else"); choices.put("87", "blah"); which should render the select list as: Choice Something Choice Something else blah When clicking submit, the value (ie 43) should be attached to the relevant item in the Model (ie preferenceOne would be 43), then I can save it to the database. Everything I've tried with ChoiceRenderer etc seems to get mixed up with the different data models etc. Can someone please present a snippet of code on how to do this, I'm at my wits end. I cannot for the life of me find any explicit info separating the models/data as above. thanks, Steve - 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 smime.p7s Description: S/MIME cryptographic signature
Re: Wicket-spring-tomcat integration
The url-pattern only supports using a wildcard at the end of the pattern (e.g., "/myapp/*") or as a extension mapping prefix (e.g., *.do). See section SRV.11.2 of the servlet specification, which can be downloaded from here: http://jcp.org/aboutJava/communityprocess/final/jsr154/index.html Therefore, I believe the closest you could do would be WicketFilter /a/* ... WicketFilter /b/* If that doesn't suit your needs, you might need to extend WicketFilter with a custom implementation. On Mon, Dec 15, 2008 at 3:11 AM, Arie Fishler wrote: > Hi, > > I am using wicket via tomcat integrated into spring using a filter with * > > org*.*apache*.*wicket*.protocol.*http*.WicketFilter > > The thing is that I want to map the wicket application to several url > patterns (to know which environment the user is coming from) > > > > Is there a way to map the filter to several patterns? like the below which > does not work... > > > > WicketFilter > > /*a*/* > > > > and > > > > WicketFilter > > /*b*/* > > >
Re: Remove bulletpoints from messagetext in feedbackpanel
HITECH79 escreveu: Hallo, how can i remove the bulletpoints from messagetext in the feedbackpanel?? With CSS stylesheet: li.feedbackPanelINFO { list-style-type: none; } li.feedbackPanelERROR { list-style-type: none; } Adriano - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Setting a relevant value for radio buttons without using RadioChoice
Hmmm but why not just do it with a LDM? Im a bit puzzled, heres what I do: RadioGroup eventTypeRadioGroup = new RadioGroup( "eventType"); eventTypeRadioGroup.setLabel(new Model("Type of Event")); ListView eventTypesListView = new ListView( "eventTypeRadios", Arrays.asList(EventType.values())) { @Override protected void populateItem(ListItem item) { item .add(new Radio("eventType", item .getModel())); item.add(new Label("label", new Model(item .getModel().getObject().getName(; item.add(new IconPanel("icons", item.getModelObject() .getIconTypes())); } }; eventTypesListView.setReuseItems(true); eventTypeRadioGroup.setRequired(true); eventTypeRadioGroup.add(eventTypesListView); add(eventTypeRadioGroup); Hmm this might be a bad example as I don't use LDM ../ But the important line are : item.add(new Radio("eventType", item.getModel())); if you select a certain radio within a group the group will return the radios objectmodel... Michael O'Cleirigh wrote: Hi Nino, I believe that this is not what Archie asked about, he wanted to place database id's in the value of the radios.. Dont know why he wanted to though... I might have gotten it wrongly though.. You're right that he wanted to use the database id but from his example there didn't seem to be any client side use of this information. My thinking is that he renders a list of users denoted by radio buttons and he want to encode the user id (for a LDM?) as the value for use on the form submission processing (i.e. which user to work with in the next stage). Because there is no requirement for the user id on the client side there is no reason to care about the value used by the Radio as it is just used internally by RadioGroup to know which model object to use when the form is submitted. There is no need for an IChoiceRenderer in this case because the Model object of each Radio is never rendered. He should just encode what he needs in the Model of each Radio and expect to find it in the model of the RadioGroup when the form submits. In his example: RadioGroup group=new RadioGroup("group", new Model(id)); final ArrayList selectOptionLevel = getDdcChoices(); ListView persons=new ListView("persons", selectOptionLevel) { /** * */ private static final long serialVersionUID = 1L; protected void populateItem(ListItem item) { SelectOptionLevel option = (SelectOptionLevel) item.getModelObject(); //Exampe of Icon setting item.add(new Label("levelImage", "< img src='images/icons/icon1.gif'/>").setEscapeModelStrings(false)); Radio radio = new Radio( "radio", new Model(option.getValue()) // <-- this is how to wire the Radio Model item.add(radio); item.add(new Label("name", option.getLabel())); } }; group.add(persons); add(group); This will make group.getModelObject() return the option.getValue() (i.e the user id) for the selected view item and allow him to proceed to the next step. Regards, Mike -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Remove bulletpoints from messagetext in feedbackpanel
Hallo, how can i remove the bulletpoints from messagetext in the feedbackpanel?? Thanks... -- View this message in context: http://www.nabble.com/Remove-bulletpoints-from-messagetext-in-feedbackpanel-tp21011955p21011955.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
IDataProvider/LoadableDetachableModel for indexed lists
Hi, what's the best way to implement an IDataProvider and a LoadableDetachable for an indexed list? Suppose I have a Customer who has a list of Adresses. class Customer { List adresses; } Now I want to implement a data provider/ldm for the adresses of a customer. I suppose the usual way is an IDataProvider as an inner class which refers to the customer model of the component, like: class AdressDataProvider implements IDataProvider { public Iterator iterator() { Customer c = (Customer)Component.this.getModel(); // somehow get the customer model return c.getAdresses().iterator(); } public IModel model(Object o) { Adress a = (Adress) o; // Return an LDM which loads the adress by id. return new AdressLoadableDetachableModel(a.getId()); } } Question: How would I implement this, when the adress does not have an ID (e.g. it's a Hibernate Embeddable/CollectionOfElements) but can only be identified by its index in the customer.adresses list? How do I keep reference to the owning entity and the index? In fact, I know a solution, but I wonder if there's a common pattern to do this. -- View this message in context: http://www.nabble.com/IDataProvider-LoadableDetachableModel-for-indexed-lists-tp21011916p21011916.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
Help,How to load and display the file(csv) with popup window?
Dear all, How can i do to click button to load/dispaly a file (csv) with pop up window? like the below, click the image,btn_statistics to dispaly one file (csv) . # /btn_statistics.gif The below is my java codes, but it can not work, Please help me. Thank you a lot. WebResource importCSV = new WebResource() { @Override public IResourceStream getResourceStream() { File dummy = new File("C:/Documents and Settings/caihuanw/Desktop/Advertiser_csv/csvFile1.txt"); FileUtility fileUtil = new FileUtility(); byte[] bytes = fileUtil.getBytesFromFile(dummy); // get bytes //remove dummy file dummy.delete(); return new ByteArrayResourceStream(bytes, "text/plain"); } }; importCSV.setCacheable(false); final ResourceLink rlinkXls = new ResourceLink("linkToXls", importCSV); add(rlinkXls); -- View this message in context: http://www.nabble.com/Help%2CHow-to-load-and-display-the-file%28csv%29-with-popup-window--tp21011528p21011528.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [OT] wicket users around the world
Interesting, why not localize the app, so we get it in english? :) Quan Zhou wrote: Beijing China.I'm using wicket to develop webgame named FBM (www.wedomo.com),it's 600,000 registers, and about 10,000 players online in average. I also develop my game master tools and log analyzers with wicket. I love it so much. 2008/12/15 Juri Prokofjev Estonia, Tallinn I've tried many frameworks, but wicket is one of my favorite. On Mon, Dec 15, 2008 at 8:39 AM, Ashika Umanga Umagiliya wrote: Sri Lankan ,working in Japan Kathmandu, Nepal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- http://www.autoladu.ee - kõik varuosad ühes kohas - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Setting a relevant value for radio buttons without using RadioChoice
Thanks Mike, thats just what I needed and works perfectly. Thanks for explaining it to me. Archie -- View this message in context: http://www.nabble.com/Setting-a-relevant-value-for-radio-buttons-without-using-RadioChoice-tp20978297p21010170.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: Setting a relevant value for radio buttons without using RadioChoice
Thanks thats taught me something about radio groups that I wasn't able to find in the books I have. Your example was very helpful. Michael O'Cleirigh wrote: > > Hi ArchieC, > > The way RadioGroup works is that it renders to a hidden field and stores > the selected value of the selected Radio. > > i.e. the rendered markup is not that relevant and the model object for > the selected radio will be placed into the model for the RadioGroup when > the form submits. > > This is how I've used it: > > RadioGroup group = new RadioGroup ("group", new Model()); > > > Radio apple = new Radio ("apple", new Model (Fruit.APPLE)); > > Radio orange = new Radio ("orange", new Model (Fruit.ORANGE)); > > > group.setModelObject (Fruit.APPLE); > > Here by default the first radio is selected. > > When the form submits group.getModelObject() will return either > Fruit.APPLE or Fruit.ORANGE depending on the selected radio button > > In your case the RadioGroup will have as its model Object the value of > the selected radio.getModelObject() so whatever the value of "user" is > coming from the PropertyModel() for the selected option. > > Regards, > > Mike > > > >> RadioGroup group=new RadioGroup("group", new Model(id)); >> final ArrayList selectOptionLevel = >> getDdcChoices(); >> ListView persons=new ListView("persons", selectOptionLevel) { >> /** >> * >> */ >> private static final long serialVersionUID = 1L; >> >> >> protected void populateItem(ListItem item) { >> SelectOptionLevel option = (SelectOptionLevel) >> item.getModelObject(); >> >> //Exampe of Icon setting >> item.add(new Label("levelImage", "< img >> src='images/icons/icon1.gif'/>").setEscapeModelStrings(false)); >> >> Radio radio = new Radio( >> "radio", >> new PropertyModel(modelObject, "user") >> >> <~~ Need to set the value of the radio to >> >> >> my option.getValue() value. >> ); >> item.add(radio); >> item.add(new Label("name", option.getLabel())); >> } >> }; >> group.add(persons); >> add(group); >> >> Apart from not getting a value it all looks great just as I want. >> > > > - > 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/Setting-a-relevant-value-for-radio-buttons-without-using-RadioChoice-tp20978297p21010152.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: Redirecting with original query string
It retains them for the original request. The intercept page doesn't need to know about them. If you care, you can set the PageParamaters yourself, or construct the page with the original parameters. Martijn On Mon, Dec 15, 2008 at 8:46 AM, Arie Fishler wrote: > Basically I do not find this class you mention. > > I am using AuthenticatedWebApplication which is calling another (similar?) > class which is RestartResponseAtInterceptPageException. > > This exception handles the redirectToInterceptPage method...which saves the > continuation URL and just redirects to the relevant page (in the > authnetication case this is the sign in page). > I did not find any indication that passes the query string parameters to the > sign in page. > > Can you elaborate on this please? > > Thanks, > Arie > > On Sun, Dec 14, 2008 at 8:37 PM, Martijn Dashorst < > martijn.dasho...@gmail.com> wrote: > >> This is default behavior with at least wicket auth-roles. See >> RedirectToInterceptPageException >> >> Martijn >> >> On Sun, Dec 14, 2008 at 7:27 PM, Arie Fishler wrote: >> > Hi, >> > >> > In the authentication mechanism, there is apossibility to define a Sign >> In >> > page. when user has no sufficient permission he is automatically >> redirected >> > to that page. >> > >> > Is it possible that the sign in page will have the original query string >> of >> > the the request? >> > >> > Like having a sign in page with PageParameters or just ensuring that the >> > redirect to the sign in page will consist the original query string. >> > >> > Thanks. >> > >> >> >> >> -- >> Become a Wicket expert, learn from the best: http://wicketinaction.com >> Apache Wicket 1.3.4 is released >> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket-spring-tomcat integration
Hi, I am using wicket via tomcat integrated into spring using a filter with * org*.*apache*.*wicket*.protocol.*http*.WicketFilter The thing is that I want to map the wicket application to several url patterns (to know which environment the user is coming from) Is there a way to map the filter to several patterns? like the below which does not work... WicketFilter /*a*/* and WicketFilter /*b*/*
Re: Ajax response not completed
Emanuele Gesuato wrote: - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org Here the code of the html and java part: **html** "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> http://www.w3.org/1999/xhtml";> JStore Click me *** java *** add(new AjaxFallbackLink("link"){ @Override public void onClick(AjaxRequestTarget target) { PageParameters params = new PageParameters(); params.add("file", "/home/eg/test.pdf"); params.add("type", "application/pdf"); setResponsePage(FakePageForAjaxPrint.class, params); } }); The other source code are available in the previous email. I forgot to mention that i don't have any error on my browser (Firefox 3.0.4). Javascript works fine but the mouse pointer still kepy busy. I've just tried with firefox 2.0.0.18 but i've got the same problem. The page i'm accessing is a bookmarkable page: could it be related ? Thanks for any help, Emanuele - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org