Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-14-2007, 03:37 PM
Member
 
Join Date: May 2007
Posts: 39
Alan is on a distinguished road
checkbox
I need to repeat this:

Code:
<logic:present name="_list"> <logic:iterate id="_list" name="_lista" indexId="i"> <tr class="text"> <td><bean:write name="_list" property="article"/></td> <td><bean:write name="_list" property="user.user"/></td> <td><bean:write name="_list" property="title"/></td> <td align="center"><img src="../img/vi.gif" alt='Observation: <bean:write name="_list" property="observation"/>'></td> <td><html:checkbox property="chkNotify" /></td> </tr> </logic:iterate> </logic:present>
In the last line ( <td><html:checkbox property="chkNotify" /></td>) I have the problem, I need to index this property, but I dont know who gives me this index, how can I write it,etc


Regards
Alan

Last edited by Alan : 06-01-2007 at 02:51 AM.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-14-2007, 04:43 PM
Member
 
Join Date: Apr 2007
Location: Indiana
Posts: 84
pegitha is on a distinguished road
Send a message via Skype™ to pegitha
I like to use the nested tag in these instances.
here is an instance of some code I wrote using the multibox.
Code:
<logic:iterate id="category" property="progDisplayItems" name="allMenuForm"> <li> <nested:multibox name="allMenuForm" property="displayItemsChosen"> <nested:write name="category" property="id" /> </nested:multibox> <bean:write name="category" property="description" filter="false"/> </logic:iterate>
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 05-14-2007, 04:51 PM
Member
 
Join Date: May 2007
Posts: 42
Freddie is on a distinguished road
Hey I did something like this, but I did not use checkbox, I used multibox, is more simpler than this.
here is the link
Dynamic checkboxes with Struts

Last edited by Freddie : 06-01-2007 at 03:44 PM.
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 05-18-2007, 11:10 AM
Member
 
Join Date: May 2007
Posts: 1
ajava is on a distinguished road
Hi Freddie,

Dynamic checkboxes with Struts
I think this article shows the creation of pre-checked checkboxes
using html:multibox tag.

Also this example assumes a hard coded array. Do you have any idea how this can be done if the values are dynamic?

Regards
ajava

Last edited by levent : 05-18-2007 at 11:44 AM.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +3. The time now is 09:45 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org