Is it possible to run JSF (EL) Validator against a Stream?https://www.eclipse.org/forums/index.php/mv/msg/150974/474838/#msg_474838
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?

Thanks in advanced!

Best regards,
Tanyu]]>Tanyu Trifonov2007-07-11T14:30:01-00:00Re: Is it possible to run JSF (EL) Validator against a Stream?https://www.eclipse.org/forums/index.php/mv/msg/150974/474840/#msg_474840
> (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.]]>Cameron Bateman2007-07-11T23:59:19-00:00Re: Is it possible to run JSF (EL) Validator against a Stream?https://www.eclipse.org/forums/index.php/mv/msg/150974/613086/#msg_613086
> (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.]]>Cameron Bateman2007-07-11T23:59:19-00:00Re: Is it possible to run JSF (EL) Validator against a Stream?https://www.eclipse.org/forums/index.php/mv/msg/150974/474845/#msg_474845
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.]]>Tanyu Trifonov2007-07-12T07:48:22-00:00Re: Is it possible to run JSF (EL) Validator against a Stream?https://www.eclipse.org/forums/index.php/mv/msg/150974/613088/#msg_613088
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.]]>Tanyu Trifonov2007-07-12T07:48:22-00:00Re: Is it possible to run JSF (EL) Validator against a Stream?https://www.eclipse.org/forums/index.php/mv/msg/150974/474851/#msg_474851
> 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]]>Cameron Bateman2007-07-13T18:27:14-00:00Re: Is it possible to run JSF (EL) Validator against a Stream?https://www.eclipse.org/forums/index.php/mv/msg/150974/613091/#msg_613091
> 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.