Monday, May 28, 2007

How to assign the javascript variable with the managed-bean property ( JSF )?

JSF hacking.

using <h:output> tag to output bean member.make sure that JavaScript code is in <f:view tag>. This an example:

<f:view>
....
<script>
var b = '<h:outputText value="#{MyBean.name}"/>';
// other script code
</script>
....
</f:view>

Comments: Post a Comment



<< Home