JSF custom component: value not binding to component

I have a custom UIInput component which is not able to bind to the value of the component from a backing bean. Here is the JSF code snippet:
<tw:validateInputText id="locationIdStopInput" table="location" column="location" styleClass="wideSingleInput" value="#{currentStop.customer.customer}" rendered="#{loadTypeView.renderWarehouse or (currentStop.stopNumber gt 1 and loadTypeView.renderOutbound) or (currentStop.stopNumber eq 1 and loadTypeView.renderInbound)}"/>
tw is the custom tag and validateInputText is the custom UiInput component.
On posting the form the decode method is not able to get the value from the requestParameter map. Following is the decode() I wrote:
public void decode(FacesContext context,
UIComponent component) {
// assertValidInput(context, component);
if (context == null || component == null) {
throw new NullPointerException();
ValidateInputTextComponent map = (ValidateInputTextComponent) component;
String key = map.getId();
if (component instanceof UIInput) {
UIInput input = (UIInput) component;
String clientId = input
.getClientId(context);
Map requestMap = context
.getExternalContext()
.getRequestParameterMap();
String newValue = (String) requestMap
.get(clientId);
if (null != newValue) {
input.setSubmittedValue(newValue);
Also providing the setProperties() from the custom tag class:
protected void setProperties(UIComponent component){
super.setProperties(component);
if (getValue()!=null){
if (isValueReference(getValue())){
ValueBinding vbTarget = FacesContext.getCurrentInstance().getApplication().
createValueBinding(getValue());
component.setValueBinding(VB_VALUE, vbTarget);
System.out.println(component.getValueBinding("value").getValue(FacesContext.getCurrentInstance()));
} else{
((UIInput) component).setValue(value);
// component.getAttributes().put("value",getValue());
if (getCompValue()!=null){
if (isValueReference(getCompValue())){
ValueBinding vbCompTarget = FacesContext.getCurrentInstance().getApplication().
createValueBinding(getCompValue());
component.setValueBinding(VB_COMPONENT_VALUE, vbCompTarget);
} else{
// ((UIInput) component).setValue(compValue);
component.getAttributes().put(VB_COMPONENT_VALUE,getCompValue());
if (getTable() != null && isValueReference(getTable())){
ValueBinding vbTable = FacesContext.getCurrentInstance().getApplication().
createValueBinding(getTable());
component.setValueBinding(VB_TABLE, vbTable);
} else{
component.getAttributes().put(VB_TABLE, getTable());
if (getColumn() != null && isValueReference(getColumn())){
ValueBinding vbColumn = FacesContext.getCurrentInstance().getApplication().
createValueBinding(getColumn());
component.setValueBinding(VB_COLUMN, vbColumn);
} else{
component.getAttributes().put(VB_COLUMN,getColumn());
if (getStyleClass() != null && isValueReference(getStyleClass())){
ValueBinding vbClass = FacesContext.getCurrentInstance().getApplication().
createValueBinding(getStyleClass());
component.setValueBinding(VB_STYLE_CLASS, vbClass);
} else{
component.getAttributes().put(VB_STYLE_CLASS, getStyleClass());
if(getRendered() != null && isValueReference(getRendered())){
ValueBinding vbRendered = FacesContext.getCurrentInstance().getApplication().
createValueBinding(getRendered());
component.setValueBinding(VB_RENDERED, vbRendered);
} else{
Boolean a = new Boolean(getRendered());
component.getAttributes().put(VB_RENDERED, new Boolean(getRendered()));
Please let me know If I am missing something here to retrieve the value from the component.
Thanks

See this tutorial:
http://www.jsftutorials.net/components/index.html

Similar Messages

  • Required component home not found for component 'oracle.as.jrf'

    I am getting the above error message during unpacking a template. Below is what I have done..
    First machine:
    OS is Oracle Linux 64 bit version 6.4. Weblogic version 11g is installed with 2 managed servers up and running fine.
    echo $MW_HOME
    /u01/app/oracle/middleware
    echo $WLS_HOME
    /u01/app/oracle/middleware/wlserver_10.3
    echo $DOM_HOME
    /u01/app/oracle/middleware/user_projects/domains/ClassicDomain
    Want to create another managed server on a second machine where the First machine has the Admin server..
    Second machine:
    OS is Oracle Linux 64 bit version 6.4. Weblogic version 11g is installed
    echo $MW_HOME
    /u01/app/oracle/middleware
    echo $WLS_HOME
    /u01/app/oracle/middleware/wlserver_10.3
    echo $DOM_HOME
    /u01/app/oracle/middleware/user_projects/domains/ClassicDomain
    I go to the first machine and do a ./pack.sh command to create a template with a name of test.jar and it is successful. Use the -log command to see the logs.(everything is fine)
    I copy the above created template test.jar to the second machine..
    Than on the second machine, I do the ./unpack.sh command in the $WLS_HOME/common/bin folder and I get the following error message:
    fail: read template from "/u01/app/oracle/middleware/wlserver_10.3/common/bin/test.jar"
    CFGFWK-60550:  Script execution aborted. The script may contain an error.
    Required component home not found for component 'oracle.as.jrf' version '11.1.1.6.0'
    Any ideas would really appreciate it. Both of the machines have the same weblogic installation and paths. The only difference is the amount of memory each machine has that is all.. Thank you

    I am getting the above error message during unpacking a template. Below is what I have done..
    First machine:
    OS is Oracle Linux 64 bit version 6.4. Weblogic version 11g is installed with 2 managed servers up and running fine.
    echo $MW_HOME
    /u01/app/oracle/middleware
    echo $WLS_HOME
    /u01/app/oracle/middleware/wlserver_10.3
    echo $DOM_HOME
    /u01/app/oracle/middleware/user_projects/domains/ClassicDomain
    Want to create another managed server on a second machine where the First machine has the Admin server..
    Second machine:
    OS is Oracle Linux 64 bit version 6.4. Weblogic version 11g is installed
    echo $MW_HOME
    /u01/app/oracle/middleware
    echo $WLS_HOME
    /u01/app/oracle/middleware/wlserver_10.3
    echo $DOM_HOME
    /u01/app/oracle/middleware/user_projects/domains/ClassicDomain
    I go to the first machine and do a ./pack.sh command to create a template with a name of test.jar and it is successful. Use the -log command to see the logs.(everything is fine)
    I copy the above created template test.jar to the second machine..
    Than on the second machine, I do the ./unpack.sh command in the $WLS_HOME/common/bin folder and I get the following error message:
    fail: read template from "/u01/app/oracle/middleware/wlserver_10.3/common/bin/test.jar"
    CFGFWK-60550:  Script execution aborted. The script may contain an error.
    Required component home not found for component 'oracle.as.jrf' version '11.1.1.6.0'
    Any ideas would really appreciate it. Both of the machines have the same weblogic installation and paths. The only difference is the amount of memory each machine has that is all.. Thank you

  • Error: "Component is not active" but component is active

    Hi Experts,
    I transported a Web Dynpro application from source system to target system. When starting the application via browser I'm getting this error message:
    "Component XXX_BDB is not active"
    But the component is active in source and in target system. When I try to activate the component in target system there comes this error:
    Component XXX_BDB can't be generated because of errors: see long text.
    (Message no. SWDP_WB_TOOL100)
    According to the long text, there is a heavy error and I should check the component in order to eliminate the errors. Checking the syntax is OK and strangely, the component controller is also active. But when I want to start WebDynpro-Component, the error message "Component is not active" is displayed.
    I have checked this thread [Problems when activating ComponentController   |Problems when activating ComponentController; without any effect....
    Does someone have any ideas?
    Thanks in advance,
    Tan

    Hi Thomas,
    where can I check the generation load limit?
    I've done an extended syntax check (in source system, is that okay or should I do the check on both systems?), there are some errors regarding strings, field properties and structure extensions and some warnings regarding field properties.
    But this errors are on an other wd component as well, but this other component is running, so I'm not sure if these errors are crucial. However I'm going to fix the errors now.
    Baskaran, I will check the component controller and component usage as well but how can I identify the errors or should I just check it in general?
    And what about the fact that both applications are running on the source system?
    Additional info: the source system is ECC 6.0, the target system is Solution Manager 7.0
    Thanks
    Edited by: Tan Yildiz on May 4, 2011 9:26 AM

  • Custom fields values not saved in AUFK using bapi_alm_order_maintain

    Hi ,
        We have a requirement where we have to update the custom fields in enhancement tab of IW31 using bapi_alm_order_maintain.
    We are able to get the successful creation of work order ,but the custom fields are not updated in enhancement tab aswell in aufk table. We are passing values in below table of bapi.
    EXTENSION_IN
                STRUCTURE           =  CI_AUFK
                VALUEPART1        =  '20091223' .
    Please provide the solution.

    Hi Phani,
    May be these links are helpful:
    BAPI extention to work order aiming AUFK custom field filling
    Update custom fields in MARA (BAPI_MATERIAL_SAVEDATA)
    Also search sdn using the BAPI function module, you may get some idea.
    Regards,
    Swarna Munukoti

  • PO service item - custom field value not copied to GR

    Hi All,
    I have a custom field in SC,PO and GR. For a sevice and limit items, the value in custom field in PO is not copied to GR. For goods, it is copied.
    When I debugged, I found that the system tries to match PO item internal number with that of backend item internal number. If this is matched, the custom field values are copied.
    But here it is not matched. What can be the possible reason. Is there any configuration for item internal numbers?
    I found a note 848797 for transfer. But exactly at the corrected code in note, program is failing.
    Have anyone faced this issue before?
    Thanks
    Nandalal

    Yes Disha, the notes are correctly implemented.
    I am confused on whether the internal number generated for the item is copied from some configured internal range, because when I enter two service items, the items shows backend internal numbers like 0000000010 and 0000000020 (increment by 10). But in SRM it is 0000000001 and 0000000002.
    When the code tries to match the respective numbers, it fails and skips the logic to copy custom fields.
    I dont have access to r/3 data.
    Please help.
    Have anyone tried to create a GR with service item and has custom field?
    Thanks
    Nandalal

  • Child component values submitted when parent component not rendered

    This pertains to the standard JSF components, but may carry over into Sun JSC.
    I have a column in a dataTable that contains a checkbox. The rendered attribute on that column is tied to a backing bean property. The column is/is not displayed as appropriate per the value of that property - great.
    Here's the rub: When that column is not rendered and the form is submitted the values for the checkboxes are still being submitted and my data model is being updated for those non-rendered components. Seems like this shouldn't happen, but the real problem is that the values submitted for those checkboxes are always 'false'. Seems like JSF is out of sync in this case in what it does between when the form is loaded and when it is submitted (perhaps it is not loading the values from the data model yet it is updating them on the submit - with garbage).
    To get this to work as I expected I had to set the rendered attribute on the checkbox components to match the rendered attribute on the column that contains them.
    Is there a bug here?

    This pertains to the standard JSF components, but may carry over into Sun JSC.
    I have a column in a dataTable that contains a checkbox. The rendered attribute on that column is tied to a backing bean property. The column is/is not displayed as appropriate per the value of that property - great.
    Here's the rub: When that column is not rendered and the form is submitted the values for the checkboxes are still being submitted and my data model is being updated for those non-rendered components. Seems like this shouldn't happen, but the real problem is that the values submitted for those checkboxes are always 'false'. Seems like JSF is out of sync in this case in what it does between when the form is loaded and when it is submitted (perhaps it is not loading the values from the data model yet it is updating them on the submit - with garbage).
    To get this to work as I expected I had to set the rendered attribute on the checkbox components to match the rendered attribute on the column that contains them.
    Is there a bug here?

  • OIM11gR2 DBAT User recon - custom UDF value not visible in User detail page

    Hi,
    I have configured DBAT connector for OIM11gR2 for user recon.
    Have created and mapped few custom UDFs in the GTC.
    User is created successfully in OIM, and has all the values correctly in USR table for all the custom UDFS.
    But when i search a user in OIM, i can not see the value of custom UDF, even though it is in the database.
    I have created and activated a sandbox and also added the custom UDF in the user details page using the Design option of ADF.
    Is there something I am missing related to display of custom attribute and its value on the USer details page.
    Kindly suggest.
    Regards

    Yes, your UDF should be available under Manage Users->UserVo1. It is working fine with our env. make sure you have the latest version of R2 release, because Beta release had an issue for same. You can create aonther UDF and and try gain.
    verify same with below doc
    http://docs.oracle.com/cd/E27559_01/doc.1112/e28183/oim_up.htm#BABEGECJ

  • Round trip clearing adobe form field values not binded to webdynpro context

    Hi ,
    I have developed a webdynpro ABAP application with Interactive form. I'm calling a webservice on 'exit event' of the one of the form fields. Once webservice is executed, Im filling a table with 300 rows which is in the form. The table fileds are binded to webservice fields from the dataview of the form , these are not webdynpro context attributes in the data view.
    But when I open any seach help , this table values are disappearing. I need to execute the webservice again to get the values.
    can any one tell why the values in the table are disappearing? since I have binded to the webservice fields the values should remain there.
    Apprecaite your response.
    Regards,
    Ravi

    I looked over that note yesterday, but too quickly - i thought it was an older note explaining which standard programs to run to test out the connection etc...
    but i see now that there is an important point:
    The "pdfSource" attribute of the InteractiveForm UI element should be linked only if the Web Dynpro ABAP application requires the PDF document for further processing (saving data to the database, and so on). However, it is mostly only the data entered in the interactive form that is relevant for the application. If this attribute is linked, the Web Dynpro ABAP framework must request an updated PDF document from the Adobe document services each time data is changed in the form.
    It looks like this is saying that a round trip is possible in WDA.
    EDIT - I wish SAP would fix this certificate issue. My first post every day is doubled because of it.
    Edited by: robert phelan on Jan 7, 2010 3:22 PM
    Edited by: robert phelan on Jan 7, 2010 3:25 PM

  • Customer Sales value not decrease (FD33) after billing (VF01)

    Hi,
    When Billing a delivery, in FD33 the receivable are correctly increased but sales value still unchanged
    normaly it should be decreased with the billed amount.
    Thanks for your help.

    Dear Ihsen,
    If I were you I would go to [Note 425523|https://service.sap.com/sap/support/notes/425523]. These issues are usually annoying, but at the end you can always perform reorganization of credit data after update errors- report RVKRED77.
    Regards,
    Milen.

  • BPM - Message interfaces of one component are not appearing in another comp

    Hi,
    We have created 2 software components(X and Y) for File to RFC scenario.
    "X" SWC is dependent on "Y" SWC.
    We are building sync-async bridge using BPM. We have created one BPM in X component. This BPM has the visibility of message interfaces only particular to that component only, not the other component.  Though wehave created dependency between these 2  components. But without this we cannot build sync-Async bridge.
    Please could you provide the inputs, so that we can proceed further.
    Thanks,
    Ramesh

    Hi,
    Where are you developing your BPM objects in X or Y ?
    If X is dependendent on Y , then you can access Abstract interfaces created in the X in Y.
    After creating SWC dependency, then refresh the cache and check out is it working ..
    for dependency-/people/michal.krawczyk2/blog/2005/08/26/xi-are-you-independentfrom-your-dependencies
    Regards,
    Moorthy

  • Regarding Value and Binding properties of af:inputTextBox

    Hi All,
    I am using JDeveloper 11.1.1.6.0. I want to set the value for af:inputTextBox from the backing bean.
    I observed there are two properties for this component, 'Value' and 'binding'.
    So, I thought of using 'Value' property. For this I created a property in my backing bean.
    Number textBoxValue; //Setter and getter methods for this ( I want to display numbers ans persist the same thats whay i have given as Number)
    and in one of my methods I had given,
    textBoxValue = new Number(12);
    I am able to display the value in the UI
    Here goes my queries, please clarify these.
    1) What is the need of these two properties?
    2) How can set value using the 'Binding' Property.
    3) Can I set value to the input using both properties?
    4) If 2nd point is correct then what will happen, if I set two different values to the textbox using these two components.
    Thanks & Regards,
    Ravi.

    1) Binding is uses as an EL reference that will store the component instance on a bean. This can be used to give programmatic access to a component from a backing bean, or to move creation of the component to a backing bean.
    Value represents the value of the component. If the EL binding for the "value" points to a bean property with a getter but no setter, and this is an editable component, the component will be rendered in read-only mode.
    So they are different.
    2) You don't
    3) You don't
    4) as 2) in not correct this is not relevant
    If you want to set the value of a ui component from inside a bean you have different possible solutions. Lets assume you have a binding for The component to bean. In case of a input text the bean property would be of type RichInputText. Lets the property name be myIPT. Then you set the value as myIPT.setValue("YOUR VALUE"); (if the component shows text).
    If you have bound the value property of the component to a bean attribute (using EL) you only need the change the bean attribute.
    If the value is bound to a value binding (e.g. one that was generated by dragging a VO onto the page and dropping it as form), you get the the value binding by
    // GET A METHOD FROM PAGEDEF AND EXECUTE IT
    // get the binding container
    BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
    // get an ADF attributevalue from the ADF page definitions
    AttributeBinding attr = (AttributeBinding)bindings.getControlBinding("NAME_OF_THE_ATTRIBUT");
    attr.setInputValue("test");Timo

  • MSS UWL WebDynproApplication value not found ...

    Hello,
    I am using MSS and would like to approve recorded times. But when I configure the UWL there is a problem with registering the object tpys:
    WebDynproApplication value not found for task TS00700049 in system SAP_ECC_Financials
    Portal Component value not found for task TS00700059 in system SAP_ECC_Financials
    Could someone tell me please what this could be and how I can fix it?
    Thx, Vanessa

    Hello Siddharth Rajora,
    thanks for your answer. I will try it out in the next days.
    Could you tell me which which values I should set for the parameters?
    Thanks,
      Vanessa

  • JSF RI  1.1_01: UIInput component value was not set during render response

    I've just started to learn JSF, read corresponding chapters in J2EE guide and spec and tried to play little bit with JSF RI 1.1_01. I found very strange (at least for me) behaviour of regular input component (corresponds to inputText tag).
    I have very simple example form (contains "select one", input component and command button). Corresponding backing bean has request scope. I set breakpoints in backing bean getters and during debug found:
    1. On initial request both getters were called during rendering phase.
    2. On form submit request getter for property bound to input component was called again (this looks strange for me) but getter for property bound to select box was not called (it looks as I've expected). This strange call occurs during validation phase. As far as I understand it was the following flow:
    a) During initial request rendering response input box value wwas not stored in component state (I even may suggest that it was not set on component, just corresponding HTML tag with initial value was rendered).
    b) On submit form submitted string value of input component was decoded from request parameters but local value was set to null (see above).
    c) During validation phase submitted value was successfully converted and validated.
    d) Then implementation had to detect component value change and called getValue() in order to obtain old value.
    e) Implementation of getValue() first looked for local value field - it is null, then it should request for bound value from model.
    I tried different ways to store state (client or server) but it was the same. Sadly MyFaces 1.1.1 implementation did even worse - local value of select was also null during first postback.
    I wonder why it was implemented this way...
    Thank you

    I've just started to learn JSF, read corresponding chapters in J2EE guide and spec and tried to play little bit with JSF RI 1.1_01. I found very strange (at least for me) behaviour of regular input component (corresponds to inputText tag).
    I have very simple example form (contains "select one", input component and command button). Corresponding backing bean has request scope. I set breakpoints in backing bean getters and during debug found:
    1. On initial request both getters were called during rendering phase.
    2. On form submit request getter for property bound to input component was called again (this looks strange for me) but getter for property bound to select box was not called (it looks as I've expected). This strange call occurs during validation phase. As far as I understand it was the following flow:
    a) During initial request rendering response input box value wwas not stored in component state (I even may suggest that it was not set on component, just corresponding HTML tag with initial value was rendered).
    b) On submit form submitted string value of input component was decoded from request parameters but local value was set to null (see above).
    c) During validation phase submitted value was successfully converted and validated.
    d) Then implementation had to detect component value change and called getValue() in order to obtain old value.
    e) Implementation of getValue() first looked for local value field - it is null, then it should request for bound value from model.
    I tried different ways to store state (client or server) but it was the same. Sadly MyFaces 1.1.1 implementation did even worse - local value of select was also null during first postback.
    I wonder why it was implemented this way...
    Thank you

  • How to make content of af:popup dynamic? Component Value is not updating.

    HI,
         I am not able to update the component used in af:popup dynamically.
         In my case, the value of the component used in the popup is updated every time before opening the popup.
         I am building the af:popup. I am using component binding for my components. And I am setting data in the component using the component in the Managed bean only. The getter method for every component that I bind gets called only once i.e. while loading of the page. So when ever I change any thing in the component in managed bean, it is not reflecting in JSPX page. Coz it not calling the getter method of the component, so it is not getting the updated status for the component. But if you refresh the page you will get the updated component.
         Following is the sample code to simulate my problem,
         JSPX Page:-
    <af:commandButton text="RCF Dialog (Without Script)" id="button1"
    windowHeight="600" windowWidth="600">
    <af:showPopupBehavior popupId="samplePopup" alignId="button1"
    align="afterEnd"/>
    </af:commandButton>
    <af:popup id="samplePopup" clientComponent="false"
    contentDelivery="lazyUncached">
    <af:dialog title="Sample Dialog Test" modal="true"
    cancelVisible="true" okVisible="true">
    <af:inputText label="Label 1" value="#{searchField.myValue}"/>
    <af:inputText label="Label 2" binding="#{searchField.textField}" />
    </af:dialog>
    </af:popup>
    Managed Bean:-
    public static int count = 1;
    private String myValue = null;
    private CoreInputText textField = new CoreInputText();
    public String getMyValue(){
    String value = "MESSAGE_" + count;
    System.out.println("Count ==>" count " Value ==>"+value);
    count++;
    return value;
    public CoreInputText getTextField() {
    //Get called only once at the page load.
    textField.setValue(getMyValue()+"_XXX");
    return textField;
    public void setTextField(CoreInputText textField) {
    //Get called every time dialog is opened.
    this.textField = textField;
    Please let me know what to do make the content of the af:popup dynamic.
    Any suggestions are welcome.

    HI,
    I have simulate my problem using one text field component in side the popup. It is the same way that i am using. In my case there is more code in the constructor of the dialog bean.
    Following is the code,
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
    xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <f:view>
    <af:document title="Popup Demo">
    <af:form>
    <af:spacer width="10"/>
    <af:commandButton text="RCF Dialog (With Script)" id="button"
    actionListener="#{mainScreen.processAcion}"/>
    <f:verbatim>
    <![CDATA[
    <script>
    function launchSampleDialog() {
    var popup = AdfPage.PAGE.findComponent("samplePopup");
    var hints = {};
    hints[AdfRichPopup.HINT_ALIGN] = AdfRichPopup.ALIGN_OVERLAP;
    hints[AdfRichPopup.HINT_ALIGN_ID] = "button";
    popup.show(hints);
    </script> ]]>
    </f:verbatim>
    <af:popup id="samplePopup" clientComponent="false" contentDelivery="lazyUncached" >
    <af:dialog title="Sample Dialog Test" modal="true" id="dialogId" cancelVisible="true" okVisible="true">
    <af:inputText label="Label 1" />
    <af:inputText binding="#{dialogBean.textField}" />
    </af:dialog>
    </af:popup>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    //Main Screen Bean set in session scope.
    public class MainScreenBean {
         private static int count = 1;
         public void processAcion(ActionEvent event){
    String updatedData = "ABCDEFG__" + count;
    System.out.println("Inside process Action of Main Bean. Data set in Scope ==>" +updatedData );
    FacesContext facesContext = FacesContext.getCurrentInstance();
    facesContext.getExternalContext().getSessionMap().remove("dialogBean");
    AdfFacesContext afContext = AdfFacesContext.getCurrentInstance();
    afContext.getProcessScope().put("updateData", updatedData);
              count++;
    ExtendedRenderKitService service = Service.getRenderKitService(facesContext, ExtendedRenderKitService.class);
    service.addScript(facesContext, "launchSampleDialog();");
    //Popup Dialog Bean set in session scope.
    public class DialogBean {
    private RichInputText textField = null;
    public DialogBean() {
    textField = new RichInputText();
    textField.setLabel("Custom TextField");
    AdfFacesContext afContext = AdfFacesContext.getCurrentInstance();
    textField.setValue(afContext.getProcessScope().get("updateData"));
    System.out.println("Data From Scope in Dailog Bean = " + afContext.getProcessScope().get("updateData"));
    RequestContext.getCurrentInstance().addPartialTarget(textField);
    public RichInputText getTextField() {
    System.out.println("Inside getter for the component in Dailog Bean. Value = " + textField.getValue());
    return textField;
    public void setTextField(RichInputText textField) {       
    AdfFacesContext afContext = AdfFacesContext.getCurrentInstance();
    //Uncomment following line and run again. It will start showing updated value. But this will get called many times.
    //textField.setValue(afContext.getProcessScope().get("updateData"));
    System.out.println("Inside setter for the component in Dailog Bean. Value = " + textField.getValue());
    this.textField = textField;
    }

  • Using table component,not binding

    Hi all,
    I've been searching info about using the table component
    , adding,deleting,etc programatically, not binding to a Database how the JSC tutorial works.
    The idea is simply:
    - add and remove rows when the user fills a textbox and push a button to add the item.....
    Anyone have an example or a link with examples??
    thanks in advance!

    What I do is create a list with, say, two Person objects then use ObjectListDataProvider's setList(List) method to associate the list with the data provider's list property.
    I create the data provider in a session bean. In the bean's init method I call remove the dummy list items.
    Before you can bind this data provider's list to any components you have to build the project, then close and reopen the project. Otherwise, JSC won't detect the presence of the data provider.
    Here's an example from my program. Note that any package or import beginning with com.cfi.office refers to custom code.
    This first class is the data provider. I added a convenience method clear the list but you don't have to do that.package com.cfi.office.dataproviders;
    import com.cfi.office.schema.tables.Phone;
    import com.sun.data.provider.impl.ObjectListDataProvider;
    import java.util.ArrayList;
    import java.util.List;
    public class PhoneListDataProvider extends ObjectListDataProvider {
        public PhoneListDataProvider() {
            List phoneList = new ArrayList();
            phoneList.add(new Phone("1112223333", "444");
            phoneList.add(new Phone("5556667777", "888");
            this.setList(phoneList);
        public void clearList() {
            this.getList().clear();
            return;
    }This next code fragment is from a session bean.    public void init() {
            super.init();
            try {
                _init();
            } catch (Exception e) {
                log("BidSessionBean Initialization Failure", e);
                throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
            abContactPhoneListDP.clearList();
        private PhoneListDataProvider abContactPhoneListDP = new PhoneListDataProvider();
        public PhoneListDataProvider getAbContactPhoneListDP() {
            return this.abContactPhoneListDP;
        public void setAbContactPhoneListDP(PhoneListDataProvider abContactPhoneListDP) {
            this.abContactPhoneListDP = abContactPhoneListDP;
        }After you build the project, close it and reopen it, you should see the data provider in the binding dialog box.

Maybe you are looking for