[ANNOUNCE] MyFaces passed the JSF TCK 1.1

The MyFaces team is very proud to announce the fact, that the current
codebase has just passed all JSF TCK 1.1 tests!
This is a great milestone (actually the greatest since MyFaces has
started in 2003) and we are all looking forward to releasing the first
official certified free open source JSF implementation "Apache MyFaces
1.1.0" soon (after clarifying some legal and technical stuff).
Thanks to every single contributor, who helped making MyFaces another
open source success story.
Manfred Geiler
http://myfaces.apache.org

The MyFaces team is very proud to announce the fact, that the current
codebase has just passed all JSF TCK 1.1 tests!
This is a great milestone (actually the greatest since MyFaces has
started in 2003) and we are all looking forward to releasing the first
official certified free open source JSF implementation "Apache MyFaces
1.1.0" soon (after clarifying some legal and technical stuff).
Thanks to every single contributor, who helped making MyFaces another
open source success story.
Manfred Geiler
http://myfaces.apache.org

Similar Messages

  • [ANNOUNCE] MyFaces 1.0.9(m9) is now available

    From the MyFaces website (http://myfaces.apache.org) ...
    MyFaces 1.0.9(m9) is now available. The (m9) stands for milestone 9. The license agreement covering JSF and all other JCP based specifications require that we use this terminology and avoid the word "final." Once MyFaces passes the TCK we will be able to refer to our releases as final. This is one of the reasons why we initially pulled the release announcement from the website a few days ago. But the release is official now and is available through your nearest Apache mirror. Enjoy!

    Searching for "facelets" at http://www.mail-archive.com/users%40myfaces.apache.org/ gives 24 hits. On the myfaces-user mailing list that stuff has been discussed already. And more help might also be available there...
    hth
    Alexander

  • [TECHNOTE ANNOUNCE]  Error installing Flash Player "The download did not pass the integrity check (16236.304.443)

    All,
    I've published a new technote for folks who are having trouble with the Adobe Download Manager and Flash Player.
    Error installing Flash Player "The download did not pass the integrity check (16236.304.443)
    http://kb2.adobe.com/cps/512/cpsid_51258.html
    Essentially this technote links to the Windows troubleshooting technote here:
    http://www.adobe.com/go/tn_19166
    However, before today the Windows troubleshooting technote only had an EXE install for the ActiveX version of Flash Player 10.  I have now added a link to download the EXE version of the Flash Player Plugin installer as well.
    Please point other users with integrity check errors to the first technote.

    Thank you for the update & Tech Note Announcement. I do have a couple of questions, if you could please respond.
    After uninstalling and ready to download; reading from the link you provided on 9/4/09, Should we follow the normal download instructions
    per #2. "Flash  Player download Center" and if a successful installation is not accomplished, THEN, go to "download and unzip install_Flash_Player_10_Plugin (all other windows browsers) ? Or should the latter step be done in lieu of #2 mentioned. I am assuming the download from F.P. D.L. Center would be done first and then troubleshoot by running the EXE. version of the F.P. Plugin installer.
    Experience has taught me not to assume much, and if you don't know, ask!
    Thanks for your hard work, but you have to admit, for the technically deprived, it is frustrating and confusing.

  • My graphic card failed but passes the recall test - surely Apple would replace it? How wrong can you be!

    Even though I had read about the product recall on some iMacs, mine had never had an issue, but to be safe, the plan was to take it to an Apple store to have them test and replace it.
    A week ago, on occasion, the screen suddenly started going completely gray, everything else seemed to be working fine, and any apps running would continue to do so. Without being able to see the screen, the only options was to power it down, run any diagnostic test and start normally. It passed pro tools tests, with no warnings so I thought it could have been a software issue. After many restarts without anything else plugged in, the iMac appeared to function for maybe a day or so, but gray screen whenever it wanted to.
    So I called Apple, they told me to get it into a service centre, and they would do further tests. Whilst on the phone to the engineer, my iMac with the gray screen suddenly refused to power back up. The engineers tell me that the graphic card fails any benchmarking tests with corruption and the same gray screen issue, so it looks promising yes? No. The specific tests that the machine must fail for the recall - passed.
    Having spent almost an hour on the phone to a Apple senior advisor today, he tells me that it is not covered by the recall !!
    The machine is one of the matching serial numbered machines in the recall, it has suddenly developed a graphic card issue that leaves the machine unusable, it suddenly started having this problem within weeks of the recall being announced - It has the faulty card in it, it has the fault - yet it does not qualify?
    Can someone please tell me what I could have done to get this card replaced without the estimated £250 charge to get my machine running again.
    I am a die hard Apple enthusiast, I have converted everyone I have been in contact with to purchase from them for their legendary customer services and yet feel perplexed as to what I should do next.
    My first reaction is to raise a big fuss about the situation at an Apple store, but I can't blame them too much if my machine does not match the recall criteria - but come on, it can't be a coincident that this card has failed now, can it?
    What do I do next. I don't want to take my machine over to proper Apple store and raise a fuss, that would be counter productive. But  really Apple
    Anyone have a suggestion - would you buy another iMac that could have the same problem and get the same response?
    To any Apple engineers out there who can look at  a case number my ref number is 500592345, apparently there is a lot of info in there, but nothing that will help me!

    Apple engineers do not participate here. The only replies you will normally get are from people who are, like me, just fellow users, and there's nothing any of us can do to intervene in this matter.
    If Apple says that your system is not covered by the recall, there's not much you can do. You can try taking your system to an Apple Store and politely - do not "make a fuss"; polite but gently insistent is much more likely to get you useful results - ask for assistance. Or you can call Apple tech support, ask to speak with customer relations, and explain the situation to them and request coverage under the recall program.
    If all that fails, though, then you're probably at a dead end and will need to pay for the service if you want it done.
    Regards.

  • How to pass the data in jsp using bpel

    Hi,
    Please find the below requirement.
    i need to call jsp post method service using hidden variable i need to pass the input and authentication parameters.
    1. I am using SOA suite 11g and jdev11g
    2. I created a BPEL process and call java wrapper service in that service isent thorugh the post(but here i am trying to it should open al JSP page)
    3. For that JSP page i need to send xml as string and creadentials also as hidden variables.
    4. once i send the request it should open the target system UI page the user will do modifications in target system
    5. The rest of the process is taken care by the target system.
    Please suggest me any other alternatives.
    Note:- here the jsp action is method post . I tried to write a java code to send the request but i am not able to show the response in browser
    Regards,
    Sri.

    Hi vladodias,
    Thanks for the response.
    So i approached the concept calling ADF as a service interface through bpel. from ADF i will call JSP
    But in ADF i am not able to set context. Steps had followed to create Service Interface
    1. created allicaton as a FusionWebApplication(ADF)
    2. created model project and selected adfbusiness components, java
    3. created viewcontroller project and selected ADFFaces,ADFPageFLOW,HTML,JSF,java,xml and jsp servlets
    4. In model i created a applicationmodule and in that i write custommethod validate(String un,String pwd,String input)
    5. in validate method i am calling back bean
    6. In backing bean java class i am trying to access the validate method variables using context but i am not able to set any Faces context.
    Note: here i converted Application module class as a service interface in that i exposed custom Method validate(String un,String pwd,String input)
    Regards,
    Sri.

  • About passing the values attributes of UI components

    Hi,
    I have a question related to passing the values attributes of UI components from JSF to a baking bean.
    Assume I have inputText and I need to pass its value to the data model via an application module. So, this will be done as follows:
    <h:inputText value= "#{bindings.MyValue.inputValue}";
    I need also to pass this value to a managed bean. Therefore I used EL class prepared by Steve Muench available at:
    http://radio.weblogs.com/0118231/stories/2006/12/18/sourceForMyFavoriteElHelperClass.html
    So, in the JSF page will be as follows:
    <h:inputText value="#{myBean.myValue}";
    In managed bean:
    String myValue;
    public String get MyValue () {
    return EL.getAsString("#{bindings.MyValue.inputValue }");
    public void set MyValue t(String value) {
    EL.set("#{bindings.MyValue.inputValue }",value);
    Then when I want to use myVlaue in the managed bean just I use this line:
    myVlaue = get MyValue ();
    I tried to use the same steps to pass the value of selectOneMenu but I always get errors such as cannot be cast to java.lang.String.
    But I achived this by binding the value of selectOneMenu to a HtmlSelectOneMenu attribute in the managed bean as follows:
    In JSF page:
    <h:selectOneMenu value="#{bindings.TaskView1TaskName.inputValue}"
    binding= "#{projectBean.selectOneChoice1}">
    In managed bean:
    private HtmlSelectOneMenu selectOneChoice1;
    public void setSelectOneChoice1(HtmlSelectOneMenu selectOneChoice1) {
    this.selectOneChoice1 = selectOneChoice1;
    public HtmlSelectOneMenu getSelectOneChoice1() {
    return selectOneChoice1;
    Then I can used the selectOneChoice1 value as follows :
    somenu= getSelectOneChoice1();
    somenuValue = (Integer)somenu.getValue();
    task= taskName(somenuValue);
    this works with me. Now what is the different between this way and using EL class
    And how can I use EL class to pass the value of selectOneMenu to the managed bean
    Thank you
    Waheed

    they are look like:
    <list id="TaskView1TaskName" IterBinding="TaskView1Iterator"
    ListOperMode="0" StaticList="true">
    <AttrNames>
    <Item Value="TaskName"/>
    </AttrNames>
    <ValueList>
    <Item Value="value1"/>
    <Item Value="value2"/>
    <Item Value="value3"/>
    </ValueList>
    </list>
    and TaskName is String

  • [ANNOUNCE] MyFaces 1.0.0 alpha released

    This is the first MyFaces release that comes with our own JSF-API (the javax.faces classes).
    So, the jsf-api.jar from the reference implementation is no longer needed!
    In addition to that, the samples from the Sun reference implementation run with MyFaces now!
    Changes in Release 1.0.0 alpha:
    * MyFaces has it's own JSF-API Implementation now!
    * Sun's JSF-RI samples (cardemo, guessNumber) now run with MyFaces!
    * all core tags implemented now
    * new Calendar component (see examples webapp)
    * Bugfixes
    Regards,
    Manfred
    P.S.
    Dedicated to Admam Winer. Yes, you were right about the API classes! ;-)

    why is the encoding of file name is error if I set the JSP encoding to UTF-8?
    the following code can correct the error:
    String s = file.getName();
    byte[] b = s.getBytes("iso-8859-1");
    s = new String(b, "utf-8");
    response.getWriter().println(s);
    the whole code is like this:
    <%@ page import="java.util.Random,java.io.File"%>
    <%@ page session="false" contentType="text/html; charset=utf-8"
    %><%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"
    %><%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"
    %><%@ taglib uri="http://myfaces.sourceforge.net/tld/myfaces_ext_0_9.tld" prefix="x"
    %><html>
    <%@include file="inc/head.inc" %>
    <!--
    * MyFaces - the free JSF implementation
    * Copyright (C) 2003, 2004 The MyFaces Team (http://myfaces.sourceforge.net)
    * This library is free software; you can redistribute it and/or
    * modify it under the terms of the GNU Lesser General Public
    * License as published by the Free Software Foundation; either
    * version 2.1 of the License, or (at your option) any later version.
    * This library is distributed in the hope that it will be useful,
    * but WITHOUT ANY WARRANTY; without even the implied warranty of
    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    * Lesser General Public License for more details.
    * You should have received a copy of the GNU Lesser General Public
    * License along with this library; if not, write to the Free Software
    * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
    //-->
    <body>
    <f:view>
    <f:loadBundle basename="net.sourceforge.myfaces.examples.resource.example_messages" var="example_messages"/>
    <x:panelLayout id="page" layout="#{globalOptions.pageLayout}"
    styleClass="pageLayout"
    headerClass="pageHeader"
    navigationClass="pageNavigation"
    bodyClass="pageBody"
    footerClass="pageFooter" >
    <%@include file="inc/page_header.jsp" %>
    <f:facet name="navigation">
    <f:subview id="menu" >
    <jsp:include page="inc/navigation.jsp" />
    </f:subview>
    </f:facet>
    <f:facet name="body">
    <h:panelGroup id="body">
    <h:messages id="messageList" showSummary="true" showDetail="true" />
    <f:verbatim>
    <h4>File upload</h4>
    <table border="1"><tr><td>
    </f:verbatim>
    <h:form id="form1" name="form1" enctype="multipart/form-data" >
    <h:outputText value="Gimme an image:"/>
    <x:inputFileUpload id="fileupload"
    accept="image/*"
    value="#{fileUploadForm.upFile}"
    styleClass="fileUploadInput" />
    <h:commandButton value="load it up" action="#{fileUploadForm.upload}" />
    </h:form>
    <f:verbatim>
    </td></tr></table>
    <%
    if (application.getAttribute("fileupload_file") != null)
    File file = (File)application.getAttribute("fileupload_file");
    if (file != null)
    String s = file.getName();
    byte[] b = s.getBytes("iso-8859-1");
    s = new String(b, "utf-8");
    response.getWriter().println(s);
    // response.getWriter().println("&#20013;&#25991;");
    %>
    <!--
    <p>The image you loaded up:</p>
    <img src="fileupload_showimg.jsp?dummy=<%=Math.random()%>">
    -->
    <%
    %>
    </f:verbatim>
    </h:panelGroup>
    </f:facet>
    <%@include file="inc/page_footer.jsp" %>
    </x:panelLayout>
    </f:view>
    </body>
    </html>

  • Initialization of the JSF runtime either failed or did not occurr

    Hi, i am newby to Jdev. While working the online tutorial i have the error below. I was about creating a JSF page this error occurs.
    Could someone help me please ?
    Thanks
    Oct 6, 2010 10:31:49 AM javax.faces.webapp
    SEVERE: Initialization of the JSF runtime either failed or did not occurr. Review the server''s log for details.
    java.lang.InstantiationException: org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl
         at java.lang.Class.newInstance0(Class.java:340)
         at java.lang.Class.newInstance(Class.java:308)
         at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:537)
         at javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:386)
         at javax.faces.FactoryFinder.access$400(FactoryFinder.java:135)
         at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:717)
         at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:239)
         at javax.faces.webapp.FacesServlet.init(FacesServlet.java:164)
         at oracle.jdevimpl.webapp.design.support.http.DesignTimeServletInfo._init(DesignTimeServletInfo.java:304)
         at oracle.jdevimpl.webapp.design.support.http.DesignTimeServletInfo.init(DesignTimeServletInfo.java:193)
         at oracle.jdevimpl.webapp.design.support.http.DesignTimeServletContainerContext.initializeLoadOnStartupServlets(DesignTimeServletContainerContext.java:313)
         at oracle.jdevimpl.webapp.design.DesignTimeWebApp._initializeLoadOnStartupServlets(DesignTimeWebApp.java:2661)
         at oracle.jdevimpl.webapp.design.DesignTimeWebApp._initServletContainer(DesignTimeWebApp.java:804)
         at oracle.jdevimpl.webapp.design.DesignTimeWebApp.access$000(DesignTimeWebApp.java:106)
         at oracle.jdevimpl.webapp.design.DesignTimeWebApp$1.run(DesignTimeWebApp.java:712)
         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
         at java.util.concurrent.FutureTask.run(FutureTask.java:138)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
         at java.lang.Thread.run(Thread.java:619)

    The error show up at the time creating brand new jsf page.
    SEVERE: Initialization of the JSF runtime either failed or did not occurr. Review the server''s log for details.
    java.lang.InstantiationException: org.apache.myfaces.portlet.faces.context.FacesContextFactoryImpl
         at java.lang.Class.newInstance0(Class.java:340)
         at java.lang.Class.newInstance(Class.java:308)
    oracle.jdevimpl.webapp.design.support.http.DesignTimeServletContainerContext.initializeLoadOnStartupServlets(DesignTimeServletContainerContext.java:313)
         at oracle.jdevimpl.webapp.design.DesignTimeWebApp._initializeLoadOnStartupServlets(DesignTimeWebApp.java:2661)
         at oracle.jdevimpl.webapp.design.DesignTimeWebApp._initServletContainer(DesignTimeWebApp.java:804)

  • [ANNOUNCE] MyFaces 1.0.6 beta released

    New version 1.0.6 beta of free open source JSF implementation was just released.
    Have a look at http://www.myfaces.org
    This is an overdue maintenance release which also offers some often and long requested issues:
    * Library split - there are now 3 myfaces libs:
    - myfaces-jsf-api.jar = the javax.faces.* classes for compile time
    - myfaces-components.jar = the MyFaces extended and custom components for use with any JSR-127 implementation
    - myfaces.jar = the MyFaces implementation (including extended and custom components)
    * Better Tiles support with our JspTilesViewHandler
    * Switch from LGPL to Apache 2.0 license
    Changes in Release 1.0.6 beta:
    * switch to apache license
    * new JspTilesViewHandler for flawless Tiles support
    * RFE #975649 Enhance HtmlTabbedPaneRenderer (rendered attribute for TabbedPane component)
    * RFE #990814 dataList component ignores styleClass attribute
    * bug #1004867 h:message has duplicate attributes
    * bug #1004896 h:dataTable id attribute not rendered
    * bug #995085 graphicImage ignores value attribute
    * bug #992668 selectOneMenu doesn't restore the bean value if it's a primitive
    * bug #992628 StateManager.SerializedView is not static
    * bug #992629 FacesContext.getRenderKit() unimplemented
    * bug #992452 HtmlTree doesn't properly restore state
    * bug #991740 HtmlTreeRender icon URL conversion
    * bug #991234 command links not working with javascript disabled
    * bug #990395 myfaces.jar has bad taglib descriptor
    * bug #990302 Navigation-Rule redirect
    * bug #985274 f:view locale does not always work
    * bug #978654 Input hidden value of null being converted to zero
    * bug #979038 jsCookMenu component does not create dummyForm
    * bug #979039 default-values for ConvertNumberTag and ConvertDateTimeTag
    * changed build.xml - now myfaces-components are shipped via bin-distribution
    * bug #985217 decorator-factory not supported
    * splitting jar-files (myfaces.jar, myfaces-jsf-api.jar, myfaces-components.jar)
    * new EXPERIMENTAL feature to detect JavaScript support of a client browser
    Regards,
    Manfred

    great!!

  • 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

  • Job scheduling(passing the values to the child program)

    when i'm trying to schedule a background job(using job_open job_submit and job_close) i'm passing the values of the selection screen(parent program) to my child program using set parameter id. And trying to get the values using get parameter id in the cild program.
    But the values of the parent program are not being passed to the child program what may be the cause for it?

    rathan,
    Why con't you use
    SUBMIT... [VIA SELECTION-SCREEN]
    [USING SELECTION-SET <var>]
    [WITH <sel> <criterion>]
    [WITH FREE SELECTIONS <freesel>]
    [WITH SELECTION-TABLE <rspar>].
    When you start an executable program, the standard selection screen normally appears, containing the selection criteria and parameters of both the logical database connected to the program and of the program itself (see Direct Execution - Reports). When you start an executable program using SUBMIT, there are various additions that you can use to fill the input fields on the selection screen:
    SUBMIT... [VIA SELECTION-SCREEN]
    [USING SELECTION-SET <var>]
    [WITH <sel> <criterion>]
    [WITH FREE SELECTIONS <freesel>]
    [WITH SELECTION-TABLE <rspar>].
    These options have the following effects:
    VIA SELECTION-SCREEN
    The selection screen of the called executable program (report) appears. If you transfer values to the program using one or more of the other options, the corresponding input fields in the selections screen are filled. The user can change these values. By default, the system does not display a selection screen after SUBMIT.
    USING SELECTION-SET <var>
    This option tells the system to start the called program with the variant <var>.
    WITH <sel> <criterion>
    Use this option to fill individual elements <sel> of the selection screen (selection tables and parameters). Use one of the elements <criterion>:
    <op> <f> [SIGN <s>], for single value selection
    If <sel> is a selection criterion, use <op> to fill the OPTION field, <f> to fill the LOW field, and <s> to fill the SIGN field of the selection table <sel> in the called program.
    If <sel> is a parameter, you can use any operator for <op>. The parameter <sel> is always filled with <f>.
    [NOT] BETWEEN <f1> AND <f2> [SIGN <s>], for interval selection
    <f1> is transferred into the LOW field, <f2> into the HIGH field, and <s> into the SIGN field of the selection table <sel> in the called program. If you omit the NOT option, the system places the value BT into the OPTION field; if you use NOT, the system fills OPTION with NB.
    IN <seltab>, transferring a selection table
    This addition fills the selection table <sel> in the called program with the values of the table <seltab> in the calling program. Table <seltab> must have the structure of a selection table. Use the RANGES statement to create selection tables.
    WITH FREE SELECTION <freesel>, user dialog for dynamic selections
    To use this option, the called program must be connected to a logical database that supports dynamic selections. In the calling program, use the function modules FREE_SELECTIONS_INIT and FREE_SELECTIONS_DIALOG. They allow the user to enter dynamic selections on a selection screen. One export parameter of these function modules has structure RSDS_TEXPR from the RSDS type group. Transfer the values of this export parameter by means of the internal table <freesel> of the same structure to the called report.
    WITH SELECTION-TABLE <rspar>, dynamic transfer of values
    You need an internal table <rspar> with the Dictionary structure RSPARAMS. The table then consists of the following six fields:
    SELNAME (type C, length 8) for the name of the selection criterion or parameter
    KIND (type C, length 1) for the selection type (S for selection criterion, P for parameter)
    SIGN, OPTION, LOW, HIGH as in a normal selection table, except that LOW and HIGH both have type C and length 45.
    This table can be filled dynamically in the calling program with all of the required values for the selection screen of the called program. If the name of a selection criterion appears more than once, the system creates a multiple-line selection table for that criterion in the called program. If the name of a parameter appears more than once, the system uses the last value. Note that LOW and HIGH have type C, so that the system executes type conversions to the criteria of the called program. This is important for date fields, for example. Before your program is used in a live context, you should check it using the VIA SELECTION-SCREEN addition.
    Except for WITH SELECTION-TABLE, you can use any of the above options several times and in any combination within a SUBMIT statement. In particular, you can use the WITH <sel> option several times for one single criterion <sel>. In the called program, the system appends the corresponding lines to the selection tables used. For parameters, it uses the last value specified. The only combination possible for the WITH SELECTION-TABLE option is USING SELECTION-SET.
    If the input fields on the selection screen are linked to SPA/GPA parameters, you can also use this technique to pass values to the selection screen (see Passing Data Between Programs).
    The following executable program (report) creates a selection screen containing the parameter PARAMET and the selection criterion SELECTO:
    REPORT  demo_program_submit_rep1.
    DATA number TYPE i.
    PARAMETERS      paramet(14) TYPE c.
    SELECT-OPTIONS  selecto FOR number.
    The program DEMO_PROGRAM_SUBMIT_REP1 is called by the following program using various parameters:
    REPORT demo_program_submit_sel_screen NO STANDARD PAGE HEADING.
    DATA: int TYPE i,
          rspar TYPE TABLE OF rsparams,
          wa_rspar LIKE LINE OF rspar.
    RANGES seltab FOR int.
    WRITE: 'Select a Selection!',
    SKIP.
    FORMAT HOTSPOT COLOR 5 INVERSE ON.
    WRITE: 'Selection 1',
         / 'Selection 2'.
    AT LINE-SELECTION.
      CASE sy-lilli.
        WHEN 4.
          seltab-sign = 'I'. seltab-option = 'BT'.
          seltab-low  = 1.   seltab-high   = 5.
          APPEND seltab.
          SUBMIT demo_program_submit_rep1 VIA SELECTION-SCREEN
                          WITH paramet eq 'Selection 1'
                          WITH selecto IN seltab
                          WITH selecto ne 3
                          AND RETURN.
        WHEN 5.
          wa_rspar-selname = 'SELECTO'. wa_rspar-kind = 'S'.
          wa_rspar-sign = 'E'. wa_rspar-option = 'BT'.
          wa_rspar-low  = 14.  wa_rspar-high = 17.
          APPEND wa_rspar TO rspar.
          wa_rspar-selname = 'PARAMET'. wa_rspar-kind = 'P'.
          wa_rspar-low  = 'Selection 2'.
          APPEND wa_rspar TO rspar.
          wa_rspar-selname = 'SELECTO'. wa_rspar-kind = 'S'.
          wa_rspar-sign = 'I'. wa_rspar-option = 'GT'.
          wa_rspar-low  = 10.
          APPEND wa_rspar TO rspar.
          SUBMIT demo_program_submit_rep1 VIA SELECTION-SCREEN
                          WITH SELECTION-TABLE rspar
                          AND RETURN.
      ENDCASE.
    Pls. reward if useful...

  • How to pass the data from a input table to RFC data service?

    Hi,
    I am doing a prototype with VC, I'm wondering how VC pass the data from a table view to a backend data service? For example, I have one RFC in the backend system with a tabel type importing parameter, now I want to pass all the data from an input table view to the RFC, I guess it's possible but I don't know how to do it.
    I try to create some events between the input table and data service, but seems there is no a system event can export the whole table to the backend data service.
    Thanks for your answer.

    Thanks for your answer, I tried the solution 2, I create "Submit" button, and ser the mapping scope to  be "All data rows", it only works when I select at least one row, otherwise the data would not be passed.
    Another question is I have serveral imported table parameter, for each table I have one "submit" event, I want these tables to be submitted at the same time, but if I click the submit button in one table toolbar, I can only submit the table data which has a submit button clicked, for other tables, the data is not passed, how can I achieve it?
    Thanks.

  • Not able pass the data from component to other component.

    Hello All
    I am not able pass the data from component to other component.
    I have done like this.
    1 Main Component (Parent component ) having below  two child components.Embeded as used components.
    2)     Search Component  and Details Component
    3)     In the Search Component having buttons,  Say : Button u201CXu201D on click of button I am navigating to Details component view through FPM.
    4)     When I am clicking above button u201CXu201D raising the event to call the parent   business logic method, there I am getting  Structure with values and binded this structure to the node and Mapped this node to the Details component  interface node. FYI : I kept the debugging point Structure is having data , I had set static attributes table to node instance.
    5)     In the Details component node data is not coming mean empty.
    Thanks in Advance.
    Br-
    CW
    Edited by: CarlinWilliams on Jul 4, 2011 9:21 AM

    Hi,
    When you use input Ext. check that the parent component should not be used as used component in child component.
    Only in the parent component the child components should be used as used components and the usage has to be created for the
    Child Components and the binding of the Node should be done from comp. controller of parent component to child node
    by which you will be able to see double arrow against the node.This should work
    Thanks,
    Shailaja Ainala.

  • Unable to pass the parameter to other portlet

    Hi,
    I am trying to pass the parameter from one portlet to other portlet using the convention below...
    Example say you have two reports on a page dept and employee. You want to refresh employee report by clicking on
    the dept in the department report in the same page.
    (1) Create the first report based on the query
    SELECT htf.anchor('http://domain/servlet/page?&_pageid=97&_dad=portal_dad&_schema=portal_schema&_mode=3&dept_code='||DEPTNO,DEPTNO) Department,
    dname FROM scott.dept;
    (2) Create a 2nd report
    select * from EMP where DEPTNO = :dept_code
    (3) In the the additional pl/sql code section before display page on the 2nd report do this
    portal30.wwv_name_value.replace_value(
    l_arg_names, l_arg_values,
    p_reference_path||'.dept_code',portal30.wwv_standard_util.string_to_table2(nvl(get_value('dept_code'),10)));
    (4) Created a page and added these reports as portlets.
    In point (4) I am not getting the value of selected deptno in 'dept_code'. It is always taking the default value as '10'...
    I like to have the quick solution for this so that I can show the demo to my client...
    Thanks in Advance
    Sudheer

    Hi Ali,
    We can add parameterized queries to any TableAdapter (and controls to accept parameter values and execute the query) using the
    Search Criteria Builder Dialog Box. 
    For detail information, please refer to the following article to create a Windows Form to Search Data:
    http://technet.microsoft.com/en-us/library/hbsty6z7.aspx
    In addition, this issue is more related to Windows Form. I would suggest open a new thread in Windows Form forum if you have any more qestions:
    http://social.msdn.microsoft.com/Forums/windows/en-US/home?forum=winforms
    Regards, 
    Elvis Long
    TechNet Community Support

  • How to pass the parameter values to the stored procedure from java code?

    I have a stored procedure written in sqlplus as below:
    create procedure spInsertCategory (propertyid number, category varchar2, create_user varchar2, create_date date) AS BEGIN Insert into property (propertyid, category,create_user,create_date) values (propertyid , category, create_user, create_date); END spInsertCategory;
    I am trying to insert a new row into the database using the stored procedure.
    I have called the above procedure in my java code as below:
    CallableStatement sp = null;
    sp = conn.prepareCall("{call spInsertCategory(?, ?, ?, ?)}");
    How should I pass the values [propertyid, category, create_user, create_date) from java to the stored procedure?[i.e., parameters]
    Kindly guide me as I am new to java..

    Java-Queries wrote:
    I have a stored procedure written in sqlplus as below:FYI. sqlplus is a tool from Oracle that provides a user interface to the database. Although it has its own syntax what you posted is actually PL/SQL.

Maybe you are looking for

  • Error When Trying to Schedule Webi report using SAP authentication

    Hii, We are trying to Schedule Webi report in CMC for Group of Users using SAP authentication(SSO) ,While Trying this we are geting error Unable to Connect to SAP BW server Incomplete Logon Data ..(IES 10901) . Authorization done at BI side and Its w

  • Source file- ok to move clips in finder before ingested?

    I haven't installed the new final cut Pro X yet -- however, I'm shooting and wondered if I can downloads clips for different projects, inadvertently shot on the same SD card,   to my computer ( ie. like a virgin  backup), and, from there, move some c

  • Placing a file in application server

    Hi Friends, I have remote access vpn.I am trying to save a csv file in my system following the path of work directory.In the infopackage screen, in the external data tab whenever i give the destination file i am not able to see under work directory(a

  • Copy and Paste Multiple Layers (or Group)

    I'm trying to copy a selection of multiple layers and then New - Paste to create a new document with the multiple layers.  What's the best way to do this?  Any suggestions?

  • Find / Change Replace "End of story" by Paragraph

    Hi tehre, I tried unsuccessfully to find out how to manage to put a paragraph to the end of story to the multiple textframes automatically. There must be some way! Am I right? Thank you!