I am looking at two APIs:
http://java.sun.com/javaee/javaserverfaces/1.2/docs/api/index.html?javax
/faces/application/Application.html
http://java.sun.com/javaee/5/docs/api/
Looking at the documentation I need to go from:
Visit visit = new Visit();
facesContext.getApplication().createValueBinding("#{" +
Constants.VISIT_KEY_SCOPE + Constants.VISIT_KEY +
"}").setValue(facesContext, visit);
To the JSF 1.2 requirement:
ELContext elcontext = facesContext.getELContext();
facesContext.getApplication().getExpressionFactory().createMethodExpress
ion(elcontext, "#{" + Constants.VISIT_KEY_SCOPE + Constants.VISIT_KEY +
"}", String.class, new Class<?>[0]);
The createMethodExpression method has be stumped at the moment.
How do I get my visit object into the value of the expression (second
parameter in createMethodExpression)?
Thanks,
--Todd
-----------------------------------------
NOTICE: This email message is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized use, disclosure or distribution is
prohibited. If you are not the intended recipient, please contact
the sender by reply email and destroy all copies of the original
message.