Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!

satya mamillapalli

Ranch Hand
+ Follow
since Jun 22, 2005
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by satya mamillapalli

I am using JSF 1.2 ICEFACES 1.8 for a web app..

I have a created a backing bean with request scope..

When I use Action method in the bean, the bean object dies and creates again from scratch..I have the screen input parms available in the action method only..

WHen I display the JSF lifecycle, It starts the PHASE RESTORE_VIEW again. Please advise if this is normal..

Also How do I handle session timeout to force the user to log in again..

START PHASE RESTORE_VIEW 1
END PHASE RESTORE_VIEW 1
START PHASE APPLY_REQUEST_VALUES 2
END PHASE APPLY_REQUEST_VALUES 2
START PHASE PROCESS_VALIDATIONS 3
END PHASE PROCESS_VALIDATIONS 3
START PHASE UPDATE_MODEL_VALUES 4
END PHASE UPDATE_MODEL_VALUES 4
START PHASE INVOKE_APPLICATION 5
END PHASE INVOKE_APPLICATION 5
START PHASE RESTORE_VIEW 1
END PHASE RESTORE_VIEW 1

START PHASE RENDER_RESPONSE 6
END PHASE RENDER_RESPONSE 6


Thanks
Satya
9 years ago
JSF

Bear Bibeault wrote:I repest -- do not do the redirect on the server.

Use Javascript to send the page to the next location.



Bear

I have the follwoing issues with it if I do the javascript forward - window.location.href = next.jsp..

1. The URL is changing

2. Request values are not retained..

Is there a way I can do it like redirect on server..

Thanks
satya

Bear Bibeault wrote:Remember that the redirect need to be done on the client side when using Ajax, not on the server.



Bear

I was not able to add the redirect in the callback method of my ajax call. All I have here is a javascript method.

response.sendRedirect(request.getContextPath() + "/next.jsp");
return;

Please advise

Thanks
Satya

Bear Bibeault wrote:

satya mamillapalli wrote:... but I can not forward it to next JSP.


Why would you want to forward in this case anyways? A redirect is much more appropriate (See PRG Pattern). And it's easy to do a redirect once the Ajax request is complete.



Bear

Thanks for your response.. I will try redirect and see if it works for me.

Thanks
Satya

Bear Bibeault wrote:Sorry, but you have not done a good and clear job of expressing what you are trying to accomplish.



Bear

May I ask you what you did not understand from my question..

Here is my requirement

JSP X (submit) ----- thru Servlet---> JSP Y

but the servlet takes time (lot of Database operations) to make request ready for JSP Y. I would like to display animated loading image on JSP X while the request is being processed..

If I use Ajax for the submit , the animated loading image works fine but I can not forward it to next JSP..

If I use form submit , the animated loading does not show animated,,

I would like to know how to show animated loading image on regular form submit..


Pleas let me know if you still not able to understand my requirement

Thanks
Satya
I was trying to use AJAX to call the servlet and forward it to a new JSP. I was doing this to create the loading image display animated but the page is not forwarded.

Can someone advise how to get the loading image animated when it goes from one JSP to the other JSP..

My problem is when I try to display loading image before the submit(without ajax) , It does not animate..After submission the image shows but does not animate..

But if I call thru Ajax, the loading image animate but I am not able to forward it to next JSP..

I know you are not supposed to use Ajax to move from the current JSP. BUT I woudl like to know how to get the loading image animated as it gets the data for the next JSP.
I would like to show animated display while request is being processed using AJAX.

JSP X (submit) ---> JSP Y

but the servlet takes time (lot od DB operations) to make request ready for JSP Y. I would like to display animated loading image on JSP X while the request is being processed


Please advise

Thanks
Satya
Finally it worked..

width 100% still works.. need not be fixed


Thnaks
Satya

Please advise on how to get a horizontal scrollbar for a table with width - 100%. When I use pixels, It is coming fine but when I change it to % , browser scrollbar is coming instead of the table. and the horizintal scroll bar is expanding to the full right

This is needed to make it look fine for all resolutions..

Please advise

Thanks
Satya

Eric Pascarello wrote:add style="zoom:1"
to the div and the td that holds the div.

Eric



Eric

Tried the same and still same effect.. Please see the code below.. Please advise

I am testing this in IE8.

Thanks
Satya




I have another example code. It is also same..

Eric Pascarello wrote:width of 100% normally does not produce scrollbars. You need a fixed width.

Eric



I was wondering why the Height 100% works fine whereas width 100% does not work..

If I give width in Pixels , the scrollbars are coming fine.. BUT I have an issue because I can only make it look for one specific resolution... I am trying to get the both horizontal and scrollbar inside the table for all resolutions..

Can someone please advise on how to get both scrollbars inside a table taht works for all resolutions..


Thnaks
Satya

Eric Pascarello wrote:your css rules are too generic

Eric



I was just giving an example.. When I remove the outer table , The scrollbars are coming up fine hoirizontally and vertically

But If I keep the outer table, Horizontal scroll is not coming..

Thnaks
Satya
I have the following code for scrollbars (horizontal and vertical) inside a table not working.. If I remove the outer table the scroll table is fitting in side the window.. Please advise how to make this work with table inside a scroll table.

Thanks
Satya

I would like to know how to keep the JSP page look and feel same for two different resolutions..

JSP page has horizontal and vertical scroll bars..

It looks fine on 1024X768 but the screen is not fully occupied on 1280 X 800

How to code on JSP to keep the same window size on both resolutions?

please advise

Thanks
Satya

JigaR Parekh wrote:There are quite good number of changes in exam Part 1 like
1) UML, Protocols, Internationalization are removed
2) EJB upgraded
3) Core JEE Patterns included
4) View techonlogies updated with JSF
5) objective for Webservice refined and SOA included
....

I am planning to purchase the scea study guide - Sun Certified Enterprise Architecture for J2EE Technology Study Guide .

Can you please give me the differences between the old version and 2nd version. Do I need to have both versions for the exam? OR Second version is suffice for the exam?


Also I found a book named - J2EE 1.4: The Big Picture . Is it still valid for the current exam or outdated?


Please advise

Thanks
Subba