Including a JSP page into a JSF page

Hi !!
I have read some posts here about <f:subwview>. There says to use:
<f:subview>
   <jsp:include page="somepage.jsp"/>
</f:subview>But it does not work.
How can i include a jsp page into a JSF page?
Thanks !!!

Hi,
Replace <jsp:include page="somepage.jsp">
with <%@ include file="datasetView.jspf" %>
See thread: http://forum.java.sun.com/thread.jspa?messageID=3413354&#3413354

Similar Messages

  • How do I pass input values from a html page to a jsf page

    hi,
    In my project,for front view we have used html pages.how can I get input values from that html page into my jsf page.for back end purpose we have used EJB3.0
    how can I write jsf managed bean for accessing these entities.we have used session facade design pattern and the IDE is netbeans5.5.
    pls,help me,very urgent
    thanx in advance

    Simplest way is to rewrite html page into jsf page.
    You can use session bean in your managed bean like this:
    import javax.naming.Context;
    import javax.naming.InitialContext;
    public class ManagedBean {
    private Context  ctx;
    private Object res;
    // session bean interface
    private Service service;
              public ManagedBean() {
                try{
                     ctx = new InitialContext();
                     res = ctx.lookup("Service");
                     service = (Service) res;
               catch(Exeption e){
    }Message was edited by:
    m00dy

  • Include a jsp file in the same page by click on a button

    Hello Everybody
    I'd like to control "my.jsp" page by clicking on some buttons. So if I click on Button1, f1.jsp go to be includeing in "my.jsp" or Button2 to include f2.jsp on "my.jsp" and so on
    Thank you in addvance

    In my.jsp you could put a form with n submit buttons whith different values of parameter "name", like this:
    ---My.jsp------
    <form method="yourMethod" action="My.jsp">
    <input type="submit" value="Button1" name="button1">
    <input type="submit" value="Button1" name="button2">
    <input type="submit" value="Buttonn" name="buttonn">
    </form>
    <%if(request.getParameter("button1")!=null){%>
    <jsp:include page="f1.jsp">
    <%}%>
    <%if(request.getParameter("button2")!=null){%>
    <jsp:include page="f2.jsp">
    <%}%>
    <%if(request.getParameter("buttonn")!=null){%>
    <jsp:include page="fn.jsp">
    <%}%>
    I didn't try it but it might work.

  • "Errors on page" with simple JSF page

    Hi
    I wrote a very simple JSF page as shown below. It works as is with MyFaces. Now I tried to make it work with Sun RI as well.
    Here's the problem: The page appears perfectly fine (it shows two columns of links). Only one single link works, though: the first one in the left column.
    When I click on that first link, the action handler method ("userClick") is called and executed fine.
    But when I click on any other link, the method is not called at all. All I get is an "error on page" message in the browser status bar. No log message on the command line or log file.
    Am I doing something wrong? With MyFaces it works fine.
    ===============================
    Here's the page:
    ===============================
    <%@ page language="java" pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <f:view>
         <f:loadBundle basename="ca.gc.nrc.iit.eConservatoire.frontend.bundles.MessageBundle" var="bundle" />
         <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
         <html>
              <head>
                   <title><h:outputText value="#{bundle.menu_frame}" /></title>
                   <link rel="stylesheet" href="style.css">
              </head>     
              <body>
                   <h:panelGrid border="1" columns="2" columnClasses="td">
                        <h:dataTable value="#{MenuBackingBean.menuTabItems}" border="0" var="menuTabItem" >
                             <h:column>
                                  <h:form>
                                       <h:commandLink action="#{MenuBackingBean.userClick}" >
                                            <h:outputText value="#{menuTabItem.itemName}" />
                                            <f:param name="itemID" value="#{menuTabItem.itemID}" />
                                       </h:commandLink>
                                  </h:form>
                             </h:column>
                        </h:dataTable>
                        <h:dataTable value="#{MenuBackingBean.menuItems}" border="0" var="menuItem" >
                             <h:column>
                                  <h:form>
                                       <h:commandLink action="#{MenuBackingBean.userClick}" >
                                            <h:outputText value="#{menuItem.itemName}" />
                                            <f:param name="itemID" value="#{menuItem.itemID}" />
                                       </h:commandLink>
                                  </h:form>
                             </h:column>
                        </h:dataTable>
                   </h:panelGrid>
              </body>
         </html>
    </f:view>
    ==================================
    Here's the faces-config
    ==================================
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN" "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
    <faces-config >
         <application>
              <locale-config>
                   <default-locale>en</default-locale>
                   <supported-locale>en</supported-locale>
                   <supported-locale>de</supported-locale>
              </locale-config>
              <message-bundle>ca.gc.nrc.iit.eConservatoire.frontend.bundles.MessageBundle</message-bundle>
         </application>
         <managed-bean>
              <managed-bean-name>DetailsBackingBean</managed-bean-name>
              <managed-bean-class>ca.gc.nrc.iit.eConservatoire.frontend.DetailsBackingBean</managed-bean-class>
              <managed-bean-scope>session</managed-bean-scope>
         </managed-bean>
         <managed-bean>
              <managed-bean-name>MenuBackingBean</managed-bean-name>
              <managed-bean-class>ca.gc.nrc.iit.eConservatoire.frontend.MenuBackingBean</managed-bean-class>
              <managed-bean-scope>session</managed-bean-scope>
         </managed-bean>
         <managed-bean>
              <managed-bean-name>ContentBackingBean</managed-bean-name>
              <managed-bean-class>ca.gc.nrc.iit.eConservatoire.frontend.ContentBackingBean</managed-bean-class>
              <managed-bean-scope>session</managed-bean-scope>
         </managed-bean>
         <navigation-rule>
              <from-view-id>/menu.jsp</from-view-id>
              <navigation-case>
                   <from-outcome>showDetails</from-outcome>
                   <to-view-id>/details.jsp</to-view-id>
              </navigation-case>
              <navigation-case>
                   <from-outcome>menu</from-outcome>
                   <to-view-id>/menu.jsp</to-view-id>
              </navigation-case>
         </navigation-rule>
         <navigation-rule>
              <from-view-id>/details.jsp</from-view-id>
              <navigation-case>
                   <from-outcome>showMenu</from-outcome>
                   <to-view-id>/menu.jsp</to-view-id>
              </navigation-case>
              <navigation-case>
                   <from-outcome>showContent</from-outcome>
                   <to-view-id>/content.jsp</to-view-id>
              </navigation-case>
         </navigation-rule>
         <navigation-rule>
              <from-view-id>/content.jsp</from-view-id>
              <navigation-case>
                   <from-outcome>showMenu</from-outcome>
                   <to-view-id>/menu.jsp</to-view-id>
              </navigation-case>
         </navigation-rule>
    </faces-config>
    =======================================
    I don't think I need to show the backing bean with the userClick() method since the error is that this method is not even called (I added a system.out.println() to this method - which is never executed)
    So the problem must be before
    BTW I am using Sun RI 1.1.01 as shipped with the MyEclipseIDE extensions.
    Thanks a lot for your very much appreciated help
    scrut

    The problem is that you have two forms. Put a single form.

  • How to insert a templated page into an existing Pages document

    I'm sorry if this is a low level question.  I'm new to using Pages.  I have a word processing document started.   I want to add pages, or I guess they call them "sections" in this form (why?).   I have saved a page that I created as a template.  It exists in my template folder.   But when I go to add new pages to my document I am only offered the option of adding a text document or a blank page.  It doesn't give me the option of adding the template that I made.   Everything I've tried results in opening a new document or making a copy of the template.    This does not feel very intuitive to me.
    Thank you in advcance!

    You are taking about Pages '09? because this has been removed from Pages 5.
    Clunky as it may be it does have some very powerful features.
    You can capture as many pages into a Section as you want, which automatically sets up a document in depth. Once you have done the work, it is super fast to compose a new document from all the parts.
    It is a shame that Apple didn't simply fix what needed fixing with this model, instead of ditching it, because I am really stumped how to set up documents in the current version.
    Peter

  • Insert one html page into another html page

    Hi there,
    I wonder if sombody can help. I am trying to insert one short
    html page into another page. I could not find any option or feature
    in Dreamweaver that allow me to insert the page at all. The page I
    want to insert has the links and it is a short page, just like a
    banner. When I update the links on that page it will update all
    other pages in the website. I do not have to open many pages to
    update. I have been using FrontPage and I am now converting to
    Dreamweaver. Some codes from FrontPage does not work in
    Dreamweaver. I would very much appreciate if somebody can help with
    the codes.
    This is my website so that you can understand what I mean. At
    the top of the screen there are many links that are from one page I
    inserted into index.html. I use FrontPage. But, Dearmweaver does
    not work that way.
    Thank you. Kevin

    Be aware that IFrames carry all the disadvantages that frames
    do, for both
    you and your client's visitors.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "polarl light" <[email protected]> wrote in message
    news:g06ad0$2rm$[email protected]..
    >
    >> I wonder if sombody can help. I am trying to insert
    one short html page
    >> into
    >> another page. I could not find any option or feature
    in Dreamweaver that
    >> allow
    >> me to insert the page at all. The page I want to
    insert has the links
    >> and it
    >> is a short page, just like a banner. When I update
    the links on that
    >> page it
    >> will update all other pages in the website. I do not
    have to open many
    >> pages
    >> to update. I have been using FrontPage and I am now
    converting to
    >> Dreamweaver.
    >> Some codes from FrontPage does not work in
    Dreamweaver. I would very
    >> much
    >> appreciate if somebody can help with the codes.
    >
    > Depending on what you want to do you can use SSIs or an
    Iframe. SSIs are
    > good for things such as headers, menus and nav bars that
    you want to stay
    > the same across a range of pages. Iframes let you load
    an external HTML
    > file into a predefined area of your page so you can
    display different
    > content while staying on the same page.
    >

  • Loading page animation while JSF page is being loaded

    JSF 2.1
    Mojarra 2.1.7
    JBoss 7.1.1
    The backing bean on my JSF page(s) are view-scoped, and during the initial request, the backing bean's @PostConstructor method may take some time to return as it is calling external systems that are outside of my control. Thus, during the RENDER_RESPONSE phase of the initial request to the JSF page, it may take, on average, 3 to 5 seconds to return ( sometimes longer than that .... which again, is outside of my control ). While this is happening, the page rendered is of course blank as the response has not been written yet.
    Naturally, I am thinking of a way to show an animated loading image.
    1) I have seen suggestions of using a4j:status and a4j:region, but these are only valid for Ajax requests, while what I need is something that I can use during the initial request ( not a post back ), of a JSF lifecycle.
    2) Suggestions of using two HTML divs... one DIV shows the animated image while the other DIV wraps the real content, but is initially hidden. Then use window.onload() to swap the style of the two DIVs so that the DIV wrapping the real content becomes visible while the DIV wrapping the animated image becomes hidden.
    But then again ... these DIVs will NOT be written to the response yet as I am still in RENDER_RESPONSE phase.
    The only thing that I can think of is to:
    3) Create another page whose sole purpose is to show the animated image, then somehow immediately forward the request to the real page. The animated image on the first page will hopefully continue animating until the final page is rendered.
    What have you guys done ?

    jmsjr wrote:
    gimbal2 wrote:
    3(alt)) show a view which displays the animation and then triggers the long-loading page to be requested (no forward). The long-loading page does not generate any response until there really is something to show, to keep the animation view visible.
    This was the simplest solution by far .. although there are some quirks to be deal with when using IE.As usual :/ It remains a questionable product no matter how many times they reinvent the wheel.

  • Loading another jsf page from current jsf page

    Hello,
    I would like to add a button and then write logic to load another jsf page when the button is pressed
    Any sample code can be referenced?
    Thanks

    This is well documented in http://download.oracle.com/docs/cd/E15523_01/web.1111/b31973/af_navigate.htm
    Timo

  • IE crash and closed down when trying to include a PDF file into a web page

    Hi,
    I am trying to include pdf file into my webpage by using
    tag. The whole page is created dynamically on the run-time. I am using IFrame to contain all the controls (included the object). The system works fine in the WindowXP but when I run it under Vista, the whole IE crash and IE closed by itself.
    I have tried to debug the problem and it gave me the following messages:
    [partial]
    'iexplore.exe': Loaded 'C:\Windows\System32\msacm32.drv', No symbols loaded.
    'iexplore.exe': Loaded 'C:\Windows\System32\msacm32.dll', No symbols loaded.
    'iexplore.exe': Loaded 'C:\Windows\System32\midimap.dll', No symbols loaded.
    'iexplore.exe': Loaded 'C:\Windows\System32\dxtrans.dll', No symbols loaded.
    'iexplore.exe': Loaded 'C:\Windows\System32\atl.dll', No symbols loaded.
    'iexplore.exe': Loaded 'C:\Windows\System32\ddrawex.dll', No symbols loaded.
    'iexplore.exe': Loaded 'C:\Windows\System32\ddraw.dll', No symbols loaded.
    'iexplore.exe': Loaded 'C:\Windows\System32\dciman32.dll', No symbols loaded.
    'iexplore.exe': Loaded 'C:\Windows\System32\nvd3dum.dll', No symbols loaded.
    'iexplore.exe': Loaded 'C:\Windows\System32\dxtmsft.dll', No symbols loaded.
    'iexplore.exe': Loaded 'C:\Program Files\Common Files\Adobe\Acrobat\ActiveX\AcroPDF.dll', No symbols loaded.
    'iexplore.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.1434_none_d08b600244 2c891f\msvcp80.dll', No symbols loaded.
    The thread 'Win32 Thread' (0x18d4) has exited with code 0 (0x0).
    Windows has triggered a breakpoint in iexplore.exe.
    This may be due to a corruption of the heap, and indicates a bug in iexplore.exe or any of the DLLs it has loaded.
    The output window may have more diagnostic information
    Could anyone shed some light into this issue.
    Currently I have installed Adobe Reader 8 version 8.1.2 in that Vista machine
    Thanks in advance
    Rob

    You have two PDF "reader" plugins installed. Try disabling one of them. Tools > Addons > Plugins

  • Splitting dual book pages into separate pdf pages

    I have a book scanned into pdf with two book pages per adobe page (side by side). How can I split the pdf page in way that each book page becomes its own pdf page? My chief concern is that one side is always tilted which makes reading and highlighting difficult. Any help would be great. I have Acrobat 9 pro on vista. thanks.

    I have had to do this in the past, but the problem is the file size then
    doubles. I haven't figured out an easy to way to remove the data from the
    cropped areas.

  • Merging more than one PDF page into a singe page.

    Hi All,
    Here is my new requirement.
    I need to merge two PDF page contents into a single PDF page.
    Is there any way to active this.
    Looking forward to your help.

    Hi PDL and Leo,
    I am attaching the code below. Kindly let me know what mistake I am doing.
    CosDoc cosDoc = PDDocGetCosDoc(objPDDoc);
    PDPage page1 = PDDocAcquirePage(objPDDoc, 0);
    CosObj pageCos1 = AFPDFormFromPage(cosDoc, page1);
    PDPage page2 = PDDocAcquirePage(objPDDoc, 1);
    CosObj pageCos2 = AFPDFormFromPage(cosDoc, page2);
    CosObj cBBoxObj = CosNewArray(cosDoc, false, 4L);
    CosArrayInsert(cBBoxObj, 0L, pageCos1);
    char* charMatrix = "q .5 0 0 1 .75 0 cm \r";
    char* charQ = "Q \r";
    ASInt32 iMatrixSize = strlen(charMatrix);
    ASInt32 iQSize = strlen(charQ);
    char * mBuffer = (char*)ASmalloc(iMatrixSize);
    char * qBuffer = (char*)ASmalloc(iQSize);
    memcpy(mBuffer, charMatrix, iMatrixSize);
    memcpy(qBuffer, charQ, iQSize);
    ASStm objMatrixStream = ASMemStmRdOpen(mBuffer, iMatrixSize);
    ASStm objQStream = ASMemStmRdOpen(qBuffer, iQSize);
    CosObj matrixContent = CosNewStream(cosDoc, true, objMatrixStream, 0, true, CosNewNull(), CosNewNull(), -1);
    CosObj qContent = CosNewStream(cosDoc, true, objQStream, 0, true, CosNewNull(), CosNewNull(), -1);
    ASStmClose(objMatrixStream);
    ASStmClose(objQStream);
    CosArrayInsert(cBBoxObj, 1L, matrixContent);
    CosArrayInsert(cBBoxObj, 2L, pageCos2);
    CosArrayInsert(cBBoxObj, 3L, qContent);
    CosObj pageCos = PDPageGetCosObj(page1);
    CosDictPut(pageCos, ASAtomFromString("Contents"), cBBoxObj);
    ASfree(mBuffer);
    ASfree(qBuffer);
    PDPageNotifyContentsDidChange(page1);
    PDDocSave(objPDDoc, PDSaveIncremental, NULL, NULL, NULL, NULL);
    PDPageRelease(page1);
    PDPageRelease(page2);

  • Urgent Help: How to Convert a Public Page into an Internal page

    Hi,
    i need to convert public pages of a collaboration room into internal pages.
    Please let me know if you know the solution.
    Regards,
    vibhu

    You should probably stick to the original thread on this, otherwise you'll end up going over repetitive information...
    http://forums.adobe.com/thread/1338668?tstart=0

  • How do I insert new pages into an existing pages document

    I have been doing a newsletter for 18 months in pages. SInce the last update I have been unable to find a way to add a page to my document or change positions of pages. I have searched online for answers which did not help, and all the tutorials I found are not for the updates version.  Help, this app is useless if I can't do this!

    How could you not find the hundreds, if not thousands, of references here to the missing features in Pages 5?
    Apple removed over 100 features from Pages 5 of which these are only a few:
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&mforum=iworktipsn trick
    You should still have Pages '09 in your Applications/iWork folder.
    Use that.
    Peter

  • What solution to include a repititive fragmet into a creator jsf page?

    Hi
    Thank you for reading my post
    what is the solution to include a repeatitive fragment into a jsf file?
    for example i should show company information for X number of companies,
    i think the most good way is to create some kind of page fragment, include it into the main page and pass each company parameters to it in a loop,
    is there such facilities in creator visual pages?
    it is available in Jdeveloper and ADF Faces, but i do not know how i can have this facility in Creator.
    Thanks

    Hi
    Thank you for reply.
    but i think page fragments are for static imports, for example to layout the entire pages ( menu fragment, news fragment,...)
    what i need is something like include tag in jsp with ability to pass a map of parameter to it.
    imagine that you have to show some number of records from a database but not in tabular format.
    what will you do when total number of records is not known in design time?
    you need to create a template to show records in that template, then you include that template as many times as it is required and you pass parameters to it in each iteration of loop that you used.
    thanks

  • How include jsp file in adf jsf

    hi!
    I would like to include my jsp file in adf jsf but when i run my jsf page i have this error
    "javax.faces.event.AbortProcessingException: javax.faces.view.facelets.FaceletException: Error Parsing /Scanning.jsp: Error Traced[line: 1] <Line 1, Column 2>: XML-20201: (Erreur grave) Attendu : name et non %."
    My jsp page is Scanning.jsp and in my jsf page i include my jsp page like this
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <af:document title="untitled1.jsf" id="d1">
    <af:form id="f1">
    <af:panelTabbed id="pt1">
    <af:showDetailItem text="showDetailItem 1" id="sdi1"/>
    <af:showDetailItem text="showDetailItem 2" id="sdi2">
    <af:declarativeComponent viewId="Scanning.jsp" id="dc1" >
    </af:declarativeComponent>
    </af:showDetailItem>
    </af:panelTabbed>
    </af:form>
    </af:document>
    </f:view>
    What's wrong ???
    Help me please

    I'm looking for this characters but nothing
    could try to help me again
    this my
    jsp code
    <%@ page pageEncoding="UTF-8"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Scanner vos ch&egrave;ques</title>
    <link media="screen" href="css/sbullet.css" type="text/css" rel="stylesheet"/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <!--script type="text/javascript">
    // Declaration globale
    var Nbrimg = 0;
    var ImgRecto = 0;
    var ImgVerso = 0;
    var ImgTotal = 0;
    <script type="text/javascript" event="TransportNewState(newState,previousState)" for="Ranger">
    // Transport new state, fired every time the State changes on the control
    // input params , are the new state and the previous state
    //alert(newState);
    var RangerTransportStates = {
    TransportUnknownState : - 1, TransportShutDown : 0, TransportStartingUp : 1, TransportChangeOptions : 2, TransportEnablingOptions : 3, TransportReadyToFeed : 4, TransportFeeding : 5, TransportExceptionInProgress : 6, TransportShuttingDown : 7
    ok = false;
    if (newState == RangerTransportStates.TransportShutDown) {
    document.getElementById('StartRanger').disabled = false;
    document.getElementById('EnableRanger').disabled = true;
    document.getElementById('StopFeeding').disabled = true;
    document.getElementById('StartFeeding').disabled = true;
    document.getElementById('ChangeOptions').disabled = true;
    document.getElementById('Shutdown').disabled = true;
    document.getElementById('UserInstructions').innerHTML = "Appuyer sur Demarrer pour initiliser le scanner"
    Nbrimg = 0;
    ImgVerso = 0;
    ImgRecto = 0;
    ImgTotal = 0;
    if (newState == RangerTransportStates.TransportChangeOptions) {
    document.getElementById('StartRanger').disabled = true;
    document.getElementById('StartFeeding').disabled = true;
    document.getElementById('EnableRanger').disabled = false;
    document.getElementById('Shutdown').disabled = false;
    document.getElementById('UserInstructions').innerHTML = "<b/>Demarrage <br/> Appuyer sur Activer pour preparer le scanning "
    ok = false;
    if (newState == RangerTransportStates.TransportReadyToFeed) {
    document.getElementById('EnableRanger').disabled = true;
    document.getElementById('StopFeeding').disabled = true;
    document.getElementById('StartFeeding').disabled = false;
    document.getElementById('ChangeOptions').disabled = false;
    document.getElementById('Shutdown').disabled = false;
    document.getElementById('UserInstructions').innerHTML = "<b/>Pret a scanner<br/> Appuyer sur Scanner pour lancer le scanning"
    ok = true;
    if (newState == RangerTransportStates.TransportFeeding) {
    document.getElementById('StartFeeding').disabled = true;
    document.getElementById('ChangeOptions').disabled = true;
    document.getElementById('Shutdown').disabled = true;
    document.getElementById('StopFeeding').disabled = false;
    document.getElementById('UserInstructions').innerHTML = "<b/>Scanning... <br/> Appuyer sur Arret scanning pour stopper le scanning";
    //getstatus();
    document.getElementById('Status').innerHTML = 'Etat: ' + Ranger.GetTransportStateString();
    </script>
    <script type="text/javascript" event="TransportChangeOptionsState(previousState)" for="Ranger">
    //Fired when Ranger reaches the change option state, input params are previous state
    //getstatus();
    document.getElementById('Status').innerHTML = 'Etat: ' + Ranger.GetTransportStateString();
    </script>
    <script type="text/javascript" event="TransportReadyToFeedState(previousState)" for="Ranger">
    i = 0;
    struchtml = "";
    htmlStrucArray = new Array();
    //Fired when ranger is ready to feed the next item
    document.getElementById('Status').innerHTML = 'Etat: ' + Ranger.GetTransportStateString();
    //getstatus();
    </script>
    <script type="text/javascript" event="TransportFeedingStopped(reason,itemsFed,itemsrequested)" for="Ranger">
    //Fired when feeding has stopped
    document.getElementById('Status').innerHTML = 'Etat: ' + Ranger.GetTransportStateString();
    //getstatus();
    </script>
    <script type="text/javascript" event="TransportItemInPocket(itemID)" for="Ranger">
    //Fired when the item has been fed into the pocket
    var RangerSides = {
    TransportFront : 0, TransportRear : 1
    var RangerImageColorTypes = {
    ImageColorTypeBitonal : 0, ImageColorTypeGrayscale : 1, ImageColorTypeColor : 2
    //alert(Ranger.GetGenericOptionFileName());
    Ranger.SetGenericOption("OptionalDevice", "NeedFrontImage1", true);
    Ranger.SetGenericOption("OptionalDevice", "NeedRearImage1", true);
    // Date du jour
    var datedujour = new Date();
         var day = datedujour.getDate();
         var month = datedujour.getMonth()+1;
    if(month < 10){month = "0"+month};
         var fullYear = datedujour.getYear();
    var Repertoire = day+"-"+month+"-"+ fullYear;
    var cmc7 = Ranger.GetMicrText(1);
    var codeChq = cmc7.substring(1, 8);
    var codeBq = cmc7.substring(10, 22);
    var codeRib = cmc7.substring(24, 36);
    var cmc7_affiche = codeChq + ' ' + codeBq + ' ' + codeRib;
    cmc7 = codeChq + '_' + codeBq + '_' + codeRib;
    document.getElementById('CMC7').innerHTML = 'CMC7= ' + cmc7_affiche;
    // alert(cmc7);
    cmc7R = cmc7 + "_R.jpg";
    // alert(Ranger.GetImageAddress(RangerSides.TransportFront, RangerImageColorTypes.ImageColorTypeGrayscale))
    temp = Ranger.SaveImageToFile(RangerSides.TransportFront, RangerImageColorTypes.ImageColorTypeGrayscale, "C:\\IT\\images\\" + cmc7R);
    temp = Ranger.SaveImageToFile(RangerSides.TransportFront, RangerImageColorTypes.ImageColorTypeGrayscale, "C:\\IT\\"+Repertoire+"\\" + cmc7R);
    cmc7V = cmc7 + "_V.jpg";
    temp = Ranger.SaveImageToFile(RangerSides.TransportRear, RangerImageColorTypes.ImageColorTypeGrayscale, "C:\\IT\\images\\" + cmc7V);
    temp = Ranger.SaveImageToFile(RangerSides.TransportRear, RangerImageColorTypes.ImageColorTypeGrayscale, "C:\\IT\\"+Repertoire+"\\" + cmc7V);
    document.getElementById("LIST").innerHTML += "<input type=\"hidden\" name=\"Img_chq\" value='" + cmc7R + "'/>" + cmc7_affiche + " (Recto)<br/>";
    document.getElementById("LIST").innerHTML += "<input type=\"hidden\" name=\"Img_chq\" value='" + cmc7V + "'/>" + cmc7_affiche + " (Verso)<br/>";
    document.getElementById('Status').innerHTML = 'Etat: ' + Ranger.GetTransportStateString();
    //getstatus();
    </script>
    <script type="text/javascript" event="TransportNewItem()" for="Ranger">
    // Fired when a new item has entered the track
    document.getElementById('Status').innerHTML = 'Etat: ' + Ranger.GetTransportStateString();
    //getstatus();
    </script>
    <script type="text/javascript" event="TransportShutDownState(currentState,previousState)" for="Ranger">
    //Fired when the Ranger control has been shutdown
    document.getElementById('Status').innerHTML = 'Etat: ' + Ranger.GetTransportStateString();
    //getstatus();
    </script>
    <script type="text/javascript" event="TransportSetItemOutput(itemID)" for="Ranger">
    //fired when the item is ready to have params set(pocketing decisions)
    document.getElementById('Status').innerHTML = 'Etat: ' + Ranger.GetTransportStateString();
    //getstatus();
    </script>
    <!-- End of Events ------------- -->
    </head>
    ........ html code
    Edited by: nesta on 12 août 2011 12:28

Maybe you are looking for

  • [Error: exportArticleFolio] ????

    Hi, does anyone know what [Error: exportArticleFolio] tries to tell me? And how could I resolve the error? A working file won't get uploaded anymore since the mandatory folio builder panel update. Help Adobe! I have a presentation with the customer i

  • Goods recipt against conformation qty

    Dear sir i have  production  order qty 10 nos and i conformed qty 2nos , but when i do gr system allow to me to do 10 nos . but i want do gr only 2nos as for confrmation. so system should not allow to post order qt, sysytem allow to post for gr only

  • How to recover a deleted numbers file in icloud

    How do I recover a deleted numbers file that was saved in icloud Can files be saved on Mac and I cloud at the same time

  • Missing scopes

    Ever since the last update to Premiere Pro cc 2014, I can't find any colour correction scopes.  Where have they gone?  Am I somehow on a trial version now?

  • Creative Media Explore dissappeared with Windows 7 32 Bit Home Premium

    I have a Creative Zen Vision M and was using it with Vista 32 Bit and I had the media explorer where I could add music albums, manipulate play lists etc which was an add in into Windows Explorer. Of course i upgraded and expected to have some functio