|
|
|
Re: Is it possible to run JSF (EL) Validator against a Stream? [message #474851 is a reply to message #474845] |
Fri, 13 July 2007 14:27  |
Eclipse User |
|
|
|
> It seems this is what I need. Thanks for your answer. But I noticed that
> ELExpressionValidator was internal. What are your plans for the future
> about it? Will you make it public?
We had plans to do so in 2.0 but had to back off for lack of time
(creating public API has a cost because it increases the maintenance
requirements). If you attach your requirements to the bug I mentioned in
the previous post, this will help us to prioritize the requirements in
this area.
--Cam
|
|
|
Re: Is it possible to run JSF (EL) Validator against a Stream? [message #613086 is a reply to message #474838] |
Wed, 11 July 2007 19:59  |
Eclipse User |
|
|
|
> I'm writing a plugin. I have a stream and I want to check it with the JSF
> (Expression Language) Validator to see if it valid JSF. How can I do that?
You have several options depending on what you want to do. If all you
want to do is a syntax check, then have a look at how
ELExpressionValidator.validateXMLNode() makes use of the JSPELParser.
This will give an AST if successful (valid) and an error otherwise
(invalid).
If you want to do a semantic analysis, you currently need to provide the
file context within which your JSF EL is embedded. You can look at
AbstractDataModelVariableFactory.createValueExpression() to see how to do
this.
We currently have this enhancement request:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=151703 tracking requirements
to support JSF EL more widely. If you have specific requirements in this
area that you would like to see, please post them to that bug so we can
get a more specific idea of what people need in this area.
|
|
|
Re: Is it possible to run JSF (EL) Validator against a Stream? [message #613088 is a reply to message #474840] |
Thu, 12 July 2007 03:48  |
Eclipse User |
|
|
|
Hi Cameron,
It seems this is what I need. Thanks for your answer. But I noticed that
ELExpressionValidator was internal. What are your plans for the future
about it? Will you make it public?
Best regards,
Tanyu
Cameron Bateman wrote:
>> I'm writing a plugin. I have a stream and I want to check it with the JSF
>> (Expression Language) Validator to see if it valid JSF. How can I do that?
> You have several options depending on what you want to do. If all you
> want to do is a syntax check, then have a look at how
> ELExpressionValidator.validateXMLNode() makes use of the JSPELParser.
> This will give an AST if successful (valid) and an error otherwise
> (invalid).
> If you want to do a semantic analysis, you currently need to provide the
> file context within which your JSF EL is embedded. You can look at
> AbstractDataModelVariableFactory.createValueExpression() to see how to do
> this.
> We currently have this enhancement request:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=151703 tracking requirements
> to support JSF EL more widely. If you have specific requirements in this
> area that you would like to see, please post them to that bug so we can
> get a more specific idea of what people need in this area.
|
|
|
Re: Is it possible to run JSF (EL) Validator against a Stream? [message #613091 is a reply to message #474845] |
Fri, 13 July 2007 14:27  |
Eclipse User |
|
|
|
> It seems this is what I need. Thanks for your answer. But I noticed that
> ELExpressionValidator was internal. What are your plans for the future
> about it? Will you make it public?
We had plans to do so in 2.0 but had to back off for lack of time
(creating public API has a cost because it increases the maintenance
requirements). If you attach your requirements to the bug I mentioned in
the previous post, this will help us to prioritize the requirements in
this area.
--Cam
|
|
|
Powered by
FUDForum. Page generated in 0.03871 seconds