3 Replies Latest reply on Jan 21, 2008 1:28 PM by nbelaevski

    RichFaces CDK question

    phantom

      Good day,

      I'm using RF CDK for my own component creation. CDK has very usefull possibility to automatically create renderer from jspx template. Please tell me, how I can insert in rendering process rendering of another component?

      In more detailes:
      I'm planning to create component for voting: in center number with number of votes and on the left and on the right ajax-enabled links "+" and "-". I wander to make this as single component, for instance:

      <i:vote object="#{object}"/> //number of votes obtained from 'object' and displayed
      

      Can I add child links "+" and "-" as a4j:commandLink in jspx template for my own component? How I can do this?

      And more general question:
      Is't possible to find somewhere documentation for all possible tags in jspx template? Now, I'm using 'grep' in sources:)

      P.S. Please, move this question to approapriate forum if this one not for such questions:)

        • 1. Re: RichFaces CDK question
          nbelaevski

          No, you cannot create aggregating component using CDK in such a way. You can put a4j:commandLink renderers into work using delegation pattern, however that neither can't be described using CDK tags.

          There is no reference for CDK tags yet; grepping sources is the most authoritative way for obtaining information on CDK tags for now.

          • 2. Re: RichFaces CDK question
            phantom

            I wrote some documentation for CDK template tags.
            http://dblogs.ru/2008/01/21/richfaces-cdk-template-documentation/
            (Sorry for russian in post:))
            Please correct me if I somewhere wrong... I think this information would be usefull not only for me:)

            • 3. Re: RichFaces CDK question
              nbelaevski

              Reference is cool, thank you!

              <ajax:update> tag is used for addition of standalone HTML elements to AJAX update. E.g.:

              <f:root>
               ...
               <div id="#{clientId}">....</div>
              
               <ajax:update>#{clientId}AdditionalDiv, #{clientId}HelperDiv, ...</ajax:update>
              
               <div id="#{clientId}AdditionalDiv">....</div>
               <div id="#{clientId}HelperDiv">....</div>
              </f:root>


              By default only the element that's id == client id is updated during AJAX request.