6 Replies Latest reply on Apr 28, 2011 8:27 AM by Abdulkerim İnanmış

    rich:message does not display in popup panel?

    Abdulkerim İnanmış Novice

      Where have  I done wrong? My code is below.      

      <rich:popupPanel id="detaySec" modal="true" resizeable="true" minWidth="200"   domElementAttachment="form"

                          onmaskclick="#{rich:component('detaySec')}.hide()">

       

                          <f:facet name="controls">

                              <h:outputLink value="#"

                                  onclick="#{rich:component('detaySec')}.hide(); return false;">

                                      X

                                  </h:outputLink>

                             </f:facet>

                                  <h:panelGrid>

                                      <h:panelGroup  id="detayId">

                                          <h:selectOneRadio id="secimId" value="#{provizyonBean.detaySecim}"  required="true" >

                                              <f:selectItem itemLabel="İşlem Detayı Girin" itemValue="1" />

                                              <f:selectItem itemLabel="İşlemin ilişkili olduğu ameliyatı seçiniz" itemValue="2" />

                                              <a4j:ajax event="change" execute="@this" render="tamam" />

                                          </h:selectOneRadio>   

                                          <rich:message for="secimId"/>

                                      </h:panelGroup>

                                      <h:panelGroup id="tamam">

                                          <h:commandButton value="Tamam" rendered="#{provizyonBean.detaySecim(0)}">

                                              <f:ajax execute="detayId" render="detayId"></f:ajax>

                                          </h:commandButton>

                                          <h:commandButton value="Tamam" rendered="#{provizyonBean.detaySecim(1)}">

                                              <rich:componentControl target="islemDetay" operation="show" />

       

                                          </h:commandButton>

                                          <h:commandButton value="Tamam" rendered="#{provizyonBean.detaySecim(2)}">

                                              <rich:componentControl target="iliskiliAmeliyat" operation="show" />

                                          </h:commandButton>

                                          <h:commandButton value="Kapat" onclick="#{rich:component('detaySec')}.hide(); return false;"

                                               immediate="true" />

                                      </h:panelGroup>

       

                                  </h:panelGrid>

                         </rich:popupPanel>

        • 1. rich:message does not display in popup panel?
          iabughosh Master

          i think you are missing h:form around your rich:popupPanel.

          • 3. rich:message does not display in popup panel?
            lukas.p Newbie

            Did you also try rich:messages? I haven't tried rich:message in a popup panel, but rich:messages was working for me:

             

            <rich:popupPanel modal="true" id="errorMessage" minWidth="350"

                    maxWidth="450" zindex="2000"

                    show="#{boxMessages.unboundMessagesSize > 0}">

                    <f:facet name="header">

                        <h:panelGroup>

                            <h:outputText value="#{pageMessages.messageHeader}"></h:outputText>

                        </h:panelGroup>

                    </f:facet>

                    <f:facet name="controls">

                        <h:panelGroup>

                            <h:form>

                                <h:commandLink action="hide" immediate="true"

                                    onclick="#{rich:component('errorMessage')}.hide(); return false;">

                                        X

                                    </h:commandLink>

                            </h:form>

                        </h:panelGroup>

                    </f:facet>

             

                    <h:panelGrid columns="2" cellpadding="2" cellspacing="4"

                        rendered="#{! empty facesContext.maximumSeverity}"

                        onmaskclick="#{rich:component('popup')}.hide()">

                        <h:graphicImage value="#{pageMessages.messageImage}" />

                        <rich:messages layout="table" globalOnly="true"

                            showSummary="true" />

             

                    </h:panelGrid>

                    <h:panelGroup style="display:block; text-align:center">

             

                        <a4j:commandButton style="width:80px"

                            onclick="#{rich:component('errorMessage')}.hide(); return false;"

                            value="OK"></a4j:commandButton>

             

                    </h:panelGroup>

             

                </rich:popupPanel>

             

            Good luck!

            • 4. rich:message does not display in popup panel?
              Abdulkerim İnanmış Novice

              When I used rich:messages, the message displayed  ,bu it is not in popup

              • 5. rich:message does not display in popup panel?
                lukas.p Newbie

                What do you mean exactly? Do you mean rich:messages behaves the same as rich:message inside your popup panel? So it just does not get rendered?

                • 6. rich:message does not display in popup panel?
                  Abdulkerim İnanmış Novice

                  If I used rich:message , I could not take any validation messages in anywhere. If I used rich:message I took validation messages in main page(I called popup here), not in the popup panel.