Passing parameters/values between JavaScript and JSF backing bean
843844Dec 7 2007 — edited Dec 9 2007Guys,
I a have a problem passing parameters from javascript to my backing bean and the other way around. Basically in my Page1, when I switch to jsp view, I see something like this:
<?xml version="1.0"?>
.
.
<ui:head binding="#{Page1.head1}" id="head1">
<ui:link binding="#{Page1.link1}" id="link1" url="/resources/stylesheet.css"/>
and then I have:
<script type="text/javascript"><![CDATA[
var flag = 0
]]></script>
The question is, how do I set flag equal to the flag value in my backing bean??
Any help is greatly appreciated.