Refreshing the screen
My administration website will not display the new values stored in the database. There are a series of admin pages used to update the database. The current values are shown in text boxes to indicate what the current values are. How can I refresh the page and display the new changes in the text boxes.
The values are retrieved by calling the get methods in my ConfigDB class, which returns a value(the a result from the query string). For example:
String str_url = rs.getString("name");
public String getNameURL() {
return str_url;
I used rs.refreshRow(); and has no effect.
ConfigDB is responsible for connecting to the database and quering the database.
Can anyone help me?????
gbilios
What exactly is the problem? Refreshing the page? It can be done either with Javascript or the HTML <META>-tag. Or even using a dummy Servlet that you post it and just dispatch the request back to the same page.
Do you get the updated values if you refresh the page manually in your browser (CTRL-F5 with IE)? If not, then your problem is that your ConfigDB class is caching the values. You need to modify it so that it will requery the database every time a getter method is called.
.P.
Similar Messages
-
I cannot refresh the screen, no matter what I try. The "restore" is not the same thing. So I always get old versions of websites, including my own. I cannot see a new version of any website I have visited previously. I need to know how to REFRESH my screen, and there is no way to do it!!!!!
Reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
*Press and hold Shift and left-click the Reload button.
*Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
*Press "Command + Shift + R" (MAC)
Clear the cache and the cookies from sites that cause problems.
"Clear the Cache":
*Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
"Remove Cookies" from sites causing problems:
*Firefox/Tools > Options > Privacy > Cookies: "Show Cookies" -
Time trigger for refreshing the screen
Hi all,
How to implement the time trigger for refreshing the screen after some time interval .
Thanks in advance .hello Naval ,
set the delay propert Eg : 10
in the on action of the Time trigger Ui
invalidate the node of table .
write the select query for retrivig the PO from table into Itab .
bind the internal table to the node ...
But for your requirement it will efficient if you implement POWL query .
[http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60f1d5ee-84ab-2c10-ce97-97dfd89bc238?quicklink=index&overridelayout=true]
Regards
Chinnaiya P -
Have to keep refreshing the screen
When I start up various applications under Firefox, the username and password are not always completed for me despite being stored. If I refresh the screen, then it works. Also, when using the back button in google, it takes me to a completely blank page instead of the list of returned items - again, if I refresh the screen, the correct list is displayed. This has only been happening in the last 2 weeks and it's driving me nuts.
I've looked on this forum for answers but there aren't any that explain why this is only happening with Firefox. I left IE because of problems, don't tell me I have to now abandon Firefox too? Has anyone got a reliable platform out there for goodness sake?Ok. I think safe mode should be the next step then.
I should have been more clear above. I didn't mean Windows Safe Mode. I was referring to Firefox's Safe Mode. See the article below:
[[Troubleshoot Firefox issues using Safe Mode]]
This basically starts Firefox up with all add-ons disabled and with a couple of changes to basic settings. If the problem doesn't occur in Safe Mode then it is a good bet that some setting or add-on is causing the problem. You can then follow the instructions in that article to enable them one by one to identify the culprit.
If the problem still occurs in Safe Mode then I suggest doing a Firefox Reset. See the article below. This will return Firefox to its defult settings. Your history, bookmarks etc will be saved but you will need to reinstall all your add-ons.
[[Reset Firefox – easily fix most problems]]
I hope that helps. Let me know if not. -
Refreshing the screen that has af:table
Hi,
I have an Entity X, and I have an Edit screen where I can update attributes values of X Objects. On the Edit screen(JSPX), I have OutputText, InputText, selectOneChoice, selectBooleanCheckbox, and af:table components. On the Edit Screen I also have copy capability, the user can pick another Object of X and copy all its attributes values to the current object. When the copy is done, the copied values are instantly displayed on the screen for all the components except the af:table components(certain rows should be selected after the copy is done). I tried to refresh the page using the below code but didn’t help
protected void refreshCurrentPage(){
FacesContext context = FacesContext.getCurrentInstance();
String currentView = context.getViewRoot().getViewId();
ViewHandler vh = context.getApplication().getViewHandler();
UIViewRoot x = vh.createView(context, currentView);
context.setViewRoot(x);
x.setViewId(context.getViewRoot().getViewId());
I tried to add the table as a partialTrigger using the below code but that didn’t help
AdfFacesContext adfContext = AdfFacesContext.getCurrentInstance();
adfContext.addPartialTarget(compsTableComponent);
I have been struggling with this for days, can anyone suggest any solutions to it. I use ADF Business Components
Thanks :(Hi,
you lost me in the listing of components and what they do on the edit page. But I think that they are irrelevant for the question you ask anyway. So here are the options
1) call facesContext.getExternalContext.redirect("/yourViewId.jspx");
or
2) try refreshing the surrounding cotainer of the table. Sometimes its not the component you need to refresh, but the parent container
Frank -
Web module constantly refreshing the screen
When I am in the Web module the screen refreshes every 15 to 30 seconds. This seems to change depending on how many images I am putting in a slideshow. This has nothing to do with changeing one of the elements it just refreshes on its own.
Is there any way to turn this auto refresh off.
JimConstant screen refreshing takes place when the image sizes are inconsistant. To Solve the problem, export the images making the long or short edge the same length. Then the refresh problem should go away.
-
Refresh the screen after a long calculation
Hi,
I have a problem here:
After I click a submit button, I want start a long process(running a stored procedure
in
database for about 20 mins) and after it is finished, screen will refresh automatically
to reflect
changes. I was using a thread to do the calculation but not able to refresh the
browser after calculation is finished. Any one knows how to do it?
Thanks.
Kim
Kim,
It was just pseudo-code to hand you an idea of using Refresh.
As for the piece you provided, it has some problems:
1. It looks like you start marginServer() Every time there is a refresh
2. It looks like you have marginServer as a field in the servlet, which
is not correct as it's not guaranteed that the same instance will serve
the next request. You'd better keep in HttpSession.
HTH.
Regards,
Slava Imeshev
"Kim" <[email protected]> wrote in message news:[email protected]...
>
> Hi Slava,
> Thanks for helping.
> I tried your code but got some error . Here is the code:
> public class LongRunningTaskRefresh extends HttpServlet {
> public void doGet(HttpServletRequest request, HttpServletResponse response)throws
> ServletException, IOException {
> stillRunning =true;
> marginServer.start(); //this is the thread with long
> process. In the end of it, it will set stillRunning to false
>
> response.setContentType("text/plain");
> PrintWriter out = response.getWriter();
> if (stillRunning) {
> response.setHeader("Refresh", "5");
> out.println("Your request is being processed" );
> }
> else {
> rd = request.getRequestDispatcher("MarginSummary.jsp");
> rd.forward(request,response);
> }
> }
> }
>
> Do I do anything wrong?
>
> THanks again!
>
> Kim
>
-
Refresh the screen after a ALV hotspot click
I have a value type I painted on my screen, i wan it to be updated after i trigger the hotspot click on my ALV list. How to do refresh the value on the screen?Because hotspot click does not update the screen for the latest value.
Hello Lai
I trigger PAI in the event handler method using the following coding:
* Trigger PAI
CALL METHOD cl_gui_cfw=>set_new_ok_code
EXPORTING
new_code = e_ucomm
* IMPORTING
* rc =
When you are at PAI you can do all kinds of refreshing your ALV list before displaying it again. For an example see thread
Blanking values on ALV Grid Row Duplicate
Regards
Uwe -
How do i refresh the screen on the Desktop?
i have multi screen computers, each monitor has a different wallpaper (by setting a pic file as web content)
so, a simple solution to change the wallpaper would be to change the file so that the wallpapers displayed would be different. however, the results will not show unless i hit the F5 button to refresh the Desktop manually.
is there a way to refresh the desktop programmatically?
thanks.iCloud is not currently available for your desktop. You may be confusing iCloud with the cloud drives available from other developers such as Microsoft and Google.
-
Updating/refreshing the screen?
hi basically i create a simple universe and attach a branchgroup containing a shape but when i remove the branch group the shape still remains on the screen so how do i update the screen to remove it?
Here is an example:
-
Flex addEventListener - how to refresh the screen during called event?
I can't seem to find the answer to what I would have thought was a common problem.
What I want to do this is:
1. Show the Open File Dialog
2. Process the file selected
3. During processing the file, report progress to the User
I have a file defined, and am using the browseForOpen and AddEventListener:
public var fileInput:File = new File();
fileInput.browseForOpen("Open file",[filter]);
fileInput.addEventListener(Event.SELECT, onFileSelect);
// Step 2 - function gets called to process the file
private function onFileSelect(e:Event):void
// Step 3 - do some processing, and at intervals report progress to the screen
My issue is - any changes to the screen within the event listener do not get done until the function is complete.
Any help would be appreciated,
ThanksHi Neal,
I'd suggest breaking up your processing in Step 3 so that the player has a chance to step in and update the screen. Take a look at articles on "green threads" for the basic concept:
http://blog.generalrelativity.org/?s=green
http://code.google.com/p/greenthreads/
Off the top of my head, some ways to break your processing up into chunks:
set up a Timer that fires every n milliseconds, and a listener on the Timer events that processes a chunk of the file on each event
set up an ENTER_FRAME event handler that processes a chunk of the file on each event
chain the processing of your chunks of the file with callLater() calls
Also, you may want to take a look at the ProgressBar component for reporting the progress of your processing.
HTH,
-- Tom Kraikit
Flex SDK engineer -
Reg:Refreshing the Screen
Hi Friends,
In my Application i have five Screens.
Each screen has different functionality.
My requirement is such that after i Execute the function module my Screen should be refreshed with the updated values.
Is this possible in Web-Dynpro(Java) Scenario?
I am using SAP as my R/3 .
For Clarity let me give an example:
I have two Tables.
My functionality is to Copy one row selected in a Table to the Other Table.
I am able to fulfill the functionality,now when i go back to the previous screen and come back to this screen the Table is getting Updated.
My requirement is such that after completing the task itself it should show me the Updated one.
Please help me out.
Thanks and regards,
Chandrashekar.Hi Chandrashekhar,
You can use view.refresh();
But this can be used only in wdDoModifyView method, where the current View is passed as a parameter.
Do not directly use it in the method, as it is called for each user interaction. Using appropriate combination of conditions in modifyView you can do so.
Regards,
Alka. -
Refreshing the screen using a View Object
Hi Experts,
Here is my requirement.
I have a View Object which queries the database and displays the results.
So I want to my VO to be executed when I click on Refresh button.
How can I achieve this?
Is there any example for this?
Thanks in advanceI think the mistake u did is populating the collection/entity of your custom view in some other place rather than on_new_focus method of the context class. So when u first time come to the view, it is calling your custom code and populating your custom view. But when u click new, it is not executing that method and it is not refreshing. on_new_focus is called everytime
you change to new or open in edit mode..that method should be declared as event handler method..
Move your code to the on_new_focus method of the particular context node. see standard codes how that is created and used...
e.g. you can see the component/view BT112H_SC/Details, context node BTPARTNERSET and method CREATE_BTPARTNERSET of CL_BT112H_S_DETAILS_CTXT of how it is used. -
I mean its always been there hell i click it 15-20 times then it switches to the page instead refreshes it. im just tired of it period dealing with it
Try the Firefox SafeMode to see how it works there. <br />
''A troubleshooting mode, which disables most Add-ons.'' <br />
''(If you're not using it, switch to the Default Theme.)''
* You can open the Firefox 4.0+ SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut.
* Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
''Don't select anything right now, just use "Continue in SafeMode."''
''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shft key) to open it again.''
'''''If it is good in the Firefox SafeMode''''', your problem is probably caused by an extension, and you need to figure out which one. <br />
http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes
''When you figure out what is causing that, please let us know. It might help other user's who have that problem.'' -
When searching for numbers on a business website quite often, though not always, the telephone number only appears very briefly. Copying the web address on to Internet Explorer the number stays visible. Only happens on telephone numbers not for any other info eg email address.
Have no idea why this happens as it appears to be random though it must relate to how a website is viewed. Wouldn't where to start to fix this!Your above posted system details show outdated plugin(s) with known security and stability risks that you should update.
*Java Plug-in 1.6.0_13 for Netscape Navigator (DLL Helper)
Update the [[Java]] plugin to the latest version (6 U22).
*http://java.sun.com/javase/downloads/index.jsp (Java Platform: Download JRE)
Update the [[Managing the Flash plugin|Flash]] plugin to the latest version (10.1 r85).
*http://www.adobe.com/software/flash/about/
Maybe you are looking for
-
How to convert DVD to iPod, video files to iPod with 'cucusoft iPod Video Converter + DVD to iPod Converter suite'. Features: * DVD to iPod video converter component can rip DVD to iPod video directly ( do not need convert DVD to AVI or VOB first) *
-
Lets say I click on G-mail on my desktop shortcut. After a couple of seconds I get a box in middle of screen that says Firefox cant find that web site. Then the site will open up after a minute or so ???????????????
-
Safe mode reboot with wireless keyboard?
Is there a way to do this?
-
hi how do I import movie file to itunes? which kind of file is it possible to import? regards matan
-
EJB adapter configured in Jdev is not reflecting in Oracle BPM References
Hi All, I have configured an EJB service adapter in Oracle Jdeveloper in external references swim lane to call it from Oracle BPM workflow/process. But, that is not getting reflected in Oracle BPM process "References(folder)" in Business catalog. I d