Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Non-visual Tag Decorators"

(Solution Summary)
(Formal Statement of Requirements)
Line 38: Line 38:
 
* the end-user should be able control when decorators are available and hide them if they wish.
 
* the end-user should be able control when decorators are available and hide them if they wish.
  
 +
===Technical requirements===
 +
 +
The visual page designer is a GEF-based editor.  The solution must be designed and implemented within that framework.  Also, the solution must take into account the '''ITagConverter''' interface used to derive WYSIWYG rendering information from the source JSP/JSF markup.
  
 
==Solution Summary==
 
==Solution Summary==

Revision as of 14:52, 22 January 2007

Summary

JSP tags, and JavaServer Faces (JSF) tag in particular, have numerous non-visual nested tags that can change the appearance and behaviour of their parents. Consider the following JSF example:

<h:commandButton value="Submit">
    <f:actionListener type="com.company.MyActionListener" />
</h:commandButton>

In this situation, an instance of 'com.company.MyActionListener' will be created and receive action events when the commandButton is pressed.

However, the 'f:actionListener' tag has no visual representation in HTML and so does not appear in the WYSIWYG editor. This forces a user to leave the visual environment and switch to a text or XML editor to:

  • discover what nested non-visual tags are present
  • learn the attribute settings of each non-visual tag
  • select, modify and interact with these tags in the properties and outline views

We believe this is a usability problem that can be solved, at least partially, by using visual decorators.

Formal Statement of Requirements

The visual page designer shall support the ability for tags that support child tags that do not have a visual HTML representation to decorate their canvas image to aid the end-user in interacting with the child tags.

Basic requirements

The decorator design shall allow a user the ability to:

  • quickly determine what non-visual child tags a visual tag contains.
  • obtain a visual representation of the tag that has similar interaction capabilities as a visual tag on the canvas.


Usability requirements

In addition to the basic requirements, the following usability issues shall be addressed:

  • the decorators will be as non-intrusive as possible.
  • the end-user should be able control when decorators are available and hide them if they wish.

Technical requirements

The visual page designer is a GEF-based editor. The solution must be designed and implemented within that framework. Also, the solution must take into account the ITagConverter interface used to derive WYSIWYG rendering information from the source JSP/JSF markup.

Solution Summary

The decorators

Back to the top