4 Replies Latest reply on Jan 28, 2009 9:54 AM by nbelaevski

    Richfaces 3.3 rich:effect   --  Newbe question

    anthonyna

      Hi I am trying to use the rich:effect to highlight a column or column header in a datatable.

      I have a input text difined as follows:
      <s:decorate template="layout/display.xhtml">
      <ui:define name="label">Service</ui:define>
      <h:inputText id="Service" value="#{customMckKbSearchList.customMckKbSearch.service}">
      <a4j:support
      event="onkeyup"
      eventsQueue="foo1"
      action="#{pageController.initDataScroller}"
      reRender="customMckKbSearchList,totalCount"/>
      <rich:effect event="oncomplete" type="Highlight" params="duration:1.8" />
      <rich:effect event="oncomplete" for="serviceHigh" type="Appear" params="delay:3.0,duration:1.1"/>

      </h:inputText>
      </s:decorate>

      Not sure why -- but on the richface demo page the source for the highlight effect has 2 rich effect statments not sure if I need both ???

      The datatable is deifned as so:

      <rich:dataTable id="customMckKbSearchList"
      var="customMckKbSearch"
      value="#{customMckKbSearchList.resultList}"
      onRowMouseOver="this.style.backgroundColor='#F1F1F1'"
      onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'"
      rendered="#{not empty customMckKbSearchList.resultList}"
      onRowDblClick="location.href='/kbSearchR/CustomMckKbSearch.seam?customMckKbSearchKnowledgeRef=#{customMckKbSearch.knowledgeRef}&displayPage=2&cid=#{conversation.id}'"
      rows="20">

      <rich:column sortBy="#{customMckKbSearch.service}" id="ServiceId">
      <f:facet name="header">

      <h:outputText id="ServiceLabel" value="Service" ></h:outputText>
      </f:facet>

      <h:outputText value="#{customMckKbSearch.service}" style="cursor: hand"/>
      </rich:column>

      I would like for the following to happen:

      When user finsihs typeing I would like to hight the column or header of the column to indicate that is the search parameter entered

      Thanks in advance