cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <sylv...@apache.org>
Subject Re: Forms problem with sumbit widgets (lost or mixed form instances ?)
Date Fri, 11 Nov 2005 10:52:39 GMT
Yuri Kolesnikov wrote:
> Hello,
>
> I  have a problem which makes my current development unusefull.
> Problem is with Forms block.

<snip/>

>        <fd:lookup id="employee">
>            <fd:data-source>
>                <fd:param name="src" value="lookup"/>
>                <fd:param name="_path" value="/md/directory/employees"/>
>            </fd:data-source>
>        </fd:lookup>

What is <fd:lookup>? A special widget of yours?

> At last  THE PROBLEM
>
> Then I work from on client everything is fine.
> But if I use this form from two clients (for example two different 
> browsers on my computer)
> I get java.lang.IllegalStateException:  SubmitWidget can only be set once
> after some cycles of press edirButtons on list forms, get Item form, 
> close it and return to list.

What do you mean by "return to list"? Are you using the back button on 
the browser?

> I traced  cocoon code and find terrible things.

LOL :-)

> When I press editButton (submit  widget) the Form.process starts.
> It finds form_submit_id  in http request and calls setSubmitWidget.
>
> After that  it calls readFromRequest for every widgets
> And a submit widget calls form.setSubmitWidget to.
> Sometimes they are not equal - sumbit widget which was found in the 
> Form.process() and  submit widget which read itself from request.

What is the submit widget that was read from the request?

Sylvain

-- 
Sylvain Wallez                        Anyware Technologies
http://people.apache.org/~sylvain     http://www.anyware-tech.com
Apache Software Foundation Member     Research & Technology Director


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


Mime
View raw message