Java Server Faces best Practices

Hello,
I am starting to like JSF. But I want to know the following.
Where is the contoller in a JSF application, is it the Managed Bean???? or a Backing Bean?
Should I put my Business Delegate on a Managed Bean? or in a Backing Bean? What is the difference?
Can anyone tell?.
I would like to know JSF Best Practices? Blueprints?.
Thanks.
Saludos,
<Rory/>

Hi Senthruan,
The documentation referenced by the following links is based on an older version of JavaServer Faces technology.
Backing Beans:
http://java.sun.com/webservices/docs/1.3/tutorial/doc/J
FUsing3.html
UI Components :
http://java.sun.com/webservices/docs/1.3/tutorial/doc/J
FUsing3.html (just as a visual example).You should instead use the J2EE tutorial (http://java.sun.com/j2ee/1.4/docs/tutorial/doc/index.html), which is based on version 1.1 of JavaServer Faces technology. The JavaSErver Faces material starts with chapter 17. The topics have moved around a bit, but the tutorial has a nice search engine, so you shouldn't have trouble finding the information you need.
Jennifer

Similar Messages

  • Windows java server node best practice?

    I'm coming from the windows/.NET world where I would usually expect a service that can be managed from the services applet or via the usual command line remote admin utils and doesn't need to interact with the console. Starting a java instance in a command window seems a bit odd to me.
    I imagine it would need to use some mechanism to run at startup and not require a logged in account or manual intervention. What's the best way to do this?

    You can also check Apache Daemon Procrun (http://commons.apache.org/daemon/procrun.html). I haven't tried it, but it should be able to do the job.
    - Aleks

  • Fundamental flaws in Java Server Faces

    Fundamental flaws in Java Server Faces (JSF)
    After working with Struts framework for many years I wanted to try something new and decided to investigate JSF. I was very impressed with my initial evaluation and recently used it in one of my project. Middle of the project I released many glaring issue with the framework and had to break my head to complete the project on time.
    One of the major reasons why I choose JSF was that it had a clean way of mapping a form to a bean(s) and a nice way to perform form actions and navigation between forms.
    Although the framework is very promising in many ways, I think the framework is not yet complete and the developer has to fix lot of holes to make the application to work properly.
    Following are the glaring functionality that is missing or confusing or messed up in JSF.
    1)     JSF does not provide a way to disable PROCESS_VALIDATION phase. For some reason if one wants to skip one phase another, JSF has made it near to impossible to skip.
    2)     The framework does not provide an easy way to invoke an action method directly by calling a URL (Similar to Struts action method invocation). This is very essential because many/most of the time one needs to check the authorizations of the user to view a page.
    3)     JSF does not support form GET method. They are giving all sorts of reasons not to do this. It�s practically very difficult to develop an application with just POST operations.
    4)     There should be an easy way for the developer to tell JSF not to copy the request to the backing bean or at least skip the event phase that copies the request to the backing bean.
    5)     JSF does many operations in each phases. JSF should not overload multiple operations in one phase. Custom validation should be separated from native framework validation. Calling a command button with immediate set to true should be a separate phase event. This should not be mixed with other operation.
    6)     It is very difficult or near to impossible to programmatically unit test JSF application. I don�t know what they thought when they developed this framework. Dude�s we are in the TDD time period, not 4GL.
    7)     In my opinion one or more backing beans can be linked to a page and a page can be made up of one or more jsp�s. The fundamental flaw with the JSF is that JSF tries to dynamically map a jsp collection to beans. I don�t know who decided this model. They should have implemented such that the user in the faces xml or dynamically say what beans maps to a jsp page. Then they can copy the request objects to the bean and then do other stuff. This way the framework will give lot of control to the developer. In my opinion, if they have to do this then they will have to implement the �struts� action controller framework and then extend the JSF framework on top of it.
    8)     The framework has some piece of implementation very easy like mapping the bean to the form and command actions and the others near to impossible to understand or make it to work.
    I am surprised to see big players like IBM and Oracle backing this product. What I don�t understand is why? What are they betting for?
    Anyway, I will definitely keep an eye on the JSF progress. But for now, let me take care of my bum. It was a bumpy ride working with JSF framework.

    I am not very experience or expert in jsf...
    But i would like share my thought/ answer on this issue.
    1) JSF does not provide a way to disable PROCESS_VALIDATION phase. For some reason if one wants to skip one phase another, JSF has made it near to impossible to skip.
    - YES.....jsf make it impossible to disable validation. But it does make it possible to skip some validation with immediate attribute. Anyway..based on My experienc working on immediate attribute.....it was not so easy/flexible to skip the validation as compared to struts..
    2) The framework does not provide an easy way to invoke an action method directly by calling a URL (Similar to Struts action method invocation). This is very essential because many/most of the time one needs to check the authorizations of the user to view a page.
    -I am not sure about this.......But i personally think jsf does not provide this functionality.
    3) JSF does not support form GET method. They are giving all sorts of reasons not to do this. It�s practically very difficult to develop an application with just POST operations.
    - YES....I personally also feel that this is a BIG disadvantage...
    4) There should be an easy way for the developer to tell JSF not to copy the request to the backing bean or at least skip the event phase that copies the request to the backing bean.
    - YES...agreed.....jsf should make this easier..
    5) JSF does many operations in each phases. JSF should not overload multiple operations in one phase. Custom validation should be separated from native framework validation. Calling a command button with immediate set to true should be a separate phase event. This should not be mixed with other operation.
    - No comment..
    6) It is very difficult or near to impossible to programmatically unit test JSF application. I don�t know what they thought when they developed this framework. Dude�s we are in the TDD time period, not 4GL.
    7) In my opinion one or more backing beans can be linked to a page and a page can be made up of one or more jsp�s. The fundamental flaw with the JSF is that JSF tries to dynamically map a jsp collection to beans. I don�t know who decided this model. They should have implemented such that the user in the faces xml or dynamically say what beans maps to a jsp page. Then they can copy the request objects to the bean and then do other stuff. This way the framework will give lot of control to the developer. In my opinion, if they have to do this then they will have to implement the �struts� action controller framework and then extend the JSF framework on top of it.
    - No really understand what u trying to say...But I dun think this should be a isssue...
    8) The framework has some piece of implementation very easy like mapping the bean to the form and command actions and the others near to impossible to understand or make it to work.
    - What is the "other" mean???

  • Recommended portel type for Java Server Faces in Portal 10G

    Hi all,
    What is the best [or recommended] portlet type to use to interact with Java Server Faces in Oracle Portal 10G. We a planning to use a WSRP portlet type in our current project and would like to know if this is a good/feasible approach, or whether another portlet type would be recommended.
    Thanks in advance!

    Entry-level stuff is linked from http://www.jsftutorials.net/
    Samples with tables... eg. the MyFaces examples which show all myfaces components. http://myfaces.apache.org -> just download the binaries and sources and check out the samples
    hth
    Alexander

  • Pls help   how to check the condition in java server faces.....???

    Hi All
    I have strucked with code pls help....
    How can i check the codition in java server faces.....?
    like in my Application when user provides the in put like some state name in the next page i have to display some url for that state .......if he provide some other state name it will be different url .....pls help me how can i do that,,,,,,???
    thanks in advance..

    There are certainly ways to do that. E.g. using the rendered attribute, using conditional statements in EL, using a specialized getter for that (lazily loaded if necessary), etcetera. But your functional requirement is unclear, so I can't go in detail with that.
    In the future, please try to write normal English sentences. Don't write like SMS talk and save the periods and commas. The more effort you put in your question, the more chance you will be taken for serious and the more effort others will post in their answers.
    Also, in the future, JSF related questions should be posted in the JSF forum.
    Edited by: BalusC on 12-aug-2008 7:47

  • Java server faces submit button

    i'm running a java server faces example in tomcat.In that example i'm having a text field and a submit button, both are visible, but when i run the same example in JBoss app server the submit button is not visible ........whats the problem?
    Thanks in advance.
    Ajay

    Thanks!
    i'm using jwsdp-1.2. Actually there is no need to
    configure anything in jwsdp-1.2. But running example
    out of jwsdp-1.2 may need some configuration that i
    don't know....
    You're correct that some extra steps are needed to run elsewhere than JWSDP 1.2:
    http://java.sun.com/j2ee/javaserverfaces/docs/Deployment_Guide.html
    however, it's very difficult to determine what might be wrong without seeing your JSP source code and associated Java classes, plus any error messages that might be getting written to the log files.
    Craig McClanahan

  • Java Server Faces on BEA

    Hi
    Is it possible to perform Java Server Faces (Sun) on Bea 8.1 Sp4?
    I can't get this started. Do you have any hints/experiences?

    Yes, WLS 8.1 SP4 should support JSF. Unfortunately we do not have an example to get you started. I'll enter a request for such.
    If you encounter issues or have further questions, try our WebApp newsgroup: weblogic.developer.interest.servlet

  • Javascript in java server faces

    Hi All,
    is it possible to use javascript in java server faces. If it is possible, How to get component (textbox, listbox, combo box) values in java script ?

    Yes. Use document.getElementById().

  • License type of SQL Server 2005 Best Practices Analyzer

    Hi everybody.
    I need to install in my organization the software "SQL Server 2005 Best Practices Analyzer" but I need to know if this application it's free licensing. I have seen on several web sites about this tool it's free but not in official microsoft
    web page. So, where can I find the official microsoft information about the type of licensing of "SQL Server 2005 Best Practices Analyzer" ?
    Thanks of your support

    Hello Erland.
    I followed your advice and I have read the terms of use of this software. I stop at point 3 (which I highlighted). Based on this point, I doubt it is about using this application. Furthermore nowhere says that this software is free to use.
    Would appreciate if someone can clarify this to me.
     =============================================================
    MICROSOFT SOFTWARE LICENSE TERMS
    MICROSOFT SQL SERVER 2005 BEST PRACTICES ANALYZER:
    These license terms are an agreement between Microsoft Corporation (or based on where you live, one of its affiliates) and you. 
    Please read them.  They apply to the software named above, which includes the media on which you received it, if any. 
    The terms also apply to any Microsoft
    *  updates,
    *  supplements,
    *  Internet-based services, and
    *  support services
    for this software, unless other terms accompany those items. 
    If so, those terms apply.
    BY USING THE SOFTWARE, YOU ACCEPT THESE TERMS. 
    IF YOU DO NOT ACCEPT THEM, DO NOT USE THE SOFTWARE.
    If you comply with these license terms, you have the rights below.
    1. 
    INSTALLATION AND USE RIGHTS.  You may install and use any number of copies of the software on your devices.
    2. 
    INTERNET-BASED SERVICES.  Microsoft provides Internet-based services with the software. 
    It may change or cancel them at any time.
    3. 
    SCOPE OF LICENSE.  The software is licensed, not sold. This agreement only gives you some rights to use the software. 
    Microsoft reserves all other rights. 
    Unless applicable law gives you more rights despite this limitation, you may use the software only as expressly permitted in this agreement. 
    In doing so, you must comply with any technical limitations in the software that only allow you to use it in certain ways. 
    You may not
    *  work around any technical limitations in the software;
    *  reverse engineer, decompile or disassemble the software, except and only to the extent that applicable law expressly permits, despite this limitation;
    *  make more copies of the software than specified in this agreement or allowed by applicable law, despite this limitation;
    *  publish the software for others to copy;
    *  rent, lease or lend the software;
    *  transfer the software or this agreement to any third party; or
    *  use the software for commercial software hosting services.
    4. 
    BACKUP COPY.  You may make one backup copy of the software. 
    You may use it only to reinstall the software.
    5. 
    DOCUMENTATION.  Any person that has valid access to your computer or internal network may copy and use the documentation for your internal, reference purposes.
    6. 
    EXPORT RESTRICTIONS.  The software is subject to United States export laws and regulations. 
    You must comply with all domestic and international export laws and regulations that apply to the software. 
    These laws include restrictions on destinations, end users and end use. 
    For additional information, see www.microsoft.com/exporting.
    7. 
    SUPPORT SERVICES.  Because this software is "as is," we may not provide support services for it.
    8. 
    ENTIRE AGREEMENT.  This agreement, and the terms for supplements, updates, Internet-based services and support services that you use, are the entire agreement for the software and support services.
    9. 
    APPLICABLE LAW.
    a.  United States.  If you acquired the software in the United States, Washington state law governs the interpretation of this agreement and applies to claims for breach of it, regardless of conflict of laws principles. 
    The laws of the state where you live govern all other claims, including claims under state consumer protection laws, unfair competition laws, and in tort.
    b.  Outside the United States.  If you acquired the software in any other country, the laws of that country apply.
    10. 
    LEGAL EFFECT.  This agreement describes certain legal rights. 
    You may have other rights under the laws of your country. 
    You may also have rights with respect to the party from whom you acquired the software. 
    This agreement does not change your rights under the laws of your country if the laws of your country do not permit it to do so.
    11. 
    DISCLAIMER OF WARRANTY.  THE SOFTWARE IS LICENSED "AS-IS." 
    YOU BEAR THE RISK OF USING IT.  MICROSOFT GIVES NO EXPRESS WARRANTIES, GUARANTEES OR CONDITIONS. 
    YOU MAY HAVE ADDITIONAL CONSUMER RIGHTS UNDER YOUR LOCAL LAWS WHICH THIS AGREEMENT CANNOT CHANGE. 
    TO THE EXTENT PERMITTED UNDER YOUR LOCAL LAWS, MICROSOFT EXCLUDES THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
    12. 
    LIMITATION ON AND EXCLUSION OF REMEDIES AND DAMAGES.  YOU CAN RECOVER FROM MICROSOFT AND ITS SUPPLIERS ONLY DIRECT DAMAGES UP TO U.S. $5.00. 
    YOU CANNOT RECOVER ANY OTHER DAMAGES, INCLUDING CONSEQUENTIAL, LOST PROFITS, SPECIAL, INDIRECT OR INCIDENTAL DAMAGES.
    This limitation applies to
    *  anything related to the software, services, content (including code) on third party Internet sites, or third party programs; and
    *  claims for breach of contract, breach of warranty, guarantee or condition, strict liability, negligence, or other tort to the extent permitted by applicable law.
    It also applies even if Microsoft knew or should have known about the possibility of the damages. 
    The above limitation or exclusion may not apply to you because your country may not allow the exclusion or limitation of incidental, consequential or other damages.
    Please note: As this software is distributed in Quebec, Canada, some of the clauses in this agreement are provided below in French.

  • Support for Java Server FAce in Workshop

    Dear All,
    Does anyone have any idea if and when Workshop will include support for the Java
    Server Faces (JSF) framework?
    Thank you
    Abe

    While I cannot share any specific product plans from any vendor, I would like to point out that all of the vendors of IDEs in the Java web application space are members of the JSR-127 expert group that is defining JavaServer Faces. Indeed, one of the primary design goals for the APIs is to ensure that development tools have sufficient information available to create high quality user interfaces at design time, so we're doing all we can to enable this kind of thing.
    As JavaServer Faces matures, I think you will be very pleased with the quality and quantity of tools support for it.
    Craig McClanahan

  • Adode premiere pro cc + server shared, best practices

    Where to place projects, media caches, preview files ...... ?
    A project can be opened on different stations ( not simultaneously , of course ) during the day ....
    I obtients no information about my interlocutor Adobe.
    Regards, Vince

    thank you very much for the explanation. I have a request: 6 emissions
    first assembly room, 2 technical stations for Backup and indgest and
    finally 2 deruhs stations prelude. each subject is in a directory with the
    name of the subject with the project, the media, provided files. by against
    the caches is also on the server in a directory caches common to all
    machines. there is there a max number of file caches has not exceeded? is
    that each machine must have its own cache directory?
    Le 25 nov. 2014 14:24, "Vinay Dwivedi" <[email protected]> a écrit :
        Adode premiere pro cc + server shared, best practices  created by Vinay
    Dwivedi <https://forums.adobe.com/people/Vinay+Dwivedi> in Premiere Pro
    - View the full discussion
    <https://forums.adobe.com/message/6960713#6960713>

  • Struts/Java Server Faces

    Plese send info : In which cases it is beter to use struts framework and in which cases Java Server Faces .

    They actually compliment each other. You can use Struts with JSF.
    Read the overview on JSF and you will see.
    Sal

  • Java server faces mvc pattern

    Well i dont know any knowledge of java servr faces.Dows java Server faces encapsulate mvc pattern like struts other then html tag library.
    Thanks.

    JSF only addresses the "user interface" framework portion of a web application. You can perhaps think of it as standardizing the "V" in MVC (I don't know if this is quite right, is it so Craig?). We wish that there will be another JSR in the future that standardizes rest of the "C" of the MVC.
    -Mete

  • Difference between Java Server Faces and Apache Struts

    Hi ,
    I'm quite new to Java Server Faces and Apache Struts. I wonder are they two comparable Frameworks for web presentation?
    And can anybody elaborate please, if they differ in what aspects?
    Thanks
    Jaffar Shaikh

    Here are slides from a presentation by Craig McClanahan that compares them (I believe you can search for other articles on this topic): http://www.baychi.org/calendar/files/Struts-And-Faces/Struts-And-Faces.pdf

  • SQL Server 2008 - Best Practices Analyzer

    Is there a version of SQL Server 2008 Best Practices Analyzer available for download?   If not, can I use BPA for SQL Server 2005 to run a DB assessment on a SQL Server 2008 database?  Please let me know what your recommendation is?
    Thanks

    Microsoft® SQL Server® 2008 R2 Best Practices Analyzer has been released for few months.
    More details here
    http://www.microsoft.com/downloads/en/details.aspx?displaylang=en&FamilyID=0fd439d7-4bff-4df7-a52f-9a1be8725591

Maybe you are looking for

  • Printing directly to printer in Reporting Services 2008 problem

    We have recently installed a new SQL 2008 server.  I have an application that prints an SSRS report (2005) directly to the printer.  If I change the reference to point to the new SQL 2008 server and run the application, the report is printed but the

  • NEED HELP WITH MY ACCOUNT!!!​!!!!!!!!!

    Hi, I REEEAAALLLY need help with my account, I only have one account and never made another one but it says I'm not on a administrator account, it says I have an unknown type account, and I can't figure out how to make it an administrative account, w

  • Master-Details-Details

    Salam Alikom i know we can use Master and details in apex but if i have (master - detail - detail ) for 3 tables like Countries table State table Areas table in oracle form it's very easy by wizard , do we have this in apex ? or any way to solve that

  • [Solved] postgresql with systemd

    Hello Guys, I'm having problems starting the postgres with systemd. Following errors: Running systemctl start postgresql k@archK ~ % sudo systemctl start postgresql Job for postgresql.service failed. See 'systemctl status postgresql.service' and 'jou

  • What's going on with my sounds?

    So I turn on my iBook today and when I went to adjust the volume i didn't hear the little bubble sound it makes. so i thought that was wierd. then i went to sound prefs and tried playing those sounds to see what was going on and none of them played e