Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JavaServer Faces » Is it possible to run JSF (EL) Validator against a Stream?
Is it possible to run JSF (EL) Validator against a Stream? [message #474838] Wed, 11 July 2007 10:30 Go to next message
Tanyu Trifonov is currently offline Tanyu Trifonov
Messages: 73
Registered: July 2009
Member
Hi,

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
Re: Is it possible to run JSF (EL) Validator against a Stream? [message #474840 is a reply to message #474838] Wed, 11 July 2007 19:59 Go to previous messageGo to next message
Cameron Bateman is currently offline Cameron Bateman
Messages: 480
Registered: July 2009
Senior Member
> 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 #474845 is a reply to message #474840] Thu, 12 July 2007 03:48 Go to previous messageGo to next message
Tanyu Trifonov is currently offline Tanyu Trifonov
Messages: 73
Registered: July 2009
Member
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 #474851 is a reply to message #474845] Fri, 13 July 2007 14:27 Go to previous message
Cameron Bateman is currently offline Cameron Bateman
Messages: 480
Registered: July 2009
Senior Member
> 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 Go to previous message
Cameron Bateman is currently offline Cameron Bateman
Messages: 480
Registered: July 2009
Senior Member
> 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 Go to previous message
Tanyu Trifonov is currently offline Tanyu Trifonov
Messages: 73
Registered: July 2009
Member
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 Go to previous message
Cameron Bateman is currently offline Cameron Bateman
Messages: 480
Registered: July 2009
Senior Member
> 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
Previous Topic:JSFLibraries and PluginProvidedJsfLibraries
Next Topic:JSF message bundle auto-complete with localization?
Goto Forum:
  


Current Time: Fri Apr 18 19:26:16 EDT 2014

Powered by FUDForum. Page generated in 0.01807 seconds