I'want to implement a kind of sub-type of or specialized text box.
- The specialized text box shall have an additional property like 'urlForAutocompleteLookUp'.
- Form authors shall be able to configure the value of this property in the widget's dialog.
- The new property shall be exposed in the Jsp object 'guideField' so that I can use it to implement additional logic:
<%------------------------------------------------------------------------ ~ ~ ADOBE CONFIDENTIAL ~ __________________ ~ ~ Copyright 2014 Adobe Systems Incorporated ~ All Rights Reserved. ~ NOTICE: All information contained herein is, and remains ~ the property of Adobe Systems Incorporated and its suppliers, ~ if any. The intellectual and technical concepts contained ~ herein are proprietary to Adobe Systems Incorporated and its ~ suppliers and may be covered by U.S. and Foreign Patents, ~ patents in process, and are protected by trade secret or copyright law. ~ Dissemination of this information or reproduction of this material ~ is strictly forbidden unless prior written permission is obtained ~ from Adobe Systems Incorporated. --------------------------------------------------------------------------%> <%-- TextBox Component --%> <%@include file="/libs/fd/af/components/guidesglobal.jsp"%> <%-- todo: In case of repeatable panels, please change this logic at view layer --%> <div class="<%= GuideConstants.GUIDE_FIELD_WIDGET%> ${guideField.multiLine ? " multiline" : ""}" style="${guide:encodeForHtmlAttr(guideField.styles,xssAPI)}"> <c:choose> <c:when test="${guideField.multiLine}"> <textarea id="${guideid}${'_widget'}" name="${guide:encodeForHtmlAttr(guideField.name,xssAPI)}" style="${guide:encodeForHtmlAttr(guideField.widgetInlineStyles,xssAPI)}" placeholder="${guide:encodeForHtmlAttr(guideField.placeholderText,xssAPI)}">${guide:encodeForHtml(guideField.value,xssAPI)}</textarea> </c:when> <c:otherwise> <input type="text" id="${guideid}${'_widget'}" name="${guide:encodeForHtmlAttr(guideField.name,xssAPI)}" value="${guide:encodeForHtmlAttr(guideField.value,xssAPI)}" style="${guide:encodeForHtmlAttr(guideField.widgetInlineStyles,xssAPI)}" placeholder="${guide:encodeForHtmlAttr(guideField.placeholderText,xssAPI)}"/>
<c:if test="${guideField.hasUrlForAutocompleteLookUp}"> ... ... logic I want to add that will use the property urlForAutocompleteLookUp ...
</c:if>
</c:otherwise> </c:choose> <%-- End of Widget Div --%> </div>
My problem is that I don't know how I can add properties to the 'guideField' object.