/** * @see org.apache.wicket.markup.html.link.Link#getURL() */ protected final CharSequence getURL() { if (resourceReference != null) { // TODO post 1.2: should we have support for locale changes when the // resource reference (or resource??) is set manually.. // We should get a new resource reference for the current locale // then // that points to the same resource but with another locale if it // exists. // something like // SharedResource.getResourceReferenceForLocale(resourceReference); resourceReference.bind(getApplication()); return getRequestCycle().urlFor(resourceReference, resourceParameters); } return urlFor(IResourceListener.INTERFACE); } }
/** * @see org.apache.wicket.markup.html.link.Link#getURL() */ @Override protected final CharSequence getURL() { if (resourceReference != null) { // TODO post 1.2: should we have support for locale changes when the // resource reference (or resource??) is set manually.. // We should get a new resource reference for the current locale // then // that points to the same resource but with another locale if it // exists. // something like // SharedResource.getResourceReferenceForLocale(resourceReference); resourceReference.bind(getApplication()); return getRequestCycle().urlFor(resourceReference, resourceParameters); } return urlFor(IResourceListener.INTERFACE); } }
@Override protected final CharSequence getURL() { if (resourceReference != null) { // TODO post 1.2: should we have support for locale changes when the // resource reference (or resource??) is set manually.. // We should get a new resource reference for the current locale // then // that points to the same resource but with another locale if it // exists. // something like // SharedResource.getResourceReferenceForLocale(resourceReference); if (resourceReference.canBeRegistered()) { getApplication().getResourceReferenceRegistry().registerResourceReference( resourceReference); } return getRequestCycle().urlFor( new ResourceReferenceRequestHandler(resourceReference, resourceParameters)); } return urlForListener(resourceParameters); }
@Override protected final CharSequence getURL() { if (resourceReference != null) { // TODO post 1.2: should we have support for locale changes when the // resource reference (or resource??) is set manually.. // We should get a new resource reference for the current locale // then // that points to the same resource but with another locale if it // exists. // something like // SharedResource.getResourceReferenceForLocale(resourceReference); if (resourceReference.canBeRegistered()) { getApplication().getResourceReferenceRegistry().registerResourceReference( resourceReference); } return getRequestCycle().urlFor( new ResourceReferenceRequestHandler(resourceReference, resourceParameters)); } return urlForListener(resourceParameters); }