This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Portals and Portlets and the fly likes Dynamic dropdown population in portlet Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Reply Bookmark "Dynamic dropdown population in portlet" Watch "Dynamic dropdown population in portlet" New topic
Author

Dynamic dropdown population in portlet

Al Razor
Greenhorn

Joined: Mar 08, 2010
Posts: 16
Hello,

I need to develop a portlet (for GateIn framework), which lists all the clients of the selected company. First, user has to select a city from a dropdown (combobox). Next, another dropdown should be populated (or updated) with a list of companies from the selected city. When the user presses submit, portlet should display the result.

Portlet gets all this information from a few web services (written in PHP) using SOAP 1.1.

It is pretty easy to do it in Java, but in this case I have to integrate code in Java with JSP and JavaScript. And I have very little experience with JavaScript

Therefore, I have the following questions:
1. What is the best way to integrate Java code (functions that return lists) into this JSP page with JavaScript?
2. Would it be easier/more reasonable to re-write it all in JavaScript?

Thanks!
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Dynamic dropdown population in portlet
 
Similar Threads
Passing values from JavaScript to next JSP
dynamically inter relate two drop down list in jsp
ASP with JavaScript
AJAX Frameworks that integrate with Struts
Submitting hidden values on the form with onSelect option