1

We have a webapplication that was intended to be used in a single tab. With this limitation it was ok to use buttons for navigation and the "position" of the user was stored in the session.

Now the "position" is stored in the url and it is possible to open multiple tabs with different views at the same time.

The only thing missing is the possibility to use links instead of buttons for navigation so the user has the option to open them in a new tab.

If I replace the p:commandButton with a p:commandLink it works just like before. But when trying to open the outcome in a new tab by using middle click or right click open in new tab the new tab has the same url as the first one and the action that is called when just clicking the link is not called.

When using target="_blank" the new tab shows the correct outcome but there is no way to stay in the same tab. Using "classic" links with a fixed url works in the same tab and a new tab but the whole page refreshes when staying in the same tab and not only the part that needs refreshed (which is of course the correct behaviour since a "new" url is entered)

update: we use primefaces 7.0 with 6.2 the behaviour was the same
the application is running on payara 5.192

targorsim
  • 25
  • 6
  • 1
    I don't know a neat solution for this. May be you can work around it using [viewAction](https://stackoverflow.com/questions/6377798/what-can-fmetadata-fviewparam-and-fviewaction-be-used-for)? – Selaron Sep 04 '19 at 07:42

0 Answers0