Grae Cullen

Greenhorn
+ Follow
since Jan 21, 2010
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 Grae Cullen

Hi all,

From a developers standpoint; what are the things we will mostly likely have to changed when targeting tomcat 7.0?

Grae
10 years ago
Thanks,

Also, do the deployment features work on a web project deployed to tomcat or websphere? I guess I mean will it work with a deployed j2ee project?

Grae
Hi all,

Sorry, if this has already been answered.

Does JRebel work with Netbeans and Tomcat?

Grae
Is there any sort of server-side solution?

Grae
11 years ago
JSF
Hi all,

Basically, my problem is that if the user click the one button, and does wait for the page to respond, and then clicks another button, it seems like there is a race condition.

How can I avoid the code for the first button press using the same variables as the code for the second button press?

I suspect that both requests are going to call the the same getters and setters in some random order, because each button click will be in a different phase of the JSF model.


Ok, here is an example, suppose the user clicks a button, the action function changes some variable. That variable is linked with a getter and a setter to an actuall jsf tag. Now suppose the action function is 50% complete. Now the user hits the same button. JSf will call the getters and the setters linked to that same variable, restoring the state or whatever. Basically, that variable is reset back to what it was before the action changed it.

Now the action function for the first click is continuing to run, and it changes that same variable again. Even with out the second action call, it is a race condition.
11 years ago
JSF
Hi,

I guess at first glance it seems like Lucene would return all results from a group of data, even if a particular user was only allowed to view half of the data.

For example, suppose "User A" could view files 1, 5 and 7 and "User B" could view files 1, 2, 3 and 4. If the search term occurs in file 3, will "User A" see that result. Of course, he should not see the result, but since Lucene scans all the files, how does Lucene mark that User A should not see certain files.

Grae
Hi All,

What is the best JSF profiler? Do you have any tips for profiling JSF?

Thanks,
Grae
12 years ago
JSF
Ekrem Dkyc,

That is not exactly what I am looking for. However, that is a nice trick I will keep it in mind. I don't really need to change the structure of the page, just reprocess the bean values. I found the components library I have, does have some AJAX support for dialogs, so I am going to work on that a bit.

Grae
12 years ago
JSF
Thanks Tim,

Someone else on another board also recommended RichFaces. I have heard mixing two component libraries is a major problem.
I think my component library has some AJAX, which will have to be enough.

Thanks,
Grae
12 years ago
JSF
Hi all,


Suppose, I only needed repopulate a small section of a page. Is there a way to do this? What I basically need is for the user to click a button, and only for example two or three display values to change. However, I don't want to resubmit the entire page, because then I would have to resubmit all the request parameters, etc.

Grae

12 years ago
JSF

I'm not entirely clear what your problem is here. You can do the basic dialog (div) layout statically, then invoke a setup method in the logic that pops up the dialog to reduce the need for redundant client-side processing. That's a strategy that works equally well in both JSPs and in JSF Views.



I am not following what you mean. When you say "setup method" do you mean JavaScript or server side. Currently, when the dialog popups open, a JavaScript function is called. However, the dialog is just hidden. The values have already been populated from the backing beans long ago.

Suppose I writing an email application for example. There are 20 emails on the page. The user selects an email, and clicks the view headers button. How can the dialog give information about that email? I suppose I could have twenty copies of dialog sitting there waiting to be opened, but that sounds tricky.

I really need to submit something to the server, and have the server produce the dialog right then. I don't mean the basic dialog can't still sit there in a hidden div. However, the information to populate that dialog has to be fresh.

Thanks,
Grae

PS: The email program is just an example.
12 years ago
JSF
Hi all,

I am trying to use several dialogs on a single page. I would like to do a bit of processing on the server, before displaying these dialogs. The problem is I am working with a components library that used JavaScript to open the dialog. The dialogs are the hidden div, iframe stuff.

This seems like I have to do the processing for all the dialogs on that page every time the page opens. If I have five different dialogs, it seems like wasted processing.

However, if I user pop-ups the new window can do JSP processing, and the processing for each dialog does not affect some other dialog's processing.

That being said, I kind of would like to use these floating div type dialogs. People don't like pop-ups and all. Plus the dialog component actually looks pretty good.

Grae
12 years ago
JSF
Tim Holloway,

Thanks, for the responce. I don't think were totally on the same page. My knowledge of AJAX is kind of limited. I know about a POST or GET request, thats about it. I could make a post request to a sevlet to change a bean value. However, I thought people must want to change one bean value now and then, and JSF might have a built in servlet, or something like that.

I guess I don't want to submit the whole form, but have JavaScript/AJAX update a variable in the bean value.

Thanks,
Grae
12 years ago
JSF
Hi all,

How do I update a bean value from an AJAX call? I suppose I could write servlet to do it. However, this seems like a common problem, so I was wondering if there was some built-in solution.

Thanks,
Grae
12 years ago
JSF
Hi all,

Suppose I wanted to trigger some process from a website. This process might take 10 minutes. I want to avoid having the screen hang for five or ten minutes. Also, I want the user to be able to keep navigating the rest of the site. I would, however, like the user to be able to check the progress at a certain screen. My first thought would be to just have an actionListener or action start a separate thread which does the processing. However, I was told this would be an unmanaged thread.

I guess my main two questions are, "What are the dangers of an unmanaged thread?" and "What is the right way to do this?"

Thank you,
Grae
12 years ago
JSF