Opened 11 years ago

Closed 11 years ago

#1545 closed task (fixed)

Add extension points to edit pages

Reported by: Nicklas Nordborg Owned by: Nicklas Nordborg
Priority: major Milestone: BASE 2.17
Component: web Version:
Keywords: Cc:

Description

This would for example make it easier to implement an extension that adds, for example, any-to-any links to an item (#1543). The details for this extension point is not clear yet, but it need two parts:

  1. One part that is showing a gui with extra fields. It could probably go as it's own tab in the edit dialog.
  2. A second part that is invoked when saving the item.

Change History (15)

comment:1 Changed 11 years ago by Nicklas Nordborg

(In [5478]) References #1545: Publish news as a rss feed

Added servlet RssNewsFeed to serve rss document. It will cache the current news so it should not be too heavy even if clients update often.

The feed includes all public news and the broadcast message that the admin can set in the Administrate -> Broadcast message dialog.

comment:2 Changed 11 years ago by Nicklas Nordborg

The above comment is not about this ticket. It should have gone to #1546 instead.

comment:3 Changed 11 years ago by Nicklas Nordborg

Owner: changed from everyone to Nicklas Nordborg
Status: newassigned

comment:4 Changed 11 years ago by Nicklas Nordborg

(In [5482]) References #1545: Add extension points to edit pages

Adds support for extensions to the TabControl taglib. The TabAction interface is used to define extra tabs. Two factories have been implemented:

  • FixedTabFactory: Mainly useful for testing
  • IncludeContentTabFactory: The content of the tab is generated from an included resource (eg. a JSP script or servlet)

Extension points have so far only been implemented on the "Edit sample" dialog, but more will be added later.

Some more "side-effects" from this change:

  • Added support for 'class' attribute to TabControl and Tab taglibs.
  • Added 'onActivate' callback to Tab taglib if a tab need to perform some action when it is activated.
  • Log a warning message when trying to use an undefined extension point (I know this happens for for some toolbars).
  • Add support for context-relative paths to the PathSetter/PathConverter annotation.
  • Removed some obsolete documentation for the TabControl taglib.

comment:5 Changed 11 years ago by Nicklas Nordborg

(In [5483]) References #1545: Add extension points to edit pages

Format stacktraces so that they are readable.

comment:6 Changed 11 years ago by Nicklas Nordborg

(In [5485]) References #1545: Add extension points to edit pages

Rearrange the code so that the included page is not called until the contents is actually requested.

Store the JspContext? in a request-scoped attribute so that the including page can access the information in it.

comment:7 Changed 11 years ago by Nicklas Nordborg

(In [5490]) References #1545: Add extension points to edit pages

Adds OnSaveAction that is called when saving an item. First test is on the sample page. Replaced TabControlUtil with EditUtil instead.

comment:8 Changed 11 years ago by Nicklas Nordborg

(In [5492]) References #1545: Add extension points to edit pages

Fixed on all biomaterial lims pages.

comment:9 Changed 11 years ago by Nicklas Nordborg

(In [5498]) References #1545: Add extension points to edit pages

Fixed on array lims pages.

comment:10 Changed 11 years ago by Nicklas Nordborg

(In [5501]) References #1545: Add extension points to edit pages

  • Fixed on View menu pages except Experiment.
  • Made DebugOnSaveAction public.

comment:11 Changed 11 years ago by Nicklas Nordborg

(In [5503]) References #1545: Add extension points to edit pages

Fixed on Experiment-related pages.

comment:12 Changed 11 years ago by Nicklas Nordborg

(In [5506]) References #1545: Add extension points to edit pages

Fixed on several admin-related pages.

comment:13 Changed 11 years ago by Nicklas Nordborg

(In [5508]) References #1545: Add extension points to edit pages

Fixed on some more admin-related pages.

comment:14 Changed 11 years ago by Nicklas Nordborg

(In [5510]) References #1545: Add extension points to edit pages

Fixed on the remaining admin-related pages.

comment:15 Changed 11 years ago by Nicklas Nordborg

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.