[ANN] Article about JSP/JSF clashes and a better alternative

I believe some of you might be interested in my latest JSF article, published on ONJava.com today:
http://www.onjava.com/pub/a/onjava/2004/06/09/jsf.html
I hope it will lead to some interesting discussions regarding a better alternative than JSP for the JSF views in a future version of the spec.
Hans Bergsten (EG member)

Great article, Hans. I agree that the JSF community should be looking into alternative ViewHandlers. So far, it's been an underappreciated API, but teams like MyFaces and, yes, Tapestry too, should be thinking about how to innovate here. There's a lot of room for progress to be made, and we don't have to wait for the spec process to turn its gears to see some enormous improvements in the usability and power of JSF. Remember folks, the EG built extensibility and pluggability into JSF for a reason!
-- Adam Winer (EG member)

Similar Messages

  • Access Java class in my JSP/JSF page and conditionally open a new browser

    When the user clicks on a button in my JSP page, I'd like to launch a new browser and display certain things in that browser window while leaving the original browser window open.
    My thought was to invoke a javascript method in 'onLoad' which would determine if the new window needs to be launched.
    This is kinda what my page looks like:
    <jsp:root version="1.2" ................>
        <jsp:directive.page import="java.util.*, com.test.Configuration" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
        <f:view>
         <ui:body binding="#{Page1.body1}" id="body1" onLoad="launchWindow();">     
         </ui:body>
       </f:view>
       <script type="text/javascript">
            function launchWindow(){
             if (Configuration.openWindow()) {
              window.open("hello.jsp", "newWindow", 'toolbar,width=400,height=400');            
        </script>     
    </jsp:root>My problem is that the call to "Configuration.openWindow()" does not resolve correctly. If I remove that call and simply make a call to "window.open()" all works. But once I put the condition in, nothing happens. I do not see an exception in my browser window but a new browser window does not open.
    Is my syntax correct. Can I make a call to the static method 'openWindow()' in my class 'Configuration.java'.
    thanks,
    tsc

    I have made some changes so that I do not directly access the 'Configuration' class in my javascript.
    I have a hidden field on my form and when the user clicks the button, in my back bean, I set a value for the hidden field. In the javascript function 'launchWindow()' I check if a value has been set for the hidden field and if yes, I open a new window.
    <ui:body binding="#{Page1.body1}" id="body1" onLoad="launchWindow(document.forms[0]);">
    <h:inputText id="hiddenField" value="#{formBean.hiddenValue}" />
    <script type="text/javascript">
            function launchWindow(form){
                alert("in lw");
                var test = form["form1:hiddenField"].value;
                alert("got test");
                if (test !=  "")
                    window.open("hello.jsp", "newWindow", 'toolbar,width=400,height=400');            
                alert ("done test");
    </script>When my page is first loaded, the launchWindow() is called and all the alerts popup as expected.
    When I click on the button (the back bean sets the value on the hidden field), my page is reloaded but this time its blank.
    Any ideas as to why this maybe the case?
    thanks,
    tsc

  • ANN: article about Spry tabbed panels

    How good/bad are they?
    http://www.tjkdesign.com/articles/the_truth_about_spry_tabbed-panels.asp
    Thierry
    Articles and Tutorials:
    http://www.TJKDesign.com/go/?0
    http://www.divahtml.com/products/scripts_dreamweaver_extensions.php
    - Add "you are here" highlighting to virtually any menu
    - FAQ pages made easy

    Nice analysis. Your rating with Adobe has dropped a few
    points, though! 8)
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Thierry | www.TJKDesign.com" <[email protected]>
    wrote in message
    news:f7j6mi$sgt$[email protected]..
    > How good/bad are they?
    >
    http://www.tjkdesign.com/articles/the_truth_about_spry_tabbed-panels.asp
    >
    >
    > --
    > Thierry
    > Articles and Tutorials:
    http://www.TJKDesign.com/go/?0
    > --
    >
    http://www.divahtml.com/products/scripts_dreamweaver_extensions.php
    > - Add "you are here" highlighting to virtually any menu
    > - FAQ pages made easy
    >
    >

  • JSP 2.0 and JSTL question

    Hi,
    I'd just like to ask if anyone could suggest a good site with tutorias about JSP 2.0 and more specific about requesting and manipulating attributes.
    It is easy to do so by using servlets withn something like:
    ArrayList mylist = (ArrayList)request.getAttribute("mylist");
    and use it with an iterator.
    ...but I'd like to learn how I can request and manipulate ArrayLists in JSP using JSTL.
    thanks in advance,
    mike

    All you should need are the <%@ taglib %> and the jar files in your web-inf/lib directory.
    Nothing is required in web.xml for it to work.
    Make sure you are using the JSTL 1.1 taglib URIs though: http://java.sun.com/jsp/jstl/core.
    They look a lot like the old ones, but include /jsp now as well.
    Does the EL evaluate inside a tag? eg <c:out value="${application.servletContextName}"/>
    Couple of things to try
    EL evaluation may be disabled: Put this at the top of your page:
    <%@ page isELIgnored=false %>
    Check your web.xml for something like this (disables EL in pages)
    <jsp-property-group>
    <url-pattern>*.jsp</url-pattern>
    <el-ignored>true</el-ignored>
    </jsp-property-group>
    What version of the DTD are you using for web.xml? According to the JSP spec, if it is less than 2.3, and you haven't specified handling of the EL, it is ignored.
    Relevant bits of the JSP2.0 spec: JSP3.3.2, JSP 1.10.1
    Can you post some code which isn't working?
    Cheers,
    evnafets

  • JSP, JSF, and ADF

    I've just started playing around with this and was looking for samples/tutorials to help. Of the tutorials/samples I've seen, they appear to fall short of explaining an end-end example and stick mostly to JSF and the backing bean - usually displaying static data within a JSP and navigation. I'm a bit confused on how to call custom methods in my business services (application modules) and in turn use the view objects to fetch data from my database and display the results within a JSP using the JSF components.
    I realize the latest preview JDeveloper is without ADF but while I had time I was hoping to play around with ADF Faces to hit my development database. Guess I'm trying to make sense of how JSP, JSF, Business components, and my db connection all play together in order to set up a decent starting point for an app.

    You could use Jdeveloper 10G and play around with ADF Faces, look at the demos, and the sources behind them.
    There are a couple of papers on OTN like...
    Working with ADF Faces in JDev 10g:
    http://www.oracle.com/technology/products/jdev/howtos/10g/adfjsf/how-to-adf-faces-10gjdev.htm
    Roadmap for ADF Faces:
    http://www.oracle.com/technology/products/jdev/collateral/papers/9.0.5.0/adfuix_roadmap/adfuix_roadmap.html
    And many more... as I could find upon search...
    http://www.oracle.com/ultrasearch/wwws_otn/searchotn.jsp?p_Action=Search&p_Query=adf+faces
    The visual editing support for 'The ADF Model access through ADF Faces bindings' is under development (hence no tutorials), and will be available in future release (could be post 10G release).
    -Udupa

  • JSP 2.1 and JSF 1.2 support?

    hi
    when can we expect to see JSP 2.1 and JSF 1.2 support in JDeveloper?
    br. aspa

    Good question Neila!
    Shay, thanks for the input.
    We urgently need these informations in order to design our strategies for future projects architecturing. For exemple, we are working on new Java projects at my company and are relying on JDev + ADF Faces + EJB 3.0 + OAS 10.1.3, based on the current Oracle implementation. I'm affraid I will have to rewrite code after you release new versions of those. If yes, I'll be personally in a big trouble... :-)
    Regards,
    Gustavo

  • Hi i'm new here, i wanna ask about supercell game Clash of Clans, i think someone hacked my village, yesterday i used my dad's phone which is Android to play coc, since then someone from another device keep playing and even taking gems, i've tried t

    Hi i'm new here, i wanna ask about supercell game Clash of Clans, i think someone hacked my village.
    Yesterday i used my dad's phone which is Android to play coc, since then someone from another device keep playing and even taking gems, i've tried to log out and even change my gmail account, but it's not working, what should i do?

    That is priceless!!!  Thanks!  I sure needed a good laugh after spending/wasting hours & days trying to either get my c6280 to give up on its Ink System Failure fixation, or find a decent replacement.  Unfortunately I need the Smart Web Printing feature that I guess only HP has, or I'd try a different brand. And now even HP has very few models with that available.
     My error msg is a little different from those previously stated, but close:  0xc18a0201.  Even tho there were frustrations with my c6280, I did like several of its unique features which are hard to find now under $100.  I hate how HP (& I suppose other brands also) are CONSTANTLY changing models & then of course ink cartridges.
    Oh heavens, I've had the c6280 a whopping 2 1/2 years!   I'm sure they want us poor slobs to have to buy a new one every year & a day!  To say nothing of the exorbitant prices for ink.  And now if this one is really dead in the water, I have SIX unused #02 ink cartridges which I cannot return---I got them in a combo pack, & for some reason have wound up with THREE lite pink & THREE lite blue cartridges, while having to buy extras of the other colors, that ran out before the others!!!   Yeah, & what's with that not being able to print in BLACK if a color runs out????
    Anyway I really loved your essay!   It's a classic!  And says it all!  I hate that we have to be 'slaves' to the electronic 'wonders'!!!

  • Very basic questions about JSP server and plug-in.

    Hi all,
    I am wondering what are other ways to make use of the JSP script on a server running normal Apache without changing it to Tomcat. Is there a plug-in version of JSP for Apache that will enable JSP? I am looking for something like PHP plug-in, which is quite generic. They even have a php.exe that OHTTP (a great shareware Win32 web server) can call to run PHP. Is there such thing along this line with JSP on Win32 or Linux? Thanks!

    You need a jsp/servlet engine, and in effect, Tomcat is the "plug-in" you described. Tomcat has basic web server functionality built in, so it can run stand-alone, but it's most commonly used with a robust web server like Apache. You don't have to "change it" to Tomcat - you just configure Apache to forward specific urls (anything ending in *.jsp, for example) to Tomcat.

  • When is it appropriate to use a servlet in a JSP/JSF environment?

    I have inherited a fairly old JSP-based application. I know that I need to update its technologies, in particular the use of AJAX so that I don't need to keep refreshing the page each time I want more data from the server. The problem is that I don't know a great deal about other technologies. There seem to be so many conflicting opinions about the way to go regarding servlets and JSP and JSF (and possibly JavaBeans). I am probably going to start using JSF and AJAX. I mention this to give you some background info. My real question is: when is best/appropriate to use a servlet? From what I have seen I do not want to use a servlet for generating HTML output - that seem just so last decade! But do they still have a good use over more modern technologies? Also, when is it appropriate to use JavaBeans? Are JavaBeans a thing of the past (or just plain inappropriate) for web applications?
    Regards,

    I suggest going to the bookstore and looking for a book on JSF and reading it cover to cover. It may tell you where servlets come into the picture (if at all). I suggest paying attention to MVC design that it discusses, and working through the examples before working on your project (assuming you have the time). Then creating a simple project and refactor it over and over to meet MVC.
    For your project, I suggest just doing ONE JSF page (and its underlying database access) and refactor it over and over again (MVC) before doing the other JSF pages. This way, you dont have to refactor 34 JSF pages to correct the same mistake appearing in all the pages (saves a LOT of time).
    I don't know enough about AJAX to really comment on it. However, I would ask myself if refreshing the JSF page is really enough of a concern for your end-users to make it worth while to use AJAX on this project.

  • It looks Oracle Form/Applet  die hard versus J2EE Servlet/JSP/JSF  & AJAX

    I left the form forum for a while and am busy with transfering our Oracle web forms app to Struts based J2EE application (just because the Oracle EE AS is the moving cause, it's out of my control.). After a year or so on J2EE which I enjoyed the fresh OO coding while keep enhancing Oracle webform app in production, I have some thought on Applet vs J2EE JSP/JSF plus AJAX.
    1) JSP itself is hard to avoid the full screen refreshing even though user just does partial changes ,e.g., lists, on the screen, it has to use AJAX to do the tricks. While partial refreshing in applet is natural default behavior.
    2) Forms is really an RAD, while J2EE's IDEs does help a bit(IBM's Websphere v6 even called iRAD) which takes way longer programming time compared to Forms. One IBM's article says it trys to win the Oracle Forms developers by giving the familiar graphical way of drag/drop GUI, so IBM recognizes the RAD coding power of Oracle Forms. So, IBM promotes the RAD similar to Oracle Forms.
    3) GUI/business rules related validation: Applet offered a great advantage over JSP/ even JSF which to avoid the full screen refresh, AJAX/JavaScript is used heavily. User friendly interaction of applet is way better than J2EE.
    4) Browser's back/refresh buttons also are headache to J2EE, expecially we need to support IE and Firefox. Applet basically is not bothered by these buttons.
    Recently, I read techi news said that the new chips will make the network transfer speed 10 time faster than now-even the cell phone transfer the image will be way faster. Then I predict the applet, just like IBM's mainframe, will see its Spring again, not like now in its winter. Especially the Oracle Forms makes coding easier than pure applet coding.
    Oracle folks, kepp beefing up the Oracle Forms, don't just pay attention to JDev. J2EE IDE, most of all, remove the Oracle EE ASxx block, be open. Oracle EE ASxx is really not a pretty baby, even though so Oracle thinks it is.

    1) Why we are transfering your Oracle web forms app to Struts based J2EE application?
    Since our corporate is IBM world-DB2/UDB, WebSphere AS (WAS) etc. It only allows Oracle Forms/reports servers to be compatible with the infrastructure. It does not allow to purchase another EE app server(espeically LDAP). We could not upgrade our forms/reports6i to 9i or 10g.
    2.Therefore the Oracle EE AS is the moving cause, it's out of my control because I did my best to talk to Oracle sales, but no avail. I am glad that I got a good chance to beef up my J2EE Struts skills.
    If extract out the forms/report9i/10g engines from the Oracle EE AS 9i/10g, (don't attempt to bundle sell the EE AS to customers-regardless of the shrinked 9.0.4 forms/reports services version, it's still another EE AS) and make them compatible with other ASs(espcially the LDAP), then Oracle Forms will have more customers.

  • JSF, Springs and Hibernate

    Hi,
    I am a newbie. I would like to know the books i need to refer to, inorder to learn JSF, springs and hibernate.
    Thank you,

    The_Matrix wrote:
    CeciNEstPasUnProgrammeur wrote:
    How about learning Java first?
    At least for JSPs, there are free online tutorials from Sun. There are likely to be similar resources for Spring and Hibernate.I Know Java. I am a Sun Certified Java Programmer. I also know know J2EE. I am trying to learn the new technologies. Therefore i mentioned that i am a newbie, it was pertianing to JSF, Springs and Hibernate. Not to Java.In that case:
    Core Java Server Faces (2nd edition)
    Java Persistence with Hibernate
    Pro Spring 2.5
    Expert Spring MVC and Web Flow
    Together with the product documentation those should make a decent bit of reading.

  • Ll / seeking FREE open source JSP / JSF Web application Tomcat/5.5.15

    hi all,
    We have a need to set-up a web site for a community based (non profit organisation) football / soccer) club.
    The web hosting machine is based on JSP / JSF running on Apache Tomcat/5.5.15 & Sun Microsystems Inc. VM 1.5.0_06-b05.
    OS is Windows 2003 V 5.2
    The database backend is based on MySQL, mysql-essential-5.0.18-win32.
    We need to add content related to:
    a) Players contact details;
    b) Teams;
    c) Match reports;
    d) News;
    ... and other dynamic content
    We are looking for an out-of-the box FREE open source Web application we can deploy on the web hosting machine.
    Any suggestions will be appreciated.
    Thanks
    Trajano

    I haven't tried ICEFaces or JBoss seam or Apache MyFaces, so I can't really compare them.
    ICEFaces appears to be a nice framework/tool from looking at their site, even though it's open source I think one has to pay for support, you might want to take that into consideration while making your decision.
    Apache MyFaces, is fully community driven - so you get free support from the community.
    I don't know about JBoss seam.

  • Difference between JSF API and RI and EL API and EL RI?

    Im just looking into using facelets and in the dependency list I see this:
    JavaServer Faces RI
    The reference implementations of JSF 1.1 and JSF 1.2 are available for use with your
    application
    JavaServer Faces API
    JSF 1.2 API that works with the new EL specification. (Optionally, MyFaces Core API
    could be used.)
    EL API - The stand-alone EL utilized by both JSP and JSF.
    EL RI - The reference implementation that is used by Facelets for handling EL.
    This isnt a question about facelets but more about what the differences are between the JSF API and RI versions and likewise the EL versions.
    Its much appreciated if anyone can explain this for me.
    Jon
    Edited by: JonJackson on Jul 27, 2009 2:29 PM

    Oh, your topic title contradicts (difference between API and RI) with the actual question in the topicstart (difference between the versions).
    If the topic title represents the actual question: the API is the application programming interface, which is just an abstract specification. The RI is the reference implementation, which is the vendor's (in this case Sun) own concrete implementation of the abstract specification. In fact everyone can build an own implementation of the API which might be or not be better than the RI.

  • Help need to know about JSP-RMI connection

    Hi All...
    Can anyone send me any tutorial/link about JSP-RMI connection. I need to access a RMI server object from JSP page.Is it possible?
    Looking for your responds.....

    Hi ...
    I didn't get any reply from any one....
    Is it possible to make Java Server Pages and RMI work
    together -sure, jsp's can make requests to servlets which can then talk to remote objects, then a response can be sent back down to the jsp
    to invoke a method on a server object from a JSP? And
    if, does
    someone know of a good tutorial, article etc., on
    this matter?hmm, Google, JSP Tutorial, RMI Tutorial, etc.

  • About back-end adapter and IDoc

    Hi everybody!
    I was watching in the FAQ of Mobile 7.1 about the possibility to use IDOC as a mechanism to push data to DOE, but this document only says: "IDocs are supported only for back-end-triggered scenarios" and provides a link to configure ALE between the backend and DOE, but the link doesn't work. (Somebody has this information on a link that works?)
    I'm trying to find any information, blog, article, how-to guide, however I cant found anything. Anybody has documentation about how to configurate and implement a backend-adapter to push data from the backend through IDOC? Any information will be welcome.
    Thanks in advance.
    Best regards,
    Simon.

    Hi San,
    You will have to look after this in Tansaction SE80. Open the BSP application cProjects, and find the appropriate view. (The naming convetion will help a little). Open the view tab: layout >> e.G. progAssignedPha.bsp Here you will find what BSP elements it consists of. You will find the
    <htmlb:tableView and <htmlb:inputField ... elements.
    Here you will find the information you are looking for.
    As easy as in SAPGui you can not find out this information.
    Regards.

Maybe you are looking for

  • Why are my Downloads not going to the Download Folder?

    I presume my computer is playing up: In the Firefox preferences, I have selected "Show the Downloads window when downloading a file" and "Save files to Downloads folder" BUT - my computer neither shows the downloads window, nor saves the download to

  • Unable to create partition while installing windows 7 on MacBook Pro

    Have new MacBook Pro (bought 5/30/14) has 16GB ram and 500GB HD. Trying to install new copy of Windows7 Home Premium. Have USB drive for Windows drivers. Get through Boot Camp OK and when windows installation begins and selecting BootCamp partition t

  • DVD Player for Apple TV

    Recently have thrown out anything that had to do with MS as I wanted to upgrade to a Multi-media environment and got myself the latest Imac together with the Apple TV. Even rewired the complete home to Ethernet ( WIFI is fine for internet but really

  • Kernel panic undiagnosticable

    Hi! I am new in this forum. English is not my natural language so please excuse me for possibles mistakes. After a year of fighting, bringing the iMac for support service (where I was told that they did not failed, passing all tests and diagnosed not

  • HT4061 In my I pad mini a page of email is locked , any suggestions ?

    A message in my E mail inbox in my I pad mini is locked and I cannot move from that page . Safari etc works ok  Any suggestions ?