Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

autoselect the radio button if the list has only 1 item

 
sourabh chhabra
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want know how to auto select the htmlption (radio button field) tag inside the logic:iterate tag if the property being iterated has size 1
 
Vicky Vijay
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi sourabh,

Can you explain the problem statement clearly !?

Do you need Drop down or Radio Button ?

Why logic:iterate ?

What you really intend to achieve ?


Provide Complete Information, so that you can fetch the solution quicker
 
sourabh chhabra
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi vicky

i have a search page which displays me the result in a tabular structure. The first column of the table is radio button which when selected activates the next button on the page.

the table is populated inside a logic iterate tag which iterates on a list of object which contains the information which is to be displayed.

I want that if the list on which the logic iterate tag iterates has just 1 element in it, the radio button displayed in the first column for that record should be auto selected.

the code snipped on jsp is

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic