Hello, I'm having issue with PropertySelection in a Form.
I'm using one page to add and update. Data entry fields of the form gets changed according to the property selection during add. For example if infType=DOG selected then the form displays only dog specific fields and if infType=PAK then the form displays only parking specific fields. All these works fine. The problem is when I try to update the record. The form fields are not displayed accordingly to the infType. If I reselect the item from the PropertySelection then it shows the fields properly. I couldn't figure out how to execute the submitOnChange automatically in pageBeginRender. If any one help me on this would be very helpful. public void pageBeginRender(PageEvent event) { this.userLoggedIn = AuthorisationUtil.getNormalisedRemoteUserName(event); if (!getNewInfringement() && !event.getRequestCycle().isRewinding()) { //execute the submitOnChange automatically } .html ------- <form jwcid="@Form" delegate="ognl:beans.delegate" stateful="ognl:true" listener="ognl:listeners.formSubmit"> <tbody> <tr> <td width="1%" nowrap> Infringement Type: </td> <td width="99%"> <select jwcid="infType"> <option value="0">DOG</option> <option value="1">PRK</option> </select> * </td> </tr> </tbody> .page ------- <property-specification name="infType" type="java.lang.String" /> <component id="infType" type="PropertySelection"> <binding name="model" expression="availInfType"></binding> <binding name="value" expression="InfType"></binding> <binding name="submitOnChange" expression="true"></binding> </component> .java ------- public abstract String getInfType(); public abstract void setInfType(String infType); public IPropertySelectionModel getAvailInfType() { String[] infTypeArray = EfiInfTypeDAO.getActiveEfiInfTypeCodeList() .toArray(new String[0]); return new StringPropertySelectionModel(infTypeArray); } -- View this message in context: http://www.nabble.com/T3%3A-PropertySelection-tf4959054.html#a14202683 Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]