• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Dynamic dropdown population in portlet

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
reply
    Bookmark Topic Watch Topic
  • New Topic