• 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

Howto call a Javascript Function with a dynamic JSF EL parameter

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
im using a Javascript from Richfaces to close a modal panel. Everything works fine, but i want to make the parameter, which is given to the javascript function, dynamic.

Now:
<h:commandButton ... onclick="#{rich:component('warning_message_modal_panel')}.hide()" ... />

Should be like:
<h:commandButton ... onclick="#{rich:component('#{JavaBean.modalPanelId}')}.hide()" ... />

This EL entry doesnt work, but how must it look like?
I hope the explanation of my problem was ok...

Any ideas?

Thank you,
Ray
 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Can you move this code into some javascript function.. and send the param to that function..


funtion testFunction(panelName){

#{rich:component(panelName)}.hide()"
}
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic