Versions Compared

Key

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

...

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

Language Label

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

 

Code Block
themeEclipse
helloworldmediaitem.author=Author

 

When adding language labels, be sure that they conform to the WCB Development Guidelines (G027 and G028 in particular).

 

Adding a Field to the Edit JSP

See Adding a Field to the Edit JSP for a complete description of adding fields to the edit JSP. The following snippet should be added to the editMetadata.jspf:

...

Code Block
themeEclipse
<fmt:message key="helloworldmediaitem.author" />: 
<wmedit:input path="author"/>


 

...

Language Label

The language label "helloworldmediaitem.author should" be present in both messages_en_US.properties and messages_en_US.properties files as e.g.:

 
Code Block
themeEclipse
helloworldmediaitem.author=Author

or

Code Block
themeEclipse
 helloworldmediaitem.author=Auteur

 

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

 

 

When adding language labels, be sure that they conform to the WCB Development Guidelines (G027 and G028 in particular).

 

Back to Top

...

Anchor
permission_level_html_js
permission_level_html_js
Setting the Correct Permission Level for HTML and JavaScript

...