1

我在获取与单选按钮关联的值时遇到问题,该单选按钮是表中的一列。conferenceid它不是返回实际的,而是将${conf.conferenceid}文本返回给对象selectedConference。有人可以帮助我我在这里做错了什么。顺便说一句,这段代码在 Glassfish 上工作,最近迁移到 JBoss 并且没有工作。下面是html代码:

<display:table id="conf" name="conferences" requestURI="perConfSearchAction.action" pagesize="10">
    <display:column>
        <input type="radio" name="selectedConference" value="${conf.conferenceId}" onclick="getValue()"/>
    </display:column>
    <display:column property="userName" title="Moderator" sortable="true" />
    <display:column property="passcode" title="Public Pin" sortable="true" />
    <display:column property="moderatorPin" title="Moderator Pin" sortable="true" />                                
    <display:column property="confStartDate" title="Start Date" sortable="true" />                                                                
    <display:column property="confStartTime" title="Start Time" sortable="true" />                                
    <display:column property="confEndDate" title="End Date" sortable="true" />                                
    <display:column property="confEndTime" title="End Time" sortable="true" />                                
    <display:column property="confName" title="Subscription" sortable="true" />
</display:table>
4

1 回答 1

1

试试下面的代码

<display:table id="conf" name="conferences" requestURI="perConfSearchAction.action" pagesize="10" uid="row">
  <display:column>
     <input type="radio" name="selectedConference" value="<s:property value='%{#attr.row.id}'/>"/>
  </display:column>
</display:table>
于 2013-07-08T09:23:20.740 回答