Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7023511
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:43:13+00:00 2026-05-27T23:43:13+00:00

In the code below (jsf page), i have some hotel info in display:table rows

  • 0

In the code below (jsf page), i have some hotel info in display:table rows but i want to cram the room details as a table in one of the columns of the main table. The code actually makes more sense. In the column with title “Rooms”, i want to display a table with room details. The whole table uses a list called “suitableHotelsList”. Within the list, there are several mainVOs which houses the details in the column properties. Also the roomList (which contains roomVO) is within the MainVO. Hence i presumed i should be able to do a new table as below but gives error saying ” Unknown property ‘roomList'”
Any suggestions for what i could do to relate hotels with their rooms?

                <div class="Tbl" style="border-width: 2px; border-style: solid; margin: 2px; font-size: 20px; height: 442px; left: 22px; top: 46px; overflow: scroll; position: absolute; width: 1268px; z-index: 1">
                        <display:table class="its" id="hotelList" name="requestScope.DetailSelection.suitableHotelsList" style="border-width: 2px; border-style: solid;">
                            <display:setProperty name="basic.empty.showtable" value="false"/>
                            <display:setProperty
                                name="basic.msg.empty_list">Gösterilecek bir kayıt bulunamadı</display:setProperty>/&gt;
                            <display:column
                                property="hotelName" style="font-size: 30px; width:200px; text-align:center;" title="Hotel Name"/>
                            <display:column property="hotelStars" style="font-size: 30px; width:100px; text-align:center;" title="Stars"/>
                            <display:column property="userRating" style="font-size: 30px; width:100px; text-align:center;" title="User Rating"/>
                            <display:column property="hotelSummary" style="font-size: 20px; width:500px; text-align:center;" title="Summary"/>
                            <display:column style="width:100px;" title="Hotel Details">
                                <a href="HotelDetailsPage.jsp?id=${hotelList.hotelID}&amp;screenType='O'&amp;initial='true'">
                                    <ui:image style="height:80px; width:80px;" url="/resources/img2.JPG"/>
                                </a>
                            </display:column>
                            <display:column style="width:100px;" title="Rooms">
                                <display:table class="its" id="roomList" name="requestScope.DetailSelection.suitableHotelsList.roomList">
                                    <display:column property="room_type" style="font-size: 10px; width:100px; text-align:center;" title="Room Type"/>
                                    <display:column property="price_per_night" style="font-size: 10px; width:100px; text-align:center;" title="Price Per Night"/>
                                    <display:column property="room_number" style="font-size: 10px; width:100px; text-align:center;" title="Room Number"/>
                                    <display:column style="width:100px;" title="Hotel Details">
                                <a href="Reservations.jsp?id=${roomList.roomID}&amp;screenType='O'&amp;initial='true'">
                                    <ui:image style="height:80px; width:80px;" url="/resources/img3.JPG"/>
                                </a>
                                </display:column>
                                </display:table>
                            </display:column>
                        </display:table>
                    </div>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T23:43:14+00:00Added an answer on May 27, 2026 at 11:43 pm

    The outer table has id="hotelList". This means that during the iteration, the tag lets you access the current hotel is the list using the page-scope attribute “hotelList”. I would thus name it “hotel”, which would make it much clearer.

    You need to access the list of rooms of the current hotel. You use requestScope.DetailSelection.suitableHotelsList.roomList to do this, which makes no sense: the list of hotels (of type java.util.List, I guess) doesn’t have any property named “roomList”. Instead, you want to access the current hotel’s room list: hotel.roomList (provided you have renamed hotelList to hotel as suggested above).

    Also, the nested table uses the ID roomList. Same as above: naming it “room” would be much less confusing. The current object in the iteration is a room, not a room list.

    Finally, another problem is that the id attribute is also used to set an ID HTML attribute to the inner HTML table. Since an ID should be unique for the whole HTML page, and you will have several inner tables, this will lead to invalid HTML.
    You should thus also set a htmlId attribute to something unique, like room${hotel_rowNum}. See http://www.displaytag.org/1.2/displaytag/tagreference.html for the tag reference.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a JSF page with two forms (pseudo-code below). First form is for
I have this seemingly-innocent code on my main JSF page: <a4j:outputPanel id=sidebarContainer> <a4j:include viewId=#{UserSession.currentSidebar}/>
I have the jsf code and css code below. I'm having trouble getting the
I have the following question: Let's assume the code below: ... <h:form id=..> <table>
Code below is working well as long as I have class ClassSameAssembly in same
The code below works. But if I comment out the line Dim objRequest As
Please take a look at this below line of code in JSF <h:inputText id=name
I am getting the below messages when my JSF page gets rendered. The page
I have been trying with limited success to code a JSF application. In one
I want to forward request to a non-JSF page from JSF action method. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.