Wicket Style Options

I want to create some kind of site, I have to have user profiles available at the URL, for example site.com/user/m4ks I have no idea how to do this using Wicket. Is it possible to make BookMarkablePage using any wildcards?

+3
source share
2 answers

For this you need to install IRequestTargetUrlCodingStrategy. My suggestion would be MixedParamHybridUrlCodingStrategy. There you can specify an array of well-known names of the parameters to be added to the URL-address, like this: mypage/param1/value1/param2/value2while the other unknown parameters will be added as follows: mypage?param3=value3.

, , UrlCodingStrategies.

+5

URL. wicket wiki. "IndexedParamUrlCodingStrategy". Javadoc .

: , , ..;)

+2

Source: https://habr.com/ru/post/1782075/


All Articles