Joe Tal

Greenhorn
+ Follow
since Mar 06, 2009
Merit badge: grant badges
For More
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 Joe Tal

I downloaded the source from this book: http://java.sun.com/developer/Books/gui/swing2/
for the variable row height JTable found at the end of Chapter 18. I modified it to handle 351 rows of varying size data. It is appended at the end of this message as a single file named ExpenseReport.java. I also added a refresh button whose actionPerformed() refreshes the JTable by a fireTableChanged. This button is the third button over

Straightforward stuff, right? Well, compile this file and run it. Scroll to (say) 75% with the scrollbar. Click the refresh button. The scrollbar jumps to the top and the user loses his place. Is there anyway to fix this example, so that I can apply it to my problem? The solution has eluded all of us.

Thanks for any help.
14 years ago
I am seeing something, maybe you can explain this. I think it has
something to do with "external" context..

When I enter my JSF web app, the browser address bar says
"http://myserver.com/jsfapp/index.jsf" for example. I click around in
it, and the address bar doesn't change, even though I am on a
different page, say http://myserver.com/jsfapp/newpage.jsp. (like in
servlet forwarding)

When I am at this newpage.jsp, it has a header tag, and inside the
header tag java class I do this:


then s is "http://myserver.com/jsfapp/index.jsf"

If I do this:



then s is "http://myserver.com/jsfapp/newpage.jsp"

but I want s to be "http://myserver.com/jsfapp/newpage.jsf"

How do I do this?

THANKS

> >> I am inside a JSP tag java file and I want to know the URL of the
> >> request, so I use request.getRequestURL(). But it returns
> >> http://myserver.com/jspapp/myfile.jsp instead of
> >> http://myserver.com/jspapp/myfile.faces or http://myserver.com/myfile.jsf.
> >> In other words, I want the request entered FOR THAT PAGE, not the one
> >> entered by the user in the address bar a few clicks back.
15 years ago
JSF