Thank you, Edgar. This sounds promising! Susan
On 11/12/2002 03:48:01 PM "edgar" wrote: > I have a solution with a small amount of optional javascript. > > You have a 'recalculation' action which does all the lookups and > populates either ActionErrors for invalid selections or puts in related > information if a correct entry was made. It should return you to the > same jsp. You can stick the actual entry point to the recalculation in > the validate method of your actionform. > > The javascript you need is an onchange to submit the form and 'save' > your focus and a small javacript to regain the focus on return to the > form. > > If you don't want the javascript have a button after the field with and > action of 'Load Related Info' or something. The use can regain the > focus manually. > > Edgar > > -----Original Message----- > From: Susan Bradeen [mailto:SusanB@;softlanding.com] > Sent: Tuesday, November 12, 2002 2:23 PM > To: '[EMAIL PROTECTED]' > Subject: Simulating Client field prompting > > > I have a few fields in some JSPs that will need to provide > "client/server > type field prompting" (user double-clicks on a field to open a selection > > window). In reviewing the Struts docs and archives, it appears that > there > is no "Struts-specific" functionality for this, and I noticed that other > > people have used JavaScript pop-up windows in similar situations. > Although > I've used pop-ups before, I am not confident they *will* be > cross-browser > compatible, which is important in this application, so I am shying away > from using them this time. Unfortunately, I cannot use Struts > selection/drop boxes for these fields, since my list of selections is > quite large (user name lists, etc). > > I am wondering ... has anyone has come up with a different (less > JavaScript) approach to making a field value selection from another > list? > > Thanks for any ideas, > Susan Bradeen > > -- > To unsubscribe, e-mail: > <mailto:struts-user-unsubscribe@;jakarta.apache.org> > For additional commands, e-mail: > <mailto:struts-user-help@;jakarta.apache.org> > > > -- > To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@;jakarta.apache.org> > For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org> > -- To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>