Aioria sun

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

Recent posts by Aioria sun

Hi, guys
i am working on a project using facelets. I got a problem on displaying my pages correctly. On my root directory, i got a template.xhtml file which is a facelet template. i divided the template into 3 layouts which are header, content and footer. All other pages should be displayed in the content layout. But, only the pages under root directory can refer to the template and display in the content layout. The other pages which are not under root directory just display without the template. ( i got some pages under a directory call "post" ).

i codes the template.xhtml page like this:


post.xhtml which under directory "post", i wrote like this:


any ideas? any help is appreciated~~~
15 years ago
JSF
Hi guys,
Just confused the initialization of the managed bean defined in the face-config.xml file. When does the managed-bean actually initialize? is it based on what scope you define for the bean? Like, request-scoped beans only initialize when they are needed in request? session-scoped beans are initialize when a session is created?( and how a session is created? how to know which session they belongs to?) and application-scoped beans are built when the server start? and Can someone tell me about the life-cycle for these beans? thanks~~
15 years ago
JSF
Hi, all
I am currently working on a project which i thinking of using JSF and Hibernate. JSF for display layer, and Hibernate is just for the persistent layer. Then i tried to find out how to put them work together. However, i found that lots of examples on the Internet is about JSF + Hibernate + Spring. It seems that JSF can not just work with Hibernate. Spring is needed. I know nothing about Spring, so what is Spring? what is this framework do? Why people like to put it to work with JSF and Hibernate? any helps is appreciate!!! thanks~~
15 years ago
JSF
Hi, s begri
Since you using <h:selectitems /> tag for the options in radio button, the "dataMap" from your bakcing bean could be a single SelectItem instance or collection of SelectItem instance or an array of SelectItem instance or map whose entries represent SelectItem labels and values. I guess you only want to show the radio button without the label, so you can construct your "dataMap" like this:


the above codes give every option in radio a value, starting from 1.

then you can set up several boolean properties for your textfiled component, doing like


for the your getVal method, add the following codes:



by the way, the method you wrote setChieldInternationalTextField in your bean, i never seen it before, and i can't find it anywhere in JSF package. Could you tell me where it comes from.

Hope this help cheers!!
15 years ago
JSF