Problem commit w/intermedia adf struts uix & 1 step submit/commit to user

JDev 9051, ADF, Struts, ix & Intermedia
Problem:
Inserting intermedia data type (ORDSYS.ORDIMAGE) AND wanting the "commit to happen behind the scenes" so the user does not have to press submit and then commit.
I am having a problem committing a record to the DB when the form contains an intermedia data type. If I do not fill in the image column (using file upload) it works fine. My work around for now is to commit twice.
To create a new entry that contains intermedia data type (ORDSYS.ORDIMAGE) I am using the following flow of events.
NOTE: THIS DOES NOT WORK IF I UPLOAD AN IMAGE, HOWEVER, IF I LEAVE THE IMAGE COLUMN BLANK IT WORKS FINE.
01. start at browseInventory.uix
02. press create button which triggers event named createInventoryEvent
03. which gives control to createInventoryFoward
04. which fires Data Action named createInventoryAction
05. which forwards to formInventory.uix
06. user supplies data and presses the submit button which triggers event named commitInventoryEvent
07. which gives control to commitInventoryFoward
08. which fires Data Action named commitInventoryAction
09. which forwards to browseInventory.uix
NOTE: THIS WORKS IF I DO UPLOAD AN IMAGE (COMMIT TWICE)
01. start at browseInventory.uix
02. press create button which triggers event named createInventoryEvent
03. which gives control to createInventoryFoward
04. which fires Data Action named createInventoryAction
05. which forwards to formInventory.uix
06. user supplies data and presses the submit button which triggers event named commitInventoryEvent
07. which gives control to commitInventoryFoward
08. which fires Data Action named commitInventoryAction
09. which (on success) fires Data Action named commitInventoryAction_2
10. which forwards to browseInventory.uix
BTW - is there some codes I can use to display an image (Struts Config - Page Flow) on the OTN forums if I am hosting the image?
Thanks,
Bill G...

Did you ever get a soluction for the duoble commit thingie?
cause I cuirrently have the smae problem. It seems that it uses the first commit to instantiate the object, and the second commit to actually upload it to the database.

Similar Messages

  • ADF Struts UIX - how write where clause whith date in ViewObject

    Hello
    I need to write a search form with two date fields and then query a where clause between to_date('date 1') and to_date('date 2').
    the query may be writed in ViewCriteria class or using Application module method like this
    AssureViewImpl assureView=getAssureView1();
    assureView.applyViewCriteria(null);
    assureView.setWhereClause("NUM_ASSU = :1");
    assureView.setWhereClauseParam(0,numAss);
    thanks a lot for your help

    Does the user always specify both start and end dates?

  • Help with simple display and add in ADF/Struts app

    I created a simple ADF/Struts application based on the HR schema. I have a department view object and entity object based on the Departments table. From the Struts page flow designer, I create a data page action (viewDepartments) that binded to a departments view object by dragging the departments view object as a "Read-Only" form from the palette with the navigation buttons --- this page will just display the departments. Next, I created another data page action (addDepartments) that allows a user to add a department. I did this by dragging the departments view object from the palette as an "Input Form" and then dragging the "Create" operation onto the data page action. Each data page action has its own JSP of course.
    I'm noticing that every time when I go to to the "addDepartments.do" and then go to "viewDepartments.do", a blank record is added to the view object. Why is this? Also, I want the Submit button to do the "save and commit" in one step. How do I do that?
    If it helps, I can email anybody the workspace file so that you can see this behavior.
    Thanks.

    Try following this step by step tutorial to see if it will make things better for you.
    http://otn.oracle.com/obe/obe9051jdev/adftojsp/defaultendtoend.htm#t3

  • Adf-Struts/JSP/BC4J- and setting date fields from jsp

    Hi,
    I'm working with the new ADF Frameworks (JDev 9.0.5.1) and ran into some questions regarding exception handling using BC4J, Struts and JSPs.
    I have a DATE column in database and an entity and VO with a datefield with type oracle.jbo.domain.Date.
    My JSP shows a textfield and the user should enter a valid date. Everything fine, until date is of wrong format or contains illegal characters...
    Problem:
    ADF tries to do a setAttribute on the datefield in VO row which expects a parameter with type oracle.jbo.domain.Date. When the user entered e.g. "NiceWeather" as date, I get an IIlegalArgumentException while converting to the correct Date format. This exception isn't thrown by bc4j as AttrValException and therefore my JSP renders a global error instead of a message directly behind the date field.
    I tried to validate the datefield in my DataForm and in my Action in the validateModelUpdates() method, but with no fitting solution.
    Any ideas how to validate a datefield with adf/struts/jsp/bc4j?
    Thanks for your help!
    Torsten.

    Torsen - In the first instance I'd recommed that you try and handle it declaritively using the Struts Validator Framework . See http://otn.oracle.com/products/jdev/howtos/10g/StrutsValidator/struts_validator_howto.html
    There is a section in there on how to use the validator with ADF databound pages and you can check the format the user enters via generated JavaScript.
    Also check out the matching sample project:
    http://otn.oracle.com/sample_code/products/jdev/10g/ADFandStrutsValidator.zip - this has a data field check on it as well

  • How to use ActionForm validate() method in ADF/Struts project

    Hi
    We are developing a project using ADF/Struts. We are not planning to use entity level validation. Rather we prefer to have it at Struts Form Bean level. So we need to have validate() method in Form Bean.
    That mean we need to have seperate bean for all the actions /jsp. The ADF's DataForm form bean is not gonna work for us. Is that correct.
    Please let me know...am I in the right direction.
    That could be a different discussion why we don't prefer entity level validation

    You can use the Struts validator plug-in (there's a howto on doing that on OTN) and it will handle the basics for you through XML definitions.
    If you want to specifically have a Form bean with a Validate() then the issue is that the current "DataForm" is a generic bean driven of the databinding files, so yes you'd have to write a bean per screen to use instead and loose that benefit of having a universal Bean. (Internally the DataPage and DataActions will respect the ActionForm APIs so you can pluf your own ActionForm subclass in with no problem.
    Plan B might be to leave the DataForm Bean in place and instead override the lifecycle of the datapage, probably in prepareModelUpdates()

  • ADF Struts on Login Box with User on DB

    Dear All,
    I read the respond on my last post about the login box and it was help me a lot.
    Now, my problem are how to make a login box on ADF Struts technology which the username and password verification from user and privilage on oracle database?
    Noone can connect to menu and the privilage from oracle database regulate the data that will be display.
    I hope somebody will help me with the step by step configuration. I'm new in these technology...
    Thanks a lot

    this is probably a question for the JDEV forum.
    Regards
    Grant ROnald
    Forms Product Management

  • ADF Struts JSP SelectList

    JDeveloper 10g JSP, Struts and ADF application.
    I am developing a search form that has a number of criteria fields one of which is a selectlist.
    The code that is generated when I drop the data control as a single select list onto the jsp page is as follows:
    <html:select property="SearchCodeType">
    <html:optionsCollection label="prompt" value="index" property="SearchCodeType.displayData"/>
    </html:select>
    The list is populated and I can select a value, however the value I need is the value of the prompt not the value of index (the prompt is a string) to be assigned to the parameter SearchCodeType when I submit so I can use this when adjusting the where clause of my view object to return the correct results.
    I am looking for a Struts/ADF/JSP solution.

    Have you guys find a way to save(commit) the multi-selection that is created as a part of the list. Steve Muenek put me in the right directions but if you guys have find a way or code please let me know since the time is running short and I would hate to move to another tool to get this functionality.
    I have the implementation methods using BC4J/View Object and do understand I'll need to override the create() method but just don't know how to read the records using the iterator or from the array of strings that is saved after the user has created multiple selections.
    We are using ADF Struts at least for now.
    Thanks a lot,
    Kamran

  • [freelance job] Experienced ADF/Struts/JSP View-Controller developer

    Hi,
    I'm looking for a freelance "10.1.2 JDeveloper":
    - First task: Development of multi-lingual Struts View and Controller for login, logout, contact, free registration(create/modification of account info, new password, ...) pages.
    Period: may, june 2005 and more if first collaboration is succesful.
    Skills on following technologies are required:
    - View: Struts tags , Struts-el tags , JSTL , JSP , Servlets => no javascript, no UIX, no faces
    - Controller: ADF/Struts
    - Model: Oracle ADF-BC 10.1.2 Oracle 10g Database
    We provide the static html pages + css files and the ADF-BC model components.
    We develop/enhance the Model service methods based on your requirements.
    You "translate" the static html pages to Struts/Struts-EL/JSTL/JSP and the necessary ADF-Struts controllers that inter-act with our ADF-BC Model.
    Contact: [email protected]
    Regards
    Fred
    PS Sorry for polluting this technical forum with this kind of request.

    Dear all..
    I have change the block program, but still can't run..
    My EmpAction.java like these
    ==============================================
    package BindTest7.view;
    import BindTest7.model.EmpViewImpl;
    import java.text.DateFormat;
    import java.text.ParseException;
    import
    oracle.adf.controller.struts.actions.DataActionContext;
    import
    oracle.adf.controller.struts.actions.DataForwardAction;
    import oracle.jbo.ApplicationModule;
    import oracle.jbo.ViewObject;
    import java.util.Date;
    public class EmpAction extends DataForwardAction
    protected void prepareModel(DataActionContext ctx) throws Exception {
    super.prepareModel(ctx);
    ctx.getBindingContainer().findIteratorBinding("FindEmpView1Iterator")
    .setFindMode(true);
    public void onSearch(DataActionContext ctx) {
    ctx.getBindingContainer().findIteratorBinding("EmpView1Iterator")
    .executeQuery();
    //-public void onFilter(DataActionContext ctx)
    //recovery view
    ApplicationModule
    am=ctx.getBindingContainer().getDataControl().getApplicationModule();
    ViewObject EmpView=am.findViewObject("EmpView");
    //recovery dates
    String
    d1Str=ctx.getHttpServletRequest().getParameter("hiredate");
    String
    d2Str=ctx.getHttpServletRequest().getParameter("endDate");
    java.text.SimpleDateFormat formatter =
    new java.text.SimpleDateFormat("dd/MM/yyyy");
    Date d1=null;
    Date d2=null;
    // parse method could try a ParsingException,
    // it doesn't happpeend when dates are correct
    try
    d1=formatter.parse(d1Str);
    d2=formatter.parse(d2Str);
    catch (Exception e)
    //set where clausole
    EmpView.setWhereClauseParams(null);
    EmpView.setWhereClause("Hiredate>=:1 and Hiredate<=:2");
    EmpView.setWhereClauseParam(0,d1);
    EmpView.setWhereClauseParam(1,d2);
    EmpView.executeQuery();
    ===============================================
    Please help me....
    I just want to make a little modification on Steve Muench's Example
    by placing two input form for hiredate column so that
    the user only put the date
    on the query " between hiredate :1 and :2
    I'm waiting...
    regard
    erie

  • Friendly Printed Adf struts and CVS( case 1)

    Dear All,
    these link has good example for CVS on ADF struts for friendly printed.
    Try the CSV sample (#27) at http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html.
    The problem is there are no explanation in step by step fashion for new comers like me.
    I try to make the same project like the no 27 example. But the searching creteria always has a value that collected from data on the database when we run it from Jdeveloper. While on the example no 27 zip file, it will appear null and we can put the criteria there for our searching....
    Anybody can show me my mistakes and the step to solve these problems?
    Reply me soon...
    Regards
    Erie

    Please...anybody help me?
    Show me how...please...
    I'm so eager to know my mistakes...
    reply me soon
    take care

  • Jhs10g subapplications with struts / uix

    I have a bit trouble with 2 subapplications (struts and uix) , if i use mvc i got errors in jboss so i use struts
    but now i have a problem how to put this in web.xml
    with mvc it was easy,
    I checked the new jhsdemo and tutorial2 doc
    but i don't get it working with 2 applications
    if i configure it for 1 it works fine
    can something show how it is done in web.xml 2 appl. struts/uix
    thanks edwin

    Now i got a new problem ( I now use only 1 application
    to make it less comlex)
    I made a directory basis in web dir.
    and changed in de application structure file
    the ui pages virtual directory from /uix/ to /basis/uix/
    and copied images / jheadstart and even cabo to the basis dir.
    the generator creates a new struts-config.xml
    and generates the uix views in web\basis\uix
    all goes well
    this is the web.xml
    <servlet>
    <servlet-name>sicmaStrutsController</servlet-name>
    <servlet-class>oracle.jheadstart.controller.struts.JhsActionServlet</servlet-class>
    <init-param>
    <param-name>config/basis</param-name>
    <param-value>/WEB-INF/struts-config.xml</param-value>
    </init-param>
    <init-param>
    <param-name>mapping</param-name>
    <param-value>oracle.jheadstart.controller.struts.config.JhsActionMapping</param-value>
    </init-param>
    <load-on-startup>2</load-on-startup>
    </servlet>
    now i got the following error,
    500 Internal Server Error
    java.lang.NullPointerException
         oracle.cabo.servlet.xml.PageDescriptionCache oracle.jheadstart.view.uix.JhsUIXPageBroker.getPageDescriptionCache(oracle.cabo.servlet.BajaContext, oracle.cabo.servlet.Page)
              JhsUIXPageBroker.java:96
         oracle.cabo.servlet.PageDescription oracle.cabo.servlet.xml.UIXPageBroker.getPageDescription(oracle.cabo.servlet.BajaContext, oracle.cabo.servlet.Page)
         oracle.cabo.servlet.PageRenderer oracle.cabo.servlet.AbstractPageBroker.getPageRenderer(oracle.cabo.servlet.BajaContext, oracle.cabo.servlet.Page)
         void oracle.cabo.servlet.AbstractPageBroker.renderPage(oracle.cabo.servlet.BajaContext, oracle.cabo.servlet.Page)
         oracle.cabo.servlet.Page oracle.cabo.servlet.PageBrokerHandler.handleRequest(oracle.cabo.servlet.BajaContext)
         void oracle.cabo.servlet.UIXServlet.doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         void javax.servlet.http.HttpServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              HttpServlet.java:740
         void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
              HttpServlet.java:853
         void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ResourceFilterChain.doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
              ResourceFilterChain.java:65
         void oracle.security.jazn.oc4j.JAZNFilter.doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain)
              JAZNFilter.java:283
         void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.EvermindFilterChain.doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
              EvermindFilterChain.java:16
         void oracle.jheadstart.controller.CharacterEncodingFilter.doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain)
              CharacterEncodingFilter.java:174
         void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
              ServletRequestDispatcher.java:556
         void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse)
              ServletRequestDispatcher.java:306
         void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forward(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
              ServletRequestDispatcher.java:209
         void org.apache.struts.action.RequestProcessor.doForward(java.lang.String, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              RequestProcessor.java:1069
         void org.apache.struts.tiles.TilesRequestProcessor.doForward(java.lang.String, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              TilesRequestProcessor.java:274
         void org.apache.struts.action.RequestProcessor.processForwardConfig(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.apache.struts.config.ForwardConfig)
              RequestProcessor.java:455
         void org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.apache.struts.config.ForwardConfig)
              TilesRequestProcessor.java:320
         void org.apache.struts.action.RequestProcessor.process(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              RequestProcessor.java:279
         void oracle.jheadstart.controller.struts.JhsRequestProcessor.process(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              JhsRequestProcessor.java:588
         void org.apache.struts.action.ActionServlet.process(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              ActionServlet.java:1482
         void oracle.jheadstart.controller.struts.JhsActionServlet.process(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              JhsActionServlet.java:115
         void org.apache.struts.action.ActionServlet.doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              ActionServlet.java:507
         void javax.servlet.http.HttpServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              HttpServlet.java:740
         void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
              HttpServlet.java:853
         void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ResourceFilterChain.doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
              ResourceFilterChain.java:65
         void oracle.security.jazn.oc4j.JAZNFilter.doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain)
              JAZNFilter.java:283
         void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.EvermindFilterChain.doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
              EvermindFilterChain.java:16
         void oracle.jheadstart.controller.CharacterEncodingFilter.doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain)
              CharacterEncodingFilter.java:174
         void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
              ServletRequestDispatcher.java:556
         void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse)
              ServletRequestDispatcher.java:306
         boolean com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.ApplicationServerThread, com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.EvermindHttpServletRequest, com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
              HttpRequestHandler.java:767
         void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(java.lang.Thread)
              HttpRequestHandler.java:259
         void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run()
              HttpRequestHandler.java:106
         void EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run()
              PooledExecutor.java:797
         void java.lang.Thread.run()
              Thread.java:484
    if i change <param-name>config/basis</param-name> in web.xml to <param-name>config</param-name>
    it works
    but with 2 applications
    <servlet>
    <servlet-name>sicmaStrutsController</servlet-name>
    <servlet-class>oracle.jheadstart.controller.struts.JhsActionServlet</servlet-class>
    <init-param>
    <param-name>config</param-name>
    <param-value>/WEB-INF/struts-basis-config.xml</param-value>
    </init-param>
    <init-param>
    <param-name>config/call</param-name>
    <param-value>/WEB-INF/struts-call-config.xml</param-value>
    </init-param>
    <init-param>
    <param-name>mapping</param-name>
    <param-value>oracle.jheadstart.controller.struts.config.JhsActionMapping</param-value>
    </init-param>
    <load-on-startup>2</load-on-startup>
    </servlet>
    then gives the second appl. the same error as above

  • Login Box example and source code on adf struts and JSP

    Dear all..
    I want to make application using ADF struts and JSP using oracle 10g Jdeveloper.
    The user should login into the login box and verify everyone who has right to enter the home.jsp.
    Anybody could help me with the source code as well as the step by step explanation...
    I'm looking forward the help...

    http://www.oracle.com/technology/products/jdev/collateral/papers/10g/reviewer/viewlets/reviewer_struts_viewlet_swf.html

  • Adf Struts + Logon + Security

    Hi All
    I have developed an adf web application and have some questions about logging on and security. I have read the jaas security documents and understand the process. The application will have several users.
    My question is what is the best way to log users onto the model layer.
    Should I use one username and password for the schema and deploy the application and maintain a user table and use the jaas security with this. Will I get record locking ?
    Should every user get there own schema username and password and pass this username and password to the app module logon ?
    Anyone got any other suggestions ?
    Can anyone give me some advice on what ways they have handled user logons to an adf struts application.
    Any help would be greatly appreciated.
    Thank you
    Darren

    Hi,
    Should I use one username and password for the schema and deploy the application and maintain a user table and use the jaas security with this. Will I get record locking ?
    Actually the account a user authenticates with is not the account he works in. In web applications it is common to use a shared application account to access the database.
    If you want to keep the user security provider as a table in the database then you can do this as well, with no risk of locks
    Anyone got any other suggestions ?
    Use container managed security with a JAAS login module that authenticates the user against the database table. This decouples application logic from security logic
    see: http://www.oracle.com/technology/products/jdev/collateral/papers/10g/adfstrutsj2eesec.pdf
    Frank

  • ADF/Struts Generated tag code variations? Struts html:text vs Html input

    Hi,
    JDev 10.1.2.1
    ADF/Struts
    I noticed that the JDev IDE generates different code for a same component/binding combination.
    Example:Data Control of type Input form with same VO selection.
    Generated code for 1 field:
    case 1)
    JSP code:
    <tr>
    <td>
    <c:out value="${bindings['TitleLang1'].label}"/>
    </td>
    <td>
    <html:text property="TitleLang1"/>
    </td>
    </tr>
    HTML output:
    <tr>
    <td>
    Short Title Language 1
    </td>
    <td>
    <input type="text" name="TitleLang1" value="Preliminary Demo">
    </td>
    </tr>
    case 2)
    JSP code:
    <tr>
    <td>
    <c:out value="${bindings['TitleLang1'].label}"/>
    </td>
    <td>
    <input type="text" name="<c:out value='${bindings.TitleLang1.path}'/>" value="<c:out value='${bindings.TitleLang1}'/>"/>
    </td>
    </tr>
    HTML output:
    <tr>
    <td>
    Short Title Language 1
    </td>
    <td>
    <input type="text" name="VB_TitleLang1" value="Preliminary Demo"/>
    </td>
    </tr>
    Case 1 generated code is obvious to me, the html name of the field equals the field binding id.
    In Case 2, the VB_ prefix is added and the binding variable references bindings.fieldName.path?
    Could someone explain me the second flavor?
    When should we use the path reference and replace the Struts html:text tag with html input tag?
    Thanks
    Fred

    I dont think you can mix static values and rt expressions together in attribute values.
    String onBlurString = "dontLeaveItEmpty(this);referenceEntered(" + recordNumber + ")" ;
    html:text styleClass="textFieldInTable" name="refrences" property="referenceName" onblur="<%=onBlurString%>" />cheers,
    ram.

  • WebToGo BC4J + Struts + UIX application

    Is there any possibility to write a complete BC4J + Struts + UIX web application to run in the Oracle Lite platform??
    The documentation says about implementing a Servlet, but is it possible to install the .jar files of the struts & uix frameworks and register the *.do & *.uix extensions? What is the specification of the HttpServlet to be implemented?
    What about performance? Could this combination run in a WinXP PIV offline Laptop with reasonable performance?
    Where can I find this kind of information??
    Thanks
    Eduardo

    UIX is not supported in 5.0.2.x release. The next release (10g) will have complete UIX support. Beta release of 10g is already out in case you are interested in trying UIX with it.
    For BC4J refer to 'Chapter 6 BC4J Tutorial' of 'Oracle9i Lite Developer’s Guide'
    Limited support for Struts is there in 5.0.2.10.0 release. If you have the handler for .do extension files then you can use following:
    You can add mime handler to Mobile Server for .do extension by using a ini file. Copy following lines in a file called addmime.ini
    [DATABASE]
    TYPE=ORACLE
    [MIMETYPES]
    NAME = do
    VALUE=text/html
    PLUGIN=<handler class name>
    and run this ini file as following
    wsh -c addmime.ini mobileadmin/[email protected]

  • Warning Popup - Uncommited Changes (Struts/UIX)

    In the JHeadstart demo, if you have created a new record or edited information and attempt to navigate away from the page before committing, a popup appears warning you of this.
    If you disregard, nothing is updated/inserted, and you can continue on.
    Is their a way to implement this in Struts/UIX simply?

    hello
    I do not believe there is a declarative way to do it, i wish there were. Anyway, my team managed to do by using Java Script event (on-click , on whatever) then the java script can call functions embedded in the data action methodes. One of the functions you create should be one that tests the status of the transaction using getPoststate()==STATE_MODIFIED etc ...
    Then the java script could display a popup warning
    The following shows you how to call a data action method from Java Script,, then you write your own function to test the status of the transaction
    Call DataAction Method within JavaScript Function
    (In the code below, specifically the {'event':'Change'} says that an 'event' called 'Change' is generated)
    You should write OnChange event to handle 'Change'
    onChange(DataActionContext ctx)     
    <script>
    <contents>
    function doChange()
    var confirmation = confirm("Are You Sure You …..");
    if (confirmation == true)
    submitForm('frm',1,{'event':'Change'});
    </contents>
    </script>
    SO this is not straight forward .. if anybody is familar with any other approach, it would be nice to see it
    ammar

Maybe you are looking for

  • Report for purchase orders - like ME80FN

    Hello, is there a way to get a report of purchase orders which have been released for stock and for customer orders. I tried ME80FN, but there is no column available such like account-assignment-category where I could separate the orders for stock fr

  • Iphone not recognized by pc or itunes

    i have two iphone 4s phone, one is recognized by the pc and itunes and one is not.  they both have the same software update.  is there something on the phone that is not set right?  i've searched everthing and coming up empty. help.

  • CC 2014.2 settings migration

    Hooray! I've finally updated CC.. However, following through on these procedures..migrating settings and plug-ins for After Effects CC 2014 (13.0) | After Effects region of interest And have come across another issue. "At the bottom of the General pa

  • Basic auth interop problem, servlet WS works, EJB WS not (Sun AS 8)

    After spending some time I managed to add HTTP basic auth to a simple web service. I have implemented two variants, an JAX-RPC servlet web service and an EJB web service. A (Sun) JAX-RPC client works pretty well against both web services. I do the re

  • File sizes displayed in Bytes?....

    Since upgrading to Lion, when I try getting info on a folder/file, the size used on the disk or filesize is displayed in Bytes (with GB's in parantheses afterwards). This seems unintuitive to me and makes it a little less easily apparent what the fil