jsr344-experts@javaserverfaces-spec-public.java.net

[jsr344-experts] [1089-PassThroughAttributes] conditionally closed

From: Edward Burns <edward.burns_at_oracle.com>
Date: Mon, 25 Jun 2012 20:34:02 -0700

Hello Experts,

I'm ashamed this has taken so long, but at least we have something now
that feels pretty solid.

Take a look at tonight's nightly snapshot. With respect to this issue,
it has, specified and implemented:

* f:attributes

* f:passthroughAttribute

* f:passthroughAttributes

* namespaced passthrough attributes

* An EL function to adapt JSON to a Map<String, Object>, like this:

    <p>
        
    <h:outputText value="json from literal">
        
        <f:passThroughAttributes value="#{p:jsonToMap('{ a : { b : { c : { d : e, f : g }, h : i, j : { k : { l : { m : n } } } } } }')}" />
        
    </h:outputText>
        
    </p>

    <p>
        
    <h:outputText value="json from EL">
        
        <f:passThroughAttributes value="#{p:jsonToMap(bean.json)}" />
        
    </h:outputText>
        
    </p>

I'm open to adding additional EL functions if we want to support other
ways to slurp JSON around.

Anyone?

Ed

-- 
| edward.burns_at_oracle.com | office: +1 407 458 0017
| homepage:               | http://ridingthecrest.com/
| 18 Business days til JSF 2.2 Public Review to EG