You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by wicketworker <si...@gmail.com> on 2009/01/08 21:22:09 UTC

AjaxCheckBox not working

I am trying to display a panel when the user clicks on the check box. Ajax
request is getting fired and response is not getting processed by the
browsder with an error.


INFO: Received ajax response (2681 characters)
INFO: 
<?xml version="1.0" encoding="UTF-8"?><ajax-response><component
id="preReleasePanel2b" ><![CDATA[ 
<div id="preReleaseGroupBox2c" class="ricGroupbox"
ric:collapsible="collapsed" ric:title="Pre-Release"> 
                <table align="center"> 
                 <tr id="comments_id"> 
                        <td><label id="commentsLabel">Comments
:</label></td> 
                        <td align="left"><textarea cols="50"
name="preReleasePanel:preReleaseGroupBox:comments" ric:maxchars="250"
rows="3">Adding Comments</textarea></td> 
                    </tr> 
                 </table> 
                </div> 
]]></component><evaluate><![CDATA[Ricola.init( $('#preReleasePanel2b')
);]]></evaluate><evaluate><![CDATA[Ricola.page.hidePleaseWait();]]></evaluate></ajax-response>

INFO: Response parsed. Now invoking steps...
ERROR: Component with id [[preReleasePanel2b]] a was not found while trying
to perform markup update. Make sure you called
component.setOutputMarkupId(true) on the component whose markup you are
trying to update.
INFO: Response processed successfully.

I can clearly see that preReleasePanel2b is there in the response, can
anyone please tell me why i am getting this error.



-- 
View this message in context: http://www.nabble.com/AjaxCheckBox-not-working-tp21360165p21360165.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: AjaxCheckBox not working

Posted by Piller Sébastien <pi...@hmcrecord.ch>.
Hi,

wicketworker a écrit :
> Its working now .. I had to put the panel inside another div tag and create a
> WebMarkupContainer for that..
>   
sure, this is very common when using wicket & ajax

> Serkan Camurcuoglu-3 wrote:
>   
>> did you call setOutputMarkupId(true) and
>> setOutputMarkupPlaceHolderTag(true) on your panel? setOutputMarkupId(true)
>> is required for the panel to have an id, and
>> setOutputMarkupPlaceHolderTag(true) is required if it will be initially
>> invisible..
>>
>>
>> -----Original Message-----
>> From: wicketworker [mailto:siva.madala@gmail.com]
>> Sent: Thu 1/8/2009 10:22 PM
>> To: users@wicket.apache.org
>> Subject: AjaxCheckBox not working 
>>     


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


RE: AjaxCheckBox not working

Posted by wicketworker <si...@gmail.com>.
Its working now .. I had to put the panel inside another div tag and create a
WebMarkupContainer for that..



Serkan Camurcuoglu-3 wrote:
> 
> did you call setOutputMarkupId(true) and
> setOutputMarkupPlaceHolderTag(true) on your panel? setOutputMarkupId(true)
> is required for the panel to have an id, and
> setOutputMarkupPlaceHolderTag(true) is required if it will be initially
> invisible..
> 
> 
> -----Original Message-----
> From: wicketworker [mailto:siva.madala@gmail.com]
> Sent: Thu 1/8/2009 10:22 PM
> To: users@wicket.apache.org
> Subject: AjaxCheckBox not working
>  
> 
> I am trying to display a panel when the user clicks on the check box. Ajax
> request is getting fired and response is not getting processed by the
> browsder with an error.
> 
> 
> INFO: Received ajax response (2681 characters)
> INFO: 
> <?xml version="1.0" encoding="UTF-8"?><ajax-response><component
> id="preReleasePanel2b" ><![CDATA[ 
> <div id="preReleaseGroupBox2c" class="ricGroupbox"
> ric:collapsible="collapsed" ric:title="Pre-Release"> 
>                 <table align="center"> 
>                  <tr id="comments_id"> 
>                         <td><label id="commentsLabel">Comments
> :</label></td> 
>                         <td align="left"><textarea cols="50"
> name="preReleasePanel:preReleaseGroupBox:comments" ric:maxchars="250"
> rows="3">Adding Comments</textarea></td> 
>                     </tr> 
>                  </table> 
>                 </div> 
> ]]></component><evaluate><![CDATA[Ricola.init( $('#preReleasePanel2b')
> );]]></evaluate><evaluate><![CDATA[Ricola.page.hidePleaseWait();]]></evaluate></ajax-response>
> 
> INFO: Response parsed. Now invoking steps...
> ERROR: Component with id [[preReleasePanel2b]] a was not found while
> trying
> to perform markup update. Make sure you called
> component.setOutputMarkupId(true) on the component whose markup you are
> trying to update.
> INFO: Response processed successfully.
> 
> I can clearly see that preReleasePanel2b is there in the response, can
> anyone please tell me why i am getting this error.
> 
> 
> 
> -- 
> View this message in context:
> http://www.nabble.com/AjaxCheckBox-not-working-tp21360165p21360165.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 

-- 
View this message in context: http://www.nabble.com/AjaxCheckBox-not-working-tp21360165p21373053.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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


RE: AjaxCheckBox not working

Posted by Serkan Camurcuoglu <Se...@telenity.com>.
did you call setOutputMarkupId(true) and setOutputMarkupPlaceHolderTag(true) on your panel? setOutputMarkupId(true) is required for the panel to have an id, and setOutputMarkupPlaceHolderTag(true) is required if it will be initially invisible..


-----Original Message-----
From: wicketworker [mailto:siva.madala@gmail.com]
Sent: Thu 1/8/2009 10:22 PM
To: users@wicket.apache.org
Subject: AjaxCheckBox not working
 

I am trying to display a panel when the user clicks on the check box. Ajax
request is getting fired and response is not getting processed by the
browsder with an error.


INFO: Received ajax response (2681 characters)
INFO: 
<?xml version="1.0" encoding="UTF-8"?><ajax-response><component
id="preReleasePanel2b" ><![CDATA[ 
<div id="preReleaseGroupBox2c" class="ricGroupbox"
ric:collapsible="collapsed" ric:title="Pre-Release"> 
                <table align="center"> 
                 <tr id="comments_id"> 
                        <td><label id="commentsLabel">Comments
:</label></td> 
                        <td align="left"><textarea cols="50"
name="preReleasePanel:preReleaseGroupBox:comments" ric:maxchars="250"
rows="3">Adding Comments</textarea></td> 
                    </tr> 
                 </table> 
                </div> 
]]></component><evaluate><![CDATA[Ricola.init( $('#preReleasePanel2b')
);]]></evaluate><evaluate><![CDATA[Ricola.page.hidePleaseWait();]]></evaluate></ajax-response>

INFO: Response parsed. Now invoking steps...
ERROR: Component with id [[preReleasePanel2b]] a was not found while trying
to perform markup update. Make sure you called
component.setOutputMarkupId(true) on the component whose markup you are
trying to update.
INFO: Response processed successfully.

I can clearly see that preReleasePanel2b is there in the response, can
anyone please tell me why i am getting this error.



-- 
View this message in context: http://www.nabble.com/AjaxCheckBox-not-working-tp21360165p21360165.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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