Hello, Sorry for the crosspost (Tapestry/Tacos) but I'm not sure where the problem is.
I'm using Tapestry 4.0.1 and tacos4-beta-3-20060509-1708. The same happens with tacos4-beta-3-20060616-1211). I have a page that has several AjaxForm objects that are submitted by Tapestry @TextField components with the eventListener directive. <form jwcid="[EMAIL PROTECTED]:AjaxForm" style="margin:0px;padding:0px;" listener="listener:headerFormSubmit" refresh="listener:nothingOnRefresh" > <span jwcid="[EMAIL PROTECTED]:AjaxEventSubmit" updateComponents="ognl:{'errorMessagePane','generateWorksheetPane'}" /> <table width="95%" border="0" cellpadding="2" cellspacing="2" style="border:1px solid black;"> <tr bgcolor="#E8ECF4"> <td class="body"> <input type="text" jwcid="@TextField" value="ognl:claim.externalID" eventListener="onchange=components.headerOtherDataChange"/> </td> .... etc.... When I run this in IE 6 or Firefox 1.5 the focus is always set back to the first control in the form after the ajax response is received in the browser. With Firefox I can examine the Javascript console and it has the message: Error: [Exception... "'Permission denied to set property XULElement.selectedIndex' when calling method: [nsIAutoCompletePopup::selectedIndex]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "JS frame :: http://localhost:8080/ices/app?digest=bea548e20e3c279dff1fbe6afb6ed7ec&p ath=%2Fnet%2Fsf%2Ftacos%2Fajax%2Fcomponents%2Ftacos.js&service=asset :: anonymous :: line 1331" data: no] Source File: http://localhost:8080/ices/app?digest=bea548e20e3c279dff1fbe6afb6ed7ec&p ath=%2Fnet%2Fsf%2Ftacos%2Fajax%2Fcomponents%2Ftacos.js&service=asset Line: 1331 Line 1331 is in the function as marked below tacos.set_focus = function(field) { if(typeof field == "string") { field = dojo.byId(field); if(field) { if (!field.disabled && field.clientWidth > 0) { if (field.focus) { field.focus(); <--- line 1331 } if (field.isContentEditable || field.isContentEditable == null) { if (field.select) { field.select(); } } } } } Anybody have any ideas as to how to fix the focus issue? Thanks, David Harvey Ingenix, Inc. "Secure Server GDV" made the following annotations on 06/19/2006 05:49:06 PM ------------------------------"This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately." ============================== --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]