Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[wtp-jsf-dev] Design discussion overview for Friday's meeting

Greetings,

Here is a summary of the proposal that we will demonstrate on Friday for content assist in JSF.  If you have any immediate concerns please address ASAP so they can be incorporated before Friday.

Purpose: To allow JSF-specific content assist to be hosted in relevant attribute value within the JSP editor.

Proposal:

1) For expression language (EL) attribute values (those of the form "#{...}"), a patch would be applied to StructuredTextViewerConfigurationJSP.getContentAssistProcessors that handles the currently unhandled case for the partition IJSPPartitions.JSP_DEFAULT_EL2.  This new logic would call into a new class called ContentAssistantProcessorLocator.  This new class would use a new extension point (or alternatively a new provisional element of the editorConfiguration extension) to find all ContentAssistProcessors that wish to contribute to content-assist for late-bound (JSF) EL attribute values.  JSF content assist would use this extension point to contribute it's logic.  The impact to existing logic is almost nil.  All new logic will be provided by JSF team as part of the patch.

NOTE: this scheme could extended in the future to support content assist contributors for other partition type as well.  Most of the delta would be localized to the same configuration method.

2) For non-EL attributes the existing Model Query extension point would be used.  While this is not a public interface, it was the only way found that content assist could provided unobtrusively for partitions not already handled by the JSP editor configuration.  

An alternative would be to add similar extension point support as discussed in 1), but add it for partition types already handled.  Again, JSF team would provide all new logic required in this area.



Regards,

Cameron



Back to the top