Ajax / JSF / WebSphere 5.1.2 IDE / WebSphere 5

Hi Friends,
I have a use case
There are lots of questions on the page and each question has answers and when selecting the answers there is small section on top of page where score will be dynamically calculated based on some calculations logic.
Presently I have a Java Script code, which does this.
Can anybody suggest me other approach.
Did any body use Ajax with JSF and WebSphere5. Can that we done?
Do any of you have sample code.

thanks ,but o know yet this,so i have included lib standard of sun(programms,java,lib....),
but my work is ok or i must change strategy?

Similar Messages

  • Wanted - XML Tag with AJAX; JSF compatible

    Hello, I'm looking for a tag that displays XML in a collapsible format.
    So I start with an XML tree displaying level 1 tree info. When the user clicks on a node, it uses AJAX to dynamically pull info associated with the node and displays the XML sub-tree. The user can then click on a sub-node to view the tree associated with the sub-node, or collapse a node and move onto another node.
    It needs to be JSF compatible too.
    Is this doable and if yes, then could you recommend what hoops will I need to jump through to make it so.
    Thanks.
    Ciao, Bhishma

    Is the XML file being generated on the fly in your servlet? Well, you wrote it, didn't you? So you should know. If your servlet is what you posted there, you aren't even generating XML. You are just generating some text, which isn't XML.
    The point is, if you want XML generated then it's up to you to do that. Nothing happens automagically. If you want XML with a "message" element then you have to generate XML with a "message" element.

  • Ajax jsf - 'Permission denied to set propertyXULElement.selectedIndex'  exc

    Hello,
    Hope someone can help me on this.
    I am using JSF, ajax,JPA-toplink and MySQL.(netbeans-glassfish) I get the following error when I try to create a new record for the second time , but not the first time as soon as I have logged into my application. Every time I logout and then login I will be able to create a record, but not for a second time in the same session.
    I get this error in firefox. But in IE it just stops working, and does not throw any error.
    Error: [Exception... "'Permission denied to set propertyXULElement.selectedIndex' when calling method:[nsIAutoCompletePopup::selectedIndex]" nsresult: "0x8057001e(NS_ERROR_XPC_JS_THREW_STRING)" location: "JS frame ::http://localhost:8080/PurchaseOrderTracking_1/faces/login.jsp;jsessionid=6f1a8fb53d03602888eca6f69020:: onfocus :: line 1" data: no]
    The page has many UI components each of which fire an ajax transaction.
    Pages with just a single ajax transaction work without any problem.
    Hoping to get a solution for this please.
    I can give you my scripts in detail.
    Thank you for your kind help in advance.
    nitharc

    Hi Frank,
    Indeed, the master template has a PageDef. I've set the appropriate rights and now it works.
    Thanks a lot for your help!
    Mircea

  • JSF vs. JSP and IDE Question

    I'd like to get an opinion from the forum, I'm looking to build a web application that provides a front-end to a back-end, batch Java app. The back-end app has pre-existing common classes and methods with all of the essential business logic.
    My first question is, what platform should I be looking at, Javaserver Faces or JSP? JSF is so new and all of the bugs surely haven't been worked out, but it is the heir apparent new direction of J2EE. JSP is a little more proven, but a little more difficult to work in. This "more difficult" might not be so bad for us, because we've developed most of our back-end app without an IDE or drag-and-drop tools.
    My second question regards IDE's. I'm relatively new to OO programming, and I've never used an IDE. So, of the many free IDE's out there (Eclipse, Netbeans, etc.), are there any that you would recommend for your answer to the first question? How large of a process improvement would you judge from a move to an IDE with drag-and-drog functionality?
    So, in short, I would appreciate any of your opinions on moving to a new JSF standard as well as your thoughts on IDE's.
    Thanks.

    If you don't want to sepnd much time and want to do something in the middle between JSF and JSP, you can use JSTL. Lots of cool JSTL components are available for free. Using struts (which is timetested) is also a good idea.
    If you have never used any Java IDE, I would suggest you to use netbeans ide. Netbeans is really cool ide and has some good features like refactoring, jsp debugging etc. You will have to use Tomact as your server if you want to use JSP debugging effectively.
    Eclipse with right plugin (My Eclipse) would be the best choice but you will have to understand some eclipse concepts before jumping on eclipse. It took me little time to figure out view, perpectives, plugins jargon.
    Also My Eclipse is not free but it's very inexpensive - $30 per year.
    All these are my experiances. I hope it helps you.
    Vaibhav Puranik

  • Benchmarking Ajax JSF libraries

    You may find this interesting, simple performance test comparing PrimeFaces, RichFaces, Trinidad.
    http://www.jroller.com/mert/entry/benchmarking_jsf_libs

    [ What is best book available on Ajax and JSF for Java. I am good in j2ee and struts. Working java for last 10 years.
    /i]
    sounds good...
    I have small query you will help me. I am new to j2ee technology.I am working on a product which allow us to create the form dynamically based on information provided through CMA by Admin and Admin can also associate any validation rule for each created form at any time.. so for this requirment for front end which Java and JavaScript FramWork will be best.... please help me..
    Thanks in advance

  • Ajax+jsf variable in javascript

    Hi,
    I have a form -> panel Box -> outputText
    I'm using RAD for developing my project is there a way I can get the outputText box value in my javascript. The PanelBox has an ajax update . I tried with hiddenText but no luck the way I'm trying to get the value is
    document.getElementById('form1:box:text11').value
    Thanks

    Not sure if this is what you are looking for but passing it on nevertheless
    http://forums.adobe.com/message/4511807

  • Rich Client (Ajax) JSF in jdev 10

    hi,
    Could i use ADF Faces Components 11-ji3 tag lib on jdeveloper 10?

    thnx Frank...
    well then,
    could i use Ajax4Jsf with adf?

  • "Developing Smart Web UIs with Ajax, JSF, and ADF Faces" example

    I'm trying to get this example (http://www.oracle.com/technology/pub/articles/cioroianu_jsfajax.html) to work within JDeveloper, during compilation I'm getting an error:
    C:\jptest\view\public_html\msgIndexResp.jsp
    Error(5): tags:property is not a registered tag in that namespace.
    C:\jptest\view\public_html\helloNameResp.jsp
    Error(5): tags:property is not a registered tag in that namespace.
    C:\view\public_html\ajaxCtrl.jsp
    Error(6): tags:response is not a registered tag in that namespace.
    Has anyone attempted at this example and ran into the same problem?
    Thanks
    -Wes

    There is no such document for (1) because we are in the process of delivering design time support for ADF BC integration with ADF Faces, as you mentioned.
    Therefore, you could either continue with ADF UIX, ADFm, ADF BC for the time being, or else try out ADF Faces with session scope Managed Beans. In either case, you'll want to convert this later on, when JDev 10.1.3 completes its support for ADF Faces / ADF BC drag-and-drop integration.
    Kind Regards.

  • Ajax with jsf problem

    Hi
    I have small problem here. I worked struts with ajax before. currently. I m trying to work on ajax with jsf, here i m getting the problem. i created one ajaxaction class its extends httpservlets. then i created one manage bean, then i want to call the class using javascript, i dont know how to do. can any one help for me.
    Thanks

    I have never worked with the AJAX + JSF combo before, but I know that you can invoke a managed bean action using javascript and the h:commandLink and h:commandButton elements.
    <h:form id="form1">
        <h:commandLink id="link1" action="#{MyBean.action1}"><h:outputText value="link" /></h:commandLink>
        <h:commandButton id="button1" action="#{MyBean.action2}" value="button" />
    </h:form>
    <f:verbatim><script>
        function myFunction() {
            document.getElementById('form1:link1').onclick(); // this invokes the #{MyBean.action1}
            document.getElementById('form1:button1').click(); // this invokes the #{MyBean.action2}
    </script></f:verbatim>I haven't tried other ways yet. But this might give you an idea.

  • Error while running JSF program in netbeans ide

    Hello guys,
    I was working with JSF on Netbeans 6.1 IDE. but was unable to run the application and got the following error :
    " javax.servlet.exception:PWC 1244: servlet execution threw an exception"
    "java.lang.NoSuchFieldError:IS_UNIT_TEST_MODE".
    However, this error ocurred only with JSF framework projects and not for JSP ones. So, the JSP files are built and run successfully.
    Please help me out with this.

    says it all really. You're trying to access something that doesn't exist, either explicitly or implicitly.
    Don't do that.

  • Best Practices for Using JSF with AJAX - BluePrints OR Ajax4Jsf ?

    I am a newbie to AJAX4JSF . I think it provides Rapid Application Development (RAD) just by using tags like a4j: without the need to develop complex JSF Custom Components as shown in BluePrints Catalog
    https://bpcatalog.dev.java.net/ajax/jsf-ajax/
    I understand the purpose of developing JSF Custom components as Reusable for using with AJAX. But its complex and requires lot of coding i.e. PhaseListeners and Managed Beans. There should be easy way to do this especially our project needs RAD tool like AJAX4JSF.
    Any suggestions will be highly appreciated
    Regards
    Bansi

    Bansi, you are trying to compare orange-to-apple. Blue print catalog is a historical retrospection about what people thought about AJAXifying JSF in the past. Currently, the playground has been moved to the jsf-extension project. Look for DynaFaces there.

  • Best Practices of using AJAX with JSF : BluePrints or  Ajax4Jsf ?

    am a newbie to AJAX4JSF . I think it provides Rapid Application Development (RAD) just by using tags like a4j: without the need to develop complex JSF Custom Components as shown in BluePrints Catalog
    https://bpcatalog.dev.java.net/ajax/jsf-ajax/
    I understand the purpose of developing JSF Custom components as Reusable for using with AJAX. But its complex and requires lot of coding i.e. PhaseListeners and Managed Beans. There should be easy way to do this especially our project needs RAD tool like AJAX4JSF.
    Any suggestions will be highly appreciated
    Regards
    Bansi

    Bansi, you are trying to compare orange-to-apple. Blue print catalog is a historical retrospection about what people thought about AJAXifying JSF in the past. Currently, the playground has been moved to the jsf-extension project. Look for DynaFaces there.

  • [ANNOUNCE] Exadel's Max Katz talks about JSF and AJAX

    Hello,
    I'm pleased to announce that JSF Central has just published an interview with Exadel senior systems engineer Max Katz. In the interview, Max talks about the key value and benefits of JSF, how it compares to other frameworks, why it is such a good fit for AJAX, and support for JSF technology at Exadel.
    Here's a quote:
    KM: What do you think is the key value of JSF?
    MK: It's definitely the component-based approach to building web applications, and that it's a standard. JSF has introduced a new paradigm to web application development�building applications out of components. It allows developers to concentrate on application business logic rather than on little details of HTML and other plumbing that is common to all web applications.
    Being a standard is very important for the community, and it helps vendors like Exadel create advanced visual tools. The component-based approach also gave rise to vendors building web components, which also benefits developers. Instead of spending two weeks on integrating a calendar feature into your application, you can now get a calendar component and concentrate on the business problem you're trying to solve.
    KM: Let's talk about AJAX for a moment. What do you think makes JSF such a good fit for AJAX?
    MK: It's the component approach that makes AJAX such a good fit for JSF. You develop your application out of JSF components that provide AJAX functionality. This approach hides all the complexity of JavaScript and XML. Developers don't need to work with error-prone JavaScript making sure it works in all browsers. The AJAX JSF components are tested, ready-to-use components. From the developer perspective, there is really no difference between using the commandButton standard component and using the JSF AJAX drag-and-drop components. The AJAX component is simply a lot more sophisticated in what it does. You can add AJAX functionality in a matter of minutes by using such components. It's very powerful.
    To see the rest of the article, visit
    http://www.jsfcentral.com/articles/katz-06-16-06.html.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Kito D. Mann
    Author, JavaServer Faces in Action
    http://www.virtua.com - JSF/Java EE consulting, training, and mentoring http://www.JSFCentral.com - JavaServer Faces FAQ, news, and info

    The posted link led to a *404*.
    I think I found the podcast and transcript under [article on JSFCentral.com|http://www.jsfcentral.com/listings/R2925?link] . Kito: is this the correct location?

  • ANN: Ajax4jsf . New Open Source project that brings AJAX capability to JSF

    I would like to inform everybody about the new Open Source project - Ajax4jsf. It is hosted on java.net
    URL: https://ajax4jsf.dev.java.net/
    Ajax4jsf is a rich component framework that has been created exclusively to bring rich user interface functionality to the JavaServer Faces. It enables page-wide AJAX support instead of the traditional component-wide. It means you can define the event on the page that invoke AJAX request and area(s) of the page that should be synchronized with the JSF Component Tree after the AJAX request changes the data on the server according to the events fired on the client.
    Actually, ajax4jsf is based on the framework, Alexander Smirnov introduced last summer ( http://smirnov.org.ru/en/ajax-jsf.html ) . He is an architect for ajax4jsf right now.
    In addition to the features the previous version of his framework had, we already added the following:
    * Framework for support easy change "look and feel" ( skinning )
    * Support for handle off-page resources ( JavaScript, CSS styles, images, objects). Resources can be placed in application classpath ( for example, put in JAR), generated by program ( for example, paint images by Java2D or JAI ), with full caching support
    * Templating system for easy creating components renderers ( using jsp-like xml template instead of direct call write...() methods )
    * Special JTidy-based response filter - it can correct any HTML code from components to avoid incompatibilities with DHTML
    Sergey : https://ajax4jsf.dev.java.net/

    You can find (simple) samples here:
    [https://javaserverfaces.dev.java.net/servlets/ProjectDocumentList?folderID=4036&expandFolder=4036&folderID=0]
    [http://www.coreservlets.com/JSF-Tutorial/]
    You can find a HTML/rich text editor as JSF component in the Mojarra Scales component library: [https://scales.dev.java.net/htmlEditor.html].

  • What is the best IDE for JSF

    Hi,
    We are about to start a new project using Technologies like Spring and JSF. I am looking for some IDE which provide us Drag and Drop support for JSF components.
    Moreover, the IDE is plugable with third party JSF components. So that all those component are available at Design Time.
    Till now, i am thinking for Sun Creator, but i am looking for suggestions.

    Hi Ali,
    I would suggest you go with NetBeans IDE 5.5 and using Visual Web. If you want to use Spring Framework, you can also do that because plugin for spring framework is available too.
    I've recently created my project which was using EJBs and I found NetBeans a single IDE to develop complete enterprise application.

Maybe you are looking for