Grails - Update button outside the form -


how can update data other form. ? created button not update data.

<html>     <head>         <meta name="layout" content="main">         <g:set var="entityname" value="${message(code: 'product.label', default: 'product')}" />         <title><g:message code="default.edit.label" args="[entityname]" /></title>     </head>     <body>         <div id="wyszukaj">               <g:form method="post">                  <div class="fieldcontain" ${haserrors(bean: productinstance, field: 'symbolindeksu', 'error')}">                         <label for="symbolindeksu" style="width: 152px;">                              <g:message code="product.wyszukajsymbolindeksu.label" default="symbol indeksu" />                         </label>                         <g:select id="id" name="id" from="${com.app.product.findall([sort:"symbolindeksu"])}"  optionkey="id"  value="${productinstance?.id}" class="many-to-one inptsearch chzn-select" />                           <g:actionsubmit class="save" action="edytuj"  value="zmieƄ" />                         <g:actionsubmit class="save" action="aktualizuj" value="${message(code: 'default.button.update.label', default: 'update')}" />                              /* button @ point should update data */                      </div>             </g:form>         </div>    <div id="view-tab">       <g:render template="tabs"/>          <div id="content-tab">             <div id="edytuj-product" class="content scaffold-edit" role="main">              <g:if test="${flash.message}">             <div class="message" role="status">${flash.message}</div>             </g:if>              <g:haserrors bean="${productinstance}">             <ul class="errors" role="alert">                 <g:eacherror bean="${productinstance}" var="error">                 <li <g:if test="${error in org.springframework.validation.fielderror}">data-field-id="${error.field}"</g:if>><g:message error="${error}"/></li>                 </g:eacherror>             </ul>             </g:haserrors>         <g:form  method="post" >                 <g:hiddenfield name="id" value="${productinstance?.id}" />                 <g:hiddenfield name="version" value="${productinstance?.version}" />                  <fieldset class="form">                     <g:render template="formularz"/>                 </fieldset>          </div>        </div>                </g:form>         </div>     </body> </html> 

in summary. use update button outside of form g: form. previously, had buttons @ bottom


Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -