UrlCodingStrategy and overriding the decodeParamaters()

View: New views
4 Messages — Rating Filter:   Alert me  

UrlCodingStrategy and overriding the decodeParamaters()

by w_user :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hallo,
 
 How can i override the AbstractRequestTargetUrlCodingStrategy.decodeParameters() function to catch and correct the exception "java.lang.IllegalStateException: URL fragment has unmatched key/value pair"

please help!

Re: UrlCodingStrategy and overriding the decodeParamaters()

by Michael Sparer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Maybe I didn't get the point, but why not subclassing and overriding the method?

try {
super.decodeParameters(...);
} catch (...

or am I misunderstanding you completely?


w_user wrote:
hallo,
 
 How can i override the AbstractRequestTargetUrlCodingStrategy.decodeParameters() function to catch and correct the exception "java.lang.IllegalStateException: URL fragment has unmatched key/value pair"

please help!

Re: UrlCodingStrategy and overriding the decodeParamaters()

by w_user :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

yes, that exactly what i wont "to catch the exception". The problem is that i have only wicket pages with some parameters and the exception occurs befor the constructor in the page instance is called. so I wont to catch this exception but i dont find the way or the position where to write the catch code!


w_user wrote:
hallo,
 
 How can i override the AbstractRequestTargetUrlCodingStrategy.decodeParameters() function to catch and correct the exception "java.lang.IllegalStateException: URL fragment has unmatched key/value pair"

please help!

Re: UrlCodingStrategy and overriding the decodeParamaters()

by w_user :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Another thing is that i have a wicket application and i would like to know how to explitely assign the subclassed class that i override to the application?

thanks for help!!
w_user wrote:
hallo,
 
 How can i override the AbstractRequestTargetUrlCodingStrategy.decodeParameters() function to catch and correct the exception "java.lang.IllegalStateException: URL fragment has unmatched key/value pair"

please help!