Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JavaServer Faces » content assist/validation for custom variableResolver and propertyResolver
content assist/validation for custom variableResolver and propertyResolver [message #473966] Mon, 12 March 2007 17:17 Go to next message
Xiaonan Jiang is currently offline Xiaonan JiangFriend
Messages: 14
Registered: July 2009
Junior Member
If a user adds a variableResolver or propertyResolver in the facesconfig
file, is it possible for him to provide the code for the content assist and
validation for his custom variableResolver and propertyResolver?
Or, how are going to support the content assist/validation for the custom
variableResolver/propertyResolver?
Thanks.
Re: content assist/validation for custom variableResolver and propertyResolver [message #473967 is a reply to message #473966] Mon, 12 March 2007 18:03 Go to previous messageGo to next message
Cameron Bateman is currently offline Cameron BatemanFriend
Messages: 481
Registered: July 2009
Senior Member
You can use the org.eclipse.jst.jsf.core.propertyresolver and
variableresolver extension points to register your own design time
overrides. You can then call
DesignTimeApplicationManager.setPropertyResolverProvider or
setVariableResolverProvider for a particular IProject where you want to
use this override.

You can find information on this in the JSF Developer Guide.


--Cam


Xiaonan Jiang wrote:

> If a user adds a variableResolver or propertyResolver in the facesconfig
> file, is it possible for him to provide the code for the content assist and
> validation for his custom variableResolver and propertyResolver?
> Or, how are going to support the content assist/validation for the custom
> variableResolver/propertyResolver?
> Thanks.
Re: content assist/validation for custom variableResolver and propertyResolver [message #473968 is a reply to message #473967] Tue, 13 March 2007 15:23 Go to previous messageGo to next message
Xiaonan Jiang is currently offline Xiaonan JiangFriend
Messages: 14
Registered: July 2009
Junior Member
Could you give the link to the "JSF Developer Guide"?
Thanks.


"Cameron Bateman" <cameron.bateman@oracle.com> wrote in message
news:0391faa8aad5041b3f051e39fb1a6b0c$1@www.eclipse.org...
> You can use the org.eclipse.jst.jsf.core.propertyresolver and
> variableresolver extension points to register your own design time
> overrides. You can then call
> DesignTimeApplicationManager.setPropertyResolverProvider or
> setVariableResolverProvider for a particular IProject where you want to
> use this override.
> You can find information on this in the JSF Developer Guide.
>
>
> --Cam
>
>
> Xiaonan Jiang wrote:
>
>> If a user adds a variableResolver or propertyResolver in the facesconfig
>> file, is it possible for him to provide the code for the content assist
>> and validation for his custom variableResolver and propertyResolver?
>> Or, how are going to support the content assist/validation for the custom
>> variableResolver/propertyResolver?
>> Thanks.
>
>
Re: content assist/validation for custom variableResolver and propertyResolver [message #473969 is a reply to message #473968] Tue, 13 March 2007 17:27 Go to previous messageGo to next message
Cameron Bateman is currently offline Cameron BatemanFriend
Messages: 481
Registered: July 2009
Senior Member
It is in the built in help system if you the JSF feature installed. After
unzipping the JSF build into Eclipse, try Help->Help Contents.


--Cam
Re: content assist/validation for custom variableResolver and propertyResolver [message #473995 is a reply to message #473969] Tue, 27 March 2007 19:38 Go to previous messageGo to next message
Xiaonan Jiang is currently offline Xiaonan JiangFriend
Messages: 14
Registered: July 2009
Junior Member
Hi, Cameron,

For an expression e.g., "A.b.c", when generating the symbols for "c",
sometime we need to know the information in the symbol "A".
Is it possible to add an API getBase() for ISymbol interface?

Thanks.
- Xiaonan

"Cameron Bateman" <cameron.bateman@oracle.com> wrote in message
news:f8234cde00320b9b243e8d0a2764b501$1@www.eclipse.org...
> It is in the built in help system if you the JSF feature installed. After
> unzipping the JSF build into Eclipse, try Help->Help Contents.
>
>
> --Cam
>
Re: content assist/validation for custom variableResolver and propertyResolver [message #473998 is a reply to message #473995] Tue, 27 March 2007 22:52 Go to previous messageGo to next message
Cameron Bateman is currently offline Cameron BatemanFriend
Messages: 481
Registered: July 2009
Senior Member
It is possible, although I'm not sure ISymbol is the correct place to do
it since this places the burden on all producers of symbols to have this
information. Can you give a little more information about the specific
use case so that I can form a canonical understanding of the use case?
What is it about 'c' that knowing about b isn't enough? How does your
runtime property resolver solve this?


--Cam

Xiaonan Jiang wrote:

> Hi, Cameron,

> For an expression e.g., "A.b.c", when generating the symbols for "c",
> sometime we need to know the information in the symbol "A".
> Is it possible to add an API getBase() for ISymbol interface?

> Thanks.
> - Xiaonan

> "Cameron Bateman" <cameron.bateman@oracle.com> wrote in message
> news:f8234cde00320b9b243e8d0a2764b501$1@www.eclipse.org...
>> It is in the built in help system if you the JSF feature installed. After
>> unzipping the JSF build into Eclipse, try Help->Help Contents.
>>
>>
>> --Cam
>>
Re: content assist/validation for custom variableResolver and propertyResolver [message #474018 is a reply to message #473998] Wed, 28 March 2007 15:50 Go to previous messageGo to next message
Xiaonan Jiang is currently offline Xiaonan JiangFriend
Messages: 14
Registered: July 2009
Junior Member
See an example in the following URL:
http://publib.boulder.ibm.com/infocenter/wsadhelp/v5r1m2/ind ex.jsp?topic=/com.ibm.etools.jsf.doc/topics/tjsflists.html

For an expression e.g., "selectitems.myBean.label.value.toArray", both
"label" and "value" are the properties of the bean "myBean". So to get the
symbols for "value" will need to know "myBean".
In Runtime, the property resolver will have a pointer to its base (parent)
property resolver.

Thanks.
- Xiaonan

"Cameron Bateman" <cameron.bateman@oracle.com> wrote in message
news:bc435ee829c68b0647e8ba4713f5c7c3$1@www.eclipse.org...
> It is possible, although I'm not sure ISymbol is the correct place to do
> it since this places the burden on all producers of symbols to have this
> information. Can you give a little more information about the specific
> use case so that I can form a canonical understanding of the use case?
> What is it about 'c' that knowing about b isn't enough? How does your
> runtime property resolver solve this?
>
>
> --Cam
>
> Xiaonan Jiang wrote:
>
>> Hi, Cameron,
>
>> For an expression e.g., "A.b.c", when generating the symbols for "c",
>> sometime we need to know the information in the symbol "A".
>> Is it possible to add an API getBase() for ISymbol interface?
>
>> Thanks.
>> - Xiaonan
>
>> "Cameron Bateman" <cameron.bateman@oracle.com> wrote in message
>> news:f8234cde00320b9b243e8d0a2764b501$1@www.eclipse.org...
>>> It is in the built in help system if you the JSF feature installed.
>>> After unzipping the JSF build into Eclipse, try Help->Help Contents.
>>>
>>>
>>> --Cam
>>>
>
>
Re: content assist/validation for custom variableResolver and propertyResolver [message #474076 is a reply to message #474018] Wed, 28 March 2007 21:15 Go to previous message
Cameron Bateman is currently offline Cameron BatemanFriend
Messages: 481
Registered: July 2009
Senior Member
I have added a feature request bug:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=179854

Please add any further details as well as prioritization requirements to
help us with scheduling.

As an alternative, you could consider implementing your own ISymbol (the
framework can by extendend through the ecore model) and create your own
special type of IPropertySymbol that takes the same ITypeDescriptor as its
parent. You would also need to write your own custom DTPropertyResolver,
although this will be necessary even with the exact change you have
requested.


--Cam
Re: content assist/validation for custom variableResolver and propertyResolver [message #608414 is a reply to message #473966] Mon, 12 March 2007 18:03 Go to previous message
Cameron Bateman is currently offline Cameron BatemanFriend
Messages: 481
Registered: July 2009
Senior Member
You can use the org.eclipse.jst.jsf.core.propertyresolver and
variableresolver extension points to register your own design time
overrides. You can then call
DesignTimeApplicationManager.setPropertyResolverProvider or
setVariableResolverProvider for a particular IProject where you want to
use this override.

You can find information on this in the JSF Developer Guide.


--Cam


Xiaonan Jiang wrote:

> If a user adds a variableResolver or propertyResolver in the facesconfig
> file, is it possible for him to provide the code for the content assist and
> validation for his custom variableResolver and propertyResolver?
> Or, how are going to support the content assist/validation for the custom
> variableResolver/propertyResolver?
> Thanks.
Re: content assist/validation for custom variableResolver and propertyResolver [message #608415 is a reply to message #473967] Tue, 13 March 2007 15:23 Go to previous message
Xiaonan Jiang is currently offline Xiaonan JiangFriend
Messages: 14
Registered: July 2009
Junior Member
Could you give the link to the "JSF Developer Guide"?
Thanks.


"Cameron Bateman" <cameron.bateman@oracle.com> wrote in message
news:0391faa8aad5041b3f051e39fb1a6b0c$1@www.eclipse.org...
> You can use the org.eclipse.jst.jsf.core.propertyresolver and
> variableresolver extension points to register your own design time
> overrides. You can then call
> DesignTimeApplicationManager.setPropertyResolverProvider or
> setVariableResolverProvider for a particular IProject where you want to
> use this override.
> You can find information on this in the JSF Developer Guide.
>
>
> --Cam
>
>
> Xiaonan Jiang wrote:
>
>> If a user adds a variableResolver or propertyResolver in the facesconfig
>> file, is it possible for him to provide the code for the content assist
>> and validation for his custom variableResolver and propertyResolver?
>> Or, how are going to support the content assist/validation for the custom
>> variableResolver/propertyResolver?
>> Thanks.
>
>
Re: content assist/validation for custom variableResolver and propertyResolver [message #608416 is a reply to message #473968] Tue, 13 March 2007 17:27 Go to previous message
Cameron Bateman is currently offline Cameron BatemanFriend
Messages: 481
Registered: July 2009
Senior Member
It is in the built in help system if you the JSF feature installed. After
unzipping the JSF build into Eclipse, try Help->Help Contents.


--Cam
Re: content assist/validation for custom variableResolver and propertyResolver [message #608449 is a reply to message #473969] Tue, 27 March 2007 19:38 Go to previous message
Xiaonan Jiang is currently offline Xiaonan JiangFriend
Messages: 14
Registered: July 2009
Junior Member
Hi, Cameron,

For an expression e.g., "A.b.c", when generating the symbols for "c",
sometime we need to know the information in the symbol "A".
Is it possible to add an API getBase() for ISymbol interface?

Thanks.
- Xiaonan

"Cameron Bateman" <cameron.bateman@oracle.com> wrote in message
news:f8234cde00320b9b243e8d0a2764b501$1@www.eclipse.org...
> It is in the built in help system if you the JSF feature installed. After
> unzipping the JSF build into Eclipse, try Help->Help Contents.
>
>
> --Cam
>
Re: content assist/validation for custom variableResolver and propertyResolver [message #608451 is a reply to message #473995] Tue, 27 March 2007 22:52 Go to previous message
Cameron Bateman is currently offline Cameron BatemanFriend
Messages: 481
Registered: July 2009
Senior Member
It is possible, although I'm not sure ISymbol is the correct place to do
it since this places the burden on all producers of symbols to have this
information. Can you give a little more information about the specific
use case so that I can form a canonical understanding of the use case?
What is it about 'c' that knowing about b isn't enough? How does your
runtime property resolver solve this?


--Cam

Xiaonan Jiang wrote:

> Hi, Cameron,

> For an expression e.g., "A.b.c", when generating the symbols for "c",
> sometime we need to know the information in the symbol "A".
> Is it possible to add an API getBase() for ISymbol interface?

> Thanks.
> - Xiaonan

> "Cameron Bateman" <cameron.bateman@oracle.com> wrote in message
> news:f8234cde00320b9b243e8d0a2764b501$1@www.eclipse.org...
>> It is in the built in help system if you the JSF feature installed. After
>> unzipping the JSF build into Eclipse, try Help->Help Contents.
>>
>>
>> --Cam
>>
Re: content assist/validation for custom variableResolver and propertyResolver [message #608459 is a reply to message #473998] Wed, 28 March 2007 15:50 Go to previous message
Xiaonan Jiang is currently offline Xiaonan JiangFriend
Messages: 14
Registered: July 2009
Junior Member
See an example in the following URL:
http://publib.boulder.ibm.com/infocenter/wsadhelp/v5r1m2/ind ex.jsp?topic=/com.ibm.etools.jsf.doc/topics/tjsflists.html

For an expression e.g., "selectitems.myBean.label.value.toArray", both
"label" and "value" are the properties of the bean "myBean". So to get the
symbols for "value" will need to know "myBean".
In Runtime, the property resolver will have a pointer to its base (parent)
property resolver.

Thanks.
- Xiaonan

"Cameron Bateman" <cameron.bateman@oracle.com> wrote in message
news:bc435ee829c68b0647e8ba4713f5c7c3$1@www.eclipse.org...
> It is possible, although I'm not sure ISymbol is the correct place to do
> it since this places the burden on all producers of symbols to have this
> information. Can you give a little more information about the specific
> use case so that I can form a canonical understanding of the use case?
> What is it about 'c' that knowing about b isn't enough? How does your
> runtime property resolver solve this?
>
>
> --Cam
>
> Xiaonan Jiang wrote:
>
>> Hi, Cameron,
>
>> For an expression e.g., "A.b.c", when generating the symbols for "c",
>> sometime we need to know the information in the symbol "A".
>> Is it possible to add an API getBase() for ISymbol interface?
>
>> Thanks.
>> - Xiaonan
>
>> "Cameron Bateman" <cameron.bateman@oracle.com> wrote in message
>> news:f8234cde00320b9b243e8d0a2764b501$1@www.eclipse.org...
>>> It is in the built in help system if you the JSF feature installed.
>>> After unzipping the JSF build into Eclipse, try Help->Help Contents.
>>>
>>>
>>> --Cam
>>>
>
>
Re: content assist/validation for custom variableResolver and propertyResolver [message #608868 is a reply to message #474018] Wed, 28 March 2007 21:15 Go to previous message
Cameron Bateman is currently offline Cameron BatemanFriend
Messages: 481
Registered: July 2009
Senior Member
I have added a feature request bug:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=179854

Please add any further details as well as prioritization requirements to
help us with scheduling.

As an alternative, you could consider implementing your own ISymbol (the
framework can by extendend through the ecore model) and create your own
special type of IPropertySymbol that takes the same ITypeDescriptor as its
parent. You would also need to write your own custom DTPropertyResolver,
although this will be necessary even with the exact change you have
requested.


--Cam
Previous Topic:Extending the Visual Page Designer
Next Topic:Why is index.faces requested?
Goto Forum:
  


Current Time: Fri Apr 19 21:28:51 GMT 2024

Powered by FUDForum. Page generated in 0.04980 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top