ADF 11.1.1.2 Partical Triggers not firing

We are working with JDeveloper 11.1.1.2 using ADF BC with ADF Rich Faces and have found that the <af:commandMenuItem> and <af:commandToolbarButton> do not appear to be firing off the partialTriggers. Both have been replaced with <af:commandButton> and the partialTriggers fire off just fine. We have recreated the issue in 3 different applications with the same results. Checked IE 7/8 and FF 3.6.x and all have the same behavior. All code, bindings, etc. are created via the drag drop methods.
Development Environment:
<li>ADF Business Components     11.1.1.55.36
<li>Java(TM) Platform     1.6.0_14
<li>Oracle IDE     11.1.1.2.36.55.36
<li>Versioning Support     11.1.1.2.36.55.36
In the sample below, if you click on either the commandMenuItem or the commandToolbarButton the createInsert binding is fired of, but the table is not refreshed. However, if you then refresh the page the new row appears. (i.e. the binding worked).
Sample JSPX using HR schema:
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
          xmlns:f="http://java.sun.com/jsf/core"
          xmlns:h="http://java.sun.com/jsf/html"
          xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
  <jsp:directive.page contentType="text/html;charset=UTF-8"/>
  <f:view>
    <af:document id="d1">
      <af:messages id="m1"/>
      <af:form id="f1">
        <af:panelCollection id="pc1">
          <f:facet name="menus">
            <af:menu text="menu 1" id="m2">
              <af:commandMenuItem actionListener="#{bindings.CreateInsert.execute}"
                                  text="CreateInsert"
                                  disabled="#{!bindings.CreateInsert.enabled}"
                                  id="cmi1" partialTriggers="t1"/>
            </af:menu>
          </f:facet>
          <f:facet name="toolbar">
            <af:toolbar id="t2">
              <af:commandToolbarButton actionListener="#{bindings.CreateInsert.execute}"
                                       text="cmdTBbutton CreateInsert"
                                       disabled="#{!bindings.CreateInsert.enabled}"
                                       id="ctb1" partialTriggers="t1"/>
              <af:commandButton actionListener="#{bindings.CreateInsert.execute}"
                                text="cmdButton CreateInsert"
                                disabled="#{!bindings.CreateInsert.enabled}"
                                id="cb1" partialTriggers="t1"/>
            </af:toolbar>
          </f:facet>
          <f:facet name="statusbar"/>
          <af:table value="#{bindings.CountriesView1.collectionModel}" var="row"
                    rows="#{bindings.CountriesView1.rangeSize}"
                    emptyText="#{bindings.CountriesView1.viewable ? 'No data to display.' : 'Access Denied.'}"
                    fetchSize="#{bindings.CountriesView1.rangeSize}"
                    rowBandingInterval="0"
                    filterModel="#{bindings.CountriesView1Query.queryDescriptor}"
                    queryListener="#{bindings.CountriesView1Query.processQuery}"
                    filterVisible="true" varStatus="vs"
                    selectedRowKeys="#{bindings.CountriesView1.collectionModel.selectedRow}"
                    selectionListener="#{bindings.CountriesView1.collectionModel.makeCurrent}"
                    rowSelection="single" id="t1">
            <af:column sortProperty="CountryId" filterable="true"
                       sortable="true"
                       headerText="#{bindings.CountriesView1.hints.CountryId.label}"
                       id="c3">
              <af:inputText value="#{row.bindings.CountryId.inputValue}"
                            label="#{bindings.CountriesView1.hints.CountryId.label}"
                            required="#{bindings.CountriesView1.hints.CountryId.mandatory}"
                            columns="#{bindings.CountriesView1.hints.CountryId.displayWidth}"
                            maximumLength="#{bindings.CountriesView1.hints.CountryId.precision}"
                            shortDesc="#{bindings.CountriesView1.hints.CountryId.tooltip}"
                            id="it2">
                <f:validator binding="#{row.bindings.CountryId.validator}"/>
              </af:inputText>
            </af:column>
            <af:column sortProperty="CountryName" filterable="true"
                       sortable="true"
                       headerText="#{bindings.CountriesView1.hints.CountryName.label}"
                       id="c2">
              <af:inputText value="#{row.bindings.CountryName.inputValue}"
                            label="#{bindings.CountriesView1.hints.CountryName.label}"
                            required="#{bindings.CountriesView1.hints.CountryName.mandatory}"
                            columns="#{bindings.CountriesView1.hints.CountryName.displayWidth}"
                            maximumLength="#{bindings.CountriesView1.hints.CountryName.precision}"
                            shortDesc="#{bindings.CountriesView1.hints.CountryName.tooltip}"
                            id="it1">
                <f:validator binding="#{row.bindings.CountryName.validator}"/>
              </af:inputText>
            </af:column>
            <af:column sortProperty="RegionId" filterable="true" sortable="true"
                       headerText="#{bindings.CountriesView1.hints.RegionId.label}"
                       id="c1">
              <af:inputText value="#{row.bindings.RegionId.inputValue}"
                            label="#{bindings.CountriesView1.hints.RegionId.label}"
                            required="#{bindings.CountriesView1.hints.RegionId.mandatory}"
                            columns="#{bindings.CountriesView1.hints.RegionId.displayWidth}"
                            maximumLength="#{bindings.CountriesView1.hints.RegionId.precision}"
                            shortDesc="#{bindings.CountriesView1.hints.RegionId.tooltip}"
                            id="it3">
                <f:validator binding="#{row.bindings.RegionId.validator}"/>
                <af:convertNumber groupingUsed="false"
                                  pattern="#{bindings.CountriesView1.hints.RegionId.format}"/>
              </af:inputText>
            </af:column>
          </af:table>
        </af:panelCollection>
      </af:form>
    </af:document>
  </f:view>
</jsp:root>Anyone have any workarounds or know of an existing SR? Are we making some basic mistake?
Thanks in advance,
Steve

I guess you did it wrong. You have to put the partial trigger on the table (pointing to the id of the button) and not the other way around. In the partial trigger field in the IDE you name the id of an other component you like to listen to to update.
Timo

Similar Messages

  • Partial triggers not Fired on partial submit when invalidate component

    Can somebody tell me why Partial triggers are not Fired on partial submit when invalidate component in the validator. Neither error message next to the component is displayed.
    Does somebody has an idea how can i solve this?
    Thank you very much in advance

    Hi, that is a test case which i have promised you:
    The .jspx page contains two fields , one of which has autosubmit = true; You will see, that when invalidate test field 2 partial triigers on field 1 are not fired neither faces message next
    to the field 2 appears.
    If you add programatically Field 1 and Field 2 partial trigerrs this solve the problem.
    I'm waiting for your response.
    Regards,
    Krasi
    <?xml version='1.0' encoding='windows-1251'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:af="http://xmlns.oracle.com/adf/faces"
    xmlns:afh="http://xmlns.oracle.com/adf/faces/html">
    <jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
    doctype-system="http://www.w3.org/TR/html4/loose.dtd"
    doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
    <jsp:directive.page contentType="text/html;charset=windows-1251"/>
    <f:view>
    <afh:html>
    <afh:head>
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1251"/>
    <title>pprTest</title>
    </afh:head>
    <afh:body>
    <af:form>
    <af:panelLabelAndMessage label="Test Field 1">
    <af:outputText binding="#{testBean.testField1Comp}"
    partialTriggers="testField2"/>
    </af:panelLabelAndMessage>
    <af:inputText label="Test Field 2"
    id="testField2"
    autoSubmit="true"
    binding="#{testBean.testField2Comp}"
    partialTriggers="testField2"
    validator="#{testBean.testField2_validator}" />
    </af:form>
    </afh:body>
    </afh:html>
    </f:view>
    </jsp:root>
    import javax.faces.application.FacesMessage;
    import javax.faces.component.UIComponent;
    import javax.faces.context.FacesContext;
    import oracle.adf.view.faces.component.UIXInput;
    import oracle.adf.view.faces.component.core.input.CoreInputText;
    import oracle.adf.view.faces.component.core.output.CoreOutputText;
    import javax.faces.application.FacesMessage.Severity;
    public class TestBean {
    private CoreOutputText testField1Comp;
    private CoreInputText testField2Comp;
    public TestBean() {
    public void testField2_validator(FacesContext facesContext,
    UIComponent uiComponent, Object value) {
    // If input equals "invalidate" set value of the
    // testField1Comp on "Component is invalid"
    // Invalidate input and add an error message
    if (((String)value).equals("invalidate")) {
    testField1Comp.setValue("Component is invalid");
    invalidateInput( (UIXInput)uiComponent,"TestField2","Test Field 2 is invalid!");
    // If input not equals "invalidate" set value of the
    // the testField1Comp on "Component is valid"
    else{
    testField1Comp.setValue("Component is valid");
    //Dynamic adding of the partial targets , solves the problem
    // with losing of partial triggers
    //AdfFacesContext.getCurrentInstance().addPartialTarget(testField1Comp);
    //AdfFacesContext.getCurrentInstance().addPartialTarget(uiComponent);
    public void setTestField1Comp(CoreOutputText testField1Comp) {
    this.testField1Comp = testField1Comp;
    public CoreOutputText getTestField1Comp() {
    return testField1Comp;
    public void setTestField2Comp(CoreInputText testField2Comp) {
    this.testField2Comp = testField2Comp;
    public CoreInputText getTestField2Comp() {
    return testField2Comp;
    public static void invalidateInput(UIComponent uiComp,String compName, String message) {
    showErrorMessage(uiComp , message);
    if (uiComp instanceof UIXInput){
    ((UIXInput) uiComp).setValid(false);
    public static void showErrorMessage(UIComponent component, String message) {
    showMessage(component, message, FacesMessage.SEVERITY_ERROR);
    private static void showMessage(UIComponent component, String message, Severity severity) {
    String compId = component.getId();
    FacesContext ctx = JSFUtils.getFacesContext();
    FacesMessage facesMessage = new FacesMessage(
    severity, component.getId() , message);
    ctx.addMessage(compId,facesMessage );
    }

  • Key-up and down triggers not firing

    I have a multi-record block and want to go to the previous and next records in it when the user presses the up and down arrow keys. I thought this was default behavior, but the keys didn't do anything so I tried putting key-up and key-down triggers on the block. They don't fire at all when I press the up and down arrow keys. The debug messages confirm that nothing happens at all when these keys are pressed. I tried putting form-level triggers on, and they don't fire from that block either, although they do fire from another single-record block.
    I'm thinking maybe it is just some block property that I have not set correctly, but I can't see anything obvious when looking through the properties. I have the Navigation Style set to Change Record, but have tried the other options and nothing changed. The records do cycle through using the <Tab> key.
    Any help is appreciated.
    Thanks,
    Ben
    null

    I'm not running web. I went ahead and tried setting num lock off anyway, but it didn't make any difference. Thanks for the suggestion.
    Ben
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by vijay kumar ([email protected]):
    Are u running ur application in web?
    Try the numeric arrow keys (set num lock off)
    <HR></BLOCKQUOTE>
    null

  • DB Triggers not firing from folders

    Hi All,
    I have a custom DB trigger on the ap_invoice_lines_all table which fires correctly as expected when I update some fields in the lines region.
    However, it does not fire when updating via a folder.
    Any ideas why it may not do so ?
    Thanks

    However, it does not fire when updating via a folder.Please elaborate.
    You can confirm whether there is any update sql on ap_invoice_lines_all got fired using SQL trace.
    By
    Vamsi

  • ORACLE ADF 11g /JSF TO  serviet (Service method) not invoking

    Hi,
    ORACLE ADF 11g /JSF TO serviet (Service method) not invoking
    My project name is : ComplProject
    inside the project im having 1 jsp say x.jsp
    work environment : (oracleADF 11g) jdev11 and weblogic server 10.3
    in x.jsp im displaying 1 go link -> when ever we click on GO link it should go to ComplServlet.java
    i tried like,
    FacesContext.getCurrentInstance().getExternalContext().redirect("/servlet/ComplServlet");
    the "ComplServlet" is an URL pattern in web.xml which points to servlet.
    but not working
    i pointed to faces-config.xml also , not working
    i tried to forward like
    FacesContext context = FacesContext.getCurrentInstance();
    ServletContext sContext = (ServletContext)context.getExternalContext().getContext();
    ServletRequest request = (ServletRequest)context.getExternalContext().getRequest();
    System.out.println("third line...............");
    HttpServletResponse response = (HttpServletResponse)context.getExternalContext().getResponse();
    response.sendRedirect("/servlet/ViewDocument");
    sContext.getRequestDispatcher("/servlet/ViewDocument").include(request, response);
    brief
    (from jsf page) after clicking on GO LINK i need to redirect or control should go to servlet ->service method
    thanks in advance
    regards,
    sandeep

    Hi,
    i tried like,
    FacesContext.getCurrentInstance().getExternalContext().redirect("/servlet/ComplServlet");
    the "ComplServlet" is an URL pattern in web.xml which points to servlet.
    but not workingUse like following.
        public HttpServletRequest getServletRequest() {
            return (HttpServletRequest)facesContext.getExternalContext().getRequest();
        public redirect(String url){
           getServletRequest().sendRedirect(getServletRequest().getContextPath() + "/servlet/ComplServlet");
        }If you are using golink as frank suggested then use it like this.
    <af:goLink text="ComplServlet" destination="/servlet/ComplServlet"/>no need of using context when using goLink,
    Regards,
    Santosh.

  • KEY-COMMIT not firing

    I am working on an Oracle 10g database and am using Oracle Forms Developer 10g to create forms. I have created a new 2 field table in my database:
    CREATE TABLE career_cluster
    (career_cluster_code VARCHAR2(3) NOT NULL
    ,CONSTRAINT career_cluster_pk
    PRIMARY KEY (career_cluster_code)
    USING INDEX
    TABLESPACE GALINDX
    ,career_cluster_desc VARCHAR2(30) NOT NULL
    TABLESPACE galaxy;
    I have also created a form so that users can enter data into this table. I have a career_cluster data block in my form with two items: career_cluster_code (set with a maximum length of 3 in my property palette) and career_cluster_desc (set with a maximum length of 30 in my property palette). Both items are also set in the property palettes to a char data type. In my SQL code (in the form) I always have these two items set as varchar2 with (3) and (30), respectively.
    The form opens fine when I run it, however when I click on my SAVE button my KEY-COMMIT trigger is not fired -- it jumps directly to my ON-ERROR trigger and I get an Oracle ORA-06502 error message. I don't see any inconsistencies in my data types or lengths. Below is my KEY-COMMIT code:
    DECLARE hold_item varchar2(30) := :system.cursor_item;
    hold_record varchar2(10) := :system.cursor_record;
    mess_name varchar2(80);
    mess_text varchar2(80);
    BEGIN
    go_block('career_cluster');
         if (error_code = 40202) then
              goto end_of_trigger;
         end if;
    if :system.block_status = 'CHANGED' then null;
    commit_form;
    if FORM_SUCCESS then null;
    mess_name := 'Transaction Complete';
    mess_text := 'Career Cluster(s) committed to the database';
    DISP_ALERT2(mess_text,mess_name);
    end if;
    else null;
    mess_name := 'No changes to commit';
    mess_text := 'No changes have been made to the Career Cluster Code Table';
    DISP_ALERT2(mess_text,mess_name);
    end if;
    go_item(hold_item);
    go_record(hold_record);
    <<end_of_trigger>>
    null;
    END;
    I put in a DISP_ALERT message right after the BEGIN statement but it never displayed so I don't think this trigger is firing. I also put a similar DISP_ALERT message in my ON-ERROR trigger and that does display, so I know it is going right to my ON-ERROR trigger. Does anyone have any ideas what might be triggering the ON-ERROR?
    Thanks,
    -NTW

    ORA-06502 is a numeric or value error string which is raised when an arithmetic, numeric, string, conversion, or constraint error occurrs. For example, this error occurs if an attempt is made to assign the value NULL to a variable declared NOT NULL, or if an attempt is made to assign an integer larger than 99 to a variable declared NUMBER(2).
    I would suggest you to look at the columns definitions in the table and the form fields/variables data types and lengths and make sure they are same as the backend table columns.
    Also, you don't need to put NULL; after each IF ELSE conditions if you have any other statements.
    I would also suggest that you handle any errors in either exception handler of the block or in the ON-ERROR triggers.
    Try this:
    DECLARE
        hold_item varchar2(30) := :system.cursor_item;
        hold_record varchar2(10) := :system.cursor_record;
        mess_name varchar2(80);
        mess_text varchar2(80);
    BEGIN
        GO_BLOCK('career_cluster');
        IF :system.block_status = 'CHANGED' THEN
            commit_form;
            IF FORM_SUCCESS THEN
                mess_name := 'Transaction Complete';
                mess_text := 'Career Cluster(s) committed to the database';
                DISP_ALERT2(mess_text,mess_name);
            END IF;
        ELSE
            mess_name := 'No changes to commit';
            mess_text := 'No changes have been made to the Career Cluster Code Table';
            DISP_ALERT2(mess_text,mess_name);
        END IF;
        GO_RECORD(hold_record);
        GO_ITEM(hold_item);
    EXCEPTION
      WHEN OTHERS THEN  MESSAGE(TO_CHAR(ERROR_CODE)||'-'||ERROR_TEXT);
      RAISE FORM_TRIGGER_FAILURE;
    END;

  • Listeners not firing

    Gurus,
    Facing this kind of issue quite often now
    I have a page with some selectOneChoice, whose on valueChangeListener I am doing some activity. valueChange listener is firing for one selectOneChoice and not for other.
    Faced something similar with popup, buttons in af:table etc. The code is working in one page and not working in some other page.
    <af:selectOneChoice label="Not Updated"
                                                        value="#{viewScope.opportunityManagement.notUpdated}"
                                                        id="soc1"
                                                        unselectedLabel="Select"
                                                        autoSubmit="true"
                                                        valueChangeListener="#{viewScope.opportunityManagement.changeNotUpdated}">
                                      <f:selectItems value="#{viewScope.opportunityManagement.notUpdatedList}"
                                                     binding="#{viewScope.opportunityManagement.si1}"
                                                     id="si1"/>
                                    </af:selectOneChoice>Manageb bean code
        public void changeNotUpdated(ValueChangeEvent valueChangeEvent) {
            valueChangeEvent.getComponent().processUpdates(FacesContext.getCurrentInstance());
            logger.info("in changeNotUpdated");
            Connection connection = null;
            Statement stmt = null;
            ResultSet resultset = null;
            DatabaseConnection db = null;
            StringBuffer query = new StringBuffer();
            try {
                db = new DatabaseConnection();
                connection = db.getConnection();
                if (connection != null) {
                    stmt = connection.createStatement();
                    query.delete(0, query.length());
                    query.append("select * from XXDMV_AAC_LM_DAYS_UPD_LIST_V");
                    logger.info("Query is:: " + query.toString());
                    resultset = stmt.executeQuery(query.toString());
                    if (resultset != null) {
                        //int size = 0;
                        while (resultset.next()) {
                            notUpdatedList.add(new SelectItemGroup(resultset.getString(2)));
                            notUpdatedMap.put(resultset.getString(2),
                                              resultset.getString(1));
                resultset.close();
                connection.close();
            } catch (NamingException e) {
                logger.error("Naming Exception Error.");
                e.printStackTrace();
            } catch (SQLException e) {
                logger.error("SQL Exception Error.");
                e.printStackTrace();
            } finally {
                resultset = null;
                connection = null;
        }this code is not getting called however same code fires for another selectOneChoice
    its a JEE application with Adf faces as view tier
    thnks

    Another one not working
    <af:panelGroupLayout id="pgl1" layout="horizontal"
                                             halign="right"
                                             inlineStyle="width:557px; height:29px;">
                          <af:selectOneChoice label="Branch"
                                              value="#{viewScope.opportunityManagement.branchName}"
                                              valueChangeListener="#{viewScope.opportunityManagement.changeUpdateBranch}"
                                              id="soc3" autoSubmit="true">
                            <f:selectItems value="#{viewScope.opportunityManagement.branchList}" id="si3"/>
                          </af:selectOneChoice>
                          <af:selectOneChoice label="Person" id="soc4"
                                              value="#{viewScope.opportunityManagement.salesExecutive}"
                                              autoSubmit="true"
                                              valueChangeListener="#{viewScope.opportunityManagement.changeUpdatePerson}">
                            <f:selectItems value="#{viewScope.opportunityManagement.salesExecutiveList}" id="si4"/>
                          </af:selectOneChoice>
                        </af:panelGroupLayout>
        public void changeUpdateBranch(ValueChangeEvent valueChangeEvent) {
            logger.info("in changeUpdateBranch");
            valueChangeEvent.getComponent().processUpdates(FacesContext.getCurrentInstance());
            fillTodaysActivity(this.getBranchName(), this.getSalesExecutive());
            fillMissingActivity(this.getBranchName(), this.getSalesExecutive());
        public void changeUpdatePerson(ValueChangeEvent valueChangeEvent) {
            logger.info("in changeUpdatePerson");
            valueChangeEvent.getComponent().processUpdates(FacesContext.getCurrentInstance());
            fillTodaysActivity(this.getBranchName(), this.getSalesExecutive());
            fillMissingActivity(this.getBranchName(), this.getSalesExecutive());
        }1st one is not working 2nd is working :(

  • Tirgger not firing sometimes

    Hi,
    Here is the problem:
    Table A has 4 triggers and one of them is updating a field in table B. On all but one installation table B does not get updated all the time. (We have this code on different versions of Oracle on Solaris, Windows and Linux)
    From the triggers one is on delete and the other three are on "insert or update" including the one, which is supposed to update the B table. A simple update of the record usually takes care of the problem meaning that the trigger gets fired and the B table gets updated. At one point I had to run the update two times for the trigger to fire but I have not been able to reproduce this (update not firing the trigger)
    There is nothing to disable the triggers. We have not been able to find anything special about the records, which when inserted in A and for which the trigger did not fire at the time.
    Could it be that the existence of several triggers all of which are on "insert or update" causes the problem? What else can we look into? It is rather annoying because it happens only every so often and it is usually discovered days after the fact.
    Thanks,
    Jivko

    HI,
    Generally if the trigger size exceeds 64K, it may not fire for the given action even though it is a right action. What i will suggest you is, Please split your "insert OR update" trigger into two different individual triggers, i.e, one with insert and another with update. Even if it exceeds, incorporate some of the functionality into PL/SQL block (procedures) and call it inside the Trigger.
    Regards,
    G. Rajakumar.

  • ActionListener not firing within panelGrid (which is within a dataTable)

    I have a page with several forms on it:
    <h:form>
    ... commandLinks here are working
    </h:form>
    <h:form>
    <h:panelGrid>
    ...the actionListener here is firing
    </h:panelGrid>
    </h:form>
    <h:form>
    ... commandLinks here are working
    </h:form>
    <h:dataTable value="#{collection}" var="item">
    <h:column>
    <h:form>
    <h:panelGrid>
    ...actionListeners here ARE NOT FIRING!
    </h:panelGrid>
    </h:form>
    </h:column>
    </h:dataTable>
    I've tried many things to get this to work. I've checked spelling at least 10 times. I've put the whole page in a single form. Nothing seems to work. The bean associated with the actionListener is not even being instantiated unless I include a value binding expression in the form somewhere, but even then the listener is still not fired.
    So, please tell me if this is a known bug, or if it should work. I'm using JSF 1.1_1.
    All the data and form fields get displayed correctly, just the actionListeners are not firing. I've tried both methods of triggering an actionListener. Neither work.
    Why doesn't anyone from Sun post here anymore?????

    Could you please copy/paste the whole jsp page?I had to abandon the previous page structure due to time constraints. But, now I am having the same problem on another page, pasted below. In this case, the contactInfoForm.populate actionListeners are not firing:
    <?xml version="1.0" ?>
    <jsp:root version="2.0"
      xmlns:jsp="http://java.sun.com/JSP/Page"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:c="http://java.sun.com/jstl/core"
      xmlns:x="http://java.sun.com/jstl/xml"
      xmlns:fmt="http://java.sun.com/jstl/fmt"
      xmlns:t="http://jakarta.apache.org/struts/tags-tiles"
      xmlns:htm="http://jsftutorials.net/htmLib">
      <f:subview id="content">
        <htm:div styleClass="heading">
          <htm:h2>
             <h:outputFormat value="#{msgs[heading]}">
                <f:param value="#{param.firstName}" />
                <f:param value="#{param.lastName}" />
             </h:outputFormat>
          </htm:h2>
        </htm:div>
        <htm:div styleClass="contentContainer">
        <h:messages/>
        <h:form>
          <h:commandLink id="backToPersons" styleClass="commandLink1" action="section.persons">
             <h:outputText value="#{msgs['persons.common.command.backToPersons']}"/>
          </h:commandLink>
        </h:form>
        <h:form style="padding-top: 10px">
          <h:commandLink id="newContactInfo" styleClass="commandLink1" action="/persons/contactInfo/newContactInfo">
             <h:outputText value="#{msgs['persons.person.contactInfo.list.command.new']}"/>
             <f:param name="personId" value="#{param.personId}"/>
             <f:param name="firstName" value="#{param.firstName}"/>
             <f:param name="lastName" value="#{param.lastName}"/>
          </h:commandLink>
        </h:form>
        <h:form>
           <h:dataTable value="#{contactInfoForm.contactInfoList}" var="contactInfo" cellpadding="5" cellspacing="0" styleClass="dataTable" headerClass="dataTableHeader" rendered="#{contactInfoForm.hasContactInfo}">
              <h:column>
                <f:facet name="header">
                   <h:outputText value="#{msgs['persons.person.contactInfo.list.header.contactInfoId']}"/>
                </f:facet>
                <htm:center><h:outputText value="#{contactInfo.contactInfoId}" styleClass="dataTableContent"/></htm:center>
              </h:column>
              <h:column>
                <f:facet name="header">
                   <h:outputText value="#{msgs['persons.person.contactInfo.list.header.description']}"/>
                </f:facet>
                <h:outputText value="#{contactInfo.description}" styleClass="dataTableContent"/>
              </h:column>
              <h:column>
                <f:facet name="header"></f:facet>
                <htm:center>
                   <h:commandLink styleClass="commandLink1" action="/persons/contactInfo/viewContactInfo" actionListener="#{contactInfoForm.populate}">
                      <f:param name="firstName" value="#{param.firstName}"/>
                      <f:param name="lastName" value="#{param.lastName}"/>
                      <f:param name="contactInfoId" value="#{contactInfo.contactInfoId}"/>
                      <h:outputText value="#{msgs['command.view']}"/>
                   </h:commandLink>
                </htm:center>
              </h:column>
              <h:column>
                <f:facet name="header"></f:facet>
                <htm:center>
                   <h:commandLink styleClass="commandLink1" action="/persons/contactInfo/editContactInfo" actionListener="#{contactInfoForm.populate}">
                      <f:param name="firstName" value="#{param.firstName}"/>
                      <f:param name="lastName" value="#{param.lastName}"/>
                      <f:param name="contactInfoId" value="#{contactInfo.contactInfoId}"/>
                      <h:outputText value="#{msgs['command.edit']}"/>
                   </h:commandLink>
                </htm:center>
              </h:column>
           </h:dataTable>
           <h:outputText value="#{msgs['persons.person.contactInfo.list.noRecords']}" styleClass="copy2" rendered="#{not contactInfoForm.hasContactInfo}"/>
        </h:form>
        </htm:div>
      </f:subview>
    </jsp:root>

  • Trigger not firing in linux OS

    Hi All:
    Initially i am developed a form using form builder and i deployed this form in Windows OS this is working fine when i am deploying this same form in Linux OS
    that is not working even small trigger also not firing.so here we need to change any initial set up any help please.

    We are developing and deploying our Forms application on Linux, have no problem with the triggers whatsoever - any specific reason why developing on windows when deploying from Linux? otherwise, you have to recompile every time you move the form to the Linux iAS box for deployment (as Tony mentioned).

  • Popup not firing on closing browser or refreshing

    Hi ADF experts,
    I have set the af:document tag uncommittedDataWarning="on". But my popup not firing.
    I have made inputText's autoSubmit="true"
    Please help me out.
    Thanks.

    Hi Frank,
    Yes I made a POJO in model layer and created a datacontrol from that. After that I dragged to the jsff as a table with 2 columns.
    The 2 columns are inputText.
    The below scenario happened
    Created a sample taskflow and a jsff page fragment
    Created model based on POJO.
    The POJO datacontrol dragged onto a jsff page as a table with 2 fields.(The fields made inputtext).
    First field I kept autoSubmit=”true” and added a valuechangeListener
    Second field kept as it is.
    Tested as below:
    I tried entering a value in the first textbox. And closed the browser it got closed(No warning message)
    Second textbox after I entered value and closed browser(warning message shown)
    Difference: valuechangeListener implemented in first.
    Product.java
    public class Product {
        private String productId;
        private String productName;
        public Product() {      
            super();
        public Product(String productId,String productName) {      
           this.productId=productId;
           this.productName=productName;          
        public void setProductId(String productId) {
            this.productId = productId;
        public String getProductId() {
            return productId;
        public void setProductName(String productName) {
            this.productName = productName;
        public String getProductName() {
            return productName;
    ProductBean.java
    public class ProductBean {
        private List<Product> products=new ArrayList();
        public ProductBean() {
           this.createData();
        private void createData(){
            products.add(new Product("101","Alto"));
            products.add(new Product("102","Benz"));
            products.add(new Product("103","Chevrolet"));
            products.add(new Product("104","Cruze"));
            products.add(new Product("105","Accord"));
        public List<Product> findAllProducts() {
            return products;
    jsff
    <af:table value="#{bindings.Product.collectionModel}" var="row"
                  rows="#{bindings.Product.rangeSize}"
                  emptyText="#{bindings.Product.viewable ? 'No data to display.' : 'Access Denied.'}"
                  fetchSize="#{bindings.Product.rangeSize}" rowBandingInterval="0"
                  filterModel="#{bindings.ProductQuery.queryDescriptor}"
                  queryListener="#{bindings.ProductQuery.processQuery}"
                  filterVisible="true" varStatus="vs"
                  selectionListener="#{bindings.Product.collectionModel.makeCurrent}"
                  rowSelection="multiple" id="t1">
          <af:column sortProperty="#{bindings.Product.hints.productId.name}"
                     filterable="true" sortable="true"
                     headerText="#{bindings.Product.hints.productId.label}" id="c1">
            <af:inputText value="#{row.bindings.productId.inputValue}"
                          label="#{bindings.Product.hints.productId.label}"
                          required="#{bindings.Product.hints.productId.mandatory}"
                          columns="#{bindings.Product.hints.productId.displayWidth}"
                          maximumLength="#{bindings.Product.hints.productId.precision}"
                          shortDesc="#{bindings.Product.hints.productId.tooltip}"
                     valueChangeListener="#{pageFlowScope.managedBean1.sdas}"     autoSubmit="true" id="it2">
              <f:validator binding="#{row.bindings.productId.validator}"/>
            </af:inputText>
          </af:column>
          <af:column sortProperty="#{bindings.Product.hints.productName.name}"
                     filterable="true" sortable="true"
                     headerText="#{bindings.Product.hints.productName.label}"
                     id="c2">
            <af:inputText value="#{row.bindings.productName.inputValue}"
                          label="#{bindings.Product.hints.productName.label}"
                          required="#{bindings.Product.hints.productName.mandatory}"
                          columns="#{bindings.Product.hints.productName.displayWidth}"
                          maximumLength="#{bindings.Product.hints.productName.precision}"
                          shortDesc="#{bindings.Product.hints.productName.tooltip}"
                          id="it3">
              <f:validator binding="#{row.bindings.productName.validator}"/>
            </af:inputText>
          </af:column>
        </af:table>
    Please help..Shall I raise it as a bug.
    Thanks,
    Roy

  • Event.deactivate is not firing with flash plugin 10,2,152,26 embeded in IE 8 and above

    I am working on a portal which is built in flex. I wanted to perform some action based on my applications is in focus or out of focus. So  I tried to use two Events for this purpose Event.Activate and Event.Deactivate inside my flex code.
    These events fire perfectly in FF 3.0 and above, Safari, Chrome and these events get triggered till IE 7.
    But when I switch to IE 8 and above versions with latest flash player plugin 10,2,152,26 the Event.deactivate is not firing, and I am not able to detect whether my Flex application is out of focus.
    I tried doing some research around this issue both using Flex Events and Javascript approach using window.onfocusin and window.onfocusout, but still no luck in IE 8 and higher versions with latest Flash plugin 10,2,152,26.
    Has someone faced this kind of issue. Any help or solution to this problem would be appreciated. As we have a large number of users viewing this portal in IE 8 with latest flash plugin.
    The code is simple and I have pasted below:
    package {
      import flash.display.*;
      import flash.utils.*;
      import flash.events.*;
      public class Main extends Sprite {
        public function Main() {
          this.addEventListener(Event.ACTIVATE, activateListener);
          this.addEventListener(Event.DEACTIVATE, deactivateListener);

    this is a known issue (or, really a collection of issues) related to how the deactivate event works in different browsers.  check colin moock's blog.
    for most, but not all, purposes using a mouseleave event works well-enough.

  • On Command Link Action is not Firing

    Hi
    I am using JDev Version 11.1.1.6
    I have command link where i wrote a method in bean for Action. And the same command link has the showpopup behaviour
    My assumption was on click of command link Action method fires first then showpopup behaviour fires next.
    But when i click on command link action method is not firing, only showpopup behaviour is firing .
    is it expected behaviour?
    Many Thanks,
    ~Jagadeesh Badri

    Hi Jagadeesh
    Yes, it is an expected behaviour. The documentation about af:showPopUpBehaviour says that:
    The showPopupBehavior tag cancels the client event defined by the triggerType. Canceling the client event will prevent delivery to the server. This is significant for action events raised by command family components because the server-side action listeners will be ignored. All actionListener method bindings and associated action listeners will not be invoked when the triggerType of "action" is used.
    This means that if you use the triggertype of action, then your action method in the link will be ignored. Maybe if you change the triggerType to 'Click' you will get your actionListener triggered and the popup showed.

  • Why actionlistener not fired?

    Dear All,
    I have two tables with different data bindings, rendering output in one column as comnadLink component
    On both tables comnadLink components has actionlistener binded to one method on backing bean.
    For some reason actionListener is not firing for one of the tables. It does not metter which compannent I will use for rendering (table or tree) actionListener never fires when this particualr binding is used.
    What could be the reson?

    Hi Again,
    Below is page definition and actual page source.
    Workflow is following:
    1. There is page showResult to render some report outcome
    2. Page definition has one invokeMethod which accepts parameter resultId and calls remote EJB
    3. During workflow resultId is stored by another backing bean in requestScope #{requestScope.resultId} and call forwarded into showResult page
    4. Outcome rendered correct by showResult page. Part of the outcome is comandLink component within iterator (or table)
    5. Clicking on comandLnk should result in calling method on backing bean but it is not happen. Method is not called.
    6. Any other comandLink components out of iterator work correctly.
    I tried to use table and ADF component instead of trinidad, but result is the same.
    If I replace #{requestScope.resultId} by hardcoded value in page definition , then commandLink works
    <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel" version="11.1.1.56.60" id="showResultPageDef"
                    Package="client.pageDefs">
      <executables>
        <variableIterator id="variables" Refresh="always"/>
        <methodIterator Binds="getResultBytId.result" DataControl="ResultEJB" RangeSize="200"
                        BeanClass="model.entity.Result"
                        id="getResultByIdIterator" Refresh="always" CheckParams="true"/>
      </executables>
      <bindings>
        <methodAction id="getResultById" Action="invokeMethod"
                      MethodName="getResultById" DataControl="ResultEJB"
                      InstanceName="ResultEJB.dataProvider"
                      ReturnName="ResultEJB.methodResults.getResultById_ResultEJB_dataProvider_getResultById_result">
          <NamedData NDName="resultId" NDValue="#{requestScope.resultId}"
                     NDType="java.lang.Object"/>
        </methodAction>
        <tree IterBinding="getResultByIdIterator" id="Result" ChangeEventPolicy="none">
          <nodeDefinition DefName="model.entity.Result" Name="Result0">
            <AttrNames>
              <Item Value="description"/>
              <Item Value="header"/>
              <Item Value="value"/>
            </AttrNames>
            <Accessors>
              <Item Value="resultDetails"/>
            </Accessors>
          </nodeDefinition>
          <nodeDefinition DefName="model.entity.ResultDetails" Name="Result1">
            <AttrNames>
              <Item Value="description"/>
              <Item Value="nextParams"/>
              <Item Value="nextStep"/>
              <Item Value="value"/>
            </AttrNames>
          </nodeDefinition>
        </tree>
      </bindings>
    </pageDefinition>Page:
    <tr:iterator var="h" rows="0" first="0" value="#{bindings.Result.collectionModel}" id="hiter">
    <tr:commandLink text="#{h.value}" id="cl1"
                                            actionListener="#{backing_showResult.proceedDrillDown}" immediate="true"/>
    </tr:iterator>Any suggestions?
    Thank you.

  • Key-nextrec not firing in forms 10g

    I have a code in the above trigger, but it is not firing, I have it in the block property and no other place in the form
    message('In key next rec----'); message(' ');
    IF :SYSTEM.Last_Record = 'TRUE' Then
    Null;
    Else
    next_record;
    End If;

    when-new-record-instance runs when you navigate to the next record.
    Key-Nxtrec (Nxtrec is the correct spelling) only runs when you press the key assigned to call that trigger. In my environment, it is the Shift+ Down-Arrow key, but it could be just Down-Arrow -- it all depends on what key sequence is assigned to Forms Function Number 67 in your Forms Resource file, FMRWEB.res (or fmrusw.res).
    So if the trigger runs when you press the correct keyboard key, and you issue the message but do not call the Next_Record; built-in, focus will not navigate to the next record in your running form.

Maybe you are looking for

  • How do I unmerge my husband's phone from mine since the last update?

    My husband and I use  my iCloud account on our iPhones, but since the last update the messages are merged. How do I unmerge them? I am now getting copied on the texts getting sent to his phone and if I text him it shows up on my phone.

  • How to get the url of a document in content management?

    Hello, I have used API  'SKWF_PHIO_CONTENT_URL_GET to get the url of a file in CRM content management. But when I tried to open this url in explorer got error message "SSF error: Decoding not possible". Could any one please help me to resolve this pr

  • Need help in clearing an invalid value entered in an inputLOV popup.

    Hi I am using the JDeveloper Studio Edition Version 11.1.1.1.0 Our application uses the Springs Framework with ADF. We used an af:inputListOfValues component coupled with a disabled af:inputText component to make it like a name-value pair. As soon as

  • Two half report in one A4 size.

    I have a report. the preview of that report is half of A4 size. so i want to show two reports in one A4 size. How to do this? Thanks and regards, Skud.

  • Run Query in Background

    Hello Gurus,                Could you send me how to run query in background. There is a record which uses 2-3 years old data which takes 4-5 hrs to run, so we decided to run this query as soon as ODS is loaded with data everyday. This will solve the