3 Replies Latest reply on May 14, 2008 6:45 AM by david.spark

    CDK help needed. How to create component with a4j:support fu

      I'm trying to create a custom component for selecting times. It consists of 2 HTML Selct menus (one for hours and one for minutes). What I want is to be able to add an a4j:support tag within the component so that it rerenders another component for the onchange event.
      The problem is that when I add the a4j:support tag like so:

      <my:timeSelector value="#{eventStaff.endTime}">
       <s:convertDateTime pattern="HH:mm"/>
       <a:support event="onchange" reRender="hours"/>
      </my:timeSelector>
      it doesn't work. When I look at the generated HTML it does not include any onChange attributes so I presume that I need to do something when creating the component... my question is what?