Additional supporting details:

from code:
                @Override
                public void onClick(AjaxRequestTarget target)
                {
                   
viewReqModal.setModelObject(requirementService.find(66L));
                    target.addComponent(viewReqModal);
                    viewReqModal.open(target);
                }

Wicket AJAX Debug (the dialog has an accordion in it):

<?xml version="1.0"
encoding="UTF-8"?><ajax-response><header-contribution><![CDATA[<head
xmlns:wicket="http://wicket.apache.org";><script type="text/javascript"
src="resources/org.odlabs.wiquery.core.commons.CoreJavaScriptResourceReference/jquery/jquery-1.4.4.js"></script>
<link rel="stylesheet" type="text/css"
href="resources/org.odlabs.wiquery.ui.themes.WiQueryCoreThemeResourceReference/fusion/jquery-ui-1.8.6.custom.css"
/>
<script type="text/javascript"
src="resources/org.odlabs.wiquery.ui.core.CoreUIJavaScriptResourceReference/jquery.ui.core.js"></script>
<script type="text/javascript"
src="resources/org.odlabs.wiquery.ui.widget.WidgetJavascriptResourceReference/jquery.ui.widget.js"></script>
<script type="text/javascript"
src="resources/org.odlabs.wiquery.ui.mouse.MouseJavascriptResourceReference/jquery.ui.mouse.js"></script>
<script type="text/javascript"
src="resources/org.odlabs.wiquery.ui.position.PositionJavascriptResourceReference/jquery.ui.position.js"></script>
<script type="text/javascript"
src="resources/org.odlabs.wiquery.ui.dialog.DialogJavaScriptResourceReference/jquery.ui.dialog.js"></script>
<script type="text/javascript"
src="resources/org.odlabs.wiquery.ui.draggable.DraggableJavaScriptResourceReference/jquery.ui.draggable.js"></script>
<script type="text/javascript"
src="resources/org.odlabs.wiquery.ui.resizable.ResizableJavaScriptResourceReference/jquery.ui.resizable.js"></script>
<script type="text/javascript"
src="resources/org.odlabs.wiquery.ui.accordion.AccordionJavaScriptResourceReference/jquery.ui.accordion.js"></script>
</head>]]></header-contribution><component id="viewRequirement10"
><![CDATA[<!-- the content is here but I have ommitted it to slim things
down-->]]></component><evaluate><![CDATA[$('#viewRequirementDialog4').dialog('open');]]></evaluate><evaluate><![CDATA[$('#viewRequirementDialog4').dialog({autoOpen:
false, position: 'center', height: 700, width: 1000, modal: true, resizable:
false})
;]]></evaluate><evaluate><![CDATA[$('#requirementViewAccordion5').accordion({autoHeight:
false})
;]]></evaluate></ajax-response>

As you can see with the EVALUATE statements at the end, the javascript you
manually append to the target (dialog.open()) occurs before the
WiQueryCoreHeaderContributor.renderPlugin jQuery statements.

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/WiQuery-broken-by-adding-component-to-AjaxRequestTarget-tp3066621p3071306.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to