Radio button value change on database value

asked 2014-05-30 01:17:54 +0800

makarchus gravatar image makarchus

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"/>

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted

answered 2014-05-30 01:41:56 +0800

mhj gravatar image mhj flag of Brazil
806 1 7

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.

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

1 follower



Asked: 2014-05-30 01:17:54 +0800

Seen: 13 times

Last updated: May 30 '14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More