[ADF, JDev12.1.3] Lined back workflow a lot of values used as a dialog box. How to specify and pass the values to the btf appellant?

Hallo,

I've created a workflow bounded (containing JSPX pages) that I use as dialog box.

There a lot of return values...

I would like to how to go and read all values ret in the workflow limited appeal because the return value of dialogue seems to not allow a value...

Thank you

Federico

You can try with returnListener, then to returnEvent.getReturnParameters ( https://myfaces.apache.org/trinidad/trinidad-api/apidocs/org/apache/myfaces/trinidad/event/ReturnEvent.html#getReturnParameters%28%29 )

Dario

Tags: Java

Similar Questions

  • [ADF, JDev12.1.3] Plating of workflow that can function as 'serch & open' and 'create '? How to build?

    Hallo,

    in a stubborn workflow, I have a fragment of Details as you can see here...

    And it is the working group...

    Then dynamic region is contained within the page that has a menu.

    Each menu item has action = "#{viewScope.mainDynamicRegion.startBoundedTaskFlowX}". "

    The bean maniDynamicRegion I have a lot of functions, each for each menu item, like this:

    public String startBoundedTaskFlowX() {}

    taskFlowId = "/WEB-INF/btf-X.xml#btf-X";

    Returns a null value.

    }

    End of details

    I would like to have 2 menu items for the btf above: one as 'research and details open' and onoter like 'create new details '.

    When I click on "search...". "a search form should appear, the user selects a folder, then click on 'Open' and finally appears my fragment 'details' showing the desired folder.

    Of course I have now that I'll have to add a new snippet to search for the folder desired to open

    When I click "create...". "my fragment displays the master desired folder should appear. Af: form in the 1st tab must be ready to be filled.

    You kindly could help me to complete the stubborn workflow? What components do I use?

    How can I let know the stubborn workflow what mode should work (research & open or create)?

    Is there something in particular, I have to take care of?

    Thank you very much

    Federico

    Hi Federico

    You can do this by using a BTF or two

    So, using only a BTF you can do the following:

    1. create an inputPram in your BTF who receives a value if the application is called from the search menu or create (set its value to S (Search) and C (Create))

    2 use a router to check if BTF is called from the search menu, then he should go to the search page

    3. and if it is called in Menu create then they should goto createPage drirectly and in the range of the router and createPage createInsert (for the first tab) operating as a method in taskFlow, so it will show a folder created in the first tab

    See -task using flow router in Oracle ADF - YouTube activity

    Thank you

  • [ADF, JDev12.1.3] Session time-out: is it possible to perform a rederict to a URL to be composed on the basis of a model session ARVS?

    Hallo,

    using this tutorial Fortune Minds - Oracle ADF: how to redirect to a custom page each time the session of delay in the application of the ADF? I implemented a simple redirect when the session expires.

    The real URL 'redirect' should be composed according to the value stored in a var to a managed bean sessionScope, but the problem it is that... the afterPhase listener is run after the session has already expired.

    Could you kindly advice me a wokaround or a different approach to achieve this goal?

    Thank you

    Federico

    Cannot use a variable of bean in any scope as the info is gone. You can store the information in a cookie and read the form here.

    Or you use a different method like adventures of the man of Oracle ADF: heroic alternatives to avoid the annoying Popups SessionTimout ADF

    Timo

  • [ADF, JDev12.1.3] Attribute Transient VO be calculated in different ways as a var pageFlowScope: how?

    Hallo,

    I have a jspx page that contains an af:table (created from an instance of VO) and search (built-by-me) form containing a lot of search filters.

    The request of the VO should be composed dynamically based on the values of the search filters then in the managed bean that is associated with the page, I use this approach to create and run the query that fills the af: table:

        ArrayList<Object> queryParams = new ArrayList<Object>();
        StringBuilder query = new StringBuilder();
        BindingContext bctx = BindingContext.getCurrent();
        BindingContainer bindings = bctx.getCurrentBindingsEntry();
        DCIteratorBinding iteratorBind = (DCIteratorBinding) bindings.get("SearchItems1Iterator");
        ViewObject vo = iteratorBind.getViewObject();
        query.append("Select Field1, Field2, ..., FiledX from Table");
        /*
          Here I build the SQL of the query and the list of params in function of the filters, of session vars and of pageFlowScope vars
        */
        MyUtilsClass.modifyQueryDynamically((SearchItemsVOImpl) vo, query.toString());
        vo.setWhereClauseParams(queryParams.toArray());
        vo.executeQuery();
    
    
    

    In the t, I defined a transitory attribute that must be calculated in 2 different ways according to a var. pagepageFlowScope

    Calculation of transient attribute in the definition of VO by an expression Groovy does not help because 1) should be able to read the value of pagepageFlowScope var or 2) in the managed bean should I be able to change the Groovy used to calc the attribute expression.

    But I don't know if and how it is possible to do these things

    Also calculate the value in the getMyTransientAttribute() of the VORowImpl class method helped me because I should pass the pageFlowScope var to the method somehow that I don't know.

    You kindly suggest me a method to solve this problem?

    Thank you

    Federico

    You can't build the query in the way in which you want to calculate the transient attribute?

    Then, you don't need to change anything.

    Timo

  • How to find and remove the corresponding line in British Colombia ADF

    Hello

    I have a table with simple fields and I created the class of java for this entity also
    Person
         - Person_Id (PK)
         - Person_Name
    I wanted to create a method of application module to find the entity corresponding to certain name
    but I can't find the code to do this.
    public class AppModuleImpl{
      public boolean deletePersonByName(String personName)
      {
        EntityDefImpl personDef = PersonImpl.getDefinitionObject();
        //How to get all rows and find the matching name then delete the row
       
        return false;
      }
    }
    Thank you
    11.1.1.5 Jdev

    You can do findByKey or getfilteredrows to get the lines and you can then delete.

  • [ADF, JDev12.1.3] Which is the best way to define the properties of CIU/fragments of pages. Is the approach that I have used a good choice (for a beginner)?

    Hallo,

    in my app, that I have a lot of pages and fragments in which properties (for example rendered text, disabled, Selected,...), lots of user interface components must be set, before/when the page is displayed, depending on the session and pageFlow scope attributes.

    So far I have created for each page/one backingBean brought bean fragment in which I defined an attribute for each property defined (e.g. 2 properties for each UIC: UIC is 10...) "I have 20 attributes to manage in the bean).

    Then, I linked each attribute of the bean to the respective UIC property. You can see in this my thread (unfortunately without answers ) [ADF, JDev12.1.3] backingBean bean: a lot of properties to set for lots of CIU... is better by using the properties of the binding or access code (created by ID) UIC? a small example. I put the attributes the bean Builder (or in a function of 'action' if the APP properties must be set based on the interaction of the user).

    I would like to know:

    • If it is a good approach / recommended / safe or if there is a better way;
    • If the scope backingBean is OK, or if a larger scope would be better.

    As I asked in the thread in the link above, the situation can become difficult to manage if the PPP for which setting, properties are very different.

    So I'd like if there is no alternative that I can use to get the same result with less effort.

    For example, using the class ComponentReference or invokeOnComponentAPI could simplify my life? And their use could I always use backingBean brought beans?

    Thank you

    Federico

    Federico, please understand that this forum has no sla. I have other work to do, who pays my bills. I will do my best to help, but you can not expect the instant replay.

    (1) you must not use the bean to init your beans. You can delay load or init your beans instead.

    (2) as Frank and says you can use a bean to view range and use it to make your calculations as long as you know how their parameters go to the btf

    (3) you should always use the reference of the component if you bind a component to a bean. Make a habit of all scopes.

    As we do not know how you calculate the State and how often it changes while the Working Group is on the page, it is difficult to give further advice.

    Timo

  • [ADF, JDev12.1.3] How to pass an Integer value sets to a workflow, and then it reads a bean?

    Hallo,

    for a test, I need to set the value of an entry of a stubborn workflow used as dialog...

    Then in the bean that is associated with a known fragment of the btf, I need to read the value, so I used this code...

    Integer protocol = (Integer) AdfFacesContext.getCurrentInstance().getPageFlowScope().get("protocol");
    

    This exception triggers...

    javax.el.ELException: java.lang.ClassCastException: java.lang.Long cannot be cast java.lang.Integer

    What's wrong?

    Thank you

    Federico

    If I remember correctly, in JSF that EL has Long type so this probably also applies to ADF.

    For example, you can cast a Long or you can use the type field (from some managed bean) an integer as an input parameter.

    Dario

  • [ADF, JDev12.1.3] Why dynamic region is not spend if I re - call the currently displayed workflow?

    Hallo,

    I have a page with a dynamic region that is managed by a range backingBean bean.

    Functions "startBtf...". "are called when a menu item is clicked.

    The workflow as BTF3 is called by two different functions and each function passes a different value (used by a component of router) to the workflow through the hash table.

    The problem is that startBtf3_Search is called after the startBtf3_Create (and vice versa) the dynamic region is not updated.

    How can I solve this problem?

    Thank you

    Federico

    public class MainDynamicRegion {
      private HashMap parameters = new HashMap();
    
      public MainDynamicRegion() {
      }
    
      public TaskFlowId getDynamicTaskFlowId() {
        AdfFacesContext adfFacesContext = AdfFacesContext.getCurrentInstance();
        String currentTaskflowId = (String) adfFacesContext.getPageFlowScope().get("CurrentTaskflowId");
        if (currentTaskflowId == null || currentTaskflowId.trim().equals("") == true) {
          currentTaskflowId = "/WEB-INF/empty-btf.xml#empty-btf";
          }
        return TaskFlowId.parse(currentTaskflowId);
      }
    
      private void setCurrentTaskflowId(String currentTaskflowId) {
        AdfFacesContext adfFacesContext = AdfFacesContext.getCurrentInstance();
        adfFacesContext.getPageFlowScope().put("CurrentTaskflowId", currentTaskflowId);
      }
    
      public void startBtf1(ActionEvent actionEvent) { 
        this.setCurrentTaskflowId("/WEB-INF/btf-1.xml#btf-1");
        this.parameters.clear();
      }
    
      public void startBtf2(ActionEvent actionEvent) { 
        this.setCurrentTaskflowId("/WEB-INF/btf-2.xml#btf-2");
        this.parameters.clear();
      }
    
      public void startBtf3_Search(ActionEvent actionEvent) {
        this.setCurrentTaskflowId("/WEB-INF/btf-3.xml#btf-3");
        this.parameters.clear();
        this.parameters.put("mode", "S");
      }
    
      public void startBtf3_Create(ActionEvent actionEvent) {
        this.setCurrentTaskflowId("/WEB-INF/btf-3.xml#btf-3");
        this.parameters.clear();
        this.parameters.put("mode", "C");
      }
    
      public void setParameters(HashMap parameters) {
        this.parameters = parameters;
      }
    
      public HashMap getParameters() {
        return parameters;
      }
    }
    

    The workflow as BTF3 is called by two different functions and each function passes a different value (used by a component of router) to the workflow through the hash table.

    The problem is that startBtf3_Search is called after the startBtf3_Create (and vice versa) the dynamic region is not updated.

    How can I solve this problem?

    You call the taskflow even without leaving the previous.

    To update the workflow, you have several options:

    -Give taskflow refresh 'ifNeeded' parameter and change the value of the input parameter (unfortunately, it is not applicable to your usecase because you use the parameter mapping and not point settings so setting change cannot be detected)

    -use the property RefreshCondition

    For more details, see: 23 by using task flows in regions (12 c (12.1.3))

    BTW,

    currentTaskflowId = "/WEB-INF/empty-btf.xml#empty-btf";
    

    Instead, you can change the return type for getDynamicTaskFlowId() to a string and use an empty string ("" ") instead of emptying the BTF (and in this case you don't need even of TaskFlowId.parse (part)).

    Dario

  • [ADF, JDev12.1.3] How to get the column headers, request of VO and VO bind vars used by an af:table?

    Hallo,

    I want to create a method that takes as a parameter the id of an af:table (used to display the search results) and returns:

    • the column headings of the af: table
    • Visible property (true/false) of the columns af:table
    • the actual query of the VO instance used to create the af: table
    • the values of real bind variables passed to the query of the instance of VO

    I would like to create a servlet which takes the parameters reruns the query and returns a report Excel/PDF file that contains exactly the same columns and same of the af records: table.

    I'm a little confused on who use the code to achieve this... you kindly help me?

    I did a similar qustion here Re: [ADF, JDev12.1.3] how to export an af:table to Excel in an ADF Essentials application? but then I guessed that it was preferable to create a new thread.

    Thank you

    Federico

    For this, you can use this type of code

    Context LocaleContext = _adfTableBinding.getLocaleContext ();

    for (attr AttributeDef: attributeDef) {}

    Label As String = attr.getUIHelper () .getLabel (context);

    _logger.info ("Attritbute name:" + attr.getName () + "column name:" + attr.getColumnName () + "Col4Query name:" + attr.getColumnNameForQuery () +)

    "Name:"+ label);

    }

    which produces this output

    Timo

  • How to store images in the oracle database and get back on a jsff page in ADF?

    Mr President.

    How to store images in the oracle database and get back on a jsff page in ADF?

    I have students and employees in my database and want to store their pictures against their ID.

    How to do this?

    Concerning

    Tender,

    You can check the links that explain this below.

    https://tompeez.WordPress.com/2011/11/26/jdev11-1-2-1-0-handling-imagesfiles-in-ADF-part-2/

    Johny tips: ADF: display image files from database as a popup in Application Web ADF

    See you soon

    AJ

  • [ADF, JDev12.1.3] When you use create/restoreSavepoint... Restore operation is still useful? And other doubts...

    Hallo,

    Dario and Timo advised me (in this thread Re: [ADF, JDev12.1.3] Master w/playback af:form only af:tables detail: how to handle insert and edit through forms?) I make a request using the functions create/restoreSavpoint to this fragment in my application.

    The tables are read-only, and the user can insert and modify records by a form of popup.

    Each table has its own pop-up that I created using a btf executed as diaolog (*).

    Before I open the popup, I create the backup point.

    BindingContext bctx = BindingContext.getCurrent();  
    DCDataControl dcDataControl = bctx.getDefaultDataControl();  
    String sph = (String) dcDataControl.createSavepoint();  
    AdfFacesContext.getCurrentInstance().getPageFlowScope().put("AdfmSavePoint", sph); 
    

    When the popup is closed, I restore the backup point if the Cancel button was clicked...

    Object confirmOrCancel = returnEvent.getReturnValue();  
    if (((String) confirmOrCancel).equals("cancel")) {  
      String sph = (String) AdfFacesContext.getCurrentInstance().getPageFlowScope().get("AdfmSavePoint");  
      BindingContext bctx = BindingContext.getCurrent();  
      DCDataControl dcDataControl = bctx.getDefaultDataControl();  
      dcDataControl.restoreSavepoint(sph);  
    } 
    

    I have these doubts:

    1. the button "CANCEL ALL" (so far) AM restore operation is still meaningful (is always useful) when you use the check points? Or can I avoid using the restore of the AM operation, creating a backup point before you enter the fragment and restore it if the user clicks on "RESTORE ALL"?
    2. for all tables: before opening the popup insert/change the backup point is implemented pageFlowScope under the same key 'AdfmSavePoint '. Is it OK or would it be better to use a different key for each table (for example 'AdfmSavePointTable1', 'AdfmSavePointTable2',...)?
    3. If the pageFlowScope already contains a checkpoint under the "AdfmSavePoint" key... What does if I give the floor to new .put ("AdfmSavePoint", sph)? Can I be sure that the old value is overwritten?
    4. is this safe with nested savepoint? For example in my case I want to create a backup before the fragment in the image point is displayed (and restore if the user leaves the fragment by clicking "RESTORE ALL"), then within the fragment, as I said above, I would manage other points of record when inserting/editing tables.
    5. I noticed that clicking on the button "RESTORE ALL" when it relates to the AM-restore operation causes this strange thing: when before displaying the fragment I call SetCurrentRowWithKey on the master istance VO... If I click on "ROLLBACK ALL" posted master VO Records changes and 1 minutes of the main of the VO table is displayed. Why the master istance VO is not reimain in the folder I've previously selected by SetCurrentRowWithKey?
    6. With reference to the expression (*) above. The BTF 'dialogue' I created contains only the page jspx with shape and a return to activity. I also tried a) create (and restore) the backup point, b) to call createInsert inside the "dialog box" operation BTF (see images below), but the createInsert on retail VO istance called inside the 'dialogue' BTF seems not to reflect on the table as when I call createInsert by calling btf. I have to make some adjustments in the 'dialogue' of BTF?

    Thank you

    Federico

    Federico,

    (1) Yes, what should happen if a user add or edit vo1 and click ok in the dialog box but decided that ask to work must be restored?

    (2) as long as you don't have that a dialog box is open, it should work.

    (3) the flowrate range of page is a map. You can put the same key more than once. If the key already exists, the value is replaced.

    (4) in fact, I don't know, but the sounds of complicated design. I guess you can record more points, but only in the order of creation. It's as if you try to rebuild the framework. BTF yo it even for you, when worn right. Please go to ADF Architecture Square and read and watch it task flow of related things.

    (5) this behavior is as expected. A restore resets all the iterators so thagetto point at the top of he. http://www.Oracle.com/technetwork/Developer-Tools/ADF/learnmore/OCT2010-OTN-Harvest-183714.pdf 'keep the line after cancellation' shows how to handle this situation.

    (6) I suppose have you refresh the table iterator, once you close the dialog box for the new data. But that's only a guess because it depends on how the btf share control of data and the your involved.

    Timo

  • [ADF, JDev12.1.3] Opening SESSION: a session ID, HTTPSession, brought bean, UserData... where to store the information? (And other doubts...)

    Hallo,

    my simple application has this main stream job boundless...

    1)

    I see that when I call the login page of this URL http://127.0.0.1:7101 / MyApplication/faces/login, to which - in the address bar - it is auto-ajouté for example ' jsessionid = Wn2ymE_3cC2JXHYtG7_ocZDgMgonLyr376zejB-ui28UPlm5tiuB! 1535501325 ".

    So I guess that the session exists as soon as the user access the login page.

    • I would like to know if I have to worry about a possible previous session (especially another user session).
    • If the user on the home page click the back button in the browser the application creates a new session to destroy the possible previous session?
    • BdW, if my request to place the values in the HTTP session would be a good practice as part of the bean connection null all the attributes of the session?
    • And if my request to place the values in UserData would be a good practice as part of the bean connection null all the attributes of the container UserData?

    2)

    • Is it better to store the information in the HTTP session or UserData?
    • It is less safe than the other? Otherwise why is there the need to have 2 types of sessions?
    • Could he have no sense in storing an individual data in the HTTP session and UserData at the same time?
    • I have seen that the HTTP session is very easy to access, view and (if necessary) and the layers of the model. Is the same as for UserData, or it can be accessed only by the model layer?

    3)

    • In my case, I want to share my application the user in user data:
      • First and last name (only at the end of the display)
      • Name of the service (only at the end of the display)
      • Username and DepartmentId (these hairy should be passed to the query and the view of your criteria)
    • Where I put those values? Who, in the HTTP session? Who in UserData?

    4)

    • I'm in doubt if using a scope session bean or - since the data that I have to share is really little - use the 'basic' (e.g. ectx.getSessionMap () .put ("key", "ValueToStore")).
    • If I use an extended session bean and I store of simple values (integer, String,...) I don't have to worry about serialization (de)?
    • A scope session bean is accessible from the model layer as the HTTP session basis (what I can put by ectx.getSessionMap () .put ("Key", "ValueToStore"))?
    • And in my situation I could handle everything with a single between UserData anda HTTP session?

    These questions are intended to create a simple login system that stores data needed somewhere in the different parts of my application.

    So any advice is welcome!

    Thank you

    Federico

    1)

    I see that when I call the login page of this URL http://127.0.0.1:7101 / MyApplication/faces/login, to which - in the address bar - it is auto-ajouté for example ' jsessionid = Wn2ymE_3cC2JXHYtG7_ocZDgMgonLyr376zejB-ui28UPlm5tiuB! 1535501325 ".

    So I guess that the session exists as soon as the user access the login page.

    • I would like to know if I have to worry about a possible previous session (especially another user session).
    • If the user on the home page click the back button in the browser the application creates a new session to destroy the possible previous session?
    • BdW, if my request to place the values in the HTTP session would be a good practice as part of bean connection null all the attributes of the session?
    • And if my request to place the values in UserData would be a good practice as part of bean connection null all the attributes of the container UserData?

    -When you close your browser, this will destroy the session

    -None

    -It will be much easier to invalidate the entire session (HttpSession method for this object)

    -When you destroy the http session, it will destroy the Application modules, and it will destroy UserData

    2)

    • Is it better to store the information in the HTTP session or UserData?
    • It is less safe than the other? Otherwise why is there the need to have 2 types of sessions?
    • Could he have no sense in storing an individual data in the HTTP session and UserData at the same time?
    • I have seen that the HTTP session is very easy to access, view and (if necessary) and the layers of the model. Is the same as for UserData, or it can be accessed only by the model layer?

    -We already discussed in a previous thread so I won't comment

    -both are secure. HttpSession exist in java web applications and UserData is specific ADF.

    -Maybe (for example, it is not recommended to access the HttpSession of model project, so you can store some data in the UserData (to be referenced from your, etc.) and managed (so you can bind them directly to UI) Bean)

    -Are accessible only from template (but you can expose a custom to ViewController method that accesses UserData)

    3)

    • In my case, I want to share my application the user in user data:
      • First and last name (only at the end of the display)
      • Name of the service (only at the end of the display)
      • Username and DepartmentId (these hairy should be passed to the query and the view of your criteria)
    • Where I put those values? Who, in the HTTP session? Who in UserData?

    My opinion:

    Name, first name, name of the Department-> session brought average managed (so you can link that directly to the user interface components)

    UserId, DepartmentId-> UserData (or you can store managed bean and pass as parameters to methods of model project)

    4)

    • I'm in doubt if using a scope session bean or - since the data that I have to share is really little - use the 'basic' (e.g. ectx.getSessionMap () .put ("key", "ValueToStore")).
    • If I use an extended session bean and I store of simple values (integer, String,...) I don't have to worry about serialization (de)?
    • A scope session bean is accessible from the model layer as the HTTP session basis (I can put by ectx.getSessionMap () .put ("key", "ValueToStore"))?
    • And in my situation I could handle everything with a single between UserData anda HTTP session?

    -with getSessionMap () .put (), you must pay attention to the data types when you change or retrieve values (for example, do you know if DepartmentId is Integer, BigDecimal, oracle.jbo.domain.Number,..) If this isn't "type-safe". In addition, it is easier to understand what your application keep in session if you managed bean that in order to find all the places you're calling the method getSessionMap () .put ().  And controlled beans are a 'natural' way to keep data in a JSF/ADF application.

    -Not (just brand bean session with the Serializable attribute)

    -You can do something similar to this, but this is not a recommended practice because it would break the MVC pattern

    -If you do not have too much, you can keep everything in HttpSession and expose methods to set the binding vars.

    Dario

  • [ADF, JDev12.1.3] How to display totals for numeric columns in an af:table?

    Hallo,

    I have a VO with numeric columns. I dragged the VO to UI to create an af:table.

    I would like to know if ADF allows you to easily add a footer to the af: table that automatically show the total of each digital line.

    This is to avoid creating a just another VO only to calculate and show the totals.

    Thank you

    Federico

    Why so complicated?

    Groovy is your friend here. Cech Tech Blog of Rohan Walia: ADF - Groovy for a Total of a column in a Table amount or do you it directly in the DB using Analytics functionms as shown here Andrejus Baranovskis Blog: Analytic Functions Oracle for Total and averaging in British Colombia ADF

    Timo

  • [ADF, JDev12.1.3] Manages the pageFlowScope same bean validation of the different fragments of BTF. Doubts about the 'object' and 'uiComponents' validator parms

    Hallo,

    I have a 'registration' process bounded with 4 fragments workflow.

    There is in each fragment components entry created by dragging different fields of the same instance of VO.

    The user cannot access the next step if the current step is not correctly filled.

    In the fragment of 1st, the user chooses its type (customer, supplier,...) and in the following steps, the fields are has shown/Asterisk based on her user'type selected (I save the String bean var type managed pageFlowScope dedicated to the btf).

    Because of this in the original Version, by the way the key, there is no other area marked as mandatory.

    To manage the visibility of fields I set the property of rendering the fields (or their container) using EL expressions that read the type in the managed bean stream.

    To manage the fields points, I thought only 2 solutions:

    1)

    For each field to create a validator that checks if the fied was flled and function in the formato (e.g. for emails) right in the successful flowScope bean. So I'll have so many validator functions as areas to manage.


    2)

    Create a unique global validator to which the property of the validator for all fields will point in the managed bean flowScope.

    For example

    public void myGlobalBtfValidator(FacesContext facesContext, UIComponent uiComponent, Object object) {
      if (uIComponet.getId() == "InputTextEmail") {  // Component is in Fragment_1
        // Check if the filed is filled and its format
      }
      if (uiComponet.getId() == "InputTextMobileNumber") {  // Component is in Fragment_2
        // Check if the filed is filled and its format
      }
      if (uiComponet.getId() == "InputTextAddress) {  // Component is in Fragment_3
        // Check if the filed is filled
      }
    // ...
    }
    

    ID' would like to know if the 2nd solution might work and that is the approach recommended among them.

    Then, I would like to know if I can use ther uiComponent parm to the validator without any problem. I ask this question because in many threads, I saw only the parm object used. What are the different function/purpose of these 2 settings?

    Thank you

    Federico

    If you do not want to re-use these validators elsewhere in your application, then method unique validator will be enough.

    Of course, if the implementation of this method only validator will require a huge amount of code, it is probably better to split this option to separate validator methods (to simplify the maintenance).

    BTW, ID of component has to be short, so instead of using the id of the component, set f: attribute on each component of the user interface and to use uIComponet.getAttributes () .get ("attrib_name")

    Dario

  • [ADF, JDev12.1.3] How to configure GlassFish to run my application ADF using HTTPS/SSL?

    Hallo,

    on GlassFish 3.1.2 I have deployed my ADF Essentials application.

    Now I configure GlassFish server to run my application using HTTPS/SSL.

    I would like to install the certificate MyDomainCert.crt, Intermediate.cert and MyDomainPrivateKey.crt files and configure GlassFish.

    Could you kindly advice me a clear and not to hard document that describes how to configure the application server?

    Thank you very much

    Federico

    Finally, I reached the goal

    These links also helped me:

    Installation certificate Thawte on 3.11 Glassfish server for https traffic. Art of Software Engineering

    https://javadude.WordPress.com/2013/03/22/GlassFish-v3-1-2-and-SSL/

    Programming the Mr.J4mes Wonderland: [How To] - implement the SSL certificate on the GlassFish application server

    In addition, I would say to use the free program "KeyStore Explorer" (key - homepage file Explorer) to easily import the certificates and private key in the keystore of Java.

    Ciao,.

    Federico

Maybe you are looking for

  • HP envy Phoenix: win 7 does not start with connected external hard drive

    I have a desktop HP Envy Phoenix with i7 chip and an SSD for the OS.  If I connect via USB external drive of 3 TB WD for the backup of the system does not start while it is attached.  The pc seems to be trying to boot from the outside, can't find the

  • Windows 7 Networking do not print

    Parents the computer is running XP.  Printer says XP and Vista support.  Laptop is 7.  Laptop recognizes but printer will not print. Do I have to buy a new printer?

  • HP Laserjet P1102w: Compatibility with WIndows 10

    Currently running Windows 7 and have 2 HP laserjet P1102w to consider a new computer with Windows 10 - HP will have a driver that will allow me to continue to use these printers?  I couldn't get a definitive answer on the HP site.  Thanks in advance

  • I have a problem my OS loading

    Hi, my laptop HP mini 110-1020LA need a password for bios and I don't have the password. s/n is [redacted serial number by Moderator] could you help me?, please

  • magenta streaks

    I just installed new toner cartridges. Why am I magenta steaks about 1 1/2 inch apart across a third of my impression? I calibrated and clean the printer according to the instructions online several times in an attempt to remedy this problem.  No mag