Hi,
I've one checkbox,I need to capture the status of this checkbox(i.e checked is "true" and unchecked is "false") to the java method as parameter.
Please advise if there is any way i can accomplish this..
I've check box like this
Javascript to get the status of check box like this..Code:<h:selectBooleanCheckbox id="checkMedia" onclick="toggleDeleteAll()"/>
I need to pass the return value of the javascript to the java method in command link action like thiss.Code:function toggleDeleteAll(){ if(deleteAll == 'false') deleteAll = 'true'; else deleteAll = 'false'; return deleteAll; }
Please advise me if anybody has inputs..Code:<h:commandLink id="delete" action="#{VehicleListingController.delete(VehicleListingController.vehicle,deleteAll)}" value="DELETE">
Thanks,
Anil


Reply With Quote
Bookmarks