facebook

iceFaces 3 – singleSubmit

  1. MyEclipse Archived
  2.  > 
  3. ICEfaces Integration
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #338357 Reply

    Chris Parsons
    Participant

    Thought I would have a look at 2013 and tried the iceFaces ‘singleSubmit’ demo code?

    Preview pane looks fine but the rendered webpage on the browser does not display anything – looks like the JSF tags are not being parsed – does MyEclipse 2013 not support iceFaces 3.0?

    Regards

    Chris

    #338358 Reply

    support-swapna
    Moderator

    Chris,

    MyEclipse 2013 supports ICEFaces 3.0.

    Can you please point us to the tutorial you are following or attach the project as a .zip file to help us investigate further?

    Also share the details of the server and its version you are deploying the project to.

    #338363 Reply

    Chris Parsons
    Participant

    I thought I would run through your tutorial and see that is has not changed for some tiime, and is still full of errors…

    http://www.myeclipseide.com/documentation/quickstarts/icefaces/

    The singlesubmit project is the one from the iceFaces site, but searching for the reference led me to this http://www.icesoft.org/wiki/display/ice/single+submit

    It looks like something has changed for iceFaces 3 and this may not be supported any more (in which case their tutorial needs to be corrected!)

    It would be very useful to get your tutorial corrected and updated though to get me started again?

    Regards

    Chris

    #338587 Reply

    Chris Parsons
    Participant

    I attach a ZIP of my test project – you will see I have had to change/add to the code because the original tutorial did not work – it referred to things that had not been created yet, and referenced methods that returned the wrong object type (findAll and addAll for instance?)

    If you can give me any pointers it would be a great help

    Regards

    Chris

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

    Chris,

    I have escalated it to a dev team member, they will get back to you soon.

    #338740 Reply

    support-tony
    Keymaster

    Chris,

    Yes, the ICEfaces tutorial is out of date. We’ll fix that in a later release. In the meantime, I managed to get the tutorial working by using the following steps.

    1. Follow the JPA tutorial, steps 1, 2 and 3 but create a Web Project, rather than a Java project, accepting defaults. I also selected MyEclipse Tomcat 7 as the runtime, though I’m not sure if this is crucial. In step 3, select the Customer table, not the Productline table. In the generated code, delete references to the Payment object, as the ICEfaces tutorial doesn’t use that and we didn’t generate code for it – this means the constructor for Customer has to be shortened and some other code needs to be deleted.

      I followed the tutorial’s screenshots in selecting the EclipseLink 2.4 libraries and keeping the target runtime of MyEclipse Tomcat 7. If the EclipseLink 2.4 libraries don’t show when you select User Libraries, in step 2.3, follow the instructions for downloading that library, so it can be selected. Other libraries may work and other platforms may work but I tried to follow the tutorial as closely as I could.

    2. Now follow the old ICEfaces tutorial, essentially from step 2, but noting the following changes.

      To add the JSF and ICEfaces capabilities, use the menu items MyEclipse->Project Facets->Install JavaServer Faces Facet and Install ICEfaces Facet. When installing the JSF facet, choose version 2.0, keep the target runtime of MyEclipse Tomcat 7 and set the JSF implementation to Mojarra 2.0.3. For the ICEfaces facet, again, keep the target runtime and deselect the Mobi ICEfaces library.

      There is no need to create a package ahead of defining the new session bean, as the new bean wizard will do that, if necessary. To add a new bean, just edit the faces-config.xml file, click the Managed Beans tab then click Add. The wizard is a little different from the one shown in the old tutorial but not completely – click “Create a new Java class” option on the first page, the next page is a standard new class wizard and then you get taken to a screen similar to the old wizard. Fill in the details and click Finish.

      Follow the changes to the SessionBean class in the old tutorial but the package for your Customer and CustomerDAO classes will likely be different. Note that the old tutorial uses the class name CustomerBean instead of Customer. Use Customer as the class name.

      Instead of creating a JSPX file, create a new XHTML file and select the ICEfaces template. When adding ICEfaces components to the file, you need the ICEfaces ICE Components palette category. To change the value of the outputText components, don’t start typing after double clicking on the component as that selects the “id” property in the Properties view; tab or click to the “value” property before typing.

      When you run the project, use MyXhtml.faces in the URL, instead of MyJsp.iface, where MyXhtml is the name of the XHTML file that you created.

    I haven’t yet looked at Step 4 of the old tutorial but this should get you going. Please ask if you need more help with this.

    #340533 Reply

    support-tony
    Keymaster

    The MyEclipse 2013 SR1 release,containing the updated tutorial, is now available via the download page or via in-product update. Update sites should be available later this week.

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: iceFaces 3 – singleSubmit

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