Hello everyone, 
I have written a custom form component (called PopinForm) that contains
an AjaxSubmit component. I'm finding that because of the way that Tacos
AjaxSubmit connects up its javascript event handler it always uses the
name of the component AjaxSubmit component.  So if I use two of my
PopinForm components I get two javascript events connected to the same
button, the AjaxSubmit in my first PopinForm, and none connected to the
AjaxSubmit in the second PopinForm component.  
 
Here is part of the html template of my PopinForm component:
 
<span jwcid="$content$">
  <form jwcid="[EMAIL PROTECTED]:AjaxForm">
    <span jwcid="[EMAIL PROTECTED]:AjaxSubmit"
          value="Popup"
          updateComponents="ognl:submitUpdateComponents"
          listener="listener:popup"
          popup="ognl:submitPopupParameter"
      />
  </form>
....

Here is part of the page hosting my PopinForm components
    <td>
      <span jwcid="[EMAIL PROTECTED]" />
    </td>
    <td>
      <span jwcid="[EMAIL PROTECTED]" />
    </td>

When the page renders I get
...
    <input type="submit" name="popupClick" id="popupClick"
value="Popup"/>
...
    <input type="submit" name="popupClick" id="popupClick_1"
value="Popup"/>

Then the same button is connected to two javascript function, thus: 

...
              dojo.event.connect(dojo.byId("popupClick"), "onclick",
document, "AjaxFormSubmit_popupSubmitForm_popupClick_submit");
...
              dojo.event.connect(dojo.byId("popupClick"), "onclick",
document, "AjaxFormSubmit_popupSubmitForm_0_popupClick_submit");

Anybody have a fix for this?



"Secure Server BSK" made the following
 annotations on 04/02/2006 03:12:55 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]

Reply via email to