[ 
https://issues.jboss.org/browse/RF-8952?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Brian Leathem updated RF-8952:
------------------------------

    Description: 
It would be useful to generate html code snippets as Java functions that would 
be called anywhere from template or java code. For example, html table cells 
need sofisticated code for iteration while they should be generated inside row 
elements. The template like this:
{code}
<table>
  <tbody>
    <cdk:call name="renderRows"/>
    <cdk:function name="renderRow" >
       <tr>
          <cdk:call name="renderCells"/>
          <cdk:function name="renderCell">
             <td>....</td>
          </cdk:function>
       </tr>
    </cdk:function>
  </tbody>
</table>
{code}
lets to put row/cells rendering logic into Java code (renderRows/renderCells 
methods ) while template markup still follow desired html code.
P.S. It would be even more convenient to union both calls into single element 
with name/call attributes.

  was:
It would be useful to generate html code snippets as Java functions that would 
be called anywhere from template or java code. For example, html table cells 
need sofisticated code for iteration while they should be generated inside row 
elements. The template like this:
<table>
  <tbody>
    <cdk:call name="renderRows"/>
    <cdk:function name="renderRow" >
       <tr>
          <cdk:call name="renderCells"/>
          <cdk:function name="renderCell">
             <td>....</td>
          </cdk:function>
       </tr>
    </cdk:function>
  </tbody>
</table>
lets to put row/cells rendering logic into Java code (renderRows/renderCells 
methods ) while template markup still follow desired html code.
P.S. It would be even more convenient to union both calls into single element 
with name/call attributes.


    
> Add <cdk:function> element to template language.
> ------------------------------------------------
>
>                 Key: RF-8952
>                 URL: https://issues.jboss.org/browse/RF-8952
>             Project: RichFaces
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: cdk
>            Reporter: Alexander Smirnov
>            Assignee: Alexander Smirnov
>             Fix For: 4.Future
>
>   Original Estimate: 0 minutes
>  Remaining Estimate: 0 minutes
>
> It would be useful to generate html code snippets as Java functions that 
> would be called anywhere from template or java code. For example, html table 
> cells need sofisticated code for iteration while they should be generated 
> inside row elements. The template like this:
> {code}
> <table>
>   <tbody>
>     <cdk:call name="renderRows"/>
>     <cdk:function name="renderRow" >
>        <tr>
>           <cdk:call name="renderCells"/>
>           <cdk:function name="renderCell">
>              <td>....</td>
>           </cdk:function>
>        </tr>
>     </cdk:function>
>   </tbody>
> </table>
> {code}
> lets to put row/cells rendering logic into Java code (renderRows/renderCells 
> methods ) while template markup still follow desired html code.
> P.S. It would be even more convenient to union both calls into single element 
> with name/call attributes.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues

Reply via email to