[ADF, JDev12.1.3] Managed beans: when I have to worry about serialization (de)?

Hallo,

I would like to know what type of beans and in which case, I have to worry about serialization (de).

When is it enough to simply add implements Serializable class definition? Which is the right class to import?

And when I really need to implement (de) serialization by myself and how I can do? One (or more) example forward.

For example, in a range session bean I use a recorder and some standard attributes...

public class Login  {
  private final Logger logger = oaw.model.Config.getLogger(Login.class.getName());
  String A;
  Integer X;
  // ...
}

... what should I do?

In general, if a bean stores no data (de) serialization has no matter, right?

Information you provide me... better is

Thank you

Federico

I would like to know what type of beans and in which case, I have to worry about serialization (de).

In all the grains that can survive a http request-response cycle.

It is usually related to clustering, but it may be important if you use UserData structure in AM.

When is - it enough to simply add implements Serializable class definition? Which is the right class to import?

When you have java simple types or types that already implement the Serializable interface.

See: Serializable (Java SE 7 platform)

For example, in a range session bean I use a recorder and some standard attributes...

  1. public class {Login
  2. private final Logger logger = oaw.model.Config.getLogger (Login.class.getName ());
  3. String A;
  4. Integer X;
  5. // ...
  6. }

... what should I do?

Just mark your connection with the Serializable attribute class.

In general, if a bean stores no data (de) serialization has no matter, right?

Right.

In addition, this article can be useful for you:

http://www.Ateam-Oracle.com/rules-and-best-practices-for-JSF-component-binding-in-ADF/

Dario

Tags: Java

Similar Questions

  • [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] UI component: when link (to a variable of bean), its value and when to link UIC together?

    Hallo,

    in lots of examples that I have seen that sometimes the whole (through the Binding property) UI component is bound to a variable of bean and sometimes only the value property is bound to a variable of bean.

    I understand that when it comes to the UIC connection on the Value property value is sufficient.

    But I ask myself... which is the approach recommended in general?

    And is there a situation in which the binding using the Binding property must avoid?

    I have created a search custom form with the field (inputTexts, checkboxes,...) the values are handled in a bean. Which would be, in this case, the approach of linking advisable?

    Thank you

    Federico

    But I ask myself... which is the approach recommended in general?

    You should almost always use concrete goods (such as the ' value')

    In some cases, you will need to update some components of the user interface programmatically (with AdfFacesContext.getCurrentInstance () .addPartialTarget (component)), and for this you need reference to any component.

    But even in this case, you can use another approach to get the reference of the component instead of binding to the beans (but of course, "binding" attribute is the best way to get the reference of the component)

    See also: that binds the JSF component? When it is best to use? -Stack overflow

    And is there a situation in which the binding using the Binding property must avoid?

    -If you do not need any component

    -If you have scope of pageFlow/view/session bean

    I have created a search custom form with the field (inputTexts, checkboxes,...) the values are handled in a bean. Which would be, in this case, the approach of linking advisable?

    Probably the "value" property

    Dario.

  • [ADF, JDev12.1.3] viewScope bean can not recover sessionScope bean. Why? (How to day uploading of a session bean scope whenever a page with params is called)

    Hallo,

    to the login page of my application, I created a viewScope managed bean loginView.

    In the login page, I put a "dummy" inputText (whose value is related to dummyInitEditValue bean attr) to perform lazy loading of the page itself.

    In the initData() function I call a function of a bean sessionScope connection which should initlialize some of its attributes.

    public class LoginView {
      private Integer dummyInitEditValue;
    
      public LoginView() {
      }
    
      private void initData() {
        Login loginBean = (Login) FacesUtils.getManagedBeanInSession("login"); // loginBean = null !!!
        loginBean.initData();
        dummyInitEditValue = 1;
      }
    
      public void setDummyInitEditValue(Integer dummyInitEditValue) {
        this.dummyInitEditValue = dummyInitEditValue;
      }
    
      public Integer getDummyInitEditValue() {
        // Per lazy loading
        if (dummyInitEditValue == null)
          initData();
        return dummyInitEditValue;
      }
    }
    
    
    

    The problem is that the initData() rises a null pointer exception because the bean connection is not found.

    What's not in my approach?

    I create this hoping to resolve this issue: the login page has 2 URL parameters (defined in his point of view in the config.xml file - adfc) and I have according to them I need to update some of the bean sessionScope uploading connection every time the page is called / refreshes (possibly with new values for the parameters).

    BdW I do not know if there is a better alternative you can advice me.

    Thank you

    Federico

    Well, you need to instantiate bean connection somehow.

    You can try to link an attribute of connection bean to the page and see if this will help or you can try to resolve expression programmatically (something like #{connection}).

    Or you can try adding session bean defined as managed property for your bean view extended (something like this: http://umeshagarwal24.blogspot.ba/2012/09/using-managed-property-to-evaluate.html).

    Dario

  • Managed bean doesn't have this property error

    Hello

    I want to show the Group of radio buttons on my page. The values I put in my managed bean method that returns a list.

    I took a selected component of radio one and he chose my method that returns a list.

    But when I run the page it gives error that the class does not have the property.

    Here is the code that I wrote in the method which returns the list:

    Please let me know what is the problem here. Thank you

    public list choiceList() {}

    System.out.println ("inside the bean');

    DCBindingContainer links =

    (DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();

    DCIteratorBinding iter =

    bindings.findIteratorBinding ("TblSurveyQuestionsView1Iterator");

    ViewObject vo = iter.getViewObject ();

    String rowAnswer =

    vo.getCurrentRow ().getAttribute("RowAnswerChoice").toString ();

    ("String [] answers = rowAnswer.split("\\n ");

    System.out.println (response [0] + "navneet" + answers [1]);

    The list of answersList = Arrays.asList (answers);

    Return answersList;

    Rename the method to be getChoiceList() and write another one, with the name setChoiceList(List value) {...}

  • Oracle ADF 11 g: invoke managed bean method when the page resizing.

    Given the following code:
     <af:clientListener method="getElementWidth"
                                       type="propertyChange"/> 
                    <af:serverListener type="customEvent"
                                       method="#{columnSizeBean.handleRequest}"/>
    Is there a client listener that can be triggered when resizing browser window?
    Something like:
     <af:clientListener method="getElementWidth"
                                       type="[[[[something like a window resize]]]]]]"/> 
                    <af:serverListener type="customEvent"
                                       method="#{columnSizeBean.handleRequest}"/>
    NOTE:
    getElementWidth is a javascript method in my current code, while columnSizeBean is a sessionScope bean who did some calculations on the width of a table column.

    Published by: Andrei C. on May 18, 2010 05:49

    Hello

    No, it isn't. However, in this case you can use vanilla JavaScript and register to the browser DOM to receive the event notification. If you notice rceive you access the server listener you put on the af:document component. It should work

    Frank

  • [ADF, JDev12.1.3] Validation happens when LOV "lens" is clicked. How to avoid this?

    Hallo,

    I created a form of a VO istance which some fields are required.

    In the form, there is a LOV.

    When I click on the 'lens' of LOV validation happens.

    I would like to avoid this behavior.

    The solution is simply to set the immediate property of the LOV to 'true '?

    Thank you

    Federico

    I created a form of a VO istance which some fields are required.

    In the form, there is a LOV.

    When I click on the 'lens' of LOV validation happens.

    This was probably not happen.

    So, do you have something specific in your code? (for example, LOV on part of primary key, partially initialized row, etc.?)

    Is autosubmit = true set on your lov component?

    Is there a difference, if you set ChangeEventPolicy = none to your iterator?

    The solution is simply to set the immediate property of the LOV to 'true '?

    If this will solve the problem, then Yes

    Dario

  • [ADF, JDev12.1.3] Mastering the form with detail tables: questions about Insertion/deletion, commit / rollback, primary key, handling,...

    Hallo,

    I have a panelTabbed with 4 tabs. In the 1st tab, there is a master form while each of the other tabs, there is a secondary table. Each tab "reads" vo.

    Please see here http://digilander.libero.it/flattit82/OTN_FILES/VoInTabs.png

    I created the graphichs/layout and now it's time to take care of the management of the transaction.

    In the master tab / form

    1)

    Here, I would put a button to remove the master record.

    When I delete a record in the primary table an automatism in the database (MS SQL Server) will automatically delete any registration which are linked to it in the detail tables.

    Could the automated system as this causes problems?

    In the Details tabs / tables

    2)

    I would put a button in each row to delete the line delivering. Can I just drag-and - drop, like button, af line: table the operation "Delete" of the VO istance detail used to create the af: table?

    3)

    If Yes, by clicking on the button performs the default delete operation. But if need to perform some actions before you run the deletion (or, in General, any other operation), how can I do?

    4)

    To create a folder that I use Create or CreateInsert? And what are the differences between them?

    5)

    When I create a new record I need set the value of a field of the VO on which is based the af: table. He filed, let's call it RowDetNumber, is not displayed in the af: table, because it doesn't have be filled in by the user. Mut value is calculated and set "secretly" before posting the new line to the database table. In particular, its value must be calculated as

    Select max (RowDetNumber) + 1

    of table_on_which_VO_is_based

    where some_conditions_on_fields_of_the_same_VO


    For example

    The VO selects all of the records that have FkId =: value. If value = 3, VO selection records:

    ID RowDetNumber OtherFields FkId

    1   3     1             ...

    2   3     2             ...

    3   3     3             ...

    4   3     4             ...

    The new record must be RowDetNumber = 5.

    I would like to know how permorm this.

    In general

    6)

    If the database tables have 1 or more triggers I have to take care of something?

    7)

    On the book "development of Web Applications with Oracle ADF Essentials - Sten E. Vesterli", I have read it could be problems when you use tables of database non-Oracle with auto-increment fields.

    The advice of author uncheck the 'Required' box in the model.

    All tables in my database have a primary keys that are auto-increment... so I uncheck the "mandatory"?

    8)

    In general how do I set these fields? I have to put in OT, VO or both?

    Thank you

    Federico

    Hello

    (1) you will need to re - question child iterators so that they do not look stale data

    (2) Yes. Ensure that the table is PPRed after deleting the line (should happen automatically if ChangeEventPolicy on iterator is set to ppr)

    (3) double click on the button and it creates a bean managed for you. It allows you to check a box to generate the code he would run to remove the line. Everything you put in front of the generated code is your code before

    (4) in the case of tables, use createInsert as it adds the new line to the rowset (transaction)

    (5) suggest to do this use a database trigger and the data attribute value DBSequence VO type

    (6) do not 'drop table' issue in SQL (sorry, couldn't resist ;-))

    (7) If you follow the advice of the author, Yes. What it does, I have it does not throw an exception if a value is missing in the validation of the line

    (8) usually you set whatever it is at the level of the OS and put only things on VO if you want to override the default value for a specific behavior


    Frank

  • With the help of liquid, what is the best practice to manage paging when you have more than 500 Articles?

    Right now I can only get the first 500 points of my webapp and do not know how to show the rest of the elements.

    IN MY PAGE:

    {module_webapps id = "16734" filter = 'all' template="/Layouts/WebApps/Applications/dashboard-list-a.tpl' = 'collection' render}

    IN MY LAYOUT OF THE MODEL:

    {% for item in items %}

    < b >

    < class td = "name" > < a href = "{{item.url}}" > {{item.name}} < /a > < table >

    < class td 'status' = > Application {{point. {{[' Application status]}} < table >

    < /tr >

    {% endfor %}

    Everywhere wherever you want to know what is available.

    If you do so, in a paginated set of data you will find properties of pagination for this object.

    Shannon - semantically an UL-LI structure would be preferable for pagination.

  • [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] When you rename problems see criteria and link vars used in VO

    Hallo,

    1)

    I changed the name of a view VO criterion, but I'm not able to buld the project.

    Error: myapp.model.vo.MyVO: could not find the referenced object. Object =VC_OLD_NAME Owner = myapp.model.vo.MyVO

    But if I look everywhere in the application I'm not VC_OLD_NAME.

    How can I solve this problem?

    When you rename a VC, JDev auto updates all references to this VC in the application? Or I don't have to worry about it?

    2)

    I renamed a binding var defined for a VO where clause.

    JDev seems to auto update all references to this var binding, but the strange thing is that, in the original Version, the old name is still present (he doesn't).

    Why?

    3)

    Perhaps in the future I would better take not to rename this kind of objects?

    Thank you

    Federico

    1)

    JDev sometimes has problems with refactoring.

    Maybe you can try to close jdev and remove .data folder in your project.

    2)

    Because there is no exact reference to link var if you need to change this manually.

    3)

    Perhaps in the future the jdev will have less bugs

    Dario

  • [ADF, JDev12.1.3] The console message strange when an LOV popoup entry opens. What do mean?

    Hallo,

    whenever, during execution, I click on the magnifying glass to a LOV Input and the popup opens, similar messages are written in JDeveloper console:

    < oracle.adf.view > < PanelGridLayoutRenderer > < _encodeAllOrVisitChildrenForEncodingImpl > < PANEL_GRID_LAYOUT_CIRCULAR_HEIGHT_DEFINITION_1 >

    < oracle.adf.view > < PanelGridLayoutRenderer > < _encodeAllOrVisitChildrenForEncodingImpl > < PANEL_GRID_LAYOUT_CIRCULAR_HEIGHT_DEFINITION_1 >

    < oracle.adf.view > < PanelGridLayoutRenderer > < _encodeAllOrVisitChildrenForEncodingImpl > < PANEL_GRID_LAYOUT_CIRCULAR_HEIGHT_DEFINITION_2 >

    < oracle.adf.view > < PanelGridLayoutRenderer > < _encodeAllOrVisitChildrenForEncodingImpl > < PANEL_GRID_LAYOUT_CIRCULAR_HEIGHT_DEFINITION_2 >

    Then, there is a special InputLOV for which this message if:

    < oracle.adf.model > < FacesCtrlLOVBinding > < _modifySearchVC > < ViewCriteriaItem for LOV attribute not found. >

    Sometimes this message is written:

    < org.apache.myfaces.trinidad.component.UIXComponentBase > < UIXComponentBase > < getClientId > < INVALID_CALL_TO_GETCLIENTID >

    I have to worry about them? If so, how do I deal with these issues?

    Thank you

    Federico

    I have to worry about them?

    Probably not (I noticed this scroll bar horizontal in the query part of LOV popup is almost invisible if you have an attribute that is longer than the width of the pop-up window, so this may be related...)

    It is an edition in 12.1.3.

    Last month, I logged service request that contains also the description of this problem so adf devs will know at least for her (but SR is related to another question)

    Dario

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

  • How to call a function with parameters in jsf managed Bean

    Hello

    1. I created a Bean managed to manage chains of jsf to 11.1.1.7 WebCenter spaces:

    public class ManageStrings {}

    / * Converts all characters in a string to uppercase. */

    public String getToUpperCase (String str) {}

    Dim retVal = str.toUpperCase ();

    Return retVal;

    }

    }

    2. I registered managed Bean:

    " < managed-bean id ="swc_3"xmlns =" http://xmlns.Oracle.com/ADF/controller "> "

    < id managed-bean-name = "swc_2" > tools < / managed-bean-name >

    < managed-bean-class id = "swc_1" > cat.badalona.webcenter.utilities.ManageStrings < / managed-bean-class >

    < managed-bean-scope id = "swc_4" > backingBean < / managed-bean-scope >

    < / managed-bean >

    3 to code jsf, I tried different options, but they do not work

    " < = xmlns:af af:outputText ' http://xmlns.Oracle.com/ADF/faces/rich "value="#{backingBeanScope.utilities.getToUpperCase['hello']}"/ > "

    ...

    " < = xmlns:af af:outputText ' http://xmlns.Oracle.com/ADF/faces/rich "value="#{backingBeanScope.utilities.toUpperCase['hello']}"/ > "

    ..

    " < = xmlns:af af:outputText ' http://xmlns.Oracle.com/ADF/faces/rich "value =" #{backingBeanScope.utilities.getToUpperCase ('hello')} "" / >


    What I am doing wrong?


    Thaks in advance


    Hello Carles,

    I did it with the content presenter where I need to pass the ID of the component selected in backing bean. Please try below option

    Now add following code in your binding

    Private RichOutputText outputText1;

    then the getter for this outputtext set.

    and in your action method to read the value of the output text.

    Hope this helps with your problem.

    Thank you

    Amey

  • Managed bean validator

    I have several date fields. MinValue, but for example, let's say that I have only two. Each date. MinValue has a validator method in a managed bean. I have to each date. MinValue to a required attribute bound to the variable iterator. I have both date. MinValue to entry, click on a submit button, validation is called on the first date. MinValue. This validator I need the value of the second date. MinValue. The problem is that the value is zero. I think it is normal because the value has not been validated or submitted.

    I want to mention that there are no EO, VO in my case.

    This is the code I use to get the date value. MinValue.

    ValToDate = (Date) ADFUtils.getBoundAttributeValue ("validTo1");

    And the validator

    {public Sub validateDateRightTo (facesContext, UIComponent uIComponent, FacesContext, object)}

    If (object == null) {}

    return;

    }

    Day rightToDate = object (date);

    If (rightToDate! = null) {}

    {for (line: {getSelectedRows())}

    ValToDate = (Date) ADFUtils.getBoundAttributeValue ("validTo1");

    checkDate (rightFromDate, valToDate);


    JDev 11.1.2.4

    Hello

    Looks like you are trying to get the value of the attribute binding inside validator but when the validator is called model would not be updated (phase updatemodel comes after the process validation phase) as a result, you don't see the value inside the validator.

    Instead, bind your component of effective date to a variable of bean with getters and setters (using the binding property) and inside the validator call GetValue on this variable (which is nothing more than an instance of inputText).

    Sample:

    / * Inside bean *.

    private RichInputDate to date;

    Getters and setters for this day

    Validator Inside

    ValToDate date = (Date) toDate.getValue ();

    Jean Lou

Maybe you are looking for

  • Please let me slide to unlock

    I have upgraded to iOS 10. More annoying is that I have to press the home button to unlock the screen. I'm not like touch ID or snap buttons, so could could you allow me to use the traditional way. Thank you very much.

  • Radio sound is mono

    Hello!I use the LG D300 and when I use the FM Radio, the sound is mono... LG asking for help, but they said that it is related to the operating system...I tried several different headphones, all with the same results...Is stereo FM Radio feature unsu

  • Cannot use scanner with WLan with printer ADVENT AW10

    I have a Satellite L500D-11R using Windows Vista.I bought an ADVENT AW10 printer with wi - fi functionality. I am able to print documents and photos without problem, but I can't use the scanner with a wi - fi connection.After that several long interv

  • New message when you access the internet

    HP - p6654y office, 64 bit op sy, using windows 7 > when I try to access the internet, I get this message Service Manager: t8ExtPEx.dll is missing.              What does that mean?  do I need it, if so, what to do do next to get it back?

  • Mustek 1200 ub scanner

    Mustek 1200 ub is compatible with vista, please?