Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2006

Tip: Looking for answers? Try searching our database.

How to use JSF to dynamically/programatically create web pages?

Thread view: 
Jan van Mansum - 07 Nov 2006 13:34 GMT
Hello group,

I am new to JSF and I am wondering if it is the technology that I
should use. Here is what I am trying to do.

I need to generate web pages completely dynamically. I cannot use any
JSP or templates or things like that. I need to be able to just create
a object model on the server side (say, in a servlet), build it up,
react to its events, etc, and then have the framework encode it to HTML
and JavaScript. I also need to be able to use AJAX. The servlet will be
talking to a remote server via a proprietary protocol. The remote
server sends descriptions of the pages to display (type of object,
bounds, text colour, background colour, etc). The servlet should
convert those descriptions to HTML and send events that come from the
browser back to the server.

Does it make any sense to use JSF for this? Can somebody give me some
pointers into the API? How would I go about implementing a servlet like
this?

Thanks in advance for any help.

Best regards,

Jan van Mansum.
hiwa - 08 Nov 2006 00:52 GMT
> Hello group,
>
[quoted text clipped - 23 lines]
> have the framework encode it to HTML
> and JavaScript. I also need to be able to use AJAX
Yes, JSF and Ajax4jsf library could do that.

> The servlet should
> convert those descriptions to HTML
> and send events that come from the
> browser back to the server.
The process scenario might be:
1)JSF interacts with backing beans, a.k.a. managed beans running on the
server==JSF aware Java Web server like Tomcat.
2)Those backing beans interact with the remore proprietary server
including JSF event handling.

Read books on JSF development from major publishers.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.