You need to sign in to do that
Don't have an account?

access list integers from controller to visual force page
Hai friends in my controller program i have list of integers ,now i want to display it in my visual force page can any one help me
in controller:
public with sharing class list_test {
public list<integer> i { get; set; }
public list_test()
{
i=new List<integer>();
i.add(5);
i.add(10);
i.add(15);
i.add(20);
system.debug('111111111111'+i);
}
}
in controller:
public with sharing class list_test {
public list<integer> i { get; set; }
public list_test()
{
i=new List<integer>();
i.add(5);
i.add(10);
i.add(15);
i.add(20);
system.debug('111111111111'+i);
}
}
<apex:page>
<apex:form>
<script>
var testvalue ='{!classvarible}' ; //merge fields
alert('controllervalueis@@'+testvalue);
</script>
</apex:form>
</apex:page>
Hope this information helps you