G
gbattine
Hi guys,
i've 2 question about jsf ,i hope you help me.
1) I want following MVC pattern,but i've not understood a thing..
if i have a class User with name,lastname,city,profession etc....and
methods like addUser,editUser,deleteUser in the same class that
performs operations like insert into db,delete etc..(so they realize
connection to database also) how can i realize it?
I need one only class User,or i have to change it into 2 classes?
Please explain me how acting...
2) i've a jsf page in which i've 10 inputText fields and i want to
create a css.
I create a class inputText with my attributes,later i've to link this
class with styleClass attribute for each inputText on the page?
Or can i define it once in a page?
Please reply me,thanks
i've 2 question about jsf ,i hope you help me.
1) I want following MVC pattern,but i've not understood a thing..
if i have a class User with name,lastname,city,profession etc....and
methods like addUser,editUser,deleteUser in the same class that
performs operations like insert into db,delete etc..(so they realize
connection to database also) how can i realize it?
I need one only class User,or i have to change it into 2 classes?
Please explain me how acting...
2) i've a jsf page in which i've 10 inputText fields and i want to
create a css.
I create a class inputText with my attributes,later i've to link this
class with styleClass attribute for each inputText on the page?
Or can i define it once in a page?
Please reply me,thanks