Hi,

When I click on link that should open Modal Window nothing happend.
In Debug console I see there is an error:


INFO: focus set on notesLink16
INFO:
INFO: Initiating Ajax GET request on
../?wicket:interface=:1:orders:88490:orderRow:notesLink::IBehaviorListener:0:1&random=0.32370293915212345
INFO: Invoking pre-call handler(s)...
INFO: Received ajax response (2000 characters)
INFO:
<?xml version="1.0" encoding="UTF-8"?><ajax-response><header-contribution
encoding="wicket1" ><![CDATA[<head
xmlns:wicket="http://wicket.apache.org";><script type="text/javascript"
src="../resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js"></script>
<script type="text/javascript"
src="../resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax.js"></script>
<script type="text/javascript"
id="wicket-ajax-debug-enable"><!--/*--><![CDATA[/*><!--*/
wicketAjaxDebugEnable=true;
/*-->]^]^>*/</script>

<script type="text/javascript"
src="../resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug.js"></script>
<script type="text/javascript"
src="../resources/org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal.js"></script>
<link rel="stylesheet" type="text/css"
href="../resources/org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal.css"
/>
</head>]]></header-contribution><component id="orderNotes15" ><![CDATA[
    
    <div>TEST</div>

]]></component><evaluate><![CDATA[var element =
document.getElementById("content111");
var settings = new Object();
settings.minWidth=200;
settings.minHeight=200;
settings.className="w_blue";
settings.width="600";
settings.height="400";
settings.resizable=true;
settings.element = element;
settings.cookieId="modal-2";
settings.title="This is modal window with panel content.";
settings.mask="semi-transparent";
settings.onClose = function() { var
wcall=wicketAjaxGet('../?wicket:interface=:1:orders:88490:orderRow:orderNotes::IBehaviorListener:1:1',
function() { }.bind(this), function() { }.bind(this)); };
settings.onCloseButton = function() { var
wcall=wicketAjaxGet('../?wicket:interface=:1:orders:88490:orderRow:orderNotes::IBehaviorListener:0:1',
function() { }.bind(this), function() { }.bind(this));return !wcall;};
Wicket.Window.create(settings).show();
]]></evaluate></ajax-response>
INFO: Response parsed. Now invoking steps...

ERROR: Exception evaluating javascript: Either src or element must be set.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INFO: Response processed successfully.
INFO: Invoking post-call handler(s)...
INFO: Calling focus on notesLink16
INFO: focus set on 

I think I did everything like in the examples. I use wicket 1.3beta3.
Artur

-- 
View this message in context: 
http://www.nabble.com/ModalWindo-problem-tf4311370.html#a12273834
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to