IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  DateTime Input Control

    Posted 05/06/08 07:53 PM

    Hi,

    I’'m having the following error:

    DateInput component value must be a java.util.Date instance

    I’'m binding the value Date Input control to a java Date field.

    Any suggestions?


    #webMethods
    #MWS-CAF-Task-Engine
    #webMethods-BPMS


  • 2.  RE: DateTime Input Control

    Posted 05/06/08 09:19 PM

    Are you referring to the validation error shown in the Designer? If so that might be a problem with validation code not correctly recognizing your property, if that is the case you may ignore it and proceed with deploying and running your application

    Alex


    #MWS-CAF-Task-Engine
    #webMethods
    #webMethods-BPMS


  • 3.  RE: DateTime Input Control

    Posted 05/07/08 10:00 AM

    Let me give you more detail:

    I’m on the job of creating a task portlet using Designer CAF 7.1. As an input and output (Managed Bean) of the task, I have a document which contains 6 attributes (all of them type string) even tough 2 of them represent dates values. When it first loads the page all of the values are empty.

    What I did was:


    #webMethods
    #MWS-CAF-Task-Engine
    #webMethods-BPMS


  • 4.  RE: DateTime Input Control

    Posted 05/12/08 12:54 PM

    The IS and CAF webservice stacks have some sort of mismatch when it comes to handling dates. Whereas those fields may be typed as dates in IS, they’re probably exposed to CAF as strings. In CAF 7.1.x, you can bind the DateInput control’s value to a string, as long as you also set the DateInput’s “valuePattern” property to a pattern that can be used to parse the string. See “http://www.ajax-softwareag.com/articles/N7M0TP/DesignerOnlineHelp/caf_date_input.html”.

    I myself don’t know anything about IS, but here’s a suggestion from one of our SE’s about how to alternately handle this on the IS side:

    I handled this by having IS return the date as a String, and I set the namespace on the date as w3c…DateTime. When you create the WSC in Designer it properly recognizes the field as a DateTime, so no other controls are required. You need to make sure that you format the date in IS as YYYY-MM-DDTHH:MM:SS.SSS-ZZZZ.

    I have also found that when I recreate a WSC in Designer, that I sometimes need to go to the Navigator view and delete the wsdl before I regenerate/recreate the WSC or else it used the old wsdl. Not sure if this was something I was doing wrong, or Designer.


    #MWS-CAF-Task-Engine
    #webMethods
    #webMethods-BPMS