reset of bean

Hi Experts,

11.1.2.1 JDEV
Can we initiate a reset button (inside a shape and it's invisible) action (ie., press the button) of a bean manged?

If it is a stupid question... Please ignore...

PMS

Published by: pms on February 24, 2012 16:25

Let me help you with a code more, that I hope make things clear:
You can either call resetValues and pass a UIComponent, you have access to your bean to the next method. This will reset all the fields that are in the same container as the UIComponent.
To get a UIComponent you can link it with an attribute in your bean.

    public void resetValues(UIComponent startComponent)
    {
        FacesContext facesCtx = FacesContext.getCurrentInstance();
        // pass component inside the UIForm, UIXForm, UIXSubform, UIXRegion, UIXPopup, RichCarousel
        // or RichPanelCollection which holds the components to reset
        ResetUtils.reset(startComponent);
    }

or you use the following method where you don't even need the UIComponent itself, but only the id of the component. Here, you pass the id for example of af: form to the method resetValuesByContainerId (String compId), for example resetValuesByContainerId ("f1"); If on af: has the id "f1".

    /**
     * resets all valueHodler components values found in the container named by compId
     * @param compId Id of hte container holding hte valueHolder components
     */
    public void resetValueListenerByContainerId(String compId)
    {
        FacesContext facesCtx = FacesContext.getCurrentInstance();
        UIComponent ui = findComponent(facesCtx.getViewRoot(), compId);
        if (ui != null)
        {
            // pass component inside the UIForm, UIXForm, UIXSubform, UIXRegion, UIXPopup, RichCarousel
            // or RichPanelCollection which holds the components to reset
            ResetUtils.reset(ui);
        }
    }

    /**
     * Locate an UIComponent from its base component.
     * @param base Component
     * @param id UIComponent id
     * @return UIComponent object
     */
    public UIComponent findComponent(UIComponent base, String id)
    {
        if (id.equals(base.getId()))
            return base;

        UIComponent children = null;
        UIComponent result = null;
        Iterator childrens = base.getFacetsAndChildren();
        while (childrens.hasNext() && (result == null))
        {
            children = (UIComponent) childrens.next();
            if (id.equals(children.getId()))
            {
                result = children;
                break;
            }
            result = findComponent(children, id);
            if (result != null)
            {
                break;
            }
        }
        return result;
    }

Timo

Tags: Java

Similar Questions

  • Why the value of my variable resets Boolean false when executing a method of a Bean?

    Hey everybody,

    I use JDeveloper 12.1.2.0.0.

    As the title says, my Boolean variable resets to false when I run my bean class method.

    In my bean class, I have this variable:

    Bank private Boolean = false;

    {} public void onDimStoreSelect (SelectionEvent selectionEvent)

    ...

    Ranger = true;

    FactSalesHUB (selectionEvent);

    ...

    }

    {} public void onDimSellerSelect (SelectionEvent selectionEvent)

    ....

    FactSalesHUB (selectionEvent);

    }

    public void FactSalesHUB (SelectionEvent selectionEvent) {}

    GenericTableSelectionHandler.makeCurrent (selectionEvent);

    If (product! = true)

    matchEmFromJavaScriptProducts();

    If (store! = true)

    matchEmFromJavaScriptStore();

    If (seller! = true)

    matchEmFromJavaScriptSeller();

    If (project! = true)

    matchEmFromJavaScriptProject();

    If (customer == false)

    matchEmFromJavaScriptCustomer();

    If (part! = true)

    matchEmFromJavaScriptCoin();

    }

    If I perform the onDimStoreSelect and after that, if I run the onDimSellerSelect, the value of the client variable is already set to false and it will make my matchEmFromJavaScriptStore() runs when I don't want it.

    Why didn't he stores the value as false since I did in the previous method? Any idea?

    If the problem is not well explained, or it is not well explained just tell.

    Kind regards

    Frederico.

    Try to increase the scope of your beans.  After each request your bean loses value and believe you lose the set Boolean value.

  • Value at the bean do not reset on the valuechange listener appeal.

    Hello

    I am new to this technology. I wrote a custom validator in my bean class to validate if the due date is greater than start date.

    < columns af:inputDate = "10" label = "EndDate" id = "endDate" clientComponent = "true".
    value autoSubmit = "#{viewScope.Bean1.EndDate}" = 'true' "
    Binding = "#{viewScope.Bean1.EndDate} '"
    immediate = "true".
    Validator = "#{viewScope.Bean1.validateStartandEndDate} '"
    valueChangeListener = "#{viewScope.Bean1.changeDateValuesOnSelection}" >

    Validation is performed when I click on the "submit" button. Problem is if the first time I choose the date to give EM i.e. end date of small to start the date of Validation takes place. Date values are defined in the bean. Now if I change the above date end date (and not only not to give the Error Message) start always get EM as the validator supports only the values of old bean. ValueChange listener not called in the bean method. Yet when EM comes where it shouldn't come.

    Please help on how to get the changed values in the date field.

    I use JSTL1.2 11.1 Jdev

    Published by: 924834 on May 10, 2012 07:14

    also at the bean I get the values from the UI component only and not the value attribute defined

        public void onValidate(FacesContext facesContext, UIComponent uIComponent, Object object) {
            //use object value, instead of bind value attr or taking from component....
    
            // Add event code here...
        }
    
  • Factory reset cannot

    I have a slatebook Jelly bean 4.3 android running. I forgot the password lock screen, I should be able to correct by a factory reset power off. Holding the power and volume buttons as shown, but nothing happens. Any ideas?

    Hello @Chewwy,

    I suggest to do the following:

    Whereas Slatebook is turned off
    -Press and hold the down volume, low volume button is held, press the power button.
    -Keep the low volume button waiting until recovery menu appears.

    I hope this helps!

    -zzxeN

  • Jelly Bean and gallery issues

    Just our phones updated to jelly bean and bf and I have the same problem. When we go to the gallery and select the albums of camera images remain for a few and then the Gallery closes without reason. No error message or anything. I have rebooted the phone, did a hard reset, erased the cache of cameras and data always the same question. I also tried to remove my sd British Colombia card, it seemed only affect the camera Gallery, but then I noticed that her time out of the Gallery, even when I select an album.

    Any ideas on how to fix?


  • Acer Iconia A3 - A10: is it possible to downgrade to Android Jelly Bean?

    Hello

    I upgraded my Acer Iconia A3 - A10 of Jelly Bean to Kitkat a few days ago. Not happy at all. Many applications running too slow, wifi doesn't work well, etc.

    I did a factory data reset but my Tablet Android 4.4.2 lights. Is this normal?

    Is it possible to downgrade to Jelly Bean, the version that came with my Tablet? How to do?

    Thanks in advance.

    Hello

    OS installed at the factory reset in Android, does not get the unit to the factory, it resets the same default version, this is quite normal. But if you want to return to JB, yes it is possible if you can find the image @ acer support, as now, the image is not available, maybe you need to wait, or could contact support for assistance, Cheers,.

  • link bean variable question in jsff

    Hi friends,

    JDeveloper 11.1.1.7.0

    I have a table in jsff 1 with all the records in a view and a button 'detail' in each line that leads to the jsff 2 which shows the details of the line only slected with editable fields.

    One of the fields (select one choice) in the form of jsff 2 has a variable bean (pageflowscope) of support.

    When I click on details and change the value in the variable soc said above and return to the table view without even commit. Now when I select another record and go to the detail view, it shows the value of the COS says higher than the value selected in the previous step.

    Ideas please

    Hello

    If you store the value in the flowrate range of page, the value will live until you leave the workflow. Try using a smaller range, or reset the value when you enter the fragment or just before leaving fragment2.

    Kind regards

    Ruben.

  • Using @Interceptors with ADF managed beans

    Hi Experts,

    I am using the annotation javax.interceptor.Interceptors on my methods of ADF managed beans, but my methods of interception are not get called.

    Is it possible to use it with controlled beans? Has anyone tried this before?

    JDev: 11.1.1.7

    Java: 1.7

    MyInterceptor.java

    =========

    public class MyInterceptor {}

    public MyInterceptor() {}

    Super();

    }

    @AroundInvoke

    public object intercept (InvocationContext context) throws Exception {}

    System.out.println ("MyInterceptor - logging BEFORE calling method:"+ context.getMethod () .getName () ");

    Object result = context.proceed ();

    System.out.println ("MyInterceptor - logging AFTER calling method:"+ context.getMethod () .getName () ");

    return the result;

    }

    }

    =========

    SomeBean.java

    =============

    public class SomeBean {}

    @Interceptors (MyInterceptor.class)

    {} public void doReset (ActionEvent actionEvent)

    do something

    System.out.println ("In reset");

    }

    }

    =============

    Thank you

    Soham

    As far as I KNOW, JSF(and ADF) can't stand the interceptors.

    Maybe you can try this in 12.2.1 jdev because with this version is packaged 2.2 JSF (which should support the CDI)

    Dario

  • How to reset the value of selectOneChoice when it is af:table

    12.1.3 Jdev

    I need to reset the selectOneChoice of the first empty value when you click a Refresh"" button.  The selectOneChoice is located in one of the columns of af: table.  I tried to reset by getting the selectOneChoice component and set the value to «»   Please see the snipplet of code for more details. However if the selectOneChoice is not within the af: table, then using the same way to reset works!

    in jspx

    "< af:commandToolbarButton id ="ctb15"icon="/images/refresh_qualifier.png "shortDesc ="Refresh"action =" #{viewScope.backing_requestOverview.onRefresh} "partialSubmit ="false"> < / af:commandToolbarButton >"

    < af:table value = "#{bindings." ItasTaskAssigneesListVO1.collectionModel}.

    var = "row".

    lines = ' #{bindings. " ItasTaskAssigneesListVO1.rangeSize}.

    emptyText = "#{bindings." ItasTaskAssigneesListVO1.viewable? "{'No data to display.': 'Access Denied.'}".

    fetchSize = "#{bindings." ItasTaskAssigneesListVO1.rangeSize}.

    rowBandingInterval = '1' id = 't4 '.

    styleClass = "AFStretchWidth."

    columnStretching = "column: c1.

    rowSelection = 'single '.

    selectionListener = "#{bindings." ItasTaskAssigneesListVO1.collectionModel.makeCurrent}.

    selectedRowKeys = ' #{bindings. " ItasTaskAssigneesListVO1.collectionModel.selectedRow} ">"

    < af:column id = "c6" headerText = "Action".

    rendering = "#{bindings." EventLevelTypeCode.inputValue! ' = ' 10 G ' & amp; & amp;! viewScope.backing_requestOverview.isReadOnly} ">"

    < af:selectOneChoice id = "soc2".

    autoSubmit = 'true '.

    valueChangeListener = "#{viewScope.backing_requestOverview.onChangeMyPendingAction} '"

    Disabled = "#{!}" line. TaskActionEnabled} ">"

    < f: selectItems value = "#{backing_requestOverview.actionsMap [row." StatusUid]} ".

    ID = "si3" / >

    < / af:selectOneChoice >

    < / af:column >

    < / af:table >

    < af:selectOneChoice id = "soc222" >

    < af:selectItem label = "Complete"

    value = "COMPLETE"

    ID = "si4" / >

    < af:selectItem label = "Assign".

    value = "ASSIGN".

    ID = "si555" / >

    < / af:selectOneChoice >

    Java bean:

    public String onRefresh() {}

    RichSelectOneChoice actionDropdown = (RichSelectOneChoice) JSFUtils.findComponentInRoot ("soc2");

    actionDropdown.setValue("");

    RichSelectOneChoice actionDropdown2 = (RichSelectOneChoice) JSFUtils.findComponentInRoot ("soc222");

    actionDropdown.setValue("");

    If (actionDropdown! = null) {}

    AdfFacesContext.getCurrentInstance () .addPartialTarget (actionDropdown);

    }

    If (actionDropdown2! = null) {}

    AdfFacesContext.getCurrentInstance () .addPartialTarget (actionDropdown2);

    }

    }

    Please notify.

    Thank you

    -Mina

    The root of the problem remains the same. As long as you don't set a value for each of SPC property that you use, you cannot reset them without running into trouble.

    An soc within a table must be stored too, you must provide the form of attribute value each of them. If you only use a soc, to distinguish the action to take, it belongs in the table.

    Timo

  • Impossible to delete previously selected items from the drop-down lists at the click of the button Reset on a page of the screen.

    Hello

    I'm unable to clear previously selected items from the drop-down lists at the click of the button Reset on a page of the screen. The code I did to clear the previous value when the click on the button Reset is as below.

    {} public void onReinitialize (ActionEvent actionEvent)

    System.out.println ("onReinitialize is called ::");

    UIComponent uiComp = actionEvent.getComponent ();

    If (uiComp is nothing)

    {

    otherwise we use the button that we linked to that bean

    uiComp = getButtonResetByBean ();

    _logger.info ("reset fields: buttonID =" + uiComp.getId ());

    }

    on the other

    {

    _logger.info ("reset fields: CompID =" + uiComp.getId ());

    }

    Pass the component inside the uniforms, UIXForm, UIXSubform, UIXRegion, UIXPopup, RichCarousel

    or RichPanelCollection that contains the components to reset

    getTextIDLOV () .setValue (null);

    ResetUtils.reset (uiComp);

    }

    ---

    Using this code Iam able to clear the entrance to the text box but can not clear previously selected items from the drop-down lists when the reset button is clicked

    Can anyone please help on this issue.

    It's simple, you can set GenerateIsNullClauseForBindVars = "false" in the viewCriteria who created in EmployeeView

    After doing that it will fill the list of employees only after the Department selection

    Again check the enclosed application

    Ashish

  • Reset the filter table values in Jdev 11.1.1.7

    Hi Experts,

    I use Jdev 11.1.1.7

    I went through this link Ashish Awasthi (Jdev/ADF) Blog: table light filter in the ADF value

    I created a column and the value rowHeader as true. After you run this page, I'm not able to see the pencil icon which is reset all the values of the filter components and update the table.

    I don't want to reset by program, I want to use the functionality of the ADF.

    Here writing my code snippet:

    < af:table value = "#{bindings." Var EmpResultReportPVO11.collectionModel}"="row ".

    lines = ' #{bindings. " EmpResultReportPVO11.rangeSize}.

    emptyText = "#{bindings." EmpResultReportPVO11.viewable? "{'No data to display.': 'Access Denied.'}".

    fetchSize = "#{bindings." EmpResultReportPVO11.rangeSize}' rowBandingInterval = '0 '.

    filterModel = "#{bindings." EmpResultReportPVO1Query.queryDescriptor}.

    queryListener = ' #{bindings. " FilterVisible EmpResultReportPVO1Query.processQuery}"="true"varStatus ="vs. "

    selectedRowKeys = ' #{bindings. " EmpResultReportPVO11.collectionModel.selectedRow}.

    selectionListener = "#{bindings." RowSelection EmpResultReportPVO11.collectionModel.makeCurrent}' = 'single '.

    ID = "res_table" >

    < af:column id = 'c12' width = "14" rowHeader = "true" / >

    < af:column sortProperty = "#{bindings." EmpResultReportPVO11.hints.EmpId.name}"blockable ="true"sortable ="true ".

    headerText = "#{etoolviewcontrollerBundle.EMPLOYEE_ID}" id = 'c3' returned 'false' = > "

    < af:outputText value = "#{rank." EmpId}"id ="ot9">

    < af:convertNumber groupingUsed = 'false' pattern = ' #{bindings. " EmpResultReportPVO11.hints.EmpId.format}"/ >

    < / af:outputText >

    < / af:column >

    < af:column sortProperty = "#{bindings." EmpResultReportPVO11.hints.Name.name}"blockable ="true"sortable ="true ".

    headerText = "#{etoolviewcontrollerBundle.FIRST_NAME}" id = 'c4' = "caseInsensitive" filterFeatures > "

    < af:outputText value = "#{rank." Name}"id ="ot4"/ >

    < / af:column >

    Please someone help me.

    Thank you, ADV

    Jyoti

    Hi Jyoti,

    I think that the rowHeader = true does not work in 11.1.1.7. You can go with the programmatic approach.

    1 link table you with bean class

    2. the button click event of Action the code below

    private richeTableau empTable.

    {} public void filterTable (ActionEvent actionEvent)
    Add the code in the event here...
    FilterableQueryDescriptor = queryDescriptor
    (FilterableQueryDescriptor) getEmpTable () .getFilterModel ();
    If (queryDescriptor! = null &)
    queryDescriptor.getFilterCriteria ()! = null) {}
    queryDescriptor.getFilterCriteria () .clear ();
    getEmpTable () .queueEvent (new QueryEvent (getEmpTable (),
    queryDescriptor));
    }

    Thank you

    Nitesh

  • Problem with challenge Questions/Force Password reset

    Problem with challenge Questions/Force Password reset

    We have integrated the IOM - OAM 11g R2 PS1. When a new user is created through the console of the IOM and tried to login for the first time in the console of the IOM.

    -Accessible via Direct / url of the Web server on port 7777 (by OAM), framework for change of password is visible and challenging questions setting frame is not visible. In this case, I'm not able to reset the password due to errors (popup appears with "Houston-29000 unexpected exception caught:" error). Paste the contents of the log below:

    NOTE: ANY CUSTOMIZATIONS PERFORMED ON ISSUES CHALLENGE *.

    oracle.iam.ui.platform.exception.OIMRuntimeException: Houston-29000: Unexpected exception caught: java.lang.NullPointerException, msg = null

    at oracle.iam.ui.authenticated.firstlogin.model.am.FirstLoginAMImpl.changePassword(FirstLoginAMImpl.java:261)

    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

    at oracle.adf.model.binding.DCInvokeMethod.invokeMethod(DCInvokeMethod.java:657)

    at oracle.adf.model.binding.DCDataControl.invokeMethod(DCDataControl.java:2143)

    at oracle.adf.model.bc4j.DCJboDataControl.invokeMethod(DCJboDataControl.java:3114)

    at oracle.adf.model.binding.DCInvokeMethod.callMethod(DCInvokeMethod.java:261)

    at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1635)

    at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2150)

    at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:740)

    at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.executeEvent(PageLifecycleImpl.java:402)

    at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding._execute(FacesCtrlActionBinding.java:252)

    at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.execute(FacesCtrlActionBinding.java:210)

    at oracle.iam.ui.platform.utils.FacesUtils.executeOperationBinding(FacesUtils.java:176)

    at oracle.iam.ui.platform.utils.FacesUtils.executeOperationBindingFromActionListener(FacesUtils.java:123)

    at oracle.iam.ui.authenticated.firstlogin.bean.FirstLoginValidatorBean.setPassword(FirstLoginValidatorBean.java:376)

    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

    at com.sun.el.parser.AstValue.invoke(AstValue.java:187)

    at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:297)

    at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1256)

    at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)

    at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)

    at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:102)

    to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$ 1.run(ContextSwitchingComponent.java:92)

    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)

    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)

    at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:96)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:1018)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:386)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:194)

    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)

    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:227)

    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)

    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)

    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.adf.view.page.editor.webapp.WebCenterComposerFilter.doFilter(WebCenterComposerFilter.java:117)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)

    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:446)

    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)

    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:446)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)

    Any help.

    Thank you.

    I solved this problem, the problem is due to Bug ID # 17008132.

    Thank you.

  • How to reset a contextual input fields

    Hello

    This question is asked repeatedly, but the solution that does not work.

    I have a dialog box in a popup defined as:

    < af:popup childCreation = 'deferred' id = 'updatePopup' contentDelivery = "lazyUncached" binding = "#{components ['updatePopup']} ' autoCancel ="disabled ".
    resetEditableValues = "whenCanceled" >
    < af:dialog id = "dc_d1".
    title = "#{"CREATE"eq Bindings.action1.inputValue? viewcontrollerBundle.SERIAL_RIGHTS_MASS_CREATE_TITLE: SERIAL_RIGHTS_MASS_UPDATE_TITLE}" "
    type = 'none' closeIconVisible = 'false' contentWidth = '800' contentHeight = "100" >

    The popup is set with lazyUncached contentDelivery and whenCanceled resetEditableValues. I am it would be enough to reset the fields, but apparently not. In the dialog box (type none is on purpose), I have a Cancel button calling an actionListener:

    Popup RichPopup = (RichPopup) JSFUtils.resolveExpression("#{components['updatePopup']}");

    Popup.Cancel ();

    I also tried popup.hide () the same problem.

    The purpose of components is a card component of link as a scope of the request:

    < managed-bean >
    < description > holder of all component links. < / description >
    components of < managed-bean-name > < / managed-bean-name >
    java.util.HashMap < managed-bean-class > < / managed-bean-class >
    application of < managed-bean-scope > < / managed-bean-scope >
    < / managed-bean >

    So how do reset you the popup/dialog input fields?

    Thank you

    JDev 11.1.2.4

    PS: on a side note, why when I copy paste my code, the editor of the forum will create tables.

    Hello

    Tried with

    ADF RichClient API - af:resetListener

    ?

  • Taskflow dynamic array and reset the user interface States

    Hi team.

    I use JDeveloper 11.1.2.4.

    I have a nice flow dynamic bounded task that has a view main activity.  Links to view activity change as part of the workflow.  The workflow is initialized with a navigation event.  The display shows just a table of data corresponding to the navigation event.  The table is sortable.  It all works very well.

    The challenge that I meet is that users do not want details of the sort on the table has persisted between navigation events.  So they select NavA, the query executes against ViewA.  They select NavA, they query executes against ViewB.  The table and the activity of the view are the same.  And, during the navigation, in the framework of task flow not related, the display does not actually change in the region.  It is updated with the appropriate data, but the genre are also persisted.  It feels like the client stores the State of the table that I'm not able to remove the sorting criteria of the Rich Table via a managed bean.  Certainly, it feels like what must be launched from the client instead of a managed bean. I don't want to add buttons to view activity to do the reset, because users want this to be triggered by the navigation event.

    If I spend a dynamic unrelated workflow and to return to the dynamic workflow, so details are reset beautifully.  However, this is not an option for the users.

    Any suggestions on the approach would be appreciated.

    Thank you


    BradW

    OK, so I had to add this feature to my menu:

      public void setResetMainRegion(String regionName){
        if (regionName != null && !"".equals(regionName)){
          UIComponent mainRegion = JSFUtils.findComponentInRoot(regionName);
          RichTable table = (RichTable)JSFUtils.findComponent(mainRegion, "DynamicCodeTablesTab");
          if (table != null){
            List sc = new ArrayList() ;
            table.setSortCriteria(sc);
            AdfFacesContext ctx = AdfFacesContext.getCurrentInstance();
            ctx.addPartialTarget(table);
          }
    
        }
    

    The thing is that we must find the component, as it is extremely difficult to work with PageFlowScoped managed beans that have been created to support tables.  Such a simple fix, it took you a while to understand where the issue should be resolved.  It seems that some of these issues have to keep longer appears outside the BTF.  Not ideal because this introduces too many dependencies.  Trying to minimize as much as we can.

    BradW

  • Problem with access to VO in the bean

    Team

    I use Jdev 11.1.2.3.0

    Here is the piece of code in my bean class.

    RmtAscpDashboardAMImpl = RmtAscpDashboardAMImpl

    (RmtAscpDashboardAMImpl) RmtAscpDashboardUtil.getAM ("RmtAscpDashboardAMDataControl");

    If (rmtAscpDashboardAMImpl! = null) {}

    rmtAscpDashboardAMImpl.getUc4ProcessedCategoriesNAEPreCollection () .executeQuery ();

    ViewObjectImpl uc4ProcessedCategoriesCategory1 = rmtAscpDashboardAMImpl.getUc4ProcessedCategoriesNAEPreCollection ();

    uc4ProcessedCategoriesCategory1.first (); When I run here uc4ProcessedCategoriesCategory1.getRowCount ()... result is 1.

    While (uc4ProcessedCategoriesCategory1.hasNext ()) {}

    Uc4ProcessedCategoriesVORowImpl = uc4ProcessedCategoriesNAEPre

    (Uc4ProcessedCategoriesVORowImpl) uc4ProcessedCategoriesCategory1.next ();

    }

    }

    In the above code, getRowCount() shows a record, but even then the loop is a failure.

    I don't get what wrong I do here. Please help me in this case.

    Thank you

    RAK

    Rak,

    If you use the vo on a page, and it looks like you're doing, this is the expected behavior. In this case the chosen framework always the first line as the current line. If you now ask the following line, the answer is no, it is not a. You must reset your loop of early work on the first line and the loop on the rest.

    Timo

Maybe you are looking for