Re: wicket 10 production ready plan
Great work, thanks Martin and the rest of the team! Thies On Wed, Jan 10, 2024, 07:29 Martin Grigorov wrote: > Hi, > > We work on the non-technical tasks (press release, announcement, etc.). > IMO it should be released in the next few weeks! > > Martin > > On Wed, Jan 10, 2024 at 7:13 AM any sdk wrote: > > > Hello wicket team, > > > > May I ask you when the wicket 10 production ready version will be > released? > > > > > > > https://stackoverflow.com/questions/77790782/apache-wicket-10-production-release-date > > >
Re: Wicket on Heroku with multiple dyno's
That looks promising, thanks! On Wed, May 6, 2015 at 11:05 AM, Martijn Dashorst martijn.dasho...@gmail.com wrote: Have you enabled heroku's new support for semi-sticky sessions? https://blog.heroku.com/archives/2015/4/28/introducing_session_affinity Martijn On Wed, May 6, 2015 at 1:02 AM, Thies Edeling tedel...@gmail.com wrote: Hi, I can't seem to get a Wicket app running on Heroku with multiple dyno's. Heroku doesn't have sticky sessions so I need a form of distributed sessions. I found a few old threads on running Wicket without sticky sessions but the solutions either do not work or I'm missing something. My stack is Wicket 6.19.0 and Jetty 9.2 and I'm trying to use Redis to share the session between the dyno's/nodes. When I store the HttpSession on the Jetty level I run into serialization issues with my @SpringBean annotated dependencies as the serializer tries to serialize the proxies. Marking @SpringBean annotated fields with transient will fix this but for some reason it seems to be invalid. When I use a SessionStoreProvider from https://github.com/baholladay/WicketRedisSession there's still a lot of stuff ending up in the HttpSession; giving me the same No serializer found for class com.sun.proxy.$Proxy105 exception for @SpringBeans. Any ideas? I'm getting a bit clueless :) cheers, Thies -- Become a Wicket expert, learn from the best: http://wicketinaction.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket on Heroku with multiple dyno's
Hi, I can't seem to get a Wicket app running on Heroku with multiple dyno's. Heroku doesn't have sticky sessions so I need a form of distributed sessions. I found a few old threads on running Wicket without sticky sessions but the solutions either do not work or I'm missing something. My stack is Wicket 6.19.0 and Jetty 9.2 and I'm trying to use Redis to share the session between the dyno's/nodes. When I store the HttpSession on the Jetty level I run into serialization issues with my @SpringBean annotated dependencies as the serializer tries to serialize the proxies. Marking @SpringBean annotated fields with transient will fix this but for some reason it seems to be invalid. When I use a SessionStoreProvider from https://github.com/baholladay/WicketRedisSession there's still a lot of stuff ending up in the HttpSession; giving me the same No serializer found for class com.sun.proxy.$Proxy105 exception for @SpringBeans. Any ideas? I'm getting a bit clueless :) cheers, Thies
Re: Support for optgroup ?
thanks! On Thu, Jun 5, 2014 at 1:48 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Look at: http://mail-archives.apache.org/mod_mbox/wicket-users/200912.mbox/%3c303141550912040641r1e00841dudaacfefda9497...@mail.gmail.com%3E 2014-06-05 1:41 GMT+03:00 Thies Edeling tedel...@gmail.com: Is there any support for optgroup's in Wicket? I can only find some examples using ListView's and other hacky solutions so I'm guessing there isn't :) Thanks ! gr Thies
Re: Support for optgroup ?
I just noticed, thanks for the update ! On Thu, Jun 5, 2014 at 8:45 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Ah.. and token was: private static final String TOKEN = value=\\; 2014-06-05 9:42 GMT+03:00 Martin Makundi martin.maku...@koodaripalvelut.com : The optgroup code might be buggy, here is a fresh one: private String previouslyAppendedOptGroupLabel; private int choices; /** * @see org.apache.wicket.markup.html.form.AbstractChoice#onComponentTagBody(org.apache.wicket.markup.MarkupStream, org.apache.wicket.markup.ComponentTag) */ @Override protected void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag) { previouslyAppendedOptGroupLabel = null; choices = getChoices().size(); super.onComponentTagBody(markupStream, openTag); } /** * @see org.apache.wicket.markup.html.form.AbstractChoice#appendOptionHtml(org.apache.wicket.util.string.AppendingStringBuffer, java.lang.Object, int, java.lang.String) */ @Override protected void appendOptionHtml(AppendingStringBuffer buffer, T choice, int index, String selected) { AppendingStringBuffer tmp = new AppendingStringBuffer(50); super.appendOptionHtml(tmp, choice, index, selected); if (getChoiceRenderer() instanceof IStyledChoiceRenderer) { IStyledChoiceRendererT styledChoiceRenderer = (IStyledChoiceRendererT) getChoiceRenderer(); String currentOptGroupLabel = styledChoiceRenderer.getOptGroupLabel(choice); if (!Utils.equalsOrNull(currentOptGroupLabel, previouslyAppendedOptGroupLabel)) { // OptGroup changed if (previouslyAppendedOptGroupLabel != null) { endOptGroup(buffer); } if (currentOptGroupLabel != null) { // OptGroup started int start = tmp.indexOf(option); StringBuilder label = new StringBuilder(currentOptGroupLabel.length() + 19); label.append(optgroup label=\).append(currentOptGroupLabel).append(\); tmp.insert(start, label); } } if ((currentOptGroupLabel != null) (index == (choices-1))) { // Last option group must end too endOptGroup(tmp); } { String cssClass = styledChoiceRenderer.getOptionCssClassName(choice); if (cssClass != null) { int start = tmp.indexOf(option); tmp.insert(start + 7, getClass(cssClass)); } } previouslyAppendedOptGroupLabel = currentOptGroupLabel; } buffer.append(tmp); } /** * @param cssClass * @return StringBuilder */ private StringBuilder getClass(String cssClass) { return new StringBuilder( class=\).append(cssClass).append(\); } /** * @see org.apache.wicket.markup.html.form.AbstractSingleSelectChoice#getDefaultChoice(java.lang.Object) */ @Override protected CharSequence getDefaultChoice(Object selected) { CharSequence charSequence = super.getDefaultChoice(selected); if (charSequence.toString().contains(TOKEN) (getChoiceRenderer() instanceof IStyledChoiceRenderer)) { AppendingStringBuffer buffer = new AppendingStringBuffer(charSequence); IStyledChoiceRendererT styledChoiceRenderer = (IStyledChoiceRendererT) getChoiceRenderer(); String cssClass = styledChoiceRenderer.getOptionCssClassName(null); if (!Utils.isEmpty(cssClass)) { buffer.insert(buffer.indexOf(TOKEN), getClass(cssClass)); return buffer; } } return charSequence; } /** * @param tmp */ private void endOptGroup(AppendingStringBuffer tmp) { // OptGroup ended int start = tmp.lastIndexOf(/option); tmp.insert(start + 9, /optgroup); } 2014-06-05 9:37 GMT+03:00 Thies Edeling tedel...@gmail.com: thanks! On Thu, Jun 5, 2014 at 1:48 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Look at: http://mail-archives.apache.org/mod_mbox/wicket-users/200912.mbox/%3c303141550912040641r1e00841dudaacfefda9497...@mail.gmail.com%3E 2014-06-05 1:41 GMT+03:00 Thies Edeling tedel...@gmail.com: Is there any support for optgroup's in Wicket? I can only find some examples using ListView's and other hacky solutions so I'm guessing there isn't :) Thanks ! gr Thies
Support for optgroup ?
Is there any support for optgroup's in Wicket? I can only find some examples using ListView's and other hacky solutions so I'm guessing there isn't :) Thanks ! gr Thies
Incorrect error message?
Hi With 6.12.0 I have: val border = new Border(border) val l = new Label(l, label) l.setOutputMarkupId(true) border.add(l) and when handling an ajax call, I'm add/replacing it in the wrong spot in the hierarchy: val replacement = new Label(l, labe2l) replacement.setOutputMarkupId(true) addOrReplace(replacement) target.add(replacement) Wicket gives me a MarkupNotFoundException which is a little odd and least put me in the complete wrong direction. It doesn't seem like the correct exception, right? org.apache.wicket.markup.MarkupNotFoundException: Markup not found for Component: [Component id = l] at org.apache.wicket.Component.internalRender(Component.java:2347) at org.apache.wicket.Component.render(Component.java:2307) gr, Thies
Re: Rendering order of header contributions
Thanks! On Wed, Mar 20, 2013 at 12:58 PM, Martin Grigorov mgrigo...@apache.org wrote: Hi Thies, Check https://github.com/martin-g/blogs/commit/d5a248a3a3d5369c9cdc66604eba384428e9d0a0 By using custom IHeaderResponse you can promote any kind of HeaderItem. On Wed, Mar 20, 2013 at 1:06 PM, Thies Edeling tedel...@gmail.com wrote: Hello, Using Wicket 6.5.0, how can I change the order on how Wicket renders the head section. I have an AbstractBasePage which every page extends, in this page I have: wicket:head meta http-equiv=X-UA-Compatible content=IE=9; IE=8; IE=7; IE=EDGE / meta http-equiv=Content-Type content=text/html; charset=UTF-8 / /wicket:head Some panels on the page add stuff to the head using an IHeaderContributor however they're put before the meta tags defined in the wicket:head.. Result: head link rel=stylesheet href=../../css/menu.css type=text/css media=screen/ script type=text/javascript src=../wicket/resource/org.apache.wicket.resource.JQueryResourceReference/jquery /jquery-ver-1362480357000.js/script script type=text/javascript src=../wicket/resource/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/res/js/wicket-event-jquery-ver-1362480357000.js /script ... etc... link rel=stylesheet type=text/css href=../wicket/resource/net.rrm.ehour.ui.timesheet.panel.OverviewPanel/css/overview-ver-1363710395000.css / meta http-equiv=X-UA-Compatible content=IE=9; IE=8; IE=7; IE=EDGE / /head Unfortunately, IE8 requires the X-UA-Compatible meta tag to be the first in the head section, otherwise it doesn't respect it. How can I have this meta tag defined in wicket:head rendered as the first child in the head section? Thanks! gr, Thies - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Rendering order of header contributions
In the end I went for using the headerItemComparator as it was a bit easier to implement without having to specify any other filters: getResourceSettings().setHeaderItemComparator(new ComparatorResourceAggregator.RecordedHeaderItem() { @Override public int compare(ResourceAggregator.RecordedHeaderItem o1, ResourceAggregator.RecordedHeaderItem o2) { if (o1.getItem() instanceof StringHeaderItem) { StringHeaderItem headerItem = (StringHeaderItem) o1.getItem(); if (headerItem.getString().toString().contains(X-UA-Compatible)) { return -1; } } return 0; } }); On Wed, Mar 20, 2013 at 1:01 PM, Thies Edeling tedel...@gmail.com wrote: Thanks! On Wed, Mar 20, 2013 at 12:58 PM, Martin Grigorov mgrigo...@apache.org wrote: Hi Thies, Check https://github.com/martin-g/blogs/commit/d5a248a3a3d5369c9cdc66604eba384428e9d0a0 By using custom IHeaderResponse you can promote any kind of HeaderItem. On Wed, Mar 20, 2013 at 1:06 PM, Thies Edeling tedel...@gmail.com wrote: Hello, Using Wicket 6.5.0, how can I change the order on how Wicket renders the head section. I have an AbstractBasePage which every page extends, in this page I have: wicket:head meta http-equiv=X-UA-Compatible content=IE=9; IE=8; IE=7; IE=EDGE / meta http-equiv=Content-Type content=text/html; charset=UTF-8 / /wicket:head Some panels on the page add stuff to the head using an IHeaderContributor however they're put before the meta tags defined in the wicket:head.. Result: head link rel=stylesheet href=../../css/menu.css type=text/css media=screen/ script type=text/javascript src=../wicket/resource/org.apache.wicket.resource.JQueryResourceReference/jquery /jquery-ver-1362480357000.js/script script type=text/javascript src=../wicket/resource/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/res/js/wicket-event-jquery-ver-1362480357000.js /script ... etc... link rel=stylesheet type=text/css href=../wicket/resource/net.rrm.ehour.ui.timesheet.panel.OverviewPanel/css/overview-ver-1363710395000.css / meta http-equiv=X-UA-Compatible content=IE=9; IE=8; IE=7; IE=EDGE / /head Unfortunately, IE8 requires the X-UA-Compatible meta tag to be the first in the head section, otherwise it doesn't respect it. How can I have this meta tag defined in wicket:head rendered as the first child in the head section? Thanks! gr, Thies - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Rendering order of header contributions
haha, well it's not the cleanest code there is :) On Wed, Mar 20, 2013 at 5:39 PM, Martin Grigorov mgrigo...@apache.org wrote: Thanks for sharing! P.S. Someone may compare Wicket with Perl now :-) On Wed, Mar 20, 2013 at 6:32 PM, Thies Edeling tedel...@gmail.com wrote: In the end I went for using the headerItemComparator as it was a bit easier to implement without having to specify any other filters: getResourceSettings().setHeaderItemComparator(new ComparatorResourceAggregator.RecordedHeaderItem() { @Override public int compare(ResourceAggregator.RecordedHeaderItem o1, ResourceAggregator.RecordedHeaderItem o2) { if (o1.getItem() instanceof StringHeaderItem) { StringHeaderItem headerItem = (StringHeaderItem) o1.getItem(); if (headerItem.getString().toString().contains(X-UA-Compatible)) { return -1; } } return 0; } }); On Wed, Mar 20, 2013 at 1:01 PM, Thies Edeling tedel...@gmail.com wrote: Thanks! On Wed, Mar 20, 2013 at 12:58 PM, Martin Grigorov mgrigo...@apache.org wrote: Hi Thies, Check https://github.com/martin-g/blogs/commit/d5a248a3a3d5369c9cdc66604eba384428e9d0a0 By using custom IHeaderResponse you can promote any kind of HeaderItem. On Wed, Mar 20, 2013 at 1:06 PM, Thies Edeling tedel...@gmail.com wrote: Hello, Using Wicket 6.5.0, how can I change the order on how Wicket renders the head section. I have an AbstractBasePage which every page extends, in this page I have: wicket:head meta http-equiv=X-UA-Compatible content=IE=9; IE=8; IE=7; IE=EDGE / meta http-equiv=Content-Type content=text/html; charset=UTF-8 / /wicket:head Some panels on the page add stuff to the head using an IHeaderContributor however they're put before the meta tags defined in the wicket:head.. Result: head link rel=stylesheet href=../../css/menu.css type=text/css media=screen/ script type=text/javascript src=../wicket/resource/org.apache.wicket.resource.JQueryResourceReference/jquery /jquery-ver-1362480357000.js/script script type=text/javascript src=../wicket/resource/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/res/js/wicket-event-jquery-ver-1362480357000.js /script ... etc... link rel=stylesheet type=text/css href=../wicket/resource/net.rrm.ehour.ui.timesheet.panel.OverviewPanel/css/overview-ver-1363710395000.css / meta http-equiv=X-UA-Compatible content=IE=9; IE=8; IE=7; IE=EDGE / /head Unfortunately, IE8 requires the X-UA-Compatible meta tag to be the first in the head section, otherwise it doesn't respect it. How can I have this meta tag defined in wicket:head rendered as the first child in the head section? Thanks! gr, Thies - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Close tag not found while it's there
With Wicket 6.5.0 I get a close tag not found error in one of my panels (worked for 1.4.x). Looking at the markup I don't see any obvious problems. Unexpected RuntimeException Last cause: Close tag not found for tag: wicket:container wicket:id=projectStatus id=id012. For PlaceholderPanel Components only raw markup is allow in between the tags but not other Wicket Component. Component: [PlaceholderPanel [Component id = 0]] Markup The problem is in file:/data/thies/projects/ehour/src/ehour_w15/eHour-wicketweb/target/classes/net/rrm/ehour/ui/timesheet/panel/ProjectOverviewPanel.html: wicket:container wicket:id=projectStatus div class=AggregateRow div class=foldCella wicket:id=foldLinkimg border=0 src=img/icon_up_off.gif wicket:id=foldImg//a/div div class=textCell style=width: 22% wicket:id=customerName[customerName]/div div class=textCell style=width:15% wicket:id=projectCode[projectCode]/div div class=textCell style=overflow:hidden;cursor:pointer wicket:id=projectNameContainerspan wicket:id=projectName[project name]/span/div div class=numbCell style=width:10% wicket:id=rate/div div class=numbCell style=width:8% wicket:id=monthHours24.50/div div class=numbCell style=width: 19% wicket:id=turnovereuro; 16.000/div /div span wicket:id=summaryRow/span /wicket:container
Re: Close tag not found while it's there
Thanks, I passed in the wrong component for replacement :) On 01/23/2013 08:15 PM, Bas Gooren wrote: Is PlaceholderPanel a component defined by your application? It does not allow nested wicket components. Met vriendelijke groet, Kind regards, Bas Gooren Op 23-1-2013 20:03, schreef Thies Edeling: With Wicket 6.5.0 I get a close tag not found error in one of my panels (worked for 1.4.x). Looking at the markup I don't see any obvious problems. Unexpected RuntimeException Last cause: Close tag not found for tag: wicket:container wicket:id=projectStatus id=id012. For PlaceholderPanel Components only raw markup is allow in between the tags but not other Wicket Component. Component: [PlaceholderPanel [Component id = 0]] Markup The problem is in file:/data/thies/projects/ehour/src/ehour_w15/eHour-wicketweb/target/classes/net/rrm/ehour/ui/timesheet/panel/ProjectOverviewPanel.html: wicket:container wicket:id=projectStatus div class=AggregateRow div class=foldCella wicket:id=foldLinkimg border=0 src=img/icon_up_off.gif wicket:id=foldImg//a/div div class=textCell style=width: 22% wicket:id=customerName[customerName]/div div class=textCell style=width:15% wicket:id=projectCode[projectCode]/div div class=textCell style=overflow:hidden;cursor:pointer wicket:id=projectNameContainerspan wicket:id=projectName[project name]/span/div div class=numbCell style=width:10% wicket:id=rate/div div class=numbCell style=width:8% wicket:id=monthHours24.50/div div class=numbCell style=width: 19% wicket:id=turnovereuro; 16.000/div /div span wicket:id=summaryRow/span /wicket:container - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: documentation
Wicket is open source, if you feel that the documentation is lacking - feel free to contribute. On Jan 22, 2013 5:54 PM, Philippe Demaison ph.demai...@gmail.com wrote: Hi Ondra and Kees, Are you kidding ? Are you saying that I need to - read a book released in 2009 covering wicket 1.3 ? - read http://www.wicket-library.com/wicket-examples/index.html (for which wicket version ? ) - read the Wicket Cookbook - read the migration from 1.x to 1.5 https://cwiki.apache.org/WICKET/migration-to-wicket-15.html - read the migration from 1.5 to 1.6 https://cwiki.apache.org/WICKET/migration-to-wicket-60.html to understand what are the Wicket's benefits and write a POC ? Are you saying that I need to google to read the best practices ? You know that framework adoption is linked to good documentation. Not only of course (quality are community are equally important) but documentation is essential. For example, I find these documentations much more appealing http://www.playframework.org/documentation/2.0.4/Home http://tapestry.apache.org/documentation.html https://developers.google.com/web-toolkit/doc/latest/DevGuide http://www.springsource.org/spring-framework#documentation Don't you ? Philippe 2013/1/22 Ondrej Zizka ozi...@redhat.com Hi Phillipe, you're right, the documentation deserves improvements. I would recommend you to start with the Wicket in Action book. That will give you the basic concepts of Wicket. Then continue with the examples from http://www.wicket-library.com/** wicket-examples/index.html http://www.wicket-library.com/wicket-examples/index.html. That will enforce what you learned in the book, and show more tricks. Then go through the Wicket Cookbook. That is a collection of solutions and best practices for common tasks. Then skim through https://cwiki.apache.org/** WICKET/migration-to-wicket-15.**html https://cwiki.apache.org/WICKET/migration-to-wicket-15.html and https://cwiki.apache.org/**WICKET/migration-to-wicket-60.**html https://cwiki.apache.org/WICKET/migration-to-wicket-60.html. It is quite easy to create non-ajax websites. I only have dificulties once it gets to Ajax. In such cases, this mailing list is very useful, and also stackoverflow and the multitude of blogs. Not sure what are your other options, but e.g. I prefer Wicket over JSF. Even big JSF fans claim that JSF is marginally better. And last thing, I would recommend to try Wicket in combination with JBoss AS 7, which made my development quick and easy - redeployment in 3 seconds, restart in 5 seconds, CDI, JPA and JAAS at hand, the Infinispan cache, easy management, ... my2c, Ondra On 01/22/2013 11:24 AM, Philippe Demaison wrote: Hi All, As Gabor Friedrich from the FAO, we are in my company, L'Oreal, comparing different web frameworks. Apache Wicket may be the best framework, may be usefull for my company, I don't know. I don't know because there is no clear documentation for a good evaluation. In fact the documentation is not good. The documentation is not up to date, not to say obsolete, not well organized and definitely not sexy. Sorry to being rude, I know this is difficult to do, but this is a major drawback when company and people evaluate Wicket. Some articles are for 1.4 or 1.5, not many for 6 Some articles are redundant. I am sure the folowing structure could be improved : https://cwiki.apache.org/**WICKET/framework-**documentation.html https://cwiki.apache.org/WICKET/framework-documentation.htmlis https://cwiki.apache.org/**WICKET/index.html https://cwiki.apache.org/WICKET/index.html https://cwiki.apache.org/**WICKET/documentation-index.**html https://cwiki.apache.org/WICKET/documentation-index.html The http://wicket.apache.org/ layout is good. Why not reorganize the documentation with this layout ? Managers want to see benefits, developpers want to learn fast(and have fun). I tested the mentionned blogs on http://wicket.apache.org/meet/** blogs.html http://wicket.apache.org/meet/blogs.html Here is what I found : Chillenious! - Eelco Hillenius - http://chillenious.wordpress.**com/ http://chillenious.wordpress.com/ last update : 2008 Here be beasties - Al Maw - http://herebebeasties.com/ last update : 2009 Codierspiel - Nathan Hamblen (runs on Wicket) - http://code.technically.us/ no a single wicket post Antwerkz - Justin Lee - http://antwerkz.com/wp/ empty Geertjan - Geertjan Wielenga - http://blogs.sun.com/geertjan http 404 ! Mystic Coders - Andrew Lombardi and Wicket by Example - Community driven are pointing to the same address : http://www.mysticcoders.com/**blog/ http://www.mysticcoders.com/blog/ For a wider adoption of Wicket, Best regards to all of you Philippe Demaison
IPropertiesLoader in 6.4
Hiya, I'm upgrading my application (quick plug: www.ehour.nl :) from Wicket 1.4 to 6.4 - yes, a bit of a leap :). There's one thing I struggle with and that's a custom property loader that I'm using. In 1.4 I extended PropertiesFactory.IPropertiesLoader which had a public Properties load(Class? clazz, final String path) method. In 6.4 this is replaced with a public Properties loadJavaProperties(InputStream inputStream) method. As the path is not provided anymore, how can I change the location from where the string properties are loaded in 6.4 ? Thanks! gr, Thies - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: IPropertiesLoader in 6.4
Thanks for the pointer. It turned out to be close, the ResourceStreamLocator uses a list of IResourceFinders to find a resource. New ones can be registered through getResourceSettings().setResourceFinders(ListIResourceFinder). grT On 01/22/2013 08:59 PM, Ernesto Reinaldo Barreiro wrote: Hi, It seems this ImputStream comes from IResourceStream resourceStream = context.getResourceStreamLocator() .locate(clazz, fullPath); on PropertiesFactor#load. So maybe you can hook onto that? On Tue, Jan 22, 2013 at 8:41 PM, Thies Edeling th...@rrm.net wrote: IPropertiesLoader - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: eHour
Heyy that looks familiar :) On Dec 24, 2010, at 16:12, Martin Grigorov mgrigo...@apache.org wrote: ~tedeling++ ;-) On Fri, Dec 24, 2010 at 3:42 PM, moèz ben rhouma benrhouma.m...@gmail.comwrote: A framework for timesheet management based on Wicket: eHour. http://javajeedevelopment.blogspot.com/2010/12/ehour-timesheet-management.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Tomcat 7 stylesheet problem
It's an odd thing with Tomcat. Do you have an index.html or index.jsp in your root dir? Remove that and suddenly it works. See the comments in https://issues.apache.org/jira/browse/WICKET-1205 On 08/06/2010 10:57 AM, PDiefent wrote: Hello, I tried to start my Wicket application with the new Tomcat 7.0.0 release and got a problem with the stylesheet path: Source HTML: ?xml version=1.0 encoding=UTF-8? html xmlns=http://www.w3.org/1999/xhtml; xmlns:wicket=http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd; xml:lang=en lang=en head meta http-equiv=Content-Type content=text/html;charset=UTF-8/meta meta http-equiv=cache-control content=no-cache,no-store/meta meta http-equiv=pragma content=no-cache,no-store/meta meta http-equiv=expires content=-1/meta titleWicketTest/title link rel=stylesheet type=text/css href=styles/tabStyles.css/link /head body div wicket:id=tabs class=tabpanel[tab panel]/div /body /html Browser HTML: ?xml version=1.0 encoding=UTF-8? html xmlns=http://www.w3.org/1999/xhtml; xmlns:wicket=http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd; xml:lang=en lang=en head meta http-equiv=Content-Type content=text/html;charset=UTF-8/meta meta http-equiv=cache-control content=no-cache,no-store/meta meta http-equiv=pragma content=no-cache,no-store/meta meta http-equiv=expires content=-1/meta titleWicketTest/title link rel=stylesheet type=text/css href=../styles/tabStyles.css/link The relative Path styles/tabStyles.css is changed to ../styles/tabStyles.css. In Tomcat 5 and 6 relaeses it works fine ... Any Ideas? Thanks, Peter
Re: Welcome Martin Grigorov as a core team member
hey Martin, congratulations! On 07/19/2010 06:58 PM, Jeremy Thomerson wrote: The Wicket team is happy to announce that Martin Grigorov was invited to join the Wicket team as a committer and PMC member, and he accepted! Martin's relentless patience, high quality patches and sustained energy haven't gone unnoticed. He has continually provided valuable insights and put a lot of effort into the project. He helps out many on the mailing lists and IRC channel. In Martin's first two days with access, he's already made 16 commits and closed several JIRA issues. We look forward to his continued contributions. Please join me in welcoming Martin to the team! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicketstuff down?
wicketstuff.org seems to be down, can someone start its Tomcat or whatever it's running? thx! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wiQuery components with server side state - live demo
Is this project still alive? The URL below now prompts for a username/password. Thx! On Wed, Mar 10, 2010 at 1:10 AM, Cemal Bayramoglu jweekend_for...@cabouge.com wrote: http://labs.jweekend.com/public/grid/GridRowExpanderPage On 3 March 2010 18:20, John Armstrong siber...@siberian.org wrote: Hi Richard, See here: http://www.extjs.com/examples/explorer.html#gridplugins http://www.extjs.com/examples/explorer.html#gridpluginsIn this case its a grid rather then a tree that expands and allows arbitrary components to be inserted beneath the row. Similar to a tree but very grid specific. Very excited about your work, so many hoops too jump through with GWT.. J On Wed, Mar 3, 2010 at 10:17 AM, Richard Wilkinson richard.wilkin...@jweekend.com wrote: Hi, John - im not to sure what you mean by row expanders, is that similar to what is provided on the tree grid? Ernesto - see comments inline: On 3 March 2010 12:59, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Hi Cemal, Other things that might be useful: -Offer (pluggable) support for grid events at client and server side (e.g. been notified when user navigates between pages, sorts a columns, etc). By pluggable I mean they can be enable if you need them so that no unnecessary server round trips are made. The gird always has to make a request to the server when the user navigates between pages, or changes the sorting, since this requires updated data. However these events are handled internally to the grid code and are not accessible to the developer. If required we could make these events accessible to the developer, either through adding a behaviour, or overriding a method. Other things such as selection notification events, or editing, can optionally be listened to by the developer, but these do not make a round trip to the server unless they are explicitly added. -Show an example of how the grid interacts with a normal wicket form. E.g. have a form the is submitted via Wicket AJAX and get the grid refreshed either via Wicket AJAX (i.e. the whole grid component is reloaded) or triggering a reload event on the grid (I see the master detail example is built using this last approach?) . yes, this page (http://labs.jweekend.com/public/gridjpa/ProjectEditPage ) uses a wicket form (not automatically generated though) to edit a row in one grid, which then triggers a data refresh in both grids, but does not do a wicket ajax component replace. However ajax component replace is supported as there is an AjaxRequestTarget, but I feel that forcing the grid to reload is cleaner. -All the examples seem to use JSON for data transfer? Is XML supported? The grid uses JSON, however this is all internal and transparent to the developer using the grid, so I dont see how supporting XML would be a benefit. It is not possible to construct JSON or XML and feed this into the grid manually, i.e. by telling the grid which url to use. The intended use is the same as with a Wicket DataTable, where an IDataProvider provides an iterator of beans which are rendered as rows in the grid. We use Wicket IConverter to convert each field of the bean to a String, then use a JSON library to construct the JSON response, which is then used in a custom wicket IRequestTarget for JSON. Best, Ernesto On Wed, Mar 3, 2010 at 11:33 AM, Cemal Bayramoglu jweekend_for...@cabouge.com wrote: -- Regards - Richard Wilkinson Developer, jWeekend: OO Java Technologies - Development and Training http://jWeekend.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: Can I develop without recompiling/restarting after every change?
Indeed JRebel reloads class structure changes as well. A very time-saving in combination with jetty. The sysdeo plugin that was recommended earlier is very outdated, hasn't been updated in 3 years. On 05/31/2010 06:01 PM, John Krasnay wrote: This is how I work too. It uses the hot swap feature of the JVM. It works if you only change method bodies, but if you make changes to the class structure (fields, method signatures, etc.) you have to restart the VM. Apparently jRebel can reload even these kinds of changes. I'm happy with hot swap, but then again my app only takes ~14 seconds to restart. jk On Sun, May 30, 2010 at 04:22:29PM -0500, Jeremy Thomerson wrote: On Sun, May 30, 2010 at 12:05 PM, Alex Objeleanalex.objel...@gmail.comwrote: jRebel allows you to change the java code without restarting the server. I've not used jRebel, but I commonly run my applications in debug mode in Eclipse and do not have to restart the server - even with code changes. The exception is changing a method signature of classes that are already loaded - but adding methods, classes, or changing 90% of code does not require a restart. So, what does jRebel add? Does it eliminate restarts even in these cases where the normal debug mode requires one? -- Jeremy Thomerson http://www.wickettraining.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: AjaxFormChoiceComponentUpdatingBehavior on RadioGroup
and how to wickettest an AjaxFormChoiceComponentUpdatingBehavior on a RadioGroup? Setting the value in a test is no problem but it never executes the behavior On 04/09/2010 02:45 PM, Per Newgro wrote: Am 09.04.2010 14:15, schrieb Robert Gründler: Wicket, Spring, DB4O You want this to be set? try @Override protected void populateItem(ListItemString item) { item.add(new RadioString(group-choice, item.getModel())); } Cheers Per - 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: Help with Wicket Adoption Numbers
The e-ticket application of the Dutch railways (NS) uses Wicket as well, https://www.ns.nl/eticket/ticket On 1/8/2010 10:32 AM, Martijn Dashorst wrote: The dutch railways use wicket in at least one of their online apps (http://eropuit.nl), I know some dutch government agencies are using Wicket, dutch royal airlines (KLM) had/have a project using Wicket. Martijn On Fri, Jan 8, 2010 at 10:09 AM,leo.erlands...@tyringe.com wrote: Hi, We also had the same consideration when we chose Wicket. But why choose an inferior technology just because of it's Adoption Numbers? Also, Wicket is becoming more and more popular as people see the light :) Check out Jobs Trends (Relative Growth) here (JSF vs Struts vs Wicket): http://www.indeed.com/jobtrends?q=Struts%2C+JSF%2C+Wicketl=relative=1 We have a couple of hundred customers and so far the feedback is great both from our Developers and our Software Architects. Customers like that the GUIs are faster due to the simplicity of Ajax Adoption in Wicket. I also know that several large privately held companies in Sweden are using Wicket, as well as large Government Agencies (e.g. the Swedish Immigration Office). Sincerely yours Leo Erlandsson Lester Chuacicowic...@gmail.com 2010-01-08 01:43 Sänd svar till users@wicket.apache.org Till users@wicket.apache.org Kopia Ärende Help with Wicket Adoption Numbers Hi, I am facing a hurdle that need crossing in my final attempt to push Wicket for use in an organization. I have: 1) Prototyped a small size module 2) Did 2-3 presentations on the key features and advantages of wicket No one is disputing my claims about productivity and good OO code that was the result. BUT, the technology evaluation committee is NOT recommending Wicket because of. of all things. - Wicket's Low Adoption Rate Can I find any numbers to blow this away? My alternative is to accept the finding and work with Struts 2. Which will mean the stack will need to expand to DWR (for security). I REALLY don't want to go there, and am even considering not taking part in this project due to the high risk involved, only 9 months to introduce huge changes to a system that has lots of legacy problems (took about 3 years to build). I think a lot of those years were spent wrestling with the monster that is EJB 1.1. The only way I thought the project can even be on time is to scrap the entire presentation layer (aka Struts) and redo it in Wicket with 1 dedicated developer while the rest of the team work on killing the beast that is EJB 1.1 by refactoring the biz code. Sigh, my choices are stark. It's either to keep the job and plough ahead and probably fail spectacularly 9 months later or go hungry and explain to my wife why we need to spend less on the kid.. It's easy to blame the tech committee but they did help me find wicket by rejecting my initial proposal to build the new system on a (JQuery+JSON+REST) framework, which can be very productive as well, if not as clean as Wicket. Sorry for rambling so much. Is there any way I can demolish the silly low adoption rate argument (omg I still don't believe it can be so lame)? Lester - 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
TabbedPanel, tabsVisibilityCache throws IndexOutOfBounds
With wicket extensions 1.4.3, TabbedPanel throws an IndexOutOfBounds exception on the tabsVisibilityCache array when adding more tabs after the panel is rendered. The onBeforeRender method calls the isTabVisible method which initializes an array of booleans for visibility caching. The length of this array is the amount of tabs added at that time. When - through ajax - a new tab is added after rendering and setSelectedTab is called an exception is thrown at: Boolean visible = tabsVisibilityCache[tabIndex]; Fix: increase the array before checking or use a List: if (tabsVisibilityCache.length tabIndex + 1) { tabsVisibilityCache = Arrays.copyOf(tabsVisibilityCache, tabIndex + 1); } Shall I create a jira issue for this? --Thies - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: TabbedPanel, tabsVisibilityCache throws IndexOutOfBounds
ok, https://issues.apache.org/jira/browse/WICKET-2594 created Igor Vaynberg wrote: yep, with a testcase -igor On Tue, Dec 1, 2009 at 5:14 AM, Thies Edeling th...@rrm.net wrote: With wicket extensions 1.4.3, TabbedPanel throws an IndexOutOfBounds exception on the tabsVisibilityCache array when adding more tabs after the panel is rendered. The onBeforeRender method calls the isTabVisible method which initializes an array of booleans for visibility caching. The length of this array is the amount of tabs added at that time. When - through ajax - a new tab is added after rendering and setSelectedTab is called an exception is thrown at: Boolean visible = tabsVisibilityCache[tabIndex]; Fix: increase the array before checking or use a List: if (tabsVisibilityCache.length tabIndex + 1) { tabsVisibilityCache = Arrays.copyOf(tabsVisibilityCache, tabIndex + 1); } Shall I create a jira issue for this? --Thies - 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: confirmation component
haha! back to the 80'ies with that quote :)) Martijn Dashorst wrote: link.add(new SimpleAttributeModifier(onclick, return confirm('Are you sure you want to play global thermonuclear war?');)); Martijn On Mon, Oct 19, 2009 at 2:37 PM, Md. Jahid Shohel ja...@outscore.se wrote: Hi, Is there any confirmation component in wicket/wicket-stuff? As an example, when user want to delete something, a popup window will come up and ask user whether they are sure what they are doing or not (as like JOptionPane in swing). thanks! //Jahid - 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: Open Source projects using Wicket
eHour is using Wicket (1.3, not yet migrated to 1.4). Site at http://www.ehour.nl/ with the svn repo at http://svn.te-con.nl/repos/ehour/trunk Dave B wrote: Hi, I'm in the process of evaluating Wicket (after an arduous JSF project, that has made us re-evaluate our web platform.) I've read Wicket in Action and whole bunch of blog and mailing list posts, done some proof-of-concept work and am now interested in reading source code from a project using Wicket, since I want to see Wicket in the wild. I know Artifactory uses Wicket, but their Subversion access instructions seem to be out of date. Does anyone know of an open source project using Wicket, so that I can peruse the source code? Many thanks, Dave - 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
Extending two panels with combined markup
Hi all, I have two panels, panel A B where panel B extends panel A. When using panel B but without giving it it's own markup file it defaults to using A's markup. Now I only want to define a different fragment for panel B but still reuse all of A's markup, is this possible? The findMarkupStream method is final and I didn't see any hooks on to provide a different lookup strategy. Thanks gr, Thies - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Charts with wicket
Jan Kriesten wrote: How is it possible to do charts (cheese, bars, radard etc) with wicket (in Ajax, Java etc) ? you may want to take a look at jfreechart. or use open flash chart: http://cwiki.apache.org/WICKET/open-flash-chart-and-wicket.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: VOTE: Rename Apache Wicket to Apache WicketFX
+1 but only because it's april fool's day :) Martijn Dashorst wrote: The Wicket PMC has discussed the following action. Because I think it is prudent that the Wicket community keeps evolving with the state of Java, I've created a board resolution to rename Wicket to WicketFX (thanks Igor for the suggestion!) WHEREAS, the Board of Directors deems it to be in the best interests of the Foundation and the Apache Wicket community to rename Apache Wicket to Apache WicketFX to get presentation slots at the JavaOne conference, and make it easier to obtain JSR status. NOW, THEREFORE, BE IT RESOLVED, that the project formerly known as the Apache Wicket project, be and hereby is renamed to Apache WicketFX; and be it further RESOLVED, that the Apache WicketFX PMC be and hereby is responsible to submit or propose new presentations and tutorials to the JavaOne Conference concerning Wicket and FX; and be it further RESOLVED, that the Apache WicketFX PMC be and hereby is responsible to submit the Apache WicketFX project to the JCP and obtain JSR status; and be it further RESOLVED, that the original Apache Wicket PMC be and hereby is dissolved of its responsibilities for this day, April 1st, 2009. [ ] +1, accept above resolution [ ] -1, don't accept above resolution, because ... This vote runs for just today, otherwise we won't be able to get it accepted by the board this month. Martijn - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: VOTE: Rename Apache Wicket to Apache WicketFX
Marko Sibakov wrote: Someone has already made logo for us http://3.bp.blogspot.com/_hXCPcd3owoI/RwvVRW1wlBI/ACE/UcDATzR4F9c/s1600/logo.jpg including lens flare, glow around the characters and textured font. now we just need it to rotate aka amiga demo style :) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How To Download Excel File?
I could be wrong - but maybe the question is about how best to structure this in Wicket .. it's just that easy (this is Scala, not Java): add( new Link( ImageLink.ID_LINK ) { def onClick = { val resourceStream = new ByteArrayResourceStream( xlsExporter.createExcel, application/vnd.ms-excel ); getRequestCycle.setRequestTarget( new ResourceStreamRequestTarget( resourceStream ) { override def getFileName = export.xls } ) } }) ByteArrayResourceStream is a simple implementation of IResourceStream. Creating the Excel bytearray is another issue (I suggest using Apache POI). or extend DynamicWebResource and return your own ResourceState with the excel file as a byte array returned by getData and use application/x-ms-excel as the content type. To link to the excel, mount the resource in your WebApplication, check the javadoc of ResourceReference on how to do so. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Graphs, Charts and Wicket
Thanks, that worked ! PY wrote: The javascript is done in the SWFObject. To make it work in a Ajax request you need to add : if (AjaxRequestTarget.get() != null){ AjaxRequestTarget.get().appendJavascript(js); } where js is the javascript generated . This will make evaluate the javascript and therefore add the flash object. -PY Thies Edeling-2 wrote: Works nicely but how to initialize the chart when the panel is loaded through an ajax req/res ? Is there a javascript method that writes out the Flash object tag ? That seems to be completely missing. On Mon, Feb 2, 2009 at 10:28 AM, Maarten Bosteels mbosteels@gmail.comwrote: Also have a look at http://cwiki.apache.org/WICKET/open-flash-chart-and-wicket.html Maarten On Thu, Jan 29, 2009 at 2:45 PM, newbieabc newbie...@yahoo.com wrote: If you don't mind, could you post your code to display the chart you used? I was interested the gradient fill chart they offered, but am really new to wicket and didn't understand how to add it in wicket. Thanks! Jurek Piasek wrote: I have been using Amcharts http://www.amcharts.com/ together with SWFObject http://cwiki.apache.org/WICKET/creating-a-behavior-to-use-a-javascript-library.html Regards, Jurek On Sun, Nov 16, 2008 at 8:20 PM, Yazbek, Daniel (Daniel) dyaz...@avaya.comwrote: Hi all, I'd like to put some simple bar graphs, pie graphs and possible line graphs into my wicket pages. Have any of you used a good framework that you can recommend, that also plays nicely with Wicket? Thanks! -Daniel. -- View this message in context: http://www.nabble.com/Graphs%2C-Charts-and-Wicket-tp20532374p21727142.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: Graphs, Charts and Wicket
Works nicely but how to initialize the chart when the panel is loaded through an ajax req/res ? Is there a javascript method that writes out the Flash object tag ? That seems to be completely missing. On Mon, Feb 2, 2009 at 10:28 AM, Maarten Bosteels mbosteels@gmail.comwrote: Also have a look at http://cwiki.apache.org/WICKET/open-flash-chart-and-wicket.html Maarten On Thu, Jan 29, 2009 at 2:45 PM, newbieabc newbie...@yahoo.com wrote: If you don't mind, could you post your code to display the chart you used? I was interested the gradient fill chart they offered, but am really new to wicket and didn't understand how to add it in wicket. Thanks! Jurek Piasek wrote: I have been using Amcharts http://www.amcharts.com/ together with SWFObject http://cwiki.apache.org/WICKET/creating-a-behavior-to-use-a-javascript-library.html Regards, Jurek On Sun, Nov 16, 2008 at 8:20 PM, Yazbek, Daniel (Daniel) dyaz...@avaya.comwrote: Hi all, I'd like to put some simple bar graphs, pie graphs and possible line graphs into my wicket pages. Have any of you used a good framework that you can recommend, that also plays nicely with Wicket? Thanks! -Daniel. -- View this message in context: http://www.nabble.com/Graphs%2C-Charts-and-Wicket-tp20532374p21727142.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
@SpringBean attr null after back button
Spring injected beans using the @SpringBean annotation seem to be null when I return to a page using the back button. I now reinject them manually using the InjectorHolder but I was wondering if this is expected behaviour or that something in my setup is wrong. thx Thies - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: @SpringBean attr null after back button
it isn't, that's what surprised me as it's a normal field. Igor Vaynberg wrote: make sure you dont declare those fields as transient. -igor On Wed, Jan 28, 2009 at 10:00 AM, Thies Edeling th...@rrm.net wrote: Spring injected beans using the @SpringBean annotation seem to be null when I return to a page using the back button. I now reinject them manually using the InjectorHolder but I was wondering if this is expected behaviour or that something in my setup is wrong. thx Thies - 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: @SpringBean attr null after back button
no I didn't, will try that but I thought that was default on 1.3 ? (running 1.3.5) Igor Vaynberg wrote: do you call Objects#setObjectStreamFactory to set wicket's objectstreamfractory instead of the default? wicket's doesnt handle proxies which may result in you seeing nulls. -igor On Wed, Jan 28, 2009 at 11:44 AM, Thies Edeling th...@rrm.net wrote: it isn't, that's what surprised me as it's a normal field. Igor Vaynberg wrote: make sure you dont declare those fields as transient. -igor On Wed, Jan 28, 2009 at 10:00 AM, Thies Edeling th...@rrm.net wrote: Spring injected beans using the @SpringBean annotation seem to be null when I return to a page using the back button. I now reinject them manually using the InjectorHolder but I was wondering if this is expected behaviour or that something in my setup is wrong. thx Thies - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket placeholder for tr component causing invalid markup
the_adam wrote: Pills wrote: I'm pretty sure what you need is wicket:enclosure [1] instead That would be the case if I've wanted to hide certain rows forever, unless I'm largely mistaken. I want to be able to switch the visibility of certain table rows and since Wicket's AJAX works by replacing given DOM elements with parts of the DOM tree from the response I need a placeholder to be there, which is exactly opposite of what wicket:enclosure tag is for. That's exactly what wicket:enclosure does; otherwise you'd have to wrap the row in a WebMarkupContainer to keep a reference in the DOM. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Help,How to download all files in one folder ?
Now that's a funny and handy site ;) Vit Rozkovec wrote: Sorry, but: http://letmegooglethatforyou.com/?q=java+zip+files Vitek wch2001 wrote: thanks , Pills. How can I zip it ? thanks Pills wrote: Zip them on the fly, then download the zip. wch2001 a écrit : in the folder: c:/cw/adsmart, there are 3 files: aa.txt, bb.txt, cc.txt, how can i download it ? if it possible that when clicking button/link and so on to download those 3 files? thanks PSkarthic wrote: I am also a newbie but i will try could u be please more specific or elabrate - 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
FormComponent's persistent state and ajax
Hi all Whenever I have a FormComponent which value was persisted in a cookie with setPersistent(true), the value is not restored when the component is loaded in an ajax response. The value is restored when it's loaded during a normal page render though. I tried calling the CookieValuePersister manually but to no avail. Is this possible somehow? regards Thies - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: TabbedPanel#addTab
Yes you can add a new or replace existing tabs. Just add the MultiTabbedPanel to an ajaxrequesttarget to update the tabs. alexander.elsholz wrote: Hi, exists a possibility to add a new tab to an ajax-tabbed-pane without replacing existing instance? the reason, because of i wont replace my tab is to hold the component-state of the other tabs. regards alex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TabbedPanel#addTab
I don't understand your question :) the tab list is just a list with AbstractTabs. Retrieve the list (getTabs() on TabbedPanel), add a new AbstractTab et voila. alexander.elsholz wrote: hi, i don't understand your solution. int i counter=0; ... AjaxTabbedPanel() tab = new AjaxTabbedPanel(tabs, new ArrayList()) add(tab); add(new AjaxLink(link) { public void onClick(AjaxRequestTarget target) { tab.add(new AbstractTab(new Model(tab + counter)) { public Panel getPanel(String panelId) { return new ..; } }); target.addComponent(tab); } }); vut i don't know how to add a new entry in tabbedpanes model. regards ales Thies Edeling wrote: Yes you can add a new or replace existing tabs. Just add the MultiTabbedPanel to an ajaxrequesttarget to update the tabs. alexander.elsholz wrote: Hi, exists a possibility to add a new tab to an ajax-tabbed-pane without replacing existing instance? the reason, because of i wont replace my tab is to hold the component-state of the other tabs. regards alex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Panel as instance variable of parent ?
Thanks! I was more worried about preventing garbage collection etc. But I guess that when a component is loaded in memory all of it's children should be as well so any reference is valid. Martijn Dashorst wrote: unless you have a clear indication that keeping the reference is causing you pain, I should not worry about it. A reference takes up 4 bytes iirc, so if you have 1024 of them in your app instance, that will take a 4kb hit. Now that is nothing to worry about. Here's a histogram snapshot (jmap -histo pid) of memory usage of one of our production boxes: num #instances#bytes class name -- 1: 1013497 268442672 [C 2: 3430701 164673648 java.util.HashMap$Entry 3:54768690858392 [Ljava.util.HashMap$Entry; 4:11530370210936 [B 5:60156755782288 [Ljava.lang.Object; 6: 121803548721400 java.lang.String 7:12519644284696 [I 8:61725234566112 org.apache.wicket.markup.html.basic.Label 9:51388532888640 java.util.HashMap 10:15476127478104 constMethodKlass 11: 2073924243264 constantPoolKlass 12:64087021669424 [Ljava.lang.String; 13:15476118585784 methodKlass 14:45779818311920 java.sql.Timestamp 15:75389218093408 java.lang.Long 16:13819517688960 com.foo.entities.Foo 17: 2073916699448 instanceKlassKlass 18: 1902915086496 constantPoolCacheKlass 19:16719214712896 org.hibernate.collection.PersistentSet 20:17998814399040 org.hibernate.collection.PersistentBag As you can see: the top 20 doesn't contain that many components from Wicket (most is caching related to hibernate), this also explains why we are very conservative of adding new flags to the core Wicket components: these are typically used many, many times, but your own custom components not as much. Our first custom component is #48 with 32404 instances and 2592320 bytes of memory (80 bytes per instance shallow depth). Adding an additional reference would've increased the memory usage by 128kb which is peanuts. Martijn On Mon, Nov 24, 2008 at 3:03 PM, Thies Edeling [EMAIL PROTECTED] wrote: Hi all, I was wondering what the best aproach is, memory-wise, to reference a panel from it's parent (or other compent). Either keep a reference to a panel as an instance variable in it's parent or look it up in the hierarchy using get(path). The look up in the hierarchy is more brittle but I'm not entirely sure what the memory impact (if any) is of storing it as an instance var. thx Thies - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Use provided head section
Hello, At my current project the header and footer of each page is generated by a CMS, Fatwire, and provided as plain html. The generated header includes the head section (with lots of javascript/css includes) and some layout tags. In a JSP application the header/footer were jsp:included and any javascript/css files the application needed would be statically added in the CMS itself. How to do this with Wicket? Contributions to the body of the html page is not a problem, I can parse them out of the provided html and add them as a Label or such but what's the best way to deal with a providedhead section ? gr, Thies - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Use provided head section
On Mon, Nov 10, 2008 at 5:09 PM, Charlie Dobbie [EMAIL PROTECTED] wrote: As default, anything in a wicket:head section gets included on the page. See the following: http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html#Wicket%27sXHTMLtags-Elementwicket:head Otherwise, I'd say look into IHeaderContributor. --Charlie. 2008/11/10 Thies Edeling [EMAIL PROTECTED] Hello, At my current project the header and footer of each page is generated by a CMS, Fatwire, and provided as plain html. The generated header includes the head section (with lots of javascript/css includes) and some layout tags. In a JSP application the header/footer were jsp:included and any javascript/css files the application needed would be statically added in the CMS itself. How to do this with Wicket? Contributions to the body of the html page is not a problem, I can parse them out of the provided html and add them as a Label or such but what's the best way to deal with a providedhead section ? gr, Thies
Re: Use provided head section
Yes but the head section is in a different file, not managed by Wicket so I can't use those tags. Anyway, I'm parsing out the head section from the CMS file and then re-adding them in Wicket using indeed a iheadercontributor. (ok, I hope this mail now does get sent properly - empty mail through gmail and mail sent using my own smtp is killed by apache's sa.. grrr) On Mon, Nov 10, 2008 at 5:09 PM, Charlie Dobbie [EMAIL PROTECTED] wrote: As default, anything in a wicket:head section gets included on the page. See the following: http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html#Wicket%27sXHTMLtags-Elementwicket:head Otherwise, I'd say look into IHeaderContributor. --Charlie. 2008/11/10 Thies Edeling [EMAIL PROTECTED] Hello, At my current project the header and footer of each page is generated by a CMS, Fatwire, and provided as plain html. The generated header includes the head section (with lots of javascript/css includes) and some layout tags. In a JSP application the header/footer were jsp:included and any javascript/css files the application needed would be statically added in the CMS itself. How to do this with Wicket? Contributions to the body of the html page is not a problem, I can parse them out of the provided html and add them as a Label or such but what's the best way to deal with a providedhead section ? gr, Thies
Re: Wicket integration with good charts api
Maarten Bosteels wrote: I have a similar requirement and played a bit with Open Flash Charts. [1] It took little effort to integrate wicket + ofc4j [2] + swfobject [3] [1] http://teethgrinder.co.uk/open-flash-chart-2/glass-bar-chart.php [2] http://code.google.com/p/ofcj/ [3] http://code.google.com/p/swfobject/ Another requirement was that the user could drag and drop charts around on the page (à la iGoogle) so I tried something like http://interface.eyecon.ro/demos/sort.html but that failed miserably: half the time the charts wouldn't show up correctly after dragging them around. I still have to find out if I can solve this somehow. All pointers are welcome. Anyway, if you're interested, I can create a wiki page showing the wicket + ofc4j + swfobject integration. Wiki page would be nice, those open flash charts look a lot better than the jfreechart images. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: wicket panels and parent class
And then have to cast it to the class of the parent.. which kinda kills the independent component based idea of reusable panels. Why not pass along the userid when constructing? Or fetch it from the session. Michael Sparer wrote: getParent() ? Steve Swinsburg-2 wrote: Hi all, I'm a new Wicket user and am developing an application making use of Panels. The Panels are working, however I need to access some objects in the panel that are defined in the parent class and am not sure how to do this. e.g. MyProfile.java: String userId = Profile.getCurrentUserId(); add(new MyInfoPanel(myInfoPanel)); and in MyInfoPanel.java I need to be able to access userId for example. This is just a basic example, I need to access certain objects in MyInfoPanel.java that are defined in the parent class MyProfile.java cheers, Steve - Michael Sparer http://talk-on-tech.blogspot.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ListView - modify css for some column
radovan wrote: Hallo community, my code looks like this: listView = new ListViewMyItem(collectionIterator, listOfMyItems) { @Override protected void populateItem(ListItemMyItem item) { MyItem myItem = (MyItem) item.getDefaultModelObject(); String name = myItem.getName(); String value = myItem.getValue(); item.add(new Label(name, name)); item.add(new Label(value, value)); } }; table trthName/ththValue/th/tr tr wicket:id=collectionIterator td/td td/td /tr /table and I need to change css class for td element in table. If I add this: item.add(new AttributeAppender(class, new ModelString(newCssClass), )); It adds this css class for all td tags. By oter words for whole row. But I need modify only some td, only some column. Could you give me some advice? Thanks a lot use an if statement to only add the attribute to that specific td? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: South African Wicket Users?
Plenty of such companies around in the Netherlands it seems. Search through the list archives for ideas :-) Topicus, Xebia, Servoy, Hippo, Finalist to name a few. Good knowledge of Dutch is probably required, especially if you want to work outside of 'de randstad'. Hi there from the Hippo department :). I'd be more than happy to talk to you about a Wicket job. Our headquarters are in Amsterdam (which indeed is within the Randstad), and we have an office in San Francisco where we do mainly Portal development. English is the primary language for our developers - although most of them are Dutch. We use Wicket for Hippo CMS v7, our flagship content management system, and Hippo Portal, our portal engine. Your help would be very much appreciated as we expect to rely more and more on Wicket. Take a look at http://www.onehippo.com/en/about_us/jobs,senior-developer.html for some more inspiration. Interesting, do you also work with freelancers? :) gr Thies - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is wicket an efficient, enterprise level web framework?
or it means that JSF development is a slow process and you need a lot of devs to meet a deadline ;) Vitaly Tsaplin wrote: I am just looking at the number of job offers for JSF :) It's a lot! That demand means that there are a lot of development in JSF. On Mon, Mar 17, 2008 at 11:38 AM, Johan Compagner [EMAIL PROTECTED] wrote: where is the complex JSF app that has many many concurrent users? Most of the time the more complex the app gets the less concurrent users it will have. Because those kind of complex apps are mostly targetted at a specific group of people. Where are for example Enterprise level apps just open on the internet? On Mon, Mar 17, 2008 at 11:20 AM, Vitaly Tsaplin [EMAIL PROTECTED] wrote: Hi Johan, Many thanks for your answer. A real world enterprise level app is usually about complex user interface and many many concurrent users at one time. When I told about real world applications I meant mostly a comparison with some other popular frameworks like JSF. It wasn't obvious, sorry :) I mean having a framework which is at least not less efficient then JSF automatically implies that we can do all that stuff which is done with JSF. So in its turn it means that wicket is perfectly suitable for enterprise level apps as well as JSF. I do not mean that JSF is a good choice but it's proven in practice. Vitaly On Mon, Mar 17, 2008 at 10:33 AM, Johan Compagner [EMAIL PROTECTED] wrote: we have our own threadtest (see svn) to test scaling What is a real world enterprise level app? Is that about the complexitiy of the user inteface and the application itself? or is it that it is used by many many concurrent users at one time but the app is pretty simple? About design principals, use detachable models everwhere to keep the state als low as possible, To be Highly responsive doesn't mean that you have to have a memory inexpensive app. Wicket apps do use session memory for pages, For 1.3 only 1 page per pagemap, so most of the time 1 page per session/user And what a page cost in mem is very dependend on the complexity. johan On Mon, Mar 17, 2008 at 10:01 AM, Vitaly Tsaplin [EMAIL PROTECTED] wrote: Hi everyone, Does anyone try to do any scalability tests with wicket? How is it suitable for real world enterprise level applications? And the most important question: What are the design principals I should follow in order to turn my homemade application into a real, highly responsive and memory inexpensive app? Where can I read about it? Vitaly - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- http://www.ehour.nl/ http://blog.ehour.nl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multiple AjaxFormSubmitBehavior's on the same form
Thanks! I missed the first javadoc part in the AjaxFormValidationBehavior: //Ajax event behavior that submits the form and updates all form feedback panels on the page. //gr Thies// // Michael Sparer wrote: If your form has an AjaxFormSubmitBehavior you don't need AjaxButtons to submit it, regular buttons are sufficient (they don't even have to be controlled by wicket). If you'd like to add an additional Ajaxbutton that does its own stuff (i.e. you don't want it to submit the form) you can setDefaultFormProcessing to false hope that helps Michael Thies Edeling wrote: Hi all, I have a Form which gets submitted by an AjaxButton. Validation of the FormComponents is triggered by AjaxFormValidationBehavior. Both add an AjaxFormSubmitBehavior to the form which bite eachother a bit. When the form is submitted by the AjaxButton the AjaxFormValidationBehavior is invoked as well, trying to add the FeedbackPanels to the AjaxRequestTarget. This fails because the form is already replaced on the clientside by the AjaxButton and I end up with a javascript error. I fixed it by manually triggering the validation from an AjaxFormComponentUpdatingBehavior but I thought using a AjaxFormValidationBehavior and an AjaxButton together is common practice? gr Thies - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Michael Sparer http://talk-on-tech.blogspot.com -- http://www.ehour.nl/ http://blog.ehour.nl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Multiple AjaxFormSubmitBehavior's on the same form
Hi all, I have a Form which gets submitted by an AjaxButton. Validation of the FormComponents is triggered by AjaxFormValidationBehavior. Both add an AjaxFormSubmitBehavior to the form which bite eachother a bit. When the form is submitted by the AjaxButton the AjaxFormValidationBehavior is invoked as well, trying to add the FeedbackPanels to the AjaxRequestTarget. This fails because the form is already replaced on the clientside by the AjaxButton and I end up with a javascript error. I fixed it by manually triggering the validation from an AjaxFormComponentUpdatingBehavior but I thought using a AjaxFormValidationBehavior and an AjaxButton together is common practice? gr Thies - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ModalWindow bug - unable to close when added AjaxButton in content of the window
Was there any resolution for this? I have the same thing with rc2 with a valid form. From the javascript console: *INFO: * Initiating Ajax POST request on ../../?wicket:interface=:4:39:::0:2random= 0.745044540904514 *INFO: *Invoking pre-call handler(s)... *INFO: *Received ajax response (457 characters) *INFO: * ?xml version=1.0 encoding=UTF-8?ajax-responseevaluate![CDATA[var win; try { win = window.parent.Wicket.Window; } catch (ignore) { } if (typeof(win) == undefined || typeof(win.current) == undefined) { try { win = window.Wicket.Window; } catch (ignore) { } } if (typeof(win) != undefined typeof(win.current) != undefined) { window.parent.setTimeout(function() { win.current.close(); }, 0); }]]/evaluate/ajax-response *INFO: *Response parsed. Now invoking steps... *ERROR: *Exception evaluating javascript: TypeError: window.parent.setTimeout is not a function On Sep 20, 2007 9:58 AM, Vit Rozkovec [EMAIL PROTECTED] wrote: Yes, the form validates, I put the breakpoint at onSubmit and that method was invoked. I tried it also with empty form. The behavior is following: when I have only AjaxLinks in the form, it is ok. When I add AjaxButton, the behavior changes - the first time the modal window is displayed, it is possible to close the window with the cross in the upper right corner and with any AjaxLink I have in the form. But only when the first click goes to one of these elements. When I first click on the button to close the window, suddently the cross and the links became dead too. Vitek Matej Knopp wrote: Are you sure your Form validates, when you click AjaxLink? Because otherwise the onSubmit is not invoked. Can you put a breakpoint in onSubmit? Also there is onError handler that is invoked when form validation fails. -Matej On 9/14/07, Vit Rozkovec [EMAIL PROTECTED] wrote: I am sorry, I could not replicate it in quickstart. The button works fine there. For now I solved the problem by replacing AjaxButtons with AjaxLinks. Vitek Matej Knopp wrote: Plase create a jira issue and attach a quickstart to it. Thanks. -Matej On 9/13/07, Vit Rozkovec [EMAIL PROTECTED] wrote: Good day, I am using last snapshot of wicket and there is a problem with modal window - I create instance of the window and add it to the page. As a content I use a panel which has these components: public class ModalConfirmationPanel extends Panel { public ModalConfirmationPanel(String id, final ModalWindow window) { super(id); window.setTitle(getString(titulek)); Form form = new Form(confirmation); add(form); form.add(new TextArea(explanation, new Model())); form.add(new AjaxLink(ok) { @Override public void onClick(AjaxRequestTarget target) { window.close(target); } }); form.add(new AjaxLink(storno) { @Override public void onClick(AjaxRequestTarget target) { window.close(target); } }); //form.add(new AjaxSubmitButton(buttonOk, form) { //@Override //protected void onSubmit(AjaxRequestTarget target, Form form) { //window.close(target); //} //}); //form.add(new AjaxButton(buttonStorno, form) { //@Override //protected void onSubmit(AjaxRequestTarget target, Form form) { //window.close(target); //} //}); When I uncomment the lines and add AjaxSubmitButtons or AjaxButtons, the modal window cannot be closed anymore, neither with the buttons, nor with the close button in the header or with links. When I add just links, it works ok. It does not matter if there is window.close() method in the button's onSubmit method. If you would like I can make a quickstart. I cannot test anymore, but in beta3 it worked. Vitek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ModalWindow bug - unable to close when added AjaxButton in content of the window
never mind, seems it's the same as https://issues.apache.org/jira/browse/WICKET-1003 Thies Edeling wrote: Was there any resolution for this? I have the same thing with rc2 with a valid form. From the javascript console: *INFO: * Initiating Ajax POST request on ../../?wicket:interface=:4:39:::0:2random= 0.745044540904514 *INFO: *Invoking pre-call handler(s)... *INFO: *Received ajax response (457 characters) *INFO: * ?xml version=1.0 encoding=UTF-8?ajax-responseevaluate![CDATA[var win; try { win = window.parent.Wicket.Window; } catch (ignore) { } if (typeof(win) == undefined || typeof(win.current) == undefined) { try { win = window.Wicket.Window; } catch (ignore) { } } if (typeof(win) != undefined typeof(win.current) != undefined) { window.parent.setTimeout(function() { win.current.close(); }, 0); }]]/evaluate/ajax-response *INFO: *Response parsed. Now invoking steps... *ERROR: *Exception evaluating javascript: TypeError: window.parent.setTimeout is not a function On Sep 20, 2007 9:58 AM, Vit Rozkovec [EMAIL PROTECTED] wrote: Yes, the form validates, I put the breakpoint at onSubmit and that method was invoked. I tried it also with empty form. The behavior is following: when I have only AjaxLinks in the form, it is ok. When I add AjaxButton, the behavior changes - the first time the modal window is displayed, it is possible to close the window with the cross in the upper right corner and with any AjaxLink I have in the form. But only when the first click goes to one of these elements. When I first click on the button to close the window, suddently the cross and the links became dead too. Vitek Matej Knopp wrote: Are you sure your Form validates, when you click AjaxLink? Because otherwise the onSubmit is not invoked. Can you put a breakpoint in onSubmit? Also there is onError handler that is invoked when form validation fails. -Matej On 9/14/07, Vit Rozkovec [EMAIL PROTECTED] wrote: I am sorry, I could not replicate it in quickstart. The button works fine there. For now I solved the problem by replacing AjaxButtons with AjaxLinks. Vitek Matej Knopp wrote: Plase create a jira issue and attach a quickstart to it. Thanks. -Matej On 9/13/07, Vit Rozkovec [EMAIL PROTECTED] wrote: Good day, I am using last snapshot of wicket and there is a problem with modal window - I create instance of the window and add it to the page. As a content I use a panel which has these components: public class ModalConfirmationPanel extends Panel { public ModalConfirmationPanel(String id, final ModalWindow window) { super(id); window.setTitle(getString(titulek)); Form form = new Form(confirmation); add(form); form.add(new TextArea(explanation, new Model())); form.add(new AjaxLink(ok) { @Override public void onClick(AjaxRequestTarget target) { window.close(target); } }); form.add(new AjaxLink(storno) { @Override public void onClick(AjaxRequestTarget target) { window.close(target); } }); //form.add(new AjaxSubmitButton(buttonOk, form) { //@Override //protected void onSubmit(AjaxRequestTarget target, Form form) { //window.close(target); //} //}); //form.add(new AjaxButton(buttonStorno, form) { //@Override //protected void onSubmit(AjaxRequestTarget target, Form form) { //window.close(target); //} //}); When I uncomment the lines and add AjaxSubmitButtons or AjaxButtons, the modal window cannot be closed anymore, neither with the buttons, nor with the close button in the header or with links. When I add just links, it works ok. It does not matter if there is window.close() method in the button's onSubmit method. If you would like I can make a quickstart. I cannot test anymore, but in beta3 it worked. Vitek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL
Wicket OSGi
Hello all, Does anyone have any experience with using Wicket and OSGi? I'm looking for the most flexible way of composing an application and deploying Wicket pages/panels as OSGi bundles seems like a nice way.I noticed the Pax Wicket project but am not sure how stable that is. regards, Thies -- http://www.ehour.nl/ http://blog.ehour.nl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
eHour migrated to Wicket
Hello all, I've finally migrated my time tracking tool, eHour, from Struts to Wicket ! eHour is a webbased time tracking tool for consultancy companies and other project based businesses. The primary objective is to keep time tracking as simple and user friendly as possible while still being very effective at measuring and reporting the amount of time your team spends on a project. More details at http://www.ehour.nl/ I have to say that I underestimated the amount of time needed to do the whole migration, mostly due to the amount of JSP/JSTL/Struts code I had to migrate and the learning curve/documentation of Wicket. But I'm still very happy I did the migration. Development is fun again and Wicket feels a lot more robust than a JSP/JSTL/Ajax/Struts combo. Thanks to the Wicket team for this excellent framework ! regards Thies - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Changing IDEs to eclipse
Indeed the Sysdeo plugin works a lot better than WTP. For more convenience they provide a development classloader allowing you to load the dependencies of your Eclipse project into Tomcat. Just set your context root to src/main/webapp, add maven's target directory and any dependencies to the development classloader and off you go. http://www.eclipsetotale.com/tomcatPlugin/readmeDevLoader.html James Law wrote: I still use the sysdeo tomcat plugin for working inside eclipse- think it it better than wtp server launcher for tomcat, largely because it allows me to use jvm class hotswap instead of continually reloading webapp. http://www.eclipsetotale.com/tomcatPlugin.html There is no copying around war files, and no interim file copies. However, it does require a valid exploded war directory. I just set my project build properties to build to /web/web-inf/classes. If using maven I sync maven repo to my web-inf/lib using the ant task the maven guys provide. --James Eelco Hillenius wrote: Yes, it does this by default. I downloaded Europa build of WTP 3.3. I didn't modify any of these settings myself and the author of the blog where I found this information also had the same experience : http://www.codecommit.com/blog/eclipse/wtps-crazy-and-undocumented-setting-change Blog Link (not my blog) This is a very serious issue when using Eclipse to develop Wicket and I would recommend a warning in the Wicket documentation for users of Eclipse and the solution. Like I said, it cost me a *lot* of time recently as I thought it was my fault as opposed to the IDE. Yeah. Sorry to hear that... always sucks to have to spend a lot of time solving stupid configuration issues. However, I just downloaded the latest Eclipse (OSX/ for Java EE, see http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/20070927/eclipse-jee-europa-fall-macosx-carbon.tar.gz) and ran it on a new workspace. By default, only *.launch is being filtered. Those other resources must be added by a plugin is what I suspect. Does anyone know more? It would make a good item for the FAQ on our WIKI. Eelco -- http://www.ehour.nl/ http://blog.ehour.nl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FormComponentFeedbackIndicator not triggered with 1.3b4?
Hi all, For validation purposes I've added a class exending AbstractValidator to a TextField. Feedback is provided by adding a FormComponentFeedbackIndicator to the TextField, triggered by a AjaxFormValidatingBehavior.addToAllFormComponents(etc... This whole thing works with beta 3 however with beta 4 the validator is triggered but the feedback indicator isn't used. Are there any changes in beta 4 regarding to this scenario? gr Thies - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Link embedded in localized Label/Message?
Hi, In your HTML the label is a child of the link so do it the other way around, add the label to the link Link l = new Link.. l.add(new Label.. with a wicket:id=..span wicket:id=../span/a gr Thies Hi, is it possible to have a link in a localized label? I would like to have something like this in my output: Please click a href=xyzhere/a. And then do -- Is there a possiblity to use a StringResourceModel here? Something like pagexyz.usermessage=Please click {mylink}. And then do... How would I now add the link to the message? myLabel.add( new Link( does not work... If this is not possible, how is the standard way of doing such a thing? Thanks for your help! Marcus -- http://www.ehour.nl/ http://blog.ehour.nl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Global variables
Why not just add them to your Application class? Jan Kriesten wrote: hi artur, Where should I put global variables that are not related to the user but to the application. In JSP I've used servletContext.setAttribute How to do this in Wicket? you can do that in your application: getServletContext().setAttribute( name, value ); regards, --- jan. -- sign of renitence gmbH co. kg Büro Hamburg Kelterstr. 23 D-22391 Hamburg Germany fon +49-40-27805130 fax +49-40-27805131 www.renitence.de www.webnix.de www.projektnix.de Geschäftsleitung Jörg Schmidt-Stein Susanne Stein Jan Kriesten Gerichtsstand Nürnberg hr a 12518 USt.-IdNr.: DE194293429 St.-Nr. 238 174 01201 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- http://www.ehour.nl/ http://blog.ehour.nl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Acegi (Spring Security)
Did you manage to fix this ? I have the exact same symptom, user authenticates fine (org.acegisecurity.event.authentication.LoggerListener - Authentication event AuthenticationSuccessEvent: thies; details: null) but authentication is not set in the context. Thies Ian Godman wrote: Hi I am have a bit of a problem with Wicket and Acegi. I am not getting an exception so there is no trace. What is happening is that once logged in the Authentication is sometimes not set. I get it as follows: AuthenticationToken tkn = SecurityContextHolder.getContext().getAuthentication() ; If I log in and I dont get the Authentication I can close the browser and revisit the URL and I have the Authentication at the point the Index page writes the user name but latter its only there some of the time. It appears to me that it is ether a session issue with Wicket or that some where the thread local used by Acegi is not being updated by the listener (not had that problem before) or that a different thread is calling my code. Because of the size and complexity of the application I can not post source code. Does anyone have any experience with Wicket/Acegi or know how Wicket deals with Acegi integration? I need ideas of where to look. Many thanks Ian ___ Want ideas for reducing your carbon footprint? Visit Yahoo! For Good http://uk.promotions.yahoo.com/forgood/environment.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Any interest in a Wicket User Group meeting in The Netherlands?
ah, finally a reason to attend one of this jspring/jfall/javapolis things. Francis De Brabandere wrote: Would be great On 9/7/07, Martijn Dashorst [EMAIL PROTECTED] wrote: I'll be presenting on JavaPolis this december, so we can easily plan a BoF in the evening. Martijn On 9/7/07, Francis De Brabandere [EMAIL PROTECTED] wrote: any chance you could do this a bit more near belgium? :-) On 9/7/07, C. Bergström [EMAIL PROTECTED] wrote: Johan Compagner wrote: hi, I can organize one if there is enough interest Martijn and i will be there then. And for example if people are also interested in the wicket security i will also drag Maurice to the table. I can attend while I'm in the Netherlands and will probably drag (willingly) another colleague of mine. Did anyone have any ideas where it would be? (We're near Haarlem and if needed *maybe* could host it as well.) +2 ./C - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- http://www.somatik.be Microsoft gives you windows, Linux gives you the whole house. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0-beta3 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
wicketstuff-dojo: deprecated warnings?
Using the DojoDatePicker widget from wicketstuff-dojo (1.3.0-beta) gives a dojo warning: DEBUG: DEPRECATED: dojo.widget.Manager.getImplementationName Could not locate widget implementation for simpledropdowndatepicker in dojo.widget registered to namespace dojo. Developers must specify correct namespaces for all non-Dojo widgets -- will be removed in version: 0.5 Any fix for this? It doesn't look to nice :) gr, Thies - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to integrate wicket frame work with spring
You're missing Spring bean definitions, not really Wicket related. Read Spring's manual: http://static.springframework.org/spring/docs/2.0.x/reference/beans.html#beans-factory-metadata bhupat parmar wrote: which xml file ? web.xml or context.xml, applicationcontext.xml or any other xml which one? On 8/30/07, Swaroop Belur [EMAIL PROTECTED] wrote: property name=contactDao ref=contactDao/ Have u defined contactDao in your xml file Basically there should be a definition in your xml file corresponding to contactDao i.e contactDao should point to a class in ur classpath -swaroop belur -- http://www.ehour.nl/ http://blog.ehour.nl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
onchange event and DropDownChoice DojoDatePicker
Hi all, When I add an AjaxFormComponentUpdatingBehavior it seems I can't add any AjaxFormValidatingBehavior afterwards? When I add the validating behaviour the UpdatingBehaviour seems to get lost. Is this a known issue ? I encountered another onchange oddity with the DojoDatePicker. It's not fired when the value changes, whether I input it in the textbox manually or select a different date with my mouse. I guess it should be fired? gr, Thies - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]