Help coderanch get a
new server
by contributing to the fundraiser

Emmanuel Borges

Greenhorn
+ Follow
since Mar 25, 2011
Emmanuel likes ...
Netbeans IDE MySQL Database Java
Merit badge: grant badges
For More
Brazil
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 Emmanuel Borges

I think JSF 'View Scope' can provide de 'Request' feel you are looking for. But it's only available in JSF 2.0.

The Conversation Scope provided by CDI Beans is indeed a valid option in your case and will most likely solve your problem. But it's a little more complex than using ViewScopes.
13 years ago
JSF
Have you tried using faces-redirect=true in your links?

Maybe it will solve your problem.
13 years ago
JSF
I'm not sure, but I think you can't.

If your bean is Session Scoped, you may want to alter the bean value the moment the variable is created in the session. That way, the bean will already hold the value you want when you make the request.
13 years ago
JSF
You have to inject the UserInfoBean into UserBean using the @ManagedProperty Annotation.



Now you can use the UserInfoBean, 'userInf', anywhere inside UserBean.
13 years ago
JSF
Have you tried to change the pattern to *.jsp ? This way, all your JSP's will be interpreted as JSF files and processed by Faces Servlet. But I don't know if that is advisable.

In my application, I use xhtml files and the url pattern is *.xhtml
13 years ago
JSF
Is your bean session scoped?

If so, you must import the 'javax.enterprise.context' package for the @SessionScope annotation and not the 'javax.faces.bean' package as you would do if you were using a Managed Bean.

Well, i'm a rookie myself, so i'm not sure if this is the answer to your problem.
13 years ago
JSF
I think you should pay more attention to some concepts of Object Oriented Programming.

For example, the game Pong has one ball and two paddles, so you could create a Ball class and a Paddle class. This way, all the logic concerning these two entities would be encapsulated within their classes.

You could also create a manager class that maintains the game main loop and a class responsible for drawing entities on screen (Separation of Concerns). This way, your code would be more readable and maintainable.

Of course, you will have to think a bit to figure out how to organize all the information, but it's worth it.
13 years ago
Hi,

I don't know JavaFX at all, but would like to ask the following:

I'm developing a Web-Based Decision Support System using JSPs, Hibernate, MySQL and AJAX.

I hear a lot about JavaFX being used to create "Rich Internet Applications", but what does that mean, anyway?

How can JavaFX help me improve my system? In wich cases must I resort to this technology?
13 years ago
Yes, i think you should be able to accomplish that using AJAX.

When you click the submit button, it will call a javascript function. This function will be responsible for sending your form-data to a JSP and getting the response.

In the JSP, you should be able to call a POJO and make it create an XML with the data received, since it's on the server side.

Do a little search on Google about AJAX and you will soon find how to do it. I recommend W3Schools.
13 years ago
JSP
Hi...

I'm learning to program some games using Slick2D (an engine based on LWJGL) and heard it's easy to make my games work on Android.

If I want to make 2D games for the Android, do you guys think Slick would be a great start?
13 years ago
Hello,

I'm developing a 'Decision Support System' using JSF, AJAX, Hibernate and MySQL.

In the beginning of the project, I was having some problems with Hibernate because of the 'LazyInitializationExceptions'.

I figured out how to solve the problems with the sessions, but I don't think I reached the best solution for them.

I would like to know if Spring could help me with these kind of problems...