Results 1 to 4 of 4
  1. #1
    whiteasshweta is offline Member
    Join Date
    Jul 2009
    Posts
    6
    Rep Power
    0

    Default radio button checked by default

    hello...

    I am facing a problem ,I have a page with multiple links.when i click on a link it opens a form on the same page.on the page there are 2 radio buttons.and a listbox having items.
    Radio buttons
    a> all entities
    b> selected entities
    everything is disabled on listbox on clicking all entities and we have to submit as all entities will be selected automatically.
    but when i click on selected entities,all the items in the list box are enabled and i can select the specific item.....n can submit the information.
    but when i again click the same link to once again filled the form ,the selected entities radio button is checked and all the dta in the list box is disabled so for this first i have to check the all entities button n then selected entities radio button then it will come to normal.
    so i want that all entities radio button should be checked by default all the time. I have already tried that mentioning in form bean. but that is not working.any other suggestion........

  2. #2
    dswastik is offline Senior Member
    Join Date
    Dec 2008
    Location
    Kolkata
    Posts
    283
    Rep Power
    7

    Default

    Have you tried checked attribute?

    Java Code:
    <input type=radio name=r1 value=hello checked>
    <input type=radio name=r1 value=hi>

  3. #3
    whiteasshweta is offline Member
    Join Date
    Jul 2009
    Posts
    6
    Rep Power
    0

    Default radio button default

    yes i have done that also ......still it is not working.........in case of struts....it is showing session expired when i am using the property checked....can i get your gmail id......

  4. #4
    whiteasshweta is offline Member
    Join Date
    Jul 2009
    Posts
    6
    Rep Power
    0

    Default

    can u please add me in ur mail.....whiteasshwetas@gmail.com

Similar Threads

  1. Disable Radio button
    By AJG in forum New To Java
    Replies: 3
    Last Post: 05-10-2011, 12:09 PM
  2. Double click radio button
    By mandragora in forum AWT / Swing
    Replies: 11
    Last Post: 11-10-2008, 12:06 PM
  3. How to use SWT Radio Button
    By Java Tip in forum SWT Tips
    Replies: 0
    Last Post: 07-25-2008, 03:25 PM
  4. Reacting Radio button event
    By Java Tip in forum javax.swing
    Replies: 0
    Last Post: 06-26-2008, 08:46 PM
  5. Radio button values are not lose
    By chockalingam in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 12-03-2007, 09:14 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •