0

试图显示页面。页面假设在所有情况下都是相同的,除了一个。在这种情况下,我使用选择条件以不同的参数显示它。但是我得到了参数,但表的其余部分是空的。怎么了?

<div id="detailsTabs">
<ul>
    <li><a href="#tabs-1"><fmt:message key="paymentDetails.tab.senderReciver" /> </a></li>
    <li><a href="#tabs-2"><fmt:message key="paymentDetails.tab.additionalInfo" /> </a></li>
</ul>
<c:choose>
    <c:when test="${.... == '....'}">
        <div id="tabs-1">
            <div class="groupHead">
                <fmt:message key="paymentDetails.section.sender1" />
            </div>
        </div>
    </c:when>
    <c:otherwise>
        <div id="tabs-1">
            <table style="width: 100%">
                <tr>
                    <td class=" horizontalGroup" style="width: 50%">
                        <table class="horizontalGroupContainer" style="width: 100%; height: 100%">
                            <tr>
                                <td class="horizontalGroup ui-widget ui-widget-content ui-corner-all" style="vertical-align: top; width: 100%">

                                    <div class="groupHead">
                                        <fmt:message key="paymentDetails.section.sender" />
                                    </div>
                                    <table class=" datatable">
                                        <tr class="even2">
                                            <td class="label"><fmt:message key="paymentDetails.label.senderBranchNr" /></td>
                                            <td class="data">${paymentDetails.senderBranchNr}</td>
                                        </tr>
                                        <tr class="odd2 ">
                                            <td class="label"><fmt:message key="paymentDetails.label.senderAccountNr" /></td>
                                            <td class="data">${paymentDetails.senderAccountNr}</td>
                                        </tr>
                                        <tr class="even2">
                                            <td class="label"><fmt:message key="paymentDetails.label.senderName" /></td>

                                            <td class="data groupElement">${paymentDetails.senderName_1}<br /> ${paymentDetails.senderName_2}<br />
                                                ${paymentDetails.senderName_3}<br /> ${paymentDetails.senderName_4}<br />
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </div>
    </c:otherwise>
</c:choose>
<div id="tabs-2">
    <div id="section_additionalInfo">
        <tiles:insertAttribute name="section_additionalInfo" />
    </div>
</div>

4

0 回答 0