1 2 Previous Next 20 Replies Latest reply on Jul 20, 2011 10:07 AM by blabno Go to original post
      • 15. Re: Watermark component
        dcpatton

        Does this work with 4.0.0.Final?

         

        If so, what are the steps other than adding <watermark:watermark value="abc"/> into the <h:inputText tag. And adding the jar file onto the classpath?

         

        Thanks,

         

        DCP

        • 16. Re: Watermark component
          jpapouse

          Hi,

           

          I've just looked at the source code of the AbstractWatermark class and taken noticed that the inherited attribute "title" is hidden. Can you explain how the (also inherited) attribute "converter" works? I've tried set it, but nothing happens.

           

          Thanks.

          • 17. Re: Watermark component
            blabno

            dcpatton: yes it does work with 4.x see demo sources on subversion http://anonsvn.jboss.org/repos/richfaces/sandbox/trunk/ui/watermark/.

             

            Jan,

            I forgot to implement converter support, sorry for that. I have fixed this, so grab a new snapshot.

            • 18. Re: Watermark component
              jpapouse

              Thank you for such a quick response, I'll try it.

               

              I've tried watermark component with some components from RichFaces and there are some problems:

               

              rich:select

              • When the attribute defaultLabel is set there is a collision. Firstly the value of default label is displayed but after clicking on the select and clicking out of the select, the watermark text is displayed
              • The popup list shown after clicking on the arrow button is empty. The user must click three times to see the non empty list.

               

              rich:calendar

              • When user selects a date and clean it with the button 'clean' in popup window the watermark text should be displayed but is not.

               

              Regards,

              Jan

              • 19. Re: Watermark component
                jpapouse

                You have changed the inheritance in the class AbstractWatermark from UIOutput to UIOutput and there appear some attributes like immediate, required, requiredMessage, submittedValue etc. Do they provide any functionality or should they be hidden?

                • 20. Re: Watermark component
                  blabno

                  Jan, thank you for your valuable feedback. I will investigate on rich:select and rich:calendar. As to switch to UIInput, it's because I RichFaces code that does the conversion requires UIInput.

                  Those new attributes should be hidden. I'll talk to guys from RF if that code shouldn't use EditableValueHolder instead.

                  Thanks for this one too.

                  1 2 Previous Next