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

[jsr344-experts] [1089-PassThroughAttributes] JSON dependency: OK?

From: Edward Burns <edward.burns_at_oracle.com>
Date: Tue, 26 Jun 2012 10:26:52 -0700

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

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

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

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

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

I need those of you that feel strongly that we should have JSON support
to voice their opinion here because requiring JSON means an additional
library dependency. This means that deploying Mojarra to Tomcat now
requires bundling a JSON impl. The same would be true with MyFaces,
they'd need to bundle in a JSON impl.

Please confirm that is ok.

Ed

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