Opened 14 years ago

Closed 14 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 by Nicklas Nordborg, 14 years ago

(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 by Nicklas Nordborg, 14 years ago

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

comment:3 by Nicklas Nordborg, 14 years ago

Owner: changed from everyone to Nicklas Nordborg
Status: newassigned

comment:4 by Nicklas Nordborg, 14 years ago

(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 by Nicklas Nordborg, 14 years ago

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

Format stacktraces so that they are readable.

comment:6 by Nicklas Nordborg, 14 years ago

(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 by Nicklas Nordborg, 14 years ago

(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 by Nicklas Nordborg, 14 years ago

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

Fixed on all biomaterial lims pages.

comment:9 by Nicklas Nordborg, 14 years ago

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

Fixed on array lims pages.

comment:10 by Nicklas Nordborg, 14 years ago

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

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

comment:11 by Nicklas Nordborg, 14 years ago

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

Fixed on Experiment-related pages.

comment:12 by Nicklas Nordborg, 14 years ago

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

Fixed on several admin-related pages.

comment:13 by Nicklas Nordborg, 14 years ago

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

Fixed on some more admin-related pages.

comment:14 by Nicklas Nordborg, 14 years ago

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

Fixed on the remaining admin-related pages.

comment:15 by Nicklas Nordborg, 14 years ago

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