Sorry, but there might be some problem with the mailing list, my message
was considered as a SPAM and first the text was removed from the
message, and the next time I got info that it was considered as SPAM.

I am sending the message again.

On 08.12.2009 02:47, Mite wrote:
> I have written this code so far:
>
> <form t:type="form">
> <t:selectObject t:id="courses" list="courses" value="currentCourse"
> labelField="literal:courseId" onChange="form.submit();"/>
> <t:submit/>
> </form>
>  

This issue is not really a problem of Tapestry, this is a Javascript
browser implementation problem.
In my code sample this works in IE 8, and it does not work in Firefox
3.6 or Opera 10

Take the submit button out, and it will work with no problem.

So, What exactly happens in for example Firefox is that when you add a
Submit button, the Submit() function is overriden with the Submit button
and it becomes a property.
Now the form.submit is not the function for submitting any more, but in
fact now it is the submit button itself.

I think that I never ever had a need to use a button and a list for
submitting at the same time, so I never saw this as a problem.

But, the bad thing is that here Thiago's solution does not help - with
it I get an
    Event.observe is not a function
And now it does not work even in IE.

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to