Farhad Rahmati

Ranch Hand
+ Follow
since Dec 16, 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 Farhad Rahmati

Hey Bajrang

I think I found the problem, I am showing the data from a VIEW, then getting this data trying to update the database tables related to the view. it is perfectly working and the database gets updated. but the View still showing the same data retrieved previously, I have a session scoped managed bean and the data is retrieved from view with the following method and passing the list to the JSF datatable.


the session bean is stateless and local. the for the session bean is like:


So, now I want to find a way to show the updated data in the page. the main problem here seems to be different between tables and View. tables are updated but the view show same data. but when you clean and build the application, the changes are displayed

I appreciate your help.
Thanks Jaikiran for the reply,

I am using EJB 3.0, Java EE 6, JSF 2, Can you please provide a couple of lines showing how to change it. I don't have any interface at the moment and I have some where that by default it is local. so I have to change it to remote and design the interfaces.

At the moment I have only got stateless session beans, which are simply classes.


Thanks
Heya

I have developed my application without thinking about Remote interfaces and I am almost done. but now I realized that I should have done using remote interfaces. to be honest I have not idea about remote and local stuff as I am totally new. I found some simple books and tutorials to develop this application. Now, I am planning to change all session beans to remote. and I really don't know what to do and how to do.

any suggestions, any idea, any tutorials any books,

I appreciate your help.

Thank you very much.
Hello guys,

I have a silly problem, I have used a prime faces command button inside a <ui: repeat>, when you click on the button, the page get refreshed, I want the button to redirect to another page.

I appreciate if anyone can help me.

Thanks
7 years ago
JSF
Hello guys

I am new in JEE 6 and servlets. I have been trying to learn how to get an instance of a user and show his username roles. I know how to check if a user is in a role. but I couldn't get how to show the username. or at least an instance of itself.

Thank you

7 years ago
Woowwww Tim,

Thank you very much for this clear information, I have to mention that I am not an experienced programmer, and this is how I learn.

yea as you said, when I removed ../, and tried with absolute URLs, it is perfectly working.

Thank you very much
7 years ago
JSF
Hey guys,

I am need faces config xml for navigation which I need to navigate from different sub directories to a login page based on logout case. I could not find it in netbeans, so I had to create it, however it is not working. I think it may need to be registered or something, I don't what should do.

thanks
I appreciate your help
Hello everyone,

I have problem to link pages. I used <h:link> which is fine and working when all pages in the same directory. but when I try to link the pages that are located in sub directories. It is now working. here is some code, if anyone can help me.
this code is perfectly working


but the following code does not works


I am try to link a page from a directory called staff to main page in another directory called admin

I appreciate your help.



7 years ago
JSF

I have been searching for ages to find a good tutorial to learn include some role based authentication on my project, However, I found some nice one but they seem to be beyond my understandings as I am totally new with JEE 6, Glassfish and JSF technologies.


Thank you
Hello everyone,

I have this little problem, when trying to update or create new records. everything is perfectly working and the database gets updated, however, the changes are not displayed on JSF pages until I clean and build and rerun the application.

I would appreciate if anyone can help me

Thanks
Yea, the data in the database gets updated, after clean and build, I can see the newly created or update in the browser.

Can you tell me, how to update the JSF page to retrieve the updated data from database.

Thanks
I know how to used find All

but, if I use find by name, how to do it.

thanks

Thank you very very very much,

Yea, exactly, it was returning the null value, I shouldn't have placed that method in supplier session. I made another session, and placed the getSupplier method there, It is perfectly working now.

One thing else,

I have methods for update, create and delete, one thing I noticed that these method updates the database but not showing it. when I clean and build and re run the application, the changes can be seen.
I have session managed beans behind JSF and Stateless session beans in business layer. ANY IDEAS ?

and also, when I update the database, the form is not reset and I couldn't find any solutions for that, I guess there is something to do with the managed beans which I am not sure about. particularly, how to reset the form after updating the database.

Millions of thanks for your help. I appreciate it.