Is JSF evolving to a web framework?

hi;
initially i thought JSF would be a full web framework (like struts, WAF etc..).
is there any intention of doing this?
what is the reason of not doing this and having a standard J2EE web framework?
thanks

I just read the JSR for JSF and noticed that teh
Apache Software Foundation was objected to the passing
the JSR. That objection is out of date and has probably been repealed.
Am I correct in assuming that unless the JSR
gets a majority, it will not pass. Even if it does,
without support from a big player like IBM, JSF will
be more like a lame duck.IBM is fully behind JSF.. they're already building a JSF editor for WebSphere Studio.
This JSR conflicts with the Apache open source project
Struts. Considering Sun's current position that JSRs
may not be independently implemented under an open
source license, we see little value in recreating a
technology in a closed environment that is already
available in an open environment.that has changed under the new JSR rules.
To the extent that this JSR extends beyond Struts
today, we would encourage the Sun developers proposing
this JSR to join the Sun developers already leading
Struts to create an open solution at Apache, something
which when finished would be assured of being able to
be implemented as open source.The JSF JSR lead, Craig McClanahan is the creator of Struts. He's also contributing code to Struts-Faces ( http://cvs.apache.org/builds/jakarta-struts/nightly/struts-faces/ ) that integrates JSF and Struts.
The only concern I have with that is that Open Source
is not the greatest model for commerical companies.
There is no money in it. Will it help keep things
standardized...or lead ot more fragmentation. The way
it is right now, u see 5 diff open source frameworks-
all to do the same thing. JSF has a lot of commercial potential, since it standardizes the third party component playing field.. Write your components to the JSF spec and conceivably (*here's hoping*) developers will just drag & drop your components into their webapps.
Ivar

Similar Messages

  • URGENT SUGGESTIONS- j2ee WEB FRAMEWORK

    Hi All,
    As a part of our part time project me and my friends are exploring on development of a j2ee web framework. For this we are exploring the behaviours of some famous frameworks such as STRUTS.
    We are looking at the normal Controller model, The automatic httprequest to Java bean bindings and other such features.
    We would like to hear more suggestions as to what
    1. What all should be the salient features of a j2ee Web Framework.
    2. Any feature that isnt present in the existing web frameworks but wud be a real value add if present.
    Any other general suggestion about design of such frameworks etc are also welcome.
    It would be great if all you guys give us your genuis feedbacks..
    Thanks
    Karthik

    Sorry, I used up all my genuis feedback advice for the week. However, here are some ideas.
    Struts framework is/was very popular but is rapidly being replaced by the Spring framework.
    I dont believe you can just read some on-line articles on these frameworks because there is a lot of information to learn.
    I suggest you buy a book on either framework and go through it cover to cover. Similiarly I suggest you read a JSP book first (you can look through them at the bookstore, then buy them on amazon.com cheaper).
    I few quick suggestions about building your own framework before messing with a framework:
    Ideally, you should have a separation of concerns between the layers (Model View Controller):
    View = this is the JSP pages. Those pages should read all the information necessary to populate itself from objects placed in request scope. They should not contain business logic (such as instansiating java objects) or database logic (such as sql statements to fetch data from the database).
    Control= this usually is a single servlet responsible for taking in all url browser requests (say, a JSP button update click), verifying the user is logged in, then calling up business logic to obtain data to populate the JSP page. It puts the data provided by the business logic in request scope for the JSP page to read, then dispatches to the correct JSP page. The control does not genereate html tags to put on the JSP page. The user should never directly call up a JSP page. All requests should go through the servlet to ensure you have a single class that verifies the user's login (security).
    Model: The model consists of business logic and database logic. Often, these are separated into thier own layers as follows:
    1) business logic: The control calls the business logic and passes all the data from the JSP page to it. It then determines what data to pass back to the control so it can pass it back to the JSP page. The business logic does not deal with the request scope (request is a presentation object), it does not call sql statements to talk to the database. Instead it calls database logic to actually get the data.
    2) database logic: fetches data from the database for the business logic to use. It has sql. It has no business logic or presentation logic.
    Lastly, I normally create a form object to hold all the data I read from the JSP page. Example: You have a JSP page called MyJspPage..jsp:
    class MyJspPageForm{
    public MyJspPageForm(HttpRequest request){
    //get all data from the request scope that the JSP page put there
    //have a bunch of get/set functions for the business logic to access the data.
    I suggest creating a project based on the above ideas before you mess with a framework such as struts or spring. a lot of work has gone into creating those frameworks and they abstract away a lot of the low level code that I discussed above.

  • Applets and web frameworks.

    Hello!
    What are the differences between using JApplets or a web framework like Woodstock or ICE Faces?
    Which is more safe?
    Thank you!

    Please do not crosspost the same question over all places without any notification. You should know it better after walking around at forums for years. Or are you such a stereotypical helpdesker who only posts questions for own convenience and never reads other topics, let alone helps others?
    Please stick to one topic, I already answered your other topic: [http://forums.sun.com/thread.jspa?threadID=5381762].

  • Aspx to jsp xslt "web framework"

    I don't know if anyone will be willing to help me with this...
    My website is
    http://www.dlgreene.com/
    All the xhtml (and some xml) is generated with xslt. I fire the xslt with a real simple c# class that prepares a few simple parameters for the xslt transformation and gets any parameter that were passed to the page and dutifully passes them along to the xslt transformation.
    ALL OF THE CODE IS VIEWABLE!
    http://www.dlgreene.com/code_info.aspx
    and left top and bottom of every page has a link to view code. The "P" buttons that you see in flash, Puretools, and spi-v menus show the xml for the vr viewers.
    has even more information and the page class code is viewable. I am NOT asking for help on the view code part. I realize that part requires futzing around to format "text" files and xml files. I just need help with the base... set up params to pass to xslt and transform the xslt USING the schema defined in the xml file.
    I have found some stuff on xslt but most of the help is deals with partial data like "make a table from xslt" the problem is I am writing the entire page from xslt. I did this because the theory is my "web framework" should work on any server with very little work. I still believe that's true however, knowledge of the server is making it tricky to make the "translation".
    I have defined xsd for EVERYTHING I can. The xml that xslt generates for the vr viewers doesn't have xsd because the vr viewers writers don't really know what schema is. One of the requirements is that the transform process MUST be a tranform that "reads" the xml data file and uses the schema defined in the xml. I define a schema to be used in ALL xml data documents the I use. Notice that I even defined a "dummy" schema for transformations that only need a xml "dummy" for the transformation.
    I don't need help with very much the code to do this is unlickely to exceed 25 lines. In fact if it exceeds 25-50 lines Java is pretty useless as a server. Again I'm NOT talking about the view code side, that I can struggle with on my own and I should be able to add to whatever base class is. I don't have any money and I am NOT making any money on this but I am sure that this is about a 30min operation for someone that knows xslt operations in java and I think probably should be one of the "base" tutorials in the java doc.

    Sorry, it wasn't my intent to offend anyone-
    It is not a "normal" request. I could put all the aspx code up here but I have a feeling that would confuse the issue. There is no example similar to what I am doing that I can find. It is a very real possibility that I'm missing something bone head simple, in fact I assume that is the case.
    My current "web framework" is an aspx fired xslt site. I just want to set it up as a Java fired xslt site. I just use the server as a "firing mechanizm", nothing else. The pages are all written in xslt. This is true if the page is an xhtml page to be read by an end user or if the "page" is xml to be consumed by "Google Maps" or a vr viewer.
    I can't seem to find an example that just fires xslt and leaves it to xslt to return whatever. I realize there is some minimal stuff like the page ContentType that have to be set just like an aspx page, but if you note on my pages I do have a aspx page that consists solely of a "header" that I assume a jsp page would have in the "directives" stuff.
    Further it is my hope that this request might be interesting enough to generate at least an example in the Java help stuff.

  • Creator JSF MVC vs Enterprise Web App Framework

    It seems like are are 2 different MVC frameworks and the creator MVC is the newer one. Does this one have the scalability like the enterprise Web App Framework? Will the Enterprise edition adopt this JSF creator MVC framework? What if I move from creator to enterprise studio. Do I have to change MVC frameworks?

    Hi,,
    Technical articles are available which would be very helpful to you at the following link: http://developers.sun.com/prodtech/javatools/jscreator/reference/techart/index.html
    The following articles in particular might be useful:
    1. Anatomy of a Java Studio Creator Application
    2. Which Application Development Model to Adopt: Web-Based or Rich Client?
    3. Developing Web Applications with JavaServer Faces
    To answer your question about moving from Creator to Enterprise studio, the one major difference you would find iis that the visual development feature of Creator would not be available in Studio Enterprise.
    Cheers :-)

  • Faclets and JSP comparison using JSF Web framework

    I am doing project titled "comparison of JSP and Facelet used in JSF based web application".
    I want to know what are the parameters on basis of which i can do comparison.
    e.g Facelets fits with jsf life cycle. while jsp doesn't ...... how can i prove this in implementation point of view?
    what other parameters are?
    Is that practical that my app pressentation layer all views(user interfaces ) built in both jsf + Facelets and JSF+JSP ?
    please help me so i start working on project. thanks

    I have tried both:
    logincontrol.jspf (1)
    <f:subview id="sv">
        <h:form id="loginform">
            <h:panelGrid columns="2">
                <h:outputLabel value="User:"/><h:inputText id="username_email"/>
                <h:outputLabel value="Pass:"/><h:inputText id="password"/>
            </h:panelGrid>
        </h:form>
    </f:subview>
    logincontrol.jspf (2)
    <f:view>
        <h:form id="loginform">
            <h:panelGrid columns="2">
                <h:outputLabel value="User:"/><h:inputText id="username_email"/>
                <h:outputLabel value="Pass:"/><h:inputText id="password"/>
            </h:panelGrid>
        </h:form>
    </f:view>but nothing changes... i added this line, in the .jsp file:
    <%@ include file="WEB-INF/jspf/logincontrol.jspf" %>   by the way, is it good to write a .jspf file for login process and include it to the pages?

  • JSF page navigation under WEB-INF

    If page navigation starts on index.xhtml, and then forwards to page2.xhtml, how can I then forward from page2.xhtml to page3.xhtml?
    WebContent
      META-INF
      WEB-INF
        lib
        pages
          page2.xhtml
          page3.xhtml
        faces-config.xml
        web.xml
      index.xhtml
    Controller.java
    class Controller {
    public String gotopagetwo(){
    return "/WEB-INF/pages/page2";
    public String gotopagethree(){
    return "/WEB-INF/pages/page3";
    index.xhtml
    h:commandButton id="submit" value="Submit" action="#{con.gotopagetwo}"></h:commandButton>
    page2.xhtml
    h:commandButton id="submit" value="Submit" action="#{con.gotopagethree}"></h:commandButton>

    I don't think so....
    If u read is u will know....
    http://courses.coreservlets.com/Course-Materials/pdf/jsf/02-Page-Navigation.pdf
    what I got is
    HTTP Status 404 - /abc/WEB-INF/jsp/main.jsf

  • Mobile Web Framework ?

    Dear All
    I would like to start a new java web application targeting Windows Mobile 5.0. Application needs to work on IE Mobile. Targeted device is barcode scanner which operates in an intranet environment.
    Can anybody suggest good framework available? Kindly share your experience as well.
    Thanks in advacnce
    Jobinesh

    jobinesh,
    I'm developing a new java struts based web appln, that should work on IEmobile...... can you tell me how you got started.... the framework you used ...?
    Any help is appreciated.
    TIA

  • JSF on IBM WebSphere Web Server 5.1.0.3

    Hello...
    I did not get any response from IBM yet... so i am trying my luck with you...
    Can IBM WebSphere Web Application Server 5.1.0.3 with J2EE v1.4 support JavaServer Faces 1.0?
    Regards,
    B.

    Hello,
    Thanks for your reply.
    However i need to know whether WebSphere v5.1.0.3 on which there is J2EE v1.4 is specifically compatible with JSF 1.0
    And i am developing in Oracle JDeveloper J2EE Edition. I will probably deploy my app in WAR format
    Regards,
    B.

  • Tiles jsf 1.2 and web ui components

    Hello,
    I'm using standalone tiles for my jee5 application which also happens to use and require the ui: components as supplied with Studio Creator.
    I am able to get the tiles to work, with the only issue being that the ui components are not rendering as html. For example, <ui:html> should be rendered as <html>, but it is being rendered as <ui:html>. This holds for true for all of the ui components.
    Has anyone come up against this and resolved it? Thanks so much,
    W.

    The answer is that you need to be remove the jsf-impl and jsf-api jars from the runtime distributions that come from the Studio Creator. Otherwise, they are deployed with the ear and the app server then runs as JSF 1.1.
    W

  • Can i use JEE server for my Android app?

    Hello,
    Let me introduce myself,i am Mohith K M from India,Student and beginner in JEE
    I am doing a project,Which is combination of Android application,Server and Desktop app (developed in Visual C# )
    I am comfortable with Android app side,
    Bt, i dont have an idea About j2ee Server side?
    Where should i start studying
    What protocol should i use? SOAP?
    Wat my project exactly do is
    There are many Desktop application (devlpd in visual C#),These app will have database,and these is to be updated to Database @ server side, (MYSQL??)
    and Android application will request with some query to J2ee Server;Now J2ee Server have to respond back,after applying some bussiness logic in b'wn
    Please help me out,Where should i Start!
    I was planing to use Glassfish server,j2ee;

    You learn the same things as you would learn for any JEE application;
    - learn about EJBs (3.0 standard, not the earlier iterations!)
    - learn JPA (optionally, low level JDBC can also work fine)
    - learn about EJB webservices (and it might not hurt to learn about SOAP in general)
    You shouldn't need a web interface as this is all server side, so you don't need to go into JSF or any other web framework. For your purposes, I can recommend the book "Enterprise Javabeans 3.0" by O'Reilly. It will teach you all you need to know. If you want to learn about JPA, I can highly recommend the book "Pro EJB 3: Java Persistence API" by APress.

  • Populating my dropdown menu from MySQL database using jsp

    I my database i have a table of users and i want everytime a user is added the dropdown menu gets updated, this is make updating of user's profile easy. I tried the one bellow but still get me 80 errors:
    ----connection String------
    <select name="userName" id="userName">
    <% for(int i=1; i<=resultsList; ++i){%>
    <option value="<%=out.println(rs.getUserName(1))%>"><%=out.println(rs.getUserName(1))%></option>
    <option value="<%=out.println(rs.getUserName(i))%>"><%=out.println(rs.getUserName(i))%></option>
    <%}%>
    </select>
    Pls i need help

    80 errors, you say?
    I'm not a fan of writing muddled jsp pages that refer to the database layer. If you're willing to learn JSF or some other web framework, you'll being able to write better code and never use a scriptlet again.

  • Announce: Guise framework addresses JSF shortcomings

    JSF developers may be interested in learning of the release of a new framework named Guise(TM), which is now available free for development use:
    http://www.javaguise.com/
    I've been involved in the JSF forum for many months, as I spent countless frustrating hours trying to coax JSF into doing what I believed were simple, obvious things. As you can see on this forum, I've written a whole new value-binding expression syntax and framework just so I could pass parameters to methods. I've had to rewrite several JSF renderers just so the output it creates would not break my XHTML files. I've had to create a new component and associated framework just to upload files. I've kept the JSF community updated with my progress, but eventually I found myself rewriting the JSF framework more than I was writing application code. Guise(TM) is the solution I created for my JSF problems.
    I'll admit that I first approached JSF with the wrong mindset, thinking that it was some sort of procedural scripting language like JSP. I soon adopted a component mindset whole-heartedly, only to be disillusioned: although JSF may claim to be definition-file agnostic, in reality it was built on top of JSP and jumps through a thousand crazy hoops just so people can define their components in JSP. Hans Bergsten infamously advocated (see http://www.onjava.com/pub/a/onjava/2004/06/09/jsf.html ) dumping JSP to save JSF, but even getting rid of JSF would still leave a framework that scatters type-unsafe strings throughout the source code and multiple configuration files, and provides wildly inefficient event delgation through many error-prone levels of an impotent expression language. That's not even considering finding the right combination of component IDs so that I can send back a validation error that will appear in the correct location on my web page.
    I was getting ready to recommend to one of my clients a framework for their redesigned web application. I pondered what I would recommend---JSP+EJB? Struts? JavaServer Faces? In the end I realized that none of these provide anything close to the simple, safe, robust UI frameworks we're used to working with on the client. I wanted something that can be used like Java Swing, yet is simpler and more elegant, and uses generics. Since I was calling the shots, I decided that I wanted the UI to work on the client or across the web with no code changes.
    So I wrote Guise(TM)---a graphical user interface framework in Java designed from the ground up to be both simple and elegant. Consider this example "Hello User" program, available at http://www.javaguise.com/demonstration
    public class HelloUserFrame extends DefaultFrame
      public HelloUserFrame(GuiseSession<?> session)
        super(session, new FlowLayout(Orientation.Flow.PAGE));
        getModel().setLabel("Guise\u2122 Demonstration: Hello User");
        Label helloUserLabel=new Label(session);
        helloUserLabel.setVisible(false);
        add(helloUserLabel);
        TextControl<String> userInput=new TextControl<String>(session, String.class);
        userInput.getModel().setLabel("What's your name?");
        userInput.getModel().setValidator(new RegularExpressionStringValidator(session, "\\S+.*", true));
        userInput.getModel().addPropertyChangeListener(ValueModel.VALUE_PROPERTY,
            new AbstractPropertyValueChangeListener<String>()
              public void propertyValueChange(PropertyValueChangeEvent<String> propertyValueChangeEvent)
                String user=propertyValueChangeEvent.getNewValue();
                helloUserLabel.getModel().setLabel("Hello, "+user+"!");
                helloUserLabel.setVisible(true);
        add(userInput);
    }No, this isn't Swing---it's Guise. The above example is all type-safe; the only hard-coded strings for this example is a declaration in the web.xml file binding the class to a navigation path. Forget "backing beans". Forget unsafe strings littering a multitude of configuration files. Try Guise, and you be the judge.
    Here are some reasons you may like Guise:
    * No JSP!
    * Allows the web equivalent of modal dialogs.
    * Quick and easy setup.
    * Elegant ultra-MVC, with encapsulated models and controllers. No need for complicated backing beans and inflexible expression language---just use Java like you normally would.
    * Instantiate components, plug in validators, add action listeners, and report errors directly instead of using cumbersome, error-prone, and type-unsafe strings scattered in various configuration files and source code.
    * Java generics supported throughout.
    * File uploads built in.
    * Customizable, robust, authentication and authorization built in. Client-based authentication and login-based authentication can be seamlessly intermixed.
    * Buttons are rendered with real buttons that allow icons and other rich content, and automatically work around the IE button bugs.
    * Output is 100% XHTML compliant, with automatic downgrading from content type "application/xhtml+xml" to "text/html" for buggy clients (such as IE 6) which crash when the W3C specification for XHTML content type is followed.
    * Validation errors are automatically associated with components, and appear automatically on the web page. An error dialog box is also presented indicating the errors.
    * Internationalization is built in. Each application is aware of its supported locales and the selected locale of each session. Set a control model's resource key, and the correct value will automatically be loaded at runtime.
    * Parameters can be sent in the URI query string.
    * Multiple components can share the same model.
    * List selection controls implement the java.util.List interface and support generic values.
    * The Guise framework is thread-safe.
    I realize that although it's likely the release of Guise will be of interest to the JSF community, in-depth discussion of the framework is probably off-topic for the JSF Forum. I welcome further discussion of Guise, along with inquiries, at [email protected] . Further information may be found at http://www.javaguise.com/ .
    Sincerely,
    Garret

    Ed,
    I appreciate your innovation in creating a new
    Framework, I'm of course very interested to hear
    specifics about why you chose to do so. Which
    shortcomings in JSF exactly are you trying to fix?Thanks for the concern. If you look through the posts I've made to this forum, you'll get an idea of the heartache I've went through with JSF. Let me give you an overview. (I've provided appropriate citations to the related forum discussions.)
    Iteration
    One of the big newbie complaints you'll hear is that JSF won't work with JSTL---in particular, the JSTL iterators. I ran into this problem early on, and decried the lack of no iterator replacement. Adam Winer explained all the "pain... pain... more pain" it would take to create an iterator in JSF that would work with other components. After I became experienced with JSF and dug through the source code for months, I pointed out that UIData already goes through all this pain and needs to be refactored---UIData is really a UIIterator with a tad bit of table-specific stuff thrown in. http://forum.java.sun.com/thread.jspa?threadID=557278
    But the complaints and debates about iteration reveal a more fundamental problem with JSF. At its heart it is declarative---a fault it inherits from its close relationship with JSP. Tables, for example, are defined as a static relationship defined forever-in-stone in (for example) a JSP. Because we all want dynamic data in tables, JSF allows us to declare a programmatic relationship between table rows and the table, resulting in secret counters that get incremented and decremented in the background as rendering occurs, along with associated bugs in nested tables. A render phase is simply not the place to put dynamic application logic, but in JSF that's the only place to put it if you follow the paradigm. And you must do the same strange variable counts in the the other phases, just so you can wind up with the correct bindings for the correct row.
    Because JSF forces application logic into the render phase, I have to create something like a UIAssignment component that pretends to be a static component in the hierarchy, yet really performs variable assignment as JSF goes through the rendering process. I have to rely on the implementation rendering in the correct order, and I have to add with intricate logic to work around hidden/visible settings that might alter the rendering procedure and hence defeat the assignment algorithm. http://forum.java.sun.com/thread.jspa?forumID=427&threadID=576178
    Guise is not built on top of JSP, and hence doesn't force one to put rendering-related hacks into the application code. Check out the elegant Guise table model, for instance. It's very similar to the Swing table model, but simpler, more elegant, and with generics. Rather than play with counters and rendering in the application logic, you can just reference Java objects as you would normally. This entire issue of iteration is also related to the "Loose, Late Binding" issue and the "Impotent Expression Language" problem, which I discuss below.
    Loose, Late Binding
    Because JSF uses the "pretend not to be tied to JSP but support JSP in the archictecture" paradigm, the components are so uncoupled from the application code that any event logic must use a separate expression language. This language is not checked until runtime. I could put the string "Bill Murray" in an expression, and I'd never know about the problem until someone tries to access that page. Similarly, any expressions are so loosely bound that I don't know to what extent they actually work with my code until I start up the web server.
    What happens if I want to respond to an event in JSF? Well, first I have to create a "backing bean," a special mediator to help my components and application work together. Then I have to create an un-typesafe string in a non-Java language that binds something that happpens on the component with the backing bean, which will in response do something with my application. Something like:
    <h:commandButton action="#{myBackingBean.doSomething}" value="Test"/>Then (as if this weren't enough) I have to find some configuration file somewhere in order to define my backing bean (it doesn't work automatically). Needless to say, this definition also isn't typesafe and is not verified until runtime. All this just to respond to a button being pressed?
    Guise doesn't need an expression language, backing beans, or backing bean configuration files. If I want to repond to a button being pressed, I just listen for it---right in the Java code:
    myButton.getModel().addActionListener(...)Everything is typesafe (with generics, I might add). If there's a syntax problem, you'll know it when your program doesn't compile. Your code becomes much more efficient because the expression string doesn't have to be parsed, a variable-binding object doesn't need to be created, and a backing bean doesn't need to be looked up every time the page renders. It just works like you expect Java to work. Simple and elegant.
    But the loose, late binding doesn't stop at the expression language. Binding components to IDs in faces-config.xml isn't typesafe. Assigning renderers in faces-config.xml isn't typesafe. In fact, even programmatically creating a component at runtime forces me to use some arbitrary string that isn't tied to anything except some lookup map somewhere that I hope has been properly configured by faces-config.xml and the various components and renderers. Changing component properties at runtime requires several levels of un-typesafe string processing. String, strings, strings---JSF brings Java back to BASIC, as it were.
    If I want to create a component in Guise, on the other hand, I do it like I'd create anything else in Java:
    Label=new Label(session);If I want to associate a controller with a component in Guise, I'm not just passing around opaque strings. Here's a line out of XHTMLControllerKit:
    registerController(Label.class, XHTMLLabelController.class);
    Impotent Expression Language
    It's bad enough that we have to mess with expression languages, but the JSF expression language is impotent that I can't even pass arguments to methods! (The argument that JSP doesn't allow them either falls on deaf ears---JSF isn't tied to JSP, right?) Doing simple things like selecting an item from a list becomes virtually impossible (if you want to keep your elegantly-factored backend code) without argument passing. That's why I was forced to create an entire new expression language on top of JSF-EL just to allow parameters to methods. http://forum.java.sun.com/thread.jspa?forumID=427&threadID=561520 And (combined with the iteration problem, above) I had to create a UIAssignment that pretends to be a component yet really performs variable assignment in the background, using my extended JSF-EL. http://forum.java.sun.com/thread.jspa?forumID=427&threadID=563036
    Internationalization
    Support for internationalization in JSF (and even in Swing) is provided in a sort of ad-hoc, last-minute manner. Guise has internationalization support built in from the ground up. Each component model can be given a resource key, which will automatically get the correct data based upon the session locale.
    Guise handles internationalization of component layout automatically as well. Check out the internationalization demo at http://www.javaguise.com/demonstration ---just by changing the session locale, the entire component hierarchy reorients itself automatically and loads the correct resources. That's done with one line of application code!
    File Uploads
    JSF doesn't support file uploads, and I had to concoct an entire file upload framework for JSF. http://forum.java.sun.com/thread.jspa?forumID=427&threadID=464060
    Guise has elegant, validating file upload support built in.
    In the end, I just wanted to write an application for the web like I would for Swing, without resorting to a mindset of a couple of decades ago when typesafeness was unknown and event delegation wasn't elegant. Since we have Java 5.0, I also wanted to use generics. I just wanted to program using best practices rather than setting up endless text-based configuration files. I wanted Guise(TM). So I wrote it.
    Also, would you consider joining the JCP expert group
    working on JSF? The whole point of the JCP is to
    allow people with big ideas like yourself to help
    grow the core platform.On 21 October 2004, I wrote on this forum, "I'm willing (and eager) to join the expert group and put in my effort to help effect these changes in the specification..." http://forum.java.sun.com/thread.jspa?forumID=427&threadID=565052
    I then requested directly to join, and Roger Kitain replied that, "Currently, the group has quite a few members, so I'm not adding any more members unless their background is an exceptionally good fit." On 24 January 2005 I provided extensive coverage of my qualifications to both you and Roger.
    On 17 March 2005 I indicated I was still willing to join, but Roger had already pointed out the catch on 7 February 2005: in order for me to spend my time and provide my expertise to contribute to the advancement of JSF, I must pay Sun $5,000. It wasn't enough that I was offering my services for free---Sun wanted me to pay them to allow me to contribute to bettering JSF.
    I hope this overview answers your question about the shortcomings of JSF. If you have any more questions, I'll be happy to answer them. You may be interested in reading more about the basics of the Guise(TM) framework at http://www.javaguise.com/overview and constrasting the Guise approach to that of JSF.
    Sincerely,
    Garret

  • Not able to create a web project with jsf or jsp or struts or spring

    Hi,
    I am trying to create a dynamic web project with jsf or jstl or struts or spring or any of web options available for a web project, but I am not able to do it.
    When I choose any of these options, the wizard asks me to "select an existing jstl/jsf/Spring 2.0 library, or click Add to add a new library." and since it doesn't show any existing libraries there, I clicked on add new library. When I click add, it opens a new dialog box where it has two options :
    1. to use spring/jstl/jsf lib from bea web site - when I choose this option, it tries to connect to the bea web site and gives me error that "connect time out". I don't know why it is not able to connect to the internet. I am not able to see the help also. There it gives error "The requested URL could not be retrieved".
    2. to use libraries from an existing spring installation - I provide the path of a directory where spring lib are, but then it gives me error that this is not a valid installation.
    On another machine, I am able to see the help contents, but still not able to get these libraries from the bea site.
    Please help.
    Thanks in advance,
    Sushma

    Hi Sushma,
    The issue you are facing has been addressed and will be part of the next release. For the current release, please follow the steps listed below.
    Send an email to [email protected] with details on specific facets you are trying to enable on your project.
    You will be provided with a url where you can download the required jars and details on how to manually add the jars to the workspace which will prevent the download on demand scenario.
    Cheers
    Raj

  • Visual Web JSF web app unable to render. The theme tries to access META-INF

    Hi,
    BACKGROUND: I have created a Netbeans 6 Visual Web Project using the default Visual Web JSF Theme. My web application can be viewed properly and correctly when i deploy it on tomcat 6.
    ARCHITECTURE: Our server configuration requires IIS to be our web server and tomcat to be our app server. Both are running on different machines. I have successfully linked up IIS 6 and tomcat 6 using the JK isapi_redirector.
    PROBLEM: However, when i connect to my app via IIS, my starting page opens but the input box components on that page are not displayed and i get several javascript errors that read - 'dojo is undefined' and 'webui is undefined'.
    PROBLEM DETAILS: I found that the page being served had a lot of files being requested from a META-INF folder. I have attached a snippet here.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:wairole="http://www.w3.org/2005/01/wai-rdf/GUIRoleTaxonomy#" xmlns:waistate="http://www.w3.org/2005/07/aaa">
    <head>
    <title></title><link rel="stylesheet" type="text/css" href="/BMC/theme/com/sun/webui/jsf/suntheme4_1_1/css/css_master-all.css" /><link rel="stylesheet" type="text/css" href="/BMC/theme/com/sun/webui/jsf/suntheme4_1_1/css/ie.css" /><script type="text/javascript">var djConfig={"parseOnLoad":false,"isDebug":false}</script><script type="text/javascript" src="/BMC/theme/META-INF/json2_0/json.js"></script><script type="text/javascript" src="/BMC/theme/META-INF/prototype1_5/prototype.js"></script><script type="text/javascript" src="/BMC/theme/META-INF/com_sun_faces_ajax.js"></script><script type="text/javascript" src="/BMC/theme/META-INF/dojo1_0_1/dojo/dojo.js"></script><script type="text/javascript" src="/BMC/theme/META-INF/dojo1_0_1/dijit/dijit.js"></script><script type="text/javascript">dojo.registerModulePath("webui.suntheme", "/BMC/theme/com/sun/webui/jsf/suntheme4_1_1/javascript");</script><script type="text/javascript" src="/BMC/theme/com/sun/webui/jsf/suntheme4_1_1/javascript/webui-jsfx.js"></script><script type="text/javascript">webui.suntheme.bootstrap.init({"debug":false,"theme":{"locale":"en-US","prefix":"/BMC/theme","modulePath":"/com/sun/webui/jsf/suntheme4_1_1/javascript/theme","bundle":"suntheme","module":"webui.suntheme.theme"}});</script><link id="link1" rel="stylesheet" type="text/css" href="/BMC/resources/stylesheet.css" />I think the JK isapi_connector in IIS is preventing access to the META-INF path and the isapi_director log file says - "*+[emerg] HttpFilterProc::jk_isapi_plugin.c (1282): [BMC/theme/META-INF/json2_0/json.js] points to the web-inf or meta-inf directory. Somebody tries to hack into the site!!!+*". The same message is repeated for several more javascript files that are being served from under the META-INF path.
    Any help or advice in this matter will be greatly appreciated.
    Thanks!!!

    I managed to find a workaround. Thought i should share it with those who are faced with a similar issue.
    I found that a bug report had been placed in the past with Apache Dev. However, they had said that they would not modify their logic because the servlet container spec requires it (even though isapi_redirector is only a connector and not a container). They said that there is no way for the isapi_redirector to differentiate between /foo/WEB-INF when foo is a context and when foo is just a sub-directory of the ROOT web application. So, the general consensus was to err on the side of safety and risk blocking a few requests that are valid.
    However, this causes a serious issue for those using NetBeans JSF Visual Web Projects. Hence, I created my own flavour of isapi_redirector by modifying the code such that this check is not performed and leaving the onus of checking on Tomcat.
    For those who are interested, the simplest way to go about this would be to force the function uri_is_web_inf (in jk_isapi_plugin.c ) to always return FALSE.

Maybe you are looking for

  • Payment terms field display at MIRO screen

    Hi, How can I make Payment terms field "Display" at MIRO screen?? Regards, Sattuj

  • Searching for a substring

    after running through the forums i couldn't find anything that related to my question. so here it is. to search for a substring, do i have to search for each individual character or is there an easier method... for example: String john,paul,mark,fabi

  • HT1719 Autofill 4th gen shuffle

    I go to autofill, click on it and get error message:  "Itunes cannot add anymore songs to the ipod ....  because no more free space is available."  Why am I getting this error?

  • I don't have the option to delete media from my iTunes library. Any help please?

    I have got 4 copies of a video and three of them do not play so I am trying to remove those three, however I have tried all the suggestions but I am unable to choose the 'delete' option or the 'cut' option from the 'edit' menu. Although the 'copy' an

  • Red Hat Enterprise 5.2 on UCS B200 M1

    We need to install Red Hat Enterprise 5.2 on UCS B200 M1, but could not find the driver for Qlogic CNA M71KR-Q. Any pointers or suggestions?