Advertisement

04.16.2008 at 02:37AM PDT, ID: 23326417
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.4

Is it possible to format the Struts 2 tag <s:checkboxlist> into a columned HTML table instead of a wraparound list

Asked by storerp in Jakarta Struts, Cascading Style Sheets (CSS), Java Server Pages (JSP)

Tags: ,

We are currently using Struts 2 to develop a Java application. We have used a Struts 2 tag <s:checkboxlist>

The problem is when we have a big list of items it just lists them and wraps around looking messy. We need a way to be able to format the display into columns. But would like to continue using the <s:checkboxlist>  tag if possible.Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
The java code is :
<table border="0" cellspacing="1" width="100%" cellpadding="0"	class="contextRow">
    <s:checkboxlist cssClass="contextFieldData" name="delValueList" list="descList" listKey="tag_value_id" listValue="valueName" />
</table>
 
The rendered HTML code is:
 
<table border="0" cellspacing="1" width="100%" cellpadding="0" class="contextRow">
<tr>
    <td class="tdLabel"></td>
    <td>
       <input type="checkbox" name="delValueList" value="1311" id="delValueList-1"/>
      <label for="delValueList-1" class="checkboxLabel">16AP</label>
      <input type="checkbox" name="delValueList" value="294" id="delValueList-2"/>
      <label for="delValueList-2" class="checkboxLabel">ADRR</label>
      <input type="checkbox" name="delValueList" value="1312" id="delValueList-3"/>
      <label for="delValueList-3" class="checkboxLabel">AP16</label>
      <input type="checkbox" name="delValueList" value="296" id="delValueList-4"/>
      <label for="delValueList-4" class="checkboxLabel">BAT</label>
      <input type="checkbox" name="delValueList" value="295" id="delValueList-5"/>
      <label for="delValueList-5" class="checkboxLabel">CARP</label>
      <input type="checkbox" name="delValueList" value="248" id="delValueList-6"/>
      <label for="delValueList-6" class="checkboxLabel">EXER</label>
    </td>
</tr>
</table>
Attachments:
 
screen image
screen image
 
 
Loading Advertisement...
 
[+][-]04.16.2008 at 06:59AM PDT, ID: 21367797

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.16.2008 at 07:03AM PDT, ID: 21367831

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Jakarta Struts, Cascading Style Sheets (CSS), Java Server Pages (JSP)
Tags: Java Struts 2, IE 6
Sign Up Now!
Solution Provided By: asanga_su
Participating Experts: 1
Solution Grade: B
 
 
 
Loading Advertisement...
20081112-EE-VQP-44 - Hierarchy / EE_QW_2_20070628