google-code-export / wiquery

Automatically exported from code.google.com/p/wiquery
MIT License
1 stars 1 forks source link

Adding WiQuery component (Accordion) to a Dialog does not work out of the box. #142

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.  Add an Accordion to a Dialog.
2.  in an ajaxlink onclick, call dialog.open(target);
3.  The accordion style is not applied.

Of course this is because you should declare the accordion statement in the 
openEvent of the dialog.  Is there a way to automate this behavior?  Right now, 
you have to use wicket to add the accordion component to the dialog, which will 
generate the accordion's dom ready script.  However, to get it to work you have 
to declare that same statement on the open event of the dialog.  I feel like 
either I'm doing it wrong or there must be a better way to handle adding 
WiQuery components to Dialogs.

What version of the product are you using? On what operating system?
1.1.1

Please provide any additional information below.
This may be related to how wicket renders after an ajax request.  I've noticed 
that if you add the dialog (not just its content) or the dialog's parent to an 
AjaxRequestTarget, the dialog is destroyed and no long will appear.  I've also 
put qTip tooltips onto forms that have and ajax submit.  after the ajax submit 
and the form is refreshed with feedback those tooltips are also destroyed.

Original issue reported on code.google.com by gregory....@gmail.com on 30 Nov 2010 at 7:53

GoogleCodeExporter commented 9 years ago
Apparently I was doing something wrong as this works just fine on another test. 
 However the issue about adding a Dialog or its parent to an AjaxRequestTarget 
remains.  I'll open a different ticket for that

Original comment by gregory....@gmail.com on 1 Dec 2010 at 12:27

GoogleCodeExporter commented 9 years ago

Original comment by reier...@gmail.com on 1 Dec 2010 at 7:02