3 Replies Latest reply on Nov 3, 2010 6:05 PM by dp

    the h:textArea and h:textInput on the popup fail to pass their values to the bean

    dp
      Hi. I have the following issue
      When the a4j:commandLink(at the end of the code) is clicked, the h:textArea and h:textInput on the popup fail to pass their values to the bean(setters for contentItemBean.userContentItemFeedback.title and contentItemBean.userContentItemFeedback.comment are never called). The setter only initiated when the ModalPanel is hidden(onclick="Richfaces.hideModalPanel('lsWrapperPanel');").

            <div class="submitAReviewPopUp" style="padding-top:10px;">
                      <div class="floatLeft">

                          <h:inputText id="feedback" value="#{contentItemBean.userContentItemFeedback.title}" required="false"
                                       styleClass="textHint" title="Please enter the title of your feedback"/>

                          <a4j:outputPanel id="ratingPanel" layout="block" styleClass="rating">
                              <a4j:region>
                                  <a4j:commandLink action="#{contentItemBean.rateItem}" reRender="ratingPanel"
                                                   onclick="remHint();clearBlockUI();" oncomplete="prepHints();unblockUI();">
                                      <s:conversationId></s:conversationId>
                                      <img src="images/icon/#{(not empty contentItemBean.userContentItemFeedback.contentRating and contentItemBean.userContentItemFeedback.contentRating.value gt 0) ? 'rating-on.png' : 'rating-off.png'}"/>
                                      <f:param name="value" value="1"/>
                                  </a4j:commandLink>
                                  <a4j:commandLink action="#{contentItemBean.rateItem}" reRender="ratingPanel"
                                                   onclick="remHint();clearBlockUI();" oncomplete="prepHints();unblockUI();">
                                      <s:conversationId></s:conversationId>
                                      <img src="images/icon/#{(not empty contentItemBean.userContentItemFeedback.contentRating and contentItemBean.userContentItemFeedback.contentRating.value gt 1) ? 'rating-on.png' : 'rating-off.png'}"/>
                                      <f:param name="value" value="2"/>
                                  </a4j:commandLink>
                                  <a4j:commandLink action="#{contentItemBean.rateItem}" reRender="ratingPanel"
                                                   onclick="remHint();clearBlockUI();" oncomplete="prepHints();unblockUI();">
                                      <s:conversationId></s:conversationId>
                                      <img src="images/icon/#{(not empty contentItemBean.userContentItemFeedback.contentRating and contentItemBean.userContentItemFeedback.contentRating.value gt 2) ? 'rating-on.png' : 'rating-off.png'}"/>
                                      <f:param name="value" value="3"/>
                                  </a4j:commandLink>
                                  <a4j:commandLink action="#{contentItemBean.rateItem}" reRender="ratingPanel"
                                                   onclick="remHint();clearBlockUI();" oncomplete="prepHints();unblockUI();">
                                      <s:conversationId></s:conversationId>
                                      <img src="images/icon/#{(not empty contentItemBean.userContentItemFeedback.contentRating and contentItemBean.userContentItemFeedback.contentRating.value gt 3) ? 'rating-on.png' : 'rating-off.png'}"/>
                                      <f:param name="value" value="4"/>
                                  </a4j:commandLink>
                                  <a4j:commandLink action="#{contentItemBean.rateItem}" reRender="ratingPanel"
                                                   onclick="remHint();clearBlockUI();" oncomplete="prepHints();unblockUI();">
                                      <s:conversationId></s:conversationId>
                                      <img src="images/icon/#{(not empty contentItemBean.userContentItemFeedback.contentRating and contentItemBean.userContentItemFeedback.contentRating.value gt 4) ? 'rating-on.png' : 'rating-off.png'}"/>
                                      <f:param name="value" value="5"/>
                                  </a4j:commandLink>
                              </a4j:region>
                          </a4j:outputPanel>
                          <s:decorate template="/layout/fieldWithErrors.xhtml">
                              <ui:param name="controlId" value="feedback"/>
                          </s:decorate>
                      </div>
                      <div class="floatLeft">
                          <h:inputTextarea id="feedbackReview" value="#{contentItemBean.userContentItemFeedback.comment}" required="false"
                                           styleClass="textHint" title="Please enter your feedback"/>
                          <s:decorate template="/layout/fieldWithErrors.xhtml">
                              <ui:param name="controlId" value="feedbackReview"/>
                          </s:decorate>
                      </div>
                      <div class="floatLeft">
                          <div class="submitButton">
                              <a4j:commandLink action="#{contentItemBean.saveUserAssetFeedback}" status="uniBlock"
                                               reRender="currentRating, allFeedbackPanel" onclick="Richfaces.hideModalPanel('lsWrapperPanel');">
                                  <img src="images/buttons/submit.png" alt="" title="Submit"/>
                              </a4j:commandLink>
                          </div>
                      </div>
                  </div>

      Do you have any ideas on that?