Binding not firing

I am writing a Universal app. I have a dto (MobileProject) that has several properties, one of which is ShortName.
In my ViewModel, I have a property (SelectedProject) to hold which item is bound to the SelectedItem in the ComboBox.
        private MobileProject _selectedProject;
        [RestorableState]
        public MobileProject SelectedProject
            get { return _selectedProject; }
            set
                if (value != null)
                    CanSave = (!string.IsNullOrEmpty(value.ShortName));
                SetProperty(ref _selectedProject, value);
        <ComboBox x:Uid="ProjectList"
                      Header="Projects"
                      PlaceholderText="select a project" 
                      ItemsSource="{Binding Source={StaticResource lvProjects}}"
                      SelectedItem="{Binding SelectedProject, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                      DisplayMemberPath="ShortName" />
        <TextBox x:Uid="ProjectName"
                     Header="Project Name"
                     PlaceholderText="required"                    
                     Text="{Binding SelectedProject.ShortName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
My ComboBox happily lists all my projects, and when I select one, the textbox is updated. However, when I overwrite the text in the TextBox,
the SelectedProject property is not being notified in the ViewModel of the text change, so CanSave is not being set via SelectedProject, therefore my
button which is bound to the CanSave property never gets enabled when I type a ShortName. As far as I can see, everything looks fine.
If I override the CanSave so the button is enabled, when I click the button and check the selectedProject properties, the ShortName reflects my changes.
How can I get the SelectedProject property to fire when I'm typing my changes into the TextBox?

Thanks for your code, however I think you post the question in  a incorrect forum, this is Windows Store app forum instead of a WPF forum. Actually there are some difference between WPF and Windows Store App on XAML, I'm afraid I may give you wrong
direction.
If you would like to get more sufficient suggestion, you can post a new question at
https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=wpf
--James
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • 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>

  • 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

  • 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

  • Autocomplete search appearing but search not firing?

    I am using the following in my interactive report to provide an autocomplete Jquery search fields
    When typing in an item in the search boxes the autocomplete works find but for some reason it is not firing the search anymore? Any ideas on what I am missing with this? I have spent the week on it and it would be great to sign off the week with a working report!
    Many Thanks
    In the Javascript section of the page I am using
    function srch2(pItem, pColumn) {  
    $.post('wwv_flow.show',
    {"p_request" : 'APXWGT',
    "p_widget_action" : 'FILTER',
    "p_widget_action_mod" : 'ADD',
    "p_widget_mod" : 'ACTION',
    "p_widget_name" : 'worksheet',
    "p_flow_id" : $v('pFlowId'),
    "p_flow_step_id" : $v('pFlowStepId'),
    "p_instance" : $v('pInstance'),
    "x01" : $v('apexir_WORKSHEET_ID'),
    "x02" : $v('apexir_REPORT_ID'),
    "x03" : pColumn,
    "f01" : ['COLUMN', pColumn, '=', $v(pItem), null, 'minutes']
    function(data){
    //when the filter has been successfully applied the report has to be refreshed
    if(data=="true"){
    gReport.pull();
    //clear the item
    $s(pItem,'');
    $('#P4_AC').bind("result", function(){   
    //on selecting a value then fire the search function
    srch2(this, 'INDSNAME');
    // ac item P4_AC2
    $('#P4_AC2').bind("result", function(){   
    srch2(this, 'INDFNAME');
    // ac item YEARD
    $('#YEARD').bind("result", function(){
    srch2(this, 'NEWYEAR');
    });

    Nico Martens wrote:
    Console the most left tab of firebug. It shows all dynamic actions that are firedyes, exactly. Open up firebug and watch the console. Ideally, when selecting a value from the autocomplete 2 ajax calls should appear. The first one is the one to apply filters, the second on if the refresh (report pull). You can easily identify them through watching the headers. Be sure to check out the response tab for the 'apply filter' ajax: the response should be 'true'.
    If no ajax call pops up however, the problem is with the onSelect of the autocomplete and/or the search button.

  • 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.

  • 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-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.

  • Output--- automatic mail is not firing to sold to party.

    Dear Gurus,
        My client requirement is to sent mail to sold party when saving a sales order.
      For this I creted a new output type with following assignments
    In General data tab:acess sequence assigned and Access to conditions is checked
    In Default values tab: Dispatch time(send immadiately), transmission medium(External send), partner function(Sp
    ),Communication strategy(CS01) assigned.
    In Time tab: no information given
    In Storage system tab :Storage mode(print and archive),Document type(SDOORDER) info given.
    In Print tab: print parameters(sales org) assigned.
    In mail tab: nothing assigned.
    In sort order tab:nothing assigned
    In mail title and texts: En and DE languages are assigned.
    in processing routines: program and form routine is assgned.
    in partner functions: External send+ SP is maintained.
    and in condtion record maintained in VV11 tcode with details
    Partner function and in communication assigned printer and  selected check box print immadiately and release after out.
    But automatic mail is not firing when saving the sales order, but in change sales order in menu bar selected sales document and issue output to and selected print then mail is firing to the sold to party, pls tell me where i had done the mistake.
    Rgrads,
    kishore.
    Edited by: kishore gopala on Sep 13, 2008 1:42 PM

    Check whether you have maintained the email address in the customer master of Sold to party in the General Data>Address Tab> Under Communication Area??
    In the SCOT Transaction, check under SMTP (SMTP Mail Server)-->under INT (Internet) --> an  '*' asterisk has been maintained or not.
    Check the status of the email output in the Sales Order, is it showing with a green traffic light???
    If it is showing with a green traffic light you can manually see the status of the mail mesages in Transaction SOST.(by executing, by putting the Sender Id)
    If they have not gone you will be able to see them queued up there.
    Select the individual messages and press execute button. By doing this email outputs will be released.
    Hope this helps you.
    Caution: One word of caution is that SCOT is a very critical transaction. And if you are working on a live server, do not play with it as it controls the entire SAPconnect Administration Nodes.
    Hope this helps.
    Regards,
    Vivek

  • WHEN-NEW-ITEM-INSTANCE TRIGGER NOT FIRING IN FORM PERSONLIZATION

    We are upgrading to R12, when-new-item-instance trigger written for radio group not firing. using USO-821 Order Administrator Responsibility the function order capture.After clicking on actions push button
    opening Copy Quote for this Form Personalization written.
    For Radio Group Copy-Group when-new-item-instance trigger written but this trigger not firing,but In 11i Instance its Firing.
    trigger-event: when-new-item-instance
    Trigger-object:copy_group
    condition:when copy_group='ALL'
    Action: showing message.
    The same when-new-instance trigger written in form item level and trigger execution hierarchy properties 'OVERRIDE'.
    Just I am thinking this overriding by Item level trigger of form.
    Please kindly help me quickly .What I need to do?
    How can I make trigger to Fire?
    Please kindly give solution.....Its very urgent Requirement.pls help me.
    Regards,
    Basavaraj

    Please kindly help me quickly .What I need to do?
    > Please kindly give solution.....Its very urgent Requirement.pls help me.
    Kindly log a SR for urgent issues.
    Thanks,
    Hussein

  • WHEN-NEW-ITEM-INSTANCE TRIGGER NOT FIRING IN FORM PERSONLIZATION(R12 UPGRAD

    We are upgrading to R12, when-new-item-instance trigger written for radio group not firing. using USO-821 Order Administrator Responsibility the function order capture.After clicking on actions push button
    opening Copy Quote for this Form Personalization written.
    For Radio Group Copy-Group when-new-item-instance trigger written but this trigger not firing,but In 11i Instance its Firing.
    trigger-event: when-new-item-instance
    Trigger-object:copy_group
    condition:when copy_group='ALL'
    Action: showing message.
    The same when-new-instance trigger written in form item level and trigger execution hierarchy properties 'OVERRIDE'.
    Just I am thinking this overriding by Item level trigger of form.
    Please kindly help me quickly .What I need to do?
    How can I make trigger to Fire?
    Please kindly give solution.....Its very urgent Requirement.pls help me.
    Regards,
    Basavaraj

    Please kindly help me quickly .What I need to do?
    > Please kindly give solution.....Its very urgent Requirement.pls help me.
    Kindly log a SR for urgent issues.
    Thanks,
    Hussein

  • Breakpoints not firing

    Hello Dev's,
    I am having a problem in only one project and I have even tried to recreate the project with no success but previous projects created years prier (made with previous versions of FB) are not experiencing this.
    I am trying to place breakpoints on functions in deep rooted classes (a class that is loaded by a class by a class, its a smaller component from a greater project) which I know is firing as I see the results on the screen.
    However the break point does not fire and remains a blue circle, indicating it won't fire. If I remove and re add the break point while the app is running, it will become checked but once I run the debugger the break point turns back into a blue dot.
    If I put a break point in one of the first lines of the application class, like in it's constructor, it will trigger and then my deeper break points will fire. But if I don't make this out of the way break point (in the main class) the following break points are not firing.
    Thoughts?
    Flex Builder 4.5
    SDK 4.5.1
    Debugger 11.6.5.635 (in FireFox)

    I haven’t seen that before, but in theory would be possible if several SWFs are being loaded and you get a class collision and the breakpoint in the app changes the timing of the loaded SWFs.

  • OnRowUpdating Event not firing in my DataGrid in custom web part in my production SharePoint 2013 Foundation instance

    Hi,
    I have a custom visual web part that I've developed for SharePoint 2013 Foundation.  I am using Visual Studio 2013 to develop this web part. 
    In my visual web part I have GridView that I use to update data in a SQL 2008 R@ Server Database.  In dev and test the OnRowUpdatingEvent fires properly, but in production it does not.  I have the same version of SharePoint running on dev/test/prod. 
    The main difference between the three environments is the hardware.  Production has a much beefier sever than dev and test.  Dev and test are also virtual machines where production is.
    At first I thought my problem was cache related, and I made adjustments per this article:
    http://www.dmcinfo.com/latest-thinking/blog/id/8657/fix-sharepoint-2013-distributed-cache-timeouts
    That didn't help because the event is still not firing.  I took my test application and pointed it to the production database, and that event still fires in test but not in production. So I believe that eliminates database permission errors since I'm
    using the same credentials in both instances.
    My guess is that I need to change some settings in the production environment, but I'm not sure at this point what that might be.
    Any suggestions on what settings to look at?
    Brian
    Brian Hochgurtel
    My blog

    Try this solution :
    http://stackoverflow.com/questions/5893373/c-sharp-rowupdating-method-not-called-when-update-is-clicked-in-a-gridview

  • 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;

  • Sharepoint 2013 document library incoming email without attachment not firing event and not getting email

    sharepoint document library incoming email without attachment not firing event and not getting email
    If email contains attachment it works. Is there any setting in document library that will allow emails and eventhandler to fire with out attachment?
    MCTS Sharepoint 2010, MCAD dotnet, MCPDEA, SharePoint Lead

    What is the purpose of email sent to document library if no attachment. What document library will do what that email if it cant find attachment to save and create a spdoc object. If you want to store email/communication body then opt for site mailbox
    app.
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

Maybe you are looking for