Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_Related Related Topics sp_TopicIcon
Struts 2 Grid Model composed by two Lists problem
Tags: struts2
18/05/2011
17:38
Avatar
emgiraldo
New Member
Members
Forum Posts: 1
Member Since:
18/05/2011
sp_UserOfflineSmall Offline

Hello, My name's Erik. Right now I have to implement a "massive" edit option for a grid and that is why I am using the jQuery Grid Plugin for Struts 2.

My data structure is as follow:

My list:

List<Lis<GeneralStructure>>

General structure:

-name: varchar(20)

-friendlyName: varchar(20)}

-value: varchar(20)

So when I try to iterate though my list, in struts it is somthing like this:

<s:iterator value="listaCi" status="i" var="data">
                        <tr>                        
                            <s:iterator value="data" status="j" var="data2″>
                                <td>

                                     <s:property value="#data2.value"/>                                                                   
                                </td>
                            </s:iterator>                                        
                        </tr>
                    </s:iterator>         

how would it be in my grid?

listCi is a List<Lis<GeneralStructure>> structure.

<s:url id="remoteurl" action="userAction" namespace="/" />
                <sjg:grid
                    id="gridtable"
                    caption="Usuarios"
                    dataType="json"
                    href="%{remoteurl}"
                    editurl="nose"
                    editinline="false"
  Confused                  pager="true"                    
                    gridModel="listCi"                    
                    rowList="10,15,20″
                    rowNum="10″
                    rownumbers="true"
                    multiselect="true"
                    navigator="true"
                    navigatorEdit="true"                    
                    navigatorEditOptions="{height:280,
                                            reloadAfterSubmit:function(response,postdata){
                                                return isError(response.responseText);
                                            }
                                          }"        
                >                
                    <sjg:gridColumn name="???????" index="??????" title="ID Usuario" sortable="true" editable="true"/>                          
                </sjg:grid>                       

Btw, thanks for your timeeeeee

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
34 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information