Hi,

 I am new to struts and new to using display tags

First question.

 In the table can I add a column which has buttons.

ex :: The table displays the rows from a database table. Now the user should get
a choice of delete and edit right next to the row

How can this be done ?IF it can be done.

Second question.

 The sorting and pagging together does not seem to work. Sort works fine if
there are no pages.


this is my code.

<display:table width="75%" name="tablerows" scope="session" pagesize="15"
requestURI="http://nycnt-ast572:7032/mffsstruts/mffs.jsp";>
  <display:column property="productID" title="product ID" />
  <display:column property="productDescription" title="ProductDescription" sort
="true"/>
  <display:column property="allocationType" title="Allocation Type" sort
="true"/>
  <display:column property="categoryName" title="Category Name" sort="true"/>
</display:table>

I sort first on category name, The first page is sorted correctly. but when I go
to other pages it is no loger sorted.

The first pages looks like this
                                                                                 
                                                                                 
                                                                                 
                                                                                 
 52                                                                              
    Lazard Equity Portfolio                                                      
                                       Sector                                    
                                               Cash                              
 52                                                                              
    Lazard Equity Portfolio                                                      
                                       Sector                                    
                                               Consumer Discretionary            
 52                                                                              
    Lazard Equity Portfolio                                                      
                                       Sector                                    
                                               Consumer Staples                  
 52                                                                              
    Lazard Equity Portfolio                                                      
                                       Sector                                    
                                               Energy                            
 52                                                                              
    Lazard Equity Portfolio                                                      
                                       Sector                                    
                                               Financials                        
 52                                                                              
    Lazard Equity Portfolio                                                      
                                       Sector                                    
                                               Health Care                       
 52                                                                              
    Lazard Equity Portfolio                                                      
                                       Sector                                    
                                               Industrials                       
 52                                                                              
    Lazard Equity Portfolio                                                      
                                       Sector                                    
                                               Information Technology            
 52                                                                              
    Lazard Equity Portfolio                                                      
                                       Sector                                    
                                               Materials                         
 52                                                                              
    Lazard Equity Portfolio                                                      
                                       Sector                                    
                                               Telecommunication Equipment       
 52                                                                              
    Lazard Equity Portfolio                                                      
                                       Sector                                    
                                               Telecommunication Services        
 52                                                                              
    Lazard Equity Portfolio                                                      
                                       Sector                                    
                                               Unassigned                        
 52                                                                              
    Lazard Equity Portfolio                                                      
                                       Sector                                    
                                               Utilities                         
 53                                                                              
    Lazard International Equity Portfolio                                        
                                       Country                                   
                                               Australia                         
 53                                                                              
    Lazard International Equity Portfolio                                        
                                       Country                                   
                                               Austria                           
                                                                                 
                                                                                 


                                                                                 
 While the Third page looks like                                                 
                                                                                 
                                                                                 
                                                                                 
                                                                                 
                                                                                 
                                                                                 
                                    productID                                    
                                    ProductDescription                           
                                                     AllocationType              
                                                             CategoryName        
 53                                                                              
           Lazard International Equity Portfolio                                 
                                         Country                                 
                                                      Spain                      
 53                                                                              
           Lazard International Equity Portfolio                                 
                                         Country                                 
                                                      Sweden                     
 53                                                                              
           Lazard International Equity Portfolio                                 
                                         Country                                 
                                                      Switzerland                
 53                                                                              
           Lazard International Equity Portfolio                                 
                                         Country                                 
                                                      United Kingdom             
 53                                                                              
           Lazard International Equity Portfolio                                 
                                         Country                                 
                                                      United States              
 57                                                                              
           Lazard Small Cap Portfolio                                            
                                         Sector                                  
                                                      Autos And Transportation   
 57                                                                              
           Lazard Small Cap Portfolio                                            
                                         Sector                                  
                                                      Consumer Discretionary     
 57                                                                              
           Lazard Small Cap Portfolio                                            
                                         Sector                                  
                                                      Consumer Staples           
 57                                                                              
           Lazard Small Cap Portfolio                                            
                                         Sector                                  
                                                      Financial Services         
 57                                                                              
           Lazard Small Cap Portfolio                                            
                                         Sector                                  
                                                      Health Care                
 57                                                                              
           Lazard Small Cap Portfolio                                            
                                         Sector                                  
                                                      Integrated Oils            
 57                                                                              
           Lazard Small Cap Portfolio                                            
                                         Sector                                  
                                                      Materials And Processing   
 57                                                                              
           Lazard Small Cap Portfolio                                            
                                         Sector                                  
                                                      Other                      
 57                                                                              
           Lazard Small Cap Portfolio                                            
                                         Sector                                  
                                                      Other Energy               
 57                                                                              
           Lazard Small Cap Portfolio                                            
                                         Sector                                  
                                                      Producer Durables          
                                                                                 
                                                                                 
                                                                                 
                                                                                 
 Why does the sorting not work.                                                  
                                                                                 
                                                                                 
 Regards                                                                         
 Rajesh J                                                                        
                                                                                 
                                                                                 
                                                                                 











-------------------------------------------------------
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp
_______________________________________________
displaytag-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to