<%@ page contentType="text/html;charset=UTF-8" %>
<%@page import="oracle.portal.provider.v2.http.HttpCommonConstants,
                oracle.portal.provider.v2.render.PortletRenderRequest,
                oracle.portal.provider.v2.render.PortletRendererUtil,
                oracle.portal.sample.v2.devguide.eventform.EventFormCustomization"
%>

<%
    PortletRenderRequest prr = (PortletRenderRequest)
        request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);

    EventFormCustomization defaultData = (EventFormCustomization) 
        PortletRendererUtil.getEditDefaultData(prr);

    //
    // The portlet definition in provider.xml includes the following:
    //
    //    The event "submit" with the following event parameters:
    //        o param1
    //        o param2
    //
    //    The event "cancel" with the no event parameters.
    //

    String splashText        = defaultData.getSplashText();
    String parameter1Label   = defaultData.getParameter1Label();
    String parameter2Label   = defaultData.getParameter2Label();
    String submitButtonLabel = defaultData.getSubmitLabel();
    String cancelButtonLabel = defaultData.getCancelLabel();
%>

<%=splashText%>

<center>

<!--
  -- Write out the HTML form tag.
  -->
<form disabled>


<!--
  -- The following table contains edit fields that will be mapped to
  -- the submit event's parameters when the form is submitted.
  -->
<table>
    <tr>
        <td>
            <b><%=parameter1Label%></b>
        </td>
        <td>
            <input type="text" size="20" value="">
        </td>
    </tr>
    <tr>
        <td>
            <b><%=parameter2Label%></b>
        </td>
        <td>
            <input type="text" size="20" value="">
        </td>
    </tr>
</table>

<br>

<INPUT TYPE=submit Value="<%=submitButtonLabel%>">
<INPUT TYPE=submit Value="<%=cancelButtonLabel%>">

</form>

</center>

