Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.0 branch (discontinued)
-
None
Description
When we create a page, the page generates this html code:
<script type="text/javascript" ><!-/><![CDATA[/><!-*/
if (window.name=='')
/-->]]>/</script>
Now, we add a button in the page (a very simple page):
public class Index extends QuickStartPage
{
public Index(final PageParameters parameters)
{
Form form = new Form(this, "form");
new Button(form, "button"){
@Override
public void onSubmit()
};
}
}
And when we click the button, in the generation of the page we have the code duplicated:
<script type="text/javascript" ><!-/><![CDATA[/><!-*/
if (window.name=='')
/-->]]>/</script>
<script type="text/javascript" ><!-/><![CDATA[/><!-*/
if (window.name=='')
/-->]]>/</script>
And if we continue clicking the button, the page continues duplicating the code...