1 Reply Latest reply on Sep 8, 2010 2:56 AM by Ilya Shaikovsky

    Workaround in 3.3.3 Final for RF-4888

    Sascha Janz Master

      i got the problem  described in RF-4888

       

      https://jira.jboss.org/browse/RF-4888

       

      is there a workaround for RF 3.3.3 final?

        • 1. Re: Workaround in 3.3.3 Final for RF-4888
          Ilya Shaikovsky Master

          Yes the workaround is the same as described at http://in.relation.to/Bloggers/RichFacesCalendarAndScrollableExtendedTables. I just still not put intoknowledgebase but already achieved success in displaying validation errors in tooltip in EDT using folowwing code:

           

           

          <script>
          function showShared(msgElement, event){
          #{rich:element('sharedTT')}.innerHTML =msgElement.innerHTML;
          jQuery.each(jQuery('.sharedTT .rich-message-marker'), function(){this.remove()})
          #{rich:component('tt')}.show(event);
          }
          </script>
          <a4j:outputPanel layout="block">
          <rich:toolTip attached="false" id="tt" showEvent="dummy">
          <h:panelGroup layout="div" id="sharedTT" styleClass="sharedTT">
          asdasd
          </h:panelGroup>
          </rich:toolTip>
          </a4j:outputPanel>
          <h:form>
          <h:panelGrid columns="2" columnClasses=",top">
          <rich:dataTable value="#{dataTableScrollerBean.allCars}" var="car"
          width="350px" columnClasses=",columns,columns,columns" rows="15"
          id="table" rowKeyVar="row">
          <rich:column>
          <f:facet name="header">
          <h:outputText value="Row"></h:outputText>
          </f:facet>
          <h:outputText value="#{row+1}"></h:outputText>
          </rich:column>
          <rich:column>
          <f:facet name="header">
          <h:outputText value="Make" />
          </f:facet>
          <h:outputText value="#{car.make}" />
          </rich:column>
          <rich:column>
          <f:facet name="header">
          <h:outputText value="Model"/>
          </f:facet>
          <h:outputText value="#{car.model}" />
          </rich:column>
          <rich:column>
          <f:facet name="header">
          <h:outputText value="Price" />
          </f:facet>
          <rich:inplaceInput layout="block" value="#{car.price}"
          converterMessage="Price value should be integer. Price at row #{row+1} can't be changed."
          id="inplace" required="true"
          requiredMessage="Price at row #{row+1} wasn't filled. Value can't be changed."
          changedHoverClass="hover" viewHoverClass="hover"
          viewClass="inplace" changedClass="inplace"
          selectOnEdit="true" editEvent="ondblclick">
          <a4j:support event="onviewactivated" reRender="table, messages"
          />
          </rich:inplaceInput>
          </rich:column>
          <rich:column>
          <rich:message for="inplace" id="msg">
          <f:facet name="errorMarker">
          <h:graphicImage id="errorImg" value="/images/icons/delete.gif" onmouseover="showShared(#{rich:element('msg')}, event);" onmouseout="#{rich:component('tt')}.hide(event);"/>
          </f:facet>
          </rich:message>
          </rich:column>
          <f:facet name="footer">
          <rich:datascroller ajaxSingle="false"/>
          </f:facet>
          </rich:dataTable>
           <script>
           function showShared(msgElement, event){
           #{rich:element('sharedTT')}.innerHTML =msgElement.innerHTML;
           jQuery.each(jQuery('.sharedTT .rich-message-marker'), function(){this.remove()})
           #{rich:component('tt')}.show(event);
           }
           </script>
           <a4j:outputPanel layout="block">
           <rich:toolTip attached="false" id="tt" showEvent="dummy">
           <h:panelGroup layout="div" id="sharedTT" styleClass="sharedTT">
           
           </h:panelGroup>
           </rich:toolTip>
           </a4j:outputPanel>
           <h:form> 
           <h:panelGrid columns="2" columnClasses=",top">
           <rich:dataTable value="#{dataTableScrollerBean.allCars}" var="car"
           width="350px" columnClasses=",columns,columns,columns" rows="15"
           id="table" rowKeyVar="row">
           <rich:column>
           <f:facet name="header">
           <h:outputText value="Row"></h:outputText>
           </f:facet>
           <h:outputText value="#{row+1}"></h:outputText>
           </rich:column>
           <rich:column>
           <f:facet name="header">
           <h:outputText value="Make" />
           </f:facet>
           <h:outputText value="#{car.make}" />
           </rich:column>
           <rich:column>
           <f:facet name="header">
           <h:outputText value="Model"/> 
           </f:facet>
           <h:outputText value="#{car.model}" />
           </rich:column>
           <rich:column>
           <f:facet name="header">
           <h:outputText value="Price" />
           </f:facet>
           <rich:inplaceInput layout="block" value="#{car.price}"
           converterMessage="Price value should be integer. Price at row #{row+1} can't be changed."
           id="inplace" required="true"
           requiredMessage="Price at row #{row+1} wasn't filled. Value can't be changed."
           changedHoverClass="hover" viewHoverClass="hover"
           viewClass="inplace" changedClass="inplace"
           selectOnEdit="true" editEvent="ondblclick">
           
           <a4j:support event="onviewactivated" reRender="table, messages"
           />
           
           </rich:inplaceInput>
           </rich:column>
           <rich:column>
           <rich:message for="inplace" id="msg">
           <f:facet name="errorMarker">
           <h:graphicImage id="errorImg" value="/images/icons/delete.gif" onmouseover="showShared(#{rich:element('msg')}, event);" onmouseout="#{rich:component('tt')}.hide(event);"/>
           </f:facet> 
           </rich:message>
           </rich:column>
           <f:facet name="footer">
           <rich:datascroller ajaxSingle="false"/>
           </f:facet>
           </rich:dataTable>