Hi *,
I added to a panel two fragments. The ajax response looks like
attchement. I would like to check if the attribute "class" for tag
pnlHeader1 is as expected.
But the TagTester only gives me the component tag with same id. Can i
"extract" the CDATA area to?
PS: I surely can parse the markup myself. But i look for a wicket
feature for that.
Thanks for your help
Per
html
<wicket:panel>
<div wicket:id="pnlHeader">header</div>
<div wicket:id="pnlBody">body</div>
<wicket:fragment wicket:id="frgHeader">
<a wicket:id="lnkHeader">
<span wicket:id="lblHeader">XPBarHeader</span>
</a>
</wicket:fragment>
<wicket:fragment wicket:id="frgBody">
<ul>
<li wicket:id="lvBody">
<a wicket:id="lnkContent">
<span wicket:id="lblContent">LinkContent</span>
</a>
</li>
</ul>
</wicket:fragment>
</wicket:panel>
--------------------------------------------
debugPage of wickettester
<ajax-response>
<header-contribution encoding="wicket1" >
<![CDATA[
<head xmlns:wicket="http://wicket.apache.org">
<script type="text/javascript"
src="resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js"></script>
<script type="text/javascript"
src="resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js"></script>
<script type="text/javascript"
src="resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug.js"></script>
<script type="text/javascript"
id="wicket-ajax-debug-enable"><!--/*--><![CDATA[/*><!--*/
wicketAjaxDebugEnable=true; /*-->]^]^>*/</script>
</head>]]>
</header-contribution>
<component id="pnlHeader1" >
<![CDATA[
<div id="pnlHeader1" class="doClose">
<a id="lnkHeader2" href="#" onclick="var
wcall=wicketAjaxGet('?wicket:interface=:1:panel:lvPanels:0:elPanel:pnlHeader:lnkHeader::IBehaviorListener:0:-1',null,null,
function() {return Wicket.$('lnkHeader2') != null;}.bind(this));return
!wcall;">
<span>My1stBox</span>
</a>
</div>]]>
</component>
<component id="pnlBody3" >
<![CDATA[<div id="pnlBody3">
<ul>
<li>
<a id="lnkContent5" href="#" onclick="var
wcall=wicketAjaxGet('?wicket:interface=:1:panel:lvPanels:0:elPanel:pnlBody:lvBody:0:lnkContent::IBehaviorListener:0:-1',null,null,
function() {return Wicket.$('lnkContent5') != null;}.bind(this));return
!wcall;">
<span>My1stLink</span>
</a>
</li>
</ul>
</div>]]>
</component>
</ajax-response>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org