DateTimeConverter pattern property problem

Anyone else have a problem entering a date/time pattern using the custom editor button [...] in the Properties tab?
Every time I enter a pattern (eg. EEE, d MMM yyyy HH:mm:ss zzzz) using the pop-up custom editor (accessed by clicking the little [...] button in the Properties tab for a seleted dateTimeConverter object) the pattern property doesn't take. After clicking 'OK' in the custom editor the pattern property remains blank.
The pattern is saved if you enter it directly in the Property tab text box without using the custom editor pop up.
Is this supposed to happen?
I noticed this as I went through the 'Tutorials About Converters' at http://devservices.sun.com/premium/jscreator/standard/learning/tutorials/converters.html - specifically Example Three: Using Converters for Date and Time Formatting.
Many thanks to anyone who can explain what I am doing wrong.
Regards,
J

I put this little method into the session bean and it works well for me. I wrote it so it is in the pattern that
MySql likes for datetime.
Its handy for calling anywhere in the programme.
public String getTimeStamp(){      
SimpleDateFormat formatter= new SimpleDateFormat("yy-MM-dd HH:mm:ss");
Date currentTime_1 = new Date();
String dateString = formatter.format(currentTime_1);
return dateString;
Hope this helps Phil.

Similar Messages

  • JSF url-pattern *.jsf problem

    Hi all,
    I am working in a project to add the jsf page in the existing jsp application. It uses Apache Tomcat 6.0.18 as the server and eclipse for coding.
    I created a jsf page named index.jsp and I added the code in web.xml as follows
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.jsf</url-pattern>
    <session-config>
    <session-timeout>30</session-timeout>
    </session-config>
    </servlet-mapping>
    and when I use the url
    http:localhost:8080/myproject/index.jsf
    Page did not open in the browser and browser reports page not found.
    If I change url-pattern to
    <url-pattern>/faces/* </url-pattern>
    and
    when I use the url
    http:localhost:8080/myproject/faces/index.jsp
    It works.
    What should I want to do to make
    http:localhost:8080/myproject/index.jsf to render in the browser?
    Edited by: mvg90 on Jul 24, 2009 4:22 AM

    BalusC wrote:
    I have no idea. Reinstalling the stuff is definately cumbersome. This is likely just a matter of configuration and/or the way of usage. Hard to say based on the as far given little information (read this how to ask questions the smart way and read this how to provide good code examples representing your actual problem).
    If you want you can of course redo the setup of the environment and the code based on some reliable tutorial / book.I am sorry if my information is not sufficient. What information can I give to solve the problem?

  • NJawin: User32 and property problems

    Hi everybody, especially Vitaly Shelest ;)
    I'm using latest NJawin (1.1.31) and jsdk1.4.2 for wrapping some DLLs. It works, but there are several problems:
    1) When null and "" (empty strings) are passes in IDispatch property put methods for String properties, there is an exception thrown;
    2) HelloJava sample from Jawin distribution won't work. It ends with
    Exception in thread "main" java.lang.OutOfMemoryError: requested -627650838 bytes
    It won't work with Jawin either.
    It's sad, but there is no source code available for NJawin. So I experience a little bit of helplessness =(
    Did anybody manage to create a window with NJawin WinAPI fuctions? Do you know any workarounds for String properties in IDispatch?
    Regards,
    Vladimir Kirillov
    vladikir SOBAKA pochta TOCHKA ru

    Hi Vladimir,
    I have made a test: wrote COM server DLL with one property testString
    STDMETHODIMP CnjTest::get_testString(BSTR *pVal);
    STDMETHODIMP CnjTest::put_testString(BSTR newVal);and java code
    import NJAWINTESTLib.InjTest;
    import NJAWINTESTLib.njTest;
    import com.develop.jawin.COMException;
    public class jawinTest {
        public static void main(String[] args) throws COMException {
            InjTest obj = new InjTest(njTest.clsID);
            obj.settestString(new String());
            String str = obj.gettestString();
            System.exit(0);
    }When the parameter in settestString is null njawin generates VARIANT type VT_NULL. This is wrong. If you want to path an empty string use new String() or "". This is equivalent to null and njawin will generate VARIANT with type VT_BSTR.
    Vitaly

  • NG6 pattern lock problem.

    Is anyone else having the problem of not being able to interact with their phone after the NG6 update with pattern lock enabled? On the first unlock my phone takes me to my home screen but does not respond to touch. If I relock and then unlock again it will respond to input. This is super annoying. This patch seems to have broken more than it fixed.

        I'm sorry to learn about the issues you're having with your phone after the update MechancialFox. We certainly want to do everything we can to get it up and running again. Have you tried Safe Mode? If not, please use the phone in Safe Mode http://vz.to/1ldHnPU and keep us posted.
    AdaS_VZW
    Follow us on Twitter at @VZWSupport 

  • Pattern Matching problems

    Hi people,
    I'm having a slight problem with pattern matching. What I need to do is find if my pattern is a given string an return the end index.
    Here's my string:
    <TD>Some text</TD>
    I need to find everything between the 2 anchor tags. (In this case "Some text"). The query string parameters are the only thing that can change.
    Here's what I've tried:
    Pattern pattern = Pattern.compile("<a href=\"/cgi-bin/dir/program.cgi?PARAM1=[0-9]&PARAM2=[0-9]*\"onmouseover=\"window.status='';return true;\">");
    Matcher matcher = pattern.matcher(myString);
    if ( matcher.find() ) {
       System.out.println(matcher.end());
       System.out.println(myString.substring(matcher.end(), myString.toLowerCase().indexOf("</a>",matcher.end())));               
    }Of course I've tried a lot of other things. I've also googled to try to find some examples but to no avail.
    Thanks for any help.

    Just change your Patterne. It will work. The '?' character is being considered as a pattern matching character, while you want it as it is. Use \\ before '?' character.
    Pattern pattern = Pattern.compile("<a href=\"/cgi-bin/dir/program.cgi\\?PARAM1=[0-9]&PARAM2=[0-9]*\"onmouseover=\"window.status='';return true;\">");
    Hope it helps.

  • Httpservice url property problem

    hello everyone
    I need to include non latin characters in my httpservice url property. It points to a file. (http://www.myurl.com/nonLatinCharactersInFilename.xml)And its giving me errors.
    When I check the error, the url appears like so: http://www.myurl.com/??????????????????.xml
    Im using these character set everywhere in the code and there are no problems except when im sending the httpservice call.
    I also have same characters in the result event. and theres no prpblem with that.
    Any ideas how I can include these file names in the url property? or is there another way?
    In my app the user clicks a list (of file names with non latin characters) and an http service is sent to load the corresponding file to a richEditableText component.
    every thing except the non latin character part works fine
    any help in the right direction will be appreciated.
    thanx

    Hello,
    I am not shure, but I think you have to use a webserver, with
    a folder directing to your desktop. Then you can use something like
    that:
    http://localhost/Desktop.
    Otherwise you can try file:///C://Documents and
    Settings/[username]/Desktop/flex/...xml
    I hope this will help

  • Pattern repeat problem

    Hello community!
    I have a problem with a pattern / pattern origin. matter of a fact i have had this problem numerous times:
    i create a pattern. the pattern looks good, everything cool. i switch back to my actual artboard/layer/drawing surface. I create a box and fill it with the pattern, let's say in the middle of the artboard. all of a sudden the pattern originates in the middle, on the side or i don't know where... and for whatever reason i can not give it the origin that i want..?! how can i set a point of origin for the pattern without having to transform it into a path or of the kind?
    If the patten was really bad i took it and shoved it into an InDesign document, placed it as needed and printed it that way.
    But there has to be an easier way?
    Waiting for help,
    Thanks!
    i have added these shots for orientation.
    the white part at the bottom was taken from the top and shoved in at the end of the pattern repeat o_O
    (the right image is as it should be and how it looked like in the pattern creating tool; the left image is how the pattern came out)

    The pattern's origin is positioned at the rulers' origin; (x=0 / y=0). To control its proximity to the object, align the object's top-left extent to the ruler origin, or vice-versa. To make it stick no matter where else you move the object,  expand the object's fill.

  • OO4O 10g and VB6 Bookmark Property Problem

    Hi All,
    I'm facing a problem with the BookMark property. It's throwing OIP-04121 Error.
    Below are the details
    Controls used:
    1) SSDBGrid of v3.11
    2) ORADC of v10g
    Code:
    Private Sub gridMain_RowLoaded(ByVal Bookmark As Variant)
    Dim PubHol As PUBLIC_HOLIDAY
    Dim Rs As Object 'Oracle DynaSet
    Set Rs = datMain.Recordset.dbClone()
    Rs.Bookmark = Bookmark ' Getting OIP-04121 Error here
    If Rs("year") = 0 Then
    gridMain.Columns(1).text = "----"
    Else
    gridMain.ColText(1) = Rs("year")
    End If
    The code is working fine in VB3.0, OO4O 1.0 and Sheridan Data Widgets 1.0e. However it's throwing error with VB6, OO4O latest versions and Sheridan Data Widgets 3.11.
    Please help me I tried many ways but failed. Kindly provide some alternate way to achieve this BookMark.
    Thanks and Regards,

    Hi All,
    I'm facing a problem with the BookMark property. It's throwing OIP-04121 Error.
    Below are the details
    Controls used:
    1) SSDBGrid of v3.11
    2) ORADC of v10g
    Code:
    Private Sub gridMain_RowLoaded(ByVal Bookmark As Variant)
    Dim PubHol As PUBLIC_HOLIDAY
    Dim Rs As Object 'Oracle DynaSet
    Set Rs = datMain.Recordset.dbClone()
    Rs.Bookmark = Bookmark ' Getting OIP-04121 Error here
    If Rs("year") = 0 Then
    gridMain.Columns(1).text = "----"
    Else
    gridMain.ColText(1) = Rs("year")
    End If
    The code is working fine in VB3.0, OO4O 1.0 and Sheridan Data Widgets 1.0e. However it's throwing error with VB6, OO4O latest versions and Sheridan Data Widgets 3.11.
    Please help me I tried many ways but failed. Kindly provide some alternate way to achieve this BookMark.
    Thanks and Regards,

  • Bound property problem

    Can the property binding in javabeans work if the bean doesnt have a "PropertyChange" method implemented in it. If yes, then how ?
    Similarly, how does a bean handle the case of multiple bound properties. This question arises because, there is only one "propertyChange" method in a bean and it recieves a PropertyChangeEvent parameter. In case of multiple bound properties how does a bean know which properties propertychange event has been fired?

    But this means that the property change listener has to be aware of the names of all the properties that it can bind, which is a severe limitation ! This is because , if I want to make a bean which has a property color , then it would be very difficult to make the bean so generic so that it can be bound to any bean containing a property representing a color. Unless and Until I know the name of the property of the source bean, I cannot make use of the propertyChange method of the destination bean to handle the change in property.
    The problem comes when a bean has multiple properties . In that case, in it's property change method, it has to filter based on the names which are not known until runtime.

  • Component binding property problem

    following problem:
    I have a form where I built a dataTable with a dynamic number of columns. To achieve this, I used a component binding (backing bean) to dynamically add columns.
    The form is used for different kind of queries and every query has it's own number of columns. The query-identification is submitted via a request parameter.
    All the data in the query-form are o.k. (bean values) but the backing bean will not be called in case of a new request (same jsf-form, but other request-parameter).
    example:
    http://host/url.faces?id=1
    http://host/url.faces?id=2
    <h:dataTable id="test"
                 value="#{test.values}"
                 var="i"
                 rendered="true"
                 binding="#{test.table}">
    </h:dataTable>whereas test is a bean which is created in a servlet listener and also updated with the corresponding id from the request.
    The table-property depends on the id given in the request.
    why ?

    ok, I found out, that using the <h:commandLink> with a param-tag solves this issue.
    Now the backing-bean's method to build the table is all-time called.
    And it works even after an expired session.
    But unfortunately I do not really know, why it works this way and the other it doesn't...

  • Cell Pattern Color Problem

    Is there a way to change the color of the “cell pattern” in Premiere Pro? The color correction effects and even Paint Bucket dont work. The only way I was able to change the color was to put a colored image over the cell pattern and reduce the opacity. There must be a way to change the cell pattern directly?

    In the code that sets the background, you have a if - else (if - else if) structure. What's the default setting, when none of the 3 conditions are met?
    And learn to indent your code correctly so that code blocks are readily apparent.
    [http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html]
    db

  • Classpath and property problem in services

    Hi, all,
    I've had a number of problems getting the Stockquote example to run properly. This seems to be due to a problem that services don't get either classpaths or properties when they start.
    The first manifestation of this problem came when the proxySet, proxyHost, and proxyPort environment variables weren't getting set properly in class services.stockquote.Stockquote. The symptom was that url.openStream () timed out because the proxy was not set correctly.
    The second symptom comes when"JavaPort" is used as the port on the client. Despite every attempt I've made to put services.stockquote.Stockquote on the classpath, URLClassLoader will not find this class. However, a call to Class.forName("services.stockquote.Stockquote") in Main.java, just before the bottom of the stack, works! It works in both the client and the server!
    So, could someone please tell me why the classpath and properties are getting shucked, and how to get them right?
    I'm on Windows 2000 :p using JDK 1.3.1 and Tomcat 4.0.
    Thanks,
    - Steve.

    Vivek, I think this belongs in a different thread. Also you'll need to say what problems you're having.
    The only thing that definitely needs to be changed about the example is that the service may fail if it's run behind a proxy server. You'll need to set the following System properties:
    System.setProperty("proxySet", "true");
    System.setProperty("proxyHost", "your.proxy.com");
    System.setProperty("proxyPort", <your proxy port>");
    If this isn't done you'll get an exception like the following:
    Exception in thread "main" com.ibm.wsif.WSIFException: SOAP Fault:SOAP-ENV:Server Exception from service object: Operation timed out: connect
    -S.

  • JSF/Spring integration - managed-property problem

    I am using JSF 1.1_01 (MyFaces 1.1), Spring 1.2, Ajax4Jsf.
    The JSF application has h:selectOneMenu .
    On change event of h:selectOneMenu sets "selectedValue" into backing bean as shown below:
    page.jsp
    <h:selectOneMenu value="#{test.selectedDevice}" >
    <f:selectItem itemValue="0" itemLabel="--New--"/>
    <f:selectItem itemValue="1" itemLabel="WorkStation"/>
    <f:selectItem itemValue="2" itemLabel="Router"/>
    <f:selectItem itemValue="3" itemLabel="Switch"/>
    <ajax:support action="#{test.loadDevice}" event="onchange" reRender="t2,t3,t4,t5"/>
    </h:selectOneMenu>
    TestBean.java (Backing Bean)
    public String getSelectedDevice() {
    logger.info(" *** In getSelectedDevice *** ");
    if (selectedDevice == null) {
    selectedDevice = "0"; // This will be the default selected item.
    return selectedDevice;
    public void setSelectedDevice(String selectedDevice) {
    logger.info(" *** In setSelectedDevice *** ");
    this.selectedDevice = selectedDevice;
    Here are the configuration file snippets for integrating JSF Spring
    web.xml
    <listener>
    <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
    </listener>
    <context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>/WEB-INF/applicationContext.xml</param-value>
    </context-param>
    faces-config.xml
    <application>
    <variable-resolver>org.springframework.web.jsf.DelegatingVariableResolver</variable-resolver>
    </application>
    <managed-bean>
    <managed-bean-name>test</managed-bean-name>
    <managed-bean-class>test.TestBean</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    <managed-property>
    <property-name>deviceManager</property-name>
    <property-class> test.DeviceTypeManager </property-class>
    <value>#{deviceManager}</value>
    </managed-property>
    </managed-bean>
    The above code results in the following error
    javax.faces.FacesException: Cannot get value for expression '#{test.selectedDevice}'
    The error occurs only if i include <managed-property> inside the <managed-bean> in faces-config.xml.
    The moment i remove <managed-property> from face-config.xml the error disappears & page gets rendered properly.
    The purpose in having <managed-property> inside managed-bean is to call Spring's Manager class (i.e. deviceManager) from JSF application
    Any pointers/suggestions in resolving the error will be highly appreciated
    Regards
    Bansi

    The TestBean have a property for DeviceManager along with setter/getter methods as shown below. Sorry for not including in earlier posting
    TestBean.java (Backing Bean)
    private DeviceTypeManager deviceManager;
    public DeviceTypeManager getDeviceManager() {
         return deviceManager;
    public void setDeviceManager(DeviceTypeManager deviceManager) {
         this.deviceManager = deviceManager;
    Here are the two scenarios
    Scenario 1 : without <managed-property> the code works fine
    Scenario 2 : with <managed-property> the code results in following error
    javax.faces.FacesException: Cannot get value for expression '#{test.selectedDevice}'
    Scenario 1 has only JSF whereas Scenario 2 has JSF-Spring integration
    The Scenario 1 works absolutely fine as the expression '#{test.selectedDevice}' gets its value from setter/getter method in the backing bean(TestBean.java) . This is expected behaviour & wondering why it doesn't work similarly in Scenario 2 instead it complains
    Cannot get value for expression '#{test.selectedDevice}'
    I am willing to upload the war file. Any pointers/suggestions in resolving the error will be highly appreciated
    Regards
    Bansi

  • PS CS6 Scripted Pattern Fill Problem

    Hi,
    Has any one seen this before?
    When i do a normal Fill with Pattern the pattern is the right colour, image (1)
    But if i select Scripted Patterns Image (2) it always comes out with random colours.

    There is also a scripted UI for these scripts http://uebelephoto.com/CS6_Fill.html
    Scripted Fill UI v 1.2 for Photoshop CS6
    This script creates a User Interface for changing the variables in Photoshop CS6's new scripted fills, so the average user does not have to edit Photoshop's fill scripts. There is a readme file included with the zip download that describes the script in more detail and how to use it. This script is free and can be modified for your own use, but it can not be modified for resale.
    This script is a work in progress and there are some bugs with it, which I will attempt to fix as time permits.
    Updated 5/1/2012
    I do not use it nor do I understand its UI

  • ONETIME_WHERE property problem

    Hi ALL,
    Forms 10g 10.1.2.0.2 and Win-XP sp2
    I have a form , on it's When-new-form-instance trigger i wrote this code
    Set_Block_Property('jourhead',ORDER_BY,'VOCH_NO');
    Set_Block_Property('jourhead',DEFAULT_WHERE,'IDENT='||V_IDENT);
    Where :
    VOCH_NO is a varchar2 text item
    v_ident is a number variable
    I have a button in this form, i wrote this code for When-button-pressed trigger
    Set_Block_Property ('JOURHEAD',ONETIME_WHERE,'VOCH_NO='||''''||V_PREV_record||'''');
    EXECUTE_QUERY;
    This code works fine but sometimes the form freezes at the line (execute_query)
    Note, The form doesn't freeze if i wrote this line like this :
    Set_Block_Property ('JOURHEAD',ONETIME_WHERE,'VOCH_NO='||V_PREV_record);
    But this is not the case, it doesn't give the required result.
    What is wrong in this code ?
    Please help
    Thanks
    Message was edited by:
    Mostafa Abolaynain

    Hi Ade,
    Before set item property the value is displayed right , and sometimes the form freezes before displaying the message (this may be for the same record).
    Ade i noticed a very strange behaviour :
    the following syntax freezes the form :
    Set_Block_Property('JOURHEAD',DEFAULT_WHERE,' IDENT= '||FV.V_IDENT);
    Set_Block_Property('JOURHEAD',ONETIME_WHERE,'VOCH_NO='||''''||V_PREV_record||'''');
    However the following syntax doesn't freeze the form :
    Set_Block_Property('JOURHEAD',ONETIME_WHERE,'VOCH_NO'||'='||''''||V_PREV_record||''''||' AND IDENT='||FV.V_IDENT);
    Aren't the two syntax the same ??
    I confused .

Maybe you are looking for

  • A better way to rotate a shape

    I need a way to easily rotate several Ellipse2D objects. The approach I'm using is not working because it's rotating the entire coordinate system in my Canvas object: public void paint(Graphics g) {      Graphics2D g2 = (Graphics2D) g;           Elli

  • Supplier Statement Report

    Oracle Payables EBS R12.1.2 is someone using the "Supplier Statement" (APTPSTMT) report in AP? We tried using it but it does not considers the Tax Deduction and shows the deducted amount as still an Outstanding. If someone kindly suggest any other al

  • Can receive, but not send e-mail

    Hi, I'm having a problem sending e-mail from my Iphone 4. I have no problem receiving it - just sending it. I use Comcast Xfinity for e-mail, and recently upgraded to a Motorola SBG6782-AC Cable Modem/Wi-Fi AC router. I've had the router for a few we

  • How to debug a stored procedure in sql server 2012 ?

    whenever I do a change to a stored procedure and then run the alter proc again after that I place a break point on the exec stored procedure and try to step into the code  SQL management studio starts stepping into an older version of the stored proc

  • Communication channel Authorization in rwb

    Hi all Could you please to help me.. How we can set up authorization for communication channel in rwb? like a user A can start/stop channel A but cannot for channel B or user B can start/stop for channel B but cannot for channel A. Thanks and Regards