ADF Regular expression Jspx page error

Hi Friends
Hi all i have requirement that my inputtext box may include charchters numbers and '&' as a special charchters
so i written the below regular expression in validateRegExp tag
<af:validateRegExp pattern="[a-zA-Z0-9&]" messageDetailNoMatch="Inproper text"/>
but when i enter '&' char in the regex of the tag of my jspx page then it gives me compilier error, so is there any way to write the escape charachters in regular expression like '\ ' in java to avoid above problem.
Thanks in advance
Bipin patil
Edited by: Bipin Patil on Aug 2, 2011 1:39 AM

Hi..
can you try with following
for Ex: aA1& pattern
><af:inputText id="it1">
><af:validateRegExp pattern="[a-z][A-Z][0-9][&]" messageDetailNoMatch="Inproper text"/>
></af:inputText>
for Ex: awerrAFDFDF12343&&& pattern(Every item should shown at least one time..)
><af:inputText id="it11">
><af:validateRegExp pattern="[a-z]+[A-Z]+[0-9]+[&]+" messageDetailNoMatch="Inproper text"/>
></af:inputText>
Hope this will helpful..

Similar Messages

  • Use Adf Security In jspx page

    Hi guys,
    Currently I am using default adf security.is there any way to use same security on my login jspx page.
    Thanks,
    Raul

    hi user,
    i hope that you are looking for
    http://www.fireboxtraining.com/blog/2012/02/09/oracle-adf-11g-authentication-using-custom-adf-login-form/
    http://docs.oracle.com/cd/E26098_01/web.1112/e16182/adding_security.htm
    please see the if you want custom login.
    Figure 35-3 Using the Configure ADF Security Wizard to Generate a Simple Login Page
    there is lot of youtube videos. just google it out.
    this is to timo:
    What do you mean by  '...I am using default adf security...'
    if i am understood correctly. while creating new fusion web apps while configuring adf-security HTTP Basic Authentication is comes as default option. he mentioning in that way.
    do You want to secure the login page itself? This doesn't make sense as you need to login to get to the login page.
    i hope he is not asking like as you mentioned.
    from my experience i will interpret like this
    "Currently I am using default adf security".
    he is currently using default adf security(HTTP Basic Authentication).
    is there any way to use same security on my login jspx page.
    he need use the same adf-security concept on custom login page.
    Thanks

  • Regular Expression as page item

    Hello,
    I´m doing a page item validation using Regular Expressions, but my Regular Expression is Dynamic. I have another page item called VL_REGEXP where I set a value of regular expression.
    But, when I write VL_REGEXP as validation expression, it doesn´t test the condition. It only tests when I put the value of the regular expression.
    So, what would I do to pass this Dynamic Regular Expression for validation?
    Example of my settings:
    -- It doesn´t work
    Type of validation:
    Item / Column in expression 1 matches Regular Expression in Expression 2
    Expression 1
    P12_CD_ACCOUNT
    Expression 2
    P12_VL_REGEXP   -- this is what i need!
    -- It works
    Type of validation:
    Item / Column in expression 1 matches Regular Expression in Expression 2
    Expression 1
    P12_CD_ACCOUNT
    Expression 2
    ^(\d\d\.\d\d\d\.\d)+$
    thanks
    Bsalvador

    Not sure if the required substitution processing is supported in the validation expression, but if it is you need to reference the page item using the static text substitution syntax:
    Type of validation:
    Item / Column in expression 1 matches Regular Expression in Expression 2
    Expression 1
    P12_CD_ACCOUNT
    Expression 2
    &P12_VL_REGEXP.

  • How to crate new user in adf security using jspx page

    how to crate new user in adf security using code in java file.plz help me this work will submited to day plz help me...

    sigh
    Search really would help and point you in the right direction. You'd find [url http://forums.oracle.com/forums/thread.jspa?messageID=4584464]this, for example.

  • I don't see the components ADF faces in my JSPX page...

    Hi,
    I don't see my components ADF in my JSPX page when I drag and drop them. I have to run my page to see its contents...
    Can somebody help me please. Is it exists an option in Jdeveloper to mask jspx pages contents?
    I use Jdeveloper 10.1.3.4
    Thks,
    M.

    Hi Shay,
    Thank you very much for the blog's link, I found the solution in metalink, Doc ID: 382812.1 .
    There are many causes that make JSF tags not being displayed properly.
    For me, it was du to the web.xml file :
    ADF Faces pages do not display correctly when using the FacesPageCachingFilter (ADF Faces Cache).
    You can put the following lines in your web.xml file in comment during Design Time:
    +<!--filter>+
    +<filter-name>PCF</filter-name>+
    +<filter-class>oracle.webcache.adf.filter.FacesPageCachingFilter</filter-class>+
    +</filter-->+
    I comment the filter-mapping too :
    +<!--filter-mapping>+
    +<filter-name>PCF</filter-name>+
    +<servlet-name>Faces Servlet</servlet-name>+
    +<dispatcher>REQUEST</dispatcher>+
    +<dispatcher>FORWARD</dispatcher>+
    +</filter-mapping-->+
    Now, all works fine.
    Thks again.

  • Problem in PS5(11.1.1.6) with jspx page opening as popup

    I am trying to open a jspx page which contains af:table in a new window. Each time I open the window I am closing the window. After 3rd attempt the page is hanging to load the page.
    I was able to produce this issue in IE7, IE8 and IE9 but not firefox. In IE7, I was able to reproduce this issue in 3rd attempt but in IE9 it does happen after 7th or 8th attempt. Currently an SR is opened with Oracle Support.
    Any help will be appreciated.
    Version: PS5-11.1.1.6
    Integrated Weblogic Domain.
    This problem is not happening in PS4 (11.1.1.5).
    Steps:
    1. Create an ADF application with Jspx page and add a table. Open the page from html using a href tag with target="_blank".
    2. open the jspx page by clicking on the link in a new window. Close the popup window
    3. Repeat step 2. In IE7 3rd attempt the page will be keep on looping trying to render the page
    I have noticed below exception in the diagnostic logs
    [2013-05-23T11:39:27.599-05:00] [DefaultServer] [WARNING] [] [oracle.adf.controller.faces.lifecycle.Utils] [tid: [ACTIVE].ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: anonymous] [ecid: aa5c8768ae0561d4:1267b2c4:13ed1c1d7d9:-8000-0000000000000b82,0] [APP: Application3] ADF: Adding the following JSF error message: java.lang.NullPointerException[[
    java.lang.NullPointerException
         at oracle.jbo.domain.TypeFactory.get(TypeFactory.java:558)
         at oracle.jbo.domain.TypeFactory.getInstance(TypeFactory.java:351)
         at oracle.adf.model.binding.DCMethodParameterDef.resolveParameterValue(DCMethodParameterDef.java:225)
         at oracle.adf.model.binding.DCMethodParameter.resolveParameterValue(DCMethodParameter.java:57)
         at oracle.adf.model.binding.DCInvokeMethod.fetchAndSaveParameterValues(DCInvokeMethod.java:325)
         at oracle.adf.model.binding.DCInvokeMethod.callMethod(DCInvokeMethod.java:239)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1635)
         at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2150)
         at oracle.adf.model.bean.DCBeanDataControl.invokeOperation(DCBeanDataControl.java:469)
         at oracle.adf.model.adapter.AdapterDCService.invokeOperation(AdapterDCService.java:313)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:740)
         at oracle.jbo.uicli.binding.JUMethodIteratorDef$JUMethodIteratorBinding.invokeMethodAction(JUMethodIteratorDef.java:173)
         at oracle.jbo.uicli.binding.JUMethodIteratorDef$JUMethodIteratorBinding.initSourceRSI(JUMethodIteratorDef.java:656)
         at oracle.adf.model.binding.DCIteratorBinding.callInitSourceRSI(DCIteratorBinding.java:1672)
         at oracle.adf.model.binding.DCIteratorBinding.internalGetRowSetIterator(DCIteratorBinding.java:1645)
         at oracle.adf.model.binding.DCIteratorBinding.refresh(DCIteratorBinding.java:4395)
         at oracle.adf.model.binding.DCExecutableBinding.refreshIfNeeded(DCExecutableBinding.java:341)
         at oracle.adf.model.binding.DCIteratorBinding.getDeferredEstimatedRowCount(DCIteratorBinding.java:3752)
         at oracle.jbo.uicli.binding.JUCtrlRangeBinding.getDeferredEstimatedRowCount(JUCtrlRangeBinding.java:126)
         at oracle.adfinternal.view.faces.model.binding.RowDataManager._getRowCount(RowDataManager.java:523)
         at oracle.adfinternal.view.faces.model.binding.RowDataManager.getEstimatedRowCount(RowDataManager.java:321)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel.getEstimatedRowCount(FacesCtrlHierBinding.java:747)
         at org.apache.myfaces.trinidad.component.UIXCollection.getEstimatedRowCount(UIXCollection.java:1298)
         at oracle.adfinternal.view.faces.renderkit.rich.table.BaseTableRenderer.getEstimatedRowCount(BaseTableRenderer.java:1793)
         at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer.renderDataBlockRows(TableRenderer.java:1690)
         at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer._renderSingleDataBlock(TableRenderer.java:1618)
         at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer._handleDataFetch(TableRenderer.java:1020)
         at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer.encodeAll(TableRenderer.java:506)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
         at org.apache.myfaces.trinidad.component.UIXCollection.encodeEnd(UIXCollection.java:538)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
         at oracle.adfinternal.view.faces.util.rich.InvokeOnComponentUtils$EncodeChildVisitCallback.visit(InvokeOnComponentUtils.java:113)
         at org.apache.myfaces.trinidadinternal.context.PartialVisitContext.invokeVisitCallback(PartialVisitContext.java:222)
         at org.apache.myfaces.trinidad.component.UIXIterator.visitTree(UIXIterator.java:251)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:443)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:326)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:443)
         at oracle.adf.view.rich.component.rich.RichDocument.visitTree(RichDocument.java:198)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:443)
         at oracle.adfinternal.view.faces.util.rich.InvokeOnComponentUtils.renderChild(InvokeOnComponentUtils.java:43)
         at oracle.adfinternal.view.faces.streaming.StreamingDataManager._pprComponent(StreamingDataManager.java:756)
         at oracle.adfinternal.view.faces.streaming.StreamingDataManager.execute(StreamingDataManager.java:525)
         at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer._encodeStreamingResponse(DocumentRenderer.java:3606)
         at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer.encodeAll(DocumentRenderer.java:1508)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
         at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:266)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:197)
         at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)
         at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:193)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:911)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:367)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:222)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)

    I would like to step back and would like to explain some details about the requirement.
    The original requirement is to integrate this application with one of our legacy application which uses jsp and html. We open webcenter portal page as a new window from the legacy application using javascript window.location. The business requirement is to keep the legacy page open and process the use case in webcenter portal page which contains table and popup components. So, the users of the legacy application will open the page in new window and as they complete each use case they close the browser and again open with new use case.
    Everything was perfectly working till we started all our applications to PS5. We started seeing above problem.
    I was able to narrow down the problem and found that the issue is causing because of using table and popup component on the page.
    oracle support just confirmed that this is happening only in PS5 and not in PS6.

  • Regular Expression and jUnit in ADF Mobile

    Hi Guys,
    I tried to implement Regular Expression in ADF Mobile, but in my jUnit that I was configured to unit test purpose in my application.
    Shown error below inside jUnit plane.
    java.lang.NoClassDefFoundError: oracle/adfmf/util/regex/Pattern
    How to solve this issue for jUnit ?

    I'll start by answering your Q2 - while in theory you can use the same application for both accessing from a browser on a pc and on a phone - in reality the user experience on the phone is not going to be good because of the limitation of the screen size. Users will need to constantly zoom-in scroll around etc. This is why many people who target application for smart phones prefer to build a separate UI for the mobile device.
    Now question 4 which relates to 1 - We haven't tested the ADF Faces components on the browser of blackberry and so there is a chance that some of their functionality won't work there. We did test and certify the ADF Faces components with the safari mobile browser (iOS) - so this is why you see them work there better.
    This is why we recommend that if you are targeting a blackberry (and other mobile devices) you'll use the Trinidad set of components and in general ADF Mobile Browser project type.
    (see example here: https://blogs.oracle.com/shay/entry/building_iphone_interfaces_for_oracle ). This also means that you'll have the check box checked for mobile device when you create a JSF page.
    For question 3 - when the next ADF Mobile solution will be released you'll be able to create applications that install on the device itself.

  • Inline display of error message for a regular expression validation

    Hi All,
    I am using ApexLib in my application.
    I am using regular expression validation for some of the items.
    Those validation will happen when the button is pressed and the message will be displayed as per the error.
    But, I want the errors to be displayed immediately when the focus is away from that item.
    as we do for required items.
    could anybody help me to achieve it?
    Thanks in advance
    bye
    Srikavi

    Hi Srikavi,
    to achieve a Validation of an item when leaving the field you'll have to use some javascript code (as ApexLib does internally).
    What do you need:
    - onChange - Event on your Item
    - some Javascript code which is called in the onChange Event (you can put this code either in your page html header or, if it is used more often in your application, in a seperate js File)
    - call the ApexLib method apexlib.error.showError to display your error
    I actually never tried it myself, but i'm pretty sure that this will work (according to what i've seen in the ApexLib code).
    Have fun and tell us how it went,
    Peter
    Edited by: peter_raganitsch on Sep 5, 2008 11:56 AM

  • 403 error accessing ADF app /  500 Internal Server Error accessing page

    Jdeveloper 10.1.3.2
    AppServer 10.1.3
    I have developed and ADF-BC application. It runs great using the local embedded oc4j server. I setup a deployment profile and used the ear file to deploy to the application server. It deploys without error. When I try and test it by drilling down to the app in the enterprise manager, I get a 403 forbidden error. If I try and access the main jspx page directly (http:/server:port/myapp/faces/app/myapp.jspx), I get a 500 Internal Server Error with the following text:
    java.lang.NoSuchMethodError: oracle.adf.share.perf.StateTracker.isActive()Z     
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:137)     
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:627)     
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)     
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)     
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)     
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:299)     
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:187)     
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)     
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)     
    at java.lang.Thread.run(Thread.java:595)
    Thanks in advance for any help.
    Message was edited by:
    jnewhart

    I have updated the ADF library on the application server per this document.
    http://www.oracle.com/technology/products/jdev/howtos/10g/adf_runtime_update_howto.html
    I used the manual method since jdeveloper is not installed on the AS. If it were I would use the ADF installer. Unfortuantely, it did not seem to help.

  • JSPX Page navigation in ADF(Jdev 11.5)

    Hi,
    I am trying to navigate from task flow to a jspx page using the following code, but we are not able to redirect.
    Requirement is:-
    When user is accessing the registration page which is in taskflow, after registration it should automatically redirected to the Login page, but when we write the below line to forward the request, we are facing the below error.
    *"Response already commited"*
    Can anybody Please help or give any alternate approach?
    Code snippet:-
    private void sendForward(HttpServletRequest request,
    HttpServletResponse response, String forwardUrl) {
    FacesContext ctx = FacesContext.getCurrentInstance();
    ExternalContext ectx = ctx.getExternalContext();
    forwardUrl = request.getContextPath() + forwardUrl;
    try {
    ectx.redirect(forwardUrl);
    } catch (IOException e) {
    logger.error("IO Exception destination cannot be found");
    Edited by: 811407 on Oct 12, 2011 12:44 AM

    Hi,
    I dont know exactly how you secured your Application.
    To my understanding, the registrations should not be secured and the let's say home page will be secured.
    So instead of navigating to Login page, you should navigate to the home page and since security is enabled, the user will be redirected to the login page instead.
    Search the ADF tutorials and follow the cue cards of JDeveloper regarding this matter.
    Hope this will help you,
    Regards,
    Dimitris.

  • JspParse Error when trying to run jsp/jspx page deployed on standalone OC4J

    I have ADF Faces Application, which is developed with JDev 11 TP3.
    I have deployed the application to Standalone OC4J Server, packed within JDeveloper 11 TP3.
    The problem comes, when i try to acess my login jsp or other JSPX page,then i receive the following error on the standalone OC4J Server console:
    for the JSP:
    JSP Servlet Error: Internal Error, registered Directive handlers MUST descend from JspDirective
    oracle.jsp.parse.JspParseException: /login.jsp : Line 4,
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    The content of my JSP page (login.jsp) is:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1251"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    for JSPX:
    Directive handlers must descend from JSP Directive..
    But i have:
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=windows-1251"/>
    That works fine with JDev embedded OC4J.
    Thank you in advance,
    Krasimir
    Message was edited by:
    K.Penev

    Same trouble. Anyone have solution?
    JDeveloper 11 TP4
    OC4J 11 TP4 from this http://www.oracle.com/technology/tech/java/oc4j/index.html
    Do this instruction http://www.oracle.com/technology/products/jdev/tips/muench/oc4j11gtp/index.html
    Nothing to change.
    Message was edited by:
    user644372

  • Javascript error on jspx page

    Hello all,
    I am using ADF BC and ADF faces with JDEV version 11.2. I have issue where I have a popup on a page to create a row. Lately, I keep getting error in javascript as x269.getPeer().setBusy(x269,true); I used firebug to get this information and the line is in boot-SHEPHERD-PS1-9296.js
    I am not able to see why I get this error. Does anyone have a clue or resolution to this issue? I am pasting the code of jspx page below -
    <?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:messages id="m1"/>
    <af:form id="f1">
    <af:pageTemplate viewId="/templates/twocol-fixedheader-nomenu.jspx"
    value="#{bindings.pageTemplateBinding}" id="pt1">
    <f:facet name="left">
    <af:panelGroupLayout id="pgl1" layout="vertical">
    <af:panelAccordion id="pa1">
    <af:showDetailItem id="sdi1" stretchChildren="first">
    <af:train value="#{controllerContext.currentViewPort.taskFlowContext.trainModel}"
    id="t1" layout="vertical"/>
    </af:showDetailItem>
    </af:panelAccordion>
    </af:panelGroupLayout>
    </f:facet>
    <f:facet name="center">
    <af:panelGroupLayout id="pgl3" layout="vertical">
    <af:panelHeader text="#{res['create.writeoff.approvalflow']}"
    id="ph1">
    <f:facet name="context"/>
    <f:facet name="menuBar"/>
    <f:facet name="toolbar">
    <af:panelGroupLayout id="pgl2" layout="horizontal">
    <af:trainButtonBar value="#{controllerContext.currentViewPort.taskFlowContext.trainModel}"
    id="tbb1"/>
    <af:toolbar id="t2">
    <af:commandToolbarButton text="#{res['button.save.title']}"
    id="ctbWriteOffExit"
    action="Save" immediate="true"/>
    <af:commandToolbarButton text="#{res['button.exit.title']}"
    id="commandToolbarButton1"
    action="Cancel"
    immediate="true"/>
    </af:toolbar>
    </af:panelGroupLayout>
    </f:facet>
    <f:facet name="legend">
    <af:outputFormatted value="WO#{bindings.Id.inputValue} : #{bindings.Title.inputValue}"
    id="of2"/>
    </f:facet>
    <f:facet name="info"/>
    <af:panelGroupLayout id="pgl4" layout="horizontal">
    <af:spacer width="0" height="10" id="s2"/>
    <af:outputFormatted id="of1"
    value="#{res['create.writeoff.approvalflow.info']}"/>
    </af:panelGroupLayout>
    </af:panelHeader>
    <af:separator id="s1"/>
    <af:panelGroupLayout id="pgl5" layout="horizontal">
    <af:commandToolbarButton id="ctb2"
    text="#{res['button.insert.title']}"
    rendered="#{UserInfoBean.approver}">
    <af:showPopupBehavior popupId="p1"/>
    </af:commandToolbarButton>
    <af:commandToolbarButton id="commandToolbarButton2"
    text="#{res['button.delete.title']}"
    rendered="#{pageFlowScope.WriteOffBean.addedByUser == 'Y' and pageFlowScope.WriteOffBean.approverAddedBy == UserInfoBean.employeeLanId or backingBeanScope.AuthorizationBean.sysAdminRole}"
    action="#{TableBean.deleteApprover_action}"/>
    <af:commandToolbarButton id="commandToolbarButton3"
    text="Insert Before">
    <af:showPopupBehavior popupId="p3"/>
    </af:commandToolbarButton>
    <af:commandToolbarButton id="commandToolbarButton4"
    text="Insert After">
    <af:showPopupBehavior popupId="p3"/>
    </af:commandToolbarButton>
    </af:panelGroupLayout>
    <af:table value="#{bindings.WoApproverVO11.collectionModel}"
    var="row" rows="#{bindings.WoApproverVO11.rangeSize}"
    emptyText="#{bindings.WoApproverVO11.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.WoApproverVO11.rangeSize}"
    rowBandingInterval="0"
    selectedRowKeys="#{bindings.WoApproverVO11.collectionModel.selectedRow}"
    selectionListener="#{bindings.WoApproverVO11.collectionModel.makeCurrent}"
    rowSelection="single" id="t3"
    partialTriggers="::commandToolbarButton2 ::p3 ::d3"
    styleClass="AFStretchWidth" displayRow="last">
    <af:column sortProperty="SeqId" sortable="true"
    headerText="#{bindings.WoApproverVO11.hints.SeqId.label}"
    id="c1">
    <af:outputText value="#{row.SeqId}" id="ot1">
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.WoApproverVO11.hints.SeqId.format}"/>
    </af:outputText>
    </af:column>
    <af:column sortProperty="EmpRoleName" sortable="true"
    headerText="#{bindings.WoApproverVO11.hints.EmpRoleName.label}"
    id="c3">
    <af:outputText value="#{row.EmpRoleName}" id="ot6"/>
    </af:column>
    <af:column sortProperty="Status" sortable="true"
    headerText="#{bindings.WoApproverVO11.hints.Status.label}"
    id="c2">
    <af:outputText value="#{row.Status}" id="ot2"/>
    </af:column>
    <af:column sortProperty="Watcher" sortable="true"
    headerText="#{bindings.WoApproverVO11.hints.Watcher.label}"
    id="c4">
    <af:outputText value="#{row.Watcher}" id="ot5"/>
    </af:column>
    <f:facet name="contextMenu">
    <!--af:popup id="p2">
    <af:menu text="menu 1" id="m2">
    <af:commandMenuItem text="#{res['button.before.title']}" id="cmi1"
    actionListener="#{pageFlowScope.WriteOffBean.onAddApproverBefore}">
    <af:showPopupBehavior popupId="::p3"/>
    </af:commandMenuItem>
    <af:commandMenuItem text="#{res['button.after.title']}" id="cmi2"
    actionListener="#{pageFlowScope.WriteOffBean.onAddApproverAfter}">
    <af:showPopupBehavior popupId="::p3"/>
    </af:commandMenuItem>
    </af:menu>
    </af:popup-->
    </f:facet>
    </af:table>
    <af:popup id="p1"
    popupFetchListener="#{pageFlowScope.WriteOffBean.addApproverPopupFetchListener}"
    popupCanceledListener="#{pageFlowScope.WriteOffBean.addApproverPopupCancelListener}"
    contentDelivery="lazyUncached"
    binding="#{pageFlowScope.WriteOffBean.approverPopup}">
    <af:dialog id="d2" title="Add Approver or Watcher"
    dialogListener="#{pageFlowScope.WriteOffBean.addApproverDialogListener}">
    <af:panelFormLayout id="pfl1">
    <af:inputListOfValues id="empNameId"
    popupTitle="Search and Select: #{bindings.EmpName.hints.label}"
    value="#{bindings.EmpName.inputValue}"
    label="#{bindings.EmpName.hints.label}"
    model="#{bindings.EmpName.listOfValuesModel}"
    required="#{bindings.EmpName.hints.mandatory}"
    columns="#{bindings.EmpName.hints.displayWidth}"
    shortDesc="#{bindings.EmpName.hints.tooltip}"
    autoSubmit="true">
    <f:validator binding="#{bindings.EmpName.validator}"/>
    </af:inputListOfValues>
    <af:selectBooleanCheckbox value="#{bindings.Watcher1.inputValue}"
    label="#{bindings.Watcher1.label}"
    shortDesc="#{bindings.Watcher1.hints.tooltip}"
    id="sbc1"/>
    </af:panelFormLayout>
    </af:dialog>
    </af:popup>
    <af:popup id="p3"
    popupFetchListener="#{pageFlowScope.WriteOffBean.addApproverPopupFetchListener}"
    popupCanceledListener="#{pageFlowScope.WriteOffBean.addApproverPopupCancelListener}">
    <af:dialog id="d3">
    <af:inputListOfValues id="inputListOfValues1"
    popupTitle="Search and Select: #{bindings.EmpName.hints.label}"
    value="#{bindings.EmpName.inputValue}"
    label="#{bindings.EmpName.hints.label}"
    model="#{bindings.EmpName.listOfValuesModel}"
    required="#{bindings.EmpName.hints.mandatory}"
    columns="#{bindings.EmpName.hints.displayWidth}"
    shortDesc="#{bindings.EmpName.hints.tooltip}"
    autoSubmit="true">
    <f:validator binding="#{bindings.EmpName.validator}"/>
    </af:inputListOfValues>
    <af:selectBooleanCheckbox value="#{bindings.Watcher1.inputValue}"
    label="#{bindings.Watcher1.label}"
    shortDesc="#{bindings.Watcher1.hints.tooltip}"
    id="sbc2"/>
    </af:dialog>
    </af:popup>
    </af:panelGroupLayout>
    </f:facet>
    </af:pageTemplate>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>

    Hi,
    build 9296 doesn't sound like a public version of JDeveloper. Is this from a production version ? If not, please test another version and - if required - file a bug
    Frank

  • Error while opening the jspx page

    Hi all
    I am creating a test application that application i am utilizing jheadstart API it is working fine but if I delete my application form my jdeveloper IDE nest time I am loading the same application my jspx page is not showing in code editor it is showing following error
    n error has occurred. Click Details for information that may be useful when diagnosing or reporting this problem
    if click Details I am getting following error
    java.lang.NullPointerException
         at oracle.jdevimpl.webapp.model.content.DocumentInfoManager$XmlDocumentInfoImpl.<init>(DocumentInfoManager.java:360)
         at oracle.jdevimpl.webapp.model.content.DocumentInfoManager$XmlDocumentInfoImpl.<init>(DocumentInfoManager.java:351)
         at oracle.jdevimpl.webapp.model.content.DocumentInfoManager.getDocumentInfo(DocumentInfoManager.java:176)
         at oracle.jdevimpl.webapp.editor.html.HtmlEditor.getDocumentInfo(HtmlEditor.java:592)
         at oracle.jdevimpl.webapp.editor.AbstractWebAppEditor.createDocuments(AbstractWebAppEditor.java:1197)
         at oracle.jdevimpl.webapp.editor.AbstractWebAppEditor.open(AbstractWebAppEditor.java:393)
         at oracle.jdevimpl.webapp.editor.html.HtmlEditor.open(HtmlEditor.java:172)
         at oracle.jdevimpl.webapp.editor.jsp.JspEditor.open(JspEditor.java:113)
         at oracle.ideimpl.editor.EditorState.openEditor(EditorState.java:239)
         at oracle.ideimpl.editor.EditorState.createEditor(EditorState.java:147)
         at oracle.ideimpl.editor.EditorState.getOrCreateEditor(EditorState.java:90)
         at oracle.ideimpl.editor.SplitPaneState.canSetEditorStatePos(SplitPaneState.java:231)
         at oracle.ideimpl.editor.SplitPaneState.setCurrentEditorStatePos(SplitPaneState.java:194)
         at oracle.ideimpl.editor.TabGroupState.createSplitPaneState(TabGroupState.java:103)
         at oracle.ideimpl.editor.TabGroup.addTabGroupState(TabGroup.java:275)
         at oracle.ideimpl.editor.EditorManagerImpl.createEditor(EditorManagerImpl.java:1261)
         at oracle.ideimpl.editor.EditorManagerImpl.createEditor(EditorManagerImpl.java:1196)
         at oracle.ideimpl.editor.EditorManagerImpl.openEditor(EditorManagerImpl.java:1131)
         at oracle.ideimpl.editor.EditorManagerImpl.whenOpenEditor(EditorManagerImpl.java:2332)
         at oracle.ideimpl.editor.EditorManagerImpl.handleDefaultAction(EditorManagerImpl.java:1893)
         at oracle.ide.controller.ContextMenu.fireDefaultAction(ContextMenu.java:343)
         at oracle.ideimpl.explorer.BaseTreeExplorer.fireDefaultAction(BaseTreeExplorer.java:1576)
         at oracle.ideimpl.explorer.BaseTreeExplorer.dblClicked(BaseTreeExplorer.java:1913)
         at oracle.ideimpl.explorer.BaseTreeExplorer.mouseReleased(BaseTreeExplorer.java:1934)
         at oracle.ideimpl.explorer.CustomTree.processMouseEvent(CustomTree.java:176)
         at java.awt.Component.processEvent(Component.java:5253)
         at java.awt.Container.processEvent(Container.java:1966)
         at java.awt.Component.dispatchEventImpl(Component.java:3955)
         at java.awt.Container.dispatchEventImpl(Container.java:2024)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
         at java.awt.Container.dispatchEventImpl(Container.java:2010)
         at java.awt.Window.dispatchEventImpl(Window.java:1774)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    so if i want solve this issue what i can do
    Any buddy can give some suggestion
    Thanks
    Prabeethsoy

    Hello Prabeethsoy,
    1- May be you just deleted the workspace file, but the contents of the project was still there.
    Then, but re-opening or re-creating it, at the same place, could damaged JDev's setup.
    See my colleague's blog on that :
    - How to delete an entire Workspace or Project ?
    http://blogs.oracle.com/Didier/2008/06/how_to_delete_an_entire_worksp.html
    Also, there is an extension that adds the option to delete a workspace or project
    that you can get from the help->check for updates.
    It's called "Remove Workspaces and Projects".
    2- If the above doesn't work, can you tell me if your application can get opened
    by the same JDev version on a different machine (or different JDev-Home)?
    If so, then keep a backup of your <JDev-home>/jdev/system directory
    and of your application then delete the <JDev-home>/jdev/system directory.
    This will remove the .layout files and reset the layouts to the 'factory settings"
    once JDeveloper is restarted.
    Hope this will help you further.
    Regards,
    Steff

  • Af:serverListener on jspx page - compilation error - jDeveloper 11.1.1.4.0

    I have a weird problem that adding a serverListerner component on jspx page causes compilation error:
    The class of the deferred-methods return type "{0}" can not be found.
    No property editor found for the bean "javax.el.MethodExpression"
    If I remove serverListener (to pass compilation) and then add it again in run-time, it works normally (the backing bean method is being triggered correctly, including passing params, etc).
    It is happening only on the current project, but when I make a test case it works normally. I suspect it has something with the project settings, but I couldn't find the cause regarding that the project has advanced and there are so many differences to be able to do simple comparison.
    Does anyone know what could be the reason for af:serverListener to break compilation, please?
    ... from jspx page...
    <af:resource type="javascript">
    function aaa(event) {
    var esrc = event.getSource();
    AdfCustomEvent.queue(esrc, "bbb", {fvalue : "TEST"},true);
    event.cancel();
    </af:resource>
    <af:inputText label="Label 1" id="it1">
    <af:clientListener method="aaa" type="click"/>
    <af:serverListener type="bbb" method="#{backing_bean.onClick}"/>
    </af:inputText>
    ... from BB ...
    public void onClick(ClientEvent clientEvent) {
    String message = (String) clientEvent.getParameters().get("fvalue");
    System.out.println(message);
    }

    Hi,
    Try like this
    <trh:script>clientListenerMethoName= function(event) {
    var source = event.getSource();
    AdfCustomEvent.queue( source, "serVerListenerType", {}, false); }
    </trh:script>
    Next :
    <af:clientListener method="clientListenerMethoName" type="click"/>
    <af:serverListener type="serVerListenerType" method="#{beanName.methodName}"/>
    Edited by: Raj Gopal K on May 4, 2011 4:05 PM

  • Error when trying to create Graph in jspx. page

    Hi! I use JDeveloper 11.1.1.2.0 Jdeveloper! And when I try to add graph in jspx page, then I have error - see http://my.jetscreenshot.com/2677/20100818-1nk7-135kb
    Can anyone say what is wrong and what to do?
    Best regards, Debuger
    Edited by: Debuger on Aug 18, 2010 5:16 AM

    I have a question and a suggestion:
    Q: are you trying to log in, or not? Have you done anything to enable you application to enable security?
    My suggestion is you give some detail about your application so people can understand what your problem might be. The screenshot is great, but it is not enough. I would like to help you, but if you go about this like a scientist and give everybody as much detail as you can, I am sure you will get better response on this urgent issue.

Maybe you are looking for

  • Expanding Text Box

    Good afternoon, I've recently converted an old Wordperfect document to PDF.  The form has many fillable fields, which have been setup and are working fine.  In the middle of the page, however, there is a place for the person to put in a narrative.  T

  • How to use the hosts.allow option in Directory Server?

    I would like to limit access to a directory server instance to localhost. I see in the Directory Server Control Center that there is an option to do this with a hosts.allow and/or hosts.deny file. What do I enter as the service name for the instance

  • What is the best practice to produce voice-over?

    I have made a video that I would like to add an alternative audio track in Chinese to allow my relatives understand the conversations in the main audio track.  I have never done this before, and would like to ask for advices as to how to proceed. Can

  • Iweb Information From Laptop To  new desktop so they match

    i just got a new desktop and i want the iweb on new computer to match my macbook which has all my sites on it. how do i update new copmuter so they match? and how do i keep them synced so when i do a change on one computer it will update on other.? i

  • Combine tables with common data - union

    Hi, sorry if this has already been posted but I couldn't find a similar thread out there. I have two small tables where there are duplicate parts. I'd like to combine the two into 1. Table 1 Part_Num Serialized_Part Table 2 Part_Num Hazardous_Part a