Re: DataTable generics vs. IColumn generics

2015-03-05 Thread Sven Meier
Hi Patrick, you can let your column implementation be generic: public class LocationColumnT extends PropertyColumnT { public LocationColumn(String expressionToLocation){ super(Model.of(Location), expressionToLocation); } @Override public

Re: How to convert component model object to rendered HTML?

2015-03-05 Thread Thorsten Schöning
Guten Tag Martin Grigorov, am Donnerstag, 5. März 2015 um 08:47 schrieben Sie: You can call formComponent#clearInput() in #onError() callback method. This way Wicket will use the last (valid) model value. This way I would loose the current input of the user? You can also set custom model

trying to redirect to external URL when using HttpsMapper

2015-03-05 Thread lucast
Dear Forum, I have a form on a page where user enters personal data, and the page has the @RequireHttps because I'm trying to make the information captured more secure. When the user clicks submit, the page should redirect to an external URL. In this case, PayPal checkout page. Unfortunately,

Re: trying to redirect to external URL when using HttpsMapper

2015-03-05 Thread Sven Meier
Hi, how do you redirect to the external url? Have you compared the request sequence in the browser (e.g. with Firebug)? What are the differences between the successful and the failed redirect? Regards Sven Am 05.03.2015 um 18:50 schrieb lucast: Dear Forum, I have a form on a page where user

wicket:enclosure tag issue - no exception for components missing in markup

2015-03-05 Thread Martin Sturm
Hello together, we've just recognized some strange behavior when using wicket:enclosure tag. The scenario: I have a page that has two labels in it's component hierarchy. In the pages markup one label is surrounded with an enclosure-tag, and this label is invisible. The second label was not added

Re: trying to redirect to external URL when using HttpsMapper

2015-03-05 Thread lucast
Hi Sven, Thanks for replying. on the ajax submit button I call: @Override protected void onSubmit(AjaxRequestTarget target, Form? form) { redirectToInterceptPage(new RedirectPage(URLString)); } Have you compared the request sequence in the browser (e.g. with Firebug)? That is

Re: How to convert component model object to rendered HTML?

2015-03-05 Thread Thorsten Schöning
Guten Tag Thorsten Schöning, am Donnerstag, 5. März 2015 um 18:57 schrieben Sie: Looks like I would need something simple like overriding FormComponent.getValue, which is final... I found a simple workaround for me: Override onInvalid and getInputAsArray, in onInvalid I set an instance flag to

DataTable generics vs. IColumn generics

2015-03-05 Thread Patrick Davids
Hi all, whats the meaning of generic T on DataTables vs T of IColumn and T of ICellPopulator? As I understand its the type of object shown by the table rows. Reading the javadoc of AbstractColumn it says T (if I understand correct), its the type of object shown by the cell itself. But

Re: wicket:enclosure tag issue - no exception for components missing in markup

2015-03-05 Thread Martin Grigorov
Hi, I'd try with a proper .java/.html files. Using getMarkupResourceStream() is not always the same as the default/production way. Maybe the bug is somewhere there. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Mar 5, 2015 at 12:06 PM, Martin Sturm

Re: DataTable generics vs. IColumn generics

2015-03-05 Thread Sven Meier
Hi, generic T is identical for the DataTable, and it's IColumns: it's the type of the row models. A column is responsible to provide a cell component for a row: For DataTable only the input (e.g. Person) is interesting, the output (Location) doesn't matter. Your LocationColumn should

Re: DataTable generics vs. IColumn generics

2015-03-05 Thread Patrick Davids
Hi Sven, thanx for feedback. Ok, how to implement the LocationColumn more reusable? I dont want to be bound to a Datatable of Persons. I'd like to have a Column which works with a Locations, independently from which model-object the expression fetches the Location. Is there any way to do