Try

   <div jwcid="[EMAIL PROTECTED]">

instead of

   <div jwcid="@Any" id="updateParts">



Because you use the parameter "targets" in your @EventListener, you have to use a component id.


Andy





abhilash schrieb:
Hi all,
i am using tapestry4.1.5
My eventListener is not getting called.This is my code.
<div jwcid="@Any" id="updateParts">
                <div jwcid="[EMAIL PROTECTED]" bgColor="white"
                        bgOpacity="0.5" hidden="ognl:dlHidden">
<form jwcid="[EMAIL PROTECTED]" class="dialog" delegate="ognl:validationDelegate" updateComponents="ognl:{'updateParts'}"
clientValidationEnabled="false">
                        
<fieldset>
                 <legend></legend>
Choose Type :
              <div jwcid="@Any" id="selectedType">
                   <div jwcid = "@EditDetail"/>
<div align="right">
                                 <input  class="button" type="submit" value="Save" 
name="save"
jwcid="@Submit" action="listener:saveDialog"/>
<input type="button" class="button" value="Cancel" onclick="closeDialog();return false;"/>&nbsp;&nbsp; </div> </div> </fieldset>
                </form>
                
                        </div>
</div> my @EventListenerMethos is
@EventListener(targets = "typeChanged", events = "onchange", submitForm =
"ListForm")
        public void watchText(IRequestCycle cycle)
        {
                //
                //
                cycle.getResponseBuilder().updateComponent("selectedType");
                
        }       

typeField is a propertyselectionmodel.My Dialog is coming up properly with
propertyselectionmodel.But when onchange occures the eventlistener is not
getting called.I dont know whats wrong in my code.Please help me out





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

Reply via email to