|
controller.xml :
<request-map uri="updEmployee"> <security https="false" auth="false"></security> <event type="java" path="org.mindtree.testapp.EmployeeEvents" invoke="updEmployee"></event>
<response name="success" type="view" value="main"></response> </request-map>
this is HelloScreens.xml
<screen name="update">
<section> <actions><entity-condition list="employees" entity-name="Employee"></entity-condition> </actions> <widgets> <include-form name="viewEmployee" location="component://hello1/widget/HelloForms.xml" />
</widgets> </section> </screen>
this is HelloForms.xml <form name="viewEmployee" type="single" > <field name="empId"><text>${empId}</text></field>
<field name="firstName"><text>${firstName}</text></field> <field name="lastName"><text>${lastName}</text></field>
<field name="email"><text>${email}</text></field> <field name="updateLink" title="Update" widget-style="buttontext">
<hyperlink target="updEmployee" description="Update"> <parameter param-name="empId"/> <parameter param-name="firstName"/>
<parameter param-name="lastName"/> <parameter param-name="email"/> </hyperlink> </field> </form>
after i click on this update link it gives... "javascript:document.viewEmployee_o_updateLink.submit()"
but actually it should got to the event_class... where i am wrong ... Thanks in advance :)
|