Re: Java 7 and 8 features

2015-10-27 Thread Oliver B. Fischer
expressions and others features, so i came by this email to know why the developers not using this features? -- N Oliver B. Fischer A Schönhauser Allee 64, 10437 Berlin, Deutschland/Germany P +49 30 44793251 M +49 178 7903538 E o.b.fisc...@swe-blog.net S oliver.b.fischer J oliver.b.fisc...@jabber.org X

TextArea and Collection as Model

2014-05-28 Thread Oliver B. Fischer
Hi, I use a |TextArea| component in a form so that users can enter a set of IP addresses. The target model is of type |CollectionString|. I have written a validator to validate the raw user input an a converter to convert the string input into a collection of strings (|CollectionString|).

Re: TextArea and Collection as Model

2014-05-28 Thread Oliver B. Fischer
:27, schrieb Oliver B. Fischer: Hi, I use a |TextArea| component in a form so that users can enter a set of IP addresses. The target model is of type |CollectionString|. I have written a validator to validate the raw user input an a converter to convert the string input into a collection of strings

Re: TextArea and Collection as Model

2014-05-28 Thread Oliver B. Fischer
28.05.14 14:27, schrieb Oliver B. Fischer: Hi, I use a |TextArea| component in a form so that users can enter a set of IP addresses. The target model is of type |CollectionString|. I have written a validator to validate the raw user input an a converter to convert the string input into a collection

Re: TextArea and Collection as Model

2014-05-28 Thread Oliver B. Fischer
); The exception indicated you have some other component here. Sven On 05/28/2014 03:47 PM, Oliver B. Fischer wrote: Ok, I thought the validation happens before the conversion. So the converter must also validate the raw input. Feels a little bit strange but is ok. Complains meens that I get the following

Handling exceptions thrown by a model

2014-01-22 Thread Oliver B. Fischer
I have implementation of LoadableDetachableModel which might throw an exception in load(). Unfortunately this exception might be thrown while rendering the page. Currently I handle the exception with an AbstractRequestCycleListener added to the application itself. But don't like it because

Best practice for separating frontend and backend logic in wicket for testing?

2014-01-21 Thread Oliver B. Fischer
There are some pages in my project which needs to interact with the backend. I have to load the data I would like to display or I have to persist form data. This works as I expect it and Wicket does here a great job. But how can I test this? For example I would like to test if page

Re: 10th aniversary of wicket

2014-01-21 Thread Oliver B. Fischer
I think it would be worth to send out a press release via the ASF. Am 20.01.14 11:25, schrieb Ernesto Reinaldo Barreiro: Hi, On Mon, Jan 20, 2014 at 11:12 AM, Martin Grigorov mgrigo...@apache.orgwrote: I also would like to visit Cuba! :) Me too! But Cuba it might be a limitation for

Re: Best practice for separating frontend and backend logic in wicket for testing?

2014-01-21 Thread Oliver B. Fischer
Sorry for the question. I oversight the method startPage(Page page) method Am 21.01.14 13:28, schrieb Oliver B. Fischer: There are some pages in my project which needs to interact with the backend. I have to load the data I would like to display or I have to persist form data. This works

Best practice for separating frontend and backend logic in wicket for testing?

2014-01-21 Thread Oliver B. Fischer
There are some pages in my project which needs to interact with the backend. I have to load the data I would like to display or I have to persist form data. This works as I expect it and Wicket does here a great job. But how can I test this? For example I would like to test if page

Re: Displaying Wicket version number

2014-01-19 Thread Oliver B. Fischer
Thanks1 Am 17.01.14 11:10, schrieb Martin Funk: Hint, create a quickstart http://wicket.apache.org/start/quickstart.html and look into the code :-) otherwise go for: getApplication().getFrameworkSettings().getVersion() mf 2014/1/17 Oliver B. Fischer mails...@swe-blog.net I would like

Displaying Wicket version number

2014-01-17 Thread Oliver B. Fischer
I would like to show the wicket version number in the about page of my application. Is the version numner available as message property or do I jave to do it by my own? BYe, Oliver -- Oliver Fischer M +49 178 7903538 E oliver.fisc...@profitbricks.com W http://www.profitbricks.com J

Adding UUID Converter

2014-01-14 Thread Oliver B. Fischer
I have to validate a lot of UUIDs and wrote a small converter for UUID. If the quite simple implementation is fine for you I would like to contribute it to the Wicket code base including some tests public class UUIDConverter implements IConverterUUID { public static final String UUID_REGEX

Re: Adding UUID Converter

2014-01-14 Thread Oliver B. Fischer
Am 14.01.14 14:02, schrieb Martin Grigorov: It is quite simple. Anyone can write it if it is needed for her application. But also I don't object to add it. Yes, that is true. On the otherhand I expected Wicket to support it since the UUID class is part of java.lang I will prepare a patch

Re: Why is getDisplayValue in getDisplayValue final?

2014-01-13 Thread Oliver B. Fischer
AM, Oliver B. Fischer mails...@swe-blog.net wrote: Hi, I just tried to customize EnumChoiceRenderer and to override getDisplayValue, but is final. Why? Can I submit a patch to remove final? Bye, Oliver - To unsubscribe, e-mail

Re: Why is getDisplayValue in getDisplayValue final?

2014-01-13 Thread Oliver B. Fischer
Am 10.01.14 08:41, schrieb Martin Grigorov: if you consulted with the source you would see that there is no reason to override that method directly as its functionality can be completely replaced by overriding postprocess()... so why override the original? For example to prevent

WicketTester: getLastRenderedPage() returns null

2014-01-13 Thread Oliver B. Fischer
I have strange unit test where I use the WicketTester. I perform the usual Does the page renders test?. In my IDE the test passes, but fails on the command line with Maven. When I execute the test on the command line I can see that getLastRenderedPage() returns null. Any idea how to debug

Re: Why is getDisplayValue in getDisplayValue final?

2014-01-09 Thread Oliver B. Fischer
. But if the user gives us a good reason we will consider it. Martin Grigorov Wicket Training and Consulting On Wed, Jan 8, 2014 at 10:40 AM, Oliver B. Fischer mails...@swe-blog.netwrote: I see the good point in it but in the moment when I needed a different behaviour it is still final. No one will wait

Re: Why is getDisplayValue in getDisplayValue final?

2014-01-08 Thread Oliver B. Fischer
understand. On 08/01/14 00:53, Oliver B. Fischer wrote: There are to much final methods in Wicket. This leads to copying code instead of overriding only the methods you would like to change. Oliver Am 07.01.14 15:44, schrieb Martin Grigorov: On Tue, Jan 7, 2014 at 4:42 PM, Martin Grigorov mgrigo

Why is getDisplayValue in getDisplayValue final?

2014-01-07 Thread Oliver B. Fischer
Hi, I just tried to customize EnumChoiceRenderer and to override getDisplayValue, but is final. Why? Can I submit a patch to remove final? Bye, Oliver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For

Re: Why is getDisplayValue in getDisplayValue final?

2014-01-07 Thread Oliver B. Fischer
.x. Actually it is still final. I have been confused with another method. I don't mind removing final in 6.x too. Martin Grigorov Wicket Training and Consulting On Tue, Jan 7, 2014 at 4:37 PM, Oliver B. Fischer mails...@swe-blog.netwrote: Hi, I just tried to customize EnumChoiceRenderer

Referencing CSS resources

2013-12-04 Thread Oliver B. Fischer
Hi, I would like to include all Bootstrap 3 resources via resources references. I managed to in include all CSS files by extending CssResourceReference and specifying a list of dependencies (getDependencies()). But how can I include the fonts provided by Bootstrap? The fonts are referenced

Re: Referencing CSS resources

2013-12-04 Thread Oliver B. Fischer
structure. On Wed, Dec 4, 2013 at 11:59 AM, Oliver B. Fischer mails...@swe-blog.netwrote: Hi, I would like to include all Bootstrap 3 resources via resources references. I managed to in include all CSS files by extending CssResourceReference and specifying a list of dependencies (getDependencies

Re: Referencing CSS resources

2013-12-04 Thread Oliver B. Fischer
Hi Martin, I think I will try to write a custom package resource... BYe, Oliver Am 04.12.13 13:23, schrieb Martin Grigorov: On Wed, Dec 4, 2013 at 12:11 PM, Oliver B. Fischer mails...@swe-blog.netwrote: Hi, it is there. The CSS as bundle is referenced via http://localhost:8080/bs3test

Re: Referencing CSS resources

2013-12-04 Thread Oliver B. Fischer
some simple pages quite fast. But if you need something more complicated you are confronted with a lot of classes and you must understand all the details. And this does not pay off unless you will build many different applications... Am 04.12.13 13:45, schrieb Oliver B. Fischer: Hi Martin

Re: Referencing CSS resources

2013-12-04 Thread Oliver B. Fischer
://wicket.apache.org/guide/guide/single.html#chapter14_4 I'll need more information/code to be able to help you more. On Wed, Dec 4, 2013 at 2:34 PM, Oliver B. Fischer mails...@swe-blog.netwrote: Hi Martin, is there any ready resource class that simply maps all resource requests to a package

Re: Referencing CSS resources

2013-12-04 Thread Oliver B. Fischer
/Bootstrap3Reference.java?at=master#cl-26 ) Wicket does the same for you. On Wed, Dec 4, 2013 at 3:28 PM, Oliver B. Fischer mails...@swe-blog.netwrote: Hi Martin, I think the problem is how I specify the bootstrap-theme.css theme as a dependency of bootstrap.css. I put my example online

Re: Referencing CSS resources

2013-12-04 Thread Oliver B. Fischer
:-) On Wed, Dec 4, 2013 at 5:26 PM, Oliver B. Fischer mails...@swe-blog.netwrote: Hi Martin, I updated it and changed it as you suggested. But the problem remains. bootstrap.css is fetched via /bs3test/wicket/resource/com. profitbricks.wicket.bootstrap.resources.example.bundle. Bootstrap3Reference

Re: Referencing CSS resources

2013-12-04 Thread Oliver B. Fischer
PM, Oliver B. Fischer mails...@swe-blog.netwrote: Hi Martin, I updated it and changed it as you suggested. But the problem remains. bootstrap.css is fetched via /bs3test/wicket/resource/com. profitbricks.wicket.bootstrap.resources.example.bundle. Bootstrap3Reference/bootstrap-ver-1386173958000

AttributeModifier and RepeatingView

2013-08-09 Thread Oliver B. Fischer
Dear list, I have problems to add an attribute the a element generated by BookmarkablePageLink. I use a RepeatingView to generate a unordered list. The attribute I would like to add is not added to a element but to the li element. The question is why? If I try the same code without a

Re: AttributeModifier and RepeatingView

2013-08-09 Thread Oliver B. Fischer
paste it too. On Fri, Aug 9, 2013 at 2:48 PM, Oliver B. Fischer mails...@swe-blog.netwrote: Dear list, I have problems to add an attribute the a element generated by BookmarkablePageLink. I use a RepeatingView to generate a unordered list. The attribute I would like to add is not added