Regards,
Ernesto
1-http://james.padolsey.com/javascript/jquery-plugin-autoresize/
Best,
Ernesto
Thanks,
Decebal
ERROR: Wicket.Ajax.Call.processEvaluation: Exception evaluating
javascript: TypeError: $("#content1e9").autoResize is not a function.
That is probably because the ajax response did not contribute the
autoresize.jquery.min.js
I'm using
<dependency>
<groupId>com.wiquery-plugins</groupId>
<artifactId>other-plugins</artifactId>
<version>1.1</version>
</dependency>
and Wicket 1.4.13
Here is the ajax response:
NFO:
<?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.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>
<script type="text/javascript"
src="../resources/org.odlabs.wiquery.core.commons.CoreJavaScriptResourceReference/jquery/jquery-1.4.3.js"></script>
</head>]]></header-contribution><component
id="add_reply_comment_container1e6" ><![CDATA[<li
id="add_reply_comment_container1e6">
<div class="add-comment-reply"
id="add_reply_comment_panel1e8"><!-- MARKUP FOR
ro.myagora.web.comment.EditCommentPanel BEGIN -->
<form id="form1ea" method="post"
action="../?wicket:interface=:11:comments:comment-replies-container:add-reply-comment-container:add-reply-comment-panel:form::IFormSubmitListener::"><div
style="width:0px;height:0px;position:absolute;left:-100px;top:-100px;overflow:hidden"><input
type="hidden" name="form1ea_hf_0" id="form1ea_hf_0" /></div>
<div style="margin-right: 10px;">
<textarea rows="4" style="margin-right: 5px;"
placeholder="Introduceti comentariul" name="content"
id="content1e9"></textarea>
</div>
<div style="clear:left; float:right;">
<a href="#" class="button-link" id="save1eb" onclick="var
wcall=wicketSubmitFormById('form1ea',
'../?wicket:interface=:11:comments:comment-replies-container:add-reply-comment-container:add-reply-comment-panel:form:save::IActivePageBehaviorListener:0:1&wicket:ignoreIfNotActive=true',
'save' ,function() { }.bind(this),function() { }.bind(this),
function() {return
Wicket.$$(this)&&Wicket.$$('form1ea')}.bind(this));;; return
false;">Trimite</a>
<a href="#" class="button-link" id="cancel1ec"
onclick="var wcall=wicketAjaxGet('../?wicket:interface=:11:comments:comment-replies-container:add-reply-comment-container:add-reply-comment-panel:form:cancel::IBehaviorListener:0:1',function()
{ }.bind(this),function() { }.bind(this), function() {return
Wicket.$('cancel1ec') != null;}.bind(this));return
!wcall;">Renunta</a>
</div>
<span class="feedbackPanelERROR" id="feedback1ed"><!-- MARKUP
FOR org.apache.wicket.markup.html.panel.FeedbackPanel BEGIN -->
<!-- MARKUP FOR org.apache.wicket.markup.html.panel.FeedbackPanel END --></span>
</form>
<!-- MARKUP FOR ro.myagora.web.comment.EditCommentPanel END --></div>
</li>]]></component><evaluate><![CDATA[setTimeout("var
wcall=wicketAjaxGet('../?wicket:interface=:11:comments:comment-replies-container:add-reply-comment-container:add-reply-comment-panel::IActivePageBehaviorListener:0:1&wicket:ignoreIfNotActive=true',function()
{ }.bind(this),function() { }.bind(this), function() {var c =
Wicket.$('add_reply_comment_panel1e8'); return typeof(c) !=
'undefined' && c != null}.bind(this));",
1200000);]]></evaluate><evaluate><![CDATA[document.getElementById('content1e9').focus();]]></evaluate><evaluate><![CDATA[$('#content1e9').autoResize({})
;]]></evaluate></ajax-response>
INFO: Response parsed. Now invoking steps...
INFO:
INFO: Initiating Ajax GET request on
../resources/org.odlabs.wiquery.core.commons.CoreJavaScriptResourceReference/jquery/jquery-1.4.3.js
INFO: Invoking pre-call handler(s)...
INFO: Received ajax response (180455 characters)
INFO: Invoking post-call handler(s)...
INFO: returned focused element: http://localhost:8080/post/www-p65#
INFO: returned focused element: http://localhost:8080/post/www-p65#
INFO: focus removed from reply1e4
ERROR: Wicket.Ajax.Call.processEvaluation: Exception evaluating
javascript: TypeError: $("#content1e9").autoResize is not a function
Thank you.
On Wed, Mar 9, 2011 at 4:46 PM, Ernesto Reinaldo Barreiro
<reie...@gmail.com> wrote:
Ernesto