String to Richoutputtext in ADF

Hi all,
Is there any way to convert a string value to a richoutputtext? My Jdeveloper version is 11.1.1.4.0.Thank You.

What do you mean by convert?
A RichOutputText components show a string on the ui, so you don't need to convert it, you assign the value property of the RichOutputText the string like
String yourstring = "abc";
RichOutputText yourcomp = ...
yourcomp.setValue(yourstring);Timo

Similar Messages

  • ADF Mobile - XML Parsing

    Previously I posted on calling a remote webservice - Calling remote service using ADF Mobile and I get my weather application working already.
    The webservice returned me a string which is a XML form. I want to parse the XML to make it easy-read.
    The currently output from the webservice (http://www.webservicex.com/globalweather.asmx) is as below.
    *<string><NewDataSet>*
    *<Table>*
    *<Country>Singapore</Country>*
    *<City>Singapore / Paya Lebar</City>*
    *</Table>*
    *<Table>*
    *<Country>Singapore</Country>*
    *<City>Singapore / Changi Airport</City>*
    *</Table>*
    *</NewDataSet></string>*
    How do I parse this output so I can display the string properly in mobile?
    Singapore / Paya Lebar
    Singapore / Changi Airport
    Any direction on how to do this? Or is there any built-in function inside JDeveloper?

    Try to go to this link - http://www.webservicex.com/globalweather.asmx?op=GetCitiesByCountry and use Singapore as CountryName or any country you prefer
    The output is a string
    +<string></string>
    -<string>
    <NewDataSet>
    <Table>
    <Country>Singapore</Country>
    <City>Singapore / Paya Lebar</City>
    </Table>
    <Table>
    <Country>Singapore</Country>
    <City>Singapore / Changi Airport</City>
    </Table>
    </NewDataSet>
    </string>
    The tutorial for ADF Mobile from Oracle website is able to drag the output from data control - return -> value/class. But this webservice only return a single value of string. How do I change it to display properly in ADF Mobile?

  • ADF bindings are not working with inheritance heirarchy.

    ADF bindings are not working with inheritance heirarchy. I am using embedded OC4J in JDeveloper 10.1.3.2.
    For the data model I have the following objects\attributes.
    1) User (abstract EJB 3.0 POJO)
    - Id
    - userId
    - userName
    2) Employee -> extends User (EJB 3.0 POJO)
    - enabled
    - password
    3) Manager -> extends Employee (EJB 3.0 POJO)
    - numOfEmployees
    4) UserSessionBean (Stateless Session Bean)
    - public User findUserByUserId(String userId)
    - public List<User> queryUserFindAll()
    - Object mergeEntity(Object entity)
    I created 2 JSF pages using ADF.
    1) ListUsers.jspx - Lists all the users of type Employee and Manager in a table. You can select an user and chose to modify the user details using a modify button.
    2) ModifyUser.jspx - Modify the selected user and persist the modified user details.
    I implemented ListUsers.jspx by dragging and dropping queryUserFindAll() method from the ADF datacontrol on to the JSF page and selected ADF Table format with selection enabled.
    Similarly for the ModifyUser.jspx page I dragged and dropped the User object returned by findUserByUserId(String userId) and selected ADF Form format. I selected OutputText field types for userId and userName.
    I then created a navigation case from ListUsers.jspx to ModifyUser.jspx and pass the selected user.
    Now when I try to run the web application, ListUsers.jspx correctly displays all the users. Then I select a user of type Employee and click on the modify button. This brings up the ModifyUser.jspx page. However, the UserId text field displays the value for "Id" field rather than "userId".
    Question that I have is:
    - Why is ADF framework not able to retrieve the appropriate user attribute value for a Employee based on the binding information in case of inheritance ?
    Thanks,
    Piyush

    Hi,
    tried with JDeveloper 10.1.3.3 and this works for me. Try JDeveloper 10.1.3.3 - if it doesn't work, have a closer look at your sessionFacade
    Frank

  • Custom ADF Taskflow to be displayed as part of Human Task notification

    Hi all,
    I am trying to display a custom ADF taskflow as part of notification of a Human Task. I see multiple ways of implementing it and need guidance on how to go about this.
    As a first step, I created a taskflow based on the human workflow task. This is WEB-INF/oracle/apps/xyzcommon/activities/publicUi/worklist/flow/myTaskflow.xml. Then I see 2 options -
    Option 1 - Use setTaskDisplayUrl while creating the task
    oracle.bpel.services.workflow.task.model.Task task = objectFactory.createTask();
    String AppUrl = oracle.topologyManager.client.deployedInfo.EndPointProvider.getExternalEndpoint("xyzCommon");
    String taskflowUrl = AppUrl + "/faces/adf.task-flow?_id=myTaskflow&_document=WEB-INF/oracle/apps/xyzcommon/activities/publicUi/worklist/flow/myTaskflow.xml";
    task.setTaskDisplayUrl(taskflowUrl);
    Option 2 - Define the taskflow in the Enterprise Manager - Add or remove the URI for the user defined task details application.
    Setup the Application Name=worklist, Host Name, HTTS Port, URL=/xyzCommon//faces/adf.task-flow?_id=myTaskflow&_document=WEB-INF/oracle/apps/xyzcommon/activities/publicUi/worklist/flow/myTaskflow.xml
    Questions -
    1. Are both the above options required to get my notification correct or is just one of them enough? If one of them is enough, which is better to use?
    2. Is creating the taskflow from the human workflow task the only way to customize my notification to show a taskflow?
    Thanks,
    Srini

    Learnt that I need to follow this link and no explicit setting is required in code.

  • ADF desktop integration issue

    i have created a application and published to weblogic successfully, but when i tried to run my integrated excel workbook, i got following errors. how to resolve this issue ?
    ADFDI-00134: An attempt to connect to the web application has failed.
    ADFDI-00501: An unexpected status: 500 (InternalServerError) was returned from the server while requesting the URL: http://localhost:7101/myDITest/adfdiRemoteServlet
    ~~~~~~~~~~
    ConnectionFailedException: ADFDI-00134: An attempt to connect to the web application has failed.
    Source: adfdi-excel-runtime
    Stack:
    at oracle.adf.client.windows.excel.runtime.WebAppLogin.GetAuthenticationMode()
    at oracle.adf.client.windows.excel.runtime.WebAppLogin.Login()
    at oracle.adf.client.windows.datamanager.ADFBindingContext.AttemptLogin(Boolean maybeHadSession)
    at oracle.adf.client.windows.datamanager.ADFBindingContext.SyncModel(BindingContainer bc, String contentType)
    at oracle.adf.client.windows.datamanager.BindingContainer.ReloadMetadata()
    at oracle.adf.client.windows.datamanager.BindingContainer.LoadMetadata()
    at oracle.adf.client.windows.excel.runtime.DIWorksheet.InitializeComponents(Boolean isFirstLoad)
    at oracle.adf.client.windows.excel.runtime.DIWorksheet.Initialize(Boolean initializeUI)
    Inner:
    UnexpectedHttpStatusException: ADFDI-00501: An unexpected status: 500 (InternalServerError) was returned from the server while requesting the URL: http://localhost:7101/myDITest/adfdiRemoteServlet
    Source: adfdi-excel-runtime
    Stack:
    at oracle.adf.client.windows.excel.runtime.WebAppLogin.GetAuthenticationMode()
    yong

    There is some kind of configuration problem with your web application.
    First, you should report the version of ADFdi you are using.
    Next, you should verify the configuration against the guide.
    http://docs.oracle.com/cd/E24382_01/web.1112/e16180/prep_dev.htm#sthref25
    Next, you should perform some diagnostic steps.
    http://docs.oracle.com/cd/E24382_01/web.1112/e16180/ap_desk_integ_troubleshoot.htm#CHDIBEEE
    HTH
    Alex

  • ADF Faces - Table update not completely rendered

    Hi,
    [ myfaces 1.1.3 + ADF version 10.1.3.0.4 ]
    I have a problem with Table component, changing a value of the inputText components will not update the output component also inside the table. At least not rendered to HTML, the view-tree contains the updated values. Below I have added a part of the jsp-code + a part of the view-tree of the log.
    Changing the value of the inputText with id="salesInput" should trigger an update to the otherSales value in the footer facet in the same column, but it isn't (in the browser).
    So I added multiple outputText components on different places in the table to find out if they were updated. I have also added an inputText component with id="test" outside of the table component, this one is properly updating all the otherSales values.
    If I change the values on the inputText component with id="salesInput" only the outputText with "salesOutput2" is updated in the browser, the one in the footer facet still contains the previous value. (only a browser refresh is fetching the correct values).
    What's the problem why it's not rendered to HTML, tree-view contains right values. Can I force the rendering ?
    Did I miss properties, attributes ?
    Any ideas...
    Your Help is really appreciated.
    Thanks,
    Bas van Oudenaarde
    part of the jsp:
    <af:table id="data" value="#{myManagedBean.allGeographicalData}"
    var="row" partialTriggers="salesInput test" varStatus="myTable">
    <af:column id="salesColumn" sortProperty="sales" sortable="true" width="30%">
    <f:facet name="header">
    <af:outputText value="#{msg._column_3_Header}"/>
    </f:facet>
    <af:inputText id="salesInput" immediate="true" value="#{row.sales}" columns="8" autoSubmit="true"                     valueChangeListener="#{myManagedBean.updateOtherSales}" />
    <af:outputText id="salesOutput2" partialTriggers="salesInput" value="#{myManagedBean.otherSales}" />
    <f:facet name="footer">
    <af:outputText id="salesOutput" partialTriggers="salesInput" value="#{myManagedBean.otherSales}"/>
    </f:facet>
    </af:column>
    <af:table>
    <af:inputText id="test" value="#{myManagedBean.bla}" immediate="true" columns="8" autoSubmit="true"                     valueChangeListener="#{myManagedBean.updateOtherSales}" />
    <af:outputText id="outsideTheTable" partialTriggers="salesInput" value="#{myManagedBean.otherSales}"/>
    Log output, changing the value of inputText component within the table component. Here you can see that all values are updated to 92 in the view-tree!!! On the screen however it still shows the previous value in the outputText components expect for the outputText with id=salesOutput2 :
    <UIViewRoot id="NULL" FORMER_CHILD_IDS="[_idJsp0]" family="javax.faces.ViewRoot" locale="en" renderKitId="oracle.adf.core" rendered="true" rendererType="NULL" rendersChildren="false" transient="false" viewId="/pages/panel.jsp">
    <oracle.adf.view.faces.component.core.data.CoreColumn id="salesColumn" FORMER_CHILD_IDS="[salesInput, salesOutput2]" partialTriggers="[Ljava.lang.String;@67e9f0f6" width="30%" FORMER_FACET_NAMES="[footer, header]" sortProperty="sales" sortable="true" rendererType="oracle.adf.Column" attributeChangeListener="NULL" attributeChangeListeners="NULL" bandingShade="NULL" facesBean="NULL" facetCount="NULL" facetNames="NULL" family="NULL" footer="NULL" formatType="text" gridVisible="true" header="NULL" headerNoWrap="false" headerText="NULL" inlineStyle="NULL" noWrap="false" onclick="NULL" ondblclick="NULL" onkeydown="NULL" onkeypress="NULL" onkeyup="NULL" onmousedown="NULL" onmousemove="NULL" onmouseout="NULL" onmouseover="NULL" onmouseup="NULL" partialTriggers="[Ljava.lang.String;@67e9f0f6" rendered="true" rendererType="oracle.adf.Column" rendersChildren="NULL" rowHeader="false" separateRows="false" shortDesc="NULL" sortProperty="sales" sortable="true" styleClass="NULL" transient="NULL" width="30%">
              <oracle.adf.view.faces.component.core.output.CoreOutputText id="salesOutput2" value="92" partialTriggers="[Ljava.lang.String;@600d70f6" rendererType="oracle.adf.Text" attributeChangeListener="NULL" attributeChangeListeners="NULL" converter="NULL" description="NULL" escape="true" facesBean="NULL" facetCount="NULL" facetNames="NULL" family="NULL" inlineStyle="NULL" localValue="NULL" onclick="NULL" ondblclick="NULL" onkeydown="NULL" onkeypress="NULL" onkeyup="NULL" onmousedown="NULL" onmousemove="NULL" onmouseout="NULL" onmouseover="NULL" onmouseup="NULL" partialTriggers="[Ljava.lang.String;@600d70f6" rendered="true" rendererType="oracle.adf.Text" rendersChildren="NULL" shortDesc="NULL" styleClass="NULL" transient="NULL" truncateAt="0" value="#{myManagedBean.otherSales}"/>
    <oracle.adf.view.faces.component.core.output.CoreOutputText id="salesOutput" facetName="footer" value="92" partialTriggers="[Ljava.lang.String;@679eb0f6" rendererType="oracle.adf.Text" attributeChangeListener="NULL" attributeChangeListeners="NULL" converter="NULL" description="NULL" escape="true" facesBean="NULL" facetCount="NULL" facetNames="NULL" family="NULL" inlineStyle="NULL" localValue="NULL" onclick="NULL" ondblclick="NULL" onkeydown="NULL" onkeypress="NULL" onkeyup="NULL" onmousedown="NULL" onmousemove="NULL" onmouseout="NULL" onmouseover="NULL" onmouseup="NULL" partialTriggers="[Ljava.lang.String;@679eb0f6" rendered="true" rendererType="oracle.adf.Text" rendersChildren="NULL" shortDesc="NULL" styleClass="NULL" transient="NULL" truncateAt="0" value="#{myManagedBean.otherSales}"/>
    </oracle.adf.view.faces.component.core.data.CoreColumn>
    <oracle.adf.view.faces.component.core.output.CoreOutputText id="outsideTheTable" value="92" partialTriggers="[Ljava.lang.String;@73e070f6" rendererType="oracle.adf.Text" attributeChangeListener="NULL" attributeChangeListeners="NULL" converter="NULL" description="NULL" escape="true" facesBean="NULL" facetCount="NULL" facetNames="NULL" family="NULL" inlineStyle="NULL" localValue="NULL" onclick="NULL" ondblclick="NULL" onkeydown="NULL" onkeypress="NULL" onkeyup="NULL" onmousedown="NULL" onmousemove="NULL" onmouseout="NULL" onmouseover="NULL" onmouseup="NULL" partialTriggers="[Ljava.lang.String;@73e070f6" rendered="true" rendererType="oracle.adf.Text" rendersChildren="NULL" shortDesc="NULL" styleClass="NULL" transient="NULL" truncateAt="0" value="#{myManagedBean.otherSales}"/>
    </oracle.adf.view.faces.component.html.HtmlCellFormat>
    </oracle.adf.view.faces.component.html.HtmlRowLayout>
    </oracle.adf.view.faces.component.html.HtmlTableLayout>
    </oracle.adf.view.faces.component.core.CoreForm>
    </oracle.adf.view.faces.component.core.CoreDocument>
    </UIViewRoot>

    In EA14, the return from the dialog required a full-page refresh (whether the dialog was launched with PPR or not didn't matter). In EA15, it's done with PPR if possible. This avoids the flash (and re-scrolling, etc.), but means you do need to tell us what's going to get changed because of the return. You can use partialTriggers on the table with the "id" of the button to make this happen.

  • Binding ADF UI components to managed beans instead of using bindings

    Hi All,
    We are working on a ADF based development project and we have complex data input forms.
    We have close to 200 input forms for different products and each form has different details.
    Requirement is to store the data captured in the input forms as XML in database instead of storing the information in relational tables to avoid creating tables for each of the 200 products.
    We are planning to capture user input in page flow scoped managed beans and when user save the data, generate the XML from managed bean data and store the XML string in DB using ADF BC.
    So we would develop the UI more like a normal J2ee application using JSF where managed beans are used to collect data, and then use ADF BC for database persistence.
    Is it a good practice to bind the managed beans to UI bypassing the bindings? (We can't use bindings as we store data in XML format).

    Hi Alex,
    That is not the right way to get the component, #{it1} is not valid.
    Here is the sample code to get the component by id, but is not recommended as you should know the parent component ids as well and it would be difficult to maintain in long run:
            FacesContext context = FacesContext.getCurrentInstance();
            context.getViewRoot().findComponent("<id>")What is your exact usecase?
    Any specific reason for not using binding property?
    Sireesha

  • ADF Library Jar: Bundle-Classes-Information for Declarative Component

    Hi,
    when we deploying some adf-taskflows as a adf library jar we can add some content with technical namings and user friendly strings.
    see the good adf code corner example: [url http://www.oracle.com/technetwork/developer-tools/adf/learnmore/52-taskflow-in-lib-169195.pdf]Advanced Tip: Customizing the ADF Task Flow name in the ADF libray (Page 16)
    Is this also possible for declarative components?
    Technology: ADF 11g / JDeveloper 11.1.1.4 / Fusion Stack (ADF BC / ADF Model / ADF Faces)
    best regards
    Martin

    Hi,
    no, unfortunately not
    Frank

  • Setting value to RichOutputText

    Hello!!
    I have a RichOutputText in my class:
                private RichOutputText usuarioLogado;
    //getters / setters
    //somewhere in a method:
                this.usuarioLogado = new RichOutputText();
                this.usuarioLogado.setValue(mesaUsuarioBean.getUsuarioLogadoMesa(m).getNome());
                AdfFacesContext.getCurrentInstance().addPartialTarget(getUsuarioLogado());
                RichPopup popup = this.getPopup();
                RichPopup.PopupHints hints = new RichPopup.PopupHints();
                popup.show(hints);
    and on page:
    <af:popup childCreation="deferred" autoCancel="disabled" id="p2"
                                                      binding="#{AcessoMB.popup}">
                                                <af:dialog id="d3" title="Mesa em uso" type="none">
                                                    <af:outputText clientComponent="true" value="O usuario #{AcessoMB.usuarioLogado} está operando a Mesa. Você deseja forçar 'logof' deste Usuário?" id="ot3"
                                                                   inlineStyle="text-align:center; vertical-align:middle;"/>
                                                    <f:facet name="buttonBar">
                                                        <af:panelGroupLayout layout="horizontal" halign="right"
                                                                             styleClass="AFStretchWidth">
                                                           <af:commandButton text="Yes" id="yes" actionListener="#{AcessoMB.popUpAction}" partialSubmit="true"/>
                                                           <af:commandButton text="No" id="no" actionListener="#{AcessoMB.popUpAction}" partialSubmit="true"/>          
                                                         </af:panelGroupLayout>
                                                    </f:facet>
                                                </af:dialog>
                                            </af:popup>
    The problem I have, is instead showing the ".getNome()" (its a string) on the message, it shows me "O usuario RichOutputText[UIXFacesBeanImpl, id=j_id14] está operando a Mesa. Você deseja forçar 'logof' deste Usuário?"
    How can I show the actual value of the String instead "RichOutputText[UIXFacesBeanImpl, id=j_id14]" on the value of my outputText?
    Thanks

    Well, that's what you ask it to do as you output the instance address of the RichOutputText. instead of using a richOutputText variabel use a normal string variable, add getter and setter for the variable and use this:
               private String usuarioLogado; 
    //getters / setters 
    //somewhere in a method: 
                this.usuarioLogado =   (String)mesaUsuarioBean.getUsuarioLogadoMesa(m).getNome(); 
    This should work.
    Timo

  • Create dynamic table at runtime and bind it with ViewObject

    Hi everyone.
    I have the following task.
    I need to create a multiple ViewObjects at runtime (using different constructed sql queries) and then bind ViewObjects with created (also in runtime) tables.
    Tables are to be created on PanelTabbed component. Each tab contains one table.
    So the problem - is there a way to perform this task?
    A portion of code:
    ApplicationModule am = ADFUtils.getApplicationModule("AppModule");
    ViewObjectImpl vo = null;
    if (am.findViewObject("SQLVo") != null)
    am.findViewObject("SQLVo").remove();
    System.out.println("object removed!");
    vo = am.createViewObjectFromQueryStmt("vo", "select ...");
    RichTable newTable = new RichTable();
    newTable.setVar("row");
    newTable.setVarStatus("rowStat");
    RichShowDetailItem newDetItem = new RichShowDetailItem();
    newDetItem.setText("New Detail");
    newTable.setInlineStyle("width:100%;height:180px");
    newTable.setRowSelection("single");
    DCBindingContainer dcBindings = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    String iterBindingName = vo.getName() + "Iterator";
    JUIteratorBinding iterBinding =
    (JUIteratorBinding)dcBindings.findIteratorBinding(iterBindingName);
    if (iterBinding != null) {
    dcBindings.removeIteratorBinding(iterBindingName);
    BindingContext bcc = (BindingContext)JSFUtils.resolveExpression("#{data}");
    iterBinding =
    new JUIteratorBinding(bcc.findDataControl("AppModuleDataControl"), vo);
    String ctrlBindingName = vo.getName() + "Binding";
    FacesCtrlHierBinding clonedHierBinding =
    (FacesCtrlHierBinding)dcBindings.findCtrlBinding(ctrlBindingName);
    if (clonedHierBinding != null) {
    dcBindings.removeControlBinding(ctrlBindingName);
    =======================================
    Please, look here!
    What's the best practices to create a new FacesCtrlHierBinding?
    What a parameter _nodeBindings (type JUCtrlHierTypeBinding[]) should be?
    =======================================
    clonedHierBinding =
    new FacesCtrlHierBinding(null,
    iterBinding,
    new String[]{
    "BUILDING_ID"
    // "BUILD_NAME",
    // "FUNCTIONALITY_NAME",
    // "CITY_NAME",
    // "STREET_NAME",
    // "FLOORS"
    _nodeBindings
    dcBindings.addControlBinding(ctrlBindingName, clonedHierBinding);
    newTable.setValue(clonedHierBinding.getCollectionModel());
    for (int g=0; g < vo.getAttributeCount(); g++){
    RichColumn col = new RichColumn();
    col.setId("c" + Integer.toString(g));
    col.setHeaderText(vo.getAttributeDef(g).getProperty(AttributeHints.ATTRIBUTE_LABEL).toString());
    ValueExpression valExp =
    facesContext.getApplication().getExpressionFactory().createValueExpression(facesContext.getELContext(),
    "#{row." + vo.getAttributeDef(g).getName() + "}",String.class);
    RichOutputText text = new RichOutputText();
    text.setId(vo.getAttributeDef(g).getName() + "txt");
    text.setValueExpression("value", valExp);
    col.getChildren().add(text);
    newTable.getChildren().add(col);
    newDetItem.getChildren().add(newTable);
    myBean.panelTabbed.getChildren().add(newDetItem);
    ...

    Shay, good day!
    You answer is good, but - it use only one dynamic view (and one table, iterator and FacesModel).
    I have task like topic started have - i need to create some unknows numbers of ViewObject (created by demad) and i must have a FacesModel for each created ViewObject.
    How can we do it?

  • ADFDi  Error : The remote server returned an error: (411) Length Required

    JDeveloper version 11.1.2.1.0
    weblogic Version 10.3.5.0
    Hi All,
    From ADF Desktop integration application, When the user key in username and password the system show the following error message. Please help to me how to tackle it as well as useful blogs.
    Regards
    KT
    Error Detail:
    WebException: The remote server returned an error: (411) Length Required.
    Source: System
    Stack:
    at System.Net.HttpWebRequest.GetResponse()
    at oracle.adf.client.windows.common.internet.http.ManagedHttpResponse..ctor(HttpWebRequest request)
    at oracle.adf.client.windows.common.internet.http.ManagedHttpRequest.GetResponse()
    at oracle.adf.client.windows.datamanager.servletrequest.SyncRequest.BeginResponse()
    at oracle.adf.client.windows.datamanager.servletrequest.TamperCheckRequest.InternalCallSyncServlet()
    at oracle.adf.client.windows.datamanager.servletrequest.SyncServletRequest.CallSyncServlet(Boolean retry)
    at oracle.adf.client.windows.datamanager.ADFBindingContext.SendSyncServletRequest(SyncServletRequest request)
    at oracle.adf.client.windows.datamanager.ADFBindingContext.CheckForTampering()
    at oracle.adf.client.windows.datamanager.ADFBindingContext.PreSyncServletTamperCheck()
    at oracle.adf.client.windows.datamanager.ADFBindingContext.SyncModel(BindingContainer bc, String contentType)
    at oracle.adf.client.windows.datamanager.BindingContainer.Repopulate()
    at oracle.adf.client.windows.datamanager.BindingContainer.SyncModel(Boolean forceSync)
    at oracle.adf.client.windows.excel.runtime.uicomponent.RTActionCollection.DoInvoke(RTColumnCollection parent, String contextLabel)

    In which environment is your application hosted? Are there any other network components sitting between the client and the application, such as CDN or load balancer?
    It would be very helpful if you can capture the client-side HTTP traffic using some tools (e.g. Fiddler - http://www.fiddler2.com/fiddler2/), so that we can know where the "401 length required" error is sent from by looking at the header of the HTTP response of the error.

  • How to set a value in a managed bean when click on a button

    Dear all
    I have a managed bean that contains an attribute of type string as follow:
    the attribute name is taskFlowId
    package dhamanADM.view.beans;
    import oracle.adf.controller.TaskFlowId;
    public class dynamicTaskFlowManager {
       private String taskFlowId = "/WEB-INF/flows/procedureMaster.xml#procedureMaster";   
        public dynamicTaskFlowManager() {
            super();
      public TaskFlowId getDynamicTaskFlowId() {
       return TaskFlowId.parse(taskFlowId);
    }I want to change the value of this attribute when clicking on a commandMenuItem as follow
       <af:commandMenuItem text="Mission Persons" id="pt_cmi1"
                                                action="missionPers">
       <af:setActionListener from="/WEB-INF/flows/editPersionMission.xml#editPersionMission"
                                      to="#{pageFlowScope.dmDynamicTaskFlowManager.dynamicTaskFlowId}"/>
       </af:commandMenuItem>at run time when clicking on the menu this error appears
    java.lang.IllegalArgumentException: Cannot convert /WEB-INF/flows/editPersionMission.xml#editPersionMission of type class java.lang.String to class oracle.adf.controller.TaskFlowId
    My target is just to change the value of the attribute "taskFlowId" when clicking on the commandMenuItem
    how can i do this?
    Thanks in advance
    Edited by: ta**** on Mar 29, 2011 1:24 PM

    You are setting to set a String value where a type of TaskFlowId is required.
    Looks like, you are trying to set the taskFlowId for the dynamic region. Modify the code as follows:
    public class dynamicTaskFlowManager {
    private String taskFlowId = "/WEB-INF/flows/procedureMaster.xml#procedureMaster";
    public dynamicTaskFlowManager() {
    super();
    *public TaskFlowId getDynamicTaskFlowId() {*
    AdfFacesContext adfFacesContext = AdfFacesContext.getCurrentInstance();
    String currentTaskFlowId =
    *(String)adfFacesContext.getPageFlowScope().get("CurrentTaskFlowId");*
    if (currentTaskFlowId == null ||
    *currentTaskFlowId.trim().equals("") == true) {*
    currentTaskFlowId = taskFlowId;
    return TaskFlowId.parse(currentTaskFlowId);
    In the MenuItem, modify it as follows:
    <af:commandMenuItem text="Mission Persons" id="pt_cmi1"
    action="missionPers">
    *<af:setActionListener from="/WEB-INF/flows/editPersionMission.xml#editPersionMission"*
    *to="#{pageFlowScope.CurrentTaskFlowId}"/>*
    </af:commandMenuItem>
    Thanks,
    Navaneeth

  • Need to pass the value from UI

    Hi!!
    I am using jdeveloper 11.1.1.5
    I had dragged and dropped Three Input Text Boxes in my UI
    I need to pass the values from the UI to my AMImpl Methods
    i.e. In my AMImpl Methods
    vo2.setNamedWhereClauseParam("year",[af:ImputTextBox1]);
    vo2.setNamedWhereClauseParam("period",[af:ImputTextBox2]);
    vo2.setNamedWhereClauseParam("bu",[af:InputTextBox3]);
    vo2.executeQuery();

    The links given by Vinoth and jabr is very usefull for me!!
    Still i m receiving an while i clicked the button
    Cannot convert MEL of type class java.lang.String to class oracle.adf.view.rich.component.rich.input.RichInputText
    Cannot convert 201011 of type class java.lang.String to class oracle.adf.view.rich.component.rich.input.RichInputText
    Cannot convert 5 of type class java.lang.String to class oracle.adf.view.rich.component.rich.input.RichInputTextEdited by: wilhelm wundt on Dec 18, 2011 10:00 PM

  • Walkthrough: Displaying Data from Oracle database in a Windows application.

    This article is intended to illustrate one of the most common business scenarios such as displaying data from Oracle database on a form in a Windows application using DataSet objects and .NET Framework Data Provider for Oracle.
    You can read more at http://www.c-sharpcorner.com/UploadFile/john_charles/WalkthroughDisplayingDataOracleWindowsapplication05242007142059PM/WalkthroughDisplayingDataOracleWindowsapplication.aspx
    Enjoy my article.

    hi,
    this is the code :
    public class TableBean {
    Connection con ;
    Statement ps;
    ResultSet rs;
    private List perInfoAll = new ArrayList();
    public List getperInfoAll() {
    int i = 0;
    try
    con = DriverManager.getConnection("url","root","root");
    ps = con.createStatement();
    rs = ps.executeQuery("select * from user");
    while(rs.next()){
    System.out.println(rs.getString(1));
    perInfoAll.add(i,new perInfo(rs.getString(1),rs.getString(2),rs.getString(3)));
    i++;
    catch (Exception e)
    System.out.println("Error Data : " + e.getMessage());
    return perInfoAll;
    public class perInfo {
    String uname;
    String firstName;
    String lastName;
    public perInfo(String firstName,String lastName,String uname) {
    this.uname = uname;
    this.firstName = firstName;
    this.lastName = lastName;
    public String getUname() {
    return uname;
    public String getFirstName() {
    return firstName;
    public String getLastName() {
    return lastName;
    ADF table code:
    <af:table value="#{tableBean.perInfoAll}" var="row"
    binding="#{backing_Display.table1}" id="table1">
    <af:column sortable="false" headerText=""
    align="start">
    <af:outputText value="#{row.firstName"/>//---> Jdeveloper 11g doesn't allow me to use this.. it says firstName is an unknown property..
    </af:column>
    </af:table>
    Please tell me is this the way to do it.. or is it a must to use the DataCollection from the data controls panel...
    Thanks...

  • System automatically truncating the data

    hi Friends,
    i am using jdeveloper 11.1.1.6.0.
    i have created field called price it's length is Number(22,12) . whenever user is giving more than 22 digits system is truncating the 22 digit to fractional number.
    ex:user input: 1234567980123456789012
    system showing: 1.234567980123 .
    is there any solution for the above problem.

    Hi Johon,
    1. Change in your vo query to fetch the price column once more time like price1
    2. Change the type from number to string
    I think my adf concept are good.
    The idea behind this approach is that he has already tried your intelligent suggestion but not working.
    I have already faced this problem and solved the same using the technique I shared over this forum.
    Please read this to know why system automatically truncating the data
    3.1 n-bit Unsigned Integers section
    n      Minimum      Maximum
    8      0      (2^8)-1 (=255)
    16      0      (2^16)-1 (=65,535)
    32      0      (2^32)-1 (=4,294,967,295) (9+ digits)
    64      0      (2^64)-1 (=18,446,744,073,709,551,615) (19+ digits)
    and your trying to save 22 digits.How it is possible?
    Got it?
    http://www.ntu.edu.sg/home/ehchua/programming/java/DataRepresentation.html
    Edited by: 812903 on Mar 21, 2013 11:32 PM
    Edited by: 812903 on Mar 21, 2013 11:43 PM

Maybe you are looking for