2 Replies Latest reply on Feb 4, 2008 6:18 AM by Tony Herstell

    Odd Issue (3.1.3.GA)

    Tony Herstell Master

      Have an area of the page that updates itself

      <a4j:outputPanel id="resourceAddButtons" layout="none" ajaxRendered="true">

      When the items it contains contain a list then it doesn't.. I had to add in a "force" by doing this:

      
      <h:panelGrid class="left" id="booking_days" width="100%">
       <h:outputText class="sub3_title" id="add_resource_title"
       value="#{messages.booking_add_resources}" />
      
       <!-- Events Management Software -->
       <a4j:outputPanel id="bookingSpecificResourceItems" layout="none" ajaxRendered="true">
       <a4j:outputPanel id="events_management_software"
       rendered="#{bookingController.booking.reason=='COURSE' || bookingController.booking.reason=='SEC_BLOCKOUT'}">
       <h:panelGrid class="left" id="events_management_software_grid" width="50%">
       <h:panelGroup>
       <fieldset class="booking_section_fieldset">
       <legend class="booking_section_legend">
       <h:outputText id="events_management_software_section_title"
       value="#{messages.book_events_management_software_section}" />
       </legend>
       </fieldset>
       </h:panelGroup>
       <h:panelGroup>
       <h:selectBooleanCheckbox id="eventsManagementSoftwareRequired"
       value="#{bookingController.booking.eventsManagementSoftwareRequired}">
       <a4j:support event="onchange" eventsQueue="eventsQueue" requestDelay="500" />
       </h:selectBooleanCheckbox>
       <h:outputText id="events_management_software_question"
       value="#{messages.book_events_management_software_required}" />
       </h:panelGroup>
       </h:panelGrid>
       </a4j:outputPanel>
       </a4j:outputPanel>
      
       <rich:dataTable var="eachDay" value="#{bookingController.booking.bookingDays}" width="100%">
      
       <rich:column width="10%">
       <f:facet name="header">
       <h:outputText id="dayNumber"
       value="#{messages.booking_resources_day_number}" />
       </f:facet>
       <div class="centre">
       <h:outputText class="booking_day" id="night_before" value="#{messages.booking_resources_night_before}" rendered="#{eachDay.nightBefore}"/>
       <h:outputText class="booking_day" id="day_number" value="#{messages[eachDay.dayNumberAsInl8]}" rendered="#{!eachDay.nightBefore}"/>
       <a4j:commandButton id="bookingRemoveDay" value="#{messages.general_button_remove}"
       immediate="true"
       action="#{bookingController.removeDay(eachDay)}"
       eventsQueue="eventsQueue" requestDelay="500"
       LimitToList="true" reRender="booking_days"
       onclick="highlightSelectedResources({duration:1.5})"
       rendered="#{not(eachDay.nightBefore or eachDay.dayNumber==1)}"/>
       </div>
       </rich:column>
      
       <rich:column width="40%">
       <f:facet class="sub3_title" name="header">
       <h:outputText id="resourceAvailableTableTitle"
       value="#{messages.booking_resources_available}" />
       </f:facet>
      
       <a4j:outputPanel id="resourceAddButtons" layout="none" ajaxRendered="true">
      



      This workaround works.. summat to do with the list..