Setting a source path

In the code extract in Example 7.2 we have extended the source path received to access the text for the filter. The text will be stored in a Document Node named text-filter (we will create that later in the PodLoader). We use the data accessor to retrieve the text that will be added to the input box.

Figure 1. Setting the source path
032      String sourcePathExt = "text-filter";
033      Path sourcePath = 
034        field.getBinding().getSourcePath().extendPath(sourcePathExt);
035      fieldBuilder.setSourcePath(sourcePath);