i see that you use a cell. so it is a table view
very likely is it that the component (toggle) isnt there on the page anymore
and when that happens we dont execute its eveent.
johan
On Wed, Apr 23, 2008 at 2:37 PM, Luca Marrocco <[EMAIL PROTECTED]>
wrote:
> Hi,
> i have a trouble using a AjaxFallbackLink. Rendering work fine but
> when i click on element inside a cell (see AjaxFallbackLink("toggle"))
> i read "INFO: Ajax GET stopped because of precondition check,
> url:?wicket:interface=:1:rows:0:cells:0:toggle::IBehaviorListener:0:"
> in ajax debug dialog. Two word about my objective: "I want realize a
> dynamic table (rows and column are dynamic) and click into cell to
> toggle a value (true/false)".
>
> currently i have this problem using wicket-1.3.3 and firefox-2.0.0.14
> with firebug-1.05 addon (using firefox-1.5.0.12 without firebug i have
> same result). I run code like described below using jetty-6.1.8.
>
> i have searched about this problem on internet but i haven't found
> another error like this. Could you please help me to understand how
> solve this problem? Probabilly i have implemented this in wrong way.
>
> Many thanks in advance for your time.
>
>
> Regrads
> Luca
>
> p.s: i report here code and html snippet that doesn't work as i expect
>
> add(new ListView("rows", list1) {
> @Override
> protected void populateItem(ListItem item) {
> String label = item.getModelObjectAsString();
> item.add(new Label("label", label));
> item.add(new ListView("cells", list2) {
> @Override
> protected void populateItem(ListItem item) {
> item.add(new AjaxFallbackLink("toggle") {
> @Override
> public void onClick(AjaxRequestTarget target) {
> // do something
> }
> @Override
> protected void onComponentTag(ComponentTag tag) {
> // do something
> }
> });
> }
> });
> }
> });
>
> <table>
> <tr wicket:id="rows">
> <td><b wicket:id="label">[label]</b></td>
> <td wicket:id="cells"><span wicket:id="toggle"></span></td>
> </tr>
> </table>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>