You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Peter A. Pilgrim" <pe...@xenonsoft.demon.co.uk> on 2003/04/13 18:33:21 UTC

Handling Large Users / Group Member Lookups [was Re: button label vs value]

Kruse, Matt wrote:
>>I want the label that is displayed for my button to be 
>>different than the value that is submitted on button click.
> 
> 
> This is a limitation of html, not Struts.
> The VALUE attribute of a button is always what is displayed as the label on
> the button itself.
> 
> Matt Kruse
> 
Hi Matt.

I have a Struts application. I think your mattkruse.com looks great.
I was looking at your autocomplete javascript, because I want
to look up a large number of users who organised into groups.

The problem is that my client does not want the request to go
back to server. He is worried about refresh times, wants
a responsive web application. I have assured him, that
the writing an onchange handler JavaScript should be
pretty quick for say 10000 users. Of course you cannot
have a HTML Select elements with this number of users,
because of the size of the page, and impossible size
of the list.

So I think that writing an autocomplete which is triggered
on the first couple of characters should do the trick. Performing
a looking on the first character ("s") reduces the size of
list 10000/26 == 384 members. Still a lot of users to display
in  <html:select ... />

The alternative is a a search page. Still another is the
search and lookup members a la yahoo.mail etc.

Are there any other javascript/Struts/solutions out there?

-- 
Peter Pilgrim
            __ _____ _____ _____
           / //__  // ___// ___/   +  Serverside Java
          / /___/ // /__ / /__     +  Struts
         / // ___// ___// ___/     +  Expresso Committer
      __/ // /__ / /__ / /__       +  Independent Contractor
     /___//____//____//____/       +  Intrinsic Motivation
On Line Resume
    ||
    \\===>  `` http://www.xenonsoft.demon.co.uk/no-it-striker.html ''


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org