9 Replies Latest reply on Jun 11, 2008 11:34 AM by lcurros

    picklist problem

      Hello,
      I am working with JBOSS SEAM 2.0.1GA an with Richfaces 3.2.0.GA.

      This is not a funcionality problem, is only a view problem using firefox 2.0
      Maybe a css problem.
      The problem appears when I use a picklist in combination (in the same page) with other fields like inputText or inputTextArea. If i write something in this fields ant I try to select this text I can't do it. This doesn't happen in I.E.7

      Any idea?Can anybody confirm this problem?Can anybody solve this?

      Thanks in advance!!

        • 1. Re: picklist problem

          This problem not only happens with inputTextArea. This also happens with the rest of components (everyone) in the same ui:define (body).

          The other parts of template can be selected (footer, header)


          Anybody with the same problem?

          • 2. Re: picklist problem


            I couldn't resolve this problem.
            Does anyone experienced this?
            Could be this a css bug?

            • 3. Re: picklist problem


              I think I found the problem.
              The picklist.xcss used in richfaces-ui.jar overwrite body class. This is the name of class that I am using in my template for the body.

              .body {
               -moz-user-select: none;
              }


              Why?it doesn't have sense. Is this an error?

              • 4. Re: picklist problem
                ilya_shaikovsky

                This not reproducible for me under RF 3.2.1 and FireFox 2.0.0.14 :/

                • 5. Re: picklist problem
                  ilya_shaikovsky

                  probably you have styleClass="body" in your own markup... It's the only version of such behaviour.

                  Post your snippets.

                  • 6. Re: picklist problem


                    I have one div with class body, but I would like not to change it.
                    Here is my xhtml template.

                    <body>
                    
                     <ui:include src="menu.xhtml">
                     <ui:param name="projectName" value="gestioncntg"/>
                     </ui:include>
                    
                     <div class="body" style="-moz-user-select:normal;">
                     <ui:insert name="body"/>
                     </div>
                    
                     <div class="footer">
                     <h:outputText value="#{messages['cntg.footer.tittle']}"/>
                     </div>
                    
                    </body>




                    • 7. Re: picklist problem

                      Sorry, my original xhtml doesn't have:

                      style="-moz-user-select:normal;"


                      I tryed to override property but It didn't work.
                      How can I do it?

                      • 8. Re: picklist problem
                        ilya_shaikovsky

                        so you have two ways :)

                        1) rename this class
                        2) wait for a fix ;)

                        • 9. Re: picklist problem


                          Ok, thanks for your answer.

                          I think that renaming will be faster ;).
                          But, could be any way to override this style propertie?Maybe is a stupid question, but my knowledge of css and styling is quite poor