Friday, September 9th, 2005

Struts-Layout Suggest

Category: Java, LiveSearch

<p>The Struts-Layout tag library now allows you to put Suggest fields on your web

It is very easy to use:

You only have to use a simple JSP tag:

<layout:suggest suggestAction=”/getCountrySuggestions” key=”Country”
styleId=”countryField” value=”" />

where “/getCountrySuggestions” is a Struts action in which you instantiate a collection containing the results matching the typed word.

You can easily custom it:

You can use different skins, set the maximum number of returned results, set the timeout or the minimum number of typed characters before getting results…

How to use Suggest field:

Read the tutorial:

More about Struts-Layout:

Struts-Layout is a tag library for struts which provides easy and fast interface
creation. This is achieved by powerful tags which display panels, input fields,
tables, treeviews, sortable lists, datagrids, popups, calendars, etc. With those
tags, the developer have neither need to write nor even know HTML.

Struts-Layout website:

You can find an online demo

Struts Layout

( via François Goldgewicht )

Related Content:

  • Redirect After Post
    This article shows how to design a well-behaved web application using...
  • What's New in the eXo Platform 1.0 beta 4
    By using an open source model we target developers and provide them with many features that make their everyday life easier. Our strategy clearly...
  • ZK Rich Client Framework and Agile Development
    Learn why rich client frameworks in general, and ZK in particular, not only allow for more pleasing, powerful UIs, but aid in applying an...
  • eXo Platform, reloaded...
    The objective of this paper is to describe the process that an open source software development team has to follow when the kernel design is stable...
  • Working with J2ME
    This paper explores the various facets of building a J2ME application. It assumes a working knowledge of Java. The focus is on a MIDP 1.0/CLDC 1.0...

Posted by Dion Almaer at 8:53 am
1 Comment

3.5 rating from 27 votes

1 Comment »

Comments feed

I just find a problem with layout:suggest, the options suggested doesn´t renders well accents and the “ñ”. I´m spanish.

How can I solve it? Any idea?

Comment by polyphony — May 9, 2006

Leave a comment

You must be logged in to post a comment.