0 Replies Latest reply on Dec 22, 2010 10:33 AM by Vladimir Nikolic

    rich:listShuttle refresh problem

    Vladimir Nikolic Newbie

      I have rich:listShuttle on the page. When i navigate from that page and come back I reset all values (from a init method of Controller which is request scoped) in (session scoped) model bean. All the other values on the page are rendered normally with new values (like rich:progressBar) but listShuttle is loaded with old values.

       

       

      <rich:tabPanel switchType="client" id="tabovi">
                    <a4j:outputPanel >
                      <rich:tab label="Izaberi profesore">
                          <h:form id="form">
                         
                              <h:panelGrid columns="2" id="unesiProf">
                                 
                                  <rich:listShuttle
                                      sourceValue="#{konkretniKursModel.profesori}"
                                      targetValue="#{konkretniKursModel.izabraniProfesori}"
                                      var="items" listsHeight="150" sourceListWidth="130"
                                      targetListWidth="130" sourceCaptionLabel="Available Items"
                                      targetCaptionLabel="Currently Active Items">
                                      <rich:column>
                                          <h:outputText value="#{items}"></h:outputText>
                                      </rich:column>
                                  </rich:listShuttle>
                                 
                                  <h:commandButton value="udri" action="#{izmenaKonkretnihKursevaController.unesiProfesore}" />
                              </h:panelGrid>
                          </h:form>
                      </rich:tab>

                 
                      <rich:tab id="valid" rendered="#{konkretniKursModel.postValid}" label="Potvrdi Konkretan Kurs">
                          <h:form>
                              <h:commandButton action="#{izmenaKonkretnihKursevaController.postaviValidan}" value="postavi validan"/>
                          </h:form>
                      </rich:tab>
                      </a4j:outputPanel>
                  </rich:tabPanel>

          <h:form id="progres">
              <a4j:outputPanel id="progressPanel">
                  <rich:progressBar value="#{konkretniKursModel.progresBar}"
                      mode="client" label="#{konkretniKursModel.progresBar} %">
                  </rich:progressBar>
              </a4j:outputPanel>
          </h:form>

      Does it have something to do with a4j:outputPanel and is there any workaround