You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Thomas Peuss <th...@peuss.de> on 2006/03/21 13:20:38 UTC
Problems with form and target _blank
Hello!
I have a problem with a form that has commandlinks with target="_blank".
The problem is that sometimes the new window opens with the same page I
am coming from, sometimes it opens the correct new page I have defined
in faces-config.xml. The behaviour is completely random. I tried to have
a target="_blank" on form level and use commandbuttons. But the
behaviour stays the same. So there must be something I am doing wrong.
In the logfile are no exceptions or warnings.
Environment:
* Sun JDK 5.0
* Tomcat 5.5.16
* MyFaces 1.1.1
I attached the JSP for reference.
Thanks for any advice
Thomas
Re: Problems with form and target _blank
Posted by Thomas Peuss <th...@peuss.de>.
Hello!
Thomas Peuss wrote:
> Hello!
>
> I have a problem with a form that has commandlinks with target="_blank".
> The problem is that sometimes the new window opens with the same page I
> am coming from, sometimes it opens the correct new page I have defined
> in faces-config.xml. The behaviour is completely random. I tried to have
> a target="_blank" on form level and use commandbuttons. But the
> behaviour stays the same. So there must be something I am doing wrong.
> In the logfile are no exceptions or warnings.
>
> Environment:
> * Sun JDK 5.0
> * Tomcat 5.5.16
> * MyFaces 1.1.1
>
An update to this. With the Sun RI 1.1_01 it works perfectly well. So
there is a difference in behaviour between MyFaces and the Sun RI.
I investigated further in the "randomness" of behaviour. I have now
found out that everything works well on every second click. So if I
click and close the new window and click again it works. But the next
click does not work again.
CU
Thomas