Using action attribute of netui:button in WSRP

In WSRP When I use action attribute of <b>netui:button</b> tag to override the action attribute of the <b>netui:form</b> tag but the button doesnt override the action attribute of netui:form tag. Please tell me the reson and solution for this problem.

Please attach a sample repro case.
Subbu
Rajiv Gandhi wrote:
In WSRP When I use action attribute of <b>netui:button</b> tag to override the action attribute of the <b>netui:form</b> tag but the button doesnt override the action attribute of netui:form tag. Please tell me the reson and solution for this problem.

Similar Messages

  • Action attribute in jdbc adapter

    Hi
    I have been working on jdbc adapter. Till now I have been using action attribute in jdbc receiver adpater for insertion only. Now I'd like to know what are the possible values can u we in "Action"?

    Hi,
    s the attribute action with the value INSERT, UPDATE, UPDATE_INSERT, DELETE, or SELECT. If you use the optional <table> element, the value specified is used as a database table name.
    1.Action=UPDATE
      Statements with this action cause existing table values to be updated. Therefore, the statement corresponds to an SQL UPDATE statement.
    The corresponding SQL statement for StatementName1 in the example above is as follows:
    UPDATE dbTableName  SET col1=u2019val1u2019, col2=u2019val2newu2019 WHERE ((col2=u2019val2oldu2019 AND col4=u2019val4u2019) OR (col2=u2019val2old2u2019))
    2. Action=UPDATE_INSERT
    The statement has the same format as for the UPDATE action. Initially, the same action is executed as for UPDATE. If no update to the database table can be made for this action (the condition does not apply to any table entry), values of the table described in the <access> element are inserted in accordance with the description of the action INSERT. <key> elements are ignored in this case.
    3.Action=DELETE
    Statements with this action cause existing table values to be deleted. One or more <key> elements formulate the condition for which table values are deleted.
    The corresponding SQL statement for StatementName3 in the example above is as follows:
    DELETE FROM dbTableName  WHERE ((col2=u2019val2oldu2019 AND col4=u2019val4u2019) OR (col2=u2019val2old2u2019))
    4.action=SELECT
    Statements with this action cause existing table values to be selected. Therefore, the statement corresponds to an SQL SELECT statement.
    5.Action=EXECUTE
    Statements with this action result in a stored procedure being executed. The name of the element is interpreted as the name of the stored procedure in the database.
    regards,
    ganesh.

  • Any way to invoke a servlet without using "action=" in HTML

    Hello,
    Is there any way to invoke a servlet without using "action=" attribute of Form tag in the HTML form.
    I.e. if I need to run the servlet from a hyperlink, how could it be possible?
    Or If I need to run a servlet from a "window.Open()" method using java script, how could it be possible?
    The error I am facing...
    HTTP Status 405 - HTTP method GET is not supported by this URL
    type Status report
    message HTTP method GET is not supported by this URL
    description The specified HTTP method is not allowed for the requested resource (HTTP method GET is not supported by this URL).
    Thanks,
    Sandeep

    Maybe your URL needs to use POST.

  • How to use 'roles' attribute in action-mapping ?

    Hi,
    Can anybody tell me what are the steps needed to use 'roles' attribute in <action> tag of struts-config.xml file?
    I want to provide Action level security.
    Also pls post an example if u r having.
    Regards
    Veeru

    Hi,
    The RfcAdapter trys to find a Sender Agreement for this RFC call but the lookup failes. The values used for this lookup are:
    Sender Party/Sender Service: The values from Party and Service belonging to the sender channel.
    Sender Interface: The name of the RFC function module.
    Sender Namespace: The fix RFC namespace urn:sap-com:document:sap:rfc:functions
    Receiver Party/Receiver Service: These fields are empty. This will match the wildcard
    Regards,
    Suryanarayana

  • Netui:button  submit button tagID

    I use the repeater Wizard by dragging a member field in my .jpf
    controller file.
    public transient String[] mySPArr = {"A","B", ... "Z"};
    from the Date Palette onto the index.jsp.
    <netui-data:repeater dataSource="{pageFlow.myAlphaSArr}">
    <netui-data:repeaterHeader></netui-data:repeaterHeader>
    <netui-data:repeaterItem>
    <netui:label value="{container.item}" defaultValue=" "></netui:label>
    </netui-data:repeaterItem>
    <netui-data:repeaterFooter></netui-data:repeaterFooter>
    </netui-data:repeater>
    Editing out the Header and Footers and frame it with the netui:form
    <netui:form action="getPatientRECArrByAlpha">
    <netui-data:repeater dataSource="{pageFlow.myAlphaSArr}">
    <netui-data:repeaterItem>
    <netui:label value="{container.item}" defaultValue=" "></netui:label>
    </netui-data:repeaterItem>
    </netui-data:repeater>
    </netui:form>
    Next, I delete the netui:label and replace with a submit button
    <netui:form action="getPatientRECArrByAlpha">
    <netui-data:repeater dataSource="{pageFlow.myAlphaSArr}">
    <netui-data:repeaterItem>
    <netui:button type="submit" value="{container.item}"/>
    </netui-data:repeaterItem>
    </netui-data:repeater>
    </netui:form>
    This renders very nicely, what can be, a dynamic list of submit buttons labeled A thru Z. Now the only problem is I need it to render out to the browser in the form.
    <form ...>
    <input type=submit name="s1" value="A">
    <input type=submit name="s1" value="B">
    <input type=submit name="s1" value="C">
    <input type=submit name="s1" value="Z">
    </form>
    Where I have a form with multiple submit buttons 'submitting' one of the various parameter 's1' Strings (A thru Z) to my action method
    public Forward getPatientRECArrByAlpha(GetPatientRECArrByAlphaForm aForm)
    What I need is a bit better understanding of the tagId and how it will render out to
    browser the name attribute for the submit button.
    I tried;
    <netui:button type="submit" value="{container.item}" tagId="{actionForm.s1}"/>
    but I am missing something.

    Thomas,
         The tagId attribute is not bindable at runtime. You could write a
    little javascript that would set the value of a hidden parameter on the
    form with the value of the submit button.
         Here is one option. (I've attached the .jpf and 2 .jsps to show this
    working in a little application)
    <netui:html>
    <script language="javascript">
    function passValue(value)
    document.forms[getNetuiTagName("myForm")][getNetuiTagName("hidden")].value
    = value;
    obj =
    document.forms[getNetuiTagName("myForm")][getNetuiTagName("hidden")];
    return true;
    </script>
    <head>
    <title>Web Application Page</title>
    </head>
    <body>
    <p>
    <netui:form action="getPatientRECArrByAlpha" tagId="myForm">
    <netui:hidden dataSource="{actionForm.buttonValue}"
    tagId="hidden" dataInput="{actionForm.buttonValue}"/>
    <netui-data:repeater dataSource="{pageFlow.myAlphaStringArray}">
    <netui-data:repeaterItem>
    <netui:button type="submit" value="{container.item}"
    tagId="button" onClick="return passValue(this.value);"/>
    </netui-data:repeaterItem>
    </netui-data:repeater>
    </netui:form>
    </body>
    </netui:html>
         - john
    thomas wrote:
    I use the repeater Wizard by dragging a member field in my .jpf
    controller file.
    public transient String[] mySPArr = {"A","B", ... "Z"};
    from the Date Palette onto the index.jsp.
    <netui-data:repeater dataSource="{pageFlow.myAlphaSArr}">
    <netui-data:repeaterHeader></netui-data:repeaterHeader>
    <netui-data:repeaterItem>
    <netui:label value="{container.item}" defaultValue=" "></netui:label>
    </netui-data:repeaterItem>
    <netui-data:repeaterFooter></netui-data:repeaterFooter>
    </netui-data:repeater>
    Editing out the Header and Footers and frame it with the netui:form
    <netui:form action="getPatientRECArrByAlpha">
    <netui-data:repeater dataSource="{pageFlow.myAlphaSArr}">
    <netui-data:repeaterItem>
    <netui:label value="{container.item}" defaultValue=" "></netui:label>
    </netui-data:repeaterItem>
    </netui-data:repeater>
    </netui:form>
    Next, I delete the netui:label and replace with a submit button
    <netui:form action="getPatientRECArrByAlpha">
    <netui-data:repeater dataSource="{pageFlow.myAlphaSArr}">
    <netui-data:repeaterItem>
    <netui:button type="submit" value="{container.item}"/>
    </netui-data:repeaterItem>
    </netui-data:repeater>
    </netui:form>
    This renders very nicely, what can be, a dynamic list of submit buttons labeled A thru Z. Now the only problem is I need it to render out to the browser in the form.
    <form ...>
    <input type=submit name="s1" value="A">
    <input type=submit name="s1" value="B">
    <input type=submit name="s1" value="C">
    <input type=submit name="s1" value="Z">
    </form>
    Where I have a form with multiple submit buttons 'submitting' one of the various parameter 's1' Strings (A thru Z) to my action method
    public Forward getPatientRECArrByAlpha(GetPatientRECArrByAlphaForm aForm)
    What I need is a bit better understanding of the tagId and how it will render out to
    browser the name attribute for the submit button.
    I tried;
    <netui:button type="submit" value="{container.item}" tagId="{actionForm.s1}"/>
    but I am missing something.<%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@ taglib uri="netui-tags-databinding.tld" prefix="netui-data"%>
    <%@ taglib uri="netui-tags-html.tld" prefix="netui"%>
    <%@ taglib uri="netui-tags-template.tld" prefix="netui-template"%>
    <netui-data:declarePageInput name="value" type="java.lang.String"/>
    <netui:html>
    <head>
    <title>
    Web Application Page
    </title>
    </head>
    <body>
    <p>
    <p>
    <p>
    <p>
    You pressed the button labeled "<netui:label value="{pageInput.value}"/>"
    </p>
    </body>
    </netui:html>
    [att1.html]
    import com.bea.wlw.netui.pageflow.FormData;
    import com.bea.wlw.netui.pageflow.PageFlowController;
    import com.bea.wlw.netui.pageflow.Forward;
    * This is the default controller for a blank web application.
    * @jpf:controller
    * @jpf:view-properties view-properties::
    * <!-- This data is auto-generated. Hand-editing this section is not recommended. -->
    * <view-properties>
    * <pageflow-object id="pageflow:/Controller.jpf"/>
    * <pageflow-object id="action:begin.do">
    * <property name="x" value="60"/>
    * <property name="y" value="80"/>
    * </pageflow-object>
    * <pageflow-object id="action:getPatientRECArrByAlpha.do#Controller.GetPatientRECArrByAlphaForm">
    * <property value="340" name="x"/>
    * <property value="80" name="y"/>
    * </pageflow-object>
    * <pageflow-object id="action-call:@page:index.jsp@#@action:getPatientRECArrByAlpha.do#Controller.GetPatientRECArrByAlphaForm@">
    * <property value="256,280,280,304" name="elbowsX"/>
    * <property value="73,73,73,73" name="elbowsY"/>
    * <property value="East_1" name="fromPort"/>
    * <property value="West_1" name="toPort"/>
    * </pageflow-object>
    * <pageflow-object id="page:index.jsp">
    * <property name="x" value="220"/>
    * <property name="y" value="80"/>
    * </pageflow-object>
    * <pageflow-object id="page:error.jsp">
    * <property name="x" value="220"/>
    * <property name="y" value="160"/>
    * </pageflow-object>
    * <pageflow-object id="forward:path#index#index.jsp#@action:begin.do@">
    * <property name="elbowsY" value="72,72,72,72"/>
    * <property name="elbowsX" value="96,140,140,184"/>
    * <property name="toPort" value="West_1"/>
    * <property name="fromPort" value="East_1"/>
    * <property name="label" value="index"/>
    * </pageflow-object>
    * <pageflow-object id="formbeanprop:Controller.GetPatientRECArrByAlphaForm#buttonValue#java.lang.String"/>
    * <pageflow-object id="formbean:Controller.GetPatientRECArrByAlphaForm"/>
    * <pageflow-object id="forward:path#success#showButtonValue.jsp#@action:getPatientRECArrByAlpha.do#Controller.GetPatientRECArrByAlphaForm@">
    * <property value="376,420,420,464" name="elbowsX"/>
    * <property value="73,73,53,53" name="elbowsY"/>
    * <property value="East_1" name="fromPort"/>
    * <property value="West_1" name="toPort"/>
    * <property value="success" name="label"/>
    * </pageflow-object>
    * <pageflow-object id="page:showButtonValue.jsp">
    * <property value="500" name="x"/>
    * <property value="60" name="y"/>
    * </pageflow-object>
    * </view-properties>
    public class Controller extends PageFlowController
    public transient String[] myAlphaStringArray = {"A", "B", "Z"};
    * @jpf:action
    * @jpf:forward name="index" path="index.jsp"
    protected Forward begin()
    return new Forward("index");
    * @jpf:action
    * @jpf:forward name="success" path="showButtonValue.jsp"
    protected Forward getPatientRECArrByAlpha(GetPatientRECArrByAlphaForm form)
    Forward f = new Forward("success");
    f.addPageInput("value", form.getButtonValue());
    return f;
    * FormData get and set methods may be overwritten by the Form Bean editor.
    public static class GetPatientRECArrByAlphaForm extends FormData
    private String buttonValue;
    public void setButtonValue(String buttonValue)
    this.buttonValue = buttonValue;
    public String getButtonValue()
    return this.buttonValue;

  • Excel MySQL - To set the action attribute in a  form

    Hi All
    I am working on an application that requires to read data from Excel and update the table in MySQL. My java code works well and does the required. For the user to select an excel file, i have designed a form using JSP. This JSP form gets loaded through Tomcat..When the user browses and selects the required file, he then will click on the update button and the java code then should be executed.
    How can i set the action attribute in form tag to execute java code.
    Following is my code.
    <%@page
    language="java"
    import="javax.servlet.*,javax.servlet.http.*,java.io.*,java.util.*,java.sql.*"
    info="BulkUpdate"
    session="true"
    %>
    <html>
    <head></head>
    <title>Bulk Update Page</title>
    <body bgcolor="#FFcc00">
    <p style="margin-top: 0; margin-bottom: 0">
    <u><b><font color="#800000" size="4"><center>Update Data from Excel Sheet to Database</center></font></b></u></p><br>
    <p style="margin-top: 0; margin-bottom: 0">
    <font face="arial" color="#000080" align="left"><b>Bulk Update on :</b>
    <%
    java.util.Date date = new java.util.Date();
    %></font>
    <%
        out.print( date );
    %>
    <br><br>
    <b><font size="2" face="Arial" color="#000080">This page is used to Select the
    data and configuration file in the browser and update MYSQL database
    </font></b></p>
    <form action="http:\\localhost:8080\itasm\ExcelTest3.java" method="post" enctype="multipart/form-data">
      <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="98%" id="AutoNumber1">
        <tr>
          <td width="34%" bgcolor="#800000"><b>
      <font face="Arial" color="#FFFF00" size="2">Select the Excel File to update </font>
          </b></td>
          <td width="53%" bgcolor="#800000">
          <p align="left"><input size="34" type="file" name="spreadsheet" /></td>
          <td width="17%" bgcolor="#800000"><input type="submit" value="Update File" /></td>
        </tr><br>
    <tr>
    <td width="34%" bgcolor="#800000"><b>
    <font face="Arial" color="#FFFF00" size="2">Select the corresponding Configuration File</td>
    <td width="17%" bgcolor="#800000"><input size="34" type="file" name="configfile" /></td>
    <td width="53%" bgcolor="#800000"></td>
    </tr></font>
      </table>
    </form>
    <p style="margin-top: 0; margin-bottom: 0">
    </p>
    </body>
    </html>When i execute the above code rather than executing the code, it just displays it in the browser.
    Please help.
    Regards

    Hi Andy!
    I just started to set the tabindex on each item... it wasn't working.. I copied the example you gave.. ha.. you had taxindex --- TAX and I too didn't notice it.. so just want to mention it incase anyone does what I did.. copies without thinking..
    As you said in the previous post it is TABINDEX="n"
    Ha.. its a Monday.. Bill

  • How can I use javascript to access netui data-repeater item?

    I have a 2-dim table of <netui: checkbox> using a <netui data-repeater> to interate over a contact email (column) and an event (rows).
              My problem is that I need to have a select all checkbox at the bottom of each column (per email) and be able to select all event for an email (when checked) and deselect all when the checkbox is unchecked.
              I can do it in java page flow but I can't have a page refresh.
              I want to do it on the page with javascript. The problem is that using
              document[getNetuiTagName("aform", this)][getNetuiTagName("email1", this)].checked
              with the "tagId" in each <netui> tag I can't access each iteration of the data repeater (I only get the last one).
              What I need is a reference to each repeater element. I do not know how many rows or columns I will have (based on the data).
              Is there any way to reference the obeject itself in javascript so I can loop through the items in the netui data-repeater?
              This is what is rendered in the html netui mapping:
              netui_names.con1="portlet_2_3wlw-checkbox_key:{actionForm.opts[4].cons[1].selContact}"
              I really want to be able to access this and loop through the arrays for opts (event) and cons(email)
              Here's the code:
              <netui:form action="submitEvents" tagId="eform" focus="">
              <table>
              <tr>
              <td>
              <table id="eTable" cellpadding="2" cellspacing="1" border="0">
              <tr bgcolor="#cccccc" class="BlackHeavy8">
              <!-- <td>Selected</td> -->
              <td colspan="2">Event</td>
              <netui-data:repeater dataSource="{pageFlow.contacts}" defaultText="No contacts configured.">
              <netui-data:repeaterHeader>
              </netui-data:repeaterHeader>
              <netui-data:repeaterItem>
              <netui-data:choiceMethod object="{pageFlow}" method="getAddHeader">
              <netui-data:methodParameter value="{container.item.contact_icon}" />
              </netui-data:choiceMethod>
              <netui-data:choice value="default">
              <td nowrap="true" bgcolor="#FFCCCC"><netui:image src="{container.item.contact_icon}"/>
              <netui:label value="{container.item.contact_value}" defaultValue=" "></netui:label>
              </td>
              </netui-data:choice>
              <netui-data:choice value="blue">
              <td nowrap="true" bgcolor="#D8EBFE"><netui:image src="{container.item.contact_icon}"/>
              <netui:label value="{container.item.contact_value}" defaultValue=" "></netui:label>
              </td>
              </netui-data:choice>
              <netui-data:choice value="green">
              <td nowrap="true" bgcolor="#CCFFCC"><netui:image src="{container.item.contact_icon}"/>
              <netui:label value="{container.item.contact_value}" defaultValue=" "></netui:label>
              </td>
              </netui-data:choice>
              <netui-data:choice value="yellow">
              <td nowrap="true" bgcolor="#FFFFCC"><netui:image src="{container.item.contact_icon}"/>
              <netui:label value="{container.item.contact_value}" defaultValue=" "></netui:label>
              </td>
              </netui-data:choice>
              </netui-data:repeaterItem>
              <netui-data:repeaterFooter></netui-data:repeaterFooter>
              </netui-data:repeater>
              </tr>
              <tr>
              <td colspan="7">
              <netui-data:repeater dataSource="{actionForm.opts}">
              <netui-data:repeaterHeader>
              </netui-data:repeaterHeader>
              <netui-data:repeaterItem>
              <netui-data:choiceMethod object="{pageFlow}" method="isEvenRow">
              <netui-data:methodParameter type="int" value="{container.index}" />
              </netui-data:choiceMethod>
              <netui-data:choice value="true">
              <tr class="BlackNorm8">
              <!-- <td align="center"> -->
              <!-- </td> -->
              <td colspan="2">
              <netui:label value="{container.item.eventName}" />
              <netui:hidden dataSource="{container.item.eventId}" />
              </td>
              <netui-data:repeater dataSource="{container.item.cons}">
              <netui-data:repeaterHeader>
              </netui-data:repeaterHeader>
              <netui-data:repeaterItem>
              <netui-data:choiceMethod object="{pageFlow}" method="getAddHeader">
              <netui-data:methodParameter value="{container.item.contact_icon}" />
              </netui-data:choiceMethod>
              <netui-data:choice value="default">
              <td align="center" bgcolor="#FFCCCC" >
              <netui:checkBox tagId="con1" dataSource="{container.item.selContact}" defaultValue="{container.item.selContact}" />
              <netui:hidden dataSource="{container.item.contact_id}" tagId="conid1" />
              </td>
              </netui-data:choice>
              <netui-data:choice value="blue">
              <td align="center" bgcolor="#D8EBFE" >
              <netui:checkBox id="con2" dataSource="{container.item.selContact}" defaultValue="{container.item.selContact}" />
              <netui:hidden dataSource="{container.item.contact_id}" tagId="conid2" />
              </td>
              </netui-data:choice>
              <netui-data:choice value="green">
              <td align="center" bgcolor="#CCFFCC" >
              <netui:checkBox tagId="con3" dataSource="{container.item.selContact}" defaultValue="{container.item.selContact}" />
              <netui:hidden dataSource="{container.item.contact_id}" tagId="conid3" />
              </td>
              </netui-data:choice>
              <netui-data:choice value="yellow">
              <td align="center" bgcolor="#FFFFCC" >
              <netui:checkBox tagId="con4" dataSource="{container.item.selContact}" defaultValue="{container.item.selContact}" />
              <netui:hidden dataSource="{container.item.contact_id}" tagId="conid4" />
              </td>
              </netui-data:choice>
              </netui-data:repeaterItem>
              <netui-data:repeaterFooter>
              </netui-data:repeaterFooter>
              </netui-data:repeater>
              </tr>
              </netui-data:choice>
              <netui-data:choice value="false">
              <tr class="BlackNorm8" bgcolor="#eeeeee">
              <!--<td align="center">-->
              <!--</td>-->
              <td colspan="2">
              <netui:label value="{container.item.eventName}" />
              <netui:hidden dataSource="{container.item.eventId}" />
              </td>
              <netui-data:repeater dataSource="{container.item.cons}">
              <netui-data:repeaterHeader>
              </netui-data:repeaterHeader>
              <netui-data:repeaterItem>
              <netui-data:choiceMethod object="{pageFlow}" method="getAddHeader">
              <netui-data:methodParameter value="{container.item.contact_icon}" />
              </netui-data:choiceMethod>
              <netui-data:choice value="default">
              <td align="center" bgcolor="#FFCCCC" >
              <netui:checkBox tagId="conalt1" dataSource="{container.item.selContact}" defaultValue="{container.item.selContact}" />
              <netui:hidden tagId="conidalt1" dataSource="{container.item.contact_id}" />
              </td>
              </netui-data:choice>
              <netui-data:choice value="blue">
              <td align="center" bgcolor="#D8EBFE" >
              <netui:checkBox tagId="conalt2" dataSource="{container.item.selContact}" defaultValue="{container.item.selContact}" />
              <netui:hidden tagId="conidalt2" dataSource="{container.item.contact_id}" />
              </td>
              </netui-data:choice>
              <netui-data:choice value="green">
              <td align="center" bgcolor="#CCFFCC" >
              <netui:checkBox tagId="conalt3" dataSource="{container.item.selContact}" defaultValue="{container.item.selContact}" />
              <netui:hidden tagId="conidalt3" dataSource="{container.item.contact_id}" />
              </td>
              </netui-data:choice>
              <netui-data:choice value="yellow">
              <td align="center" bgcolor="#FFFFCC" >
              <netui:checkBox tagId="conalt4" dataSource="{container.item.selContact}" defaultValue="{container.item.selContact}" />
              <netui:hidden tagId="conidalt4" dataSource="{container.item.contact_id}" />
              </td>
              </netui-data:choice>
              </netui-data:repeaterItem>
              <netui-data:repeaterFooter>
              </netui-data:repeaterFooter>
              </netui-data:repeater>
              </tr>
              </netui-data:choice>
              </netui-data:repeaterItem>
              <netui-data:repeaterFooter>
              </netui-data:repeaterFooter>
              </netui-data:repeater>
              Â </td>
              </tr>
              <!-- Select All Checkboxes -->
              <tr bgcolor="#cccccc" class="BlackHeavy8">
              <!-- <td>Selected</td> -->
              <td colspan="2">Select ALL</td>
              <netui-data:repeater dataSource="{pageFlow.contacts}" defaultText=" ">
              <netui-data:repeaterHeader>
              </netui-data:repeaterHeader>
              <netui-data:repeaterItem>
              <netui-data:choiceMethod object="{pageFlow}" method="getAddHeader">
              <netui-data:methodParameter value="{container.item.contact_icon}" />
              </netui-data:choiceMethod>
              <netui-data:choice value="default">
              <td align="center" nowrap="true" bgcolor="#FFCCCC">
              <netui:hidden dataSource="{container.item.contact_id}" tagId="chbox1" />
              <input type="checkbox" value="false"
              onclick="selectAllEvents('chbox1')">Select ALL
              </td>
              </netui-data:choice>
              <netui-data:choice value="blue">
              <td align="center" nowrap="true" bgcolor="#D8EBFE">
              <netui:hidden dataSource="{container.item.contact_id}" tagId="chbox2" />
              <input type="checkbox" value="false"
              onclick="selectAllEvents('chbox2')">Select All
              </td>
              </netui-data:choice>
              <netui-data:choice value="green">
              <td align="center" nowrap="true" bgcolor="#CCFFCC">
              <netui:hidden dataSource="{container.item.contact_id}" tagId="chbox3" />
              <input type="checkbox" value="false" onclick="selectAllEvents('chbox3')">Select All
              </td>
              </netui-data:choice>
              <netui-data:choice value="yellow">
              <td align="center" nowrap="true" bgcolor="#FFFFCC">
              <netui:hidden dataSource="{container.item.contact_id}" tagId="chbox4" />
              <input type="checkbox" value="false" onclick="selectAllEvents('chbox4')">Select All
              </td>
              </netui-data:choice>
              </netui-data:repeaterItem>
              <netui-data:repeaterFooter></netui-data:repeaterFooter>
              </netui-data:repeater>
              </tr>
              <!-- END Select ALL checkboxes -->
              </table>
              </td>
              <tr align="right">
              <td>
              <netui:button type="submit" value="Cancel" action="begin" styleClass="BlackNorm8"></netui:button>
              <netui:button value="Update" styleClass="BlackNorm8"/>
              </tr>
              </table>
              </netui:form>

    hi ,
    i dont know anything about delphi but from the experience from VB if the connection to oracle in delhpi doesnt recognise object type data field. Then try using OO4O drivers from oracle.if u use these drivers then u can access the sdo_geometry field !
    Hope this helps
    Vikesh

  • Can I use stylesheets to create multiple button styles?

    I am trying to create a custom look-and-feel within UIX to get it as close as possible to
    our existing application's look-and-feel.
    As part of this, I customized the UIX button by overriding the following named style:
    ButtonServerText
    and also by providing my own icons for:
    buttonStart
    buttonEnd
    buttonTopBackground
    buttonBottomBackground
    The good news is that I was able to get the button component to look exactly like our existing
    application buttons.
    The bad news is that we have different types of buttons in our application
    for different purposes. (i.e. the image used for the button can be completely different based on the context e.g.
    yellow button for important actions and light-blue buttons for secondary actions)
    It seems like there is no way in which I can use this stylesheet mechanism to create different types of buttons
    and use them within my application. (sometimes different types of buttons can appear on the same page)
    Please let me know if there is a way.
    This is in fact a general question regarding overriding a stylesheet for customizing look-and-feel.
    Lets say I customize the "contentContainer" component using the stylesheet. This change would then be global.
    But I do want to have different types of contentContainers in the application. I would be forced to create my own custom
    UIX elements similar to contentContainer and write my own renderers.
    (I know contentContainer does have the light, medium and dark styles. I used this just as an example.)
    Please let me know what my options are.
    Thanks,
    Jayesh Kapoor

    Hi Jayesh -
    The good news is that I was able to get the button
    component to look exactly like our existing
    application buttons.Cool - I'm glad to hear you were able to get this working!
    The bad news is that we have different types of
    buttons in our applicationRight. This is a fundamental limitation of our look and feel customization functionality - we only support global customizations, not instance-specific customizations. I agree that there are many cases where instance-level customization would be useful, but this just instance supported yet.
    The only solution that I can think of for your button dilemma would be to use static images. It's pretty easy to wire up an image to behave like a button - just embed the image in a link and use <fireAction> as the link's primaryClientAction.
    Obviously, the downside of this approach is that you need to create the button images manually - which also isn't ideal if you are planning to translate your applications. One possible solution here might be to use UIX to pre-generate your button images. The idea would be to create custom LAFs for each style of button, then create a UIX page for each button style, including <button> instances for each translated value. Then, you could configure UIX to run in the desired look and feel, hit the corresponding page, and UIX will generate the required buttons into your image cache. Again, not ideal, but this might be easier than creating the buttons by hand.
    This is in fact a general question regarding
    overriding a stylesheet for customizing
    look-and-feel.
    Lets say I customize the "contentContainer" component
    using the stylesheet. This change would then be
    global.
    But I do want to have different types of
    contentContainers in the application. I would be
    forced to create my own custom
    UIX elements similar to contentContainer and write my
    own renderers.Right - this is a generic problem. But for some components, like content containers, an easier solution might be to leverage UIX's templating mechanism. Remember, you can embed arbitrary HTML contents in a UIX page/template by setting the namespace to "http://www.w3.org/TR/REC-html40". You can then reference these templates from your other UIX contents as if they were in fact UIX components. I'd recommend that you explore UIX's template support to see if this will meet your needs.
    Andy

  • How to use Action/Input maps

    It seems to me that the move to sharing actions menus, buttons, and other components is a logical one, given that it is desirable to have all references to the action reflect its enabled state.
    The question that arises is: which ActionMap object to use as the central store? Do you create your own and pass it on somewhere?
    And, if you try to do anything with homegrown InputMaps then the components stop seeing the events. I wish there was a definitive YOU MUST DO IT THIS WAY tutorial.
    Why is there no factory API that can create UI components pre-attached to actions and with accelerators or mnemonics already set? Then we would not need to write half the code we do now. My solution:
    public class ComponentFactory {
       ActionMap myMap;
       public ComponentFactory(ActionMap map) {
          myMap = map;
       public JButton createButton(String actioncommand) {
           Action a = myMap.get(actioncommand)
           if(a==null)
              return null;
           return new JButton(a);
       public JMenuItem createMenuItem(String actioncommand) {
        // etc...
       public void setAction(Action a) {
           myMap.put(a.getValue(ACTION_COMMAND_KEY),a);
       public void setEnabled(String actioncommand, boolean state) {
           Action a = myMap.get(actioncommand);
           if(a!=null)
               a.setEnabled(state);
    }Is there any concensus as to the best way to handle ActionMaps/InputMaps?

    Hugh,
    >
    The tutorial is a touch short on this subject, whilst
    it is good on how to create and use actions with
    toolbars and the like, the section on InputMaps and
    ActionMaps is far too brief to get the wider picture.
    The API docs on the same is about one paragraph's
    worth.okay, I just checked the tutorial - it's a bit short on the inputMap/actionMap indeed.
    >
    You are mixing up two different issues:
    a) customize a button with an action
    b) bind a keyStroke to an action for an arbitrary
    jComponent
    a) has nothing to do with b)If b) has nothing to do with a) why have MNEMONIC_KEY
    and ACCELERATOR_KEY on the action?Hmm... where do you see a contradiction to my statement? Those keys are part of a) as they are used for customization of the AbstractButtons: the button's mnenmonic/accelerator properties are set to the corresponding values of the action. This propertyChange triggers an update of the keyBinding to the button's "pressed"/"doClick" actions as registered in the actionMap. They are never used (at least not internally by Swing) for b)
    Historically the action is older than the inputMap/actionMap: basically it's an ActionListener (which is more or less a command pattern) plus some (view) state. This "plus" was designed right in the beginning of Swing for a) to enable state sharing between different "buttons" but not really integrated until version 1.4. parallel to that the need for a general mechanism of binding between keyStrokes and "commands" became obvious and inputMap/actionMap were introduced in 1.3. The only action state that's needed for this mechanism to work is the enabled property. All values are ignored - so currently they somehow appear to be overloaded in the context of the inputMap/actionMap. Personally I think they are very powerful because of this extra flexibility.
    >
    There is still not a single diagram; and I maintain
    that it is less than useful to beginners who are not
    familiar with the terminology used. Well, IMO diagrams are not everything - I still think it much easier to understand than the dnd spec or the focus spec f.i.
    >
    you are free to use whatever object you want as akey
    - write a utility method to use the name, if feellike
    doeing so. There is nothing in the framework that
    would single out the name as "the" key to use, The keybindings document specifically states:
    "New actions can be added to a component equally
    easily."
    "The conventional key for an action is it's
    name." If there is a conventional way then it
    should be encouraged with an appropriate API. I get your point. And I definitely agree on following a convention if there is one. Except when the convention is quite immature (to formulate mildly) - and not even followed by Swing internally: most of the default actions registered in the actionMap don't even have a name, the binding is done by string literals ... duplicated in at least two places: the XXLookAndFeel and the ui-delegates.
    Greetings
    Jeanette

  • How to use Action interface?

    Hello,
    I haven't been programming in JAVA for very long, just over a month. I understand that intefaces are just method signatures and variables that can be used by a class wich implements them and redefines the methods and/or variables. I know that much.. I think.
    My Question:
    I want to use the Action interface for multiple buttons, I just don't know exactly how. dubwai, is the one who suggested the concept to me. Does anyone have any implementation or code wich utilizes the Action interface?
    Thanks very much,
    Bruce

    What you need to do is write a class that extends AbstractAction. I did one for a FileAction class. I have included the code for this below as a reference:
         class FileAction extends AbstractAction
              // Handles file actions
              FileAction(String name)
                   //Constructor
                   super(name);
                   String iconFileName = "images/" + name + ".gif";
                   if(new File(iconFileName).exists())
                        putValue(SMALL_ICON, new ImageIcon(iconFileName));
              FileAction(String name, String tooltip)
                   //Constructor
                   this(name);                                             // Call the other constructor
                   if(tooltip != null)                                   // If there is tooltip text...
                        putValue(SHORT_DESCRIPTION, tooltip);     // store it.
              public void actionPerformed(ActionEvent e)
                   String name = (String)getValue(NAME);
                   if(name.equals(saveAction.getValue(NAME)))
                        // code to handle file Save operation
                        saveOperation();
                   else if(name.equals(saveAsAction.getValue(NAME)))
                        // code to handle file Save As operation
                        File file = showDialog(
                             "Save Sketch As",
                             "Save",
                             "Save the Sketch",
                             's',
                             modelFile == null ? new File(files.getCurrentDirectory(), filename) : modelFile);
                        if (file != null)
                             if (file.exists() && ! file.equals(modelFile))
                                  if (JOptionPane.NO_OPTION ==      //Overwrite warning
                                       JOptionPane.showConfirmDialog(
                                       SketchFrame.this,
                                       file.getName() + " exists. Overwrite?",
                                       "Confirm Save As",
                                       JOptionPane.YES_NO_OPTION,
                                       JOptionPane.WARNING_MESSAGE))
                                  return;     // no file selected
                             saveSketch(file);
                        return;
                   else if(name.equals(openAction.getValue(NAME)))
                        // code to handle file Open operation
                        checkForSave();
                        File file = showDialog("Open Sketch File",     // dialog window title
                             "Open",                                             // button lable
                             "Read a sketch from a file",               // button tooltip text
                             'o',                                             // shortcut character
                             null);                                             // no file selected
                        if (file != null)                                   // if a file was selected
                             openSketch(file);                              // then read it
                   else if(name.equals(newAction.getValue(NAME)))
                        // code to handle file New operation
                        checkForSave();
                        theApp.insertModel(new SketchModel());          // insert new empty sketch
                        modelFile = null;                                   // no file for it
                        filename = DEFAULT_FILENAME;                    // default name
                        setTitle(frameTitle
                             + files.getCurrentDirectory()
                             + "\\"
                             + filename);
                        sketchChanged = false;                              // not changed yet
                   else if(name.equals(exitAction.getValue(NAME)))
                        // code to handle file Exit operation
                        checkForSave();
                        System.exit(0);
                   else if(name.equals(printAction.getValue(NAME)))
                        // code to handle file Print operation
                        PrinterJob printJob = PrinterJob.getPrinterJob();     // get a printing object
                        printJob.setPageable(theApp.getView());     // the view is the page source
                        if(printJob.printDialog())     // display print dialog
                             try
                                  printJob.print();     // then print
                             catch(PrinterException pe)
                                  System.out.println(pe);
                                  JOptionPane.showMessageDialog(SketchFrame.this,
                                       "Error printing a sketch.",
                                       "Printer Error",
                                       JOptionPane.ERROR_MESSAGE);
         }The good thing about Actions is that you can put them in a menu or on a toolbar using the same code.
    Garry.

  • JDBC - No 'action' attribute found in XML document - error

    Hi,
    I'm trying to write to SQL Server form File
    I successfully read from file, but fail to write.
    <b>My XML is :</b>
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:SD_NEZIGA_OUT_MT xmlns:ns0="ssss.co.il:SD:Office_core_Neziga"><statement2 action="INSERT"><table>Employees</table><access><ID>000009</ID><Name>&#1497;&#1493;&#1504;&#1505;&#1497; &#1512;&#1493;&#1514;&#1497;</Name><Phone>972528288840</Phone><Manager>001037</Manager><DistManager>001037</DistManager><Password>D</Password><UserType>0</UserType><miskalID>0000</miskalID></access></statement2></ns0:SD_NEZIGA_OUT_MT>
    <b>Error from JDBC adapter:</b>
    TransformException error in xml processor class: Error processing request in sax parser: No 'action' attribute found in XML document (attribute "action" missing or wrong XML structure)
    Help me please.
    Best regards, Natalia.

    Hey
    Ur XML is not correct,it must be something like this
    <root>
    <StatementName1>
    <dbTableName action=”UPDATE” | “UPDATE_INSERT”>
    <table>realDbTableName</table>.....
    </StatementName1>
    if u look at the receiver structure of /people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30 this blog,action is an attribute of TEST and not STATEMENTNAME,for ur structure its an attribute of Statement2
    can u send ur receiver structure?
    thanx
    ahmad
    Message was edited by:
            Ahmad

  • JDBC adapter: action attribute is missing

    This is my XML, could anyone please tell me what's wrong there???
    <?xml version="1.0" encoding="utf-8" ?>
    <root>
       <zzz ACTION="INSERT">
          <access>
             <a>PR00035371</Ia>
             <b>555555</b>
             <c>2006</c>
             <d>76.50</d>
          </access>
       </zzz>
    </root>
    and the error message is:
    <SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: Error processing request in sax parser: No 'action' attribute found in XML document (attribute "action" missing or wrong XML structure)</SAP:AdditionalText>
    I'm sending data to oracle 10.0.1.x and using ojdbc14.jar.
    Many thanks,
    Milan

    check for the strucutre as below:
    <root>
      <StatementName1>
    <dbTableName action=”UPDATE” | “UPDATE_INSERT”>
        <table>realDbTableName</table>
    <access>
    <col1>val1</col1>
    <col2>val2new</col2>
    </access>
    <key1>
    <col2>val2old</col2>
    <col4>val4</col4>
    </key1>
    <key2>
    <col2>val2old2</col2>
    </key2>
    </dbTableName>
      </StatementName1>

  • No "action" attribute found

    I am getting the following error messages.  I have checked through the SDN and found many notes on the subject, but I am still unable to figure out why I am getting the following errors.  Can anyone help please?
    2007-06-14 13:51:52 Error No "action" attribute found in XML document ("action" attribute missing or wrong XML structure)
    2007-06-14 13:51:52 Error MP: exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: Error processing request in sax parser: No 'action' attribute found in XML document (attribute "action" missing or wrong XML structure)
    2007-06-14 13:51:52 Error Exception caught by adapter framework: Error processing request in sax parser: No 'action' attribute found in XML document (attribute "action" missing or wrong XML structure)
    2007-06-14 13:51:52 Error Delivery of the message to the application using connection JDBC_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: Error processing request in sax parser: No 'action' attribute found in XML document (attribute "action" missing or wrong XML structure).

    Skip,
    I really don't know whether the below change make sense or not, but can u try it?
    Please change <skip_test action="insert"> as <skip_test action="INSERT"> .
    If it doesn't helps , is it ok for you to create a sql string and do the same as you did? If you want consider below.
    Create Data type as
    Statement  <b>0..Unbounded</b>
        TABNAM <b>1..1</b>(Sub-element of Statement)
            Action  <b>required</b> (Attribute of TABNAM)
            Access <b>1..1</b> (Sub-element of TABNAM)
    Create simple UDF with three inputs(as per your structure)
    <u>UDF</u>
    return "INSERT INTO skip_test(vendor_data1,vendor_data2,vendor_data3) Values ('john', 3/3/2007','Ford')" ;
    Map Constant([]) to Statement
    Map Constant([SQL_DML]) to Action
    Map Inputs - UDF- Access
    If you have multiple source records and you want the data to be inserted with single statement  then please follow the below logic as I suggested in the other thread.
    See below links for more info.
    http://www.flickr.com/photo_zoom.gne?id=549186611&size=o
    http://www.flickr.com/photo_zoom.gne?id=549186651&size=o
    Consider the logic and apply for ur strcture.
    I hope it helps you !!!!
    Best regards,
    raj.

  • Error in committing data while using dynamic attributes

    Hi,
    Module: Performance Management
    Page: Give Final Ratings: Main Appraiser
    Here, I have used dynamic attributes to show the competency name without segments.
    I have added this attribute through controller and i passed value to this attribute in the same ProcessRequest method.
    But, when the manager tries to complete the appraisal for his employee by pressing the continue button in the above mentioned page, the following exception is throwing.
    "This competence already exists within the assessment."
    Is this dynamic attribute will be the problem for this?
    can any one please tell me?
    Thanks in advance,
    SAN

    Hi,
    If you added the column from Extended Controller. It should be a transient attribute to the VO and I think it should not create any issues.
    Error "This competence already exists within the assessment." looks like from an FND Message , You can try to debug this issue by finding the FND Message Name corresponding to the error and search the Message Name in the seeded code.
    -Idris

  • How can I attach an additional action to the "reset" button in the drag and drop interaction?

    Hello,
    I would like to know how to attach an additional behavior to the "reset" button in my drag and drop exercise.
    Here is the background:
    In my drag and drop exercise, when the user drops the source on a target of his choice, certain elements appear and certain elements disappear
    This means that depending on where he dropped the sources, certain elements will be visible and certain elements invisible when he is finished the activity
    Because the sources are not re-draggable once he drops them, he will have the option to reset the exercise and start again from the beginning using the reset button
    My challenge:
    I would like exercise to return to its original state when the user selects the rest button .  this means:
    the dragged objects return to their orginal starting location (this is what naturally occurs when you hit the reset button)
    any objects that had disappeared during the course of the activity reappear
    objects that were not visible in the beginning , but had appeared during the course of the activity, again become invisible
    So how can I add this action to the reset button?

    Allowing the user to redrag the souce after it has been dropped would work for my particular problem  if I could bind an action to the event redragging, namely making the elements reappear that had disappeared and the elements disappear that had appeared when the user dropped it the first time.

Maybe you are looking for

  • Why does iPhoto crash so often when I am trying to assign faces?

    I have a 15" MacBook Pro with Retina Display. I cannot figure out why iPhoto crashes so often. I have rebuilt the library several times. I have transferred the library to a different hard drive and then opened the library under a different user accou

  • How can I restore my UI to Aqua?

    HELP

  • Oracle HTTP Server

    Sir, I once again facing problem of HTTP Server it again not started the file contain the following entries where didn't show any duplicate entries but HTTP server couldn't start please help me. Oracle Appachae file contain following entries # Advanc

  • Run time filter on choose list

    Hi Experts I have two editboxes on a form . Both have choose list. I want to filter the second editbox choose list by the value of first editbox. So I set a condition on second editbox in "BeforeChooselistEvent" It works for the first time but on sec

  • TA21024 How to change language in Mail?

    I found this one, maybe you can use it. It saved me tons of hours after i chekked the small box "Correct spelling automatically" in Prefs->Language&Text. Read on: "On Mac OS X Snow Leopard (and maybe Leopard), the spell checker is smart enough to det