0 Replies Latest reply on Nov 28, 2011 8:13 AM by ali kaymaz

    selectItems ıf condition

    ali kaymaz Newbie
      [My Link=>]Hi,
      I want to send message to twitter or facebook, mediaAccountList.resultList have all account,  but i want selectItems' mediaAccountList.resultList just have twitter account or facebook account (mediaAccountList.resultList.source.name = twitter) or label write just twitter or facebook account. it is possible?
      my code:

      `<a:outputPanel
          rendered="#recordDetailAction.selectedTask.entry.source.name == 'Twitter' }">
                                              <a:form ignoreDupResponses="true">
                                     
                                              <h:selectOneMenu id="search_cat_type4"
                                                      value="#{userService.media}" >
                          <s:selectItems value="#{mediaAccountList.resultList}" var="result" label="#{result.name}"
                          noSelectionLabel="Please make your choice.."/>
                          <s:convertEntity />
                           </h:selectOneMenu>
                          
                                                      <a:commandButton value="#{messages['send_response']}"
                                                              disabled="#{recordDetailAction.customerDisabled}"
                                                              action="#{userService.setTweet('')}"  reRender="twitForm"
                                                              styleClass="button"
                                                              oncomplete="Richfaces.showModalPanel('twitterEditor');"
                                                              rendered="#{(recordDetailAction.isOpen() or recordDetailAction.isReopen()) and !recordDetailAction.userChanged}"/>
                                              </a:form>
                                              <a:outputPanel id="messages2" ajaxRendered="true">
                                                      <rich:messages id="rmessages2" globalOnly="true"
                                                              errorClass="errormsg" infoClass="infomsg"
                                                              rendered="#{showGlobalMessages != 'false'}" />
                                                      <rich:effect event="onclick" type="Fade"
                                                              params="targetId:'rmessages',duration:2" />
                                              </a:outputPanel>
                                      </a:outputPanel>`