THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
However, you can accomplish the same thing with a little code and markup. For example, to create a link to another page and pass a query parameter, you can replace your PageLink component with
a standard <a>
tag:
Code Block | ||||
---|---|---|---|---|
| ||||
<a href="${profilePageLink}">Display Profile (w/ full details)</a> |
In the matching Java class, you can create the Link programmatically:
Code Block | ||||
---|---|---|---|---|
| ||||
@Inject private PageRenderLinkSource linkSource; public Link getProfilePageLink() { Link link = linkSource.createPageRenderLinkWithContext(DisplayProfile.class, user); link.addParameter("detail", "true"); return link; } |
... and in the DisplayProfile page:
Code Block | ||||
---|---|---|---|---|
| ||||
public class DisplayProfile { void onActivate(@RequestParameter("detail") boolean detail) { . . . } } |
...