[richfaces-issues] [JBoss JIRA] (RF-12260) Support for cdk:renderFacet

Lukáš Fryč (JIRA) jira-events at lists.jboss.org
Mon May 28 11:44:17 EDT 2012


    [ https://issues.jboss.org/browse/RF-12260?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12696556#comment-12696556 ] 

Lukáš Fryč commented on RF-12260:
---------------------------------

Okay, I have added support for

{code:java}
RenderKitUtils.renderFacet(String facetName, FacesContext context, UIComponent component)
{code}

the problem is how to call  this method:

1. *EL expressions* are expecting return type:

{code}
#{renderFacet('facetName', facesContext, component)}
{code}

leads to following render code (note that the {{renderFacet}} method is void)

{code:java}
Object text = renderFacet("facetName",component,facesContext);
if (text != null) {
    responseWriter.writeText(text, null); 
}
{code}


2. *cdk:call* doesn't handle quotes nicely:

{code:xml}
<cdk:call expression="renderFacet(&quot;renderFacet&quot;, facesContext, component)" />
{code}


                
> Support for cdk:renderFacet
> ---------------------------
>
>                 Key: RF-12260
>                 URL: https://issues.jboss.org/browse/RF-12260
>             Project: RichFaces
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: cdk
>    Affects Versions: 4.2.0.Final
>            Reporter: Brian Leathem
>            Assignee: Lukáš Fryč
>            Priority: Minor
>             Fix For: 4.3.0.Milestone1
>
>
> Support to render the facet content directly, similarly to {{cdk:body}}

--
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

       



More information about the richfaces-issues mailing list