3 Replies Latest reply on May 13, 2009 7:02 PM by Nick Belaevski

    rich:colorPicker bug

    Rade Martinović Newbie

      When colorPicker component gets rendered via ajax response it does not initialize correctly, wich leads to improper behaviour in Opera and Firefox.
      In Opera circle wich shows currently selected color gets stucked at (0,0,0). In Firefox the whole components gets stucked at (0,0,0).
      In IE7/8 it works correctly.

      Here's the source code:

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <ui:composition xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich">
      <body>
      <f:view>
      <rich:tabPanel switchType="ajax" rendered="true">
      <rich:tab rendered="true" switchType="ajax" disabled="false">go to the other one -> </rich:tab>
      <rich:tab rendered="true" switchType="ajax" disabled="false">
      <h:form id="adas">
      <rich:colorPicker id="cp" value="#FFFFFF"></rich:colorPicker>
      <a4j:commandButton value="reRender" reRender="cp"></a4j:commandButton>
      </h:form>
      </rich:tab>
      </rich:tabPanel>
      </f:view>
      </body></ui:composition>


      Form is there because we use it like this in our application.