Advertisement

01.07.2008 at 12:24AM PST, ID: 23062961
[x]
Attachment Details

Passing dynamic JSF bean value to javascript

Asked by amateur83 in Java Server Faces (JSF), JavaScript

Tags: jsf, javascript, bean, pass, value

Hi all,

I have a listing in dataTable. And onclick (on a row) will call a javscript. How to pass the parameter (bean) to the javascript?

i tired passing #{topBean.itemID} (which is so incorrect).

Please help.

Thanx
Start Free Trial
1:
2:
3:
4:
5:
6:
t:dataTable id="data" 
                var="top" value="#{topBean.allList}"
		...
 
 <h:commandLink styleClass="imageLink" onclick="onClickPlay('#{top.itemID}')" immediate="true">
			</h:commandLink>
[+][-]01.07.2008 at 12:38AM PST, ID: 20597675

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Java Server Faces (JSF), JavaScript
Tags: jsf, javascript, bean, pass, value
Sign Up Now!
Solution Provided By: mplungjan
Participating Experts: 1
Solution Grade: B
 
 
[+][-]01.07.2008 at 01:22AM PST, ID: 20597819

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628