Login Register

dojox contentpane with href pointing to a JSP

I am trying to use dojox.layout.ContentPane to reference a JSP file. This is what i am doing:

<code><div cleanContent="true" dojoType="dojox.layout.ContentPane" href="somefile.jsp" id="Usr-Rl_Mgmt" refreshOnShow="true" title="Usr-Rl_Mgmt"></div></code>

This throws a js error "already called" each time the content pane is viewed. Any suggestions on how I can resolve the problem would be helpful. Thanks.

Most likely unrelated to JSP

The safe bet is this has nothing to do with JSP or ASP or PHP had you been using one of those server types. I would venture to say this problem will vanish using dijit.layout.ContentPane. Do you have a specific reason for using dojox.layout.ContentPane? It's highly problematic, I'll be posting an issue on that here today.

Cannot use dynamic page generators in content panes

You cannot use any server-side templates that generate complete pages inside a content pane. You cannot nest HTML pages within HTML pages. You are going to have to use servlets or web services to serve up content that can be inserted inside and the existing page body. Even then, dojox.layout.ContentPane is problematic and you should avoid using it.