13.07.2015 Views

IBM WebSphere Portlet Factory Overview - Lotus

IBM WebSphere Portlet Factory Overview - Lotus

IBM WebSphere Portlet Factory Overview - Lotus

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

I need to transform data betweenschemas.Use the Service Operation builder for simplemapping. This is usually done in a serviceprovider model. For more complex XMLmanipulation, use Java code that manipulatesIXml. See the Javadoc for the IXml class fordetails.I want to share some data acrossportlets. For example, I may want tocreate a “filter” portlet that lets usersspecify values that are used by multipleother portlets on the same or differentportal page.Shared VariableThis builder marks a variable so that it can beshared across portlets and models.I want to reduce the session size formy application.Discardable VariableThis builder modifies an existing variable sothat it is not stored in session.Controlling the validation, formatting, labels, and behavior of data fieldsTaskBuilderI want to add formatting or validation toa field or to an element in a schema. Forexample, I want to:Format the field (for example, format thedata in the acceptable date format)Translate an expression (for example,remove dashes from a formatted string tothat it can be properly saved)Validate the field being submitted (forexample, ensure that the Birthday field isa date).Although either Data Field Modifier (DFM)or Rich Data Definition (RDD) can helpwith these tasks, RDD is the best choicebecause you can use this builder to encodeand reuse detailed field behaviors. You canenable reuse at the schema level bycreating an RDD file for a particular schema,and you can also reuse a single sharedlibrary of common field types, with the"base" data definition functionality.To generate your own data definition file,use the RDD’s builder interface to set theappropriate formatting, validation, and soon. Then, scroll down to the bottom of thebuilder and press the “Create DataDefinition File” button.<strong>WebSphere</strong> <strong>Portlet</strong> <strong>Factory</strong> V6.0.1 Getting Started Guide - 23 -

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!