I had to do something similar this last week and it was not as easy as I
thought it would be :-) In your Javascript, you can call an action to
reload this and then the action can return an ActionMapping back to your
current page after a reload. Although note that your page will
completely redraw itself :-) For that reason, I added a Javascript
confirm() to ask the user if they really want to reload now or wait until
the next time they visit the application.
In many aspects, the User Interface for struts-related applications suffers
greatly compared to the JFC/Swing way of doing it :-)
"Jesse Alexander
(KADA 12)" To: Struts Users Mailing List
<alexander.jesse <[EMAIL PROTECTED]>
@csfs.com> cc:
Subject: RE: Forcing a form-reload OR
a select Options
03/13/02 11:30 reload
PM
Please respond
to Struts Users
Mailing List
Hi,
Struts is a server-based application-environment...
The functionality you describe is client-side...
So the only option is to use Javascript to get this dynamic behaviour.
This is live at the html-web-application programming side of live.
Without Javascript the only way you can do something is, when the user
sends a request to the server, cause only then your code can intervene.
hope this helps
Alexander Jesse
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Mittwoch, 6. M�rz 2002 18:07
To: Struts Users Mailing List
Subject: Forcing a form-reload OR a select Options reload
Is there a way to cause an html select control to "reload from a different
collection" -OR- to "update the collection and have the html select be
refreshed"?
If I have:
<html:select property="psdIndustryType" size="1">
<html:options collection="psindustrytype" property="value"
labelProperty="label"/>
Can I automatically repopulate the psindustrytype collection if the user
clicks on a checkbox on the form? Is there a way to do this without
having to resubmit the form? I am guessing not....
Another approach would be to have a javascript function (that gets called
when the user clicks on a checkbox) call an Action. Is the best way to do
that in Javascript use use the "self.location=WhateverActionToCall"????
thanks,
Theron
--
To unsubscribe, e-mail: <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>