> Example would be a link on a table...
>
>
>                 columns.add(new LinkPropertyColumn(new Model("Delivery"), new 
> Model(
>                                 "change")) {
>                         @Override
>                         public Link createLink(final Item item, String 
> componentId,
>                                         final IModel model) {
>                                 return new Link(componentId) {
>                                         @Override
>                                         public void onClick() {
>                                                 ReportStatistic 
> reportStatistic = (ReportStatistic) model
>                                                                 .getObject();
>                                                 DraftProduct draft = 
> productService
>                                                                 
> .getDraftProduct(reportStatistic.getReportId());
>                                                 setResponsePage(new 
> ReportDelivery(draft));
>                                         }
>                                 };
>                         }
>                 });
>

For the record, this code fragment doesn't look like 'too much Java'
to me tbh. The decision to load the draft and redirect to another page
could be done in Velocity, but would immediately mean that you pay
with maintainability.

Eelco

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to