Validate Method doesn't fire in insert - is it a bug ?

I tried to use the validate method in a VO based upon 2 Entities.
It works but when I insert a new row it doesn't fire.
Is it a bug ?
If not what's explanation for that behaviour ?
Tks
Tullio

ViewObjectImpl.validate() is not called automatically in the BC4J framework.
Validation by default should be implemented in the entities and EntityImpl.validate() is called by the framework on invalid entities when the Entity needs to be validated.

Similar Messages

  • Why is the ActionForms validate-Method called twice?

    Hello forum,
    I'm new to struts and want to develop a form, where an internetuser can leave a comment to an article. Just like most sides, an image with an text is displayed, the text has to be written into an inputfield before the comment is commited in order to be saved.
    When an user puts in no text or a wrong one, a errormessage is displayed, the old image is deleted and an new one is created and shown to the user. His input still stays in the fields.
    I proof the correctness of the word in the validate-Method of the ActionForm and it works fine.
    Now I've the following problem:
    If the user puts in the correct text, the comment is saved and the side is displayed again including his comment.. But also all the input of the form should be erased. But for some reason, its not and the validate method is called again and since there is a new wordvarifyingimage and a new text to be inserted, it throws an error which is displayed again. Also, all the input of his last message is present!
    So, I guess I miss a big point about the ActionForm handling. Why is the ActionForm called twice and why doesn't it erase the old input? I try to do this in the Action class after saving the comment, setting all the formparameters to "" or null.
    Can anybody give me a hint?
    Would be a big big help since I've not found anything googling about this issue.
    If you need code, just tell me which part I put in here (ActionForm, Action, struts-config or jsp-file)
    Thanxs in advance,
    strutsnewbytopro

    my jsp:
    <%@ taglib uri="/WEB-INF/tld/struts-bean.tld" prefix="bean" %>
    <%@ taglib uri="struts/html-el" prefix="html" %>
    <%@ taglib uri="jstl/c" prefix="c" %>
    <%@ taglib uri="/WEB-INF/tld/struts-logic.tld" prefix="logic" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html>
    <head>
    <style type="text/css" title="currentStyle" media="screen">
              @import "../library/css/blog.css";     
         </style>
    <script language="javascript">
         function sendMail(){
              document.forms[0].formaction.value ='mail';
              document.forms[0].submit();
         function saveComment(){
              document.forms[0].formaction.value ='comment';
              document.forms[0].submit();
         </script>
    </head>
    <body>
    <html:form action="/blog">
    <div id="container">
         <div id="leftside">
              <logic:messagesPresent>
                   <div id="errors">
                        <div style="color:#CC3333; ">
                        <p><span id="errorHeaders"><bean:message key="errors.validation.header"/></span>
                             <html:messages id="error">
                             <c:out value="${error}"/>
                             </html:messages>
                        </p></div>
                     </div>
              </logic:messagesPresent>
                 .... show blogentry ...          
              <logic:present name="comments">
                   <div id="divblogcomment">
                   <logic:iterate name="comments"  id="com">
                   <div class="breaker10" style="clear:left; "></div>
    <div class="rowblogcommentdate" style="width:150px;"<a href="<bean:write name="com" property="website" />"><bean:write name="com" property="username" /></a> am <bean:write name="com" property="postdate" /></div>
                   <div class="rowblogcomment"><bean:write name="com" property="comment" /></div>
                   </logic:iterate>
                   <div class="breaker10" style="clear:left; "></div>
    </div>
              </div>
                             </logic:present>
                             <logic:notPresent name="savedcomment">
                                  <div id="writeblogcomment">
                                  <div class="topbig"><div class="headsmall">enter Comment</div></div>
                                  <div id="bginhaltwriteblogcomment">
                                       <div class="breaker10" style="clear:left; "></div>
                                       <div align="center">
                                            <table cellpadding="0" cellspacing="0" border="0">
                                                 <tr>
                                                      <td>Name:</td>
                                                      <td>  </td>
                                                      <td><html:text size="50" name="blogForm2" styleClass="inputtext" property="username"/></td>
                                                      <td>  </td>
                                                      <td>Web:</td>
                                                      <td>  </td>
                                                      <td><html:text size="50" name="blogForm2" styleClass="inputtext" property="webaddress"/></td>
                                                 </tr>
                                                 <tr>
                                                      <td>Enter Code:</td>
                                                      <td>  </td>
                                                      <td><html:text size="66" name="blogForm2" styleClass="inputtext" property="commentword"/></td>
                                                      <td>  </td>
                                                      <td >Code:</td>
                                                      <td>  </td>
                                                      <td><img src="<bean:write name="entry" property="commentpicurl" />"></td>
                                                 </tr>
                                                  <tr>
                                                      <td colspan="7">Comment<br><html:textarea name="blogForm2" styleClass="comment" property="comment" /></td>
                                                 </tr>
                                                 <tr>
                                                      <td colspan="7"><html:submit styleClass="inputtext" onmousedown="javascript:saveComment();"><bean:message key="button.save"/></html:submit></td>
                                                 </tr>                                        
                                            </table>
                                       </p>
                                       </div>
                                       <div class="bottombig"></div>
                                  </div>
                             </div>
                             </logic:notPresent>
                             <logic:present name="savedcomment">
                             <div id="writeblogcomment">
                                  <div class="topbig">Comment saved<div class="headsmall">Kommentar gespeichert</div></div>
                                  <div id="bginhaltwriteblogcomment">
                                       <div class="breaker10" style="clear:left; "></div>
                                       <div align="center">
                                            <table cellpadding="0" cellspacing="0" border="0">
                                                 <tr>
                                                      <td>Comment saved</td>
                                                 </tr>
                                            </table>
                                       </p>
                                       </div>
                                       <div class="bottombig"></div>
                                  </div>
                             </div>
                             </logic:present>
                             </div>
    </div>
    <html:hidden name="blogForm2" property="formaction"/><br>
    <html:hidden name="blogForm2" property="id"/><br>
    <% session.removeAttribute("savedcomment"); %>
    </html:form>
    </body>
    </html>

  • Validate method on EoImpl

    hi jdev groups
    using 11.1.1..5.0-adfbc
    i had a validate method in particulalr xxxeoimpl class.
    Reason: while perform tab out in ui the function will fires. well it performs it's work correclty.
    code in Eoimpl class
        public boolean validatexxxSubTerr(String xxxsubterr) {
            if(xxxsubterr!=null){
                 setAttributeInternal("xxxTerrId",FuncFindTerritory("somevaluevalue",prospsubterr));
            else{
               throw new JboException("Territory Not Found") ;
            return true;
      code in Eoimpl class
        public String FuncFindTerritory(String pbu, String pxxxsubterr){
            CallableStatement cs = null;
            try{
            cs=getDBTransaction().createCallableStatement("begin ? := FUNC_FIND_TERRITORY(?,?); end;",0);
            cs.registerOutParameter(1, Types.VARCHAR);
            cs.setString(3,pxxxsubterr);
            cs.setString(2,pbu);
            cs.executeUpdate();
            return cs.getString(1);
            catch(SQLException e){
            throw new JboException(e);
            finally
            if (cs!=null)
            try{
               cs.close();
             catch (Exception e){System.out.println (" Function Find Territory Exception Thrown "+e);}
        }my question is : I use this FuncFindTerritory in most of the eoimpl class.
    so i dont want to duplicate the same FuncFindTerritory in all eo class.
    is there any chance to define this function in am module access/call this function in eo particular validate method.
    setAttributeInternal("xxxTerrId",FuncFindTerritory("somevaluevalue",prospsubterr)); // this what i meanif wrote like this means i have to define method(FuncFindTerritory) in eoimpl class.
    instead of doing like this..
    Adf provides to access the methods which is define in am? is there any way...
    sorry for updating late.
    thanks&&regards
    adf7.

    In theory you can access the AM from the EO but you should not. An EO represents one row of a table whereas the AM represents the the whole business logic. From this point of view where is no reason why an EO should need access to the AM.
    Extending is a normal java mechanism which is wildly uses in frameworks. If you read the dev guide you'll find a paragraph which encourages you to build an extension for each framework class (for just this reason). This extension classes can hold all the stuff which is global for your application.
    Timo

  • I cannot figure out how to make the text larger on an incoming email.  The finger method doesn't work and I cannot find any toolbar with which to do it.  I could find nothing in settings also.  Plese help and thank you.

    I cannot figure out how to make the text larger in a received email.  The finger method doesn't work and I can find no tool bar as I can for composing emails.  I can find nothing in settings.  Please help and thank you in advance.

    Hi there,
    Download a piece of software called TinkerTool - that might just solve your problem. I have used it myself to change the system fonts on my iMac. It is software and not an app.
    Good wishes,
    John.

  • LVOOP "call parent method" doesn't work when used in sibling VI

    It seems to me that the "call parent method" doesn't work properly according to the description given in the LabVIEW help.
    I have two basic OOP functions I am doing examples for. I can get one to work easily and the other one is impossible.
    Background
    There are 3 basic situations in which you could use the "call parent method"
    You are calling the parent VI (or method) of a child VI from within the child VI
    You are calling the parent VI (or method) of a child VI from within a sibling VI
    You are calling the parent VI (or method) of a child VI from a different class/object.
    From the LabVIEW help system for "call parent method":
    Calls the nearest ancestor implementation of a class method. You can use the Call Parent Method node only on the block diagram of a member VI that belongs to a class that inherits member VIs from an ancestor class. The child member VI must be a dynamic dispatching member VI and have the same name as the ancestor member VI
    From my reading of that it means situation 3 is not supported but 1 & 2 should be.
    Unfortunately only Situation 1 works in LabVIEW 2012.
    Here is what I want
    And this is what I actually get
    What this means is that I can perform a classic "Extend Method" where a child VI will use the parent's implementation to augment it's functions BUT I cannot perform a "Revert Method" where I call the parent method's implementation rather than the one that belongs to the object.
    If you want a picture
    Any time I try and make operation2 the VI with the "call parent method" it shows up for about 1/2 sec and then turns into operation.
    So there are only 3 possibilities I can see
    Bug
    Neither situation 2 or 3 are intended to work (see above) and the help is misleading
    I just don't know what I am doing (and I am willing to accept this if someone can explain it to me)
    The downside is that if situation 2 above doesn't work it does make the "call parent node" much less usefull AND it's usage/application just doesn't make sense. You cannot just drop the "call parent node" on a diagram, it only works if you have an existing VI and you perform a replace. If you can only perform situation 1 (see above) then you should just drop the "call parent node" and it picks up the correct VI as there is only 1 option. Basically if situation 2 is not intended to work then the way you apply "call parent method" doesn't make sense.
    Attachements:
    For the really keen I have included 2 zip files
    One is the "Revert Method labVIEW project" which is of course not working properly because it wants to "call parent method" on operation not operation2
    The other zip file is all pictures with a PIN for both "Revert Method" and "Extend Method" so you can see the subtle but important differences and pictrures of the relavant block diagrams including what NI suggested to me as the original fix for this problem but wasn't (they were suggesting I implement Extend Method).
     If you are wondering where I got the names, concepts and PIN diagrams from see:
    Elemental Design Patterns
    By: Jason McColm Smith
    Publisher: Addison-Wesley Professional
    Pub. Date: March 28, 2012
    Print ISBN-10: 0-321-71192-0
    Print ISBN-13: 978-0-321-71192-2
    Web ISBN-10: 0-321-71255-2
    Web ISBN-13: 978-0-321-71255-4
     All the best
    David
    Attachments:
    Call parent node fault.zip ‏356 KB
    Call parent node fault.zip ‏356 KB

    Hi tst,
    Thankyou for your reply. Can you have a look at my comments below on the points you make.
    1) Have to disagree on that one. The help is unfortunately not clear. The part you quote in your reply only indicates that the VI you are applying "Call Parent Node" to must be dynamic dispatch. There is nowhere in the help it actually states that the call parent node applies to the VI of the block diagram it is placed into. Basically case 2 in my example fulfills all that the help file requires of it. The dynamic dispatch VI's operation are part of a class that inherits from a given ancestor. Operation 2 for Reverted behaviour is a child VI that is dynamic dispatch and has the same name as the ancestor VI (operation2). The help is missing one important piece of information and should be corrected.
    2) True it does work this way. I was trying to build case 2 and had not yet built my ancestor DD for operation so the function dropped but wasn't associated with any VI. I was able to do this via a replace (obviously once the ancestor Vi was built) so this one is just bad operator
    3) Keep in mind this is an example not my end goal. I have a child implementation because this is a case where I am trying to do a "reverse override" if you like.
    3a) The point of the example is to override an objects method (operation2) with it's parent's method NOT it's own. The reason there is a child implementation with specific code is to prove that the parent method is called not the one that relates to the object (child's VI). If I start having to put case structures into the child VI I make the child VI have to determine which code to execute. The point of Revert method is to take this function out of the method that is doing the work. (Single Use Principal and encapsulation)
    3b) The VI I am calling is a Dynamic Dispatch VI. That means if I drop the superclass's VI onto the child's block diagram it will become the child's implementation. Basically I can't use Dynamic Dispatch in this case at all. It would have to be static. That then means I have to put in additional logic unless there is some way to force a VI to use a particular version of a DD VI (which I can't seem to find).
    Additional Background
    One of the uses for "Revert Method" is in versioning.
    I have a parent Version1 implementation of something and a child Version2. The child uses Version2 BUT if it fails the error trapping performs a call to Version1.
    LabVIEW has the possibility of handling the scenario but only if both Case 1 and Case 2 work. It would actually be more useful if all 3 cases worked.
    The advantage of the call parent method moving one up the tree means I don't have the track what my current object is and choose from a possible list, if, for example the hierarchy is maybe 5 levels deep. (so V4 calls V3 with a simple application of "call parent method" rather than doing additional plumbing with case structures that require care and feeding). Basically the sort of thing OOP is meant to help reduce. Anything that doesn't allow case 2 or 3 means you have to work around the limitation from a software design perspective.
    If at the end of the day Case 2 and case 3 don't and won't ever work then the help file entry needs to be fixed.
    All the best
    David

  • Central Autoreaction Method doesn't work for NW 7.10 in SolMan 7.01

    Hello!
    The central autoreaction method doesn't work for the satellite system
    NW 7.10. For systems with kernel releases 4.6D, 640, 700 this method
    works fine and e-mail alerts are coming.
    The configuration steps I've checked:
    1. Configured SCOT. The mail_send job executes every 5 minutes.
    2. Background dispatching job is released: SAP_CCMS_MONI_BATCH_DP (In
    central CEN/000/DDIC and satellite system SAT/000/DDIC)
    3. Central dispatching job is released: SAP_CCMS_CENSYS_DISPATCHER
    (Only in central system CEN/000/DDIC)
    4. The sapccm4x-agent registered as web service within CEN using
    Create Remote Monitoring for NW 7.10:
    Connection test to SAPCCM4X.<satellite_host>.00 was performed successfully
    5. Created a new autoreaction method by copying method
    CCMS_OnAlert_Email_V2 to the own Z_CCMS_Email_Alert_CEN:
    Function Module - SALO_EMAIL_IN_CASE_OF_ALERT_V2
    Execute Method on Any Server and Only in Central System, triggered by
    CCMS agents
    SENDER (EMAIL_USER) exists in CEN/000 , RECEPIENT - <distr list
    SAP_BASIS in CEN/000>, RECIPIENT-TYPEID - C
    6. Got MTE Classes from NW 7.10 satellite system and assigned this method
    Z_CCMS_Email_Alert_CEN to an MTE-class CCMS_ORAucPSAPSR3 for NW 7.10
    satellite system. The alert is red right now.
    7. The mail_send job doesn't send anything, in SCOT there are no
    sending orders.
    8. Autoreaction status on this alert in CEN in RZ20 - Sent to CEN.
    CEN_CHECKED.
    9. The alert status in RZ20 in CEN - ACTION_REQUIRED. If I execute it
    in manual the alert status changes to ACTIVE, but no email and no
    messages in sending orders in SCOT.
    Please help me to solve this issue.
    Thank you!

    Hi,
    Since you are using RECIPIENT-TYPEID =C i.e. General distribution list, pls ensure to have shared type of list created in SBWP.
    Also pls verify your SCOT configutaion , if apropriate address area i.e. *@abc.com
    Also one point to note that even if you trigger auto reaction method manually via RZ20 , pls check if alert is listed in SOST.
    if yes , that means there is problem in either SCOT configuration or distribution list.
    If alert is not appearing in SOST , that means you need to check auto reaction method parameters;
    Z_CCMS_OnAlert_Email_V2 , here check release section if Auto reaction execution method is checked.
    Regards,
    Rupali

  • Validate() method not working as it should

    I have a very weird problem here. I have a form-bean where i validate the user input and add them to the errors. When i click the submit button, the errors are displayed not on the same page but on the page as indicated in the <forward name="success" ...> page. very strange. i have done the following:-
    added <html:errors/>
    included the input attribute for that action in struts-config
    set the validate attribute to true in struts-config.
    i cant think of anything else. I've been picking my brains for a while now. Am i missing something really obvious folks? Please let me know !!!!!
    Regards
    Lexus

    Lemme see your validate method implementation and the appropriate snippet from the struts-config.xml file and I'll see what I can do for ya.

  • 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()

  • Struts - How not to lose parameter after validate() method

    Hi
    I have following problem. When I submit a form(action= sendMessage.do) from site generated in writeMessage.do?id=1 action and validate method find errors it forwards to writeMessage.do I need to forward to writeMessage.do?id=1
    <action path="/sendMessage"
    type="SendMessageAction"
    name="writeMessageForm"
    scope="request"
    validate="true"
    input="/writeMessage.do">
    <forward name="ok" path="/info.jsp"/>
    </action>
    I need something like input="/writeMessage.do?id=xx" , but xx will be changing in runtime. How to solve that problem?

    Swap input="/writeMessage.do" with input="/sendMessage.jsp" (or whatever the name of the input JSP was). If I remember rightly this will fix it for the automatic validation errors, however you'll still get this problem if you need to test business rules/custom validation rules from within your application. To fix this copy the following class and specify a className attribute for your action element in the struts config
    i.e. <action ... className="com.whatever.CustomActionMapping" ... />
    package com.whatever
    import java.util.ArrayList;
    import java.util.HashMap;
    import java.util.Iterator;
    import org.apache.struts.action.ActionForward;
    import org.apache.struts.action.ActionMapping;
    public class CustomActionMapping extends ActionMapping
        public ActionForward findForward(String forwardName, HashMap requestParams)
            ActionForward fwd = findForward(forwardName);
            Iterator iter1 = requestParams.keySet().iterator();       
            if (iter1.hasNext())
                StringBuffer basePath = new StringBuffer(fwd.getPath());           
                basePath.append("?");
                 while (iter1.hasNext())
                     String paramName = (String) iter1.next();
                     ArrayList paramValues = (ArrayList) requestParams.get(paramName);
                     Iterator iter2 = paramValues.iterator();
                     while (iter2.hasNext())
                         String paramValue = String.valueOf(iter2.next());
                          basePath.append(paramName);
                          basePath.append("=");
                          basePath.append(paramValue);
                          if (iter2.hasNext())
                              basePath.append("&");
                     if (iter1.hasNext())
                         basePath.append("&");
                 fwd = new ActionForward(fwd);
                 fwd.setPath(basePath.toString());
            return fwd;
    }Then in the execute method of your action do something like
    // Creates a map to store the request parameters in
    HashMap requestParams = new HashMap();
    // Helper method to extract a request parameter for 'teamId'
    Integer teamId = RequestHelper.getTeamIdParam(request);       
    // Adds the teamId parameter to the hash map
    setRequestParam(RequestHelper.TEAM_ID, teamId, requestParams);
    // Creates a new forward with the required request parameters dynamically appended to the forward path
    return ((CustomActionMapping) mapping).findForward(forwardName, requestParams);

  • Using Validate Method of ActionForm to validate JSP

    Hi...
    Am working on a struts application in which i have a struts jsp page which will contain a table of records that am populating while loading the page itself, each record of the table will have a check box associated with it.
    my requirement is that, i must select atleast one checkbox from the list of records before going for further processing from the page ie. i must validate whether the the user had selected any one of the check boxes. i am not usings struts validation plugin for this, instead am going for overrideing the validate method of ActionForm in my form bean.
    Now comes my problem:
    When i tried to validate the page without selecting any of the check boxes,the validate method is being called and its checking the values and returning the error message to my jsp page, but by the time the msg comes back to the jsp page the page is getting refreshed and all the previous list of records i had displayed in the page is lost giving me an error msg on jsp that "collection not found". The application scope is set to request and not to session. So i tried with setting the scope to session (which was not permissible by my requirements, still just for testing) but still am geting the same error
    i am stuck up with this problem for a long time and i couldnt find out any one who could solve it, and i have to use the Validate method of Action Form
    Please any one can explain whats the problem and what should i do
    Thanks in advance
    Rens

    ok, i'm going to try and make this short and sweet. let me know if you run into problems.
    first off, you may need to add apache commons-collections to your project.
    #1
    you will need to make a new bean class to represent your 'line' object. so if it was a Person we'd make a Person class with a String name, int age... blah blah blah.
    #2
    in your ActionForm class, add a
    java.util.List personList;and make a normal setter and getter for it
    #3
    this is the only tricky part, make (or add this to) your reset( ) function in your ActionForm...
    public void reset(ActionMapping actionMapping, HttpServletRequest httpServletRequest) {
         personList = ListUtils.lazyList(new java.util.ArrayList(), new Factory() {
              public Object create() { return new Person(); }
    }but replace the 'new Person()' part with whatever the bean class you made in Step 1 is
    #4
    now, in your Action class build the list of objects from the database, and set it into your form.
    #5
    in your .jsp code you will need to use the nested tags like so
    <nested:iterate id="personLine" property="personList">
              <TR>
                   <td><nested:write property="name"/></td>
                   <nested:hidden property="age"/>
              </TR>
    </nested:iterate>
    #6
    then back in your validate code or in your Action class you can access the list by calling yourForm.getPersonList() and validating it. if you find a problem and return with an error all the values will remain without having to talk to the database again.
    hope that helps.

  • Fault policy doesn't fire when asynchronous calls to BPEL  in soa11g

    Hi,
    I have created mainporcess and subprocess both are asynchronous process . exceptions thrown by subprocess are caught in mainprocess using call back operation and fault policy defined in fault-polacy/binding doesn't fire .
    if the subprocess is synchronous exceptions thrown by subprocess are caught in mainprocess and creating human-intervention job for Retry action as defined in fault-polacy/binding.
    Generally how we can handle custom Faults in A asynchronous calls to composites/BPEL processes?
    Thanks
    Ravi

    Hi ,Milan
    Thanks for your response . in subprocess callback port having two operations processResponse,callbackexception
    <wsdl:portType name="BPELProcessAsynchDetailsCallback">
              <wsdl:operation name="processResponse">
                   <wsdl:input message="client:BPELProcessAsynchDetailsResponseMessage"/>
              </wsdl:operation>
              <wsdl:operation name="callbackexception">
                   <wsdl:input message="client:FaultMessage"/>
              </wsdl:operation>
         </wsdl:portType>>
    Any exeptions thrown by suborocess is calling callbackexception operation and main process having pick activity for receiving both processResponse and callbackexception operations.
    subprocessdetails:
    <faultHandlers>
    <catch faultName="bpelx:remoteFault" faultVariable="FaultVar">
    <sequence>
    <assign name="Assign2">
    <copy>
    <from expression="'code'"/>
    <to variable="Invoke1_callbackexception_InputVariable"
    part="payload"
    query="/client:FaultElement/client:code"/>
    </copy>
    <copy>
    <from expression="'summary'"/>
    <to variable="Invoke1_callbackexception_InputVariable"
    part="payload"
    query="/client:FaultElement/client:summary"/>
    </copy>
    <copy>
    <from expression="'details'"/>
    <to variable="Invoke1_callbackexception_InputVariable"
    part="payload"
    query="/client:FaultElement/client:detail"/>
    </copy>
    </assign>
    <invoke name="Invoke1"
    inputVariable="Invoke1_callbackexception_InputVariable"
    partnerLink="bpelprocessasynchdetails_client"
    portType="client:BPELProcessAsynchDetailsCallback"
    operation="callbackexception"
    bpelx:invokeAsDetail="no"/>
    </sequence>
    </catch>
    </faultHandlers>
    <!--
    ORCHESTRATION LOGIC
    Set of activities coordinating the flow of messages across the
    services integrated within this business process
    -->
    <sequence name="main">
    <!-- Receive input from requestor. (Note: This maps to operation defined in BPELProcessAsynchDetails.wsdl) -->
    <receive name="receiveInput" partnerLink="bpelprocessasynchdetails_client" portType="client:BPELProcessAsynchDetails" operation="process" variable="inputVariable" createInstance="yes"/>
    <!--
    Asynchronous callback to the requester. (Note: the callback location and correlation id is transparently handled using WS-addressing.)
    -->
    <switch name="Switch1">
    <case condition="bpws:getVariableData('inputVariable','payload','/client:process/client:input')='test'">
    <bpelx:annotation>
    <bpelx:pattern>test</bpelx:pattern>
    <bpelx:general>
    <bpelx:property name="userLabel">test</bpelx:property>
    </bpelx:general>
    </bpelx:annotation>
    <sequence>
    <empty name="Empty1"/>
    <throw name="Throw1" faultName="bpelx:remoteFault"
    faultVariable="FaultVar"/>
    </sequence>
    </case>
    <otherwise>
    <assign name="Assign1">
    <copy>
    <from variable="inputVariable" part="payload"
    query="/client:process/client:input"/>
    <to variable="outputVariable" part="payload"
    query="/client:processResponse/client:result"/>
    </copy>
    </assign>
    </otherwise>
    </switch>
    <invoke name="Invoke2" bpelx:invokeAsDetail="no"
    inputVariable="outputVariable"
    partnerLink="bpelprocessasynchdetails_client"
    portType="client:BPELProcessAsynchDetailsCallback"
    operation="processResponse"/>
    </sequence>
    mainprocesdetails:
    <faultHandlers>
    <catch faultName="bpelx:remoteFault" faultVariable="Variable1"/>
    </faultHandlers>
    <!--
    ORCHESTRATION LOGIC
    Set of activities coordinating the flow of messages across the
    services integrated within this business process
    -->
    <sequence name="main">
    <!-- Receive input from requestor. (Note: This maps to operation defined in BPELProcess1ASynch.wsdl) -->
    <receive name="receiveInput" partnerLink="bpelprocess1asynch_client" portType="client:BPELProcess1ASynch" operation="process" variable="inputVariable" createInstance="yes"/>
    <!--
    Asynchronous callback to the requester. (Note: the callback location and correlation id is transparently handled using WS-addressing.)
    -->
    <assign name="Assign1">
    <copy>
    <from variable="inputVariable" part="payload"
    query="/client:process/client:input"/>
    <to variable="Invoke1_process_InputVariable" part="payload"
    query="/ns1:process/ns1:input"/>
    </copy>
    </assign>
    <invoke name="Invoke1" bpelx:invokeAsDetail="no"
    inputVariable="Invoke1_process_InputVariable"
    partnerLink="BPELProcessAsynchDetails.bpelprocessasynchdetails_client"
    portType="ns1:BPELProcessAsynchDetails" operation="process"/>
    <pick name="Pick1">
    <onMessage variable="OnMessage_processResponse_InputVariable"
    partnerLink="BPELProcessAsynchDetails.bpelprocessasynchdetails_client"
    portType="ns1:BPELProcessAsynchDetailsCallback"
    operation="processResponse">
    <sequence name="Sequence2">
    <assign name="Assign3">
    <copy>
    <from variable="OnMessage_processResponse_InputVariable"
    part="payload"
    query="/ns1:processResponse/ns1:result"/>
    <to variable="outputVariable" part="payload"
    query="/client:processResponse/client:result"/>
    </copy>
    </assign>
    </sequence>
    </onMessage>
    <onMessage variable="OnMessage_callbackexception_InputVariable"
    partnerLink="BPELProcessAsynchDetails.bpelprocessasynchdetails_client"
    portType="ns1:BPELProcessAsynchDetailsCallback"
    operation="callbackexception">
    <sequence name="Sequence1">
    <throw name="Throw1" faultName="bpelx:remoteFault"
    faultVariable="Variable1"/>
    </sequence>
    </onMessage>
    </pick>
    <invoke name="callbackClient" partnerLink="bpelprocess1asynch_client" portType="client:BPELProcess1ASynchCallback" operation="processResponse" inputVariable="outputVariable"/>
    </sequence>

  • CreateCDATASection() method doesn't creates a CDATA Section.

    Hi,
    While using Oracle XDK, if I try to create a CDATA Section using createCDATAsection() method, it doen't creates a CDATA Section. Instead it creates a normal Text node. If I try the same code with Apache Xerces, it works fine and I have CDATA section.
    The problem I am facing because, my node data has some special characters and I don't want parser to validate that. Has anyone else faced the same problem or have a work around?
    Any help will be appreciated.
    Thanks,
    Atif

    The double square bracket closing the CDATA section was never a problem. I had issues with LrXml encoding the opening angle bracket as an &lt; entity:
        local xml = LrXml.createXmlBuilder(false)
        xml:beginBlock("var")
        xml:tag("name", "var1")
        xml:beginBlock("value")
        xml:tag("string", "<![CDATA[value123]]>")
        xml:endBlock()
        xml:endBlock()
        local strXML = xml:serialize()
    Produces the following maligned XML:
    <?xml version="1.0"?>
    <var>
    <name>var1</name>
    <value>
    <string>&lt;![CDATA[value123]]></string>
    </value>
    </var>
    I guess one way to go about it is to run serialized XML through string.gsub to un-encode the "&lt;![CDATA[" sequence as follows:
    strXML = string.gsub(strXML, "&lt;!%[CDATA%[", "<![CDATA[")
    This is a nasty workaround, but this appears to be the only way to get the job done. Now my serialized XML looks as expected:
    <?xml version="1.0"?>
    <var>
    <name>var1</name>
    <value>
    <string><![CDATA[value123]]></string>
    </value>
    </var>
    This only leaves me wondering as to why LrXml doesn't support CDATA sections through its API, they are not that uncommon...

  • Onblur doesn't fire on autosuggest cfinput

    Hello,
    I have a problem with the autosuggest cfinput. I am using
    Coldfusion 8 and Fusebox 5. Here is the sample of my code.
    <cfinput name="item_number" maxlength="20" type="text"
    maxResultsDisplayed="20"
    autosuggest="cfc:Inventory.model.lookupRoom.lookup({cfautosuggestvalue})"
    value=#getInventory.Item_Number# showAutosuggestLoadingIcon="no"
    onBlur="javascript:loadData();" >
    function loadData(){
    document.frmInventoryData.isLoadData.value = '1';
    target='_self';
    document.frmInventoryData.submit();
    The event does not fire after the autosuggest has been
    selected. When the form is submitted, “item_number” has
    the value that the user entered, but not the value that the user
    selected from the autosuggest. I have tried all the available
    events of cfinput like onChange, onMouseOut.., but it still
    doesn’t work. Please help. Thanks for your time.

    If you would like to.
    SelectOneChoice component:<af:selectOneChoice label="Падеж" id="soc2"
                                        value="#{backingBeanScope.Page1ManagedBean.padeg}"
                                        autoSubmit="true">
                      <af:selectItem label="Именительный" id="si3" value="0"/>
                      <af:selectItem label="Родительный" value="2" id="si4"/>
                      <af:selectItem label="Винительный" value="3" id="si5"/>
                      <af:selectItem label="Дательный" value="4" id="si6"/>
                      <af:selectItem label="Творительный" value="5" id="si7"/>
                      <af:selectItem label="Предложный" value="6" id="si8"/>
                    </af:selectOneChoice>Related outputText:<af:panelLabelAndMessage label="Предпросмотр:" id="plam13"
                                             rendered="true">
                      <af:outputText value="[ANY_MAN(#{bindings.LookupEmpIdE.inputValue}#{backingBeanScope.Page1ManagedBean.padeg != 0 ? ',padeg=' : ''}#{backingBeanScope.Page1ManagedBean.padeg != 0 ? backingBeanScope.Page1ManagedBean.padeg : ''})]" id="ot10"
                                     partialTriggers="soc2 pc1:resId2"/>
                    </af:panelLabelAndMessage>Backing bean variable:private int padeg = 0;
    public int getPadeg() {
          return padeg;
      public void setPadeg(int padeg) {
          this.padeg = padeg;
      }

  • Coldfusion 8: Onblur doesn't fire on autosuggest cfinput

    Hello,
    I have a problem using the autosuggest cfinput. Here is the
    sample of my code.
    <cfinput name="item_number" maxlength="20" type="text"
    maxResultsDisplayed="20"
    autosuggest="cfc:Inventory.model.lookupRoom.lookup({cfautosuggestvalue})"
    value=#getInventory.Item_Number# showAutosuggestLoadingIcon="no"
    onBlur="javascript:loadData();" >
    function loadData(){
    document.frmInventoryData.isLoadData.value = '1';
    target='_self';
    document.frmInventoryData.submit();
    The event Onblur does not fire after the autosuggest has been
    selected. When the form is submitted, “item_number” has
    the value that the user entered, but not the value that the user
    selected from the autosuggest. I have tried all the available
    events of cfinput like onChange, onMouseOut.., but it still
    doesn’t work. Please help. Thanks for your time.
    Vi

    I am not sure whether SELinux is officially supported with ColdFusion or not. In permissive mode you shouldn't have these problems.
    If it is enabled the following is required:
    setsebool -P httpd_can_network_connect 1
    This is necessary for mod_jk to talk to ColdFusion.  It fixed the error you describe in my case. You might make sure that ColdFusion is running of course. Be patient - setsebool takes about a minute to run,
    Also:
    /opt/coldfusion10/config/wsconfig/1/mod_jk.so must be httpd_modules_t
    mod_jk.log must be httpd_log_t.   /var/log/httpd is a good place for it.
    Use chcon -t to make these changes
    Plus other contexts set as standard for Apache (httpd_sys_content_t, etc). I hope this helps.

  • BitmapData draw method doesn't work when the project is published as the .swf file of the web applic

    Hi,
            I am totally confused by this strange error. When I tried using the draw method of BitmapData to draw a movieclip symbol of my project, it seems to work fine locally. However, as I uploaded the published .swf file to my web server and launched it as the plugin of my web application, it failed. The source codes as follows,
    function printscreenClicked():void
         //ExternalInterface.call calls a javascript function to print message1
        var bd:BitmapData = new BitmapData(stage.width,stage.height);
        //ExternalInterface.call calls a javascript function to print message2
      bd.draw(stage);
        //ExternalInterface.call calls a javascript function to print message3
    message3 didn't show at all. Instead, the browser console shows "Uncaught Error: Error calling method on NPObject.". My understanding of this error message is that the .swf is calling something crashing, and I believe that bd.draw(stage)is the crashng method call.
    Also, here is my html embed tag:
        <embed src="/tests/videoplayer.swf" id="flash" quality="high" height="510" width="990" scale="exactfit" name="squambido" align="middle" allowscriptaccess="always" allowfullscreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" style="margin: 0px auto;clear:both;position:relative;"/>
    Can someone help me?

    Thank you for your reply.
    I tried stageWidth and stageHeight, but it still doesn't work.
    The draw() methid is triggered when I clicked a screenshot button in my application as follows,
    ExternalInterface.addCallback("printscreenClicked", printscreenClicked);
    function printscreenClicked():void
         //ExternalInterface.call calls a javascript function to print message1
        var bd:BitmapData = new BitmapData(stage.width,stage.height);
        //ExternalInterface.call calls a javascript function to print message2
      bd.draw(stage);
        //ExternalInterface.call calls a javascript function to print message3
    Would you please give me an example of "waiting for Event.RESIZE is good, or just at least Event.ENTER_FRAME"?
    My real purpose in this application is to capture a snapshot of a streaming video. The video is contained in a movieclip object. I tried stage first since BirmapData.draw() doesn't work when drawing the movieclip on the web site. Do you have any suggestion for this situation? Also, is there any good method to find out what happened if the browser have "Uncaught Error: Error calling method on NPObject."?

Maybe you are looking for

  • Anyone know how to insert to multiple tables on Dreamweaver?

    Hey everyone, I'm a bit of a newbie at PHP and am trying to create my first "dynamic" site.  I have a registration table with fields idNo (primary key & auto-increment), username, password, email.  I also have another table called profile with fields

  • Adobe Acrobat 8.0 won't open any more.

    I have a registered version of Adobe Acrobat 8.0 Pro (with the Creative Suite) running on a computer with Windows 7. Until today it worked fine and since checking for updates it will no longer work - the program won't even open. The other programs al

  • Keyboard/Mouse not working - connecting from OSX

    Good afternoon folks, A user brought this up to me and I thought I would investigate it since I have a Mac at home as well. When connecting from the Mac to a VDI the keyboard and mouse works just fine, however when connecting to a Physical PC running

  • Submit button is not working

    I have created a fillable web form using the FormsCentral app on my mac. It has a couple of required fields, and a couple of show/hide fields. It tests perfectly, and we sent out a link to the formscentral link to all staff and for some people it doe

  • Reading/Writing Cookies in a JWS-Application

    Hello at all, is it possible to read / write local stored Cookies with an JWS-Application? Scenario: The JWS-Application runs at the client PC and should be able to read / write one special cookie on the same machine. Thank you and best regards, Stef