Binding an object tag value / Creating HTML via a backing bean

I have a task flow that sets some properties in my backbean. I've bound the "classid" of an <object> tag to one of these values. However, the first time i load the JSFF page, the object tag isnt created, but if i refresh the page, its loaded correctly.
This would lead me to believe that the binding isn't being done before the JSFF is rendered, so the question is. Does anyone know how to fix this? and if not, i have thought about creating a backing bean that would add the <object> tag to the page with the bind value, but have no idea how i would go about this.
Does anyone know of any good tutorials on adding HTML via a backing bean before the page is rendered?

After further investigation and talking to a colleague, It seems it might not be binding related, since if I print out the bind in a text field, it displays correctly. I think the problem is because I am trying to inject an object tag (hosts a .NET control) into a fragment, but this is never picked up and rendered. Thus, when I do a full page refresh, the object tag is added and all goes well.
If I attempt to bind/add a ADF Faces component this way, it works correctly.
Do you know how to inject code for a fragment?, I am very stuck at the moment - don't have that much knowledge on ADF, so any links/help would be appreciated.
My scenario is this:
I am using a task flow that has 2 fragments.
Fragment 1: set properties - has two input fields and a next button which are bound to a bean that saves the input fields
Fragment 2: display object tag using step ones properties.

Similar Messages

  • How to bind ADF table with a collection of elements using backing bean.

    Hi Experts,
    My JDev version is 11.1.1.6.0.
    I need to bind ADF table with a collection of elements using backing bean.
    My backing bean consists of 6 lists of strings, where each list represents a column of table. How can I populate the entries of table with these lists.
    Thanks
    Gopi

    Hi,
    Create an object representing the row (setter/getter). Then have a list of these objects. Drag and drop the table and point its value to the list and the type to the row object
    Frank

  • To get value of a ADFdropdown in backing bean without submit button

    hi all,
    It maybe a very easy thing to do ,but please could you help me with this as I am new to ADF?I have a dropdown whose value i need in my backing bean without the use of a submit button..
    please do help me out!!!!

    Hi Frank ,
    Thank You for replying...
    But even after autosubmit=true, it didnt work..
    i shall post the code below,could u please throw more light on it?
    <af:selectOneChoice value="#{bindings.fetchbusinessservicesVO1Pagename.inputValue}"
    label="#{bindings.fetchbusinessservicesVO1Pagename.label}"
    binding="#{GiveAccess.selectOneChoice1}"
    id="selectOneChoice1" >
    <f:selectItems value="#{bindings.fetchbusinessservicesVO1Pagename.items}"
    binding="#{GiveAccess.selectItems1}"
    id="selectItems1"/>
    </af:selectOneChoice>
    <af:commandButton text="commandButton 1"
    binding="#{GiveAccess.commandButton1}"
    id="commandButton1"
    action="#{GiveAccess.getItemsList}"/>
    When i use Command button it works fine..but i want the same functionality without the command button.(GiveAccess is the backing bean where i want the value from dropdown)

  • Problem in creating a row in backing bean for a view object..

    hi,
    i've created a view object and am trying to create multiple rows in my backing bean. but am not able to do that one. my 1st row is getting inserted and all the other values am not able to do. can anyone reply to this as soon as possible.
    Thanks in advance,

    Can you post your code?

  • Display values on new window from backing bean HashMap

    Hi,
    I need to open a new window when user clicks on some link from the current page. New window will display few values which are set once the link is clicked.
    I have created a bounded task flow with a jspx page added into the task flow. This jspx page contains a jsff page. While clicking on the link, I have called backing bean method which will create and set a HashMap containing key-value set which is used to display on new window.
    New window is created by javascript. And I am not able to get HashMap values which are set by bakingbean method.
    Is there anyway to solve this?
    Code:-
    Backing Bean method to open new window
    private void launchWindow () {
    FacesContext facesContext = FacesContext.getCurrentInstance();
    // Taskflow parameters map
    Map <String, Object> params = new HashMap <String, Object> ();
    // Get taskflow URL to be opened in new window.
    String taskflowURL = ControllerContext.getInstance ().getTaskFlowURL (false, new TaskFlowId (
    AppsConstants.DESCRIPTION_TASKFLOW_DOCUMENT,
    AppsConstants.DESCRIPTION_TASKFLOW_ID), params);
    taskflowURL = taskflowURL.replaceAll("%2F", "/");
    ExtendedRenderKitService erks = Service.getRenderKitService (FacesContext.getCurrentInstance (), ExtendedRenderKitService.class);
    String jsScriptWindowOpne = "window.open(\"" + taskflowURL + "\", \"" + resourceBundleMapper.getString (AppsConstants.LBL_NOTI_DESC_NEW_WINDOW_TITLE) + "\");";
    try {
    erks.addScript (FacesContext.getCurrentInstance(), jsScriptWindowOpne);
    } catch (Exception e) {
    logger.log (Level.SEVERE, "Exception while adding javascript to open a new window in ExtendedRenderKitService object. " + e);
    New window jsff page
    <af:outputText value="#{backingBeanScope.notification.notificationDescriptionMap}" />
    Output
    I want to get values from this HashMap, to test the size/content of this Map, I have printed this Map.

    Hi,
    Yes its possible..
    A simple google search gave me this Result.
    Betw:
    you can also open taskflow as popup in your page(inline popup) instead of opening the taskflow in other browser window.
    53-taskflow-in-popup-169196.pdf
    Regards,
    Santosh.
    Edited by: Santosh Vaza on May 11, 2011 2:11 PM

  • Add UIComponents to the page via the backing bean

    Is it possible to add a UIComponent to my page (Page1.jsp) from the backing bean (Page1.java)?
    For example:
    public class Page1 extends AbstractPageBean {
      public Page1() {
        HtmlPanelGroup panel = new HtmlPanelGroup();
        this.page.getChildren().add(panel);  //<-- doesn't work
    }

    Hi Lexicore:
    I'm new to JSF and tried to utilize your example - with no success (see below)...
    I assume I took your suggestion to literally.
    Please tell me what is missing.
    ****jsp page: jsp1.jsp****
    <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <html>
    <f:view>
    <head>
    <title>jsp1</title>
      <link rel="stylesheet" type="text/css" href="./style.css" title="Style"/>
    </head>
    <body bgcolor="#ffffff">  TESTING...
      <h:form id="form1">
        <h:panelGrid id="panelgridtest" binding="#{jsp1Bean.component}"/>
      </h:form>
    </body>
    </f:view>
    </html>
    ****backing bean: "Jsp1Bean.java" ****
    package test;
    import javax.faces.application.*;
    import javax.faces.component.*;
    import javax.faces.component.html.*;
    import javax.faces.context.*;
    import javax.faces.el.*;
    public class Jsp1Bean
        protected UIComponent component;
        public Jsp1Bean()
            component = new UIPanel();
        public UIComponent getComponent()
            return component;
        public void setComponent(UIComponent component)
            this.component = component;
    //initialization block
            try
                FacesContext facesContext = FacesContext.getCurrentInstance();
                UIViewRoot uIViewRoot = facesContext.getViewRoot();
                Application application = facesContext.getApplication();
    //outputText1
                HtmlOutputText outputText1 = (HtmlOutputText) facesContext.getApplication().createComponent(HtmlOutputText.COMPONENT_TYPE);
                outputText1.setValue("---the outputText1 value---");
    //inputText1
                HtmlInputText inputText1 = (HtmlInputText) facesContext.getApplication().createComponent(HtmlInputText.COMPONENT_TYPE);
                inputText1.setValue("---the inputText1 value---");
    //add outputText1 and inputText1 to component ("UIPanel")
                component.getChildren().add(outputText1);
                component.getChildren().add(inputText1);
            catch (java.lang.Throwable t)
                System.out.println("java.lang.Throwable exception encountered...t.getMessage()=" + t.getMessage());
                t.printStackTrace();
        public String doAction()
            return "submit";
    ****faces-config.xml****
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN" "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
    <faces-config>
      <navigation-rule>
        <from-view-id>/jsp1</from-view-id>
        <navigation-case>
          <from-action>submit</from-action>
          <to-view-id>/jsp1</to-view-id>
          <redirect/>
        </navigation-case>
      </navigation-rule>
      <managed-bean>
        <managed-bean-name>jsp1Bean</managed-bean-name>
        <managed-bean-class>test.Jsp1Bean</managed-bean-class>
        <managed-bean-scope>session</managed-bean-scope>
      </managed-bean>
    </faces-config>
    **** Error Message I receive from trying to run ****
    Nov 5, 2004 5:05:03 PM org.apache.catalina.core.StandardHostDeployer install
    INFO: Installing web application at context path /test from URL file:C:\tomcat\webapps\test
    Nov 5, 2004 5:05:09 PM org.apache.catalina.core.StandardHostDeployer install
    INFO: Installing web application at context path /tomcat-docs from URL file:C:\tomcat\webapps\tomcat-docs
    Nov 5, 2004 5:05:09 PM org.apache.catalina.core.StandardHostDeployer install
    INFO: Installing web application at context path /webdav from URL file:C:\tomcat\webapps\webdav
    Nov 5, 2004 5:05:10 PM org.apache.coyote.http11.Http11Protocol start
    INFO: Starting Coyote HTTP/1.1 on http-8084
    Nov 5, 2004 5:05:10 PM org.apache.jk.common.ChannelSocket init
    INFO: JK2: ajp13 listening on /0.0.0.0:8012
    Nov 5, 2004 5:05:10 PM org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=15/234  config=c:\tomcat\conf\jk2.properties
    Nov 5, 2004 5:05:10 PM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 16656 ms
    java.lang.Throwable exception encountered...t.getMessage()=null
    java.lang.NullPointerException
            at test.Jsp1Bean.<init>(Unknown Source)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
            at java.lang.Class.newInstance0(Class.java:308)
            at java.lang.Class.newInstance(Class.java:261)
            at java.beans.Beans.instantiate(Beans.java:204)
            at java.beans.Beans.instantiate(Beans.java:48)
            at com.sun.faces.config.ManagedBeanFactory.newInstance(ManagedBeanFactory.java:204)
            at com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:253)
            at com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:78)
            at com.sun.faces.el.impl.NamedValue.evaluate(NamedValue.java:125)
            at com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:146)
            at com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:243)
            at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:173)
            at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:154)
            at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:389)
            at javax.faces.webapp.UIComponentTag.createComponent(UIComponentTag.java:1018)
            at javax.faces.webapp.UIComponentTag.createChild(UIComponentTag.java:1045)
            at javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:742)
            at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:423)
            at com.sun.faces.taglib.html_basic.PanelGridTag.doStartTag(PanelGridTag.java:442)
            at org.apache.jsp.jsp1_jsp._jspx_meth_h_panelGrid_0(jsp1_jsp.java:152)
            at org.apache.jsp.jsp1_jsp._jspx_meth_h_form_0(jsp1_jsp.java:131)
            at org.apache.jsp.jsp1_jsp._jspx_meth_f_view_0(jsp1_jsp.java:101)
            at org.apache.jsp.jsp1_jsp._jspService(jsp1_jsp.java:62)
            at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
            at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
            at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)

  • How to Create ADF table from backing Bean

    Currently I am working on Jdeveloper11g.
    I have a requirement to create Table dyanamically .For that i will get info about table from config file.
    <?xml version="1.0" encoding="UTF-8"?>
    <Pages>
              <page1>
              <Type sortable = "false">TYPE</Type>     
                   <Decription sortable ="true">Description</Decription>
                   <Date sortable = "true" >Date</Date>
                   <Amount sortable ="false">Amount</Amount>
              </page1>
              <page2>
                   <Type sortable = "false">Account Number</Type>     
                   <Decription sortable ="true">Account Name</Decription>
                   <Date sortable = "true" >Creation Date</Date>
                   <Amount sortable ="false">Current Balance</Amount>
              </page2>
    </pages>
    Can you guide me what classes i have to use in backing bean.any sort of code or usefull Links will be highly appriciated.
    Thanks
    Jaydeep

    Hi Jaydeep,
    you can create ADF table using this code,
    RichTable table = new RichTable();
    table.setEmptyText("no rows yet");
    table.setVar("row");
    // add columns
    RichColumn column = new RichColumn();
    column.setHeaderText("Name");
    column.setId("id_column1");
    column.setAlign("right");
    column.setWidth("100");
    // Set output.
    RichOutputText output = new RichOutputText();
    output.setValue("value", "John M.");
    // Add output into column.
    column.getChildren().add(output);
    // Add column into table.
    table.getChildren().add(column);
    Good Luck.

  • H:selectManyCheckbox values to be passed to backing bean. Please help.

    Hello All,
    Please find the code below where I am facing some challenges.
    When the "QuestionBean.checkBoxEnabled" is true all options on my jsp page are displayed as checkboxes
    and when "QuestionBean.radioButtonEnabled" is true radio buttons are displayed.
    but on selection of my options and sumbiting them I am not being able to set these options in my backing bean.
    Till now I have learnt that when varbatim is used then setting of values is not done, because when I use my code
    with out verbatim I get my values in backing bean's setter and getter's.
    Please let me know if there is a work around in which I can select my options and subit the page and save them
    through backing bean and the verbatim condition also works.
    <f:verbatim rendered="#{QuestionBean.checkBoxEnabled}">
    <h:selectManyCheckbox id="optionselect2" value="#{QuestionBean.examAnswerList}">
    <f:selectItems id="a1" value="#{QuestionBean.alAnswerOptions}"></f:selectItems>
    </h:selectManyCheckbox>
    </f:verbatim>
    <f:verbatim rendered="#{QuestionBean.radioButtonEnabled}">
    <h:selectOneRadio id="optionselect" value="#{QuestionBean.examAnswer}">
    <f:selectItems id="a2" value="#{QuestionBean.alAnswerOptions}"></f:selectItems>
    </h:selectOneRadio>
    </f:verbatim>

    I don't know about f:verbatim (never used it or need it), but I tend to use Richfaces to do conditional additions, to be more precise the a4j:outputPanel component. With a layout="none" you can conditionally render JSF components without having any content being generated for the outputPanel itself.
    Another option I have used is to use the tag library of JBoss Seam: it has neat s:span and s:div tags that are very useful for conditional rendering also.
    I'm not saying that you should switch to these APIs, but at least you have some alternatives if you cannot fix your current solution.

  • Tool Tips From Object Tag

    Hi,
    Strange phenomenon just started happening.
    I have many client flash sites, some of which have been
    running for years.
    Suddenly, if you let the mouse hover (just stay in one place
    for a few seconds), a yellow "tool tip", you know those little
    yellow rectangles with help in them, pops up. The text of the tool
    tip is the Title parameter of the Object tag in the HTML file.
    I have one site that has "banner" as the Title property in
    the object tag. So, a little yellow box with the text "banner" pops
    up erratically whenever you leave the mouse in one place for more
    than a second or two. It also goes away randomly.
    This has not happened before, until very recently, and it has
    not happened on the PC - just on Safari on a Mac.
    Flash Player update problem? I'm baffled. I've removed the
    title property from the object tags for now, but I don't know if
    that will fix the problem.
    Anyone else seeing the same issue?
    Thanks, AAK (Alan)

    No matter how I create form fields, they all have a tool tip, even if there is null character string for its value.
    You can create a small JavaScript program that you can run through Acrobat's JavaScript console to place a null string in the 'userName' property of each form field in the PDF.
    // get the number of fields in this PDF
    var nNumFields = this.numFields;
    // a variable for the field name being processed
    var cFieldName;
    // loop through all of the fields in the PDF
    for(i = 0; i < nNumFields; i++) {
    // get the field name for the ith field
    cFieldName = this.getNthFieldName(i);
    // set the userName to a null string
    this.getField(cFieldName).userName = "";
    } // end for loop
    See The Acrobat JavaScript Console (Your best friend for developing Acrobat JavaScript) by Thom Parker for information about using the JavaScript console in Acrobat.

  • Modifying where clauses for View Objects in Backing Beans

    In studying the RichTable class I saw no get/set methods that would allow me to manipulate the underlying view instance and rowset for the table in the Backing Bean. I know there is a way to do it, but I having great difficulty in finding it. The tutorials show how to build view objects and display them, but I haven't seen a tutorial that show how to respond to events from the Web page and directly change the data model and what is displayed via the backing bean.
    Can some one point to a tutorial or give me an example on how I can change a view object via a backing bean?

    What you want to do is add a method to your View Object Implementation class that changes the WHERE clause with setWhereClause or addWhereClause. Expose the method to your client. Then call the method from your page by binding it to a commandButton or commandLink. You can bind it through a pageDef file or a backing bean.

  • How to get current db value in backing bean

    Hi,
    I'm using jdeveloper 11.1.2.3.0
    I would like to know how could I access the old value of an attribute in backing bean.
    I know I can get it in the EntityImpl level with getPostedAttribute function,
    but as I see I don't have permission to access this function in the ViewImpl.
    I get this error:
    Error(151,33): getPostedAttribute(int) has protected access in oracle.jbo.server.EntityImpl.
    Could you help?
    What is the correct way to get the current value on db in backing bean?
    Thanks a lot!

    You can add a transient attribute to the Entity object to hold the old value of the desired attribute, then you can add this attribute to the view object.
    check [url http://www.youtube.com/watch?v=iKVIiK0FBXI]Retrieving the previous value of an ADF BC attribute 

  • H:inputText and immediate="true" not updating cached backing bean value

    Hi,
    I am having a problem with h:inputText and immediate="true" when
    returning back to the same page.I looked through the forums but the
    only solution to remove the page from the session works only if I
    don't have to change any button label names in the page I am going back
    to.Unfortunately, I have to change a button name when I go back to the
    same page.The button name change works if i don't remove the page from
    session but then h:inputtext has stale values in it from the backing
    bean.I also need to avoid validation as it is a huge form.
    I have tried looking through the JSF forums but they didn't have any
    answers for a very similar question.
    I am not sure how exactly to use component binding for the input text and update the model values using an actionListener.I have tried puting a binding on an input text field and then used an actionListener instead of immediate="true' in the h:commandLink.But, putting context.renderResponse() in the actionListener method results in the model values not getting updated.
    I have also tried using component.processUpdates(facesContext) as in the UpdateModelValuePhase class -that too doesn't work.
    Thanks for any help,
    Vijay
    Details:
    The <h:inputText ..> does not populate the values back from a backing
    bean when immediate="true" is used when an action is called.
    <h:commandLink id="selectPrincipalId"
    action="#{application.selectPrincipal}" immediate="true">
    Only <h:inputText has the cached values from the first entry.
    <h:inputText id="principalLastName1Id"
    value="#{application.currentPrincipal.lastName}" size="10"/><== this
    has the cached value from the backing bean application.
    <h:outputText gets the new values from the backing bean when the same
    page is reentered.
    <h:outputText value="#{application.currentPrincipal.lastName}"></h:outputText><==
    this refreshes with the new value from the backing bean application.
    Here is the solution to rectify the problem:
    FacesContext facesContext = FacesContext.getCurrentInstance();
    ExternalContext externalContext = facesContext.getExternalContext();
    Map sessionMap = externalContext.getSessionMap();
    sessionMap.remove("/jsp/befg/tc/apply/enterCreditApplication.jsp");
    <== this is the name of the jsf page as defined in the
    faces-config.xml.

    Hi,I have encountered the same problem as you,and I find a solution myself,which is shown as follows,but I don't know if these is any hidden trouble in the code.
    <h:form>
    <h:commandLink action="#{app.action}" immediate="true" actionListener="#{app.update}">xxxx</h:commandLink>
    <h:inputText id="_id" value="#{app.val}" immediate="true"/> //must set immediate="true" else the model will be not updated
    <h:message for="_id"/>
    </h:form>
    public class App{
    public void update(ActionEvent event){
         FacesContext c = FacesContext.getCurrentInstance();
         UIViewRoot root =c.getViewRoot();
         root.processUpdates(c);//to update model and short-circuit the validators
    in such circumstance,the UIViewRoot's processUpdates method will be called in the actionlistener,and the back bean who titled to immediate(true)'s inputText will be updated, but the one who titled to immdiate(false)'s inputText will not be updated,Why?
    Can anyone tell me way?and how to solve?
    Thanks a lot!

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

  • Is it recommended to instantiate Model object from Backing Bean

    Wondering what are the best practices in developing JSF,Spring, Hibernate application.
    Appfuse/Equinox example instantiate Model Object i.e. POJO in the Backing bean. Here is the snippet
    UserForm.java (Backing Bean)
    public class UserForm {
    public User user = new User();
    public UserManager mgr;
    // Getter & Setter methods for user & mgr
    //Persistence
    public String save() {
    mgr.saveUser(getUser());
    addMessage("user.saved", getUser().getFullName());
    return "success";
    I undertand the purpose of having UserManager defined in backing bean but wondering why do we need to have Model (i.e. User) defined in backing bean . Is this a best practice?
    Is it recommended to populate model object with data in the backing bean and then call for business methods like mgr.saveUser(getUser());
    Regards
    Bansi

    Here is some more info
    UserForm is a JSF managed bean,
    User is a hibernate mapped POJO, and
    UserManager is manager class in Spring
    I am wondering about perfomance issues i.e. making DB calls from backing bean getters or setters. DB calls can mean a performance hit, and JSF will call the getters and setters multiple times per page request (which means you'll be doing multiple DB calls).

  • How can I create Object Tag which supports Sun and MS JVM both.

    Hi,
    I have created object tag as shown below
    <object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    name = "TestApplet" height="0" width="0" >
    <param name="code" value="com.apps.TestApplet.class" />
    <param name="codebase" value="codes" />
    <param name="archive" value="TestApplet.jar" />
    </object>
    The above tag is working fine with the below JVM combinations in Windows XP.
    1) Only Sun JVM
    2) Only MS JVM
    3) Sun JVM & MS JVM
    But these conditions are not working with Windows 2000.
    How we can create object tag which will support for these two opertating systems?

    I am not able to understand the problem. From my understanding, you have an applet which you are trying to display in a browser using <object> tag. If that is the correct then all it matters is the browser and the JRE�
    For example the below code when put in a JSP or a HTML, will use JRE 1.6.0_01 that is available on the client machine. If that is not available on the client machine then it will try and download automatically in IE.
    This below code is for IE� if you are using Mozilla Firefox then you need to change the �classid� attribute to �java: com.foo.bar.ui.MyClass�
    <OBJECT ID="Gantt" classid = "clsid:CAFEEFAC-0016-0000-0001-ABCDEFFEDCBA"
                  codebase = "http://java.sun.com/update/1.6.0/jinstall-6u1-windows-i586.cab"
                  WIDTH = "980" HEIGHT = "495" ALIGN = "baseline">
                   <PARAM NAME="cache_option" VALUE="Plugin">
                  <PARAM NAME ="CODE" VALUE = "com.foo.bar.ui.MyClass" >
                  <PARAM NAME="MAYSCRIPT" VALUE="true">
                  <PARAM NAME ="cache_archive" VALUE = "Myjar.jar /" >
                  <PARAM NAME = "type" VALUE = "application/x-java-applet;jpi-version=1.6.0">
                  <PARAM NAME = "scriptable" VALUE = "false">
                  <strong>
                     This browser does not have a Java 1.6.0_01 Plug-in.
                     <br />
                     <a href="http://java.sun.com/update/1.6.0/jinstall-6u1-windows-i586.cab">
                       Get the latest Java Plug-in here.
                     </a>
              </strong>
            </OBJECT>

Maybe you are looking for

  • Installing ORA 816 on Win2K Server

    Hi, I am installing Ora 816 on Win 2K Server. I am encountering Problem in the Instance creation and Copying Data files while creating a database. Its giving me the error Oracle Database Configuration Assistant Alert "ORA-12638: Credential retrieval

  • Error in RWB i.e Server was unable to process request

    Dear Friends, I am working on File to SOAP scenario for multiple values. I have 20 Fields each field is having multiple values in sender side these multiple values I need to send to .Net system. From ECC it is picking successfully but posting to targ

  • Spry security (and maybe ajax security)?

    Hi there, I've been used Spry for several sites until now, later i realized that we can easily request the XML (if use XMLDataSet) by parsing variable to url directly which would be like this: http://www.example.com/data_generator.php?var1=x&var2=y T

  • Connecting 2 speakers

    Was wondering if it is possible to connect my ipod to 2 speakers - one is a BOSE dock & I would connect via the 30 pin connector (it's an older ipod). If I do, can I also connect a Bluetooth speaker at the same time Want to setup for a party & by hav

  • Cancellation of Excise invoice

    Hi Gurus, My sales Infocube on March 10th a challan number(Excise Invoice) was posted and the same challan number is cancelled on 11th of March.Will that challan no. data will come in the report? In my case it is showing but the user is saying that i