Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

ResourceDescription
Activator.java

Bundle activator

CustomElement.javaInterface representing the custom element
CustomElementController.java

Controller of the element component

CustomElementFBO.java

Form backing object of the element component

CustomElementImpl.javaComponent and element implementation (business object)
editCustomElement.jspfJSP that renders the element in the Edit environment
messages_en_US.propertiesUS English language file
messages_nl_NL.propertiesDutch language file
showCustomElement.xmlDescriptor of the JSP rendering the element on the Website environment
showCustomElement.jspfJSP rendering the element on the Website environment
smallCustomElementIcon.gifSmall icon associated with the element
largeCustomElementIcon.gifSmall icon associated with the element

 

This section part explains how to enhance this component with an additional field called "Author". To add this field to the Hello World element component, the following steps must be performed:

  1. Add the property to the business object (CustomElementImpl.java).
  2. Add the property to the form backing object (CustomElementFBO.java).
  3. Add a label to the language files to translate “Author” in the supported languages.
  4. Add the field to the edit JSP (editCustomElement.jspf).
  5. Add the field to the show JSP (showCustomElement.jspf).

Throughout this section topic the HelloWorld element will be used as an example.

...

ResourceDescription
Activator.java

The bundle activator

CustomPanelController.java

The controller of the whole panel

CustomPanel.java

The form backing object of the whole panel

CustomTabController.java

The controller of the HelloWorld tab contained by the panel

CustomTabFBO.java

The form backing object of the HelloWorld tab contained by the panel

customTab.jspf

The JSP that renders the HelloWorld tab

messages_en_US.properties

The US English language file

messages_nl_NL.properties

The Dutch language file

 

In this section we explain This part explains how to enhance this component with an additional field named "Author". To add this field to the HelloWorld panel component, perform the following steps:

...

ResourceDescription
Activator.java

Bundle activator

CustomMediaItemController.java

Controller of the metadata part of the custom media item

CustomMediaItemVersion.java

Interface representing the custom media item version

CustomMediaItemVersionFBO.java

Form backing object for the custom metadata part of the custom media item version

CustomMediaItemVersionImpl.java

Implementation of the custom media item version

editMetadata.xml

Descriptor of the JSP that renders the custom metadata part of the custom media item

editMetadata.jspf

JSP that renders the custom metadata part of the custom media item

messages_en_US.propertiesUS English language file
messages_nl_NL.propertiesDutch language file

custommediaitem.gif

Icon associated with the media item. Used in the menu and Media Repository search results.

 

In this section we explain This part explains how to enhance this component with an additional metadata field named "Author". To add this field to the custom metadata part of the custom Media item component, perform the following steps:

...

Code Block
themeEclipse
 private String myAuthor;
 
 public String getAuthor() {
	return myAuthor;
 }
 
 public void setAuthor(String author) {
	myAuthor = author;
 }

Language Label

See section Adding a Language Label for a complete description of adding language labels. The following snippet should be added to each language file:

...