Re: How to listen for CHILD ajax form submits

2010-12-16 Thread guydog28

Ernesto,

I had thought of that.  I was hoping to avoid the custom button/link route,
but seeing as I haven't heard anything more elegant yet, I decided to go
with it for now.  Thanks for your input!
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-listen-for-CHILD-ajax-form-submits-tp3086439p3092111.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: How to listen for CHILD ajax form submits

2010-12-14 Thread guydog28

Anyone?  Abstract:  I have extended WiQuery Dialog with our own custom
dialog.  I want the MyDialog to know if any child components are a Form,
being submitted via AJAX (AjaxFormSubmitBehavior).  I need access to the
AjaxRequestTarget created by that ajax form submit so I can append
javascript to it or add components.  I'm really hoping someone has a
suggestion that I missed.  This is a major blocker for us right now.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-listen-for-CHILD-ajax-form-submits-tp3086439p3087882.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



How to listen for CHILD ajax form submits

2010-12-13 Thread guydog28

I have a panel.  I cannot figure out a way to have this panel informed if any
of its children happens to exectute an AjaxFormSubmittingBehavior form
submit.  Ideally, I'd like my panel to listen for this, and have access to
the AjaxRequestTarget.  Is there a reasonable way to do this?  My panel does
not define the child hierarchy, or where/if there is a form that will be
submitted via ajax from within panel.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-listen-for-CHILD-ajax-form-submits-tp3086439p3086439.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-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



Re: WiQuery Dialog when used with Ajax

2010-11-27 Thread guydog28

Ernesto,

In the below snippet, sometimes it is not possible to ONLY  include the
content of the modal dialog in the ajax target.  There are times where a
parent of the dialog may be added to another AjaxRequestTarget (for some
reason other than just updating the dialog window - maybe to update a list
view that launches the modal).  In this case, the Dialog is destroyed as is
no longer displayed.  Is there anything that can be done to resolve this so
we don't have to work around the normal if you add the parent to the
target, the child will be updated approach?  Adding the parent in this case
destroys the child.


Ernesto Reinaldo Barreiro-4 wrote:
 
 
   target.addComponent(content);
   dialog.open(target);
 
 

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/WiQuery-Dialog-when-used-with-Ajax-tp3009441p3061879.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