Captch not working in .jsff

Hi...i'm using oracle jdeveloper 11.1.1.4.0. i am trying to use the simple captcha project in .jsff page, but its not working.
In jspx its working fine.
Can u pls help on this.

This would be the non-public released version 11.1.1.4.0 that most readers on this public forum wouldn't have access to? Maybe try internal Oracle forums first.
CM.

Similar Messages

  • Client Listner is not working in jsff

    Hi All Experts,
    I have one requirement , for that i need to generate runtime table (getting coloumns and rows count at runtime). It is working and for that i am using arrayList to implement.
    I need to capture the changed values of textboxes which are that table , so i am using ClientListner And ServerListner
    my code is
    jsff code is
    <af:inputText value="#{party.value}" accessKey="#{tid.index}" id="id12" clientComponent="true" >
    <af:clientAttribute value="#{partyCount.index}" name="partyindex"/>
    <af:clientAttribute value="#{tid.index}" name="billcodeindex"/>
    <af:clientListener method="testFunc" type="valueChange"/>
    <af:serverListener type="testBBFunc" method="#{pageFlowScope.CaseMgmtBean.testBBFunc}"/>
    </af:inputText>
    and javascript code is
    function testFunc(event) {
    pindex= event.getSource().getProperty("partyindex");
    billindex=event.getSource().getProperty("billcodeindex");
    AdfCustomEvent.queue(event.getSource(),"testBBFunc",{newval:event.getNewValue(),billcodeindex:(billindex-1),partyindex:pindex},false);
    but i dont know why it is not calling the listners ,
    Please help
    Edited by: $achin on Feb 12, 2013 7:25 AM

    my code is
    <af:forEach var="count" varStatus="partyCount" items="#{pageFlowScope.CaseMgmtBean.partyCountList}">
    <af:table id="Parttable" rows="1" width="100%" contentDelivery="immediate" autoHeightRows="0"
    horizontalGridVisible="false" verticalGridVisible="false"
    inlineStyle="height:29px;">
    <af:forEach var="party" varStatus="tid" items="#{pageFlowScope.CaseMgmtBean.partyArrayList}">
    <af:column sortProperty="" headerText="" id="c42">
    <f:facet name="header">
    <af:inputText value="#{party.value}" accessKey="#{tid.index}" id="id12" clientComponent="true" autoSubmit="true">
    <af:clientAttribute value="#{partyCount.index}" name="partyindex" />
    <af:clientAttribute value="#{tid.index}" name="billcodeindex"/>
    <af:clientListener method="testFunc" type="valueChange" />
    <af:serverListener type="testBBFunc" method="#{pageFlowScope.CaseMgmtBean.testBBFunc}"/>
    </af:inputText>
    </f:facet>
    </af:column>
    </af:forEach>
    </af:table>
    </af:forEach>
    this is not working ,
    I have done POC with BackingBean as a scope and working fine in it.
    is the problem is with scope

  • Bean is not working in jsff

    hi All
    i developed 4 .jsff fragments and i have included in jspx page .
    i created one bean with 4 variable and i crated datacontrole for the same bean .
    when i am mapping these variables with components which are in .jsff fragments . the values are not coming .
    when i run the .jspx page i am not getting any error and i am getting out put without values which i have written and mapped in the bean .
    Any one please help me.

    Sounds like you are including jsff in the jspx using jsp:include, this approach may not help you if the jsff is built using ADF Binding. Please note that jsp:include will load only the page definition file associated with the parent/containing page.If you are planning to reuse jsff, try defining it as taskflow and embed the same as a region in the jspx

  • Uploading an image is not working in jsff

    Hi.,
    Am using jdeveloper 11.1.1.6.,
    I have used the following link to upload the image in jsff
    http://www.baigzeeshan.com/2010/08/uplaoding-and-downloading-images-in.html
    This is workig perfectly in a jsps page but when i used jsff page am getting exception
        private BlobDomain createBlobDomain (UploadedFile file) throws IOException,
                                                                      SQLException {
            InputStream in = null;
            BlobDomain blobDomain = null;
            OutputStream out = null;
            try{
                in= file.getInputStream();    // am getting null pointer exception
                blobDomain = new BlobDomain();
                out = blobDomain.getBinaryOutputStream();
                byte[] buffer = new byte[8192];
                int bytesRead = 0;
                while ((bytesRead = in.read(buffer,0,8192))!= -1){
                    out.write(buffer,0,bytesRead);
            catch (Exception e){
                e.printStackTrace();
            return blobDomain;
        }Pls help me to resolve this.,

    Thank's for your response John.,
    This is the log which am getting
    java.lang.NullPointerException
         at view.imageServlet.doGet(imageServlet.java:53)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         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.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)This s the doget() method which i have used
        public void doGet(HttpServletRequest request,
                          HttpServletResponse response) throws ServletException,
                                                               IOException {
            response.setContentType(CONTENT_TYPE);
            String eno = request.getParameter("id");
            OutputStream os = response.getOutputStream();
            Connection con = null;
            try{
                Context ctx = new InitialContext();
                DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/UIConnDS");
                con = ds.getConnection();
                PreparedStatement stmt =  con.prepareStatement("SELECT eei_emp_id,eei_emp_image " +
                                          "FROM ess_emp_image " +
                                          "WHERE eei_emp_id = ?");
                stmt.setString(1, eno);
                ResultSet rs = stmt.executeQuery();
                if (rs.next()) {
                    Blob blob = rs.getBlob("eei_emp_image");
                    BufferedInputStream in =  new BufferedInputStream(blob.getBinaryStream());    //This is the part where exception is showing now.
                    int b;
                    byte[] buffer = new byte[10240];
                    while ((b = in.read(buffer, 0, 10240)) != -1) {
                        os.write(buffer, 0, b);
                    os.close();
                    catch (Exception e){
                        e.printStackTrace();
            finally {
                        try {
                            if (con != null) {
                                con.close();
                        } catch (SQLException sqle) {
                            System.out.println("SQLException error");
            }

  • Bean is not worked  in the jsff page

    Hi
    JDeveloper Studio Edition Version 11.1.2.2.0
    I Have a bean for run a jasperreport
    package Reports;
    import javax.faces.event.ActionEvent;
    import sp11.model.apm.clubImpl;
    import java.io.ByteArrayOutputStream;
    import java.io.InputStream;
    import java.math.BigDecimal;
    import java.sql.Connection;
    import java.sql.PreparedStatement;
    import java.util.HashMap;
    import java.util.Map;
    import javax.faces.context.FacesContext;
    import javax.servlet.ServletContext;
    import javax.servlet.ServletOutputStream;
    import javax.servlet.http.HttpServletResponse;
    import net.sf.jasperreports.engine.JasperExportManager;
    import net.sf.jasperreports.engine.JasperFillManager;
    import net.sf.jasperreports.engine.JasperPrint;
    import net.sf.jasperreports.engine.JasperReport;
    import net.sf.jasperreports.engine.type.WhenNoDataTypeEnum;
    import net.sf.jasperreports.engine.util.JRLoader;
    import net.sf.jasperreports.view.JasperViewer;
    import oracle.adf.model.BindingContext;
    import oracle.adf.model.binding.DCIteratorBinding;
    import oracle.binding.BindingContainer;
    import oracle.jbo.client.Configuration;
    public class CardFrontBean {
    public CardFrontBean() {
    public String runReportAction(){
    DCIteratorBinding rleIter = (DCIteratorBinding)getBindings().get("RealentityIterator");
    String RleId = rleIter.getCurrentRow().getAttribute("RleId").toString();
    BigDecimal ID = new BigDecimal(RleId);
    Map parameter = new HashMap();
    parameter.put("ID", ID);// where ID is a jasper report parameter
    try
    runReport("card_front.jasper", parameter);
    catch (Exception e)
    return null;
    public BindingContainer getBindings(){
    return BindingContext.getCurrent().getCurrentBindingsEntry();
    public ServletContext getContext(){
    return (ServletContext)getFacesContext().getExternalContext().getContext();
    public HttpServletResponse getResponse(){
    return (HttpServletResponse)getFacesContext().getExternalContext().getResponse();
    public static FacesContext getFacesContext(){
    return FacesContext.getCurrentInstance();
    public void runReport(String repPath, java.util.Map param) throws Exception {
    Connection conn = null;
    try
    HttpServletResponse response = getResponse();
    ServletOutputStream out = response.getOutputStream();
    response.setHeader("Cache-Control", "attachment;filename=\"CardFront.pdf\"");
    response.setContentType("application/pdf");
    ServletContext context = getContext();
    InputStream fs = context.getResourceAsStream("/ReportsFolder/" + repPath);
    JasperReport template = (JasperReport) JRLoader.loadObject(fs);
    template.setWhenNoDataType(WhenNoDataTypeEnum.ALL_SECTIONS_NO_DETAIL);
    PreparedStatement statement = null;
    String amDef = "sp11.model.apm.club";
    String config = "clubLocal";
    clubImpl am = (clubImpl)Configuration.createRootApplicationModule(amDef,config);
    statement = am.getDBTransaction().createPreparedStatement("select 1 from dual", 0);
    conn = statement.getConnection();
    JasperPrint print = JasperFillManager.fillReport(template, param, conn);
    //JasperViewer.viewReport(print, false);
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    JasperExportManager.exportReportToPdfStream(print, baos);
    out.write(baos.toByteArray());
    out.flush();
    out.close();
    FacesContext.getCurrentInstance().responseComplete();
    catch (Exception jex)
    jex.printStackTrace();
    finally
    close(conn);
    public void close(Connection con){
    if (con != null)
    try
    con.close();
    catch (Exception e)
    and a commandButton in the .jsff page
    <af:commandButton id="Realentitycardfront"
    textAndAccessKey="#{nls['REALENTITY_CARDFRONT']}"
    shortDesc="#{nls['REALENTITY_CARDFRONT_HINT']}"
    action="#{CardFront.runReportAction}"/>
    my .jsff page is in a bounded task flow with Use Page Fragments = true
    when i click the button. ........>nothing
    what is the matter
    i read in a post that it is not work in jsff page with page fragmentation
    please help me
    thanks

    One problem is that you write into the output stream from an action method and don't know what's already in the output stream. Once there is one byte written to hte stream (which you can't know from inside the action method) the pdf stream does not behave as you think it would.
    Next thing is that you use createRootApplicationModule but never release it. This will get you out of resources error eventually.
    A better approach would be to put this code in a servlet and stream the report from there. In the servlet you have control over the output stream.
    Check my blog http://tompeez.wordpress.com/2011/12/16/jdev11-1-2-1-0-handling-imagesfiles-in-adf-part-3/ where I show how to serve images from a servlet which can even use the application module pool from the application (no need to use createRootApplicationModule at all). All you have to do is to exchange the part where I get and stream the image data to your needs.
    Timo

  • Audio captcha is not working in mac safari 5.1.7. We used below code snippet that is working in other browser like IF 7,8,9, crome and firefox. Audio refresh is also not happening. When submit Audio Captcha then jcapcha framework giving InvocationTargetEx

    Audio captcha is not working in mac safari 5.1.7.
    We used a code snippet that is working in other browser like IF 7,8,9, crome and firefox.
    Audio refresh is also not happening.
    When submit Audio Captcha then jcapcha framework giving InvocationTargetException.
    <Edited By Host>

    Audio captcha is not working in mac safari 5.1.7.
    We used a code snippet that is working in other browser like IF 7,8,9, crome and firefox.
    Audio refresh is also not happening.
    When submit Audio Captcha then jcapcha framework giving InvocationTargetException.
    <Edited By Host>

  • ActionListener not working in JSF

    Hi
    The use case for my application is as follows:-
    CommandToolbarButton - Clicked
    Quick Logic in Backing Bean using ActionListener / LaunchListener
    Popup Dialog opens up which has some data given by above code in Backing Bean
    For this my code in jspx is
    <af:toolbar>
    <af:commandToolbarButton immediate="true"
    icon="/ico_delete.gif"
    launchListener="#{TestBean.launchListener}" partialSubmit="true">
    <af:showPopupBehavior popupId="popupDialog"/>
    </af:commandToolbarButton>
    </af:toolbar>
    <!--Pop -->
    <af:popup id="popupDialog" contentDelivery="lazyUncached">
    <f:subview id="popupSubview">
    <jsp:include page="ShowPopup.jsff"/>
    </f:subview>
    </af:popup>
    and code in the TestBean is
    public void launchListener(LaunchEvent launchEvent) {
    System.out.println("TEST");
    // Add event code here...
    But, I am not able to invoke this Listener as I am getting the TEST message. I even tried the same thing by writing a ActionListener as
    public void actionListener(ActionEvent actionEvent) {
    System.out.println("TEST");
    // Add event code here...
    Even this is not working. I have also tried to use <af:commandImageLink> instead of commandToolbarButton, but it is still not working.
    Any help on this problem will be highly appreciated.

    Hi,
    I guess, I couldn't explain my problem clearly, so re-posting the code and the query.
    JSPX Page
    <?xml version='1.0' encoding='windows-1252'?>
    <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-1252"/>
    <f:view>
    <af:document>
    <af:form>
    <af:popup id="popupDialog">
    <af:dialog title="Test Dialog">
    <af:outputText value="TEST Dialog" />
    </af:dialog>
    </af:popup>
    <af:outputText value="test"/>
    <af:toolbar>
    <af:commandToolbarButton immediate="true" icon="/ico_delete.gif"
    launchListener="#{TestBean.launchListener}"
    partialSubmit="true"
    actionListener="#{TestBean.actionListener}">
    <af:showPopupBehavior popupId="popupDialog"/>
    </af:commandToolbarButton>
    </af:toolbar>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    Backing Bean
    public void actionListener(ActionEvent actionEvent) {
    System.out.println("actionListener called");
    // Add event code here...
    public void launchListener(LaunchEvent launchEvent) {
    System.out.println("launchListener called");
    // Add event code here...
    I want to execute some code in one of these listeners, so that I can display corresponding data in
    <af:popup id="popupDialog">
    <af:dialog title="Test Dialog">
    <af:outputText value="TEST Dialog" />
    </af:dialog>
    </af:popup>
    I have tried keeping only one Listeners(from actionListner and launcListener), but it doesn't work.
    Any help will be highly appreciated.

  • Af:inputRangeSlider is not working in JDEV 11.1.1.6.0

    Hi,
    af:inputRangeSlider is not working in JDEV 11.1.1.6.0
    tried dragging and droping it on to a test jspx page.
    page stays in loading mode forever and sometimes page loads,but i am not able to change values of af:inputRangeSlider.
    This seems to be a bug
    on doing inspect element in the browser, i am getting following error
    Uncaught ReferenceError: TrRangeValidator is not defined
    please help me on this
    Regards,
    Shakir

    Hi, just to clear things out, this issue occur in JSFF only, but in jspx, hot code is fine...
    Here is my sample code where the issue occurs.
    HelloWorldTaskFlow.xml
    <?xml version="1.0" encoding="windows-1252" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
      <task-flow-definition id="HelloWorldTaskFlow">
        <default-activity id="__1">viewHelloWorld</default-activity>
        <view id="viewHelloWorld">
          <page>/viewHelloWorld.jsff</page>
        </view>
        <use-page-fragments/>
      </task-flow-definition>
    </adfc-config>
    viewHelloWorld.jsff
    <?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">
      <af:panelBorderLayout id="pbl1">
        <f:facet name="start"/>
        <f:facet name="bottom"/>
        <f:facet name="end"/>
        <f:facet name="top"/>
        <af:panelBox text="PanelBox1" id="pb1">
          <f:facet name="toolbar"/>
          <af:outputText value="Hello World Nakurato!" id="ot1"
                         inlineStyle="font-size:x-large;"/>
        </af:panelBox>
      </af:panelBorderLayout>
    </jsp:root>
    TestPage.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">
          <af:form id="f1">
            <af:region value="#{bindings.HelloWorldTaskFlow1.regionModel}" id="r1"/>
            <af:inputText value="Hello"/>
          </af:form>
        </af:document>
      </f:view>
    </jsp:root>Any change in the jsff file does not take effect immediately when refresh. but in jspx, it works.
    Any thoughts???

  • Java script is not working while coming back to the page.

    Hi Experts,
    I am working in jdev 11.1.1.3.0 with ADF BC.
    I am callling javascript in my jsff, while this javascrip is invoking file download method. this java script i am inovking from another button action, because in some case i need to invoke popup and some case i need to invoke file download for this i have taken one button in that button i am invoking these 2 based on some condition. everything is working fine except if i move another jsff and come back to this jsff then the file download is not happening.
    can any one tell me what is the issue here.
    java script:
    function customHandler(event) {
    var exportCmd = AdfPage.PAGE.findComponentByAbsoluteId("pt1:pt_region0:1:cb1")
    var actionEvent = new AdfActionEvent(exportCmd);
    actionEvent.noResponseExpected();
    actionEvent.queue();
    java bean:
    if(downloadFile!=null){
    System.out.println("invoking downloads...............................");
    erks.addScript(context, "customHandler();");
    } if (requestClause != null){
    System.out.println("invoke popup");
    executeSactionCheckVO(requestClause);
    ADFUtils.invokePopup(this.getP2().getClientId(FacesContext.getCurrentInstance()));
    Here my bean is in backing bean scope.
    can any one help what may be the issue here. or if you can tell me how to call file download method from backing that can be great help full to me.
    Edited by: user5802014 on Aug 27, 2010 1:52 PM

    Hi:
    So it's the "erks.addScript(context, "customHandler();");" may not work properly the next time coming back from another jsff.
    And very likely the statement of: var exportCmd = AdfPage.PAGE.findComponentByAbsoluteId("pt1:pt_region0:1:cb1") in your javascript command gave you error. Are you sure that "pt1:pt_resion0:1:cb1" is valid all the time no matter how the page is rendered?
    Please mark my answer as 'Helpful' if it helps.
    Thanks,
    Alex

  • PhpMyAdmin Google reCAPTCHA v2 plugin not working

    I secure my phpMyAdmin login page using Google reCAPTCHA. Until recently, phpMyAdmin used the old v1 API of reCAPTCHA, but now uses the newer v2 API as of version 4.40.
    For some reason, I cannot get the new reCAPTCHA v2 API to accept my credentials to initiate a login. When I enter my correct username, password, and solve the CAPTCHA correctly, the page hangs for a few minutes and then spits out the following error messages:
    Warning in ./libraries/plugins/auth/recaptcha/recaptchalib.php#94
    file_get_contents(https://www.google.com/recaptcha/api/siteverify?secret=MYSECRETKEY&amp;remoteip=127.0.0.1&amp;v=php_1.0&amp;response=RESPONSE-TOKEN-FROM-RECAPTCHA): failed to open stream: Connection timed out
    Out of curiosity, I tested the reCAPTCHA URL generated above by copying and pasting it into my browser, and the following error message popped up:
    "success": false,
    "error-codes": [
    "missing-input-response"
    The error codes are generated by the API when the verification fails. According to the Google Developer site for the reCAPTCHA API, an error code of "missing-input-response" means "The response parameter is missing." The response parameter is not missing, however, if the URL is to be believed, so I'm confused as to why the error is occurring.
    I tried to resolve the problem by generating a new reCAPTCHA key pair for my domain (did not work), and by editing phpMyAdmin/libraries/plugins/auth/AuthenticationCookie.class.php to explicitly include the key pairs in the code as opposed to having them be pulled from config.inc.php in the main phpMyAdmin working directory where they are defined using:
    $cfg['CaptchaLoginPublicKey'] = 'PUBLIC-KEY';
    $cfg['CaptchaLoginPrivateKey'] = 'PRIVATE-KEY';
    This did not work, either.
    Is anybody else who uses reCAPTCHA with phpMyAdmin experiencing the same problem with the upgrade to reCAPTCHA v2? Or is there a possible bug in the recaptchalib.php configuration file for v2? I have also asked the same question on Stack Overflow, which is supposedly where phpMyAdmin support is now handled according to the phpMyAdmin official site, but have not received any responses yet. Any and all feedback would be appreciated.
    Last edited by cmorgenstern (2015-04-11 23:46:05)

    I already have openssl.so uncommented in my php.ini file, so I don't think that's the problem. Thanks for the suggestions, though.
    My setup is remotely accessible via a web server. The only symlink I have is from /etc/webapps/phpmyadmin/config.inc.php to /usr/share/webapps/phpmyadmin/config.inc.php so that phpmyadmin can find the config file when logging in. Is that what you're referring to?

  • FIle download not working in page fragment

    Hi All,
    I have to download a file . I am using Dynamic tab shell and in one pf my page fragement link to download a file is avaliable...
    I did a POC on jspx and its working fine but when i try to use the same code in my jsff (page frament ) its not working any idea that do i have to do anything specific to acheive the same..
    Thanks
    Shubhangi

    Shubhangi/Timo,
    was this resolved? I am having the same issue. File download works fine in a jspx page but the same code is not working when file download is used as part of a page fragment.
    I have a table column that has the filename as commandlink with a managed bean code as below.
    public oracle.binding.BindingContainer getBindings() {
    return BindingContext.getCurrent().getCurrentBindingsEntry();
    public void downloadFile(ActionEvent actionEvent) {
    FacesContext fctx = FacesContext.getCurrentInstance();
    // myDocumentLocation specified in web.xml
    String DOCUMENTS_LOCATION =
    fctx.getExternalContext().getInitParameter("myDocumentLocation");
    if (DOCUMENTS_LOCATION == null) {
    // DOCUMENTS_LOCATION = "C:\\Documents and Settings\\xxloc\\";
    Application app = fctx.getApplication();
    ExpressionFactory elFactory = app.getExpressionFactory();
    ELContext elContext = fctx.getELContext();
    ValueExpression valueExp =
    elFactory.createValueExpression(elContext, "#{row.OrderFileName}",
    Object.class);
    String s1 = (String)valueExp.getValue(elContext);
    System.out.println(s1);
    String filename = s1 ;
    File srcdoc =
    new File(DOCUMENTS_LOCATION + filename);
    if (srcdoc.exists()) {
    FileInputStream fis;
    System.out.println("exists");
    byte[] b;
    HttpServletResponse response =
    (HttpServletResponse)fctx.getExternalContext().getResponse();
    response.setContentType("application/x-download");
    response.setHeader("Content-Disposition",
    "attachment; filename=" + filename);
    response.setBufferSize(1024);
    // response.setContentLength((new Long(srcdoc.length())).intValue());
    OutputStream out = null;
    try {
    out = response.getOutputStream();
    } catch (IOException e) {
    e.printStackTrace();
    try {
    fis = new FileInputStream(srcdoc);
    int n;
    n = fis.available();
    while (n > 0) {
    b = new byte[n];
    System.out.println("b" +b);
    int result = fis.read(b);
    out.write(b, 0, b.length);
    if (result == -1)
    break;
    } catch (IOException e) {
    System.out.println("in file error");
    e.printStackTrace();
    try {
    out.flush();
    out.close();
    } catch (IOException e) {
    e.printStackTrace();
    fctx.responseComplete();
    It would be great if someone could guide me with this issue.
    Thanks,
    RAS

  • Webcenter Spaces: Task Flow is not working in page made from template

    Hi, I have a task flow in which there is one .jsff page, which has 2 Panel Group Layouts. In first one, there is a button, which has an action to close or open second Panel Group Layout. When i add this task flow to my template and Preview it, it is working fine(i.e on clicking button, second panel group layout is getting opened up)) BUT when i make a page and set its template to the one i made. On that page, this task flow is not working(i.e. on clicking button, second panel Group Layout does not open up). Not even showing any error in logs. Please provide a solution..??

    What do you mean by Open/Close a Panel Group Layout?
    Are you Setting rendered/visible property for PGL?
    Are you setting the property programmatically or declaratively?
    Thanks,
    Husain

  • Copy paste of components are not working properly

    Hi,I am using ADF 11.1.1.3 and dynamic components.
    I had created a page fragment which has lots of components let say 60 components.
    Now i have to create another page which will also have the same no and type of components. I want to copy paste the components and create a new page.
    But I am not able to do the same.
    When i copy paste the page fragment its not working ...(bindings are not created on new page) and other issues also...
    Just wanted to know do we have to do any thing specific should be done to copy paste fragment code or its not possible.

    Hi,
    actually bindings are not copy and pasted. What you can do is to copy and paste the fragment, edit the DataBindings.cpx file and create an entry for the new fragment .jsff and point it to the PageDef file that already existed for the fragment you copy and pasted the content from.
    Alternatively (and my recommendation to you), create the content you otherwise would copy and paste in a page template and make sure the page template has a binding file (checkbox). Then build your fragments from the page template file and thus all will have data bound components
    Frank

  • GoDaddy's webformmailer.php on my site is not working

    I am stuck.  I created a site for a client and uploaded it to the GoDaddy server so they could also do updates on their HTML editor.  I used the GoDaddy webformmailer.php code they provide and it did work initally.  We tested it several times a few months ago and the test emails were coming through.  We did an update on the site, not touching the webformmailer.php code, and now it is not working.  She even had about 15-20 people say on Facebook that they used the contact page to send messages. 
    I reached out to GoDaddy twice so far, both times with run-around answers:
    Maybe the form was blank that was submitted...
    Add a captcha to it so it verify's that it is indeed a human...
    Can someone help me out here?  Has anyone else had this issue?  I am not .php or SQL savy, just breaking ground with it, but, obviously it worked before, something happened on GoDaddy's end to make it not work now.  Here is the code (what is italicized and in red is GoDaddy's code I copied and pasted):
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Anthony's Bar &amp; Grill</title>
    <link href="contact.css" rel="stylesheet" type="text/css" />
    <script src="http://maps.google.com/maps/api/js?sensor=true" type="text/javascript"></script>
    <script type="text/xml">
    <!--
    <oa:widgets>
      <oa:widget wid="2187524" binding="#mapCanvas" />
    </oa:widgets>
    -->
    </script>
    </head>
    <body>
    <div class="container">
      <div class="header"><a href="home.html" target="_parent"><img src="myicons/images/anthonysHeader.png" alt="header" width="500" height="150" hspace="250" /></a>
    <!-- end .header --></div>
    <div class="nav"><a href="home.html" target="_parent"><img src="myicons/images/home.png" alt="home" width="125" height="75" hspace="10" /></a><a href="menu.html" target="_parent"><img src="myicons/images/menu.png" alt="menu" width="125" height="75" hspace="40" /></a></a> <a href="specials.html" target="_parent"><img src="myicons/images/specials.png" alt="specials" width="130" height="75" hspace="30" /></a> <a href="livemusic.html" target="_parent"><img src="myicons/images/liveMusic.png" alt="liveMusic" width="160" height="75" hspace="20" /></a> <a href="photos.html" target="_parent"><img src="myicons/images/photos.png" alt="photos" width="125" height="75" hspace="30" /></a><!-- end of .nav --></div>
      <div class="content">
      <div class="form">
      <form action="/webformmailer.php" method="post">
    <input type="hidden" name="subject" value="Submission" />
    <input type="hidden" name="redirect" value="thankyou.html" />
    First Name:
    <input type="text" name="FirstName" /><br />
    Last Name: <input type="text" name="LastName" /><br />
    Email:        <input type="text" name="email" /><br />
    We'd love to hear from you! Leave us your comments: <br />
    <textarea name="comments" cols="50" rows="10"></textarea><br />
                    <input type="submit" name="submit" value="submit"/>
    <input type="hidden" name="form_order" value="alpha"/> <input type="hidden" name="form_delivery" value="hourly_digest"/> <input type="hidden" name="form_format" value="html"/> 
    </form>
      </div>
      <h3>10371 Southern Maryland Blvd.
          <br />
          Dunkirk, MD, 20754<br />
      301-327 5219 and/or 301-327-5520<br />
      </h3>
      <div id="mapCanvas" style="width:530px; height:300px; min-width:530px; min-height:300px"></div>
      <script type="text/javascript">
    // BeginOAWidget_Instance_2187524: #mapCanvas
                // initialize the google Maps
         function initializeGoogleMap() {
                        // set latitude and longitude to center the map around
                        var latlng = new google.maps.LatLng(38.72055,
                                                                                                                  -76.65971);
                        // set up the default options
                        var myOptions = {
                          zoom: 17,
                          center: latlng,
                          navigationControl: true,
                          navigationControlOptions:
                                    {style: google.maps.NavigationControlStyle.DEFAULT,
                                   position: google.maps.ControlPosition.TOP_LEFT },
                          mapTypeControl: true,
                          mapTypeControlOptions:
                                    {style: google.maps.MapTypeControlStyle.HORIZONTAL_BAR,
                                   position: google.maps.ControlPosition.TOP_RIGHT },
                          scaleControl: true,
                           scaleControlOptions: {
                                position: google.maps.ControlPosition.BOTTOM_LEFT
                          mapTypeId: google.maps.MapTypeId.ROADMAP,
                          draggable: true,
                          disableDoubleClickZoom: false,
                          keyboardShortcuts: true
                        var map = new google.maps.Map(document.getElementById("mapCanvas"), myOptions);
                        if (false) {
                                  var trafficLayer = new google.maps.TrafficLayer();
                                  trafficLayer.setMap(map);
                        if (false) {
                                  var bikeLayer = new google.maps.BicyclingLayer();
                                  bikeLayer.setMap(map);
                        if (true) {
                                  addMarker(map,37.7715,-122.4,"We are here");
                window.onload = initializeGoogleMap();
               // Add a marker to the map at specified latitude and longitude with tooltip
               function addMarker(map,lat,long,titleText) {
                          var markerLatlng = new google.maps.LatLng(lat,long);
                         var marker = new google.maps.Marker({
                              position: markerLatlng,
                              map: map,
                              title:"We are here",
                                  icon: "http://code.google.com/apis/maps/documentation/javascript/examples/images/beachflag.png"});  
    // EndOAWidget_Instance_2187524
      </script> <a href="https://www.facebook.com/pages/Anthonys-Bar-and-Grill/53652420587?fref=ts" target="_new"><img src="myicons/images/facebook.png" alt="facebook" width="99" height="99" vspace="50" /></a> <a href="https://twitter.com/CharleneWard10" target="_new"><img src="myicons/images/twitter.png" alt="twitter" width="100" height="100" vspace="50" /></a><!-- end .content --></div>
      <div class="footer">
      <p><a href="home.html" target="_parent">Home</a> • <a href="menu.html" target="_parent">Menu</a> • <a href="specials.html" target="_parent">Specials</a> • <a href="livemusic.html" target="_parent">Live Music</a> • <a href="photos.html" target="_parent">Photos</a> • <a href="contact.html" target="_parent">Contact</a> • <a href="platters.html" target="_parent">Platters</a></p>
      <!-- end .footer --></div>
      <!-- end .container --></div>
    </body>
    </html>

    I've tested your core code (the php that's in red) on a GoDaddy account that includes the PHP script, and the script works. I simply pasted it within the <body> tags of a rudimentary HTML file (empty <head> and no other code).
    However, I agree with those who have said there are better form-handling options, and because form-handling is such a fundamental website feature, I am beginning also to agree with MurraySummers that GD is not a service I'd recommend.  For more than a decade, I've enjoyed using a CGI program called CGIEmail (which I think was originally published by MIT), but GoDaddy has nothing like it. The form data arrives in a text email, not an awkward attachment, and can be arranged in any order, accompanied by any text you want (e.g., instructions, verbose field names, HTML tags and text, CSV record line, whatever, including more than on of these formats in a single email), and can send to any email address(s) you specify. Different forms can send to different addresses, which are specified in the a forms' formatting file, which is a txt file, stored in a restricted directory. (GoDaddy has said a script would not be able to access a restricted directory without displaying the password ... I suppose also bumblebees cannot fly? In any case, GoDaddy could support that in another way if they really cared to.). I was hoping to adapt one of their PHP scripts to create a PHP equivalent, but they provide no documentation (except the install instructions) and it's not a promising use of my time.
    Since this thread is 9 months old, I assume you've resolved your problem by now, but for the record, I'd try running just the PHP in a simple .php file as I did, and be sure the webformmailer.php program is in your root directory. In case it might be corrupted, you might contact GoDaddy support to learn how to reinstall it. The install instructions include a link to that process, but I can't say whether or not the reinstallation might have unwanted side effects.  If it still doesn't work, then the problem must (have been) elsewhere on your page, or (the most likely cause) you haven't specified the target address correctly. All three of GoDaddy's email scripts send only to one address, which you specify on a separate page for your account.
    If you've resolved this problem, please consider explaining how. It might be of help to others.

  • Captcha not functioning - possible time-out?

    Hi Guys,
    We have a lengthy registration form with Captcha module at the end.
    We get many customers complaining that the captcha does not work (letters entered are not correct).
    I have first hand experience with this issue
    The letters entered are correct, yet it will respond with an error that it does not match.
    Refreshing the form at this time does not solve the issue.
    One has to restart the browser and then it will work.
    My feeling is that due to the time it takes to complete the form, a time-out might occur.
    Have you had issues similar to this, and do you know what could be done to resolve this?
    Thanks

    Your right, two long on the form.
    What you need to do is either.
    1. Review the form and see if it is totally needed to have all the fields, if there is design changes to speed the process of the form to be filled in etc. One example of this is if you got line after line with one field per line. Multiple fields per row etc shortens the length of the form, relating fields better to each other etc. First and Last names can be combined to full name and so on.
    2. Use the multi step form process to have stages of forms thus when on the final element with captcha you do not have the issue your experiencing.

Maybe you are looking for

  • Safari crashes on MAC OS 10.4.11

    hello!! i would like to ask some help.  my safari has been crashing when i open certain websites, most especially if its youtube.  it has also been crashing on gmail and even apple support at times.  i cannot reinstall flash player because as soon as

  • P67A-C43 B2 Constant reboot when memory in DIMM1

      I just built a barebones kit consisting of: MB: P67A-C43 B2 PSU: Thermaltake TR2 RX 750W Bronze Proc: Core I7-2600 (unlocked) Mem: (2) 2x4 GB Corsair Vengeance DDR-1600 (16 GB) 9-9-9-24 Cool: Corsair H60 Hydro Vid: EVGA GTX 550 Ti HD1: OCZ SSD 120

  • Vga to dvi? for an external display for an ibook

    does anyone know of an adapter that allows you to use the apple cinema displays (the 20' one)? any suggestions would be great thanks

  • Recreation of Credit Data puts Delivery notes on hold

    Hi All, We run the standard SAP report RFDKLI20 any time we change a credit limit on a customer. This updates the backlog with the new Credit limit. It also updates the delivery notes which had already been approved to ship and are in process at the

  • Problem downloading IOS 5.1

    Hello everyone. I recently bought an iPod touch 4g and have been trying to update to IOS 5.1. I can't however because iTunes will say there was a problem and the network connection timed out. My internet connection is working fine. I'll explain. When