5 Replies Latest reply on Mar 16, 2006 8:06 AM by xiangya

    faclets popup

    udo.krass

      Hi,

      i have seen the interesting popups in the seam booking example. I tried to open xhtml-faclets pages as a popup. It doesnt work with <a href="#" onClick="window.open('popup_test.xhtml','exp','width=752,height=500,scrollbars=yes');">What is JBoss Seam?, because the popups aren't rendered.
      Anybody knows how i can open a rendered popup?
      THANX!

        • 1. Re: faclets popup
          udo.krass

          got it:
          <a href="#" onClick="window.open('popup_test.seam','exp','width=752,height=500,scrollbars=yes');">What is JBoss Seam?

          :)

          • 2. Re: faclets popup
            udo.krass

            I will be happy if somebody can tell me to do this with the commandLink tag...

            • 3. Re: faclets popup
              gavin.king

              Wouldn't you rather use an outputLink tag for that?

              • 4. Re: faclets popup
                udo.krass

                Thats what i want:

                I have a datatable, e.g. the hotel-datatable and when i click on a hotelname, a popup will display all the hotelinformations. The popup is a new window without all the toolbar-stuff from the browser (as your popups in the bookings example). I've read that this is only supported by javascript.
                In my mind it will be more comfortable.
                So i need the index of the datatable to display in the popup the correct hotel.

                A outputLink will not work well. A simple a-tag will not work, because it haven't the index.

                I try to build that popup-stuff...

                • 5. Re: faclets popup
                  xiangya

                  Hello,

                  I do a test for seam-booking example, like this:

                  <h:commandLink action="#{hotelBooking.selectHotel}" target="_blank">View Hotel</h:commandLink>

                  just add target attribute for h:commandLink tag,then I get a blank browser window, and it seems to works fine.

                  I don't know if that satisfy your need.

                  Regards,

                  qinxian