• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts2

 
Rachel Kumar
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
issue: i have to display a search results on the modal box.

initially the search results was captured using ajax and then displayed using the display tag in a table format on the right side of page.

im not sure how to do it, please can i get help?
 
Joe Ess
Bartender
Posts: 9318
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the JavaRanch.
You must have missed our naming policy on the way in. In short, your displayed name must be your real (or at least real-sounding) first and last name separated by a space. You can change your displayed name here. Thank you for your prompt attention.
It's also a good idea to Use A Meaningful Subject Line so we can help you better.
 
Rachel Kumar
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am new to struts2.

i need to enhance something which is already existing.
The flow works like, the search results are being captured by using the Ajax.updater.
The result is displayed in a table format at the right side of the jsp using the display tag and css

now the enhancement is that the search results need to be displayed on a modal dialog box. I do not know how to appraoch?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"learn more", Joe's request that you change your display name to adhere to JavaRanch standards was not a suggestion. Valid display names are mandatory for participation on the Ranch. Please change your display name as instructed prior to your next post.

Be aware that accounts with invalid display names are disabled.

bear
JavaRanch Sheriff
 
Joe Ess
Bartender
Posts: 9318
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Again, your displayed name must be your real (or at least real-sounding) first and last name separated by a space. As Bear stressed, we take this policy very seriously.

As for your question, I'd start by figuring out how to make a modal dialog box. Once you've figured that out, you can work on pointing the dialog at the correct URL to execute the search.
 
Rachel Kumar
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have figured as to how the modal dialog can be done.

My issue is that, the search button Onclick is directly going to the search function().

and i have the modaldialog function as in a javascript OpenDialogBox().
So how do i call the search() from within the OpenDialogBox().
 
Joe Ess
Bartender
Posts: 9318
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for changing your name.
posted Today 2:18 PM -
i have figured as to how the modal dialog can be done.


That's not what you said in your previous post:

posted Today 1:44 PM:
now the enhancement is that the search results need to be displayed on a modal dialog box. I do not know how to appraoch?


Who knows what details you've left out of your last post. You need to Tell The Details, preferably after you've read our advice on How To Ask Questions On JavaRanch
The better question you ask, the more help we can give you.
 
Nishan Patel
Ranch Hand
Posts: 689
Eclipse IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
posted Monday, October 20, 2008 11:36 AM Profile for Nishan Patel Email Nishan Patel Send New Private Message Edit/Delete Post Reply With Quote Hi...

You can easily integrate Display tag for pagination in struts 2.

you have get example from it's site and integrate it.

you have to add tag lib.

<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>

and add

<display:table name="list" pagesize="10" cellpadding="0" cellspacing="0"
requestURI="" id="row" class="">
<display:column title="#" headerClass="Table-Head">
<c ut value="${row_rowNum}" />
</display:column>
<display:column headerClass="Table-Head" value="Euro25.00000" title="Account" autolink="true" />
<display:column headerClass="Table-Head" property="email" autolink="true"
titleKey="email" />
</display:table>



Thanks,
Nishan Patel.
 
Rachel Kumar
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks so much for the help.
I did resolve to get a modalbox.

I am displaying the search results in it in the form of a table.

My problem here is,
1. can i display a table without a header, if so how to do it.
2.Is there any other way to display the search results.

Please help me.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic