You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Matej Knopp (JIRA)" <ji...@apache.org> on 2007/03/11 10:24:09 UTC

[jira] Commented: (WICKET-41) Problem in generation of the html code of the page

    [ https://issues.apache.org/jira/browse/WICKET-41?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12479918 ] 

Matej Knopp commented on WICKET-41:
-----------------------------------

This looks to be caused by the fact that i didn't realize that not everything that implements CharSequence compares the content. Should be fixed, can you please try latest 1.x / trunk?

> Problem in generation of the html code of the page
> --------------------------------------------------
>
>                 Key: WICKET-41
>                 URL: https://issues.apache.org/jira/browse/WICKET-41
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 2.0
>            Reporter: Alberto Bueno
>         Assigned To: Matej Knopp
>             Fix For: 2.0
>
>
> When we create a page, the page generates this html code:
>    <script type="text/javascript" ><!--/*--><![CDATA[/*><!--*/
> if (window.name=='') { window.location="/quickstart/app?wicket:interface=:1::INewBrowserWindowListener"; }
> /*-->]]>*/</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()
>            {
>                // TODO Auto-generated method stub
>                String p = "";
>            }
>        };
>    }
> }
> 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=='') { window.location="/quickstart/app?wicket:interface=:1::INewBrowserWindowListener"; }
> /*-->]]>*/</script>
>    <script type="text/javascript" ><!--/*--><![CDATA[/*><!--*/
> if (window.name=='') { window.location="/quickstart/app?wicket:interface=:1::INewBrowserWindowListener"; }
> /*-->]]>*/</script>
> And if we continue clicking the button, the page continues duplicating the code... 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.