ADF(trinidad) manyCheckBox problem

Hi there,
I hava a problem using tag tr:selectManyCheckbox in (detailStamp) facet, in insert mode i got the values as a List<String> and it was perfect for me,
but in view mode i cant display the selected checkboxes for user, even when i return the same List<String>.
any help will be great,
thx
Edited by: user9039935 on 24-Jan-2010 05:10

I don't know what you are doing. I have a List in the backing bean. I get the values from the database and I populate the List in the page load method.
private List items;
if (this.items == null){
     this.setItems(new ArrayList());
this.items.add("hp");
                  <af:selectManyCheckbox value="#{backingBeanScope.backing_MyPage1.items}"
                                         binding="#{backingBeanScope.backing_MyPage1.selectManyCheckbox1}"
                                         id="selectManyCheckbox1" autoSubmit="true" layout="vertical"
                                             valueChangeListener="#{backingBeanScope.backing_MyPage1.selectManyCheckbox1_valueChangeListener}">
                    <af:selectItem label="Home Phone" value="hp"
                                   binding="#{backingBeanScope.backing_MyPage1.selectItem14}"
                                   id="selectItem14"/>
                    <af:selectItem label="Work Phone" value="wp"
                                   binding="#{backingBeanScope.backing_MyPage1.selectItem14}"
                                   id="selectItem14"/>
                    <af:selectItem label="Mobile Phone" value="mp"
                                   binding="#{backingBeanScope.backing_MyPage1.selectItem14}"
                                   id="selectItem14"/>
                    <af:selectItem label="Fax" value="fx"
                                   binding="#{backingBeanScope.backing_MyPage1.selectItem14}"
                                   id="selectItem14"/>
                  </af:selectManyCheckbox>

Similar Messages

  • Flash File not Able to Display using ADF Trinidad components..

    Hi All,
    I am trying to display a flash file using ADF trinidad component for one our project but not able to display when embeded inside the code.
    However I am able to directly access the flash file using http://localhost:7101/test/pages/test.swf
    The below Object code is included inside the tr:panelHorizontalLayout tag. I also tried using tr:media but doesnt display anything on the browser.
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="210" height="230" id="footer_ad1" align="bottom">
    <param name="allowScriptAccess" value="sameDomain"/>
    <param name="allowFullScreen" value="false"/>
    <param name="movie" value="http://localhost:7101/test/pages/test.swf"/>
    <param name="quality" value="high"/>
    <param name="bgcolor" value="#ffffff"/>
    <embed src="http://localhost:7101/test/pages/test.swf" quality="high" bgcolor="#ffffff" width="210" height="230" name="test" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave- flash" pluginspage="http://www.adobe.com/go/getflashplayer"/>
    </object>-->
    Thanks
    Chetan

    Hi Ramandeep,
    I tried that option early but did not work. Not able to understand why.
    Below is the code snippet.
    <tr:panelGroupLayout layout="vertical">
    <tr:panelHorizontalLayout>
    <!--Some Portlets are added-->
    <f:verbatim>
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="210" height="230" id="footer_ad1" align="bottom">
    <param name="allowScriptAccess" value="sameDomain"/>
    <param name="allowFullScreen" value="false"/>
    <param name="movie" value="http://localhost:7101/test/pages/test.swf"/>
    <param name="quality" value="high"/>
    <param name="bgcolor" value="#ffffff"/>
    <embed src="http://localhost:7101/test/pages/test.swf" quality="high" bgcolor="#ffffff" width="210" height="230" name="test" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave- flash" pluginspage="http://www.adobe.com/go/getflashplayer"/>
    </object>
    </f:verbatim>
    </tr:panelHorizontalLayout>
    </tr:panelGroupLayout>
    And as I mentioned it works fine when I directly access the flash file by using http://localhost:7101/test/pages/test.swf.
    Thanks
    Chetan

  • Web Center app with ADF Security - login problem

    I have a custome Oracle Web Center app.
    I have a page.html with an embedded login form posting to j_security_check. I've configured the ADF security policies to redirect to a JSPX on successful login.
    When I try the correct username/password, I get redirected not to the page I defined in ADF, but to the root page http://127.0.0.1:7101/MyApp-ViewController-context-root/
    and i get
    Error 403--Forbidden
    I've checked the weblogic.xml as per http://andrejusb.blogspot.com/2009/12/solving-error-403-forbidden-in-adf.html, all the required entries are there.
    This works fine if i use a Login link with
    destination="#{'/adfAuthentication?login=true&amp;end_url=/faces/postLogin.jspx'} "
    which redirects to the default login.html and then to the right page. I've copied the form from the default login.html into my master HTML page.
    Hope my question is clear. Any suggestions why it is going to the wrong URL after login.
    Is there anything specific I should see in the jazn-data.xml or web.xml regarding the post-login URL since i cant see that in either.
    P.S. Have been advised to try here when I originally asked this in the WebCenter forum. Web Center app ADF Security - login problem
    Edited by: new_to_webcenter on 18-Jan-2011 05:25

    Thanks for your response Frank.
    The web.xml has
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>adfAuthentication</web-resource-name>
    <url-pattern>/adfAuthentication</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <role-name>valid-users</role-name>
    </auth-constraint>
    </security-constraint>
    <login-config>
    <auth-method>FORM</auth-method>
    <form-login-config>
    <form-login-page>/login.html</form-login-page>
    <form-error-page>/error.html</form-error-page>
    </form-login-config>
    </login-config>
    When configuring ADF Security via JDev , I chose "Redirect upon successful authentication" to the Welcome Page
    "/faces/postLogin.jspx"
    this then adds into web.xml
    <servlet>
    <servlet-name>adfAuthentication</servlet-name>
    <servlet-class>oracle.adf.share.security.authentication.AuthenticationServlet</servlet-class>
    <init-param>
    <param-name>success_url</param-name>
    <param-value>/faces/postLogin.jspx</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
    </servlet>
    So the sequence which works is:
    Login via the '/adfAuthentication?login=true&end_url=/faces/postLogin.jspx' and this redirects to login.html (OOTB form which posts to j_security_check) and then to the postLogin.jspx
    I'm trying to do away with a Login link, and trying the simple login form embedded in my page alongwith other content.
    So should the form be posting to j_security_check directly or to the adfAuthentication ?

  • Migration of ADF table selection code to Trinidad code problem with RowKeySet

    we found a conversion problem as described below in one of the java files related to Manual UI.
        public void setPsdTable(CoreTable psdTable) {
            this.psdTable = psdTable;
            if (globalBean.isResetCreateRequestPsdQuarters()){
       ADF -code         this.psdTable.setSelectionState(new RowKeySet());
       Trinidad code     this.psdTable.setSelectedRowKeys(new RowKeySet());
                globalBean.setResetCreateRequestPsdQuarters(false);
    In Trinidad RowKeySet is abstract class whereas in ADF the same is normal class. Hence I found the below error message.
    Error(364,45): org.apache.myfaces.trinidad.model.RowKeySet is abstract; cannot be instantiated
    Please guide me if you have an idea on how to change the adf statement to Trinidad code statement “this.psdTable.setSelectionState(new RowKeySet());”

    Hi,
    which "4. click on back button." ? If its the browser back button then this only navigates back the UI not the server state of an application.
    Frank

  • ADF webapp deployment problem...

    I'm using Jdeveloper 11.1.1.2.0 and making some ADF web application.
    Actually deploying to Weblogic has no problem.
    But when I access to the web page, I got a NullPointerException like this:
    java.lang.NullPointerException
    at oracle.adf.model.binding.DCIteratorBinding.getSortCriteria(DCIteratorBinding.java:3710)
    at oracle.adfinternal.view.faces.model.binding.FacesCtrlRangeBinding.__getSortCriteria(FacesCtrlRangeBinding.java:261)
    at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel.getSortCriteria(FacesCtrlHierBinding.java:405)
    at org.apache.myfaces.trinidad.component.UIXCollection.getSortCriteria(UIXCollection.java:476)
    It seems it can't get a data control.
    But when I try on my integrated WLS, it works fine.
    Why did it fail?
    Thanks.

    Thanks, pino.
    But I think why it works fine on Local Integrated WLS.
    it failed only on remote WLS.
    Anyway,
    this is Main.jspx:
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document id="d1" title="HKMC MES POC">
    <af:messages id="m1"/>
    <af:form id="f1">
    <af:panelStretchLayout id="psl1">
    <f:facet name="center">
    <af:decorativeBox id="db1">
    <f:facet name="center">
    <af:panelTabbed id="pt1">
    <af:showDetailItem text="BAM/Dashboard" id="sdi1">
    <af:inlineFrame id="if1"
    inlineStyle="height:100%"
    styleClass="AFStretchWidth"/>
    </af:showDetailItem>
    <af:showDetailItem text="Work Order" id="sdi2">
    <af:panelSplitter id="ps1"
    inlineStyle="width:1282px; height:507px;"
    splitterPosition="520">
    <f:facet name="first">
    <af:panelGroupLayout layout="scroll"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    id="pgl2">
    <af:table value="#{bindings.WomProdMasterView1.collectionModel}"
    var="row"
    rows="#{bindings.WomProdMasterView1.rangeSize}"
    emptyText="#{bindings.WomProdMasterView1.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.WomProdMasterView1.rangeSize}"
    rowBandingInterval="0"
    selectedRowKeys="#{bindings.WomProdMasterView1.collectionModel.selectedRow}"
    selectionListener="#{bindings.WomProdMasterView1.collectionModel.makeCurrent}"
    rowSelection="single" id="t1" width="500"
    partialTriggers="::cb2 ::cb1"
    inlineStyle="height:483px;">
    <af:column sortProperty="OrderIndex" sortable="true"
    headerText="OrderIdx"
    id="c5" align="center" width="45">
    <af:outputText value="#{row.OrderIndex}" id="ot2">
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.WomProdMasterView1.hints.OrderIndex.format}"/>
    </af:outputText>
    </af:column>
    <af:column sortProperty="PlanDate" sortable="true"
    headerText="PlanDate"
    id="c3" width="95" align="center">
    <af:outputText value="#{row.PlanDate}" id="ot4"/>
    </af:column>
    <af:column sortProperty="ProdSeq" sortable="true"
    headerText="Prod Seq."
    id="c2" align="center" width="80">
    <af:outputText value="#{row.ProdSeq}" id="ot5"/>
    </af:column>
    <af:column sortProperty="ModelCode" sortable="true"
    headerText="Model Code"
    id="c4" align="center" width="75">
    <af:outputText value="#{row.ModelCode}" id="ot3"/>
    </af:column>
    <af:column sortProperty="BodyNo" sortable="true"
    headerText="Body No"
    id="c1" align="center" width="73">
    <af:outputText value="#{row.BodyNo}" id="ot1"/>
    </af:column>
    <af:column sortProperty="OptionCode" sortable="true"
    headerText="OpCode"
    id="c6" align="center" width="77">
    <af:outputText value="#{row.OptionCode}"
    id="ot6"/>
    </af:column>
    <af:dragSource actions="MOVE" defaultAction="MOVE"
    dragDropEndListener="#{Master2DelayBean.dragDropEndListener}"
    discriminant="m2d"/>
    </af:table>
    </af:panelGroupLayout>
    </f:facet>
    <f:facet name="second">
    <af:panelSplitter id="ps2" splitterPosition="50">
    <f:facet name="first">
    <af:panelGroupLayout layout="vertical"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    id="pgl1" halign="center"
    valign="middle">
    <p>
    </p>
    <p>
    <af:commandButton text=">" id="cb2"
    actionListener="#{Master2DelayBean.buttonListener}"/>
    </p>
    <p>
    <af:commandButton text="&lt;" id="cb1"
    actionListener="#{Delay2MasterBean.ButtonListener}"/>
    </p>
    <p>
    <af:selectBooleanCheckbox
    id="sbc1"
    label="Insert Before Target Master Record"
    valueChangeListener="#{Delay2MasterBean.chboxChangeListener}"
    value="false"/>
    </p>
    </af:panelGroupLayout>
    </f:facet>
    <f:facet name="second">
    <af:table value="#{bindings.WomProdDelayView1.collectionModel}"
    var="row"
    rows="#{bindings.WomProdDelayView1.rangeSize}"
    emptyText="#{bindings.WomProdDelayView1.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.WomProdDelayView1.rangeSize}"
    rowBandingInterval="0"
    selectedRowKeys="#{bindings.WomProdDelayView1.collectionModel.selectedRow}"
    selectionListener="#{bindings.WomProdDelayView1.collectionModel.makeCurrent}"
    rowSelection="single" id="t2"
    partialTriggers="::cb2 ::cb1" width="500">
    <af:column sortProperty="PlanDate" sortable="true"
    headerText="PlanDate"
    id="c9" align="center" width="95">
    <af:outputText value="#{row.PlanDate}"
    id="ot9"/>
    </af:column>
    <af:column sortProperty="ProdSeq" sortable="true"
    headerText="Prod Seq."
    id="c11" align="center" width="80">
    <af:outputText value="#{row.ProdSeq}" id="ot7"/>
    </af:column>
    <af:column sortProperty="ModelCode"
    sortable="true"
    headerText="Model Code"
    id="c10" align="center" width="75">
    <af:outputText value="#{row.ModelCode}"
    id="ot10"/>
    </af:column>
    <af:column sortProperty="BodyNo" sortable="true"
    headerText="Body No"
    id="c8" align="center" width="73">
    <af:outputText value="#{row.BodyNo}" id="ot8"/>
    </af:column>
    <af:column sortProperty="OptionCode"
    sortable="true"
    headerText="OpCode"
    id="c7" width="77" align="center">
    <af:outputText value="#{row.OptionCode}"
    id="ot11"/>
    </af:column>
    <af:collectionDropTarget dropListener="#{Master2DelayBean.dndListener}"
    actions="MOVE"
    modelName="m2d"/>
    </af:table>
    </f:facet>
    </af:panelSplitter>
    </f:facet>
    </af:panelSplitter>
    </af:showDetailItem>
    </af:panelTabbed>
    </f:facet>
    <f:facet name="top"/>
    </af:decorativeBox>
    <!-- id="af_one_column_stretched" -->
    </f:facet>
    </af:panelStretchLayout>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    And this is MainPageDef.xml
    <?xml version="1.0" encoding="UTF-8" ?>
    <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
    version="11.1.1.55.36" id="MainPageDef"
    Package="oracle.view.pageDefs">
    <parameters/>
    <executables>
    <variableIterator id="variables"/>
    <iterator Binds="WomProdMasterView1" RangeSize="25"
    DataControl="MesAppModuleDataControl"
    id="WomProdMasterView1Iterator"/>
    <iterator Binds="WomProdDelayView1" RangeSize="25"
    DataControl="MesAppModuleDataControl"
    id="WomProdDelayView1Iterator"/>
    </executables>
    <bindings>
    <tree IterBinding="WomProdMasterView1Iterator" id="WomProdMasterView1">
    <nodeDefinition DefName="oracle.model.WomProdMasterView"
    Name="WomProdMasterView10">
    <AttrNames>
    <Item Value="OrderIndex"/>
    <Item Value="PlanDate"/>
    <Item Value="ProdSeq"/>
    <Item Value="BodyNo"/>
    <Item Value="ModelCode"/>
    <Item Value="OptionCode"/>
    </AttrNames>
    </nodeDefinition>
    </tree>
    <tree IterBinding="WomProdDelayView1Iterator" id="WomProdDelayView1">
    <nodeDefinition DefName="oracle.model.WomProdDelayView"
    Name="WomProdDelayView10">
    <AttrNames>
    <Item Value="PlanDate"/>
    <Item Value="ProdSeq"/>
    <Item Value="ModelCode"/>
    <Item Value="BodyNo"/>
    <Item Value="OptionCode"/>
    </AttrNames>
    </nodeDefinition>
    </tree>
    </bindings>
    </pageDefinition>

  • Need help on ADF Trinidad Table

    Hi,
    I got one strange problem, i have one AF Query and result table, in my af query 2 fields are LOV's have created LOV followed by the below link
    http://andrejusb.blogspot.com/2008/11/adf-query-component-and-view-criteria.html LoV is coming fine but on the result table values are coming as a numbers.
    For example in my LOV i have 3 values 1. Apple, 2. Orange 3. Grapes.
    Now in the table fruits coloum i am getting 1 instead of Applet. and another row 3 instead of grapes.
    Can any one help how can i get the values in the table instead of numbers.
    It's urgent for me.
    Regards,

    Hi,
    My problem was resolved, if i use Combo box with list of values is's working fine.
    But here i have one more problem like if i use bind variable in the LOV VO Query then my result is not coming, if there is not bind variable it's working fine and if i use the bind variable in the LOV search option then it's working fine but if i hide the bind variable and set the value in AM prepareSesstion method the LOV is not returning any value.
    Query is:
    select substr(d.description,0,40) description
    from cm_system_users a,
    cm_user_responsibilities b,
    cm_responsibility_processes c,
    cm_processes d
    where a.nt_login =:B_NT_LOGIN
    and a.user_id = b.user_id
    and trunc(sysdate) between b.eff_date and nvl(b.exp_date,sysdate + 1)
    and b.RESPONSIBILITY_ID = c.RESPONSIBILITY_ID
    and c.process_type = d.process_type
    and d.enabled_flag = 'Y' order by d.arguments_flag
    AM Method:
    CmProcessViewImpl vo = getCmProcessView();
    String nt_login = getUserPrincipalName();
    vo.setNamedWhereClauseParam("B_NT_LOGIN", nt_login.toUpperCase());
    vo.executeQuery();
    Can any one help me in this.

  • ADF command link problem

    Hi All,
    I am using Jdeveloper 11g. I have a master-detail relationship tables Order and OrderItem. I have an Order edit page which has editable Order information and a ADF read-only table which contains a list of items associated with the current order. I have a ADF command link on the column LineItemId in the table. When I click the link, it will take me to the item edit page. The problem is, whenever I select any item in the table, I always got the first item loaded in the item edit page. Does anyone has any ideas what I did wrong?
    Here is the portion of the code related to the command link,
    <af:column sortProperty="LineItemId" sortable="false"
    headerText="#{bindings.OrderItemsView2.hints.LineItemId.label}"
    id="c4">
    <af:commandLink actionListener="#{bindings.setCurrentRowWithKeyValue.execute}"
    text="#{row.LineItemId}"
    disabled="#{!bindings.setCurrentRowWithKeyValue.enabled}"
    id="cl1" partialTriggers="::t1"
    action="goOrderItemDetail"/>
    </af:column>
    Thanks in advance,
    John
    Edited by: john wang on Aug 20, 2009 7:31 AM

    Hi Gurus,
    On a seeded page say Page1 one link is availabe which is specific to one Learning Path.
    When i click on that Learning Path's link it is redirecting me to a page say Page2 where it gives the list of different Learning Paths (including Learning Path of Page1) with a link for each Learning Path.
    If i click on that Learning Path's link it takes me to a page say Page3 where it gives the details of that perticular Learning Path.
    The requirement is , If I click on an Learning Path's link on Page1 ,it should redirect me directly to Page3 ( Skipping Page2 ).
    How can it be achieved?
    Please help!!!
    Thanks,
    Srinivas
    Edited by: ChandaS on Aug 20, 2009 8:02 AM
    Edited by: ChandaS on Aug 20, 2009 8:14 AM

  • ADF-BPM integration problem.

    Hi,
    1.I have a small scenario like integrate oracle ADF screen with Oracle BPM Human Task. we didn't use auto generate task form(we are using one adf application which is already developed in Oracle Adf technology).
    2.Those adf screen is populated in BPm work space using url of ADF screen placed in em console.It's fine,it will populated in work space.
    3.But my problem is we can click on the buttons approve or reject on populated adf screen then only human task will modify the running state to completed state.
    Any one have the idea on my requirement Please give the reply.
    (OR)
    Is there any other option can u please post the solution.
    1. My actual scenario is integrate oracle adf Screen with Oracle BPM humantask.(already devloped. note not an auto generate adf application).
    2.That screen Would be populated in BPM work space.So user login to BPM Work space And click on the tabs Reserved or cancel on populated adf screen.
    3.Then only the human will be the state like running to completed state.
    Edited by: Alluri.S.Raju on Dec 6, 2012 12:45 AM

    Hello Rudra Raju,
    Did u get the solution...
    Even iam looking for the same..
    Also I need to pass the Employee ID from Human task to ADF UI So that the User can download the file based on the Employee ID.
    ThankQ!!

  • ADF 12c Rendering Problems at design time

    Hi all,
    I am experimenting the following unexpected rendering problems at Design time with JDEV 12c:
    -  Sometimes a complete page is showed empty or blank but the components exists on the page (you can see them in the structure panel) and the page has no warnings.
    -  Sometimes I cannot click a component because it is behind the container.
    -  Sometimes the containers are rendered in other place on the page.
    -  Sometimes the containers not stretching
    I remember some posts about this problem in 11.1.2.x but I think it was not fixed in 12c. For this reason, I have some questions:
    What is the "real" memory requirement  of Jdev 12c to avoid render problems?
    What is the best configuration in jdev.conf?
    Is it only a memory issue or Is it also a dependency reference problem? According to a blog post of Frank Nimphius:
    Though with Oracle JDeveloper 11g the problem of the IDE not rendering JSF pages properly in the visual editor has become rare, there always is a way for the creative to break IDE functionality. A possible reason for the visual editor in JDeveloper to break is a failed dependency reference, which often is in a custom JSF PhaseListener configured in the faces-config.xml file. To avoid this from happening, surround the code in your PhaseListener class with the following statement (for example in the afterPhase method)
    public void afterPhase(PhaseEvent phaseEvent) {   if(!ADFContext.getCurrent().isDesigntime()){ ... listener code here ... } }
    The reason why the visual editor in Oracle JDeveloper fails rendering the WYSIWYG view has to do with how the live preview is created. To produce the visual display of a view, JDeveloper actually runs the ADF Faces view in JSF, which then also invokes defined PhaseListeners. With the code above, you check whether the PhaseListener code is executed at runtime or design time.If it is executed in design time, you ignore all calls to external resources that are not available at design time.
    source:
    https://blogs.oracle.com/jdevotnharvest/entry/when_jdeveloper_ide_doesn_t
    if it is a known problem, then Why is not fixed in 12c?
    Jhon
    Jdev 12c

    Jhon, what Frank mentioned can't be fixed from the outside. You or the developers who use phase listens without thinking about the design view are the ones to fix this. Frank provided you with the solution for this.
    However, we don't know if you use any self written phase listener. If you don't do this you have another problem. I do see some of your symptoms but can't reproduce them at the moment. As long as we can't reproduce the problem somehow it's difficult to to get a solution.
    My advise is to keep your eyes open (add I do) and whenever you can reproduce this behaviour come back and tell us about it. It's hard or impossible to give the 'best' settings for Jdev.conf as they depend on other factors e.g. operating system, memory, other applications running at the same time and many more.
    Personally I don't change the parameters as long as I can't put the problems to low memory (which I can't at the moment).
    Timo

  • TP4 reusing ADF library migration problem

    Hello,
    I have an application containing multiple Business Components and View Controller projects.
    Common functionality is shared as ADF library between view controller projects. The applicatio was created with TP3 and is working just fine. When ported to TP4, it seems that part of the functionality shared as ADF library is not working.
    To be more specific: the login page is using a backing bean to check the authentication details against the database. The following code is working properly:
            appModule =
                    (ApplicationModule)((DCBindingContainer)getBindings()).getDataControl().getApplicationModule();But, when accessing the BC module from a phase listener using the following code:
            DataControl dc = event.getLifecycleContext()
                .getBindingContext()
                .findDataControl("SharedModuleDataControl"); DataControl is null.
    The same phase listener is working properly when used within the project it was created (and not as imported ADF library)
    Once again, this is happening with TP4, with TP3 everything is working fine.
    Thanks,
    Florin Marcus

    Gabrielle,
    The root of the problem is that JDeveloper makes a copy of the adf-faces-impl.jar in the WEB-INF\lib directory in your project directory. So what was happening is the project contained to old version of this library that still referenced the "selected" attribute. When you built and then ran the project against the new runtime libraries that no longer had this "selected" attribute, the error occurred.
    So the solution to this problem would be for JDeveloper to not copy these libraries into your project directory or to detect that the version has changed and warn you or prompt you to copy the libraries again.
    Jim

  • Oracle ADF 11g – Authentication using Custom ADF Login Form Problem

    Hi Guys,
    I am trying to Authenticate my adf application using custom Login Form.
    following this..
    http://www.fireboxtraining.com/blog/2012/02/09/oracle-adf-11g-authentication-using-custom-adf-login-form/#respond
    But my Login Page is not Loading.I think its sending request in chain.my jdev version is 11.1.1.5.Any Idea.
    Thanks,
    Raul

    Hi Frank,
    I deleted bounded code and In another Unit Test I created a simple login.jspx page and applied form based authentication but still facing same problem means something wrong in starting.
    My login.jspx page is
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
      <f:view>
        <af:document id="d1" >
          <af:form id="f1" >
            <af:panelFormLayout id="pfl1">       
              <af:inputText label="USERNAME" id="it1"
                            />       
              <af:inputText label="PASSWORD" id="it2"
                              />
              <af:commandButton text="LOG IN" id="cb1" />
              <f:facet name="footer">       
              </f:facet>                 
            </af:panelFormLayout>
          </af:form>
        </af:document>
      </f:view>
    </jsp:root>
    Don't know wht real problem is

  • Web Center app ADF Security - login problem

    I'm making an Oracle Web Center app.
    I have an app page.html with an embedded login form posting to j_security_check. I've configured the ADF security policies to redirect to a JSPX on successful login.
    When I try the correct username/password, I get redirected not to the page I defined in ADF, but to the http://127.0.0.1:7101/MyApp-ViewController-context-root/
    and i get
    Error 403--Forbidden
    I've checked the weblogic.xml as per http://andrejusb.blogspot.com/2009/12/solving-error-403-forbidden-in-adf.html, all the entries are there.
    This works fine if i use a Login link with
    destination="#{'/adfAuthentication?login=true&amp;end_url=/faces/postLogin.jspx'} "
    which redirects to the default login.html and then to the right page. I've copied the form from the default login.html into my master HTML page.
    Hope my question is clear. Any suggestions why it is going to the wrong URL after login.
    Is there anything specific I should see in the jazn-data.xml or web.xml regarding the post-login URL since i cant see that in either.

    Ah so when you try to access a JSPX page it works but when you try to access an HTML page it does not work?
    I can't see what the problem could be if it works for a JSPX but not for an HTML. Perhaps something with the filters in the web.xml
    Maybe you should ask this at the ADF forum: JDeveloper and ADF
    The guys there have way more understanding about this stuff than here.

  • ADF Faces skins problems using libraries

    Hi,
    I have been trying to use the tutorial on the following website:
    http://www.oracle.com/technology/products/jdev/101/howtos/adfskins/index.html
    This shows you how to create skins and things. The only problem is that I cannot see the view that is shown in the screenshot. I.e. I get a load of garbled gabage showing me the tags in the document instead of whats visually there.
    I realise this is a problem with the library but everytime I try and set up the JSF and ADF libraries in the JSP Tag libraries of Tools->Manage Libraries I click the Execute Tags in JSP Visual Editor it lets me do it but then I click refresh on the window with sample.jspx in it and JDeveloper just dies.
    The libraries I am using I have downloaded and followed the instructions on
    http://www.oracle.com/technology/products/jdev/howtos/10g/jsf_howto/jsf.html
    To do the JSF libraries and I have followed the same instructions for the ADF libraries. If anyone has any idea I would be glad of the help
    Cheers
    Daniel

    I tried the same example and it is working fine with me. May I know the JDeveloper version you are using?

  • ADF JSF URL problems...

    Hi All,
    I have the following requirement. Please could someone help me out?
    1) I have a dot net application into which I can log in with either the Canadian or US context. This is kind of multi-orging.
    2) Once logged in, the user needs to right click on a value in a panel inside this Windows dot net application and click a menu option.
    3) Once the option is clicked, a new JSF page will open. The URL for this JSF page will have the parameters such as the user country code plus the document number of the panel value.
    4) For this JSF page I am planning on an ADF JSF application. The application module for this application will have two database connections, basically two different schemas which are triggered based on the context information. These are already available in the bc4j.xcfg file.
    5) Based on the country parameter passed in the URL, I need to alternate the database connection information on the root application module created by the application between teh two database schemas using the bc4j.xcfg file in the Model project of the application. This needs to be done dynamically through the code.
    In order to fulfill the above requirement, I need to do the following:-
    1) As soon as the URL is triggered, the ADF application needs to read the URL parameters and set the context specific database schema of the application module without pressing a button or any other manual user trigger in hte JSF page. Basically I am looking at loading the JSF page dynamically after having set the database schema on the application module that was instantiated using the URL parameters
    2) After step 1, since the database schema is now set on the context I will be able to use the database schema to load data from the database objects.
    3) Each schema has a database trigger which runs when the database connection is initiated. This is used to set the multi-org context.
    Please could someone help me out with step 1 above on how to read URL parameters without any user triggers on the JSF page and setting the database schema on the application module being used by the application. Please remember that I am not using JDBC data sources but JDBC URL's to create m application.
    Any code samples to load the current application module instance and setting the database connection on the same from bc4j.xcfg would be very very helpful.
    Thanks a lot.
    Regards,
    Lester.

    Hi safir,
    thanks for your answer.
    With JSF also "normal" Links should be handled like Form-submit links
    ("Command buttons")
    (see in JSF manual "Using java server faces tech.", page 82 Handling Events: Application Events: #
    <i>Because app. events apply to the entire application, this kind of event is currently used for
    navigation between pages of the app.</i>)
    So it is a general Problem, you cannot copy the links from the browser.
    I understand, that is is not a bug,
    but is there maybe a solution for my problem?
    I want to use JSF, because of the good form validation
    operations.

  • ADF faces logout problem

    Hi.
    I've a problem with ADF faces that I didn't had when I was using the JSF reference implementation. W're using Jboss as a container, but that has nothing to do with this.
    Basicly, the users triggers a logoff by clicking a link that leads to the "logoff" JSF page.
    This page has exactly this content, and nothing more:
    <%-- Tag libraries --%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib uri="/WEB-INF/tlds/refdataportal.tld" prefix="r" %>
    <%
    org.mycompany.Util util = new org.mycompany.Util();
    util.logoff(request);
    response.sendRedirect("Goodbye.jsp");
    // code DOES reach this point
    %>
    The logoff function does this:
    // invalidate faces
    FacesBean.releaseContext();
    // invalidate the current session for good measure
    HttpSession session = request.getSession(false);
    if (session != null)
    session.invalidate();
    // force the old session to go to the eternal fields of session objects
    request.getSession(true);
    The redirect to Goodbye.jsp is needed to force a "JBOSS" logoff as well.
    Goodbye.jsp is a JSP page (** not ** JSF) which a simple goodbye message.
    Anyway, since using ADF I get the stacktrace shown below.
    I did try to call release() on AdfFacesContext, but that didn't help.
    Do note that we actually reach the line "// code DOES reach this point" shown in the logoff JSF page above... so the redirect() statement is executed.
    Anybody knows how to deal with this?
    Remember, it used to work perfectly fine with the reference impl.
    Regards,
    Falco Paul
    12:33:44,580 ERROR [Engine] StandardWrapperValve[Faces Servlet]: Servlet.service() for servlet Faces Servlet threw excep
    tion
    java.lang.IllegalStateException
    at com.sun.faces.context.FacesContextImpl.assertNotReleased(FacesContextImpl.java:382)
    at com.sun.faces.context.FacesContextImpl.getExternalContext(FacesContextImpl.java:110)
    at oracle.adfinternal.view.faces.context.AdfFacesPhaseListener._releaseContextIfNecessary(AdfFacesPhaseListener.
    java:129)
    at oracle.adfinternal.view.faces.context.AdfFacesPhaseListener.afterPhase(AdfFacesPhaseListener.java:60)
    at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:211)
    at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:356)
    at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:325)
    at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:190)
    at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    at com.abnamro.crd.admin.PortalFilter.doFilter(PortalFilter.java:113)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:66)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:54)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:535)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
    at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
    at java.lang.Thread.run(Thread.java:534)

    Hi!
    Unfortunally your suggestion didn't work. I did however discover that the exception is only thrown if one uses ADF faces components. There is no error message if reference implementation components are used (even if using the ADF faces renderer class).
    Anyway, this is what I trie:
    I first did a a regular faces responseComplete() call, as I figured that could be the missing action, but again I got the same exception:
    java.lang.IllegalStateException
         com.sun.faces.context.FacesContextImpl.assertNotReleased(FacesContextImpl.java:382)
         com.sun.faces.context.FacesContextImpl.getExternalContext(FacesContextImpl.java:110)
         oracle.adfinternal.view.faces.context.AdfFacesPhaseListener._releaseContextIfNecessary(AdfFacesPhaseListener.java:129)
         oracle.adfinternal.view.faces.context.AdfFacesPhaseListener.afterPhase(AdfFacesPhaseListener.java:60)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:211)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
         oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:356)
         oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:325)
         oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:190)
         oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
         com.abnamro.crd.admin.PortalFilter.doFilter(PortalFilter.java:113)
         org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
    Then later I tried this actually calling the faces "sendRedirect" function shown below (that is: prior to calling the logoff() code), but again I got the same Oracle exception (see above).
    // helper method: redirect to some URL (which may be either absolute or relative)
    public synchronized static void redirect(String url)
    ExternalContext external = getExternalContext();
    if (external == null)
    return;
    try {
    external.redirect(url);
    catch (Exception e)
    e.printStackTrace();
    responseComplete();
    So... unfortunally I did still not get much further...
    Regards,
    Falco

Maybe you are looking for

  • How to read the data from a PDF document into SAP

    Hi Everyone, I am trying to read a PDF document from my desktop and get the data into SAP but i am not getting successful. I am using the method cl_gui_frontend_services=>gui_upload and passing the filename and type and importing the file length and

  • Envelope Printing Incorrectly to HP laserjet

    When installing to one of the Mavericks upgrades last year, my old HP laser jet 3700n would no longer print envelopes correctly from either WordMac or from PrintShop3. I blamed the old age of the printer (More than 10 years) and no recent driver made

  • Problem with change capture

    HI, we've a problem with the Change Capture in the DAC's Execution Plan. We've cretead a new data model but we want to reuse the image table and the Change Capture process, so we've perfomed the following step: 1) create the mapping SDE e SIL for the

  • Extract image and Features from the Catalog via JAVA API

    Hello, I would like to Extract image from the Catalog via JAVA API, Can anybody help on that? I also tried to extract the Features field form the Catalog but results in the error "Features field not found" Any ideas what could have wrong? Many thanks

  • Encore CS5 transcoding problem

    I am using Win7 and trying to create a DVD in Encore CS5, using AVI files created in Prem Pro and can view in Monitor or Preview windows ok. When I transcode and then view in Monitor or Preview window the display simply displays as all horizontal gre