facebook

ICEfaces Tutorial

  1. MyEclipse Archived
  2.  > 
  3. Examples On-Demand
Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #291070 Reply

    Douglas M Hurst
    Participant

    There’s some source code to be cut/pasted in this tutorial

    private ArrayList<CustomerBean> customerList = new ArrayList<CustomerBean>();

    public SessionBean(){
    customerList.addAll(customerDAO.findAll());
    }

    public ArrayList<CustomerBean> getCustomerList() {
    return customerList;
    }

    public void setCustomerList(ArrayList<CustomerBean> customerList) {
    this.customerList = customerList;
    }

    Does this actually refer to the Customer.java class created through the reverse engineering? This was not named CustomerBean, but rather just Customer. I saw no instructions to create a CustomerBean class?

    Does Customer.java need to be placed in the faces-config.xml file with the managed-bean-name “customer”?

    The tutorial asked that you double-click on column’s OutputText component and enter a value of #{customer.contactfirstname}, but unless the Customer.java class is placed in the faces-config.xml file with a managed-bean-name of customer, it seems like you’d have to reference this as Customer.contactfirstname, etc.

    Unlike many of the tutorials, this one is very incomplete a vague. One example:

    The tutorial asks you to double-click on the Output Text component and enter a value of … It doesn’t say this value must be entered in the properties view. It makes it sound like you can enter it right in the design view of MyJsp.jsp, which I don’t find to be the case.

    I know you guys are busy with new design work and you’re probably understaffed, but these tutorials are crucial for us 2nd tier programers to learn how to use MyEclipse. Accuracy and detail are very important for the tutorials… at least in my estimation.

    Doug Hurst

    #291073 Reply

    Riyad Kalla
    Member

    Doug,

    This is my fault, it’s been on my plate to rewrite this thing (we received this one) and you are right… it’s confusing.

    Here’s an example project I did for EclipseWorld that should be much easier to follow and make sense of:
    http://www.myeclipseide.com/documentation/eclipse-world-2008/javaee-shoot-out/EmployeeWeb.zip

    and here’s a slightly more complex one by Greg:
    http://www.myeclipseide.com/documentation/eclipse-world-2008/web20-development/ICEfacesDemoProject.zip

    I hope those should provide better footing for you.

    #291087 Reply

    Douglas M Hurst
    Participant

    Thanks, both those examples came right up and I’m reviewing them now. And they’ve got the Spring 2 framework layer in there. Perfect.

    #291124 Reply

    Douglas M Hurst
    Participant

    You’ve probably closed this out. I hope not just yet. I find myself understanding a good portion of what’s happening in EmployeeWeb.

    In my normal JSF work, I’ve used both “command buttons” with either action or actionListeners. In most cases when I’ve used an action, it’s called a String method and the return value is washed through faces-config.xml to determine which page to present.

    In the SessionBean of EmployeeWeb, neither the addEmployee() nor removeEmployee() method are String functions, so I’m wondering about the navigation?

    Since these two projects, EmployeeWeb and ICEfacesDemoProject are not yet wrapped in tutorials, I’m also wondering where …

    <application>
    <view-handler>com.icesoft.faces.facelets.D2DFaceletViewHandler</view-handler>
    </application>

    … comes from in faces-config.xml? Was that generated by merely adding the ICE Faces capability or is it specific to displaying the 4-wide employee rendering?

    When I add or remove an employee, it appears that the page is refreshing in an “AJAX” sort of way and not a complete page refresh? Is this the magic of ICE? I guess I better go to their web site and muck about.

    I suppose a lot of this stuff is happening through the magic of the ICE .jar files in the library. I could probably implement something like this without a full understanding of what’s going on, but I hope there will be a tutorial soon that explains some of the particular ICE complexity.

    The big problem with all AJAX, from a government contractor standpoint is that it renders most applications non-508 compliant. In the classic example of entering a Zip code and having the screen refreshed with City and State, Unless you can find a way to verbalize that City and State, a handicapped user may encounter problems.

    #291151 Reply

    Douglas M Hurst
    Participant

    One last thing. I was over at the ICE Faces (.org) web site I got their autocomplete tutorial up and running under MyEclipse (still trying to figure it all out). I also noticed that in their tutorial section, they have a link to the very same ICE Faces tutorial you indicated was confusing based on the beginning of this thread.

    It seems to me that you’re going to have a lot of confused, frustrated MyEclipse customers on your hands if you don’t get that tutorial cleaned up pretty quickly.

    Doug

    #291171 Reply

    Riyad Kalla
    Member

    In the SessionBean of EmployeeWeb, neither the addEmployee() nor removeEmployee() method are String functions, so I’m wondering about the navigation?

    There is no navigation in those cases, they just stay on the same page. I imagine if you needed to navigate somewhere, you’d use the String-return method.

    <application>
    <view-handler>com.icesoft.faces.facelets.D2DFaceletViewHandler</view-handler>
    </application>

    … comes from in faces-config.xml? Was that generated by merely adding the ICE Faces capability or is it specific to displaying the 4-wide employee rendering?

    Good question, it’s added by the ICEfaces capabilities wizard.

    When I add or remove an employee, it appears that the page is refreshing in an “AJAX” sort of way and not a complete page refresh? Is this the magic of ICE? I guess I better go to their web site and muck about.

    Yes it is. The ICEfaces framework is pretty robust, it even allows for server-side updates to be “pushed” to the page in a highly optimized way as well. It’s slick.

    I suppose a lot of this stuff is happening through the magic of the ICE .jar files in the library. I could probably implement something like this without a full understanding of what’s going on, but I hope there will be a tutorial soon that explains some of the particular ICE complexity.

    For that kind of depth you’ll want to rely on the ICESoft guys; our tutorial will get you on your feet, but we won’t dig into the design approaches of a framework unless application (for quick introductory bits).

    It seems to me that you’re going to have a lot of confused, frustrated MyEclipse customers on your hands if you don’t get that tutorial cleaned up pretty quickly.

    Thank you for the heads up Doug, it’s really a resource problem. We might pull the tutorial temporarily if we get 1 more concerned email about it just to avoid any hickups.

    #291193 Reply

    Douglas M Hurst
    Participant

    Thank you for taking time for such a detailed response. You guys do a wonderful job on this forum.

    #291232 Reply

    Riyad Kalla
    Member

    Thank you Doug

    #291283 Reply

    siberian
    Participant

    Just updated from 6.0.x to 6.6 on OSX and tried to go through the ICEFaces tutorial however MyEclipse does not know how to add a Managed Session Bean (JSF -> Add ManagedBean does not exist in my installation).

    Where is this option?

    Thanks!

    #291369 Reply

    Riyad Kalla
    Member

    siberian,

    I couldn’t reproduce this issue using the ICEfaces example app from the Examples on Demand repository; I opened the faces-config.xml file, right-clicked in the Outline view on Managed Bean and saw “Add” in there and was able to add one.

    Attachments:
    You must be logged in to view attached files.
    #291427 Reply

    siberian
    Participant

    Got it, I was not using the outline view, was expecting it to be in the myeclipse menu or some such thing.

    Thanks!
    John-

    @support-rkalla wrote:

    siberian,

    I couldn’t reproduce this issue using the ICEfaces example app from the Examples on Demand repository; I opened the faces-config.xml file, right-clicked in the Outline view on Managed Bean and saw “Add” in there and was able to add one.

    #291428 Reply

    siberian
    Participant

    Whoa, my network just kicked in and I saw your screenshot.

    I do not have a Flow tab.. Where do I get this?

    I upgraded via Find Upgrades, not a new install. Do I need an entirely new version?

    John-

    @support-rkalla wrote:

    siberian,

    I couldn’t reproduce this issue using the ICEfaces example app from the Examples on Demand repository; I opened the faces-config.xml file, right-clicked in the Outline view on Managed Bean and saw “Add” in there and was able to add one.

    #291558 Reply

    Riyad Kalla
    Member

    John,

    This has been in MyEclipse since 5.5 I think, but it used to be called “Design”, then in 6.5 we renamed it to “Flow” and added another view, the Design tab. You probably just need to upgrade the latest stable… what version of MyEclipse are you on? (You can go to MyEclipse > Installation Summary > Installation Details to check)

    #291659 Reply

    siberian
    Participant

    I was running an older version that was an All In One for Mac OS X.

    I grabbed a 3.3 Classic version and did the normal update process and voila! all is well.

    Thanks!

    John-

    @support-rkalla wrote:

    John,

    This has been in MyEclipse since 5.5 I think, but it used to be called “Design”, then in 6.5 we renamed it to “Flow” and added another view, the Design tab. You probably just need to upgrade the latest stable… what version of MyEclipse are you on? (You can go to MyEclipse > Installation Summary > Installation Details to check)

    #291800 Reply

    Riyad Kalla
    Member

    Awesome, glad to hear it.

Viewing 15 posts - 1 through 15 (of 15 total)
Reply To: ICEfaces Tutorial

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.

You must be logged in to post in the forum log in