Forum Stats

  • 3,826,733 Users
  • 2,260,699 Discussions
  • 7,897,064 Comments

Discussions

Using ui:composition while creating task-flows in JDev12c not rendering the page.

When task-flows is created with jsf2.0 in Jdeveloper 12c it failed to render the ui.

For Example , A JSFF page with following code snippet, on render it shows blank page.

<?xml version='1.0' encoding='UTF-8'?>

<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">

 <af:outputText value="This is a test taskflow which does NOT work in OIM 12c" id="ot1"/>

</ui:composition>

Whereas a JSF page created with below code snippet renders fine and display output text.

<?xml version='1.0' encoding='UTF-8'?>

<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"

          xmlns:af="http://xmlns.oracle.com/adf/faces/rich"

          xmlns:f="http://java.sun.com/jsf/core"

          xmlns:c="http://java.sun.com/jsp/jstl/core">

    <af:outputText value="This is a test taskflow which works in OIM 12c" id="ot1"/>

</jsp:root>

is there any thing missing or this is a wrong usage for ui:composition?

Thanks in advance,

Lalit

Tagged:

Answers

  • Timo Hahn
    Timo Hahn Senior Principal Technical Consultant - Oracle ACE Director Member, Moderator Posts: 38,458 Red Diamond

    User, tell us your exact JDev version, please!

    There is a difference how you create a taskflow in the different versions and how pages and fragments are used.

    in 12.2.1.4

    this is the default selection. Now if you create a page inside this taskflow

    you see the 'Facelets' is selected. Only if you have facelets selected, you use the ui:component in a fragment

    and the new fragment shows

    If you select

    you get

    The essential info is that you can't mix JSP XML with Facelets!

    If you created the page using JSP MYL you have to use fragments using JSP XML. If you create a page with Facelets, you have to use fragments built with Facelets.

    Mixing JSP XML and Facelets will result in empty pages or regions.

    Timo

  • LALIT GUPTA-Oracle
    LALIT GUPTA-Oracle Member Posts: 3 Employee

    Following is the Information about JDeveloper version,

    Studio Edition Version 12.2.1.4.0

    Build JDEVADF_PT.12.2.1.4.0_GENERIC_190911.2248.S

    Java(TM) Platform 1.8.0_151

    Oracle IDE 12.2.1.4.42.190911.2248