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"
      <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>

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