That is a huge class with lots of internal knowledge! It would be a
nightmare to maintain and keep up to date with internal Wicket
changes. All for one final keyword.
The class seems to have been built with subclassing in mind but just
this single final clause stops me being able to use it. There is
only one wicket subclass Crypted... which does not use a custom path
so hasn't tested this superclass fully.
On 9 Oct 2007, at 16:01, Matej Knopp wrote:
Thinking about it, probably better (and more solid) approach would be
for you to copy the entire class (unless it references some package
protected classes).
-Matej
On 10/9/07, John Patterson <[EMAIL PROTECTED]> wrote:
Just a bit more info on the problem... encoding allows me to override
the equivalent method:
rg.apache.wicket.IRequestTarget)
*/
public final CharSequence pathForTarget(IRequestTarget
requestTarget)
{
// first check whether the target was mounted
IRequestTargetUrlCodingStrategy encoder =
getMountEncoder
(requestTarget);
... here getMountEncoder() is not final.
Cheers,
John
On 9 Oct 2007, at 15:37, John Patterson wrote:
Hi,
I seem to be making progress with my custom URL scheme but have hit
a small wall. I have subclassed WebRequestCodingStrategy because I
want to keep the mountable page behaviour but just enhance it to
return my own target if no mounts are found and default processing
does not apply. I am trying to implement
IRequestTarget targetForRequest(RequestParameters)
... but I cannot find a way to return my own target. Everything is
final or private. If this method
public final IRequestTargetUrlCodingStrategy
urlCodingStrategyForPath(String path)
was not final I could return my implementation. Or if I could add
a mount which returned null for getMountPath() then I would be
sweet.
Cheers,
John
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]