For the record, the call to super.onComponentTag(tag) fixed the issue.

Awesome catch Martin!



Martin Funk-3 wrote:
> 
> hm... lets see,
> 
> the JavaScript in the Browser complains since: function() {return  
> Wicket.$('superDiv2') != null;}.bind(this))
> returns false. (its the precondition)
> It returns false since there is no dom element with the id 'superDiv2'  
> in the page.
> I assume its the id of the <div> elements, but the id is not rendered.
> Which is strange since   add(superDiv.setOutputMarkupId(true)); got  
> called.
> Next shoot would be the overridden onComponentTag() method.
> I'd say a call to super.onComponentTag() is needed.
> 
> Maybe that should be described more explicit in the JavaDoc.
> 
> mf
> 
> Am 17.06.2009 um 19:25 schrieb walnutmon:
> 
>>
>> Close but no donut, copper.  That occurred to me, but it was too  
>> late.  The
>> source doesn't seem to give much away, I do see the JavaScript on  
>> the Div
>> though.
>>
>>
>> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
>> <html>
>>    <head>
>>        <title></title>
>>    <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.WicketAjaxReference/wicket- 
>> ajax.js"></script>
>> <script type="text/javascript"
>> src="resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/ 
>> wicket-ajax-debug.js"></script>
>> <script type="text/javascript"
>> id="wicket-ajax-debug-enable"><!--/*--><![CDATA[/*><!--*/
>> wicketAjaxDebugEnable=true;
>> /*-->]]>*/</script>
>>
>> </head>
>>    <body>
>>        <form wicket:id="form" id="form1" method="post"
>> action="?wicket:interface=:0:form::IFormSubmitListener::"><div
>> style="display:none"><input type="hidden" name="form1_hf_0"  
>> id="form1_hf_0"
>> /></div>
>>            top: <input type="text" wicket:id="top" value="400"
>> name="top"/><br/>
>>            left: <input type="text" wicket:id="left" value="400"
>> name="left"/><br/>
>>            length: <input type="text" wicket:id="height" value="100"
>> name="height"/><br/>
>>            width: <input type="text" wicket:id="width" value="100"
>> name="width"/><br/>
>>
>>            color: <input type="text" wicket:id="color" value="blue"
>> name="color"/><br/>
>>            <input type="submit"/>
>>        </form>
>>        <div wicket:id="superDiv" style="position: static;top:  
>> 400;left:
>> 400;height: 100;width: 100;background-color: blue;" onmousedown="var
>> wcall=wicketAjaxGet('?wicket:interface=: 
>> 0:superDiv::IBehaviorListener:0:',null,null,
>> function() {return Wicket.$('superDiv2') != null;}.bind(this));"></ 
>> div>
>>    </body>
>> </html>
>>
>> Thanks again
>> -- 
>> View this message in context:
>> http://www.nabble.com/AjaxEventBehavior-onclick-for-WebMarkupContainer-Precondition-Check-tp24074285p24078270.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/AjaxEventBehavior-onclick-for-WebMarkupContainer-Precondition-Check-tp24074285p24079175.html
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