Re: WiQuery broken by adding component to AjaxRequestTarget

2010-12-04 Thread guydog28

For anyone following this, here is a link to the issue on the WiQuery site,
where I have provided additional details and attached a sample project:

http://code.google.com/p/wiquery/issues/detail?id=143
http://code.google.com/p/wiquery/issues/detail?id=143 
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/WiQuery-broken-by-adding-component-to-AjaxRequestTarget-tp3066621p3072774.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



Re: WiQuery broken by adding component to AjaxRequestTarget

2010-12-03 Thread guydog28

More information:  Looking at the wicket ajax debug, it appears that it is
placing the javascript to open the dialog ahead of the
$(#component).dialog(...)  Basically, the plugin rendering javascript is
being executed AFTER dialog.open(target), and therefore you never see it.  
Anything you add to target.appendJavascript (including dialog.open(target)
which does this under the covers) will be executed prior to the
plugin.render javascript.  At least my understanding is that you can't open
a dialog that isn't yet a dialog!
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/WiQuery-broken-by-adding-component-to-AjaxRequestTarget-tp3066621p3071233.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



Re: WiQuery broken by adding component to AjaxRequestTarget

2010-12-03 Thread guydog28

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-responseheader-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-contributioncomponent id=viewRequirement10
![CDATA[!-- the content is here but I have ommitted it to slim things
down--]]/componentevaluate![CDATA[$('#viewRequirementDialog4').dialog('open');]]/evaluateevaluate![CDATA[$('#viewRequirementDialog4').dialog({autoOpen:
false, position: 'center', height: 700, width: 1000, modal: true, resizable:
false})
;]]/evaluateevaluate![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