the funny thing is, if i update the first form, the ajax-response handles the 
ids right! after that i can submit both forms via ajax... 

-----Ursprüngliche Nachricht-----
Von: Jesse Kuhnert [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 26. Juli 2007 04:51
An: Tapestry users
Betreff: Re: T4.1.2 id bug?

I think Andreas has some kind of multi-form-factory-generator-thinger but I
have no idea how it should be used.  I still think it seems like a core bug
that should just be fixed and dealt with by default but I haven't looked at
it in a while.

maybe Andy has some thoughts?

Besides that,  if you would file a bug (if one doesn't exist - I think one
does in this case) it would be helpful.

On 7/25/07, Peter Schröder <[EMAIL PROTECTED]> wrote:
>
> hi,
>
> i have 2 forms, both should be submitted via ajax.
>
> 1. one is in my home.html and should be submitted using a
> submit-component:
> <input jwcid="@Submit" value="einloggen" listener="listener:login"
> updateComponents="loggedIn"/>
>
> 2. one is in a subcomponent and should also be submitted via
> submit-component:
> <a jwcid="@Submit" listener="listener:searchProcesses"
> updateComponents="listForm"/>
>
>
> this renders to two submits, both with id 'Submit':
>
>         <form method="post" action="/posDB/app" id="Form">
> <div style="display:none;" id="Formhidden"><input type="hidden"
> name="formids" value="TextField,TextField_0,Submit" />
> ...
>                 <p><input type="submit" name="Submit" id="Submit"
> value="einloggen" /></p>
>         </form>
>
> and
>
>                 <form method="post" action="/posDB/app" id="listForm">
> <div style="display:none;" id="listFormhidden"><input type="hidden"
> name="formids"
> value="TextField,TextField_0,Submit,table,condSorted,condSort,condSorted_0,condSort_0,condSorted_1,condSort_1,condSorted_2,condSort_2,condSorted_3,condSort_3,iterRows,If,If_0,If_1,If_2,If_3,If_4,If_5,If_6,If_7,If_8,iterPage,condCurrent,condCurrent_0,condCurrent_1,condCurrent_2,condCurrent_3,condCurrent_4,condCurrent_5"
> />
> <input type="hidden" name="component" value="$OrderProcessList.listForm"
> />
> <input type="hidden" name="page" value="Home" />
>
>         <input type="submit" name="Submit" id="Submit" />
> </div>
>
> because auf this, dojo can not submit the 2. form via ajax, cause it is
> listening for the other submit with the id of 'Submit'.
>
> kind regards,
> peter
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to