[ADF, JDev12.1.3] How to implement the serialization of a bean extended session? It is necessary here?

Hallo,

I have an extended session bean that contains some features and some simple attributes (integer and string).

I have written/public class implements Serializable MySessionBean without the implementation of serialization (de).

Now I would like to add a new attribute to a custom class to the bean, I defined: class contains attributes of simple type and some attributes in the hash table.

HashMap implements serialization (de)... so this means that my class is serializable and while I do not worry (de) serialization?

Thank you

Federico

Yes, some respond that in your other thread. The bean is serializable if each attribute, or if this is not it must be marked as transient. More info on http://www.javabeat.net/what-is-transient-keyword-in-java/

Timo

Tags: Java

Similar Questions

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

  • [ADF, JDev12.1.3] How to hide the LOV "magnifying glass" through a bean managed?

    Hallo,

    I want to hide the "magnifying glass" to a field LOV.

    This is possible only by using a CSS approach like this Ashish Awasthi (Jdev/ADF) Blog: search to hide from af icon: inputListOfValues using CSS & StyleClass-Oracle ADF?

    Since then, I need to calculate in a bean managed if the magnifying glass must be hidden or not... I would like to know if there is an appproach simple and clean alternative.

    Thank you

    Federico

    Hi Federico,.

    You can use the same approach, as mentioned in the blog. Just you need not set the StyleClass on the page.

    In the method of bean managed when you calculate that there should be no magnifying glass, then get the reference to lov and set its styleclass (LOV.setStyleClass) and refresh the LOV.

    This way you can conditionally hide and display magnifying glass.

    Thank you

  • [ADF, JDev12.1.3] How to hide the asterisk for required fields in an af:form?

    Hallo,

    I would like to not display the asterisk in front of the label of the fields...

    ... so I set for all areas of the ShowRequired property to false.

    I do not understand why the asterisk continues to display...

    I have to set another property somewhere?

    Thank you

    Federico

    Check the documentation for the showRequired property (jdev or online: ADF RichClient API - ).

    As a workaround, you can put af:inputText in af:panelLabelAndMessage component and set simple = "true" to hide the label.

    Dario

  • [ADF, JDev12.1.3] How to set the value of an attribute of VO 'max (attribute) + 1' when creating a new record?

    Hallo,

    I have a VO that selects records from a table databace where FkId = < value >.

    For example: this is the database table...

    ID RowDetNumber OtherFields FkId

    1   3     1            ...

    2   3     2            ...

    3   3     3            ...

    4   3     4            ...

    5   4     1            ...         |

    6   4     2            ...         | -VO selects these records (where FkId = 4 for example)

    7   4     3            ...         |

    8   5     1            ...

    9   5     2            ...

    When a new record is created the field RowDetNumber must be calculated with the logic of the max (RowDetNumber) + 1.

    So for the example above, the calculated value should be 3 + 1 = 4.

    I would like to know how I can calculate the value and assign to the RowDetNumber attribute.

    I did some experiments using a Groovy expression as a default value for the field, but I got only errors.

    I'm a bit confused on how I can do so a few details / examples / tips are welcome

    In particular, a small example for every possible approach would be happy.

    Thank you

    Federico

    Federico, the solution mentioned in the block will work as it only generates unique numbers without guarantee that the generated numbers are without flaw. However, if you want to use max + 1 this normally means you want to have a sequence without gap. It is very very complicated in nature. It doesn't matter what application you're trying, there is almost always room for error, ending with duplicate numbers.

    The trigger also works as the DB supports triggers on MS SQL.

    If you don't need a number of gap-less for the attribute, you can use the groovy solution and just get a number of a sequence is is guaranteed unique and greater value, like the last number that you asked of the sequence. In this way, you can have the sorted records

    ID RowDetNumber OtherFields FkId

    1  3    1            ...

    2  3    7            ...

    3  3    9            ...

    4  3    10            ...

    5  4    3            ...        |

    6  4    5            ...        | -VO selects these records (where FkId = 4 for example)

    7  4    12            ...        |

    8  5    4            ...

    9  5    6            ...

    Timo

  • [ADF, JDev12.1.3] How to change the font size for all of the components of output within an af:panelBox?

    Hallo,

    I need to change the font size for all the inputTexts, LOVs of outputText, labels, etc. which are in different panelFormLayouts inside a panelBox.

    I tried to define a CSS class and to assign to the panelBox but it has not worked.

    You kindly suggest me an easy way to do this?

    Thank you

    Federico

    Hello

    You can try something like this:

    AF | panelBox::content label, af | panelBox::content, af | panelBox::content entry, af | panelBox::content select {}

    your style

    }

    At least the style of the components you named should be changed. If you need more you can add others.

    Kind regards

    Ruben.

  • [ADF, JDev12.1.3] How to change the image displayed in a page based on a parameter in the URL?

    Hallo,

    the index of my application page is called by the URL that ends with .../MyApplication/faces/index

    I want to add a parameter in the URL so that the picture in the page change based on this setting.

    The param doesn't have to be the name of the image file to display, but only a code.

    For example

    ? param = 1-> pathX/imageA.jpg

    ? param = 2-> pathY/imageB.jpg

    ? param = 3-> pathZ/imageC.jpg

    ...

    You could you kindly help me in this?

    Thank you

    Federico

    So if you have something like: .../MyApplication/faces/index?someParam=1

    You can use:

    Or you can link to custom as servlet: and then decode parameter and the return of this servlet image.

    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

  • How to implement the ScreenUiEngineAttachedListener Interface?

    How to implement the ScreenUiEngineAttachedListener Interface? It is somewhat a mystery reading through the API.

    I have a class that implements ScreenUiEngineAttachedListener:

    public class UiListener implements ScreenUiEngineAttachedListener {
      public void onScreenUiEngineAttached(Screen screen, boolean attached) {
      }
    }
    

    Then I have a class MyScreen which extends from screen and has two methods:

    public void addScreenUiEngineAttachedListener(ScreenUiEngineAttachedListener listener) {
      super.addScreenUiEngineAttachedListener(listener);
    }
    
    private void removeScreenUiEngineAttachedListener() {
    
    }
    
    • What is the correct positioning of everything?
    • Can I define an instance of UiListener and pass in the addScreenUiEngineAttachedListener?
    • How to remove UiListener in removeScreenUiEngineAttachedListener?

    You will need:

    • an instance of your UiListener - probably a static member inside your UiApplication;
    • a method that allows to retrieve the reference to this instance of UiListener;
    • a call in your constructor for the screen at addScreenUiEngineAttachedListener (yourApplication.getUiListener ()) or similar;
    • potentially a call within your onScreenUiEngineAttached (attached screen, boolean) routine, the branch (attachment is false) : screen.removeScreenUiEngineAttachedListener (this);

    However, all this is too much work for no gain. Just override protected void onUiEngineAttached (boolean attached) in your screen class and make your logic there - all members of your class are accessible and all the code is placed where it belongs.

  • How to implement the SOA 11 g limitation?

    Hi all

    Can someone tell me how to implement the limitation in SOA to create a repository for the history of the transactions?

    ARO

    Hari

    Hello

    By Greg Mally of Oracle message covers an approach to the limitation in SOA Suite

    https://blogs.Oracle.com/soacommunity/entry/throttling_in_soa_suite_via

  • Is there anyone who knows how to implement the P3 Colorspace in first CC2014?


    Is there anyone who knows how to implement the P3 Colorspace in first CC2014?

    Hi RVBBernard,

    Sorry, there is currently not available in Premiere Pro. You can request a feature here: http://adobe.ly/feature_request

    Thank you

    Kevin

  • How to implement the AdSense code

    Hello

    I don't know how to implement the code.

    Can someone help me?

    Hello

    Please take a look on the link adobe form at the address below. This could help you.

    https://forums.Adobe.com/message/4325647

    Kind regards

    Nitin Kapila

  • How to implement the process Train in Jdev 10.1.3

    Hello..
    Anyone know where to find a tutorial on how to implement the process train in jdev 10.3.1

    Thank you

    http://download-West.Oracle.com/docs/HTML/B25947_01/web_complex005.htm#CEGIGJID

  • How to list the active recording points in a session?

    How to list the active recording points in a session?

    Brands of Marcelo - ESRI wrote:
    How to list the active recording points in a session?

    not easily

    http://www.orafaq.com/Forum/t/122719/2/

  • [ADF, JDev12.1.3] How to resize and style default popup of the message of faces?

    Hallo,

    popups messages of faces that I take the floor in managed beans or auto-affichent by the application to show errors (e.g., https://dl.dropbox.com/s/hsje8m0meci2wai/FacesMessage.png?dl=0) do not adjust automatically based on the content.

    I would like to know how I can fix this problem and:

    Thank you

    Federico

    Well, for automatic resizing, you can use this workaround: https://agungor.wordpress.com/2014/05/14/handling-un-resizable-facesmessage-popup/

    Also, if I remember correctly, you can download the fix for this problem for Oracle Support(if you have support contract).

    Inline messages you must provide the id of the component when you create messages of faces.

    For global inline messages you need to af:messages component.

    As an alternative, you can use something like this: Awasthi (Jdev/ADF) Ashish Blog: better interface user-display the notification message of jQuery (for error, warning, info) to Oracle ADF

    Dario

Maybe you are looking for