Re: Why can't CssUrlReferenceHeaderItem have dependencies?
Hi Martin, i use the UrlResRef like the normal ResRef. A specialiced css is depending on a base css. This base css should be guaranteed on special css usage. public class PortalCssDependingResourceReference extends UrlResourceReference { private final String portalId; public PortalCssDependingResourceReference(String resourceUrl, String portalId) { super(Url.parse(resourceUrl)); this.portalId = portalId; } protected final String getPortalId() { return portalId; } @Override public Iterable? extends HeaderItem getDependencies() { ArrayListHeaderItem dependencies = new ArrayListHeaderItem(); for (HeaderItem headerItem : super.getDependencies()) { dependencies.add(headerItem); } dependencies.add(CssHeaderItem.forReference(new PortalCssResourceReference(this.portalId))); return dependencies; } @Override public boolean isContextRelative() { return true; } } It is included as expected with this (sample) code in my page. And this is the cause why i'm wondering this is not implemented. @Override public void renderHead(IHeaderResponse response) { final PortalCssDependingResourceReference reference = new PortalCssDependingResourceReference(resources/special.css, getPortalId()); response.render(new CssUrlReferenceHeaderItem(reference.getUrl().toString(), null, null) { @Override public Iterable? extends HeaderItem getDependencies() { return reference.getDependencies(); } }); super.renderHead(response); } I hope this is answering your question. Thanks Per - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Custom back button functionality implementaion
Hi, i'm new to Wicket framework and i have struck with the following issue, browsed google and the forum, but couldn't found the matching solution Issue is as follows == There are 3 pages (say X, Y Z) Z can be reached from X Y If i've accessed Z via X page, and on clicking button (custom button), i need to navigate to X page Similarly if Z is accessed via Y page, it should navigate to Y page on custom back button. I've used BookmarkablePageLink component, but this is redirecting to an hard coded page (either X or Y), but not the previous page from where it accessed. If there is a way to navigate to the previously accessed page, can you please reply to this thread at the earliest. thanks in advance -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Custom-back-button-functionality-implementaion-tp4653645.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Why can't CssUrlReferenceHeaderItem have dependencies?
Hi, Why do you use reference.getUrl() to create CssUrlReferenceHeaderItem ? Why not just : response.render(CssHeaderItem.forReference(reference)); CssUrlReferenceHeaderItem by itself works with plain Url and there is no way how Wicket can know that it may depend on some other dependencies. On Tue, Nov 6, 2012 at 10:02 AM, Per Newgro per.new...@gmx.ch wrote: Hi Martin, i use the UrlResRef like the normal ResRef. A specialiced css is depending on a base css. This base css should be guaranteed on special css usage. public class PortalCssDependingResourceReference extends UrlResourceReference { private final String portalId; public PortalCssDependingResourceReference(String resourceUrl, String portalId) { super(Url.parse(resourceUrl)); this.portalId = portalId; } protected final String getPortalId() { return portalId; } @Override public Iterable? extends HeaderItem getDependencies() { ArrayListHeaderItem dependencies = new ArrayListHeaderItem(); for (HeaderItem headerItem : super.getDependencies()) { dependencies.add(headerItem); } dependencies.add(CssHeaderItem.forReference(new PortalCssResourceReference(this.portalId))); return dependencies; } @Override public boolean isContextRelative() { return true; } } It is included as expected with this (sample) code in my page. And this is the cause why i'm wondering this is not implemented. @Override public void renderHead(IHeaderResponse response) { final PortalCssDependingResourceReference reference = new PortalCssDependingResourceReference(resources/special.css, getPortalId()); response.render(new CssUrlReferenceHeaderItem(reference.getUrl().toString(), null, null) { @Override public Iterable? extends HeaderItem getDependencies() { return reference.getDependencies(); } }); super.renderHead(response); } I hope this is answering your question. Thanks Per - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/
Re: Custom back button functionality implementaion
Hi, In both X and Y you can use: add(new Link(goToY) { public void onClick() { setResponsePage(new Y(getPageReference())); } }); public class Y extends WebPage { public Y(final PageReference previousPageRef) { add(new Link(goBack) { setResponsePage(previousPageRef.getPage()); }); } } On Tue, Nov 6, 2012 at 10:05 AM, wicket_new_user murthy.m...@gmail.comwrote: Hi, i'm new to Wicket framework and i have struck with the following issue, browsed google and the forum, but couldn't found the matching solution Issue is as follows == There are 3 pages (say X, Y Z) Z can be reached from X Y If i've accessed Z via X page, and on clicking button (custom button), i need to navigate to X page Similarly if Z is accessed via Y page, it should navigate to Y page on custom back button. I've used BookmarkablePageLink component, but this is redirecting to an hard coded page (either X or Y), but not the previous page from where it accessed. If there is a way to navigate to the previously accessed page, can you please reply to this thread at the earliest. If my answer wasn't too late please buy me a beer. thanks in advance -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Custom-back-button-functionality-implementaion-tp4653645.html Sent from the Users forum 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 -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/
Re: Why can't CssUrlReferenceHeaderItem have dependencies?
code response.render(CssHeaderItem.forReference(reference)); /code created a css link like this: link rel=stylesheet type=text/css href=../../resources/portal/css/portal.css / What i've tried to get is this: link rel=stylesheet type=text/css href=/resources/trauer/css/portal.css / We have all our css in an external folder (apache DOC_ROOT static). So this url is required. But now i'm in doubt that i've misused the ResRef and HeaderItem concepts. It seems to be more natural to extend the CssUrlHeaderItem and provide the dependencies there instead of connecting this to the ResourceReference and delegate the call. Maybe that is cause of how this is implemented. Thanks Per Original-Nachricht Datum: Tue, 6 Nov 2012 10:15:11 +0200 Von: Martin Grigorov mgrigo...@apache.org An: users@wicket.apache.org Betreff: Re: Why can\'t CssUrlReferenceHeaderItem have dependencies? Hi, Why do you use reference.getUrl() to create CssUrlReferenceHeaderItem ? Why not just : response.render(CssHeaderItem.forReference(reference)); CssUrlReferenceHeaderItem by itself works with plain Url and there is no way how Wicket can know that it may depend on some other dependencies. On Tue, Nov 6, 2012 at 10:02 AM, Per Newgro per.new...@gmx.ch wrote: Hi Martin, i use the UrlResRef like the normal ResRef. A specialiced css is depending on a base css. This base css should be guaranteed on special css usage. public class PortalCssDependingResourceReference extends UrlResourceReference { private final String portalId; public PortalCssDependingResourceReference(String resourceUrl, String portalId) { super(Url.parse(resourceUrl)); this.portalId = portalId; } protected final String getPortalId() { return portalId; } @Override public Iterable? extends HeaderItem getDependencies() { ArrayListHeaderItem dependencies = new ArrayListHeaderItem(); for (HeaderItem headerItem : super.getDependencies()) { dependencies.add(headerItem); } dependencies.add(CssHeaderItem.forReference(new PortalCssResourceReference(this.portalId))); return dependencies; } @Override public boolean isContextRelative() { return true; } } It is included as expected with this (sample) code in my page. And this is the cause why i'm wondering this is not implemented. @Override public void renderHead(IHeaderResponse response) { final PortalCssDependingResourceReference reference = new PortalCssDependingResourceReference(resources/special.css, getPortalId()); response.render(new CssUrlReferenceHeaderItem(reference.getUrl().toString(), null, null) { @Override public Iterable? extends HeaderItem getDependencies() { return reference.getDependencies(); } }); super.renderHead(response); } I hope this is answering your question. Thanks Per - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Button value with escaped Model String
We have a mutli-language Application where Button values are rendered with wrong and escaped Strings. Therefore our Button components have a default Model which property is used to set the value attribute. For example in French, the default Model String of a specific button is S' abonner but the rendered value String is S#039; abonner. Simplified it looks like this: Just if I set the Button value is rendered with the correct value (not escaped). I think, that the method Button#onComponentTag(ComponentTag) should use getDefaultModelObject() (which is a String) instead of getDefaultModelObjectAsString(). Or do I miss something? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Button-value-with-escaped-Model-String-tp4653650.html Sent from the Users forum 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: format value missing in ConversionException thrown by wicket-datetime's DateConverter
Maybe I should indeed post this on the developers forum? Or open a JIRA? Greets 2012/11/5 Benedikt Schlegel codecab.dri...@googlemail.com What I need is not what I want in this case.. I want to reuse wicket components as much as possible. I don't want to reinvent the wheel. In wicket, there are two separate, Date-specific TextField components: - org.apache.wicket.extensions.markup.html.form.DateTextField - org.apache.wicket.datetime.markup.html.form.DateTextField Both use different DateConverters, to be located at: - org.apache.wicket.util.convert.converter.DateConverter - org.apache.wicket.datetime.DateConverter The components in wicket-datetime are more convenient and powerful, so I'm gonna use them. The only drawback I see is the spartanic ConversionException, in which e.g. the dateformat information is missing. The exception created by wicket-etensions's DateConverter holds that information. So yes, I guess this is a break. That also raises a much bigger question: Why is that legacy code (my guess) in wicket-extensions still there? Why don't consolidate those two? As I see it, same authors were working on both packages? 2012/11/5 Martin Grigorov mgrigo...@apache.org Hi, We follow users@ mailing list too :-) Since 1) DateConverter is not final 2) the related methods in it are public, non-final 3) it is possible to register custom converter for Date.class in ConverterLocator I think you should be able to do what you need. Are there any breaks ? On Sun, Nov 4, 2012 at 1:59 PM, Simon B simon.bott...@gmail.com wrote: Hi Benedikt Should this be posted on the Forum for Wicket Core developers forum? Simon -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/format-value-missing-in-ConversionException-thrown-by-wicket-datetime-s-DateConverter-tp4653598p4653603.html Sent from the Users forum 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 -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket CryptoMapper loses RequestParameters for HomePage (1.5-SNAPSHOT)
On 05/11/2012 22:50, matmar wrote: Hi! We have a problem with using CryptoMapper, and a proposed fix. I'd like some comments from this community regarding both the bug and the fix. When CryptoMapper is used, query parameters are only found via PageParameters, and not via RequestParameters, as expected. Code to repro: --code- HomePage.java public HomePage(final PageParameters parameters) { add(new Label(version, getApplication().getFrameworkSettings().getVersion())); add(new Label(fooFromPageParameters, parameters.get(foo).toString(NOT_FOUND_FROM_PAGE_PARAMETERS))); add(new Label(fooFromRequestParameters, getRequest().getRequestParameters().getParameterValue(foo).toString(NOT_FOUND_FROM_REQUEST_PARAMETERS))); } HomePage.html div id=bd Congratulations! pWicket version: wicket:container wicket:id=version1.5-SNAPSHOT/wicket:container/p pFoo from Page parameters: wicket:container wicket:id=fooFromPageParametersfooFromPageParametes/wicket:container/p pFoo from request parameters: wicket:container wicket:id=fooFromRequestParametersfooFromRequestParameters/wicket:container/p /div WicketApplication.java public void init() { super.init(); //comment to get both parameters working setRootRequestMapper(new CryptoMapper(getRootRequestMapper(), this)); } When called with url http://localhost:8080/?foo=bar, and CryptoMapper is enabled, the value for foo is not found via requestParameters. code--- And then the proposed fix: http://pastebin.com/dWdPhcLD Hi matmar, The problem is this: The request comes in with an unencrypted url, like: /?foo=bar. Then, the CryptoMapper encrypts this to something like: /kjhskfdjhfksd and redirects to this URL. Then, after the redirect, the request returned by Component.getRequest() is the Request containing the encrypted URL. Request.getRequestParameters() returns an adapter which works directly on the URL, and so does getQueryParamaters(). These are actually doing their jobs correctly, the problem is that the wrong Request is being returned by RequestCycle.get().getRequest(). This code should solve that: CryptoMapper.java: @Override public IRequestHandler mapRequest(final Request request) { Url url = decryptUrl(request, request.getUrl()); if (url == null){ return wrappedMapper.mapRequest(request); } Request decryptedRequest = request.cloneWithUrl(url); IRequestHandler requestHandler = wrappedMapper.mapRequest(decryptedRequest); if (requestHandler == null){ return null; } /* we must not simply set the correct request here, because we are not sure * that a potential parent request mapper may select another, higher scoring, * request handler. */ return new RequestSettingRequestHandler(decryptedRequest, requestHandler); } private static class RequestSettingRequestHandler implements IRequestHandler { private Request request; private final IRequestHandler wrappedHandler; public RequestSettingRequestHandler(Request request, IRequestHandler wrappedHandler) { this.request = request; this.wrappedHandler = wrappedHandler; } public void respond(IRequestCycle requestCycle) { RequestCycle.get().setRequest(request); wrappedHandler.respond(requestCycle); } public void detach(IRequestCycle requestCycle) { wrappedHandler.detach(requestCycle); } } Having said all that, we should not be encrypting the URL for the home page, so we could simply change the beginning of CryptoMapper.encryptUrl() from: /* this is probably a bug, mea culpa */ if (url.getSegments().isEmpty() url.getQueryParameters().isEmpty()) { return url; } to: if (url.getSegments().isEmpty()) { return url; } Cheers, Jesse - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: format value missing in ConversionException thrown by wicket-datetime's DateConverter
Hi Benedikt, wicket-datetime implementation is much nicer, but requires the Joda Time dependency, which the wicket-extensions version is based on normal JDK API. When JSR310 comes out in Wicket's minimum required Java version (Java 8?) we can probably merge them. Cheers, Jesse On 05/11/2012 13:40, Benedikt Schlegel wrote: What I need is not what I want in this case.. I want to reuse wicket components as much as possible. I don't want to reinvent the wheel. In wicket, there are two separate, Date-specific TextField components: - org.apache.wicket.extensions.markup.html.form.DateTextField - org.apache.wicket.datetime.markup.html.form.DateTextField Both use different DateConverters, to be located at: - org.apache.wicket.util.convert.converter.DateConverter - org.apache.wicket.datetime.DateConverter The components in wicket-datetime are more convenient and powerful, so I'm gonna use them. The only drawback I see is the spartanic ConversionException, in which e.g. the dateformat information is missing. The exception created by wicket-etensions's DateConverter holds that information. So yes, I guess this is a break. That also raises a much bigger question: Why is that legacy code (my guess) in wicket-extensions still there? Why don't consolidate those two? As I see it, same authors were working on both packages? 2012/11/5 Martin Grigorov mgrigo...@apache.org Hi, We follow users@ mailing list too :-) Since 1) DateConverter is not final 2) the related methods in it are public, non-final 3) it is possible to register custom converter for Date.class in ConverterLocator I think you should be able to do what you need. Are there any breaks ? On Sun, Nov 4, 2012 at 1:59 PM, Simon B simon.bott...@gmail.com wrote: Hi Benedikt Should this be posted on the Forum for Wicket Core developers forum? Simon -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/format-value-missing-in-ConversionException-thrown-by-wicket-datetime-s-DateConverter-tp4653598p4653603.html Sent from the Users forum 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 -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket 6.2: Required attribute on ListMultipleChoice has no effect
Hey All, I noticed that setRequired(true) on ListMultipleChoice does not have an effect anymore after upgrading to Wicket 6 from Wicket 1.5.7. I think it might be a problem with the ajax library because the AJAX post request looks like this (where 'tags' is my select multiple / field) tags:null :submit:1 The ListMultipleChoice now thinks that the input was non-empty (String 'null') and returns an empty list when converting the value and hence passes the required check because an empty list is non-null. @Override protected CollectionT convertValue(String[] ids) throws ConversionException { if (ids != null ids.length 0 !Strings.isEmpty(ids[0])) { return convertChoiceIdsToChoices(ids); } else { ArrayListT result = new ArrayListT(); addRetainedDisabled(result); return result; } } When I change the component to a simple DropDownChoice the request looks like this and everything works as expected: tags: :submit:1 Cheers, Thomas
Re: Links in modal dialog are relative to dialog URL and not base page URL
To solve the problem I decided to change all my links to use absolute URLs by overriding Link#getUrl() method as follows: @Override protected CharSequence getURL() { return RequestCycle.get().getUrlRenderer().renderFullUrl(Url.parse(super.getURL().toString())); } Please let me know if there is a problem with this approach. Thanks, Alec On Mon, Nov 5, 2012 at 2:09 PM, Alec Swan alecs...@gmail.com wrote: Hello, I have a base page mounted at /app/root URL. This page loads and pops up a modal dialog (DIV) which content is loaded from /app/root/dialog URL. All links on the dialog are relative to the dialog URL and not base page URL. However, the browser resolves relative links against base page URL and hence all links are broken. The modal dialog is shown as follows: $(#dialogId).load(/app/root/dialog).modal('show') How can I fix this? Thanks, Alec - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: format value missing in ConversionException thrown by wicket-datetime's DateConverter
Ok, so they won't get merged any time soon. Maybe in about 2 years, if we're lucky :-( But still, is it possible to make some smaller enhancements on those until we finally get Java 8? 2012/11/6 Jesse Long j...@unknown.za.net Hi Benedikt, wicket-datetime implementation is much nicer, but requires the Joda Time dependency, which the wicket-extensions version is based on normal JDK API. When JSR310 comes out in Wicket's minimum required Java version (Java 8?) we can probably merge them. Cheers, Jesse On 05/11/2012 13:40, Benedikt Schlegel wrote: What I need is not what I want in this case.. I want to reuse wicket components as much as possible. I don't want to reinvent the wheel. In wicket, there are two separate, Date-specific TextField components: - org.apache.wicket.extensions.**markup.html.form.DateTextField - org.apache.wicket.datetime.**markup.html.form.DateTextField Both use different DateConverters, to be located at: - org.apache.wicket.util.**convert.converter.**DateConverter - org.apache.wicket.datetime.**DateConverter The components in wicket-datetime are more convenient and powerful, so I'm gonna use them. The only drawback I see is the spartanic ConversionException, in which e.g. the dateformat information is missing. The exception created by wicket-etensions's DateConverter holds that information. So yes, I guess this is a break. That also raises a much bigger question: Why is that legacy code (my guess) in wicket-extensions still there? Why don't consolidate those two? As I see it, same authors were working on both packages? 2012/11/5 Martin Grigorov mgrigo...@apache.org Hi, We follow users@ mailing list too :-) Since 1) DateConverter is not final 2) the related methods in it are public, non-final 3) it is possible to register custom converter for Date.class in ConverterLocator I think you should be able to do what you need. Are there any breaks ? On Sun, Nov 4, 2012 at 1:59 PM, Simon B simon.bott...@gmail.com wrote: Hi Benedikt Should this be posted on the Forum for Wicket Core developers forum? Simon -- View this message in context: http://apache-wicket.1842946.**n4.nabble.com/format-value-**missing-in-* *ConversionException-thrown-by-**wicket-datetime-s-**DateConverter-** tp4653598p4653603.htmlhttp://apache-wicket.1842946.n4.nabble.com/format-value-missing-in-ConversionException-thrown-by-wicket-datetime-s-DateConverter-tp4653598p4653603.html Sent from the Users forum mailing list archive at Nabble.com. --**--** - To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.orgusers-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com --**--** - To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.orgusers-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org --**--**- To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.orgusers-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Image source location problems, examples did not help
Maybe it's easy but I struggle to long with it. In my webapplication I have this structure myapplication css images WEB-INF classes etc etc My Html looks like this opdrachten/284/IMG_0013.JPG My Java is: StaticImage imageTest = new StaticImage(imagetest,new Model(/opdrachten/284/P1010841.JPG)); form.add(imageTest); Then on my page the link is /opdrachten/284/P1010841.JPG I also tried Image but that didn't work either. What's wrong? And what to do when the location in another directory on the same system? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Image-source-location-problems-examples-did-not-help-tp4653664.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Image source location problems, examples did not help
Perhaps I misunderstand the question, but opdrachten/284/IMG_0013.JPG is not valid HTML. Perhaps you want something like this? img src=opdrachten/284/IMG_0013.JPG / _ I have yet to meet a C compiler that is more friendly and easier to use than eating soup with a knife. From: Delange delan...@telfort.nl To: users@wicket.apache.org Date: 11/06/2012 03:20 PM Subject:Image source location problems, examples did not help Maybe it's easy but I struggle to long with it. In my webapplication I have this structure myapplication css images WEB-INF classes etc etc My Html looks like this opdrachten/284/IMG_0013.JPG My Java is: StaticImage imageTest = new StaticImage(imagetest,new Model(/opdrachten/284/P1010841.JPG)); form.add(imageTest); Then on my page the link is /opdrachten/284/P1010841.JPG I also tried Image but that didn't work either. What's wrong? And what to do when the location in another directory on the same system? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Image-source-location-problems-examples-did-not-help-tp4653664.html Sent from the Users forum 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 ** This email and any attachments may contain information that is confidential and/or privileged for the sole use of the intended recipient. Any use, review, disclosure, copying, distribution or reliance by others, and any forwarding of this email or its contents, without the express permission of the sender is strictly prohibited by law. If you are not the intended recipient, please contact the sender immediately, delete the e-mail and destroy all copies. **
Re: Image source location problems, examples did not help
Yes I mistypped it. Do you have a suggestion how to solve this problem? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Image-source-location-problems-examples-did-not-help-tp4653664p4653666.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Image source location problems, examples did not help
Hi, How 'opdracten' is related to 'images' folder (the one that is next to WEB-INF) ? On Tue, Nov 6, 2012 at 11:20 PM, Delange delan...@telfort.nl wrote: Maybe it's easy but I struggle to long with it. In my webapplication I have this structure myapplication css images WEB-INF classes etc etc My Html looks like this opdrachten/284/IMG_0013.JPG My Java is: StaticImage imageTest = new StaticImage(imagetest,new Model(/opdrachten/284/P1010841.JPG)); form.add(imageTest); Then on my page the link is /opdrachten/284/P1010841.JPG I also tried Image but that didn't work either. What's wrong? And what to do when the location in another directory on the same system? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Image-source-location-problems-examples-did-not-help-tp4653664.html Sent from the Users forum 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 -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/
Re: format value missing in ConversionException thrown by wicket-datetime's DateConverter
Hi, Everything is possible. Create a Jira, describe the problem, attach a patch and it will be applied much sooner than Wicket 8. On Tue, Nov 6, 2012 at 7:21 PM, Benedikt Schlegel codecab.dri...@googlemail.com wrote: Ok, so they won't get merged any time soon. Maybe in about 2 years, if we're lucky :-( But still, is it possible to make some smaller enhancements on those until we finally get Java 8? 2012/11/6 Jesse Long j...@unknown.za.net Hi Benedikt, wicket-datetime implementation is much nicer, but requires the Joda Time dependency, which the wicket-extensions version is based on normal JDK API. When JSR310 comes out in Wicket's minimum required Java version (Java 8?) we can probably merge them. Cheers, Jesse On 05/11/2012 13:40, Benedikt Schlegel wrote: What I need is not what I want in this case.. I want to reuse wicket components as much as possible. I don't want to reinvent the wheel. In wicket, there are two separate, Date-specific TextField components: - org.apache.wicket.extensions.**markup.html.form.DateTextField - org.apache.wicket.datetime.**markup.html.form.DateTextField Both use different DateConverters, to be located at: - org.apache.wicket.util.**convert.converter.**DateConverter - org.apache.wicket.datetime.**DateConverter The components in wicket-datetime are more convenient and powerful, so I'm gonna use them. The only drawback I see is the spartanic ConversionException, in which e.g. the dateformat information is missing. The exception created by wicket-etensions's DateConverter holds that information. So yes, I guess this is a break. That also raises a much bigger question: Why is that legacy code (my guess) in wicket-extensions still there? Why don't consolidate those two? As I see it, same authors were working on both packages? 2012/11/5 Martin Grigorov mgrigo...@apache.org Hi, We follow users@ mailing list too :-) Since 1) DateConverter is not final 2) the related methods in it are public, non-final 3) it is possible to register custom converter for Date.class in ConverterLocator I think you should be able to do what you need. Are there any breaks ? On Sun, Nov 4, 2012 at 1:59 PM, Simon B simon.bott...@gmail.com wrote: Hi Benedikt Should this be posted on the Forum for Wicket Core developers forum? Simon -- View this message in context: http://apache-wicket.1842946.** n4.nabble.com/format-value-**missing-in-* *ConversionException-thrown-by-**wicket-datetime-s-**DateConverter-** tp4653598p4653603.html http://apache-wicket.1842946.n4.nabble.com/format-value-missing-in-ConversionException-thrown-by-wicket-datetime-s-DateConverter-tp4653598p4653603.html Sent from the Users forum mailing list archive at Nabble.com. --**--** - To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.org users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com --**--** - To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.org users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org --**--**- To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.org users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/