| Author |
How to call the javascript method in jsf while calling servlet?
|
jayaganesh marappan
Greenhorn
Joined: Apr 15, 2008
Posts: 5
|
|
<h utputLink rendered="#{campaigncreator.campaign.type == 'DYNAMIC' and campaigncreator.updButtons}" value="../mtcservlet/previewdynamiccontent?dynamiccontent=#{campaigncreator.html}" target="_blank"> <f:verbatim>Preview Dynamic Campaign</f:verbatim> </h utputLink> Here instead of this #{campaigncreator.html} ,i want call this javascript method.like getHtml();
|
 |
Tim Holloway
Saloon Keeper
Joined: Jun 25, 2001
Posts: 14491
|
|
|
You're probably better off using RichFaces. It provides a outputLink tag with better JavaScript support (actually, AJAX support), For simple stuff, just use the onclick attribute, however. The "value" property is for getting the data value, not dispatching logic.
|
Customer surveys are for companies who didn't pay proper attention to begin with.
|
 |
 |
|
|
subject: How to call the javascript method in jsf while calling servlet?
|
|
|