content assist/validation for custom variableResolver and propertyResolver [message #473966] |
Mon, 12 March 2007 13:17  |
Eclipse User |
|
|
|
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 #474018 is a reply to message #473998] |
Wed, 28 March 2007 11:50   |
Eclipse User |
|
|
|
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 #608414 is a reply to message #473966] |
Mon, 12 March 2007 14:03  |
Eclipse User |
|
|
|
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 11:23  |
Eclipse User |
|
|
|
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 #608451 is a reply to message #473995] |
Tue, 27 March 2007 18:52  |
Eclipse User |
|
|
|
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 11:50  |
Eclipse User |
|
|
|
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
>>>
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.28808 seconds