Update JSP based upon change in database

Hello JSF gurus,
Is it possible for a JSP to update based upon a change in a database? For example, say a new row gets added to a table. Can this be detected and somehow result in a notification being sent back to the JSP (or its backing bean), causing a refresh? Thanks.
-Robert

In fact, I guess that I could ask an even more general question: can a JSP be updated "programmatically" (a push type model), or does it require a request (i.e. some user interaction) generated on the JSP (a pull type model).

Similar Messages

  • ADF BC: Creating updatable VO based upon DB View with "instead of" trigger

    Hello all,
    I have got an interesting issue. I have an Oracle DB view that is used to hide some complexity in the underlying DB design (it does some unions). This view is updatable because we have created an "instead of" update trigger to update the correct table when a row is updated. This is working fine in SQL.
    Next, we have created an ADF Entity object based upon the view, specifying an appropriate PK for the DB View. Then, we have created an updatable VO based upon the EO. All well and good so far. The issue we have is in trying to commit changes to the DB - because the ADF BC framework is trying to lock the row to update (using SELECT ... FOR UPDATE), it's not working because of ORA-02014 - cannot select FOR UPDATE from view with DISTINCT, GROUP BY, etc.
    This leads me to thinking about overridding doSelect() on the EO as hinted here http://radio.weblogs.com/0118231/stories/2005/07/28/differenceBetweenViewObjectSelectAndEntityDoselectMethod.html
    As a temporary test, we have over-ridden the EO's doSelect to call super.doSelect(false) and it does work, although we will have lost update issues as detailed in Steve's article.
    My questions:
    1). Is overriding doSelect() the correct thing here? Perhaps there is a better way of handling this problem? I do have a base EO class from which all of the EO's extend, so adding this behavior should be straightforward.
    2). Does anyone have example doSelect implementation? I am thinking of overriding doSelect for my EO and calling super.doSelect (lock=false), but then I need to deal with some possible exceptions, no?
    Kind regards,
    John

    Hi John,
    I have exactly the same issue as you experienced back in January. I have a complex data modelling requirement which requires the need to pivot rows into columns using ROW_NUMBER() and PARTITION clauses. To hide the complexity from the middle tier, I have created a database view and appropriate INSTEAD OF triggers and mapped my EO to the view. I have overriden the lock() method on the EO implementation class (to avoid ORA-02014) and would like to try the same solution you used with the pl/sql call to lock the record.
    My question is, how did you manage the release of the lock if the transaction was not rolled back or committed by your application i.e. if the user closed the browser for instance.
    In my naivity, I would like to think that the BC4J framework would release any locks for the database session when it found the servlet session to be terminated however my concern is that the lock would persist and cause complications.
    Any assistance greatly appreciated (if you would be willing to supply your lock() method and pl/sql procedure logic I would be even more grateful!).
    Many thanks,
    Dave
    London

  • How to update Activity based upon Campaign

    Hi !
    We have created some Campaigns with campaignelements.
    These elements has been "connected" to different BP - based upon roles.
    The corresponding Activities, then has to be updated (Fields: Dates and Status)
    Our task is to create a routine/program, where, based upon Campaign, the corresponding Activities can be updated.
    Could any one please tell us how to do this?
    Regards
    Torben

    Hi Torben,
    I hope I've got your problem correct. I  think that a update of the Activities created during the campaign is not possible. You can try to search for the activities created by the campaign throu the link.
    If I've got you wrong could you describe your business case in more detail please.
    Regards
    Gregor

  • How to update UDF based upon the row level dimensions.

    Hello Experts,
    I have made 4 new udf at Sales Order.  Its displaying at Righthand side under General Category.
    Now at row level im entering item detail, and other things with 4 profit center vaues.
    So i want that if i enter value in those 4 proft center in row level then it should automatically update those 4 udf with that value.
    It always happen in Add mode of SO, if SO open in update mode then i can update those udf with other values also, which can be differ then row level profit center values.
    If we need to create any trigger or any query for that, then guide me for that.
    Regards,

    Hi Chintesh,
    You can use the option of changing value when the exising column value changes. (also check the option refersh only option)
    pls revert in case more help.
    Regards,
    Datta Kharat

  • SCCM 2012: windows updates groups, based upon criteria required?

    Hi,
    Is it correct to say that, for updating Windows machines/creating a software update group, you can use the criteria "required" + deployed = no?
    That would simplify our setup: just select the OS, prodcuts, severity and "required" + deployed = no would contain all necessary updates.
    J.
    Jan Hoedt

    Concur with Torsten. In general, I think using required as a criterion is a bad practice for exactly what Torsten outlined above. Additionally, if you are doing OSD, how will you deploy the updates to those systems during the task sequence as not all updates
    will be available for them?
    Jason | http://blog.configmgrftw.com | @jasonsandys

  • How to update the price based upon PGI date

    Hi
            I have issue of updation of the Prices and freight based on PGI date in the billing we are using the two billing types for the excsies and tax invoice creation .And in the copy control pricing type is maintained Aas "C" for the billing types with single delivery but someHow MRP in the excise billing has been picked from the condition record thats validity is ended and in Tax invoice it picks up the correct prices
    Both pricing condition types has pricing type "B" from Billing date and in the freight we have maintained as "A" SRD
    But for the some cases specially for the excise related part that is based upon the MRP we are facing this issue
    Pricing date is some how coming from sales document
    Please find the problem details in the attachment

    Hi,
    if you see two condition tabs snap shots you can understand clearly because that two invoices has been created in two different dates and you have maintained the pricing date C-billing date ( KOMK-FKDAT).Due to this,the price of ZMRP is coming differently.After you creation of first invoice then you would have changed ZMRP amount.Now while you are creating second invoice ,system has taken new price of ZMRP in billing level.
    Note:While creating second invoice, PGI date might have come into billing level but someone would be changed billing date manually at header level of billing document.Please check that one also.
    Kindly let me know if you need further help on this.
    Thanks,
    Naren

  • How to make a value changed based upon values selected in dropdown menu

    Hi,
    I am making my first Dreamweaver website using Dreamweaver CS6 on a windows 8 PC.
    I am trying to make a website where the user selects different criteria; in this example an ipod's model, condition and size from three seperate dropdown selections (similar to www.itrado.co.uk) and then based upon these selections a value for their ipod is shown. However i cannot work out how to display a value which remains on the same page and changes based upon the values which have been selected from the dropdown boxes. I was planning on creating a database and then creating a simple code which retrieves the value from the database which corresponds to the three selected values, however i am not sure how to go about doing this.
    Any help would be greatly appreciated.
    Many Thanks,
    Henry

    You need scripts for this. Try this jQuery tutorial
    http://anthonygthomas.com/2010/03/14/display-form-fields-based-on-selection-using-jquery/
    Nancy O.

  • Process flow for the Mid-year Status Changes based upon the Qualifying Even

    Hi Experts,
    I'm looking some information for the process flow for the Mid-year Status Changes based upon the Qualifying Events. Basically, I need to know, what would be the impact of these changes on various info types (Via IT0014 - Deduction changes & so forth) and the things that needs to be considered during it's Configuration and the things that needs to be checked due to the occurrence of the change. I would greatly appreciate any kind of help/document.
    Thanks a bunch in advance,
    Thanks,
    Exertive.

    Hello guys,
    Can anyone has any kind of input on this? Basically, I need to know the procees for Mid-year status changes based upon Qualified events. Any kind of help is greatly appreciated.
    Thanks,
    Exertive.

  • How to go about changing settings based upon logged in user

    Hi all,
    I'm wondering if anyone has any thoughts on how one would go about changing a property on a node based upon the logged in user.
    For example, say you have a path property at /apps/myComponent/settings.path=/content/dam/genericfolder that for an author have the value of /apps/myComponent/settings.path=/content/dam/sandbox, and for an approver have the value of /apps/myComponent/settings.path=/content/dam/approvalsandbox

    Hi Ove,
    Thanks for the tip on the user role. I had thought about taking that approach, however, leveraging the user role and properties associated with it would be the correct approach if writing custom components. What I am looking for is a way to take existing components, and essentially use them in context of the user.
    For example, say if you are trying to give a sub group of users access to a subset of the DAM directory, and you don't particularly wish to hack around the existing WCM DAM component, there is a setting in the tree navigator (/libs/wcm/core/content/damadmin/treeRoot) that lets you specify where the root of the tree is. (There are more settings to work with, but this is just one used to illustrate.)
    If you can change the property based upon the user, that gives you the functionality without altering code.
    I would like to know if this is possible, if this is an inherently bad practice, if so why, and whether there may be another alternative out there which lets you avoid having to alter the code of an existing component.
    Thanks again for answering.

  • How to change Dashboard Tabs based upon the login?

    Hi All,
    I have a requirement that, based upon the user login the dashboard tabs should change! not sure how to do this? any help is greatly appreciated.
    Regards
    B
    Edited by: Bees on Jul 27, 2010 2:37 AM

    B,
    I mean assuming you have a security model, users are in groups etc. And you have one group allowed to access tab 1, and you build tab2 for another group....
    The dashboard page properties screen, has a padlock icon against page, here you can set up the presentation catalogue privs for the dashboard page, assign users / groups read access, prohibit access as you see fit.
    To get to the page properties, edit the dashboard itself, on the top row of icons against the page dropdown list is our friend, the pointy finger, hit this to get to the page properties screen, you can change order, rename pages and in this case, set security per page.
    For discussions on the security model, RPD groups & Web cat groups - best we start another thread !! have a search on the forum first though, its been covered many times :-)
    Cheers,
    Alastair

  • Update date upon change of status in CRMD_ORDER

    Hi,
    I have a requirement to update a date (appointment) in CRMD_ORDER upon changing the user status of the ticket.
    I have identified the BADI to be used for status change. But I'd like to know which FM I can use to update the date in the ticket - CRM_ORDER_MAINTAIN?
    Appreciate any feedback.

    Hi,
    Sorry for late reply. I got my prob solved by using FM CRM_APPT_MAINTAIN_MULTI_OW to change the value according to my requirement in BAdi CRM_ORDER_STATUS method AFTER_CHANGE.
    Thanks.

  • [svn:osmf:] 17815: Update comments based on PARB feedbacks and corresponding API changes.

    Revision: 17815
    Revision: 17815
    Author:   [email protected]
    Date:     2010-09-22 23:19:05 -0700 (Wed, 22 Sep 2010)
    Log Message:
    Update comments based on PARB feedbacks and corresponding API changes.
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/net/NetLoader.as

    A good solution. Liked it very much. Can you please make it a technet blog for others.
    [email protected]

  • Mapping based upon context change

    Hi,
    Quick graphical mapping question:
    I have an inbound message with 2 contexts for one segment - <ClaimantInformation>
    Basically, I want to set the content of a target field based upon the following:
    If context1 of <ClaimantInformation> then set field1 to "A"
    If context2 of <ClaimantInformation> then set field to "B"
    I'm sure there must be an easy way to determine which context you are dealing with and set a target field accordingly.
    Any ideas ?
    Thanks
    Colin.

    Hi
    You can try writing a UDF ..
    take source as input to this UDF...
    In the UDF check whether it is context 1 or 2 by using counter in a loop....
    according return A or B

  • Does WAR updates JSP timestamps on Tomcat?

    I answered another forum post with an answer that I'm not certain is correct.
    For the sake of argument, if you have a Tomcat-based website up and running, and Tomcat has compiled the JSPs on that site, subsequent changes to any included files are not recognized unless Tomcat is forced to recompile the parent JSP. This is usually by updating the timestamp on the parent.
    It is possible to deploy a WAR file to a live copy of Tomcat, that is, you don't need to restart it.
    If the WAR file has say, hello.jsp and hello.jsp has the same timestamp as the currently used version, does deploying the WAR file cause Tomcat to think the new hello.jsp is a change to the original, and therefore must be recompiled?
    I realize this is actually fairly easy to test, but I'm hoping someone knows the answer offhand?

    On deploying the WAR Tomcat unpacks the WAR, thus when accessing the JSP it does not see that the actual JSP file has been replaced (as you stated the timestamp on that is identical).
    Therefore there are only 2 scenarios in which Tomcat would recompile the JSP on call:
    1) when/if Tomcat is configured to discard compiled JSPs on reloading a web application (this might be theoretical. I don't know if Tomcat offers that option)
    2) when/if Tomcat discards compiled JSPs when redeploying a webapp.
    This of course changes your question to: does Tomcat delete compiled JSPs when redeploying a webapp :)

  • Show or Hide fields based upon a variable value

    Hi,
    I am a rookie in the field of Acrobat. And my only question is :
    How to Circle a Form Field based upon a variable value .
    For example, If x=1, I want to circle Japan and if x=0, I want to leave it without any change.
    Please help me out. Thanks for your time and help.
    Thanks,
    Vijayvijay77.

    Hi George,
    I am pre-populating a Pdf file based upon the data submitted by the user. And I have to circle options selected in the form.
    I am writing coldfusion code to flatten, populate the form into a PDF form. The end result is the PDF generation with all the data in it.
    The data comes from the database, where I set variable values if any is selected or not.
    Thanks for your reply, I really appreciate your help.
    Vijayvijay77.

Maybe you are looking for

  • Alert Category BWAC_PROCESS_CHAIN_ERROR

    Is there a way to change the content of the e-mail that is being sent out through alert category BWAC_PROCESS_CHAIN_ERROR? For example, I would like to add the system id to the e-mail subject line. Otherwise there is no way to tell in which system a

  • Command shortcut for Home/End not working

    command (shortcuts) "Home" and "End" will not work for page I am on.

  • What do you do when all sound quits working except the ringer on phone calls

    The only sound in my phone that is working is the ringer for phone calls. The sound for apps, keyboard clicks, notifications, texts etc is not working including plugging in my phone charger sound. Please help. This is happening at random.

  • Email Folder Help

    Not sure what happen but as of last Friday, I am no longer able to see any emails that were in my inbox or in any subfolders within Outlook.  I talked to my IT department today and they are still researching it but I figured I would turn here for hel

  • Mail.app on Snow Leopard won't retrieve messages through POP3

    Hi. I've just recently upgraded to Snow Leopard. I managed to setup a Gmail IMAP account which worked fine. Then I tried to setup POP accounts of my GoDaddy hosting/email plan. The setup seemed to finish without problems but when I hit the "Get mail"