You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by di...@jpmorgan.com on 2006/02/22 18:41:31 UTC

getting various control like checkbox and drop down as column in HTML table.

 Hi:
        I am trying to put in editable checkbox inside HTML table, but it 
doesn't seem to work.
        any ideas where am going wrong ?
        Thanks in adv.
Digant





   <table class="borderAll" border="1">
    <tr>
          <th><fmt:message key="label.imntDescr"/></th>
        <th><fmt:message key="label.bucketName"/></th>
             <th><fmt:message key="label.sectorName"/></th>
        <th><fmt:message key="label.lockedFlag"/></th>
           </tr>
    <c:forEach var="instrument" items="${instruments}" 
varStatus="status2">
        <tr class="${status2.index%2==0?'even':'odd'}">
            <td class="nowrap"><c:out 
value="${instrument.imntDescr}"/></td>
                <td class="nowrap"><c:out 
value="${instrument.bucketName}"/></td>
                <td>
                        <html:select property="{instrument.sectorId}">
                        <c:forEach var="sector" items="${sectors}">
                                <html:option value="${sector.sectorId}">
                                <c:out value="${sector.sectorName}"/>
                                </html:option>
                        </c:forEach>
                        </html:select>
            </td>  
            <td class="nowrap"><c:out 
value="${instrument.sectorName}"/></td> 
            <td>
                <html:checkbox 
property="{instrument.lockedFlag}">{instrument.lockedFlag}</html:checkbox> 
 
            </td>
         </tr>
    </c:forEach>
       </table>


This communication is for informational purposes only. It is not intended
as an offer or solicitation for the purchase or sale of any financial
instrument or as an official confirmation of any transaction. All market prices,
data and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein 
do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries 
and affiliates.

Re: getting various control like checkbox and drop down as column in HTML table.

Posted by Laurie Harper <la...@holoweb.net>.
digant.k.joshi@jpmorgan.com wrote:
>  Hi:
>         I am trying to put in editable checkbox inside HTML table, but it 
> doesn't seem to work.
>         any ideas where am going wrong ?
>         Thanks in adv.
> Digant
> 
> 
> 
> 
> 
>    <table class="borderAll" border="1">
>     <tr>
>           <th><fmt:message key="label.imntDescr"/></th>
>         <th><fmt:message key="label.bucketName"/></th>
>              <th><fmt:message key="label.sectorName"/></th>
>         <th><fmt:message key="label.lockedFlag"/></th>
>            </tr>
>     <c:forEach var="instrument" items="${instruments}" 
> varStatus="status2">
>         <tr class="${status2.index%2==0?'even':'odd'}">
>             <td class="nowrap"><c:out 
> value="${instrument.imntDescr}"/></td>
>                 <td class="nowrap"><c:out 
> value="${instrument.bucketName}"/></td>
>                 <td>
>                         <html:select property="{instrument.sectorId}">
>                         <c:forEach var="sector" items="${sectors}">
>                                 <html:option value="${sector.sectorId}">
>                                 <c:out value="${sector.sectorName}"/>
>                                 </html:option>
>                         </c:forEach>
>                         </html:select>
>             </td>  
>             <td class="nowrap"><c:out 
> value="${instrument.sectorName}"/></td> 
>             <td>
>                 <html:checkbox 
> property="{instrument.lockedFlag}">{instrument.lockedFlag}</html:checkbox> 
>  
>             </td>
>          </tr>
>     </c:forEach>
>        </table>

Well for one thing, half you JSTL expression aren't prefixed with a '$' 
sign. If that's not the problem, try describing how, exactly, things are 
failing.

L.


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


Re: getting various control like checkbox and drop down as column in HTML table.

Posted by Michael Jouravlev <jm...@gmail.com>.
http://www.catb.org/~esr/faqs/smart-questions.html#beprecise
http://www.catb.org/~esr/faqs/smart-questions.html#volume

On 2/22/06, digant.k.joshi@jpmorgan.com <di...@jpmorgan.com> wrote:
>  Hi:
>         I am trying to put in editable checkbox inside HTML table, but it
> doesn't seem to work.
>         any ideas where am going wrong ?
>         Thanks in adv.

<skipped>

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