You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by ch...@tkdsoftware.com on 2004/06/11 03:28:14 UTC

hidden checkboxes

Is there a way to render a portion of a collection (multibox) as hidden input 
tags instead of rendered checkbox input tags?

thanks
chris
 
 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: hidden checkboxes

Posted by Niall Pemberton <ni...@blueyonder.co.uk>.
Same answer as your other question except use <html:hidden> instead of
<html:checkbox>

Using logic iterate....

<logic:iterate id="myLabelBeans"
                 name="myForm"
                 property="myLabelBeans"
                 offset="10"
                 length="10">

    <html:hidden name="myLabelBeans" property="myValue" indexed="true"/>

</logic:iterate>


Using JSTL...

<c:forEach var="myLabelBeans"
                 items="$(myForm.myLabelBeans}"
                 begin="10"
                 end="19">

    <html:hidden name="myLabelBeans" property="myValue" indexed="true"/>

</c:forEach>

Niall
----- Original Message ----- 
From: <ch...@tkdsoftware.com>
To: <us...@struts.apache.org>
Sent: Friday, June 11, 2004 2:28 AM
Subject: hidden checkboxes


> Is there a way to render a portion of a collection (multibox) as hidden
input
> tags instead of rendered checkbox input tags?
>
> thanks
> chris
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org