Hi,
On Tue, Sep 18, 2012 at 5:09 AM, Ondrej Zizka ozi...@redhat.com wrote:
Hi,
I found myself repeatedly creating a PageParameters object from some
domain object for BookmarkablePageLink just to have it then parsed
back to that same domain object.
Example:
Release rel { product: AS;
Roll your own, e.g. using commons BeanUtils:
import junit.framework.Assert;
import org.apache.commons.beanutils.BeanUtils;
import org.apache.wicket.request.mapper.parameter.INamedParameters;
import org.apache.wicket.request.mapper.parameter.PageParameters;
import org.junit.Test;
import
you can create some reusable bookmarkablelink like below
public class ReleaseBookmarkablePageLink extends BookmarkablePageLink{
private Release release;
public ReleaseBookmarkablePageLink(String id,Class? extends
PagepageClass,Release release){
super(id,pageClass);
Hi,
I found myself repeatedly creating a PageParameters object from some
domain object for BookmarkablePageLink just to have it then parsed
back to that same domain object.
Example:
Release rel { product: AS; version: 7.1.2 }
=
add( new BookmarkablePageLink ( link, ReleasePage.class,