Does 'transient' attribute actually exist? Please.

Hello
I have a memory problem in an application, we are using:
myfaces 1.2.5
facelets 1.1.14
richfaces 3.3.2.SR1
config in web.xml includes:
<context-param>
          <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
          <param-value>server</param-value>
     </context-param>
     <context-param>
          <param-name>org.apache.myfaces.COMPRESS_STATE_IN_SESSION</param-name>
          <param-value>true</param-value>
     </context-param>
     <context-param>
          <param-name>org.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION</param-name>
          <param-value>1</param-value>
     </context-param>
I have profiled the application in JProfiler - we dont have a memory leak - but we have quite a heavy page using Rich and a4j components which is making the component tree that JSF stores quite big I think.
I note that there is an attribute 'keepTransient' in the RichFace library that you can use on OutputPanel for example to turn the default non-transient
children to be transient but this does help our memory usage since we are doing alot of partial page updates and so this data is minimal and doesnt reduce the in-memory component tree much if set to transient.
It appears that earlier versions of JSF have a 'transient' flag you could set on JSF components to make sure they were not saved to the component tree - does it still exists does anyone know?
We cant turn our state-saving method to client since the pages are too big.
Is there anyway of removing components from the tree stored in memory?
Please help.
Thanks
Edited by: TheDarknessBeckons on Nov 5, 2009 8:55 AM

If you're using facelets, you can add transiet="true" as a tag attribute for those components (and by extension their children) that you wish to make transient.

Similar Messages

  • Does iPhoto Services actually exist or do they just take your money and run

    I ordered 1 hardcover and 4 softcover books for Christmas gifts. They were supposedly shipped on the 6 December and I STILL HAVEN'T RECEIVED THEM.
    They were meant for gifts for the US. I couldn't have them sent there directly, it isn't possible with Apple, so I had them sent to me in Spain and was planning on delivering them in person during my trip there. If they ever do arrive now I will have to go through the expense of sending them by post back to the States. Lovely.
    I managed to reach someone at Apple once but she didn't seem to be familiar with European delivery and could only tell me to wait (this was December 30th). Tried to send an e-mail to support but heard nothing from them.
    Has anyone else had this issue? Any ideas of who to talk to to get my delivery. Needless to say, this is the LAST time I every order anything from Apple.
    IS ANYONE FROM APPLE OUT THERE OR ARE WE JUST WRITING INTO A VOID???

    No one from Apple listening here normally.
    You should start here: http://www.apple.com/support/photoservices/

  • Error: Javax.mail does not exist, please help

    I have copies mail.jar and activation.jar in the classpath directory as instructed, then try to compile but got the below error: package javax.mail does not exist
    please help.
    G:\CRD>javac SendMailBean.java
    SendMailBean.java:22: package javax.mail does not exist
    import javax.mail.*; //JavaMail packages
    ^
    SendMailBean.java:23: package javax.mail.internet does not exist
    import javax.mail.internet.*; //JavaMail Internet packages
    ^
    SendMailBean.java:43: cannot resolve symbol
    symbol : class Session
    location: class SendMailBean
    Session l_session = Session.getDefaultInstance(l_props, null);
    ^
    SendMailBean.java:43: cannot resolve symbol
    symbol : variable Session
    location: class SendMailBean
    Session l_session = Session.getDefaultInstance(l_props, null);
    ^
    SendMailBean.java:48: cannot resolve symbol
    symbol : class MimeMessage
    location: class SendMailBean
    MimeMessage l_msg = new MimeMessage(l_session); // Create a New message
    ^
    SendMailBean.java:48: cannot resolve symbol
    symbol : class MimeMessage
    location: class SendMailBean
    MimeMessage l_msg = new MimeMessage(l_session); // Create a New message
    ^
    SendMailBean.java:50: cannot resolve symbol
    symbol : class InternetAddress
    location: class SendMailBean
    l_msg.setFrom(new InternetAddress(p_from)); // Set the From address
    ^
    SendMailBean.java:53: package Message does not exist
    l_msg.setRecipients(Message.RecipientType.TO,
    ^
    SendMailBean.java:54: cannot resolve symbol
    symbol : variable InternetAddress
    location: class SendMailBean
    InternetAddress.parse(p_to, false));
    ^
    SendMailBean.java:57: package Message does not exist
    l_msg.setRecipients(Message.RecipientType.CC,
    ^
    SendMailBean.java:58: cannot resolve symbol
    symbol : variable InternetAddress
    location: class SendMailBean
    InternetAddress.parse(p_cc, false));
    ^
    SendMailBean.java:62: package Message does not exist
    l_msg.setRecipients(Message.RecipientType.BCC,
    ^
    SendMailBean.java:63: cannot resolve symbol
    symbol : variable InternetAddress
    location: class SendMailBean
    InternetAddress.parse(p_bcc, false));
    ^
    SendMailBean.java:68: cannot resolve symbol
    symbol : class MimeBodyPart
    location: class SendMailBean
    MimeBodyPart l_mbp = new MimeBodyPart();
    ^
    SendMailBean.java:68: cannot resolve symbol
    symbol : class MimeBodyPart
    location: class SendMailBean
    MimeBodyPart l_mbp = new MimeBodyPart();
    ^
    SendMailBean.java:72: cannot resolve symbol
    symbol : class Multipart
    location: class SendMailBean
    Multipart l_mp = new MimeMultipart();
    ^
    SendMailBean.java:72: cannot resolve symbol
    symbol : class MimeMultipart
    location: class SendMailBean
    Multipart l_mp = new MimeMultipart();
    ^
    SendMailBean.java:83: cannot resolve symbol
    symbol : variable Transport
    location: class SendMailBean
    Transport.send(l_msg);
    ^
    SendMailBean.java:98: cannot resolve symbol
    symbol : class MessagingException
    location: class SendMailBean
    } catch (MessagingException mex) { // Trap the MessagingException Error
    ^
    19 errors

    Another person who doesn't understand how to set CLASSPATH.
    Move those JARs into the same directory as your SendMailBean.java and do it like this:
    javac -classpath .;mail.jar;activation.jar -d . *.java
    java -classpath .;mail.jar;activation.jar SendMailBeanRead how to set CLASSPATH properly:
    http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/classpath.html

  • Customer PC3000 does not exist (please change entry in plant 3000)-INT STO

    Hi All,
    Iam getting error message while creating intercompany sto PO in my QA clinet.
    (Customer PC3000 does not exist (please change entry in plant 3000)
    Vendor maintained both the plant(supply and receeving plant)
    Customer maintained both the company code and sales org.(supply and receeving plant) then also Iam getting same error.
    I had checked OMGN t-code setting looks good.
    Same setting I had tested on DEV and SANDBOX its wokring fine.
    Please help me out how to solve this problem
    Thanks
    Raj K

    Hi,
    I am facing similar problem, When trying to create a PO for Intercompany stock transfer, I am getting the error message Customer XXX does not exist (Please change the entry in Plant XXXX).
    This error is appearing only in the Production system, but PO is getting created in Quality system. All the Master data, Configuration in both systems appears same. If you know any solution, kindly post.
    Regards,
    Onkar

  • Encountering error: "field does not exist, please re-enter" when setting up basic calculation

    I created a form in InDesign with many form fields. I would like to be able to have specific form fields generate a sum total in another form field. In acrobat, when I select the form field I wish to have the calcualtion appear in, I select the fields I want to calculate and when I click OK, I am greeted with a pop-up error that the "... field does not exist, please re-enter". I can see that there is a field present when I select "Highlight Existing Fields", I can select it and even fill it in manually. What am I doing wrong?
    I attempted to contact Adobe Help chat and they threw up their hands and directed me here. Does it have something to do with the naming convention? I am stumped but I really need to figure this out. Do I need specific script to drop into the field notation box?
    Thanks,
    In Over My Head

    Thank you George.
    Keeping the file names simple seems to be helping.
    I am now encountering an issue where some field calculations (rouhgly 20 out of 58 different basic calculations) do not compute.They create no sum and remain "zero" despite being created the exact same way as all the other calculations that appear to be working flawlwessly.
    I don't understand and it is giving me kittens.

  • VO Transient Attribute referencing the Attribute from another VO

    Hi I have an scenario where I have a VO "A" has a transient Attribute say aPeriod, (at any given point the executed VO"A" has only 12 Rows) , I have another VO "B" which when executed gives me exactly 12 Rows with attribute "bPeriod".
    I want the 12 Rows of VOA with aPeriod attribute to hold the values from VO"B" attribute bPeriod. Is there any groovy expression / or any View accessor usage which can enable me to resolve this scenario. currently I am achieving this programaticaly by iterating every row of VOA and VOB and assigning aPeriod attribute with bPeriod ( which I am not happy with ).
    Please help me if there is any better solution for the same.
    Thanks
    TK

    Thanks for your reply, but there isnt any common attribute between the two VO, I am having VO1.aPeriod attribute has a transient one and VO2 when executed gives me VO2.bPeriod, actually this is a small subset of a bigger scenario.
    both VO1 and VO2 are SQL based read only VO. both have same query but both needs two different bind variable bindPeriodVariable = 12 and 24 respectively which returns VO1.xPeriod and VO2.bPeriod, when executed.
    I Am supposed to show both VO1.xPeriod and VO2.bPeriod in a single ADF ReadOnly table.
    so I thought of having a transient attribute called aPeriod in VO1 and assign it with VO2.bPeriod individually by iterating every row of VO1 and VO2.
    I am not pleased with the way I am doing this stuff.
    Pls help me with this issue.
    Thanks
    TK.

  • View Object transient attribute (Calculate sum) using groovy problem

    Hi
    I have a read only view object named "ConnectionVVO". And it has database field name "points"(type is number).
    Now I need to take the sum of points.
    For this I did the following.
    Self view object added to the same view object as a view accessor named "ConnectionVVO1".
    Created a transient attribute named "TotalPoints".
    Added following groovy as the value expression of the above transient attribute.
    adf.object.ConnectionVVO1.getRowSet().sum("points")after that when I run the application module and run the view object it was extremely slow. Actually nothing was appeared. There after I modified the sql statement and added a where clouse to select few rows.
    Then it was appeared without slowness.
    The table has around 11 million records.
    Could you please provide a hint or any alternate way for doing this(getting the sum of points).
    Please help.
    Edited by: deshan on Mar 9, 2011 2:56 PM

    Hi Timo,
    Thank you very much for the explanation and direction. I will do that way. I have found that implementing view object and view row class I could do the similar kind of thing for the transient attribute.
    public Number getTotalPoints() {   
    RowIterator con= getConnectionViewImpl();
       Number sum = new Number(0);
       while (con.hasNext()) {     
          sum = sum.add( (Number)con.next().getAttribute("Points"));
        }    return sum;
      } took form
    http://technology.amis.nl/blog/1295/creating-a-dynamic-ajax-column-footer-summary-in-a-table-component-using-adf-faces
    But it also slow as 1 st method
    I am wonder whether both ways behave as similarly or they are totally different implementation?

  • Passivate option in VO transient attributes & AM connection type

    Hi
    My English isn't very good.
    I use Jdeveloper 11.1.1.3.0
    I have 2 questions:
    1. I defined some View Obj and in each View Obj I made transient attributes. I don't know if the Passivate option of these transient attributes should be enable or not?
    2. for AM connection type I use JDBC DataSource : "jdbc/ConnectionName". If I change JDBC DataSource to "java:comp/env/jdbc/ConnectionName", does it exist any difference?
    Habib

    If your transient attributes are updateable, but you use them only within the scope of a single request (e.g. you set the value within a particular request and use it only until the end of this request but not later), then you do not have to passivate them. However, if they are updateable and you need their values to survive across multiple requests, then you must ensure that these attributes are passivated. In order to configure them to passivate you should do the following:
    1. Check the checkbox "Passivate State (e.g. Current Row, Bind Variables, etc.)" in the section "General/Tunning" in VO's definition dialog box;
    2. Either check the checkbox "Including All Transient Values" in the same section or leave it unchecked but check the checkbox "Passivate" in the definition of the corresponding VO attributes.
    N.B. The setting "Include All Transient Values" affects not only the transient VO attributes but the SQL-derived VO attributes (that are not entity-based) too.
    The configuration parameter "jbo.txn.disconnect_level" has nothing to do with passivation/activation. The correct way to test if your VOs behave correctly under passivation/activation is to disable AM pooling (e.g. to uncheck the checkbox "Enable Application Module Pooling" in the corresponding AM Configuration dialog box). When AM Pooling is disabled ADF passivates the corresponding AM state at the end of each HTTP request and activates it at the beginning of next request and so on. In this way you can check if your VOs are passivation/activation-safe.
    Please, have a look at the article [url http://docs.oracle.com/cd/E23943_01/web.1111/b31974/bcstatemgmt.htm#sm0318]Application State Management in the documentation for more information and detailed explanation.
    Dimitar

  • Sorting on table with transient attributes

    Hello all,
    I would like to know if it is possible to enable sorting on a table with only transient attributes? I have an advanced table which is based on a VO that has all transient attributes. In this scenario, is there a way to enable sorting? Is this supported? Please let me know.
    Thanks in advance
    Raja

    Raja,
    Here are my responses:
    I would like to know if it is possible to enable sorting on a table with only transient attributes? >>Yes
    I have an advanced table which is based on a VO that has all transient attributes. In this scenario, is there a way to enable sorting?
    It does not depends whether the attributes are transient or not as sorting in framework will be done on view instance, you can still enable sorting in advanced table.For details refer to dev guide.Is this supported?>>Yes
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to make Transient Attribute Mandatory in View Object?

    Hi ,
    I have a Transient Attribute 'TransientFromCode' which is based on LOV .On UI ,I am showing this 'TransientFromCode' as 'SelectOneChoice' .
    So on selection of this i am populating other mandatory attributes.
    My requirement is to show this as 'Required' on UI but in View Object i am not able to find mandatory property for this attribute.
    I dont want to use required='true' . So can you plesae tell me is there any way to make Transient attibute as mandatory on UI .
    Thanks

    940637 - Your Use Case is a little vague\confusing.
    If you are just trying to get the standard "Required" architecture, it probably isn't working because you have incorrect syntax. It is #{bindings.MyViewObj.MyAttr.hints.mandatory}
    Yours: "#{bindings.UnitOfMeasureIntraClassConversion.hints.TransientItemDesc.mandatory}"
    It will "dynamically" pick this up at Runtime from the ViewObject Attributes "Mandatory" property (Attributes\Details tab), BUT the EL will always evaluate to "true" so this is the same functionally as just hard coding the UI component's Required property to "true" (although doing so is against Best Practices)
    If you are just wanting to SHOW the field as required without the standard Validation logic (because you are coding your own), you could:
    1) JUST set the UI component's "ShowRequired" property = true. This displays the * next to the Label (regardless of actual View Object Attr setting) but fires no validation.
    2) If you want to not show * but some custom standard, you could just create ANOTHER transient Attribute in the View Object and call it "TransientItemDescRequired" and set it to a Literal "y" or leave it blank and programmatically set it later... You can code your own validator\method\whatever against it, etc
    Edited by: donhoyt on Jul 5, 2012 7:58 AM

  • Dirty check for transient attributes in view object

    Hi,
    I am using JDeveloper 11.1.1.4 and ADF BC in my project.
    In one of my view objects,I have a transient attribute added for some business logic.
    I am doing dirty check in my project as below.
    boolean dirty = false;
    boolean amDirty = false;
    // check application module
    ApplicationModule am =
    getBindingContainer().getDataControl().getApplicationModule();
    amDirty = am.getTransaction().isDirty();
    //Check if datacontrol is dirty
    BindingContext bctx =
    oracle.adf.controller.binding.BindingUtils.getBindingContext();
    dirty =
    bctx.findDataControlFrame(bctx.getCurrentDataControlFrame()).isTransactionDirty();
    return amDirty || dirty;
    My requirement is that,I dont want the dirty check to be applied on the transient attribute in the view object.
    Is there any way to achieve this.Please advice...
    Regards,
    Praveen

    Hi Frank,
    Thanks for the suggestion.
    I followed the link.But if a transient attribute is modified,then also ((ApplicationModule)getDataProvider()).getTransaction().isDirty() is returning true and the transaction is made dirty.
    I am setting a transient attribute like this getNwOperVOIter().getCurrentRow().setAttribute("AcctNoTrans")....when I am editing a row.
    Can I get explicit handle at viewobjectimpl for this transient attribute??
    Regards,
    Praveen

  • How to add new transient attribute in VO ?

    Greeting ,
    I just want to add new transient attribute in VO .suppose i have a VO which have 5 attribute and i want to add one new transient attribute type of select one choice .
    how does it possible .
    regards
    prateek
    Edited by: Prateek on Jul 10, 2011 10:25 AM

    see, i want just add a static select one choice for example :
    <af:selectOneChoice label="Connection Type"
    requiredMessageDetail="Please select a connection type"
    id="soc2" showRequired="true" autoSubmit="true"
    value="#{uploadBillDetails.connectionType}">
    <af:selectItem label="Select Connection Type" value="Select" id="si4" />
    <af:selectItem label="Landline" value="Landline" id="si3" />
    <af:selectItem label="CDMA" value="CDMA" id="si2"/>
    </af:selectOneChoice>

  • Property not settable error - it is a bug for transient attributes

    In WLI 8.1 I get the following error in Workshop on a Client Request method:
    "Property <name of transient attribute> of type <Java object type> is not
    settable and cannot be unmarshalled from XML."
    In my opinion it is an error, because it tries to serialize and deserialize
    a TRANSIENT attribute via XML, which should
    NOT be serialized at all (that's why it is transient).
    Regards,
    Robert Varga

    Roam,
    Thanks again for your suggestion,
    "Furthermore one should always Repair Permissions both before doing a Software Update and again afterwards."
    I honestly dont know anything about this "Repair Permissions" from the name, i though it is a verification of authentication to repair OS or some kind of credential issue, and since i m admin user then there is no point to verify it, i should be allowed to do so. Again it is my first time to do this thing in 3 - 4 years of using panther, every time i update software i never ever do this! If this step is essential for every update and installation why dont apple put them as one of TODO step during the processes (as licensing agreement) instead of keep them as an option (just my thought) Anyway, I m glad u tell me about it, and i will give it a shot tonight.
    "That may because you didn't have sufficient disk space. In fact running out of disk space can create all sorts of problems. Please tell me how disk space is available on your
    start up drive."
    That what I thought coz i have only 5.x GB left in 60 GB HD. Thats why I claimed as whining and have to scarify the lost of data by reinstall panther in order to get my mac back to work
    "So are you saying it is a bug or it is a hacker, I don't believe it is either"
    Please see second update info about password, and i m not impose anyone to believe, thats why the topic is a questioning sentence "Is this a bug.."
    "This Discussion site is not Applecare. The people here give their time voluntarily to those who are receptive to help."
    Thats why i ask for "mac expert" not "apple authority/technician" and always appreciate any suggestion.
    Anyway, that great to hear from you and i have learned new thing from your suggestion. I will let u know when i have tried it.

  • Warning - Query has exceeded 200 rows. Potentially more rows exist, please

    Hi Guys
    I am really stuck on this one did a snoop in the forum to find what the problem may be but have found nothing that can help me.
    I get the following error on my pages.
    I am using 11.5.10
    Warning - Query has exceeded 200 rows. Potentially more rows exist, please restrict your query.
    I had originally created a page and a view object with the relevent app module... and it was givin me the error. so what i did was delete the project
    created a page and just the app module with no view objects
    there is nothing on the page.. just that the page is linked to the app module via app module instance option.
    still givin the error
    i change the profile option for personal view object retrieval to 10 and still no avail..
    the message just change from
    Warning - Query has exceeded 200 rows. Potentially more rows exist, please restrict your query.
    to
    Warning - Query has exceeded 10 rows. Potentially more rows exist, please restrict your query.
    i have changed the max fetch size as well as the fetch size to limit the query..
    i have changed the max fetch size via code and setmaxfetchsize(1) via code on iniziliation..
    PLEASE HELP?>>>

    Hi George,
    What do you mean by, when you claim that the page still runs without your VO (i.e. Just the PG & AM)? Does it means that your webBeans in the page that references the VO Attributes, still comesup with no issues like (VO not found)?
    If yes, then your jdev. project is picking up the VO xml/class files else where from your classpath. Please check your classpath settings and library settings to see where the old file is still available.
    HTH.

  • Transient attributes

    Cache scheme: replicated
         If our data objects has a few transient attributes (say large attributes, that we do not like to replicate until the need arise, a.k.a lazy loading), how do we code this logic in our put/get API? An example would suffice.
         I think this issue also arises in Coherence *Web, where large attributes can be declared as transient, and are stored as different entities for performance reasons as in ``split'' session model.
         Regards,
         Bulut.

    The easiest approach is to mark the fields as     > transient, then use getter methods with lazy loading.
         > This can read those attributes from the appropriate
         > data source (which may be a cache or even a database,
         > depending on your requirements).
         Do you think Coherence would help in this case? Where would you implement this lazy loading logic? And more importantly, how would it look like? I can see two alternatives:
         i) using Coherence services... maybe using a near cache?
         ii) independent of Coherence? which definitely looks more cumbersome.
         > Coherence*Web simply queries a method which indicates
         > whether a given named attribute should be clustered
         > or not (this class is provided by the application
         > developer). Also, note that Coherence*Web does not
         > lazily load non-clustered attributes; it actually
         > determines whether to make them visible to other
         > cluster member.
         Basically, my question is how Coherence implements handling of transient attributes, if we need a local transient attribute at a remote site.

Maybe you are looking for

  • How do I transfer a file from macbook to ipad without itunes?

    Hi, I purchased a children's learning program online. I am now trying to transfer that program file from my macbook onto my kids ipad's. How do I do this without using itunes? I didn't aquire it from itunes but from the makers own website. We homesch

  • Error in File To Fcc Scenario

    Hi All, i done File to Fcc scenario, my scenario is successful, i got black and white flag in moni and in communicaion channel monitoring no error is displayed in trace. but in my output file olny first field of a record is getting displayed. my rece

  • How to init numeric display

    In my vi i have a numeric display and a button. when button is pressed, some arithmetic calculation will happen (takes abt two seconds) and then result shown on the numeric display. if the result is less than a certain value the text bg will be red,

  • How to find size of the plsql packages

    Oracle : 10.2.0.4 Os : Solaris Issue : DB has around 2000 packages which are in development mode. In case If we want to find the size of all the packages what is the mechanism from the dictionary tables. ? Is there way the size is being stored in the

  • Resizing a MovieClip's contents

    I'm loading an external swf into a movieclip (the external sfw plays a slideshow of JPEGs). When the slideshow plays, the JPEGs extend way beyond the bounds of the movieclip. How would one go about constraining the JPEGs to their original size and ce