can you tell me what the advantage is to do this? in my opinion it makes the code unnecessary complicated.
regards, Hans On Wed, 2009-04-22 at 10:57 +0530, Ashish Nagar wrote: > [email protected] wrote: > > - <a > > href="<@ofbizUrl>removePartyFromCategory?productCategoryId=${(productCategoryRole.productCategoryId)?if_exists}&partyId=${(productCategoryRole.partyId)?if_exists}&roleTypeId=${(productCategoryRole.roleTypeId)?if_exists}&fromDate=${productCategoryRole.getString("fromDate")}</@ofbizUrl>" > > class="buttontext">${uiLabelMap.CommonDelete}</a> > > + <FORM method="post" > > action="<@ofbizUrl>removePartyFromCategory</@ofbizUrl>" > > name="lineForm_delete${line}"> > > + <#assign hasExpired = false> > > + <input type="hidden" name="productCategoryId" > > value="${(productCategoryRole.productCategoryId)?if_exists}"> > > + <input type="hidden" name="partyId" > > value="${(productCategoryRole.partyId)?if_exists}"> > > + <input type="hidden" name="roleTypeId" > > value="${(productCategoryRole.roleTypeId)?if_exists}"> > > + <input type="hidden" name="fromDate" > > value="${(productCategoryRole.getTimestamp("fromDate"))?if_exists}"> > > + <INPUT type="submit" > > value="${uiLabelMap.CommonDelete}" style="font-size: x-small;"> > > + </FORM> > > > Just wondering, could we use anchor <a href= "javascript: > document.lineForm_delete${line}.submit()" class= > "buttontext">${uiLabelMap.CommonDelete}</a> instead of a submit button > so as to maintain consistency? > > -- > Ashish Nagar > > > > > > -- Antwebsystems.com: Quality OFBiz services for competitive rates
