Unable to call Action Method of the Backing Bean

I have created a jsf page with several tables and input text boxes. I also have the command button to submit the values to the backing bean but, the action method "saveBean()" is not being called
Hear are the codes listed below listed
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<h:form id="myBioDataForm">
<h:panelGrid columns="2" >
          <h:panelGroup  >
               <h:outputLabel id="NameLabel" value="Name" style="font-size: medium"/>
          </h:panelGroup>
          <h:panelGroup >
               <h:inputText id="NameTextBox" value="#{bioData.objBioDataVo.name}"/>
          </h:panelGroup>
          <h:panelGroup  >
               <h:outputLabel id="DOBLabel" value="DOB" style="font-size: medium"/>
          </h:panelGroup>
          <h:panelGroup >
               <t:inputCalendar id="DOBCalendar" renderAsPopup="true"  value="#{bioData.objBioDataVo.doB}"/>
          </h:panelGroup>
          <h:panelGroup  >
               <h:outputLabel id="AddressLabel" value="address" style="font-size: medium"/>
          </h:panelGroup>
          <h:panelGroup >
               <h:outputLabel value=""/>
          </h:panelGroup>
          <h:panelGroup  >
               <h:outputLabel id="Street" value="Street" style="font-size: medium"/>
          </h:panelGroup>
          <h:panelGroup >
               <h:inputText id="StreetTextBox" value="#{bioData.objBioDataVo.street}"/>
          </h:panelGroup>
          <h:panelGroup  >
               <h:outputLabel id="City" value="Town/City" style="font-size: medium"/>
          </h:panelGroup>
          <h:panelGroup >
               <h:inputText id="CityTextBox" value="#{bioData.objBioDataVo.city}"/>
          </h:panelGroup>
          <h:panelGroup  >
               <h:outputLabel id="Pincode" value="Pincode" style="font-size: medium"/>
          </h:panelGroup>
          <h:panelGroup >
               <h:inputText id="PincodeTextBox" value="#{bioData.objBioDataVo.pincode}"/>
          </h:panelGroup>
          <h:panelGroup  >
               <h:outputLabel id="Mobile" value="Mobile" style="font-size: medium"/>
          </h:panelGroup>
          <h:panelGroup >
               <h:inputText id="mobileTextBox" value="#{bioData.objBioDataVo.mobile}"/>
          </h:panelGroup>
          <h:panelGroup  >
               <h:outputLabel id="Email" value="Email" style="font-size: medium"/>
          </h:panelGroup>
          <h:panelGroup >
               <h:inputText id="emailTextBox" value="#{bioData.objBioDataVo.email}"/>
          </h:panelGroup>
          <h:panelGroup  >
               <h:outputLabel id="Gender" value="Gender" style="font-size: medium"/>
          </h:panelGroup>
          <h:panelGroup >
               <h:selectOneRadio value="#{bioData.objBioDataVo.gender}">
                    <f:selectItem itemLabel="Male" itemValue="Male"/>
                    <f:selectItem itemLabel="Female" itemValue="Female"/>
               </h:selectOneRadio>
          </h:panelGroup>
          <h:panelGroup  >
               <h:outputLabel id="Marital_Status" value="Marital Status" style="font-size: medium"/>
          </h:panelGroup>
          <h:panelGroup >
               <h:selectOneRadio value="#{bioData.objBioDataVo.status}">
                    <f:selectItem itemLabel="Married" itemValue="Married"/>
                    <f:selectItem itemLabel="UnMarried" itemValue="UnMarried"/>
               </h:selectOneRadio>
          </h:panelGroup>
</h:panelGrid>
<f:verbatim><br><br><br></f:verbatim>
     <h:dataTable var="item" value="#{bioData.al}">
          <h:column>
          <f:facet name="header" >
               <h:outputText value="No Of Years"/>
          </f:facet>
               <h:selectOneMenu id="NoYears1" value="#{item.noYears}">
               <f:selectItems value="#{item.noYearsVoTM}"/>
          </h:selectOneMenu>
          </h:column>
          <h:column>
          <f:facet name="header" >
               <h:outputText value="Organisation"/>
          </f:facet>
               <h:inputText id="OrgnisationTextBox" value="#{item.orgVo}"/>
          </h:column>
          <h:column>
          <f:facet name="header" >
               <h:outputText value="Designation"/>
          </f:facet>
               <h:inputText id="designationTextBox" value="#{item.desigVo}"/>
          </h:column>
     </h:dataTable>
               <h:commandButton id="addRow" type="submit" value="Add Row" immediate="true" action="#{bioData.addStr}"/>
               <h:dataTable  var="edual" value="#{bioData.eduList}">
          <h:column>
          <f:facet name="header" >
               <h:outputText value="Year of Passing"/>
          </f:facet>
               <h:selectOneMenu id="NoYears11" value="#{edual.yearPassing}">
               <f:selectItems value="#{edual.yearPassingTM}"/>
          </h:selectOneMenu>
          </h:column>
          <h:column>
          <f:facet name="header" >
               <h:outputText value="Qualification"/>
          </f:facet>
               <h:selectOneMenu id="NoYears11" value="#{edual.qualification}">
               <f:selectItems value="#{edual.qualificationTM}"/>
          </h:selectOneMenu>
          </h:column>
          <h:column>
          <f:facet name="header" >
               <h:outputText value="Specialisation"/>
          </f:facet>
               <h:inputText id="SpecialisationTextBox1" value="#{edual.specialisation}"/>
          </h:column>
          <h:column>
          <f:facet name="header" >
               <h:outputText value="Specialisation"/>
          </f:facet>
               <h:inputText id="SpecialisationTextBox1" value="#{edual.specialisation}"/>
          </h:column>
          <h:column>
          <f:facet name="header" >
               <h:outputText value="School"/>
          </f:facet>
               <h:inputText id="SchoolTextBox1" value="#{edual.school}"/>
          </h:column>
          <h:column>
          <f:facet name="header" >
               <h:outputText value="Total Marks"/>
          </f:facet>
               <h:inputText id="MarksTextBox1" value="#{edual.cgpa}"/>
          </h:column>
     </h:dataTable>
               <h:commandButton id="addRow1" type="submit" value="AddRow" immediate="true" action="#{bioData.addEdu}"/>
     <h:dataTable var="str" value="#{bioData.strList}">
          <h:column>
          <f:facet name="header" >
               <h:outputText value="sno"/>
          </f:facet>
               <h:inputText id="snoTextBox" value="#{str.sno}"/>
          </h:column>
          <h:column>
          <f:facet name="header" >
               <h:outputText value="Stengths"/>
          </f:facet>
               <h:inputText id="StengthsTextBox" value="#{str.strengths}"/>
          </h:column>
          <h:column>
          <f:facet name="header" >
               <h:outputText value="Weaknesses"/>
          </f:facet>
               <h:inputText id="WeaknessesTextBox" value="#{str.weaknesses}"/>
          </h:column>
     </h:dataTable>
               <h:commandButton id="addRow2" type="submit" value="Add Row" immediate="true" action="#{bioData.addWks}"/>
          <h:outputLabel id = "saveLabel" value="Enter Name"/>
          <h:inputText id="saveTextBox" value="#{bioData.bioName}"/>     
          <h:commandButton id="savebutton" type="submit" value="Save"  action="#{bioData.saveBio}"/>
</h:form>----------------------------Backing Bean--------------------------------------
package com.minerva.trainees;
import java.util.HashMap;
public class BioDataHomeBackingBean
     String selectBio;
     HashMap selectBioHM;
     public BioDataHomeBackingBean() {
          selectBioHM = new HashMap();
          selectBioHM.put("Create BioData", "Create BioData");
     public String processBioData()
          String select_tmp = getSelectBio();
          String action="";
          if(select_tmp.equalsIgnoreCase("Create BioData"))
               action= "displayCompetency@rgsRequest";
          return action;
     public String saveBio() throws Exception
          System.out.println("########################Inside saveBio##################");
          return "success";
     public String getSelectBio() {
          return selectBio;
     public void setSelectBio(String selectBio) {
          this.selectBio = selectBio;
     public HashMap getSelectBioHM() {
          return selectBioHM;
     public void setSelectBioHM(HashMap selectBioHM) {
          this.selectBioHM = selectBioHM;
managed-bean>
          <managed-bean-name>MyNameBB</managed-bean-name>
          <managed-bean-class>com.minerva.trainees.MyNameBackingBean</managed-bean-class>
          <managed-bean-scope>session</managed-bean-scope>
     </managed-bean>
     <managed-bean>
          <managed-bean-name>bioData</managed-bean-name>
          <managed-bean-class>com.minerva.trainees.BioDataBackingBean</managed-bean-class>
          <managed-bean-scope>session</managed-bean-scope>
     </managed-bean>
     <managed-bean>
          <managed-bean-name>bioDataHome</managed-bean-name>
          <managed-bean-class>com.minerva.trainees.BioDataHomeBackingBean</managed-bean-class>
          <managed-bean-scope>session</managed-bean-scope>
     </managed-bean>
          <managed-bean>
          <managed-bean-name>bioTest</managed-bean-name>
          <managed-bean-class>com.minerva.trainees.TestBean</managed-bean-class>
          <managed-bean-scope>application</managed-bean-scope>
     </managed-bean>
          <managed-bean>
          <managed-bean-name>objBioDataVo</managed-bean-name>
          <managed-bean-class>com.minerva.trainees.BioDataVo</managed-bean-class>
          <managed-bean-scope>session</managed-bean-scope>
     </managed-bean>Please help me to solve this problem

tracemein wrote:
but, the action method "saveBean()" is not being called Maybe there was a validation or conversion error occurred. Add <h:messages /> to your page to take note of them and handle accordingly. Also read the application server logs if there isn't something interesting logged. JSF 1.2 by default logs undisplayed errors to the stdout.
On the other hand, apart from the problem, you don't need h:panelGroup for single column items. Basically you can remove all of those h:panelGroup tags in your first h:panelGrid.

Similar Messages

  • Calling a method in the backing bean when rendering a table

    I'm rendering a table that begins with :
    <h:dataTable value="#{showRooms.rooms}" var="rowRoom" ...
    There are several properties I'm displaying. Some are just displayed as they appear from the database like:
    <h:outputText value="#{rowRoom.roomNumber}"/>
    However, some I need to translate so they display a more meaningful message to the users. For example, status is stored 'A', or 'NA', but this should display 'Available' or 'Not Available'. To do this, I'm taking an idea I saw in another forum by providing a method to call and translate the text. For example:
    public String getDisplayedStatus(String status) {
    if (status.equals("A") {
    return "Available";
    } else {
    My problem is how can I invoke a method and pass in the current value of status for that row in the table. I think I need something like this:
    <h:outputText value="#{showRooms.getDisplayedStatus(#{rowRoom.roomStatus})"/>
    But that doesn't work. I can invoke the getDisplayedStatus method when passing in a hardcoded parameter, but it won't translate the value of both expressions(the method and the method param). How can I achieve this?
    Thanks,
    Mike

    Yes. I've done that and it does work....sort of. It works as long as I refer to it as 'displayStatus'. It looks up the getDisplayStatus and returns a value. The problem is getting the current status value from the object in the List. For example, the 3rd row in the table has either 'A;' or 'NA' for status. I need to know this value in order to do my translation. The way I see it, I either need
    1.)a way to call a method on the backing bean and pass the value of status from the current row into the method.
    -or-
    2.)in getDisplayStatus, I need a way to access the current row's value, perhaps through an expression. This appears to be what you can do in the AbstractPageBean class that all backing beans inherit in Studio Creator. I've seen code in a getter like 'getValue(#{currentRow.status}'), but I don't know how that is done. I looked for the source to AbstractPageBean on the web but couldn't find it - maybe its not open-source.
    Anyway, please share if anyone has a solution. I'm sure this has been done before.
    Thanks,
    Mike

  • How to call a query from the backing bean ?

    Hi all,
    Another question for you guys :
    I made a jspx page with an input form and a submit button.
    When I click the submit button, the action my_action in my backing bean is executed.
    This is the code :
    public BindingContainer getBindings() {
    return BindingContext.getCurrent().getCurrentBindingsEntry();
    public String my_action() {
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding = bindings.getOperationBinding("EmployeesView");
    Object result = operationBinding.execute();
    if (!operationBinding.getErrors().isEmpty()) {
    return null;
    I hoped that the query 'EmployeesView' was executed in this way, but I get the following exception :
    java.lang.ClassCastException: oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding cannot be cast to oracle.binding.OperationBinding
    So how should I execute the query EmployeesView ?
    Second part of the question : What if I typed the name an employee in my form, and I want to
    execute a query that selects all the Employees with that name ?
    How do I make a query with a variable as input in the WHERE clause ?
    Thanks in advance.
    Edited by: Facehugger on 7-apr-2010 11:15

    I'm still trying all the stuff you guys says, but still no result.
    This is my backing bean :
    +// the button action+
    +public String my_action()  {+ 
    +// get the selected rows from the multiselect table and store the objectid's in an String array+
    RowKeySet rks = graph_table.getSelectedRowKeys();
    Iterator itr = rks.iterator();
    Object key;
    int nbr_objects = 0 , i = 0;
    if (rks.size()>0)  nbr_objects = rks.size();
    +String[] objectid = new String[nbr_objects];+
    while(itr.hasNext())
    +{+
    key = itr.next();
    graph_table.setRowKey(key);
    Object o = graph_table.getRowData();
    JUCtrlHierNodeBinding rowData = (JUCtrlHierNodeBinding) o;
    Row row = rowData.getRow();
    +objectid[i] = row.getAttribute("Objectid").toString();+
    i+;+
    +}+
    +// now get all the x and y values for these objectid's from the database out of the table history.+
    BindingContainer bc = BindingContext.getCurrent().getCurrentBindingsEntry();
    for (int j=0 ; j<nbr_objects; j+){+
    +// get X and Y values for object number j+
    DataPoints history = new DataPoints();
    OperationBinding operationBinding = bc.getOperationBinding("retrieveHistory");   ===> operationBinding stays NULL ???+
    +operationBinding.getParamsMap().put("OBJECTID", objectid[j]);+
    Object retVal = operationBinding.execute();
    +// ==> retVal should contain a List of all X and Y values for the provided objectid.+
    +// while (retVal has values)+
    +// {+
    +// List_of_x_values.add(retVal.valueX);+
    +// List_of_y_values.add(retVal.valueY);+
    +// }+
    history.add(List_of_x_values);
    history.add(List_of_y_values):
    +// call the soap method to do some calculations+
    methodname.forecast(history);
    +}+
    +}+
    In my application module :
    public void retrieveHistory(String objectid) {
    getHistory().setWhereClause("OBJECTID = '" + objectid + "'");
    System.out.println("current query : "+getHistory().getQuery());
    getHistory().executeQuery();
    public ViewObjectImpl getHistory() {+
    return (ViewObjectImpl)findViewObject("History");+
    The query for the VO History : SELECT * FROM HISTORY
    Please anyone ?
    Edited by: Facehugger on 9-apr-2010 14:19

  • Not able to call action method from the javascript

    I am using weblogic 10.3.2 portal.
    My requirement is to call a action in controller throuhg java script when user selects a different option in a dropdown.
    When try it we are not able to call it is returning null as a elementId. Below is the snippet of my code.
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@taglib uri="http://beehive.apache.org/netui/tags-html-1.0" prefix="netui"%>
    <%@taglib uri="http://beehive.apache.org/netui/tags-databinding-1.0" prefix="netui-data"%>
    <%@taglib uri="http://beehive.apache.org/netui/tags-template-1.0" prefix="netui-template"%>
    <netui:html generateIdScope="true">
    <head>
    <netui:base/>
    </head>
    <script language="JavaScript" type="text/JavaScript">
    function SelectBANSubmit(id)
         var scope = document.getElementById("scopeOneSpan");
         alert("value====arv" + scope);
         //var form = document.getElementById(lookupIdByTagId(form,scope));
         //alert("value====arv" + form);
         var knoVal = document.getElementById(lookupIdByTagId(id,scope));
    alert("in method" + knoVal);
         </script>
    <netui:body>
    <span id="scopeOneSpan">
         <netui:form action="getBillDetails" >
         <netui:select dataSource="actionForm.selection" tagId="arvind" optionsDataSource="${actionForm.resDTO.kno}" onChange="SelectBANSubmit('arvind')"/>
              </netui:form>
         </span>
         </netui:body>
    </netui:html>
    Any help would be appreciated.

    Below is my code
    JS Code
    function fundemo(id)
    alert("so currently we are in fundemo function ");
         var scope = document.getElementById("scopeOneSpan");
    alert(scope);
         var check = document.getElementById(lookupIdByTagId('textbox1',scope));
    alert("check id is " + check.id + " and its value is "+ check.value);
    JSP Code
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@taglib uri="http://beehive.apache.org/netui/tags-html-1.0" prefix="netui"%>
    <%@taglib uri="http://beehive.apache.org/netui/tags-databinding-1.0" prefix="netui-data"%>
    <%@taglib uri="http://beehive.apache.org/netui/tags-template-1.0" prefix="netui-template"%>
    <netui:html generateIdScope="true">
    <head>
    <netui:base/>
    </head>
    <script type="text/JavaScript" src="D:/testWS/testWebProject/WebContent/WEB-INF/js/test.js"> </script>
    <script language="JavaScript" type="text/JavaScript">
    function SelectBANSubmit(id)
    alert("In JS Method of the JSP File ");
    fundemo(id);
    </script>
    <netui:body>
    <span id="scopeOneSpan">
    <netui:form action="getBillDetails">
    <td >
    <netui:textBox dataSource="actionForm.selection" tagId="textbox1" />
    </td>
    <td>
    <netui:button type="button" onClick="javascript:fundemo('textbox1')" value="Test click"/>
    </td>
    </netui:form>
    </span>
    </netui:body>
    </netui:html>

  • Calling a method in a backing bean  JDev10.3.1 ADFBC

    Hi
    How can I execute a method existing in a session bean (uses a parameter) from within a method in a request backing bean?
    Thanks a lot in advance
    AG

    Maguri,
    Here some example code demonstrating how to call on a session bean. Simply lookup the session bean and call the appropriate method on the bean. This code can called from within any method within in a managed bean.
    Regards,
    Ric
    try {
    final Context context = getInitialContext();
    SessionEJB sessionEJB = (SessionEJB)context.lookup("SessionEJB");
    System.out.println( "Departments before insert: " );
    List<Departments> depts = sessionEJB.queryDepartmentsFindAll();
    for ( Departments dept:depts ) {
    System.out.println( "\tName: " + dept.getDepartmentName() + ", id= " + dept.getDepartmentId() );
    Departments newDept = new Departments();
    newDept.setDepartmentName( "Ric's 'Really Big' Department" );
    sessionEJB.persistEntity(newDept);
    System.out.println("\nDepartments after insert: ");
    depts = sessionEJB.queryDepartmentsFindAll();
    for ( Departments dept:depts ) {
    System.out.println( "\tName: " + dept.getDepartmentName() + ", id= " + dept.getDepartmentId() );
    } catch (Exception ex) {
    ex.printStackTrace();
    }

  • How to call the backing bean method through javascript by closing window?

    Hi all,
    What I want to do is:
    I open a new page by clicking <t:commanLink.../> from the first page. Then I close the new page. By closing the new page I will call a function in the backing bean such as myBean.doSomething() to do something. Such like:
    <body onUnload=jsFunction()..../>
    ...

    So far I understand, I should write following code
    in my second page:
    <html>
    <head>
    <script type="txet/javascript">
    function jsFunction()
    {>
    ocument.forms[0].action="#{myBean.doSomething}";
    document.forms[0].submit();
    </scrip>
    </head>
    <body onunload="jsFunction()">
    <ui:composition>
    <h:form id="myForm">
    <t:commandLink id="myLink" immediate="true"
    action="#{myBean.doSomething}"
    value=""></t:commandLink>
    </h:form>
    </ui:composition>
    Is that right? I am not sure if I've the javascript
    in the right position.I am sorry! That solution will not work. My Bad.
    You can try this.
    1) Have a invisible command button on your first page with the action attribute set to "#{myBean.doSomething}" as below
    <t:commandButton style="width:0px;height:0px" id="myButton" immediate="true"
    action="#{myBean.doSomething}"
      value=""></t:commandButton>2) Your JS onunload method on the second page should look like
    <script type="txet/javascript">
       function jsFunction()
    var buttonObject= window.parent.document.getElementById("formname:myButton");
    buttonObject.click(); // This would help in submitting the first page
    // to submit to the needed action method
    </script>Karthik

  • How to call action method on commandLink/commandButton

    Faces 1.1 from WebLogic 9.2.2, RichFaces 3.1.3.
    I'm still getting up to speed with JSF. I'm experimenting with a datatable with "Add" buttons on each row, to give me a new row after the current row (ignoring the problem with inserting at top for now).
    So, I'll need an action method in my backing bean that can tell what row number to insert after in the backing data structure.
    I've tried a couple different approaches, but I don't understand what's going wrong with them.
    Presently, I've defined this column in my table:
    <rich:column>
      <f:facet name="header">
        <h:outputText value="Add"/>
      </f:facet>
      <a4j:commandLink action="#{projectManager.addProject}"
                                  reRender="projectsTable" value="Add">
        <f:param name="rowNum" value="#{rowNum}"/>
      </a4j:commandLink>
    </rich:column>Unfortunately, what happens when I click the Add link is ... nothing. I see tons of debug go by on the console, but it doesn't attempt to call my action method (I have a breakpoint set on it in my debugger, so I'm pretty sure it's not getting there (other breakpoints are hit)).
    Any suggestions?

    I am not familiar with JBoss Richfaces and Ajax4jsf. But I can tell you that in Sun JSF you can bind the datatable to a HtmlDataTable property in the bean and then use HtmlDataTable#getRowData() in the action method to obtain the row object where the commandlink was clicked. You can find more detailed background information about this at http://balusc.blogspot.com/2006/06/using-datatables.html
    If Richfaces doesn't seem to provide this functionality, then consider to ask it at their own forum at jboss.org. You will have more chance on a well suited answer over there. You see, you're here at a Sun JSF forum.

  • How to call the method from the java bean and pass it to JSP textbox

    i'm quite new to java thats why i'm asking how to call a method in the java bean file and pass it to the JSP textbox. My projects are communicating JSP with C#. i had successfully created a C# client bean file for JSP. The whole process is to type something on the server(C# programming) and it would appear in the textbox.

    your question doesn't provide much informartion. provide some other information and coding so that we could tell exactly what you are looking for?

  • Passing radio button values to the backing bean

    Hi all,
    I need help with passing group of radio button values to a backing bean. I have page which has a dataTable to display a list of alerts. For each alert there are two radio buttons (YES & No) to indicate whether the email option for each alert is set or not. Now when i change the radio buttons and click on a submit button i should be able to pass these radio button values into action method in which i need to update the alerts. This is my code
    <h:form>
    <t:dataTable id="sub"
                       var = "alert"
                       value =#{subscriberBean.alertsList}">
    <t:column>
    <h:outputText value="#{alert.name}" />
    </t:column>
    <t:column>
    <h:selectOneRadio id="subscriptions" value="#{alert.sendEmail}">
      <f:selectItem id="item1" itemLabel="Yes" itemValue="0" />
      <f:selectItem id="item2" itemLabel="No" itemValue="1" />
    </h:selectOneRadio>
    </t:column>
    <t:dataTable>
    <h:commandButton id="button1" value="Save changes" actionListener="#{subscriberBean.updateAlert}" />
    </h:form>
    {code}
    I tried to to do something like below and get the updated list in the action event in the backing bean but it didn't work.
    {code}
    <h:commandButton id="button1" value="Save changes" actionListener="#{subscriberBean.updateAlert}" >
    <f:attribute name="alerts" value="#{subscriberBean.alertsList}"/>
    </h:commandButton>
    // Backing Bean
    public void updateAlert(ActionEvent e){
    List<Alert updateList = (List<Alert>)event.getComponent().
                    getAttributes().get("alerts");
    {code}
    Can someone advise how to get these update radio button values in my actionListener method.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    The value the user selected will be written to the sendEmail property of the managed bean named alert. We know this because you set the value attribute to #{alert.sendEmail}. So simply access the managed bean in your action method.

  • How to call the backing bean method through javascript

    Hi
    I have a command button associated with actionListener . Action Listener method associated with backing bean methods.
    I want to fire the event on command button and backing bean method should be invoked from javascript dynamically.
    can anybody help me asap

    JSF<h:form id="formId">
        <h:commandButton id="buttonId" value="submit" actionListener="#{myBean.action}" />
    </h:form>JSdocument.getElementById('formId:buttonId').click();

  • Call a method in the view from Component Controller

    Hi Friends,
    I have written the code for calling the RFC in Component Controller.
    My requirement is to change the properties of UI elements in the view, if I get any exception while calling RFC.
    Can Call a method in the view from Component Controller.
    Regards,
    Lakshmi Prasad.

    HI,
    You can get the error message during the exception of calling RFC in view itself.
    Any way you may call the RFC at some action in the view only.
    Can you explain me what you are trying to do?
    Kind Regards,
    Mukesh

  • Calling a method in the view controller from the component controller

    Hi
    Is there anyway to call a method in the view implementation from the component controller??
    Thanks
    jack

    Thanks for all your replies. I want this kind of a functionality because Im trying to invove a DC (Child DC) from a Parent DC such that the Child DC's view is displayed onto the view container of the Parent DC. I have embedded using 'interface view of a component instance' in the Parent Window and am able to create the component and set usage though the onPlugDefault of the Child View.
    But I observe that when i make a call from the parent, the flow is like this:
    1. The wdDoInit of the Child Component Controller gets triggered first.
    2. Then the wdDoInit of the Child's <b>VIEW</b> gets triggered
    3. and <b>THEN</b> the onPlugDefault of the Child Component Interface View
    What I had actually wanted was to Fire onPlugDefault where Im calling a method LoadData(), after which the Child DC's view must be triggered so it can display the fetched data.
    What is actually happening is the view gets displayed, but no data is displayed in the view.
    Right now I have just given a work around where Im triggering <b>LoadData()</b> of the <b>COmponent COntroller</b> from the <b>wdDoInit</b> of the <b>VIEW</b>.
    Is there a better way to do this? I find it strange that I have to load the Data from the view.
    Thanks
    Jack

  • Error calling a method of the tree control in BDC

    I'm connecting two systems Iplan(project management tool) with SAP PS using SAP XI.
    I've written an BDC(RFC) to assign people for the activity in an project(cj20n) it works fine in the foreground. But it doesn't work in the background.It doesn't give me error also.I've sap all authorization.
    When I connect with XI its throwing me an error "Error calling a method of the tree control" message type A (using the same user to connect r3). I believe something we should do prior handling the tree control in a BDC. IF any body come across this situation please let me know. your help is appreciated.
    Regards
    Anand

    BDCs over enjoy transactions do not get along together.  The containers and controls is more of a gui thing, and in background sometimes the BDC has a hard time with them.  I would suggest using the non-enjoy tcode instead, CJ20.
    Regards,
    Rich Heilman

  • Job is failing with the following error- Error calling a method of the tree

    dear SDNers,
    my question is where do i need to look for error.
    Will this be an ABAP issue?
    Please guide
    DETAILS
    In SM37 when we see the job XYZ, we get the following details.
       Job                              Ln    Job CreatedB    Status          Start date     Start time      Duration(sec.)     Delay (sec.)
      XYZ                                                                    Canceled        16.11.2009    10:11:30                  9                         27
    When the job log is checked this , we get the below details.
    The job XYZ is failing with the following error.
    Date      Time     Class  No.   Message
    +----
    +----
    2009/11/16 05:03:01 | 00     516 | Job started
    2009/11/16 05:03:01 | 00     550 | Step 001 started (program RBDMON00, variant
    SBCI287, user ID ABCDEF)
    2009/11/16 05:03:03 | TREE_C 000 | Error calling a method of the tree control
    2009/11/16 05:03:03 | 00     518 | Job cancelled
    Equest your assistance in knowing where to find the error for this.
    I have no clue as to where and how i need to debug or where i should i be looking for error.
    In BD87, the selection screen paramters that are given are changed on date (from and to) and IDOC status 51,66,69 and 64 and the message type is "Öutbound interface of picked shipments"
    Please guide.
    Regards,
    SuryaD.
    Edited by: SuryaD on Nov 23, 2009 5:36 PM
    Edited by: SuryaD on Nov 23, 2009 11:14 PM

    > 1. There is a job name ABCDEF
    > 2. When this job is run then the status shows cancelled and the job error log shows tHe details that "error calling a method of the tree control"
    > 3.ThIs error also points fingers to /link to BD87 as seen in the job log " (program RBDMON00, variant \SBCI287, user ID KRISF)"
    >
    BD87 is an IDOC processing.
    > My question to you Sampath.
    >
    > in order to answer your question on whether it is ALv or SALV.. please tell me as to how will i know which progrm is associated with the job ABCDEF?
    >
    Go to sm37 - double click on the job that was failed - Click on Step (on application tool bar) to get the program name - double click on the program name - new popup will be opened - then copy the program and variant
    Go to se38 - enter the program - execute (F8) - choose the variant that is there in the background job - run in forground first
    if the run is good - then check the program - SE38 - Display the program then see
    I just saw the above message BD87... .if that is true, you dont have to do all these
    I dont think it is possible to schedule a job with BD87. Is this the first time or is any job completed without errors for this?

  • Can we call a javascript function from backing bean class?

    I have a requirement. In a multiselect table, when users selects some rows and clicks a button. Depending upon some condition, an alert box should appear with 2 buttons 'Yes' and 'No'. On clicking yes, certain field values in the selected rows of table should change. On clicking no, the alert box should close. As far as i know alert box can be done only in JS.
    Please help me, if a javascript function can be called in backing bean method or suggest some way where alert boxes can appear through ADF.

    I need to go back to the backing bean as i need to iterate through each selected row of the table in a method( method written for command button) and then if atleast one of the selected rows has job field='Manager', then an alert box needs to be displayed. If none of the rows have job field as 'manager', alert box should not be displayed.
    If I write the function for onclick, i cannot iterate through the selected rows of the table in JS function.
    Please suggest a way to do this.

Maybe you are looking for

  • Avoiding data memory duplication in subVI calls

    Hi, I am on a Quest to better understand some of the subtle ways of the LabVIEW memory manager. Overall, I want to (as much as practically possible) eliminate calls to the memory manager while the code is running. (I mainly do RT code that is expecte

  • UCCX 9.0 outbound progressive dialer doesn't

    Using UCCX 9.0.2-10000 in the lab.  Attempting to set up demo for customer for next week. I have the outbound dialer set up, but it's not attempting to make a call (never hits the gateway).  In pulling the MIVR logs, I'm seeing something strange (see

  • How to get the unicode escapes for characters outside a characterset

    Hi! I'm tryiing to edit into a RTF file and have been fairly successful so far. But living outside the U.S i need some characters outside ASCII. Those characters are supposed to be escaped as unicode-escapes, eg \u45. But I can't find a way to get th

  • How to transport deletion of bw objects?

    I have transported an InfoCube to my test server.  However, now I wish to delete that InfoCube.  What is the proper way to delete a bw object in the QA environment?  Do I delete the bw object in the development server, then somehow attach the deletio

  • My officejet pro 8500a

    My printer was printing fine and now it only prints one job then i need to reboot it it scans and copies fine its just the print function taken it off the network and still does the same thing Any help on this