I downloaded the <displaytag> source and have added the code to WSAD using maven. I am trying to find out how the urls are rewriten when we use them in WPS. I have found WpsRequestHelperFactory and WpsRequestHelper but from my search they are not used anywhere. This bring up two questions, (1) if WpsRequestHelperFactory and WpsRequestHelper are not used to rewrite a url for use in a protal what does the rewriting? (2) What does the url rewriting so I can expose that method so that links we create in a decorator can use it to rewrite our urls.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
How can I rewrite a URL and not a pageContext? The WpsRequestHelper only allows you to feed it a PageContext and not a URL. Why? What about wps user friendly urls? It seems I can only build a portal link to an already existing page that I have somehow gotten the page context for. True? Once again I am new to potlets so please understand if this is a dumb question.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
A little more detail is needed. We are using the column decorator pattern. How can we use the Column Decorator and the WpsRequestHelper together to create links in row cells that are rewriten for use in a portal application? I am thinking we need the context in the Column Decorator. If my thinking is correct how do we get the context in the column decorator?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I downloaded the <displaytag> source and have added the code to WSAD using maven. I am trying to find out how the urls are rewriten when we use them in WPS. I have found WpsRequestHelperFactory and WpsRequestHelper but from my search they are not used anywhere. This bring up two questions, (1) if WpsRequestHelperFactory and WpsRequestHelper are not used to rewrite a url for use in a protal what does the rewriting? (2) What does the url rewriting so I can expose that method so that links we create in a decorator can use it to rewrite our urls.
You can configure displaytag to use WpsRequestHelperFactory instead of its default factory. See
http://displaytag.sourceforge.net/configuration.html (property name is "factory.requestHelper")
The WpsRequestHelperFactory works with websphere portal server 4, it probably will not work with version 5
How can I rewrite a URL and not a pageContext? The WpsRequestHelper only allows you to feed it a PageContext and not a URL. Why? What about wps user friendly urls? It seems I can only build a portal link to an already existing page that I have somehow gotten the page context for. True? Once again I am new to potlets so please understand if this is a dumb question.
A little more detail is needed. We are using the column decorator pattern. How can we use the Column Decorator and the WpsRequestHelper together to create links in row cells that are rewriten for use in a portal application? I am thinking we need the context in the Column Decorator. If my thinking is correct how do we get the context in the column decorator?
Answering my own question the parent class Decorator has a property named pageContext.