• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Struts2

 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 689
Scala Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic