Shiraz,
Does this dynamic XML content include references to Wicket
components? In other words does it include wicket:id attributes?
If not, then you don't need a special panel for it. You can just
display it as a MultilineLabel with escaping turned off.
W
On Apr 27, 2009, at 5:57 AM, shiraz memon wrote:
Hi
I am trying to display dynamic xml content on simple panel. For that
I have
also overriden the getMarkupType method with "xml" as returning
string in
the XmlPanel class (which extends Panel). Besides that, I have also
created
an empty XMLPanel.xml file. After viewing the panel on browser I see
the
following error:
WicketMessage: Tag expected
[markup =
file:/home/shiraz/workspace/iscore/target/classes/is/web/
XmlInfoPanel.xml
, index = 1, current = null]
Root cause:
org.apache.wicket.markup.MarkupException: Tag expected
[markup =
file:/home/shiraz/workspace/iscore/target/classes/is/web/
XmlInfoPanel.xml
, index = 1, current = null]
at
org
.apache
.wicket.markup.MarkupStream.throwMarkupException(MarkupStream.java:
465)
at org.apache.wicket.markup.MarkupStream.getTag(MarkupStream.java:269)
at
org
.apache
.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:
639)
at
org
.apache.wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java:
114)
at org.apache.wicket.Component.renderComponent(Component.java:2596)
at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:
1521)
at org.apache.wicket.Component.render(Component.java:2421)
at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:
1399)
at
org
.apache
.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:
1586)
at
org
.apache
.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1510)
at org.apache.wicket.Component.renderComponent(Component.java:2596)
at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:
1521)
at org.apache.wicket.Component.render(Component.java:2421)
at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:
1399)
at
org
.apache
.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:
1586)
at
org
.apache
.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1510)
at org.apache.wicket.Component.renderComponent(Component.java:2596)
at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:
1521)
at org.apache.wicket.Component.render(Component.java:2421)
at
org.apache.wicket.markup.html.list.ListView.renderItem(ListView.java:
635)
at
org
.apache.wicket.markup.html.list.ListView.renderChild(ListView.java:
623)
at
org
.apache
.wicket
.markup.repeater.AbstractRepeater.onRender(AbstractRepeater.java:103)
at org.apache.wicket.Component.render(Component.java:2421)
at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:
1399)
at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:
1537)
at org.apache.wicket.Page.onRender(Page.java:1522)
at org.apache.wicket.Component.render(Component.java:2421)
at org.apache.wicket.Page.renderPage(Page.java:926)
at
org
.apache
.wicket
.request
.target
.component
.BookmarkablePageRequestTarget
.respond(BookmarkablePageRequestTarget.java:262)
at
org
.apache
.wicket
.request
.AbstractRequestCycleProcessor
.respond(AbstractRequestCycleProcessor.java:105)
at
org
.apache
.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1200)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1271)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1370)
However, the error is about the empty xml file. Since the content is
generated at runtime from some external source, is there a way to
view that
dynamic xml content in wicket panel?
Thanks
Shiraz
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]