voyent
Date Spinner  XML
Forum Index -> ICEmobile General
Author Message
bcantu

Joined: 02/Nov/2009 00:00:00
Messages: 45
Offline


I cannot get the locale date format used and keep getting the validator message "{0}: Conversion error occurred"...
I just don't get it this I thought would be very straight forward..


HTML:

<h:outputLabel for="endDate" value="#{msg.advertiseEndDateLabel}: "/>
<mobi:dateSpinner id="endDate"
singleSubmit="false"
locale="#{promotionBean.country}"/>
<h:message for="endDate" style="width:30%;color:red" />

<mobi:commandButton actionListener="#{promotionBean.savePromotion}"
value="#{msg.buttonAcknowledgeAndContinue}"
type="submit"
buttonType="attention"
style="position:relative;float:right;line-height:6px;padding:10px;margin:0;">
</mobi:commandButton>

BEAN:
import java.util.Date;
private Date endDate;

public Date getEndDate() {
return endDate;
}

public void setEndDate(Date endDate) {
this.endDate = endDate;
}
philip.breau


Joined: 08/May/2006 00:00:00
Messages: 2989
Offline


What locale values are you using?

.
bcantu

Joined: 02/Nov/2009 00:00:00
Messages: 45
Offline


Hi Philip,
The locality is AU for Australia, so the date format is dd/mm/yyyy. I'm using a MAC and Safari and Chrome to test this web Page on the desktop. I have also used Xcode and the Simulator for iPad(x64) as this page only runs on a large screen.

I have especially coded a form around the First of Two Spinners in the page to try and isolate the issue and reduce any side affects. I have seen the second date (end date) spinner produces the conversion error field after entering the date in the first field (start date). That was the reason for putting the two date spinners in separate forms. The affect on the simulator is quite different in that no conversion error appears but afar entering both dates the and attempting to save the data. Both dates are empty and I cannot enter a date in either field using the date spinner. That is after selecting a date the field is not filled with the selected date and is empty.

I hope I have captured the information you need. I have spent a lot of time on this issue and unfortunately preventing me from finalising a release to TEST. It would be truly appreciated if a solution or workaround to this issue could be found.

Many thanks in advance Philip.

The Desktop Chrome produces the following Source code found in the browser:

<form action="/HaystackWorks/index.xhtml" enctype="application/x-www-form-urlencoded" id="promotionsDetailsSTART" method="post" name="promotionsDetailsSTART">
<input name="promotionsDetailsSTART" type="hidden" value="promotionsDetailsSTART" />
<input name="ice.window" type="hidden" value="a1i4qm600r" /><input name="ice.view" type="hidden" value="vw5hl0e4" /><script id="promotionsDetailsSTART:promotionsDetailsSTART_captureSubmit" type="text/javascript">ice.captureSubmit('promotionsDetailsSTART',false);ice.captureKeypress('promotionsDetailsSTART',null);</script><div class="mobi-fieldset-row" id="promotionsDetailsSTART:j_idt377"><label for="promotionsDetailsSTART:SpinnerStartDate" id="promotionsDetailsSTART:_t378">
When is this offer is to be made public: </label><input id="promotionsDetailsSTART:SpinnerStartDate" name="promotionsDetailsSTART:SpinnerStartDate" onblur="ice.se(event, this);" type="date" value="Wed Jan 20 00:00:00 WST 303" /><span id="promotionsDetailsSTART:j_idt379"></span></div><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="-2720827817723284393:-1912069983383467973" autocomplete="off" />
</form>
<form action="/HaystackWorks/index.xhtml" enctype="application/x-www-form-urlencoded" id="promotionsDetailsEND" method="post" name="promotionsDetailsEND">
<input name="promotionsDetailsEND" type="hidden" value="promotionsDetailsEND" />


<input name="ice.window" type="hidden" value="a1i4qm600r" /><input name="ice.view" type="hidden" value="vw5hl0e4" /><script id="promotionsDetailsEND:promotionsDetailsEND_captureSubmit" type="text/javascript">ice.captureSubmit('promotionsDetailsEND',false);ice.captureKeypress('promotionsDetailsEND',null);</script><div class="mobi-fieldset-row" id="promotionsDetailsEND:j_idt380"><label for="promotionsDetailsEND:SpinnerEndDate" id="promotionsDetailsEND:_t381">
What is the last date this offer should be visible: </label><input id="promotionsDetailsEND:SpinnerEndDate" name="promotionsDetailsEND:SpinnerEndDate" onblur="ice.se(event, this);" type="date" value="Tue Jan 20 00:00:00 WST 2015" /><span id="promotionsDetailsEND:j_idt382"></span></div><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="-2720827817723284393:-1912069983383467973" autocomplete="off" />
</form>




The Desktop Safari produces the following Source code found in the browser:
<form action="/HaystackWorks/index.xhtml" enctype="application/x-www-form-urlencoded" id="promotionsDetailsSTART" method="post" name="promotionsDetailsSTART">
<input name="promotionsDetailsSTART" type="hidden" value="promotionsDetailsSTART" />
<input name="ice.window" type="hidden" value="a1i4qne9jt" /><input name="ice.view" type="hidden" value="vw5hl0ea" /><script id="promotionsDetailsSTART:promotionsDetailsSTART_captureSubmit" type="text/javascript">ice.captureSubmit('promotionsDetailsSTART',false);ice.captureKeypress('promotionsDetailsSTART',null);</script><div class="mobi-fieldset-row" id="promotionsDetailsSTART:j_idt377"><label for="promotionsDetailsSTART:SpinnerStartDate" id="promotionsDetailsSTART:_t378">
When is this offer is to be made public: </label><span class="mobi-hidden" id="promotionsDetailsSTART:SpinnerStartDate_libJS"><script src="/HaystackWorks/javax.faces.resource/datespinner.js.xhtml?ln=org.icefaces.component.datespinner&v=3_3_0_130416" type="text/javascript"></script></span><span><span class="mobi-date-wrapper" id="promotionsDetailsSTART:SpinnerStartDate" name="promotionsDetailsSTART:SpinnerStartDate"><input class="mobi-input-text" id="promotionsDetailsSTART:SpinnerStartDate_input" name="promotionsDetailsSTART:SpinnerStartDate_input" onblur="mobi.datespinner.inputSubmit('promotionsDetailsSTART:SpinnerStartDate',{ event: event,singleSubmit: true});" size="15" type="text" value="" /><input id="promotionsDetailsSTART:SpinnerStartDate_hidden" name="promotionsDetailsSTART:SpinnerStartDate_hidden" type="hidden" /></span><input class="mobi-date-popup-btn" onclick="mobi.datespinner.toggle('promotionsDetailsSTART:SpinnerStartDate');" type="button" value="" /></span><div class="mobi-date-bg-inv" id="promotionsDetailsSTART:SpinnerStartDate_bg"></div><div class="mobi-date-container-inv" id="promotionsDetailsSTART:SpinnerStartDate_popup"><div class="mobi-date-title-container" id="promotionsDetailsSTART:SpinnerStartDate_title"></div><div class="mobi-date-select-container"><div class="mobi-date-select-value-cont"><div class="mobi-date-btn-cont-incr"><input class="mobi-date-btn mobi-date-btn-incr" id="promotionsDetailsSTART:SpinnerStartDate_yUpBtn" onclick="mobi.datespinner.yUp('promotionsDetailsSTART:SpinnerStartDate',1980,2020);" type="button" /></div><div class="mobi-date-select-value" id="promotionsDetailsSTART:SpinnerStartDate_yInt">2015</div><div class="mobi-date-btn-cont-decr"><input class="mobi-date-btn mobi-date-btn-decr" id="promotionsDetailsSTART:SpinnerStartDate_yDnBtn" onclick="mobi.datespinner.yDn('promotionsDetailsSTART:SpinnerStartDate',1980,2020);" type="button" /></div></div><div class="mobi-date-select-value-cont"><div class="mobi-date-btn-cont-incr"><input class="mobi-date-btn mobi-date-btn-incr" id="promotionsDetailsSTART:SpinnerStartDate_mUpBtn" onclick="mobi.datespinner.mUp('promotionsDetailsSTART:SpinnerStartDate');" type="button" /></div><div class="mobi-date-select-value" id="promotionsDetailsSTART:SpinnerStartDate_mInt">1</div><div class="mobi-date-btn-cont-decr"><input class="mobi-date-btn mobi-date-btn-decr" id="promotionsDetailsSTART:SpinnerStartDate_mDnBtn" onclick="mobi.datespinner.mDn('promotionsDetailsSTART:SpinnerStartDate');" type="button" /></div></div><div class="mobi-date-select-value-cont"><div class="mobi-date-btn-cont-incr"><input class="mobi-date-btn mobi-date-btn-incr" id="promotionsDetailsSTART:SpinnerStartDate_dUpBtn" onclick="mobi.datespinner.dUp('promotionsDetailsSTART:SpinnerStartDate');" type="button" /></div><div class="mobi-date-select-value" id="promotionsDetailsSTART:SpinnerStartDate_dInt">10</div><div class="mobi-date-btn-cont-decr"><input class="mobi-date-btn mobi-date-btn-decr" id="promotionsDetailsSTART:SpinnerStartDate_dDnBtn" onclick="mobi.datespinner.dDn('promotionsDetailsSTART:SpinnerStartDate');" type="button" /></div></div></div><div class="mobi-date-submit-container"><input class="mobi-button ui-btn-up-c" onclick="mobi.datespinner.select('promotionsDetailsSTART:SpinnerStartDate',{ event: event,singleSubmit: true});" type="button" value="Set" /><input class="mobi-button ui-btn-up-c" onclick="mobi.datespinner.close('promotionsDetailsSTART:SpinnerStartDate');" type="button" value="Cancel" /></div></div><span class="mobi-hidden" id="promotionsDetailsSTART:SpinnerStartDate_script"><script type="text/javascript">mobi.datespinner.init('promotionsDetailsSTART:SpinnerStartDate',2015,1,10,'yyyy-MM-dd');</script></span><span id="promotionsDetailsSTART:j_idt379"></span></div><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="543730616949246844:159554727185980745" autocomplete="off" />
</form>
<form action="/HaystackWorks/index.xhtml" enctype="application/x-www-form-urlencoded" id="promotionsDetailsEND" method="post" name="promotionsDetailsEND">
<input name="promotionsDetailsEND" type="hidden" value="promotionsDetailsEND" />
<input name="ice.window" type="hidden" value="a1i4qne9jt" /><input name="ice.view" type="hidden" value="vw5hl0ea" /><script id="promotionsDetailsEND:promotionsDetailsEND_captureSubmit" type="text/javascript">ice.captureSubmit('promotionsDetailsEND',false);ice.captureKeypress('promotionsDetailsEND',null);</script><div class="mobi-fieldset-row" id="promotionsDetailsEND:j_idt380"><label for="promotionsDetailsEND:SpinnerEndDate" id="promotionsDetailsEND:_t381">
What is the last date this offer should be visible: </label><span class="mobi-hidden" id="promotionsDetailsEND:SpinnerEndDate_libJS"></span><span><span class="mobi-date-wrapper" id="promotionsDetailsEND:SpinnerEndDate" name="promotionsDetailsEND:SpinnerEndDate"><input class="mobi-input-text" id="promotionsDetailsEND:SpinnerEndDate_input" name="promotionsDetailsEND:SpinnerEndDate_input" onblur="mobi.datespinner.inputSubmit('promotionsDetailsEND:SpinnerEndDate',{ event: event,singleSubmit: true});" size="15" type="text" value="" /><input id="promotionsDetailsEND:SpinnerEndDate_hidden" name="promotionsDetailsEND:SpinnerEndDate_hidden" type="hidden" /></span><input class="mobi-date-popup-btn" onclick="mobi.datespinner.toggle('promotionsDetailsEND:SpinnerEndDate');" type="button" value="" /></span><div class="mobi-date-bg-inv" id="promotionsDetailsEND:SpinnerEndDate_bg"></div><div class="mobi-date-container-inv" id="promotionsDetailsEND:SpinnerEndDate_popup"><div class="mobi-date-title-container" id="promotionsDetailsEND:SpinnerEndDate_title"></div><div class="mobi-date-select-container"><div class="mobi-date-select-value-cont"><div class="mobi-date-btn-cont-incr"><input class="mobi-date-btn mobi-date-btn-incr" id="promotionsDetailsEND:SpinnerEndDate_yUpBtn" onclick="mobi.datespinner.yUp('promotionsDetailsEND:SpinnerEndDate',1980,2020);" type="button" /></div><div class="mobi-date-select-value" id="promotionsDetailsEND:SpinnerEndDate_yInt">2015</div><div class="mobi-date-btn-cont-decr"><input class="mobi-date-btn mobi-date-btn-decr" id="promotionsDetailsEND:SpinnerEndDate_yDnBtn" onclick="mobi.datespinner.yDn('promotionsDetailsEND:SpinnerEndDate',1980,2020);" type="button" /></div></div><div class="mobi-date-select-value-cont"><div class="mobi-date-btn-cont-incr"><input class="mobi-date-btn mobi-date-btn-incr" id="promotionsDetailsEND:SpinnerEndDate_mUpBtn" onclick="mobi.datespinner.mUp('promotionsDetailsEND:SpinnerEndDate');" type="button" /></div><div class="mobi-date-select-value" id="promotionsDetailsEND:SpinnerEndDate_mInt">1</div><div class="mobi-date-btn-cont-decr"><input class="mobi-date-btn mobi-date-btn-decr" id="promotionsDetailsEND:SpinnerEndDate_mDnBtn" onclick="mobi.datespinner.mDn('promotionsDetailsEND:SpinnerEndDate');" type="button" /></div></div><div class="mobi-date-select-value-cont"><div class="mobi-date-btn-cont-incr"><input class="mobi-date-btn mobi-date-btn-incr" id="promotionsDetailsEND:SpinnerEndDate_dUpBtn" onclick="mobi.datespinner.dUp('promotionsDetailsEND:SpinnerEndDate');" type="button" /></div><div class="mobi-date-select-value" id="promotionsDetailsEND:SpinnerEndDate_dInt">10</div><div class="mobi-date-btn-cont-decr"><input class="mobi-date-btn mobi-date-btn-decr" id="promotionsDetailsEND:SpinnerEndDate_dDnBtn" onclick="mobi.datespinner.dDn('promotionsDetailsEND:SpinnerEndDate');" type="button" /></div></div></div><div class="mobi-date-submit-container"><input class="mobi-button ui-btn-up-c" onclick="mobi.datespinner.select('promotionsDetailsEND:SpinnerEndDate',{ event: event,singleSubmit: true});" type="button" value="Set" /><input class="mobi-button ui-btn-up-c" onclick="mobi.datespinner.close('promotionsDetailsEND:SpinnerEndDate');" type="button" value="Cancel" /></div></div><span class="mobi-hidden" id="promotionsDetailsEND:SpinnerEndDate_script"><script type="text/javascript">mobi.datespinner.init('promotionsDetailsEND:SpinnerEndDate',2015,1,10,'yyyy-MM-dd');</script></span><span id="promotionsDetailsEND:j_idt382"></span></div><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="543730616949246844:159554727185980745" autocomplete="off" />
</form>


also here is the Browser Log from Netbeans:

[icepush.4133b.async-connection] Blocking connection cannot be shared among multiple web-contexts.
Initiating blocking connection for "." web-context... (14:30:38:559 | info)
at http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:637
[icepush.4133b.async-connection] connection monitoring started within window 4133b (14:30:38:682 | info)
at http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:637
[icepush.4133b] bridge loaded! (14:30:38:682 | info)
at http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:637
Consider using 'dppx' units, as in CSS 'dpi' means dots-per-CSS-inch, not dots-per-physical-inch, so does not correspond to the actual 'dpi' of a screen. In media query expression: screen and (min-resolution: 300dpi) (14:30:38:683 | debug, css)
at http://localhost:8080/HaystackWorks/:3
Consider using 'dppx' units, as in CSS 'dpi' means dots-per-CSS-inch, not dots-per-physical-inch, so does not correspond to the actual 'dpi' of a screen. In media query expression: screen and (min-resolution: 300dpi) (14:30:38:824 | debug, css)
at http://localhost:8080/HaystackWorks/:3
[icepush.4133b.async-connection] initialize connection within window 4133b (14:30:39:581 | info)
at http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:637
[icepush.4133b.async-connection] closing previous connection... (14:30:39:584 | debug)
at ConsoleLogHandler.debugPrimitive (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:630:103)
at (anonymous function) (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:121:31)
at (anonymous function) (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:691:13)
at (anonymous function) (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:121:31)
at (anonymous function) (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:609:17)
at (anonymous function) (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:121:31)
at requestForBlockingResponse (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:1674:17)
at initializeConnection (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:1782:13)
at (anonymous function) (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:1837:33)
[icepush.4133b.async-connection] connect... (14:30:39:596 | debug)
at ConsoleLogHandler.debugPrimitive (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:630:103)
at (anonymous function) (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:121:31)
at (anonymous function) (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:691:13)
at (anonymous function) (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:121:31)
at (anonymous function) (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:609:17)
at (anonymous function) (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:121:31)
at requestForBlockingResponse (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:1681:21)
at initializeConnection (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:1782:13)
at (anonymous function) (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:1837:33)
[window] persisted focus for element "welcomeForm:openUpButton" (14:30:41:376 | debug)
at ConsoleLogHandler.debugPrimitive (http://localhost:8080/HaystackWorks/javax.faces.resource/bridge.uncompressed.js.xhtml?ln=ice.core&v=3_3_0_130416:1315:103)
at (anonymous function) (http://localhost:8080/HaystackWorks/javax.faces.resource/bridge.uncompressed.js.xhtml?ln=ice.core&v=3_3_0_130416:294:31)
at (anonymous function) (http://localhost:8080/HaystackWorks/javax.faces.resource/bridge.uncompressed.js.xhtml?ln=ice.core&v=3_3_0_130416:1376:13)
at (anonymous function) (http://localhost:8080/HaystackWorks/javax.faces.resource/bridge.uncompressed.js.xhtml?ln=ice.core&v=3_3_0_130416:294:31)
at (anonymous function) (http://localhost:8080/HaystackWorks/javax.faces.resource/bridge.uncompressed.js.xhtml?ln=ice.core&v=3_3_0_130416:1294:17)
at (anonymous function) (http://localhost:8080/HaystackWorks/javax.faces.resource/bridge.uncompressed.js.xhtml?ln=ice.core&v=3_3_0_130416:294:31)
at setFocus (http://localhost:8080/HaystackWorks/javax.faces.resource/bridge.uncompressed.js.xhtml?ln=ice.core&v=3_3_0_130416:1558:9)
at saveCurrentFocus (http://localhost:8080/HaystackWorks/javax.faces.resource/bridge.uncompressed.js.xhtml?ln=ice.core&v=3_3_0_130416:1647:9)
[window] full submit to http://localhost:8080/HaystackWorks//index.xhtml
javax.faces.execute: @all
javax.faces.render: @all
javax.faces.source: welcomeForm:openUpButton
view ID: vw5hl0e1
event type: click (14:30:41:514 | debug)
at ConsoleLogHandler.debugPrimitive (http://localhost:8080/HaystackWorks/javax.faces.resource/bridge.uncompressed.js.xhtml?ln=ice.core&v=3_3_0_130416:1315:103)
at (anonymous function) (http://localhost:8080/HaystackWorks/javax.faces.resource/bridge.uncompressed.js.xhtml?ln=ice.core&v=3_3_0_130416:294:31)
at (anonymous function) (http://localhost:8080/HaystackWorks/javax.faces.resource/bridge.uncompressed.js.xhtml?ln=ice.core&v=3_3_0_130416:1376:13)
at (anonymous function) (http://localhost:8080/HaystackWorks/javax.faces.resource/bridge.uncompressed.js.xhtml?ln=ice.core&v=3_3_0_130416:294:31)
at (anonymous function) (http://localhost:8080/HaystackWorks/javax.faces.resource/bridge.uncompressed.js.xhtml?ln=ice.core&v=3_3_0_130416:1294:17)
at (anonymous function) (http://localhost:8080/HaystackWorks/javax.faces.resource/bridge.uncompressed.js.xhtml?ln=ice.core&v=3_3_0_130416:294:31)
at fullSubmit (http://localhost:8080/HaystackWorks/javax.faces.resource/bridge.uncompressed.js.xhtml?ln=ice.core&v=3_3_0_130416:2370:13)
at mobi.AjaxRequest (http://localhost:8080/HaystackWorks/javax.faces.resource/component.js.xhtml?ln=org.icefaces.component.util&v=3_3_0_130416:559:9)
at ice.mobi.submitnotify.open (http://localhost:8080/HaystackWorks/javax.faces.resource/submitnotification.js.xhtml?ln=org.icefaces.component.submitnotification&v=3_3_0_130416:53:19)
at ice.mobi.button.select (http://localhost:8080/HaystackWorks/javax.faces.resource/component.js.xhtml?ln=org.icefaces.component.util&v=3_3_0_130416:1124:40)
at onclick (http://localhost:8080/HaystackWorks/:75:602)
[icepush.4133b] received back-off (14:30:41:867 | debug)
at ConsoleLogHandler.debugPrimitive (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:630:103)
at (anonymous function) (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:121:31)
at (anonymous function) (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:691:13)
at (anonymous function) (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:121:31)
at (anonymous function) (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:609:17)
at (anonymous function) (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:121:31)
at (anonymous function) (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:2161:17)
at (anonymous function) (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:1575:25)
at (anonymous function) (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:121:31)
at (anonymous function) (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:2219:21)
at apply (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:8:16)
at (anonymous function) (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:374:9)
at (anonymous function) (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:250:36)
at (anonymous function) (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:126:56)
at broadcast (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:373:5)
at (anonymous function) (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:1696:37)
at apply (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:8:16)
at (anonymous function) (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:43:24)
at nativeRequestResponse.onreadystatechange (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:1357:21)
[icepush.4133b.async-connection] initialize connection within window 4133b (14:30:41:991 | info)
at http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:637
[icepush.4133b.async-connection] closing previous connection... (14:30:41:993 | debug)
at ConsoleLogHandler.debugPrimitive (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:630:103)
at (anonymous function) (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:121:31)
at (anonymous function) (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:691:13)
at (anonymous function) (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:121:31)
at (anonymous function) (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:609:17)
at (anonymous function) (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:121:31)
at requestForBlockingResponse (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:1674:17)
at initializeConnection (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:1782:13)
at (anonymous function) (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:1880:21)
at (anonymous function) (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:121:31)
at (anonymous function) (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:2167:25)
at call (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:918:21)
[icepush.4133b.async-connection] connect... (14:30:41:997 | debug)
at ConsoleLogHandler.debugPrimitive (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:630:103)
at (anonymous function) (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:121:31)
at (anonymous function) (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:691:13)
at (anonymous function) (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:121:31)
at (anonymous function) (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:609:17)
at (anonymous function) (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:121:31)
at requestForBlockingResponse (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:1681:21)
at initializeConnection (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:1782:13)
at (anonymous function) (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:1880:21)
at (anonymous function) (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:121:31)
at (anonymous function) (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:2167:25)
at call (http://localhost:8080/HaystackWorks/javax.faces.resource/icepush.uncompressed.js.xhtml?ln=ice.push&v=3_3_0_130416:918:21)
Debugging session with browser was closed.

THE RAW HTML IN THE XHTML PAGE IS:

<h:form id="promotionsDetailsSTART">
<mobi:fieldsetRow>
<h:outputLabel for="SpinnerStartDate" value="#{msg.advertiseStartDateLabel}: "/>
<mobi:dateSpinner id="SpinnerStartDate"
singleSubmit="true"
useNative="true"
valueChangeListener="#{promotionBean.changeStartDate}"
value="#{promotionBean.startDate}"
locale="#{promotionBean.country}"/>
<h:message for="SpinnerStartDate" style="width:30%;color:red" />
</mobi:fieldsetRow>
</h:form>

<h:form id="promotionsDetailsEND">
<mobi:fieldsetRow>
<h:outputLabel for="SpinnerEndDate" value="#{msg.advertiseEndDateLabel}: "/>
<mobi:dateSpinner id="SpinnerEndDate"
singleSubmit="true"
useNative="true"
valueChangeListener="#{promotionBean.changeEndDate}"
value="#{promotionBean.endDate}"
locale="#{promotionBean.country}"/>
<h:message for="SpinnerEndDate" style="width:30%;color:red" />
</mobi:fieldsetRow>
</h:form>
philip.breau


Joined: 08/May/2006 00:00:00
Messages: 2989
Offline


In my own testing I don't see any issue with binding the locale. Did you mean "en_AU" for Australia?

http://www.oracle.com/technetwork/java/javase/locales-137662.html

If you're having trouble with inadvertant validation, you might try using <mobi:ajax>. You should still be able to just just one form. Try something like:

Code:
 <h:form>
   <mobi:dateSpinner id="startDate"
         locale="en_AU">
     <mobi:ajax execute="@this" render="@this"/>
     <f:convertDateTime type="date" pattern="dd-MM-yyyy"/>
   </mobi:dateSpinner> 
   <mobi:dateSpinner id="endDate"
         locale="en_AU">
     <mobi:ajax execute="@this" render="@this"/>
     <f:convertDateTime type="date" pattern="dd-MM-yyyy"/>
   </mobi:dateSpinner> 
 </h:form>
 


One other issue that you want to be wary about is how useNative can affect the date pattern in browsers. When you set useNative to true, it means the browser can use it's own date component, and also it's own date format. Which makes it difficult to predict the date pattern that you expect to convert. Since you have useNative set to true here, make sure that browser is sending the expected format.

Thanks,
Philip

.
bcantu

Joined: 02/Nov/2009 00:00:00
Messages: 45
Offline


Yes the Ajax component was the solution although I don't understand why. The locale I was using was wrong but hard coding this in correctly didn't change the problem. The convert helped but the ajax component resolved the conversion message...

I need to do some testing with international date formats to figure out how to support various european based languages and some asian ones too.

Many Thanks Philip
 
Forum Index -> ICEmobile General
Go to:   
Powered by JForum 2.1.7ice © JForum Team