RE: Sorting paging search results with delete button for each row?

2006-02-23 Thread Narayanan, Shiva
I would like to page and sort the data (10 thousand records) retrieved
from the database. I don't want to sort it in memory. 

I am using Struts  DAO Hibernate) and want to page search results and
sort the data within that page. Also, I should have delete button for
each row and this button should post to a DeleteAction.

How do you achieve this using display tag?

Thanks in advance!!
 
-Original Message-
From: Lixin Chu [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 22, 2006 5:40 PM
To: Struts Users Mailing List
Subject: Re: Sorting  paging search results with delete button for each
row?

why displaytag does not meet your requirements ?

On 2/22/06, Narayanan, Shiva [EMAIL PROTECTED]
wrote:

 Hello All,

 What is the best way to sort and page search results, (with delete
button
 for each row) using Struts? Are there are any open source tag
libraries to
 achieve this?



 Looked at displaytag. I want to retrieve data from the database using
 hibernate.



 Many Thanks!!




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Sorting paging search results with delete button for each row?

2006-02-23 Thread Narayanan, Shiva
Planning to use Hibernate query in my DAO.

-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 23, 2006 9:06 AM
To: Struts Users Mailing List
Subject: Re: Sorting  paging search results with delete button for each
row?

Narayanan, Shiva wrote:
 I would like to page and sort the data (10 thousand records) retrieved
 from the database. I don't want to sort it in memory. 
   

How/where do you want to sort it?!

Dave



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Sorting paging search results with delete button for each row?

2006-02-21 Thread Narayanan, Shiva
Hello All,

What is the best way to sort and page search results, (with delete button for 
each row) using Struts? Are there are any open source tag libraries to achieve 
this?  

 

Looked at displaytag. I want to retrieve data from the database using hibernate.

 

Many Thanks!!



Action class design for similar forms with different input fields?

2006-01-29 Thread Narayanan, Shiva
Hello,
 
Following tables are present in our database. We have mapped these tables to 
model classes using hibernate where the
model class for table 2 is a collection in model1 class.

Table 1 
Part_Id - int identity (10) - Primary key 
Part_Code - Char (10) 
Part_Name - Varchar (50) 



Table 2 
Sequence_Id - int identity (10) - Primary key 
Part_Id - int(10) - Foreign key --Table1.Part_Id 
Replacing_Part_Id - int(10) - Foreign key--Table1.Part_Id 

Our UI will look a wizard where the user will enter the part information(2 text 
boxes) in the first screen, then click the 
next button to go to the second screen, where he will add a list of replacing 
parts to a select box(from another 
select box) and click submit.
 
There is also super user screen where the super user can enter both the part 
information(two text boxes)
and the replacing parts(text area - several part codes delimited by some 
character) in a single screen. 
 
How do we design reusable action forms and action classes(possibly a super 
action class and a sub action class) to meet these criteria?
 
Please let me know.
 
Thanks,