gigaZhang / struts2-jquery

Automatically exported from code.google.com/p/struts2-jquery
0 stars 0 forks source link

unable to delete a row #1029

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
(This is for feature requests and bugs in Struts2 jQuery Plugin - for
getting help, please use the User Group.
http://groups.google.com/group/struts2-jquery )

What steps will reproduce the problem?
1. try to delete a row
2.
3.

What is the expected output? the row must be visually deleted
What do you see instead? the row was not visually deleted and table does not 
update itself

Which struts2 version? 2.3.15.1

Which struts2-jquery plugin version? 2.3.15.1

Please provide any additional information below.

when i try to delete a row during action call variables are not populated

Original issue reported on code.google.com by massimo....@gmail.com on 21 Aug 2013 at 10:45

GoogleCodeExporter commented 9 years ago
here it is struts.xml action used for retrieving and manipulating grids

<action name="scaglione*" 
class="eu.reply.configuratore.web.actions.FormatoAction" method="{1}">
        <result name="json" type="json"></result>
        <result name="success">jsp/caratteristiche.jsp</result>
        <result name="{1}">jsp/scaglione{1}.jsp</result>
        </action>

and this is the affected grid

<sjg:grid id="formato"
                                        dataType="json"
                                        shrinkToFit="false"
                                        caption="Formato prodotto"
                                        hidegrid="false"
                                        width="1025"
                                        href="%{listScaglione}"
                                        editurl="%{listScaglione}"
                                        cellurl="%{listScaglione}"
                                        gridModel="gridModel"
                                        rowNum="-1" 
                                        navigator="true"
                                        pager="true"
                                        pagerInput="false"
                                        pagerButtons="false"
                                        navigatorCloneToTop="true"
                                        navigatorAdd="false"
                                        navigatorSearch="false"
                                        navigatorRefresh="true"
                                        navigatorEdit="false"
                                        editinline="true"
                                        navigatorAddOptions="{width:480,reloadAfterSubmit:true}"
                                        navigatorEditOptions="{width:480,reloadAfterSubmit:false}"
                                        navigatorDeleteOptions="{width:280,reloadAfterSubmit:true}"
                                        >
                                        <sjg:gridColumn  editable="true" sortable="false" width="190" name="name" align="center"
                                        index="name" id="name" title="Formato" edittype="select" editoptions="%{formatoList}"/>
                                        <sjg:gridColumn  width="70" name="lunghezza.min" editable="true" align="center"
                                        title="Lunghezza Min (mm)" formatter="integer" edittype="text"/>
                                        <sjg:gridColumn editable="true"  width="70" name="lunghezza.max" formatter="integer" align="center"
                                        index="lunghezza.max" title="Lunghezza Max (mm)" edittype="text" />
                                        <sjg:gridColumn editable="true"  width="70" name="altezza.min" formatter="integer" align="center"
                                        index="altezza.min" title="Altezza Min (mm)"  edittype="text" />
                                        <sjg:gridColumn editable="true"  width="70" name="altezza.max" formatter="integer" align="center"
                                        index="altezza.max" title="Altezza Max (mm)"  edittype="text"/>
                                        <sjg:gridColumn editable="true"  width="70" name="spessore.min" formatter="integer" align="center"
                                        index="spessore.min" title="Spessore Min (mm)" edittype="text"/>
                                        <sjg:gridColumn editable="true"  width="70" name="spessore.max" formatter="integer" align="center"
                                        index="spessore.max" title="Spessore Max (mm)" edittype="text"/>
                                        <sjg:gridColumn  width="120" name="note" index="note"
                                        title="Altre Limitazioni"  editable="true" edittype="textarea"/>
                                        <sjg:gridColumn editable="true"  width="70" name="peso.min" index="peso.min" formatter="integer" align="center"
                                        title="Peso Singolo Invio Min (gr)" edittype="text"/>
                                        <sjg:gridColumn editable="true"  width="70" name="peso.max" index="peso.max" formatter="integer" align="center"
                                        title="Peso Singolo Invio Max (gr)" edittype="text"/>
                                        <sjg:gridColumn editable="true"  width="100" index="meccanizzabile" name="meccanizzabile" formatter="checkbox" align="center"
                                        title="Meccanizzabile" edittype="checkbox" />
                                        </sjg:grid> 

Original comment by massimo....@gmail.com on 21 Aug 2013 at 10:54

GoogleCodeExporter commented 9 years ago
It's working fine in the showcase app.

Please check your code, the delete action and your result after delete action 
was submitted. (Firefox -> Firebug -> Network)

Original comment by johgep on 24 Sep 2013 at 6:26