Re: Modal Window construction failure

2011-12-12 Thread Martin Grigorov
Hi,

Many of your pastes didn't make it and we don't see them.
Make sure you don't assign this component to wicket:container and
don't call .setRenderBodyOnly(true) on it.

On Fri, Dec 9, 2011 at 8:09 PM, endoplasmicR endoplasm...@gmail.com wrote:
 Hi, I have recently run into a strange issue with the ModalWindow. The
 ModalWindow contains a page set with the method setPageCreator. And from the
 wicket debug window,
 I see the following lines when constructing the modal window:


 And with a bit of debugging using firebug, I see that the scripts in
 header-contribution tag are added to the header, the script in evaluate tag
 is also added to the page. however, the component tag

 is never added to the document. And later on when I click the default close
 button of the modal window, I see the following in the debug window:
 INFO: Ajax GET stopped because of precondition check,
 url:page?3-1.IBehaviorListener.0-previewWindow
 And with the help of firebug, I see that in this part of the script :
 settings.onCloseButton = function() { var
 wcall=wicketAjaxGet('page?3-1.IBehaviorListener.0-previewWindow',function()
 { }.bind(this),function() { }.bind(this), function() {return
 Wicket.$('id18') != null;}.bind(this));return !wcall;
 the precondition check (Wicket.$('id18') != null) failed because the
 component was never added to the DOM.

 I am wondering if anyone know anything about it. Am I missing some settings
 when creating the page in modal window?

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Modal-Window-construction-failure-tp4177837p4177837.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




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: Modal Window construction failure

2011-12-12 Thread endoplasmicR
Hi, thanks for the reply. I am re-posting the Log in case you still can not
see it: 
I see the following lines when constructing the modal window:

INFO:

This component, which was part of the request above, was never added to the
document:
component id=id18  div id=id18 style=display:none
div id=id19
/div
/div  /componentevaluate

I believe the component missing is generated by Wicket for modal window
since it's not defined in the source code, andI am using Wicket 1.5.3.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Modal-Window-construction-failure-tp4177837p4187107.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



Modal Window construction failure

2011-12-09 Thread endoplasmicR
Hi, I have recently run into a strange issue with the ModalWindow. The
ModalWindow contains a page set with the method setPageCreator. And from the
wicket debug window, 
I see the following lines when constructing the modal window:


And with a bit of debugging using firebug, I see that the scripts in
header-contribution tag are added to the header, the script in evaluate tag
is also added to the page. however, the component tag

is never added to the document. And later on when I click the default close
button of the modal window, I see the following in the debug window: 
INFO: Ajax GET stopped because of precondition check,
url:page?3-1.IBehaviorListener.0-previewWindow
And with the help of firebug, I see that in this part of the script :
settings.onCloseButton = function() { var
wcall=wicketAjaxGet('page?3-1.IBehaviorListener.0-previewWindow',function()
{ }.bind(this),function() { }.bind(this), function() {return
Wicket.$('id18') != null;}.bind(this));return !wcall;
the precondition check (Wicket.$('id18') != null) failed because the
component was never added to the DOM. 

I am wondering if anyone know anything about it. Am I missing some settings
when creating the page in modal window?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Modal-Window-construction-failure-tp4177837p4177837.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