Does the code work when you add it directly in a page? (it works here)

Which part you want updated with updateComponents?
You should probably specify it in the AjaxSubmit button.


>From Rodnei Couto <[EMAIL PROTECTED]>:

> Hi everyone,
> 
> I'm using tapestry 4.0.1 with Tacos 4-beta-3-20060616
> I have a problem. In my component I'm trying to use the AjaxForm.
> 
> When I submit the form, nothing happens. If I try to submit it again, 
> the following error occurs:
> 
> Rewind of form 
> FormularioManutencao/formularioDinamico.$RelacionamentoHandler.form 
> expected only 0 form elements, but an additional id was requested by 
> component 
> FormularioManutencao/formularioDinamico.$RelacionamentoHandler.$AjaxSubmit.
> 
> I tried to put the tag "updateComponents" in the AjaxForm and AjaxSubmit 
> button in various ways, but none worked.
> 
> Please, somebody helpme?
> 
> The code is below:
> 
> <div jwcid="[EMAIL PROTECTED]" id="formAjax" >
>  <form jwcid="[EMAIL PROTECTED]:AjaxForm" id="form">
>         <tr>
>                <td> <div id="id1" action="ognl:listeners.formSubmit"
>                     jwcid="@tacos:AjaxSubmit" value="ok"/></td>
>                <td>
>                <td>
>                    <span jwcid="[EMAIL PROTECTED]"
>                            class="textfield"
>                            value="ognl:values" size="100"/>
>                <td>
>          </tr>
> </form>
> </div>
> 
> The java Code:
> 
> public abstract class RelacionamentoHandler    extends BaseComponent 
> implements PageBeginRenderListener {
>        public abstract void setValues(Object value);
>     public abstract Object getValues();
>      public void pageBeginRender(PageEvent event){
>       if( getValues() == null){
>           setValues("Start");
>       }
>    }
>    public void formSubmit(IRequestCycle cycle){
>        setValues("Submited");
>    }
> }
> 
> 
> Thanks,
> Rodnei Couto
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to