cancel
Showing results for 
Search instead for 
Did you mean: 

redirect in a .form ?

bhj2
Champ in-the-making
Champ in-the-making
Hello,

I use my own version of the explorer(with vaadin) and the activiti engine. My problem is when i put a javascript redirect in the .form

<script language="javascript" type="text/javascript">
     <!–
     window.location="http://localhost:8080/mycompany?token=${token}&taskId=1";
     // –>
</script>
Please wait…

When i come back on the explorer application, the script is executed again.. and again… and again…

How do you solve this problem?

Best regards!
1 REPLY 1

frederikherema1
Star Contributor
Star Contributor
When using Vaadin, it's not a good idea to write your own javascript, let alone manipulating the page's location without passing through the Vaadin Mainwindow or Application.

In vaading, you should do this (from the top of my head):

application.getMainWindow().open(new ExternalResource("http://…."));