[JBoss Seam] - Re: [newbie] timezones and s:convertDateTime
by mars1412
| * call the page 4 the 1st time
| 15:37:02,640 INFO [Contexts] starting up: org.jboss.seam.web.session
| 15:37:02,702 INFO [DebugObserver] JSF phase: before RESTORE_VIEW 1
| 15:37:02,811 INFO [DebugObserver] JSF phase: after RESTORE_VIEW 1
| 15:37:02,858 INFO [DebugObserver] JSF phase: before RENDER_RESPONSE 6
| breakpoint: org.jboss.seam.ui.converter.DateTimeConverter.getTimeZone()
| breakpoint: org.jboss.seam.international.initTimeZone()
| breakpoint: getCurrentDateTime() returns "Tue Dec 18 15:40:40 CET 2007"
| 15:40:50,987 INFO [DebugObserver] JSF phase: after RENDER_RESPONSE 6
|
| PAGE:
| CurrentDateTime: timezone: sun.util.calendar.ZoneInfo[id="Europe/Berlin",offset=3600000,
| dstSavings=3600000,useDaylight=true,transitions=143,lastRule=
| java.util.SimpleTimeZone[id=Europe/Berlin,offset=3600000,dstSavings
| =3600000,useDaylight=true,startYear=0,startMode=2,startMonth=2,startDay=-1,startDayOfWeek=1,
| startTime=3600000,startTimeMode=2,endMode=2,endMonth=9,endDay=-1,
| endDayOfWeek=1,endTime=3600000,endTimeMode=2]]
|
| Dienstag, 18. Dezember 2007 15:40:40
|
| --> I think this is the system timezone which is GMT+1
|
| * now I change the timezone to Etc/GMT-2 (with raw offset of GMT-02:00)
| expected output: Dienstag, 18. Dezember 2007 12:40
|
| 15:42:22,788 INFO [DebugObserver] JSF phase: before RESTORE_VIEW 1
| breakpoint: org.jboss.seam.ui.converter.DateTimeConverter.getTimeZone()
| 15:43:17,193 INFO [DebugObserver] JSF phase: after RESTORE_VIEW 1
| 15:43:17,224 INFO [DebugObserver] JSF phase: before APPLY_REQUEST_VALUES 2
| 15:43:17,271 INFO [DebugObserver] JSF phase: after APPLY_REQUEST_VALUES 2
| 15:43:17,271 INFO [DebugObserver] JSF phase: before PROCESS_VALIDATIONS 3
| 15:43:17,287 INFO [DebugObserver] JSF phase: after PROCESS_VALIDATIONS 3
| 15:43:17,302 INFO [DebugObserver] JSF phase: before UPDATE_MODEL_VALUES 4
| breakpoint: org.jboss.seam.international.TimeZoneSelector.setTimeZoneId() id=GMT+2
| 15:44:20,354 INFO [DebugObserver] JSF phase: after UPDATE_MODEL_VALUES 4
| 15:44:20,354 INFO [DebugObserver] JSF phase: before INVOKE_APPLICATION 5
| 15:44:20,370 INFO [DebugObserver] timeZoneSelected Etc/GMT+2
| 15:44:20,370 INFO [DebugObserver] JSF phase: after INVOKE_APPLICATION 5
| 15:44:20,385 INFO [DebugObserver] JSF phase: before RENDER_RESPONSE 6
| breakpoint: getCurrentDateTime() returns "Tue Dec 18 15:44:20 CET 2007"
| 15:44:44,946 INFO [DebugObserver] JSF phase: after RENDER_RESPONSE 6
|
| PAGE:
| CurrentDateTime: timezone: sun.util.calendar.ZoneInfo[id="Etc/GMT+2",offset=-7200000,dstSavings=0,useDaylight=false,transitions=0,lastRule=null]
|
| Dienstag, 18. Dezember 2007 15:44:20
| --> still the old timezone
|
| * call another page
| 15:45:52,316 INFO [DebugObserver] JSF phase: before RESTORE_VIEW 1
| 15:45:52,316 INFO [DebugObserver] JSF phase: after RESTORE_VIEW 1
| 15:45:52,331 INFO [DebugObserver] JSF phase: before RENDER_RESPONSE 6
| 15:45:52,987 INFO [DebugObserver] JSF phase: after RENDER_RESPONSE 6
|
| * then revisit the original page:
| 15:46:22,907 INFO [DebugObserver] JSF phase: before RESTORE_VIEW 1
| 15:46:22,907 INFO [DebugObserver] JSF phase: after RESTORE_VIEW 1
| 15:46:22,923 INFO [DebugObserver] JSF phase: before RENDER_RESPONSE 6
| breakpoint: org.jboss.seam.ui.converter.DateTimeConverter.getTimeZone()
| breakpoint: getCurrentDateTime() returns "Tue Dec 18 15:46:49 CET 2007"
| 15:47:06,138 INFO [DebugObserver] JSF phase: after RENDER_RESPONSE 6
| CurrentDateTime: timezone: sun.util.calendar.ZoneInfo[id="Etc/GMT+2",offset=-7200000,dstSavings=0,useDaylight=false,transitions=0,lastRule=null]
|
| Dienstag, 18. Dezember 2007 12:46:49
| --> now it's correct
| |
| |
| | Maybe it would also help to put a breakpoint somewhere into javax.faces.convert.DateTimeConverter to check when this method is called. But I do not quite know how to do that...
| | I suppose: the seam datetime converter extends javax.faces.convert.DateTimeConverter which must be somewhere in my JSF implementation: somewhere in the facelets.jar
| | but I have just could not find any DateTimeConverter class in the jsf-facelets.jar and I don't know where I can download the facelets source (yet..)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113811#4113811
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113811
18 years, 4 months
[JBoss Seam] - Re: HTTP Status 404 - /registration/
by vikramchhetryy
ant clean deploy
| Buildfile: build.xml
| Overriding previous definition of reference to emma.classpath
|
| clean:
| [delete] Deleting directory /home/vikramc/.eclipse/seam/examples/registration/dist
| [delete] Deleting directory /home/vikramc/.eclipse/seam/examples/registration/exploded-archives
|
| initcopy:
|
| initpoms:
| [echo] Setting up dependencies
| [copy] Copying 1 file to /home/vikramc/.eclipse/seam/classes/poms
| [artifact:install] [INFO] Installing /home/vikramc/.eclipse/seam/classes/poms/root.pom to /root/.m2/repository/org/jboss/seam/root/2.0.1.CR1/root-2.0.1.CR1.pom
| [copy] Copying 1 file to /home/vikramc/.eclipse/seam/classes/poms
| [artifact:install] [INFO] Installing /home/vikramc/.eclipse/seam/classes/poms/parent.pom to /root/.m2/repository/org/jboss/seam/parent/2.0.1.CR1/parent-2.0.1.CR1.pom
| [copy] Copying 1 file to /home/vikramc/.eclipse/seam/classes/poms
| [copy] Copying 1 file to /home/vikramc/.eclipse/seam/classes/poms
| [copy] Copying 1 file to /home/vikramc/.eclipse/seam/classes/poms
| [copy] Copying 1 file to /home/vikramc/.eclipse/seam/classes/poms
| [copy] Copying 1 file to /home/vikramc/.eclipse/seam/classes/poms
| [copy] Copying 1 file to /home/vikramc/.eclipse/seam/classes/poms
| [copy] Copying 1 file to /home/vikramc/.eclipse/seam/classes/poms
| [copy] Copying 1 file to /home/vikramc/.eclipse/seam/classes/poms
|
| copyseam:
|
| copyseamdependencies:
|
| copyextradependencies:
|
| init:
| [echo] Building Seam Registration Example 2.0
| [mkdir] Created dir: /home/vikramc/.eclipse/seam/examples/registration/exploded-archives/jboss-seam-registration.jar
| [mkdir] Created dir: /home/vikramc/.eclipse/seam/examples/registration/exploded-archives/jboss-seam-registration.ear
| [mkdir] Created dir: /home/vikramc/.eclipse/seam/examples/registration/exploded-archives/jboss-seam-registration.war
| [mkdir] Created dir: /home/vikramc/.eclipse/seam/examples/registration/dist
|
| select-compiler:
|
| compile:
| [echo] lib is /home/vikramc/.eclipse/seam/lib
| [javac] Compiling 4 source files to /home/vikramc/.eclipse/seam/examples/registration/exploded-archives/jboss-seam-registration.jar
|
| jar:
| [copy] Copying 3 files to /home/vikramc/.eclipse/seam/examples/registration/exploded-archives/jboss-seam-registration.jar
|
| init.war:
|
| war:
| [copy] Copying 3 files to /home/vikramc/.eclipse/seam/examples/registration/exploded-archives/jboss-seam-registration.war
| [copy] Copying 3 files to /home/vikramc/.eclipse/seam/examples/registration/exploded-archives/jboss-seam-registration.war/WEB-INF/lib
|
| jboss.war:
| [copy] Copying 3 files to /home/vikramc/.eclipse/seam/examples/registration/exploded-archives/jboss-seam-registration.war
|
| ear:
| [copy] Copying 3 files to /home/vikramc/.eclipse/seam/examples/registration/exploded-archives/jboss-seam-registration.ear
| [mkdir] Created dir: /home/vikramc/.eclipse/seam/examples/registration/exploded-archives/jboss-seam-registration.ear/lib
| [copy] Copying 1 file to /home/vikramc/.eclipse/seam/examples/registration/exploded-archives/jboss-seam-registration.ear/lib
|
| archive:
| [jar] Building jar: /home/vikramc/.eclipse/seam/examples/registration/dist/jboss-seam-registration.jar
| [jar] Building jar: /home/vikramc/.eclipse/seam/examples/registration/dist/jboss-seam-registration.war
| [jar] Building jar: /home/vikramc/.eclipse/seam/examples/registration/dist/jboss-seam-registration.ear
|
| datasource:
|
| meldware:
|
| deploy:
| [copy] Copying 1 file to /Applications/jboss-4.2.2.GA/server/default/deploy
|
| BUILD SUCCESSFUL
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113808#4113808
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113808
18 years, 4 months