Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Passing parameters/values between JavaScript and JSF backing bean

843844Dec 7 2007 — edited Dec 9 2007
Guys,

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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 6 2008
Added on Dec 7 2007
7 comments
685 views