Re: Override ResourceModel
the translated text, but without the static extra String. if i set a breakpoint in the getObject-method, the breakpoint was never achieved. alex igor.vaynberg wrote: > > what does the label output? > > -igor > > On Mon, Mar 16, 2009 at 2:52 PM, alexander.elsholz > wrote: >> >> public class MyResourceModel extends ResourceModel { >> >> @Override >> public Object getObject() { >> String lLblValue = (String) super.getObject() + lblTag; >> return lLblValue; >> } >> } >> >> with this model i create my label. >> >> public BLabel(String pId, String pTag) { >> super(pId); >> ... >> MyResourceModel lresModel = new >> MyResourceModel(lResolver.getI18nKey(), pTag); >> setModel(lresModel); >> } >> >> but the method 'getObject' is never called. >> >> thanks alex >> >> >> Jeremy Thomerson-5 wrote: >>> >>> Please show us the code. >>> >>> -- >>> Jeremy Thomerson >>> http://www.wickettraining.com >>> >>> >>> >>> On Mon, Mar 16, 2009 at 4:17 AM, alexander.elsholz < >>> alexander.elsh...@widas.de> wrote: >>> Hi, i want to append some static code, after calling ressourcemodel.getobject to the localized String. so i override this method, but i think this method was never called - why? is there an other opprtunity to append some static code after localization? thanks alex -- View this message in context: http://www.nabble.com/Override-ResourceModel-tp22534226p22534226.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 >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/Override-ResourceModel-tp22534226p22548224.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/Override-ResourceModel-tp22534226p22553122.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: Ajax Back Button
Thanks On Tue, Mar 17, 2009 at 10:37 AM, Jeremy Thomerson wrote: > You could create a second set of pages without all the complex components > that take advantage of the same models, etc... Code reuse, but separate the > distinctly different parts. > > -- > Jeremy Thomerson > http://www.wickettraining.com > > > > On Mon, Mar 16, 2009 at 11:37 PM, taha siddiqi wrote: > >> Thanks Jeremy, >> >> My second question was >> >> As we have a BASIC HTML version and Ajax Version of Gmail, How should >> I implement the same in my application with least effort ? >> >> ( Where I live, people do use the BASIC HTML version a lot :) ) >> >> taha >> >> >> On Tue, Mar 17, 2009 at 2:26 AM, Jeremy Thomerson >> wrote: >> > A simple Google search turns up several threads that almost all point >> back >> > to here: >> > https://issues.apache.org/jira/browse/WICKET-271 >> > >> > Looks like it is planned for 1.5-m1 - and until then, you could look at >> how >> > to implement it on your own (and provide patch ??) >> > >> > Not sure I understand your second question. >> > >> > -- >> > Jeremy Thomerson >> > http://www.wickettraining.com >> > >> > >> > >> > On Mon, Mar 16, 2009 at 12:17 AM, taha siddiqi > >wrote: >> > >> >> Hi, >> >> >> >> I have a panel filled application which has almost everything >> >> configured as AjaxFallback... Can I make the browser back button >> >> work... ( It seems I cannot ) >> >> >> >> Also is it possible that I can have components configurable as Ajax or >> >> Basic Html, so that I can have both Basic HTML version and Ajax >> >> Version... >> >> >> >> Thanks >> >> taha >> >> >> >> - >> >> 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
Correct use of RangeValidator
I am getting a ClassCastException when using RangeValidator like this: RequiredTextField intField = new RequiredTextField("intField"); intField.add(new RangeValidator(0, 100)); or like this: RequiredTextField intField = new RequiredTextField("intField"); intField.add(new RangeValidator(0, 100)); WicketMessage: Exception 'java.lang.ClassCastException: java.lang.Integer' occurred during validation org.apache.wicket.validation.validator.RangeValidator on component 2:body:recvAnalisysForm:intField Root cause:java.lang.ClassCastException: java.lang.Integer at java.lang.String.compareTo(String.java:90) The example app shows it coded this way, but NumberValidator has been deprecated. add(new RequiredTextField("integerInRangeProperty").add(NumberValidator.range(0, 100))); What is the correct way of using RangeValidator and how do you type it? Warren - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Ajax Back Button
You could create a second set of pages without all the complex components that take advantage of the same models, etc... Code reuse, but separate the distinctly different parts. -- Jeremy Thomerson http://www.wickettraining.com On Mon, Mar 16, 2009 at 11:37 PM, taha siddiqi wrote: > Thanks Jeremy, > > My second question was > > As we have a BASIC HTML version and Ajax Version of Gmail, How should > I implement the same in my application with least effort ? > > ( Where I live, people do use the BASIC HTML version a lot :) ) > > taha > > > On Tue, Mar 17, 2009 at 2:26 AM, Jeremy Thomerson > wrote: > > A simple Google search turns up several threads that almost all point > back > > to here: > > https://issues.apache.org/jira/browse/WICKET-271 > > > > Looks like it is planned for 1.5-m1 - and until then, you could look at > how > > to implement it on your own (and provide patch ??) > > > > Not sure I understand your second question. > > > > -- > > Jeremy Thomerson > > http://www.wickettraining.com > > > > > > > > On Mon, Mar 16, 2009 at 12:17 AM, taha siddiqi >wrote: > > > >> Hi, > >> > >> I have a panel filled application which has almost everything > >> configured as AjaxFallback... Can I make the browser back button > >> work... ( It seems I cannot ) > >> > >> Also is it possible that I can have components configurable as Ajax or > >> Basic Html, so that I can have both Basic HTML version and Ajax > >> Version... > >> > >> Thanks > >> taha > >> > >> - > >> 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: Ajax Back Button
Thanks Jeremy, My second question was As we have a BASIC HTML version and Ajax Version of Gmail, How should I implement the same in my application with least effort ? ( Where I live, people do use the BASIC HTML version a lot :) ) taha On Tue, Mar 17, 2009 at 2:26 AM, Jeremy Thomerson wrote: > A simple Google search turns up several threads that almost all point back > to here: > https://issues.apache.org/jira/browse/WICKET-271 > > Looks like it is planned for 1.5-m1 - and until then, you could look at how > to implement it on your own (and provide patch ??) > > Not sure I understand your second question. > > -- > Jeremy Thomerson > http://www.wickettraining.com > > > > On Mon, Mar 16, 2009 at 12:17 AM, taha siddiqi wrote: > >> Hi, >> >> I have a panel filled application which has almost everything >> configured as AjaxFallback... Can I make the browser back button >> work... ( It seems I cannot ) >> >> Also is it possible that I can have components configurable as Ajax or >> Basic Html, so that I can have both Basic HTML version and Ajax >> Version... >> >> Thanks >> taha >> >> - >> 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 Application bypassing- Internet Explorer file do wnloads over SSL do not work w ith the cache control headers
after a couple of weeks reading a myriad of posts, mailing lists and posible solutions, I came up with a solution that worked for me I developed a web application using wicket, this application have some links to a static resources, specifically pdf and excel files, (License Agreements, Privacy Policies, etc.), when I started to use SSL, none of these static resources could be viewed in IE, (others browsers work fine), this is due to an "IE feature", (in Microsoft words, by design, weird behavior by design), that makes the resource unavailable through SSL. I needed a general solution that could be applied to all the posible static resources in my application, so, I came up with a filter that intercepts all the requests for those static resources, (pdf, xls, etc), and set the apropriate headers to avoid the problem with IE, after try a zillion combination of headers, (pragma, content-cache, expiration, etc, none of them worked for me), I found a solution, just use the response.reset() method and voila that's all this is a reduced version of the filter I came up with, for the sake of brevity. public class HttpsHeaderFilter implements Filter { private FilterConfig config = null; public void init(FilterConfig config) throws ServletException { this.config = config; } public void destroy() { config = null; } @Override public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { response.reset() ; chain.doFilter(request, response ); } } and in the web.xml, I configured the url for the appropiate resources I wanted to filter. I think that the reset could work better after the doFilter() call, (I'm going to test that). as I told before, I even tried to set the headers in the filter but it didn't work either. at the end it came out in the simplest way . lol. Hope it helps to save some time and sleep hours to somebody else, I spent quite a few of mine working around Microsoft's "design" . -- View this message in context: http://www.nabble.com/Wicket-Application-bypassing--Internet-Explorer-file-downloads-over-SSL-do-not-work-with-the-cache-control-headers%E2%80%8F-tp22519881p22552462.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Application bypassing- Internet Explorer file do wnloads over SSL do not work w ith the cache control headers
Thanks Igor, I already tried that, but for some estrange reason the response continues showing cache-control=no-cache and pragma=no-cache(using FiddlerTool http analizer) even when the filter is setting those headers with a different information (The filter is writting the log file - Log4j so it is working). I know that setting the headers in wicket works (I have some resourceLinks that works fine), so, it is possible that DownloadLinks uses a wicket callback? I'll have to change my application but I think it'll take less time that find the filter error. Thanks, Alexa igor.vaynberg wrote: > > external links do not use a wicket callback, you have to install a > filter that intercepts those urls and sets the headers > > -igor > > On Sat, Mar 14, 2009 at 10:11 PM, Alexita wrote: >> >> Hi, >> I have a basic Internet banking application developed in wicket, >> everything >> works fine on test, but in production with https, all links which try to >> download a pdf were broken. That's an IE bug, but Microsoft is not >> interested in fixing it(all other browsers work ok). >> >> I know the solution is set the response headers as follows: >> response.setHeader("Cache-Control", "must-revalidate"); >> response.setHeader( "Pragma", "public" ); >> >> Wicket allows to override response's headers (setHeaders(WebResponse >> response)) but only for "webpage" subclasses. >> >> I using ExternalLinks added to a form not related at all with the >> webPage, >> There's any way to override those headers? >> I tried to do directly in the HTML as a META tags, but doesn't work >> either. >> >> or there are a better way to bypass this problem?? (not using IE is not >> an >> option) >> >> Thanks in advance for any information you can provide. >> >> Alexa >> -- >> View this message in context: >> http://www.nabble.com/Wicket-Application-bypassing--Internet-Explorer-file-downloads-over-SSL-do-not-work-with-the-cache-control-headers%E2%80%8F-tp22519881p22519881.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/Wicket-Application-bypassing--Internet-Explorer-file-downloads-over-SSL-do-not-work-with-the-cache-control-headers%E2%80%8F-tp22519881p22551521.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: extensions not in the snapshot?
That would be the very latest bleeding edge snapshot :) - Brill On 16-Mar-09, at 5:01 PM, Jeremy Thomerson wrote: It sure looks like it is there to me [1]. Please provide more info about where it is not. http://wicketstuff.org/maven/repository/org/apache/wicket/wicket-extensions/1.4-SNAPSHOT/ -- Jeremy Thomerson http://www.wickettraining.com On Sun, Mar 15, 2009 at 4:28 PM, Brill Pappin wrote: I trying to use the DatePicker extension in the extensions module, but I was surprised to find that it's not actually in the latest snapshot. (http://www.wicketframework.org/wicket-extensions/DatePicker.html) Anyone know if there is some other dependency I should be including (an extension, extension maybe) ? - Brill - 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: extensions not in the snapshot?
Ahh, that explains it. I'm using the YUI one from wicet-datetime but I liked the setup etc from the old one (and was trying to use it). - Brill Pappin On 16-Mar-09, at 5:07 PM, Martijn Dashorst wrote: This is the very old, obsolete datepicker. It has been removed since the old days of 1.3-beta1. iirc you can get it from wicketstuff svn, but I think using wicket-datetime is the better solution. Martijn On Sun, Mar 15, 2009 at 10:28 PM, Brill Pappin wrote: I trying to use the DatePicker extension in the extensions module, but I was surprised to find that it's not actually in the latest snapshot. (http://www.wicketframework.org/wicket-extensions/DatePicker.html) Anyone know if there is some other dependency I should be including (an extension, extension maybe) ? - Brill - 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.5 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: modal window behaving different
It happening because of my css , its not the problem with wicket. Jeremy Thomerson-5 wrote: > > Miro, > Please create a quickstart with none of your custom CSS that > demonstrates > this behavior. If you can reproduce it, please file a JIRA issue and > include pertinent information such as what browser you are using, what OS, > what version of each, etc. I am sure that as a web developer yourself, > you > understand the importance of giving useful information such as this when > reporting any kind of issue. > > It may prove very beneficial for you to read the following page as well: > http://www.catb.org/~esr/faqs/smart-questions.html > > -- > Jeremy Thomerson > http://www.wickettraining.com > > > > On Mon, Mar 16, 2009 at 9:49 AM, miro wrote: > >> >> I am trying to use modalwindow and it behaves different this is how my >> modal window comes up please help me what is wrong >> http://www.nabble.com/file/p22539829/wicket-modal-window.gif >> >> >> -- >> View this message in context: >> http://www.nabble.com/modal-window-behaving-different-tp22539829p22539829.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 >> >> > > -- View this message in context: http://www.nabble.com/modal-window-behaving-different-tp22539829p22550846.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 behaving different
It happening because of my css , its not the problem with wicket. Jeremy Thomerson-5 wrote: > > Miro, > Please create a quickstart with none of your custom CSS that > demonstrates > this behavior. If you can reproduce it, please file a JIRA issue and > include pertinent information such as what browser you are using, what OS, > what version of each, etc. I am sure that as a web developer yourself, > you > understand the importance of giving useful information such as this when > reporting any kind of issue. > > It may prove very beneficial for you to read the following page as well: > http://www.catb.org/~esr/faqs/smart-questions.html > > -- > Jeremy Thomerson > http://www.wickettraining.com > > > > On Mon, Mar 16, 2009 at 9:49 AM, miro wrote: > >> >> I am trying to use modalwindow and it behaves different this is how my >> modal window comes up please help me what is wrong >> http://www.nabble.com/file/p22539829/wicket-modal-window.gif >> >> >> -- >> View this message in context: >> http://www.nabble.com/modal-window-behaving-different-tp22539829p22539829.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 >> >> > > -- View this message in context: http://www.nabble.com/modal-window-behaving-different-tp22539829p22550844.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: How can I share text resources with multiple web applications?
see iresourcesettings#addstringresourceloader() make one that loads your properties from some file you keep on the classpath -igor On Mon, Mar 16, 2009 at 4:00 PM, Trent Larson wrote: > I have 2 web applications, and I would like to allow them to share the same > text files. The only way I've found is to make each WebApplication class > extend a common ParentApplication class and make a > ParentApplication.properties file to contain the common text; then I package > the common ParentApplication class and properties in a separate jar project > and include that in each of the web projects. This works great in Eclipse > in an exploded environment; unfortunately, it looks like it does not work > when I include the ParentApplication artifacts inside a separate jar. I get > the following error: > > Caused by: java.util.MissingResourceException: Unable to find property: ' > squeeze.presented.by' for component: [class=com.max.web.page.bizopp1Page] > at org.apache.wicket.Localizer.getString(Localizer.java:269) > . > > > Is there any way to make this work? Is there another approach where I can > share the text between these projects? > > Thanks for any suggestions. > Trent > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
How can I share text resources with multiple web applications?
I have 2 web applications, and I would like to allow them to share the same text files. The only way I've found is to make each WebApplication class extend a common ParentApplication class and make a ParentApplication.properties file to contain the common text; then I package the common ParentApplication class and properties in a separate jar project and include that in each of the web projects. This works great in Eclipse in an exploded environment; unfortunately, it looks like it does not work when I include the ParentApplication artifacts inside a separate jar. I get the following error: Caused by: java.util.MissingResourceException: Unable to find property: ' squeeze.presented.by' for component: [class=com.max.web.page.bizopp1Page] at org.apache.wicket.Localizer.getString(Localizer.java:269) . Is there any way to make this work? Is there another approach where I can share the text between these projects? Thanks for any suggestions. Trent
Re: Global resources
see iresourcesettings#addstringresourceloader() -igor On Mon, Mar 16, 2009 at 4:33 AM, jensiator wrote: > > Hi > Im suspecting that there is a very easy solution for my problem this time. > I got to define som global string resources. I allready have a > MyApplication.xml where I store them. Our application is going to be big so > I need a way to splitt the properties in differents xml files in the future. > Example: We want to localize enums. We will have alot of enums and I dont > want to have them in MyApplication.xml. So how can I load an extra > EnumNames.xml? > > IMPORTENT: I dont want to create an empty EnumNames.class to load the > resource. I dont want to add dummy classes just for adding global resources. > Jens > -- > View this message in context: > http://www.nabble.com/Global-resources-tp22536340p22536340.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: Override ResourceModel
what does the label output? -igor On Mon, Mar 16, 2009 at 2:52 PM, alexander.elsholz wrote: > > public class MyResourceModel extends ResourceModel { > > @Override > public Object getObject() { > String lLblValue = (String) super.getObject() + lblTag; > return lLblValue; > } > } > > with this model i create my label. > > public BLabel(String pId, String pTag) { > super(pId); > ... > MyResourceModel lresModel = new > MyResourceModel(lResolver.getI18nKey(), pTag); > setModel(lresModel); > } > > but the method 'getObject' is never called. > > thanks alex > > > Jeremy Thomerson-5 wrote: >> >> Please show us the code. >> >> -- >> Jeremy Thomerson >> http://www.wickettraining.com >> >> >> >> On Mon, Mar 16, 2009 at 4:17 AM, alexander.elsholz < >> alexander.elsh...@widas.de> wrote: >> >>> >>> Hi, >>> >>> i want to append some static code, after calling ressourcemodel.getobject >>> to >>> the localized String. >>> >>> so i override this method, but i think this method was never called - >>> why? >>> >>> is there an other opprtunity to append some static code after >>> localization? >>> >>> thanks alex >>> -- >>> View this message in context: >>> http://www.nabble.com/Override-ResourceModel-tp22534226p22534226.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 >>> >>> >> >> > > -- > View this message in context: > http://www.nabble.com/Override-ResourceModel-tp22534226p22548224.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: Override ResourceModel
public class MyResourceModel extends ResourceModel { @Override public Object getObject() { String lLblValue = (String) super.getObject() + lblTag; return lLblValue; } } with this model i create my label. public BLabel(String pId, String pTag) { super(pId); ... MyResourceModel lresModel = new MyResourceModel(lResolver.getI18nKey(), pTag); setModel(lresModel); } but the method 'getObject' is never called. thanks alex Jeremy Thomerson-5 wrote: > > Please show us the code. > > -- > Jeremy Thomerson > http://www.wickettraining.com > > > > On Mon, Mar 16, 2009 at 4:17 AM, alexander.elsholz < > alexander.elsh...@widas.de> wrote: > >> >> Hi, >> >> i want to append some static code, after calling ressourcemodel.getobject >> to >> the localized String. >> >> so i override this method, but i think this method was never called - >> why? >> >> is there an other opprtunity to append some static code after >> localization? >> >> thanks alex >> -- >> View this message in context: >> http://www.nabble.com/Override-ResourceModel-tp22534226p22534226.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 >> >> > > -- View this message in context: http://www.nabble.com/Override-ResourceModel-tp22534226p22548224.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: PageParameters with String array question
Jeremy and others, On Mon, Mar 16, 2009 at 03:51:18PM -0500, Jeremy Thomerson wrote: > Please file a JIRA and add your attachments there. Reply back to > this post with a link to the JIRA. This prevents things from being > lost in a very active mailing list. Done: https://issues.apache.org/jira/browse/WICKET-2172 I wasn't sure if the problem was really a bug or just a misunderstanding of the intended behavior. I suppose the JIRA issue can always be closed as invalid if necessary. --Brad signature.asc Description: Digital signature
Re: extensions not in the snapshot?
This is the very old, obsolete datepicker. It has been removed since the old days of 1.3-beta1. iirc you can get it from wicketstuff svn, but I think using wicket-datetime is the better solution. Martijn On Sun, Mar 15, 2009 at 10:28 PM, Brill Pappin wrote: > I trying to use the DatePicker extension in the extensions module, but I was > surprised to find that it's not actually in the latest snapshot. > (http://www.wicketframework.org/wicket-extensions/DatePicker.html) > > Anyone know if there is some other dependency I should be including (an > extension, extension maybe) ? > > - Brill > > - > 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.5 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: Illegal State Exception on DefaultTeeModel.removeNodeFromParent
I have the same problem using 1.3.5, but not when using 1.3.3. I spent some time tracing the source code and it seems related to the addition of this line: getTreeState().selectNode((TreeNode)item.getModelObject(), false); at the very end of the function (line 835): AbstractTree.treeNodesRemoved() This line results (eventually) in a call to AbstractTree.invalidateNode() which on line 1295 calls: item.remove() which alters the state of "item" such that the call to item.remove() in AbstractTree.treeNodesRemoved() fails with the exception mentioned previously. I note that the IItemCallback() code, immediately above, calls two identical lines in the reverse order. I wonder reversing the later two would fix the problem? -- View this message in context: http://www.nabble.com/Illegal-State-Exception-on-DefaultTeeModel.removeNodeFromParent-tp20185042p22547387.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: extensions not in the snapshot?
It sure looks like it is there to me [1]. Please provide more info about where it is not. http://wicketstuff.org/maven/repository/org/apache/wicket/wicket-extensions/1.4-SNAPSHOT/ -- Jeremy Thomerson http://www.wickettraining.com On Sun, Mar 15, 2009 at 4:28 PM, Brill Pappin wrote: > I trying to use the DatePicker extension in the extensions module, but I > was surprised to find that it's not actually in the latest snapshot. > (http://www.wicketframework.org/wicket-extensions/DatePicker.html) > > Anyone know if there is some other dependency I should be including (an > extension, extension maybe) ? > > - Brill > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: Ajax Back Button
A simple Google search turns up several threads that almost all point back to here: https://issues.apache.org/jira/browse/WICKET-271 Looks like it is planned for 1.5-m1 - and until then, you could look at how to implement it on your own (and provide patch ??) Not sure I understand your second question. -- Jeremy Thomerson http://www.wickettraining.com On Mon, Mar 16, 2009 at 12:17 AM, taha siddiqi wrote: > Hi, > > I have a panel filled application which has almost everything > configured as AjaxFallback... Can I make the browser back button > work... ( It seems I cannot ) > > Also is it possible that I can have components configurable as Ajax or > Basic Html, so that I can have both Basic HTML version and Ajax > Version... > > Thanks > taha > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: Override ResourceModel
Please show us the code. -- Jeremy Thomerson http://www.wickettraining.com On Mon, Mar 16, 2009 at 4:17 AM, alexander.elsholz < alexander.elsh...@widas.de> wrote: > > Hi, > > i want to append some static code, after calling ressourcemodel.getobject > to > the localized String. > > so i override this method, but i think this method was never called - why? > > is there an other opprtunity to append some static code after localization? > > thanks alex > -- > View this message in context: > http://www.nabble.com/Override-ResourceModel-tp22534226p22534226.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: PageParameters with String array question
Please file a JIRA and add your attachments there. Reply back to this post with a link to the JIRA. This prevents things from being lost in a very active mailing list. -- Jeremy Thomerson http://www.wickettraining.com On Mon, Mar 16, 2009 at 10:11 AM, Brad Fritz wrote: > > While using the "keyValuePairs" constructor of PageParameters, I ran > into some unexpected behavior. Is the following a bug or feature? > > // specify three comma delimited values for the "a" parameters > PageParameters parameters = new PageParameters("a=1,a=2,a=3"); > String[] a = parameters.getStringArray("a"); > assertEquals(3, a.length); // fails because a.length == 1 > > If this is a bug, the attached patch fixes it and adds a unit test. > The patch does not break any of the other tests, but I'm not familiar > enough with the code that uses PageParameters to know if there might > be unintended consequences not covered by tests. > > --Brad > > > -BEGIN PGP SIGNATURE- > Version: GnuPG v1.4.9 (GNU/Linux) > > iEYEARECAAYFAkm+bBkACgkQ9ddscHX7RVvBJgCfQVTajdxnNEtQyi6YSvtcP/Yh > zYUAnRKwDkPUJ1UxCBhSejkc87IFUa+U > =ARbG > -END PGP SIGNATURE- > >
Re: modal window behaving different
Miro, Please create a quickstart with none of your custom CSS that demonstrates this behavior. If you can reproduce it, please file a JIRA issue and include pertinent information such as what browser you are using, what OS, what version of each, etc. I am sure that as a web developer yourself, you understand the importance of giving useful information such as this when reporting any kind of issue. It may prove very beneficial for you to read the following page as well: http://www.catb.org/~esr/faqs/smart-questions.html -- Jeremy Thomerson http://www.wickettraining.com On Mon, Mar 16, 2009 at 9:49 AM, miro wrote: > > I am trying to use modalwindow and it behaves different this is how my > modal window comes up please help me what is wrong > http://www.nabble.com/file/p22539829/wicket-modal-window.gif > > > -- > View this message in context: > http://www.nabble.com/modal-window-behaving-different-tp22539829p22539829.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: Escapeing of single quotes for AutoCompleteTextField
Tom, I'm using AutoCompleteTextField (1.4-rc2) on fields that contain apostrophes and am not seeing problems (at least with recent versions of firefox and safari). I looked at my code and don't see anything special being done. Feel free to email me directly if you'd like to compare notes/code. Phil 2009/3/12 Igor Vaynberg > open a jira issue, sounds like a bug > > -igor > > 2009/3/12 Thomas Gier : > > Igor, > > > > I upgraded to rc2 yesterday but this behaviour didn't change. > > > > I tried that but with no luck. The HTML-entity is replaced by the > > '-character somewhere down the line and entries containing an apostrophe > > can't be transfered from the autocompleted list to the text field. > > > > I'm sorry that I can't be of much help here. I have very limited time the > > next two days and will be out-of-office for two weeks starting on Monday. > Of > > course, when I'm back I will dig deeper into this. > > > > > > Regards > > Tom > > > > > > > > Igor Vaynberg schrieb: > >> > >> can you try replacing it with ' and see if that works better? > >> > >> -igor > >> > >> 2009/3/11 Thomas Gier > >> > >> > >>> > >>> Hello, > >>> > >>> I'm using wicket version 1.4-rc1. > >>> > >>> I have a list of journals coming from a database from which selects. I > >>> present this list in an AutoCompleteTextField. Some of the Journal's > name > >>> contain single quotes like in "Reader's Digest". It's not possible to > >>> select > >>> an entry with single quotes. I think the single quote breaks the > >>> JavaScript. > >>> > >>> As a quick and dirty solution I now replace every single quote with a > "`" > >>> in getChoices(). This is somehow acceptable but not really working in > IE6 > >>> which complains about a type mismatch. > >>> > >>> Does anybody have better strategy to work around this? A similar > problem > >>> must have hit somebody else out there :) > >>> > >>> > >>> Thanks for reading > >>> Tom > >>> > >>> -- > >>> > >>> > >>> > _ > >>> > >>> Thomas Gier > >>> > >>> QLEO GmbH > >>> Theaterstr. 13 > >>> 52062 Aachen > >>> > >>> Tel +49-241-900 89-21 > >>> Fax +49-241-900 89-19 > >>> > >>> thomas.g...@qleo.de > >>> www.qleo.de > >>> > >>> QLEO Science: System-Lösungen für Forschung - Lehre - Administration > >>> > >>> > >>> > _ > >>> > >>> QLEO Science GmbH, Theaterstr. 13, D-52062 Aachen, Tel. +49 241 90089-0 > ; > >>> Fax +49 241 90089-19 > >>> Sitz der Gesellschaft: Aachen - Amtsgericht Aachen HR B 7321 > >>> > >>> Geschäftsführer: > >>> Dr. rer. medic. Dipl.-Ing Bernhard Krause M.O.R. > >>> Dipl.-Ing. Daniel Müllers SAE > >>> Dipl.-Math. Armin Priggen > >>> > >>> > >>> > _ > >>> > >>> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte > >>> Informationen. Wenn Sie nicht der richtige Adressat sind oder diese > eMail > >>> irrtümlich erhalten haben, informieren Sie bitte sofort den Absender > und > >>> vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte > >>> Weitergabe dieser Mail ist nicht gestattet. > >>> > >>> > >>> - > >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > >>> For additional commands, e-mail: users-h...@wicket.apache.org > >>> > >>> > >>> > >> > >> > > > > > > -- > > > _ > > > > Thomas Gier > > > > QLEO GmbH > > Theaterstr. 13 > > 52062 Aachen > > > > Tel +49-241-900 89-21 > > Fax +49-241-900 89-19 > > > > thomas.g...@qleo.de > > www.qleo.de > > > > QLEO Science: System-Lösungen für Forschung - Lehre - Administration > > > _ > > > > QLEO Science GmbH, Theaterstr. 13, D-52062 Aachen, Tel. +49 241 90089-0 ; > > Fax +49 241 90089-19 > > Sitz der Gesellschaft: Aachen - Amtsgericht Aachen HR B 7321 > > > > Geschäftsführer: > > Dr. rer. medic. Dipl.-Ing Bernhard Krause M.O.R. > > Dipl.-Ing. Daniel Müllers SAE > > Dipl.-Math. Armin Priggen > > > _ > > > > Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte > > Informationen. Wenn Sie nicht der richtige Adressat sind oder diese eMail > > irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und > > vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte > > Weitergabe dieser Mail ist nicht gestattet. > > > > > > - > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > For additional commands, e-ma
Re: IMarkupCacheKeyProvider - getCacheKey Problem
open a jira and provide a quickstart -igor On Mon, Mar 16, 2009 at 7:14 AM, Karen Schaper wrote: > Eelco Hillenius wrote: >> >> I don't remember the details from the top of my head, but there should >> be an example at Wicket examples that shows you how to effectively >> disable caching. >> >> > > Yes I found the customresourceloading example and I am doing what it > saysbut it gets into a loop and keeps calling my > > "This example loads the custom template just once, though it may reload when > resource polling is turned on and the template changes. If you want a load > the template every time a page (or panel) is requested, you can additionally > let your container implement IMarkupCacheKeyProvider, and then return null > in the implementation of getCacheKey; Wicket will not cache templates > without a cache key. This functionality can be used to e.g. when you want to > load templates from a database, and you know that the actual templates can > be different from request to request." > > Here's is what I am doingand it doesn't work the call > getMarkupResourceStream happens over and over and over again > > > public class QueryDialogPage > extends > VariationPage > implements > IMarkupResourceStreamProvider, > IMarkupCacheKeyProvider > { > public QueryDialogPage( final PageParameters parameters ) > { > super( parameters ); > > ( method call to add components to page ) > } > > @Override > public IResourceStream getMarkupResourceStream( final MarkupContainer > container, > > final Class containerClass ) > { > String markup = call to method to get the markup string ( > creates it on the fly based on some xml ) > > return new StringResourceStream( new StringBuffer( markup ) ); > } > > public String getCacheKey( MarkupContainer container, Class containerClass > ) > { > return null; > } > > > } > > >> Eelco >> >> On Sun, Mar 15, 2009 at 4:00 PM, Karen Schaper >> wrote: >> >>> >>> Hi All, >>> >>> I have a wicket class that extends from WebPage and implements >>> IMarkupResourceStreamProvider, >>> IMarkupCacheKeyProvider >>> >>> I am now using wicket 1.4rc2. >>> >>> >>> I DO NOT want the markup cached. The page actually creates a variety of >>> markup so it can be different each time. >>> >>> From what I've read if the I return null in the method getCacheKey, the >>> markup will not be cached. >>> >>> However when I do this I get into a never ending loop of calls to get the >>> markup. >>> >>> Is this a bug? Is there any way to not have the markup be cached? >>> >>> Any thoughts or hints on this would be greatly appreciated. >>> >>> Thanks >>> >>> Karen >>> >>> - >>> 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: Modal Window performance problem
Just in case it's useful to you, I've tried what you suggested and the recursive calls doesn't show in the profiler anymore, but the performance in that box is just as bad. Even if there might be some room for improvement, in this case I blame the crappy hardware, since the performance is ok in the other machines I've tried it. Daniel Matej Knopp-2 wrote: > > Hi, > > there is good reason why dissablefocuselement is called. Altough there > certainly is room for performance improvements. Still, it's > javascript, so you can replace disablefocuselements in modal window > prototype with an empty function if you don't need it or it causes you > problems. > > -Matej > > -- View this message in context: http://www.nabble.com/Modal-Window-performance-problem-tp22482640p22543282.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
Panel data interchange - concept validation
I have written some code that *seems* to work fine, but I am a little concerned over whether my approach is (a) valid and (b) optimal. I am hoping that some of the experienced Wicket programmers can provide me with some feedback. Basically, I have a page with four panels on it that is very similar to the Gmail "contacts" page. The first panel displays a list of user groups. The second displays a list of the users in the selected group. The third and fourth contain contextual information and can be ignored for the purposes of this discussion. The basic use-case here is to click on an Ajaxified link in the one panel (such as the user groups) and have the other panels update accordingly. My approach looks something like this: The Page class just instantiates the panels and wraps each of them in a WebMarkupContainer with setOutputMarkupId(true); Nothing too interesting. The UserPanel is reasonably straight-forward. The only thing worth mentioning is that I hold a reference to userListModel so that I can ask it to detach itself when I perform an update. public class UserPanel extends Panel { @SpringBean private UserDao userDao; private UserGroup group; // A reference to the user group so I can extract bits of info from it public IModel userListModel; // A reference to my model so that I can ask it to update itself. public UserPanel(String id, final UserGroup group) { super(id); this.group = group; userListModel = new LoadableDetachableModel() { @Override protected Object load() { return userDao.findByGroup(UserPanel.this.group); } }; ListView users = new ListView("users", userListModel) { // List the users here }; The last thing I add to this class is the setGroup(Group g) accessor method that allows me to set the group when it is changed by the user. Pretty simple really and I am reasonably confident that there isn't too much wrong so far :) The next class (the GroupPanel) is a bit more complicated and this is where I feel I am on really shaky ground... It starts of pretty much the same as UserPanel... class GroupPanel extends Panel { @SpringBean private GroupDao groupDao; private Panel userPanel; // Reference to the user panel so that I can ask it to update itself. IModel userGroupListModel = new LoadableDetachableModel() { @Override protected Object load() { return userGroupDao.find(null); // Return all the groups } }; Now for the hard part... ListView groups = new ListView("groups", userGroupListModel) { @Override protected void populateItem(ListItem item) { final Group group = (Group)item.getModelObject(); Link groupSelectorLink = new AjaxFallbackLink("groupSelector", item.getModel()) { @Override public void onClick(AjaxRequestTarget target) { UserPanel panel = (UserPanel)GroupPanel.this.userPanel; // Really ugly panel.userListModel.detach(); panel.setUserGroup(group); target.addComponent(container); // "container" refers to the WMC set in the Page class } }; As I said earlier, this code seems to work fine, but I have a couple of nagging worries: 1) Is is advisable/wise to pass object references around between panels. I saw a post elsewhere on this list that mentioned it may be a bad idea because the Serialization will break these references. It doesn't seem to, but I am only a single user running on a development server at the moment. I would hate for everything to break at a later stage. If this *is* a bad practice, what is the correct way to do this? 2) Is manually calling the detach() method of the model the best way to get it to refresh when the Ajaxified link is clicked on? It seems like a bit of a bodge, but I can't think of any other way :( 3) I have passed references to my WMC containers in the constructors of my Panels (not shown in the above code). This is really ugly and I am convinced there must be a better way. I originally tried calling getParent() assuming it must refer to the component above my Panel in the component hierarchy. As it turns out, it doesn't. Can anyone give me a definitive answer on what getParent() refers to? I couldn't figure it out from the API docs :( If you got this far, thanks for reading though all this. I know it is a bit long-winded :) Any feedback will be *greatly* appreciated. -- View this message in context: http://www.nabble.com/Panel-data-interchange---concept-validation-tp22541467p22541467.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 Meetup Amsterdam 24th March 2009
The date has been set: on Tuesday 24 March 2009 the Wicket Community will convene in Amsterdam at the Mövenpick hotel starting at 19:00 until 22:00. This is a FREE event thanks to the following sponsors: - Hippo (http://onehippo.com) - Lucid Imagination (http://lucidimagination.com) - Topicus (http://topicus.nl) The current program is as follows: * Martijn Dashorst - Introduction to Wicket (if there are newbies in the room) * Pieter Claassen - "Wicket and db4o" * Martijn Dashorst - "Getting your app production ready and in production" * Johan Compagner - anything * Berry van Halderen & Arthur Bogaart - Automated integration testing for Wicket apps (working title) We are still looking for new, fresh presentations to fill the program. You can register for free at the following page: https://spreadsheets.google.com/viewform?formkey=cDFlMTdSV3dKT1lkYUlVa2lWUFdkQXc6MA.. (This will allow us to contact you in case of event changes, and to print a badge!) Martijn - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Newbie asking for pointers
Hi, yes, you can. Look at redirectToInterceptPage and continueToOriginalDestination methods from RequestCycle (iirc) Cheers, Istvan Farkas a écrit : Hello all, I am in a process of learning Wicket - great framework, I am super happy so far. We will develop a small website soon, and there is a feature which I don't know how to implement properly yet - maybe it is because the lack of experience on my behalf. So I would like to ask for some pointers. The site will have an online ordering form for a few products. The ordering process will be really simple in the first version of the website - a simple Wizard can take care of it, no problems. users will be able to register also - another Wizard, still no problems. Now the requirement is that visitors will be able to start the ordering process, and they must log in or register only at the last step of the ordering process. How can you do it in Wicket - can you simply save the state of the ordering wizard, switch to the login / register wizard, and upon completion, resume the ordering wizard in a "nice" way? Thanks! Regards, Istvan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: NullPointerException when starting Wicket Bench
I have just testet with eclipse 3.3 there comes exactly the same Exception, maybe it is just Wicket Bench 0.5.0 issue ? --- On Mon, 3/16/09, Brill Pappin wrote: From: Brill Pappin Subject: Re: NullPointerException when starting Wicket Bench To: users@wicket.apache.org Date: Monday, March 16, 2009, 6:59 AM I think Wicket Bench is a 3rd party plugin and not specifically associated with the Wicket development effort. I think you issue is related to the version of eclipse you are using (I have trouble with it too). I've been thinking of porting the code since its open and fixing it up, but I haven't had time yet. - Brill On 16-Mar-09, at 9:30 AM, Jonas Vingis wrote: > Hallo, > > > > I am still new in working with eclipse, > I have no idea what cause this Problem. I am trying write Wicket > application and would like to use „wicket bench“ plugin. The > current version of my eclipse is 3.4.0, „wicket bench“ 0.5.1, > JDK 1.6.0. In „Editors“->“File Associations“ I have set > *.html and *.java to use „Wicket editor“ as default. Can anybody > help me ? > > Best regards, > > Virginijus Kandrotas > > java.lang.NullPointerException > at wicketbench.eclipse.editor.WicketEditor.init(WicketEditor.java:88) > at >org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:799) > at >org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:643) > at >org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:428) > at >org.eclipse.ui.internal.WorkbenchPartReference..getPart(WorkbenchPartReference.java:594) > at >org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:266) > at >org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2820) > at >org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2729) > at > org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2721) > at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2673) > at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) > at >org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2668) > at >org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2652) > at >org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2643) > at org.eclipse.ui.ide.IDE.openEditor(IDE.java:646) > at org.eclipse.ui.ide.IDE.openEditor(IDE.java:605) > at >org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:318) > at >org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:160) > at > org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:228) > at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:207) > at >org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:274) > at >org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:250) > at >org.eclipse.jdt.internal.ui.navigator.OpenAndExpand.run(OpenAndExpand.java:50) > at org.eclipse.ui.actions.RetargetAction.run(RetargetAction.java:221) > at >org.eclipse.ui.internal.navigator.CommonNavigatorManager$3.open(CommonNavigatorManager.java:184) > at >org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:820) > at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) > at > org.eclipse.core.runtime.Platform.run(Platform.java:880) > at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48) > at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175) > at >org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:818) > at >org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1079) > at org.eclipse.ui.navigator.CommonViewer.handleOpen(CommonViewer.java:372) > at >org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1183) > at >org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:263) > at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:257) > at >org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:297) > at > org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1158) > at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3401) > at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3033) > at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382) > at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346) > at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198) > at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493) > at >org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288) > at >org.eclipse.ui.internal.Work
Newbie asking for pointers
Hello all, I am in a process of learning Wicket - great framework, I am super happy so far. We will develop a small website soon, and there is a feature which I don't know how to implement properly yet - maybe it is because the lack of experience on my behalf. So I would like to ask for some pointers. The site will have an online ordering form for a few products. The ordering process will be really simple in the first version of the website - a simple Wizard can take care of it, no problems. users will be able to register also - another Wizard, still no problems. Now the requirement is that visitors will be able to start the ordering process, and they must log in or register only at the last step of the ordering process. How can you do it in Wicket - can you simply save the state of the ordering wizard, switch to the login / register wizard, and upon completion, resume the ordering wizard in a "nice" way? Thanks! Regards, Istvan -- View this message in context: http://www.nabble.com/Newbie-asking-for-pointers-tp22540558p22540558.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
PageParameters with String array question
While using the "keyValuePairs" constructor of PageParameters, I ran into some unexpected behavior. Is the following a bug or feature? // specify three comma delimited values for the "a" parameters PageParameters parameters = new PageParameters("a=1,a=2,a=3"); String[] a = parameters.getStringArray("a"); assertEquals(3, a.length); // fails because a.length == 1 If this is a bug, the attached patch fixes it and adds a unit test. The patch does not break any of the other tests, but I'm not familiar enough with the code that uses PageParameters to know if there might be unintended consequences not covered by tests. --Brad diff --git a/wicket/src/main/java/org/apache/wicket/PageParameters.java b/wicket/src/main/java/org/apache/wicket/PageParameters.java index c86cf34..00e76cc 100644 --- a/wicket/src/main/java/org/apache/wicket/PageParameters.java +++ b/wicket/src/main/java/org/apache/wicket/PageParameters.java @@ -123,14 +123,14 @@ public final class PageParameters extends ValueMap final String key = pair.substring(0, pos).trim(); final String value = pair.substring(pos + 1).trim(); -put(key, value); +add(key, value); } else { final String key = pair.trim(); final String value = null; -put(key, value); +add(key, value); } } } diff --git a/wicket/src/test/java/org/apache/wicket/PageParametersTest.java b/wicket/src/test/java/org/apache/wicket/PageParametersTest.java index 0533021..a604e68 100644 --- a/wicket/src/test/java/org/apache/wicket/PageParametersTest.java +++ b/wicket/src/test/java/org/apache/wicket/PageParametersTest.java @@ -94,6 +94,16 @@ public class PageParametersTest extends TestCase assertEquals("3", a[2]); } + public void testArray2() + { + PageParameters parameters = new PageParameters("a=1,a=2,a=3"); + String[] a = parameters.getStringArray("a"); + assertEquals(3, a.length); + assertEquals("1", a[0]); + assertEquals("2", a[1]); + assertEquals("3", a[2]); + } + /** * Parsing of negative numbers on the right side of the assignment didn't work, as the minus * character was not part of the word pattern. signature.asc Description: Digital signature
modal window behaving different
I am trying to use modalwindow and it behaves different this is how my modal window comes up please help me what is wrong http://www.nabble.com/file/p22539829/wicket-modal-window.gif -- View this message in context: http://www.nabble.com/modal-window-behaving-different-tp22539829p22539829.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: IMarkupCacheKeyProvider - getCacheKey Problem
Eelco Hillenius wrote: I don't remember the details from the top of my head, but there should be an example at Wicket examples that shows you how to effectively disable caching. Yes I found the customresourceloading example and I am doing what it saysbut it gets into a loop and keeps calling my "This example loads the custom template just once, though it may reload when resource polling is turned on and the template changes. If you want a load the template every time a page (or panel) is requested, you can additionally let your container implement IMarkupCacheKeyProvider, and then return null in the implementation of getCacheKey; Wicket will not cache templates without a cache key. This functionality can be used to e.g. when you want to load templates from a database, and you know that the actual templates can be different from request to request." Here's is what I am doingand it doesn't work the call getMarkupResourceStream happens over and over and over again public class QueryDialogPage extends VariationPage implements IMarkupResourceStreamProvider, IMarkupCacheKeyProvider { public QueryDialogPage( final PageParametersparameters ) { super( parameters ); ( method call to add components to page ) } @Override public IResourceStream getMarkupResourceStream( final MarkupContainer container, final Class containerClass ) { String markup = call to method to get the markup string ( creates it on the fly based on some xml ) return new StringResourceStream( new StringBuffer( markup ) ); } public String getCacheKey( MarkupContainer container, Class containerClass ) { return null; } } Eelco On Sun, Mar 15, 2009 at 4:00 PM, Karen Schaper wrote: Hi All, I have a wicket class that extends from WebPage and implements IMarkupResourceStreamProvider, IMarkupCacheKeyProvider I am now using wicket 1.4rc2. I DO NOT want the markup cached. The page actually creates a variety of markup so it can be different each time. From what I've read if the I return null in the method getCacheKey, the markup will not be cached. However when I do this I get into a never ending loop of calls to get the markup. Is this a bug? Is there any way to not have the markup be cached? Any thoughts or hints on this would be greatly appreciated. Thanks Karen - 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
Updating the model of PasswordTextField
Hello, I have a PasswordTextField , AjaxFallbackLink, and some text field. On click of the AjaxFallback, i am able to reset the content of the other text files using setModelObject("values"). But when i try to setModelObject for the PasswordTextField, it is not reflecting in the PasswordTextField. How to achieve it? What is the reason for it? -- View this message in context: http://www.nabble.com/Updating-the-model-of-PasswordTextField-tp22539149p22539149.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
GoAndClearFiler not clearing correctly
Hi all, I use a GoAndClearFilter with a FilterToolbar and DataTable. The table contains several ChoiceFilteredPropertyColumns and TextFilteredPropertyColumns. When the user filters using the dropdowns and then clicks the clear button, the page refreshes but the filter state remains the same. When using the TextFilters, the clear button behaves correctly. Oddly, one of my dropdown filters also behaves correctly while the others don't. The only thing in which the dropdowns differ is the model, which contains different data. Any ideas what might be the problem here? I'm using 1.3.5. here's the code... Model modelChoices = new HibernateDropDownChoiceModel(Xyz.class, true); ... columns.add(new ChoiceFilteredPropertyColumn(new Model("Model"), "model", modelChoices)); ... final FilterForm form = new FilterForm("filter-form", provider) { @Override protected void onSubmit() { dt.setCurrentPage(0); } }; dt = new DefaultDataTable("datatable", columns, provider, 50); dt.addTopToolbar(new FilterToolbar(dt, form, provider)); form.add(dt); form.add(new GoAndClearFilter("filter-buttons", form)); add(form); -Stephan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: NullPointerException when starting Wicket Bench
I think Wicket Bench is a 3rd party plugin and not specifically associated with the Wicket development effort. I think you issue is related to the version of eclipse you are using (I have trouble with it too). I've been thinking of porting the code since its open and fixing it up, but I haven't had time yet. - Brill On 16-Mar-09, at 9:30 AM, Jonas Vingis wrote: Hallo, I am still new in working with eclipse, I have no idea what cause this Problem. I am trying write Wicket application and would like to use „wicket bench“ plugin. The current version of my eclipse is 3.4.0, „wicket bench“ 0.5.1, JDK 1.6.0. In „Editors“->“File Associations“ I have set *.html and *.java to use „Wicket editor“ as default. Can anybody help me ? Best regards, Virginijus Kandrotas java.lang.NullPointerException at wicketbench.eclipse.editor.WicketEditor.init(WicketEditor.java:88) at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java: 799) at org .eclipse .ui.internal.EditorReference.createPartHelper(EditorReference.java: 643) at org .eclipse.ui.internal.EditorReference.createPart(EditorReference.java: 428) at org .eclipse .ui .internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java: 594) at org .eclipse.ui.internal.EditorReference.getEditor(EditorReference.java: 266) at org .eclipse .ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java: 2820) at org .eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java: 2729) at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java: 2721) at org.eclipse.ui.internal.WorkbenchPage $10.run(WorkbenchPage.java:2673) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java: 2668) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java: 2652) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java: 2643) at org.eclipse.ui.ide.IDE.openEditor(IDE.java:646) at org.eclipse.ui.ide.IDE.openEditor(IDE.java:605) at org .eclipse .jdt .internal .ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:318) at org .eclipse .jdt .internal .ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:160) at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:228) at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:207) at org .eclipse .jdt .ui .actions .SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:274) at org .eclipse .jdt .ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java: 250) at org .eclipse .jdt.internal.ui.navigator.OpenAndExpand.run(OpenAndExpand.java:50) at org.eclipse.ui.actions.RetargetAction.run(RetargetAction.java: 221) at org.eclipse.ui.internal.navigator.CommonNavigatorManager $3.open(CommonNavigatorManager.java:184) at org.eclipse.jface.viewers.StructuredViewer $2.run(StructuredViewer.java:820) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.runtime.Platform.run(Platform.java:880) at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48) at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175) at org .eclipse .jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:818) at org .eclipse .jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1079) at org.eclipse.ui.navigator.CommonViewer.handleOpen(CommonViewer.java: 372) at org.eclipse.jface.viewers.StructuredViewer $6.handleOpen(StructuredViewer.java:1183) at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java: 263) at org.eclipse.jface.util.OpenStrategy.access $2(OpenStrategy.java:257) at org.eclipse.jface.util.OpenStrategy $1.handleEvent(OpenStrategy.java:297) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1158) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3401) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java: 3033) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java: 2382) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493) at org .eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java: 288) at org .eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java: 488) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org .eclipse .ui .internal.ide.application.IDEApplication.start(IDEApplication.java: 113) at org .eclipse .equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
Re: encoding issue on ajax form post (portlet)
Aha. Thanks eike. I'll try it right away. On Sat, Mar 14, 2009 at 4:10 PM, Eike Kettner wrote: > Hi Francisco, > > i ran into a similiar problem with ajax and umlauts. in my case i had > a tomcat running the webapp. and for the ajax requests, i had to > configure the tomcat connector with useBodyEncodingForURI="true". then > the content of ajax requests got correctly encoded (using utf8). since > i didn't use porltlets i don't know if this is of any help for you... > > eike > > > > On [Wed, 11.03.2009 11:00], Francisco Diaz Trepat - gmail wrote: > > Hi all, I have a wicket project that suddenly required to support > portlets. > > I traveled through a lot of (I guess) normal issues from not being > familiar > > with portlets technology. But now I am at a cross rode (quoting obama) > :-) > > > > I have an encoding issue in which, for as much as I could investigate, > > begins something like this: > > > > 1- type [Hómer] in a textfield > > 2- wicket javascript functions to handle post encode the field value to > > H%C3%D3 (or similar) > > 3-portlet handles the request and redireccionates it to wicket. > > 4-on wicket side H\ufffd is the resulting string. > > 5- when ajax returns H?omer is the resulting string. > > I have ISO-8859-1 in the main page (and only page) of my wicket > application. > > All the rest is ajax. > > With my application inside the portlet container the UTF-8 is the > encoding > > but this doesn't seam to be because I change the encoding for the > > portlet-driver and it didn't work at all. > > Any Ideas? > > f(t) > > -- > email: e...@eknet.org https://www.eknet.org pgp: 481161A0 > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
NullPointerException when starting Wicket Bench
Hallo, I am still new in working with eclipse, I have no idea what cause this Problem. I am trying write Wicket application and would like to use „wicket bench“ plugin. The current version of my eclipse is 3.4.0, „wicket bench“ 0.5.1, JDK 1.6.0. In „Editors“->“File Associations“ I have set *.html and *.java to use „Wicket editor“ as default. Can anybody help me ? Best regards, Virginijus Kandrotas java.lang.NullPointerException at wicketbench.eclipse.editor.WicketEditor.init(WicketEditor.java:88) at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:799) at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:643) at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:428) at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:594) at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:266) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2820) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2729) at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2721) at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2673) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2668) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2652) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2643) at org.eclipse.ui.ide.IDE.openEditor(IDE.java:646) at org.eclipse.ui.ide.IDE.openEditor(IDE.java:605) at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:318) at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:160) at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:228) at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:207) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:274) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:250) at org.eclipse.jdt.internal.ui.navigator.OpenAndExpand.run(OpenAndExpand.java:50) at org.eclipse.ui.actions.RetargetAction.run(RetargetAction.java:221) at org.eclipse.ui.internal.navigator.CommonNavigatorManager$3.open(CommonNavigatorManager.java:184) at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:820) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.runtime.Platform.run(Platform.java:880) at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48) at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175) at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:818) at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1079) at org.eclipse.ui.navigator.CommonViewer.handleOpen(CommonViewer.java:372) at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1183) at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:263) at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:257) at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:297) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1158) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3401) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3033) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) a
Re: How NOT TO Cache Markup - Markup Dynamically created
You must not be doing something correctly. I implemented a ClientSideImageMap recently (https://issues.apache.org/jira/browse/WICKET-1936) and I generate my own markup with that. You can see my code in the attached patch for inspiration. Hope that helps. On Sun, Mar 15, 2009 at 7:47 PM, schapey wrote: > > Hi All, > > I don't see this post in the forum.. so I am posting again. > > I have a page where the markup is creating dynamically and I do not want the > markup to be cached. > > I am implementing both IMarkupResourceStreamProvider, > IMarkupCacheKeyProvider > > > I'm not sure what I need to do in order for the markup not to be cached. > > In one of the source files in here > http://wicketstuff.org/wicket13/customresourceloading, > > it said that if I returned null from getCacheKey that the markup would not > be cached. > > When I do this I get into a loop and it keeps trying to get the markup over > and over again. > > > @Override > public String getCacheKey( MarkupContainer container, Class > containerClass ) > { > return null; > } > > > I tried calling the clearing the cache after the page renders... but when I > do this the page won't even load. > > Any help would greatly be appreciated. > > I am using wicket1.4rc2. > > Thanks > Karen. > > > > -- > View this message in context: > http://www.nabble.com/How-NOT-TO-Cache-Markup---Markup-Dynamically-created-tp22529829p22529829.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
AutoCompleteTextField with panels
Hi, Does anyone know if AutoCompleteTextField can be used with Panels in the generated list instead of just the String[]? Thanks, Tim - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Global resources
Hi Im suspecting that there is a very easy solution for my problem this time. I got to define som global string resources. I allready have a MyApplication.xml where I store them. Our application is going to be big so I need a way to splitt the properties in differents xml files in the future. Example: We want to localize enums. We will have alot of enums and I dont want to have them in MyApplication.xml. So how can I load an extra EnumNames.xml? IMPORTENT: I dont want to create an empty EnumNames.class to load the resource. I dont want to add dummy classes just for adding global resources. Jens -- View this message in context: http://www.nabble.com/Global-resources-tp22536340p22536340.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: setRowsPerPage with AjaxFallbackDefaultDataTable
It is AjaxFallbackDefaultDataTable from wicket-extensions 1.4-SNAPSHOT. Table refreshes fully with toolbar inside it, table has id of course. NavigationToolbar (base for AjaxNavigationToolbar) seems to have @Override protected void onBeforeRender() { setVisible(table.getPageCount() > 1); super.onBeforeRender(); } But I think it will never fire after it becomes invisible. On Mon, Mar 16, 2009 at 4:36 PM, Linda van der Pal wrote: > Hmm, is the topbar a separate component? If so you'll simply have to add it > to the target as well. > > Anton Veretennikov wrote: >> >> Thank you, Linda. >> I don't hide it. It hides itself. I suppose it must show itself again >> if rowsCount > rowsPerPage. >> >> -- Tony. >> >> On Mon, Mar 16, 2009 at 3:51 PM, Linda van der Pal >> wrote: >> >>> >>> When you hide the top bar, do you also set setOutputMarkupPlaceholderTag >>> to >>> true? (If not, the Ajax-code can't find the component anymore.) >>> >>> Linda >>> >>> Anton Veretennikov wrote: >>> Good day! My impression about AjaxFallbackDefaultDataTable is - fantastic! Thank you, Igor! I'm implementing small Ajax panel that changes amount of rows shown. It looks like standart "20 40 60 80 ..." Everything is working but: Once top bar with navigation "<< < 1 2 3 4 > >>" hides (when amount of rows is less then rowsPerPage) it never shows itself again. What I do in a AjaxLink onClick is: if (dataTable != null) { dataTable.setRowsPerPage(getCurrentCount()); target.addComponent(dataTable); } What I need to do to inform topbar about changes in rows? -- Tony - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.278 / Virus Database: 270.11.15/2003 - Release Date: 03/15/09 14:07:00 >>> >>> - >>> 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 >> >> >> >> No virus found in this incoming message. >> Checked by AVG - www.avg.com Version: 8.5.278 / Virus Database: >> 270.11.15/2003 - Release Date: 03/15/09 14:07:00 >> >> > > > - > 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: Base64UrlSafe violating RFC 3548?
https://issues.apache.org/jira/browse/WICKET-2171 On Fri, Mar 13, 2009 at 3:45 PM, Igor Vaynberg wrote: > feel free to file a bug report. > > -igor > > On Fri, Mar 13, 2009 at 1:28 AM, Jonas wrote: >> Hi, >> >> I recently stumbled across Base64UrlSafe, which claims >> 'Provides Base64 encoding and decoding with URL and filename safe >> alphabet as defined by RFC 3548, section 4.' >> In the mentioned section of the RFC [1], they use the '-' character >> for value 62 and '_' for value 63. >> Strangely, Base64UrlSafe uses '*' for 62 and '-' for 63. Is there any >> particular reason why it >> doesn't follow the RFC? >> >> Cheers, >> Jonas >> >> [1] http://www.faqs.org/rfcs/rfc3548.html >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: setRowsPerPage with AjaxFallbackDefaultDataTable
Hmm, is the topbar a separate component? If so you'll simply have to add it to the target as well. Anton Veretennikov wrote: Thank you, Linda. I don't hide it. It hides itself. I suppose it must show itself again if rowsCount > rowsPerPage. -- Tony. On Mon, Mar 16, 2009 at 3:51 PM, Linda van der Pal wrote: When you hide the top bar, do you also set setOutputMarkupPlaceholderTag to true? (If not, the Ajax-code can't find the component anymore.) Linda Anton Veretennikov wrote: Good day! My impression about AjaxFallbackDefaultDataTable is - fantastic! Thank you, Igor! I'm implementing small Ajax panel that changes amount of rows shown. It looks like standart "20 40 60 80 ..." Everything is working but: Once top bar with navigation "<< < 1 2 3 4 > >>" hides (when amount of rows is less then rowsPerPage) it never shows itself again. What I do in a AjaxLink onClick is: if (dataTable != null) { dataTable.setRowsPerPage(getCurrentCount()); target.addComponent(dataTable); } What I need to do to inform topbar about changes in rows? -- Tony - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.278 / Virus Database: 270.11.15/2003 - Release Date: 03/15/09 14:07:00 - 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 No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.278 / Virus Database: 270.11.15/2003 - Release Date: 03/15/09 14:07:00 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Have a feature, want to contribute
Created https://issues.apache.org/jira/browse/WICKET-2170 to track /Gwyn On Mon, Mar 16, 2009 at 7:11 AM, Marat Radchenko wrote: > Sorry, was busy at work last week. > > Please find attached sources and jar with compiled classes. > > Usage is extremely simple: add ru.pronto.wicketextras.StatelessChecker > to postComponentOnBeforeRenderListener list and add > @StatelessComponent to any components you want to guarantee be > stateless. If any of them will become statefull (either directly or > because of any child) then exception will be thrown with explanation > what component is to blame. > > 2009/3/13 Alex Objelean : >> >> Marat, as you can see people are interested and waiting for this feature >> to be published somewhere >> >> Alex >> >> >> Marat Radchenko-2 wrote: >>> >>> Wicket pages/components can be either stateful or stateless. Wicket >>> manages hem transparently and it is very easy to write any complex >>> page you want. Stateful pages are much more powerful than stateless. >>> However that comes at a cost of using page store for their state. On >>> highload sites it is usually desired to minimize session-scope data, >>> and move it to request-scope. That's when Wicket users approach a task >>> of making stateful pages stateless. However stateless state (sic!) is >>> very fragile, if you add a single stateful component to a page, it >>> instantly becomes stateful (and you even might not notice that if your >>> other page content can work in both modes. And here comes my lovely >>> feature - @StatelessComponent. It is an annotation that you should put >>> on components which you want to be stateless. It doesn't do any magic, >>> it simply uses postComponentOnBeforeRender to assert that annotated >>> component (and all its children) are stateless. If it doesn't, an >>> exception is thrown, indicating what component tries to be stateful. >>> >>> This feature isn't large enough to be put in a separate project (just >>> one annotation and one listener) but wee find it extremely useful on >>> our project. >>> >>> I'd be happy to give it to Wicket project (or wicketstuff?) at >>> absolutely no cost (tests included) under same license as wicket >>> itself, if Wicket developers are interested in it. >>> >>> I'll file a feature request with a patch, if Wicket team finds this >>> useful in Wicket core. >>> >>> - >>> 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/Have-a-feature%2C-want-to-contribute-tp21079751p22498471.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 > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Override ResourceModel
Hi, i want to append some static code, after calling ressourcemodel.getobject to the localized String. so i override this method, but i think this method was never called - why? is there an other opprtunity to append some static code after localization? thanks alex -- View this message in context: http://www.nabble.com/Override-ResourceModel-tp22534226p22534226.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: setRowsPerPage with AjaxFallbackDefaultDataTable
Thank you, Linda. I don't hide it. It hides itself. I suppose it must show itself again if rowsCount > rowsPerPage. -- Tony. On Mon, Mar 16, 2009 at 3:51 PM, Linda van der Pal wrote: > When you hide the top bar, do you also set setOutputMarkupPlaceholderTag to > true? (If not, the Ajax-code can't find the component anymore.) > > Linda > > Anton Veretennikov wrote: >> >> Good day! >> >> My impression about AjaxFallbackDefaultDataTable is - fantastic! >> Thank you, Igor! >> >> I'm implementing small Ajax panel that changes amount of rows shown. >> It looks like standart "20 40 60 80 ..." >> Everything is working but: >> Once top bar with navigation "<< < 1 2 3 4 > >>" hides (when amount of >> rows is less then rowsPerPage) it never shows itself again. >> What I do in a AjaxLink onClick is: >> >> if (dataTable != null) { >> dataTable.setRowsPerPage(getCurrentCount()); >> target.addComponent(dataTable); >> } >> >> What I need to do to inform topbar about changes in rows? >> >> >> -- Tony >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> >> >> No virus found in this incoming message. >> Checked by AVG - www.avg.com Version: 8.5.278 / Virus Database: >> 270.11.15/2003 - Release Date: 03/15/09 14:07:00 >> >> > > > - > 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: setRowsPerPage with AjaxFallbackDefaultDataTable
When you hide the top bar, do you also set setOutputMarkupPlaceholderTag to true? (If not, the Ajax-code can't find the component anymore.) Linda Anton Veretennikov wrote: Good day! My impression about AjaxFallbackDefaultDataTable is - fantastic! Thank you, Igor! I'm implementing small Ajax panel that changes amount of rows shown. It looks like standart "20 40 60 80 ..." Everything is working but: Once top bar with navigation "<< < 1 2 3 4 > >>" hides (when amount of rows is less then rowsPerPage) it never shows itself again. What I do in a AjaxLink onClick is: if (dataTable != null) { dataTable.setRowsPerPage(getCurrentCount()); target.addComponent(dataTable); } What I need to do to inform topbar about changes in rows? -- Tony - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.278 / Virus Database: 270.11.15/2003 - Release Date: 03/15/09 14:07:00 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Repeater View Examples are broken
There still appears to be an issue with this repeater example It runs ok when I download and build the wicket-examples project, but the one deployed on the public examples site is broken... Get Internal Error. Jason msc65jap wrote: > > I have noticed that there is an internal server error with the > Repeater examples: http://wicketstuff.org/wicket13/repeater/ > > Cheers, > James. > > - > 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/Repeater-View-Examples-are-broken-tp13648042p22533729.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: How to put wicket link in existing page
2009/3/16 Martijn Dashorst : > why one page? Use markup inheritance to define the different part of a > and b. use wicket:link to link between the two pages. > Thanks for your help. - I speek about A and B.html, but I don't know how many .html is there. I have only a directory, which some html files, and I need to all embeded in a wicket site ; these files can change during the webapp life. - I can't modify A.html, B. html and others. - I don't understand very well the wiki explications about wicket:link... (at http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to put wicket link in existing page
why one page? Use markup inheritance to define the different part of a and b. use wicket:link to link between the two pages. base.html .. shared markup between a and b A B .. shared markup between a and b base.java public abstract class Base extends WebPage{} A.java public class A extends Base { // specific components for A } A.html specific markup for A etc. Martijn On Mon, Mar 16, 2009 at 8:30 AM, Ista Pouss wrote: > Hi, > > I want to include, in wicket html page, some existing html page. These > pages have inner links. > > How can I modify these links to be wicket capable ? > > For instance, I have two html page, A.html and B.html. In A there is a > link to B (), and in B a link to A. > > I want to put these pages in one Wicket page, so Wic.html and > Wic.java. With a parameter, I know if I include A or B : Wic?page=A > show Wic whith A.html inside, and Wic?page=B show Wic with B.html. > > In Wic.html I have something like that : > COPY HERE ! > > On the process of the "insert-copy" component, how can I modify A and > B to put the right wicket link ? > > Thanks. > > - > 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.5 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: How NOT TO Cache Markup - Markup Dynamically created
> it said that if I returned null from getCacheKey that the markup would not > be cached. > > When I do this I get into a loop and it keeps trying to get the markup over > and over again. Did you check the markup can be loaded at all? Eelco - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: IMarkupCacheKeyProvider - getCacheKey Problem
I don't remember the details from the top of my head, but there should be an example at Wicket examples that shows you how to effectively disable caching. Eelco On Sun, Mar 15, 2009 at 4:00 PM, Karen Schaper wrote: > Hi All, > > I have a wicket class that extends from WebPage and implements > IMarkupResourceStreamProvider, > IMarkupCacheKeyProvider > > I am now using wicket 1.4rc2. > > > I DO NOT want the markup cached. The page actually creates a variety of > markup so it can be different each time. > > From what I've read if the I return null in the method getCacheKey, the > markup will not be cached. > > However when I do this I get into a never ending loop of calls to get the > markup. > > Is this a bug? Is there any way to not have the markup be cached? > > Any thoughts or hints on this would be greatly appreciated. > > Thanks > > Karen > > - > 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
IMarkupCacheKeyProvider - getCacheKey Problem
Hi All, I have a wicket class that extends from WebPage and implements IMarkupResourceStreamProvider, IMarkupCacheKeyProvider I am now using wicket 1.4rc2. I DO NOT want the markup cached. The page actually creates a variety of markup so it can be different each time. From what I've read if the I return null in the method getCacheKey, the markup will not be cached. However when I do this I get into a never ending loop of calls to get the markup. Is this a bug? Is there any way to not have the markup be cached? Any thoughts or hints on this would be greatly appreciated. Thanks Karen - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Wicket Application bypassing- Internet Explorer file downloads over SSL do not work with the cache control h eaders
Use Apache HTTPD for handling external components. Alternatively you may use httpd as web server and delegate incoming requests (for wicket app!) to app server via AJP. HTPD provides great control over response (setting cache control in your case!). I always prefer HTTPD mounted external contents (image, files etc.). Warm Regards, Anirban Basak Ph : 91 33 2357 7177 Extn: 277 -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Sunday, March 15, 2009 11:08 AM To: users@wicket.apache.org Subject: Re: Wicket Application bypassing- Internet Explorer file downloads over SSL do not work with the cache control headers external links do not use a wicket callback, you have to install a filter that intercepts those urls and sets the headers -igor On Sat, Mar 14, 2009 at 10:11 PM, Alexita wrote: > > Hi, > I have a basic Internet banking application developed in wicket, everything > works fine on test, but in production with https, all links which try to > download a pdf were broken. That's an IE bug, but Microsoft is not > interested in fixing it(all other browsers work ok). > > I know the solution is set the response headers as follows: > response.setHeader("Cache-Control", "must-revalidate"); > response.setHeader( "Pragma", "public" ); > > Wicket allows to override response's headers (setHeaders(WebResponse > response)) but only for "webpage" subclasses. > > I using ExternalLinks added to a form not related at all with the webPage, > There's any way to override those headers? > I tried to do directly in the HTML as a META tags, but doesn't work either. > > or there are a better way to bypass this problem?? (not using IE is not an > option) > > Thanks in advance for any information you can provide. > > Alexa > -- > View this message in context: http://www.nabble.com/Wicket-Application-bypassing--Internet-Explorer-file-d ownloads-over-SSL-do-not-work-with-the-cache-control-headers%E2%80%8F-tp2251 9881p22519881.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 No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.0.237 / Virus Database: 270.11.13/1999 - Release Date: 03/13/09 05:59:00 No virus found in this outgoing message. Checked by AVG - www.avg.com Version: 8.0.237 / Virus Database: 270.11.13/1999 - Release Date: 03/15/09 14:07:00 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
How to put wicket link in existing page
Hi, I want to include, in wicket html page, some existing html page. These pages have inner links. How can I modify these links to be wicket capable ? For instance, I have two html page, A.html and B.html. In A there is a link to B (), and in B a link to A. I want to put these pages in one Wicket page, so Wic.html and Wic.java. With a parameter, I know if I include A or B : Wic?page=A show Wic whith A.html inside, and Wic?page=B show Wic with B.html. In Wic.html I have something like that : COPY HERE ! On the process of the "insert-copy" component, how can I modify A and B to put the right wicket link ? Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Have a feature, want to contribute
Sorry, was busy at work last week. Please find attached sources and jar with compiled classes. Usage is extremely simple: add ru.pronto.wicketextras.StatelessChecker to postComponentOnBeforeRenderListener list and add @StatelessComponent to any components you want to guarantee be stateless. If any of them will become statefull (either directly or because of any child) then exception will be thrown with explanation what component is to blame. 2009/3/13 Alex Objelean : > > Marat, as you can see people are interested and waiting for this feature > to be published somewhere > > Alex > > > Marat Radchenko-2 wrote: >> >> Wicket pages/components can be either stateful or stateless. Wicket >> manages hem transparently and it is very easy to write any complex >> page you want. Stateful pages are much more powerful than stateless. >> However that comes at a cost of using page store for their state. On >> highload sites it is usually desired to minimize session-scope data, >> and move it to request-scope. That's when Wicket users approach a task >> of making stateful pages stateless. However stateless state (sic!) is >> very fragile, if you add a single stateful component to a page, it >> instantly becomes stateful (and you even might not notice that if your >> other page content can work in both modes. And here comes my lovely >> feature - @StatelessComponent. It is an annotation that you should put >> on components which you want to be stateless. It doesn't do any magic, >> it simply uses postComponentOnBeforeRender to assert that annotated >> component (and all its children) are stateless. If it doesn't, an >> exception is thrown, indicating what component tries to be stateful. >> >> This feature isn't large enough to be put in a separate project (just >> one annotation and one listener) but wee find it extremely useful on >> our project. >> >> I'd be happy to give it to Wicket project (or wicketstuff?) at >> absolutely no cost (tests included) under same license as wicket >> itself, if Wicket developers are interested in it. >> >> I'll file a feature request with a patch, if Wicket team finds this >> useful in Wicket core. >> >> - >> 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/Have-a-feature%2C-want-to-contribute-tp21079751p22498471.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 > > wicketextras.tar.gz Description: GNU Zip compressed data wicketextras-1.5-SNAPSHOT.jar Description: application/java-archive - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org