-
FEATURED COMPONENTS
First time here? Check out the FAQ!
how do I make this radio button selected based on the database field. Example if user is active then I need to show Active radio button checked and if user is Inactive then it should show Inactive Checkbox
<label style="align:right" value="Status:"/> <radio id="ra1" label="Active" radiogroup="active" selected="true"/> <radio id="ra2" label="Inactive" radiogroup="active"/>
Hello makarchus, if i understood right your question you should start a scheduler to check the status at database and set the status in the radio. If is that is relatively simple, for example:
@Schedule(minute="*/1", hour="*")
private void test(){
//code your select
//set the check
}
schedule needs JEE, if you don't use you can try some timer java.
Asked: 2014-05-30 01:17:54 +0800
Seen: 13 times
Last updated: May 30 '14
How to stop combining commands in an ajax call ?
zk developmet is esay [closed]
Need help with scrolling horizontal tabs in Right-to-Left (Arabic)
Create tab dynamically, multitab application
How to implement, each user has its own session timeout time
Scroller on listbox doesn't work on mobiles / tablets