Hi,

I have a little concerns about PageParameters and mounted pages.

On a first case - mypage?param=myvalue - I can retrieve param from both
page-parameters and from Request#getQueryParameters()

On a second case - mypage/myvalue (with a mounted page /mypage/${param}) -
I am able to retrieve param only from page-parameters, but not from the
request cycle (Request#getQueryParameters())

Is it intended?

I saw a previous thread on a similar topic, which suggests to parse
requestCycle.getRequest().getUrl() but it looks a little bit weird to me
and I was wondering if there is no other (built-in) feature...

My context is the following: I am trying to secure a mounted page like this
(this is currently just a POC...)

@OACCAuthorizeInstantiation(resource = "${myparam}", permission = "VIEW")

In OACCAuthorizationStrategy#isInstantiationAuthorized(Class<T>
componentClass), I have access to the component class type, not the
component/page instance so I cannot call #getPageParameters anyhow...


Many thanks in advance,
Sebastien

Reply via email to