Help coderanch get a
new server
by contributing to the fundraiser

fatih soylemez

Greenhorn
+ Follow
since May 12, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by fatih soylemez

hello,
can make use of <ui:repeat> to iterate data of a list.
14 years ago
JSF
Hello,
I have a few questions that i hope you can answer.
I am developing a project with Seam JPA and Tomcat(i dont use ejb3).It is not a simple application that i will only use CRUD operations on database.
And i like to use DAO pattern which makes code more readable,reusable etc.

My first questions are,

is it not good/useless to use service and dao layer with Seam? (Service,ServiceImpl,DAO,HibernateDAO)

if i use DAOs , do i have to use EntityManager inside them?What happens if i use EntityManager what happens if i dont?

how can i inject Services/DAOs into the session? i was using Service,Repository annotations to declare them and Autowired
annotations to get them from the session while using Spring.is there any similar way?


For example i have the following code,

but when i call MenuCategoryDAO from an Action class with @In annotation,it comes null.
Do i have to make any other declarations in the components.xml or somewhere else?


Can someone give me example of implementing DAOs without using EntityManager and using them
into Action classes.


too late..i already got a headache:)
i have just figured that commandlink does work if
i get it out of the datagrid!!seems like this problem is
specific to the datagrid.
15 years ago
JSF
i guess that is a common problem..Can anyone recommend a good idea other than declaring the
bean in the session scope?
15 years ago
JSF
..I wish i could..As a noob,i used an iterator to save the data into a list,and sent this list
to a datagrid.



Now my problem is,i want to navigate to the movie page whose image is clicked.
But the choosen movie whose image is clicked,is an element of the list.
I can neither directly get the data of that object(Movie),nor take it from the list(i dont know its index) on the next page.
I need to send the clicked movie's id into a movieBean class method and retrieve the info of
that movie to use on the next page.Can anyone suggest me an idea ?

Thank you..



So ,i assume that using an iterator to migrate the data into a List
would be a more costly solution.I know this will sound silly but
can you give me a short explanation about how to utilize from
that ListFromCollection class since it has no method which
gets a Set as an argument and returns a List.

Thank you
Hi,
I am using the classes that Hibernate-tools created for me.(i reverse engineered my database)
It seems like Hibernate stores the entries that are mapped to another one as a foreign key
in a Set(HashSet).And i am guessing that it would be better to have them stored in a List
or ArrayList since i will display those data in a table using JSF,and with Lists reaching the data
easier(using get(index)).(i dont know if i can send a Set into a datatable or not).

According to the situation,what do you advice me?Should i change Set variables to List's?
Would that make a problem?

Thank you for your answers..
That worked,thank you for the quick answer!
15 years ago
JSF
Hi,as a person who is new to jsf world,i am dealing with an issue that is probably very simple.

There appears a warning beside my commandButton creation ,telling

"Tag h:commandButton is missing required parent tag "form" (http://java.sun.com/jsf/html)".



And i guess thats why my button doesnt work.

Here is the code :


Thank you for your answers!
15 years ago
JSF