Sign in

E-mail *, (xx@domain.com)
Password *

Register | Forgot password

Handling default WM metadata (like terms) in media item custom metadata

The "WCB: Java development" forum contains threads on issues that are related to Java while programming a WCB (WebManager Component Bundle). If you have questions that have impact on Java code, post them in this forum. Some example topics: authorization, the different component types, setting up component dependencies, data access, and so forth.

Answered
Not marked as answered yet

Forums  >  WCB: Java development  >  Handling default WM metadata (like terms) in media item custom metadata


Author Handling default WM metadata (like terms) in media item custom metadata
xanderl


Posts: 8

Posted: 15-01-2010 09:19

Just a small hint, just in case...

When using custom metadata in your media item, you might want to translate this to the default WM metadata.
Forinstance, you define some editor input field, and want to store its value (also) as term.

Wherever you create this functionality, eventually the onSubmit method in your mediaitem controller class will be called.
in this method (by default) the BeanUtils.copyProperties method will be called, or you decided to use your own copy properties method.

Please note that at this point, the default WM metadata is filled.
So any changes to the metadata you made before this method is called, will be gone.
Changes to the default WM metadata can therefore only be made AFTER the BeanUtils.copyProperties method is executes (but still within the controller's onSubmit.

Back to top

New message: "Handling default WM metadata (like terms) in media item custom metadata"
Message:
bold boitalicd underline url quote code smile cool eek grin mad razz sad wink
 
© 2010 GX creative online development B.V.

Disclaimer

This website (GXdeveloperweb.com) may discuss or contain opinions, (sample) coding, software or other information that does not include GX official interfaces, instructions or guidelines and therefore is not supported by GX. Changes made based on this information are not supported.  GX will not be held liable for any damages caused by using or misusing the information, software, instructions, code or methods suggested on this website, and anyone using these methods does so at his/her own risk. GX offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this website, including any liability resulting from incompatibility between the content of this website and the materials and services offered by GX. By using this website you will not hold, or seek to hold, GX responsible or liable with respect to the content of this website.