voyent
mobi:inputText cannot enter Doubles  XML
Forum Index -> ICEmobile General
Author Message
bcantu

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


It seems crazy to me but I cannot enter Double values using the mobi:inputText tag. the code snippet is below.
I keep getting the validation message "Please enter a valid value the two nearest valid values are 3 or 4" when I enter a value of 3.45.

in the bean I have the nowPrice defined as

Double nowPrice;

public Double getNowPrice() {
return nowPrice;
}

public void setNowPrice(Double nowPrice) {
this.nowPrice = nowPrice;
}



<h:outputLabel for="nowPrice" value="#{msg.advertiseNow}: "/>
<mobi:inputText id="nowPrice"
type="number"
singleSubmit="false"
placeholder="Now Price"
value="#{promotionBean.nowPrice}"
required="true"
requiredMessage="#{requiredMsg}"
style="width:20%;">
<f:convertNumber maxFractionDigits="2"
minFractionDigits="2"
locale="#{promotionBean.country}"/>
</mobi:inputText>
<h:message for="nowPrice" 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>
philip.breau


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


Is this error message coming from the browser (if so, which browser) or the server? Looking at our API for this, I see that the step attribute is an integer, which prevents stepping in increments less than 1. I've opened the following jira to fix this.

http://jira.icesoft.org/browse/MOBI-1120

Can you post the rendered HTML snippet for the input element?

.
bcantu

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


Hi Philip,
Below is the snippet but it seems to be working in that I can at least enter Double values but the spinner on increments in Integer values.

NOTE: I also added the Date Spinner conversion error in this forum. I can't be sure that in some way one error is influencing the other. So for this reason I put the number input fields in forms to isolate the errors in the input field here from the entry problems I'm having with the date spinner.
Maybe thats the reason I can now at least enter decimal values, Im not sure...

I have also added a snapshot of the chrome browser page so you can visually see what I'm trying to do.


Many thanks in advance Philip.

Okay the rendered html from the Chrome Browser - Desktop and below it is the source code.

</form></div></li><li class="mobi-list-item mobi-list-item-group ui-li ui-li-divider ui-bar-b " id="j_idt197"><div class="mobi-list-item-default ">Offer Details</div></li><li class="mobi-list-item ui-li ui-btn " id="j_idt199"><div class="mobi-list-item-default ">
<div class="center" style="display:block;">
<div style="width:100%;">
<div style="max-width:95%;margin-left:auto;margin-right:auto;">
<div style="margin-left:auto;margin-right:auto;max-width:960px;min-width:480px;">

<div style="display:inline-block;min-width:100%;margin-left: -10px;"><div class="mobi-fieldset ui-field-contain mobi-fieldset-inset" id="j_idt201" style="max-width:960px;min-width:480px;margin: 0;padding:0;">
<form action="/HaystackWorks/index.xhtml" enctype="application/x-www-form-urlencoded" id="promotionsDetailsDESC" method="post" name="promotionsDetailsDESC">
<input name="promotionsDetailsDESC" type="hidden" value="promotionsDetailsDESC" />
<input name="ice.window" type="hidden" value="a1i4qm600r" /><input name="ice.view" type="hidden" value="vw5hl0ee" /><script id="promotionsDetailsDESC:promotionsDetailsDESC_captureSubmit" type="text/javascript">ice.captureSubmit('promotionsDetailsDESC',false);ice.captureKeypress('promotionsDetailsDESC',null);</script><div class="mobi-fieldset-row" id="promotionsDetailsDESC:j_idt202"><label for="promotionsDetailsDESC:DealOrSpecial" id="promotionsDetailsDESC:_t203">
Promotion Type:</label><select id="promotionsDetailsDESC:DealOrSpecial" name="promotionsDetailsDESC:DealOrSpecial" size="1" style="font-size: 16px;margin:0;padding:0;"> <option value="DEAL">Deal: The price for a group of Products and/or Services.</option>
<option value="SPECIAL">Special: The price on a single product.</option>
</select></div><div class="mobi-fieldset-row" id="promotionsDetailsDESC:j_idt206"><label for="promotionsDetailsDESC:Description" id="promotionsDetailsDESC:_t207">
Offer Description:</label><textarea autocapitalize="off" autocorrect="off" class="mobi-input-text ui-input-text " id="promotionsDetailsDESC:Description" name="promotionsDetailsDESC:Description" onchange="ice.setFocus(null); ice.mobi.inputText.activate('promotionsDetailsDESC:Description',{singleSubmit:true});" placeholder="Describe the offer you would like to publish" required="true" style="width:100%"></textarea></div><div class="mobi-fieldset-row" id="promotionsDetailsDESC:j_idt208"><label for="promotionsDetailsDESC:CurrencyCode" id="promotionsDetailsDESC:_t209">
Currency Code: </label><select id="promotionsDetailsDESC:CurrencyCode" name="promotionsDetailsDESC:CurrencyCode" size="1" style="font-size: 16px;margin:0;padding:0;"> <option value="AED">United Arab Emirates dirham</option>
<option value="AFN">Afghan afghani</option>
<option value="ALL">Albanian lek</option>
<option value="AMD">Armenian dram</option>
<option value="ANG">Netherlands Antillean guilder</option>
<option value="AOA">Angolan kwanza</option>
<option value="ARS">Argentine peso</option>
<option value="AUD" selected="true">Australian dollar</option>
<option value="AWG">Aruban florin</option>
<option value="AZN">Azerbaijani manat</option>
<option value="BAM">Bosnia and Herzegovina convertible mark</option>
<option value="BBD">Barbados dollar</option>
<option value="BDT">Bangladeshi taka</option>
<option value="BGN">Bulgarian lev</option>
<option value="BHD">Bahraini dinar</option>
<option value="BIF">Burundian franc</option>
<option value="BMD">Bermudian dollar</option>
<option value="BND">Brunei dollar</option>
<option value="BOB">Boliviano</option>
<option value="BRL">Brazilian real</option>
<option value="BSD">Bahamian dollar</option>
<option value="BTN">Bhutanese ngultrum</option>
<option value="BWP">Botswana pula</option>
<option value="BYR">Belarusian ruble</option>
<option value="BZD">Belize dollar</option>
<option value="CAD">Canadian dollar</option>
<option value="CDF">Congolese franc</option>
<option value="CHE">WIR Euro (complementary currency)</option>
<option value="CHF">Swiss franc</option>
<option value="CHW">WIR Franc (complementary currency)</option>
<option value="CLP">Chilean peso</option>
<option value="CNH">Chinese yuan when traded in Hong Kong</option>
<option value="CNY">Chinese yuan</option>
<option value="COP">Colombian peso</option>
<option value="CRC">Costa Rican colon</option>
<option value="CUC">Cuban convertible peso</option>
<option value="CUP">Cuban peso</option>
<option value="CVE">Cape Verde escudo</option>
<option value="CZK">Czech koruna</option>
<option value="DJF">Djiboutian franc</option>
<option value="DKK">Danish krone</option>
<option value="DOP">Dominican peso</option>
<option value="DZD">Algerian dinar</option>
<option value="EGP">Egyptian pound</option>
<option value="ERN">Eritrean nakfa</option>
<option value="ETB">Ethiopian birr</option>
<option value="EUR">Euro</option>
<option value="FJD">Fiji dollar</option>
<option value="FKP">Falkland Islands pound</option>
<option value="GBP">Pound sterling</option>
<option value="GEL">Georgian lari</option>
<option value="GHS">Ghanaian cedi</option>
<option value="GIP">Gibraltar pound</option>
<option value="GMD">Gambian dalasi</option>
<option value="GNF">Guinean franc</option>
<option value="GTQ">Guatemalan quetzal</option>
<option value="GYD">Guyanese dollar</option>
<option value="HKD">Hong Kong dollar</option>
<option value="HNL">Honduran lempira</option>
<option value="HRK">Croatian kuna</option>
<option value="HTG">Haitian gourde</option>
<option value="HUF">Hungarian forint</option>
<option value="IDR">Indonesian rupiah</option>
<option value="ILS">Israeli new shekel</option>
<option value="INR">Indian rupee</option>
<option value="IQD">Iraqi dinar</option>
<option value="IRR">Iranian rial</option>
<option value="ISK">Icelandic króna</option>
<option value="JMD">Jamaican dollar</option>
<option value="JOD">Jordanian dinar</option>
<option value="JPY">Japanese yen</option>
<option value="KES">Kenyan shilling</option>
<option value="KGS">Kyrgyzstani som</option>
<option value="KHR">Cambodian riel</option>
<option value="KMF">Comoro franc</option>
<option value="KPW">North Korean won</option>
<option value="KRW">South Korean won</option>
<option value="KWD">Kuwaiti dinar</option>
<option value="KYD">Cayman Islands dollar</option>
<option value="KZT">Kazakhstani tenge</option>
<option value="LAK">Lao kip</option>
<option value="LBP">Lebanese pound</option>
<option value="LKR">Sri Lankan rupee</option>
<option value="LRD">Liberian dollar</option>
<option value="LSL">Lesotho loti</option>
<option value="LYD">Libyan dinar</option>
<option value="MAD">Moroccan dirham</option>
<option value="MDL">Moldovan leu</option>
<option value="MGA">Malagasy ariary</option>
<option value="MKD">Macedonian denar</option>
<option value="MMK">Myanmar kyat</option>
<option value="MNT">Mongolian tugrik</option>
<option value="MOP">Macanese pataca</option>
<option value="MRO">Mauritanian ouguiya</option>
<option value="MUR">Mauritian rupee</option>
<option value="MVR">Maldivian rufiyaa</option>
<option value="MWK">Malawian kwacha</option>
<option value="MXN">Mexican peso</option>
<option value="MYR">Malaysian ringgit</option>
<option value="MZN">Mozambican metical</option>
<option value="NAD">Namibian dollar</option>
<option value="NGN">Nigerian naira</option>
<option value="NIO">Nicaraguan córdoba</option>
<option value="NOK">Norwegian krone</option>
<option value="NPR">Nepalese rupee</option>
<option value="NZD">New Zealand dollar</option>
<option value="OMR">Omani rial</option>
<option value="PAB">Panamanian balboa</option>
<option value="PEN">Peruvian nuevo sol</option>
<option value="PGK">Papua New Guinean kina</option>
<option value="PHP">Philippine peso</option>
<option value="PKR">Pakistani rupee</option>
<option value="PLN">Polish z?oty</option>
<option value="PYG">Paraguayan guaraní</option>
<option value="QAR">Qatari riyal</option>
<option value="RON">Romanian new leu</option>
<option value="RSD">Serbian dinar</option>
<option value="RUB">Russian ruble</option>
<option value="RWF">Rwandan franc</option>
<option value="SAR">Saudi riyal</option>
<option value="SBD">Solomon Islands dollar</option>
<option value="SCR">Seychelles rupee</option>
<option value="SDG">Sudanese pound</option>
<option value="SEK">Swedish krona/kronor</option>
<option value="SGD">Singapore dollar</option>
<option value="SHP">Saint Helena pound</option>
<option value="SLL">Sierra Leonean leone</option>
<option value="SOS">Somali shilling</option>
<option value="SRD">Surinamese dollar</option>
<option value="SSP">South Sudanese pound</option>
<option value="STD">São Tomé and Príncipe dobra</option>
<option value="SYP">Syrian pound</option>
<option value="SZL">Swazi lilangeni</option>
<option value="THB">Thai baht</option>
<option value="TJS">Tajikistani somoni</option>
<option value="TMT">Turkmenistani manat</option>
<option value="TND">Tunisian dinar</option>
<option value="TOP">Tongan pa?anga</option>
<option value="TRY">Turkish lira</option>
<option value="TTD">Trinidad and Tobago dollar</option>
<option value="TWD">New Taiwan dollar</option>
<option value="TZS">Tanzanian shilling</option>
<option value="UAH">Ukrainian hryvnia</option>
<option value="UGX">Ugandan shilling</option>
<option value="USD">United States dollar</option>
<option value="UYU">Uruguayan peso</option>
<option value="UZS">Uzbekistan som</option>
<option value="VEF">Venezuelan bolívar</option>
<option value="VND">Vietnamese dong</option>
<option value="VUV">Vanuatu vatu</option>
<option value="WST">Samoan tala</option>
<option value="XAF">CFA franc BEAC</option>
<option value="XCD">East Caribbean dollar</option>
<option value="XDR">Special drawing rights</option>
<option value="XOF">CFA franc BCEAO</option>
<option value="XPF">CFP franc (franc Pacifique)</option>
<option value="XSU">SUCRE</option>
<option value="YER">Yemeni rial</option>
<option value="ZAR">South African rand</option>
<option value="ZMW">Zambian kwacha</option>
<option value="ZWD">Zimbabwe dollar</option>
</select></div><div class="mobi-fieldset-row" id="promotionsDetailsDESC:j_idt371"><label for="promotionsDetailsDESC:wasPrice" id="promotionsDetailsDESC:_t372">
Normally Costing: </label><input autocapitalize="off" autocorrect="off" class="mobi-input-text ui-input-text " id="promotionsDetailsDESC:wasPrice" name="promotionsDetailsDESC:wasPrice" onchange="ice.setFocus(null); ice.mobi.inputText.activate('promotionsDetailsDESC:wasPrice',{singleSubmit:true});" placeholder="Was Price" required="true" style="width:20%;" type="number" value="12.34" /><span id="promotionsDetailsDESC:j_idt373"></span></div><div class="mobi-fieldset-row" id="promotionsDetailsDESC:j_idt374"><label for="promotionsDetailsDESC:nowPrice" id="promotionsDetailsDESC:_t375">
Special Price: </label><input autocapitalize="off" autocorrect="off" class="mobi-input-text ui-input-text " id="promotionsDetailsDESC:nowPrice" name="promotionsDetailsDESC:nowPrice" onchange="ice.setFocus(null); ice.mobi.inputText.activate('promotionsDetailsDESC:nowPrice',{singleSubmit:true});" placeholder="Now Price" required="true" style="width:20%;" type="number" value="7.89" /><span id="promotionsDetailsDESC:j_idt376"></span></div><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="8634384031777299124:8555273016912347338" autocomplete="off" />
</form>


The source code:

<h:form id="promotionsDetailsDESC">

<mobi:fieldsetRow>
<h:outputLabel for="DealOrSpecial"
value="#{msg.advertiseIsDealOrSpecial}:"/>
<h:selectOneMenu id="DealOrSpecial" value="#{promotionBean.dealOrSpecial}"
style="font-size: 16px;margin:0;padding:0;" >
<f:selectItem itemValue="#{msg.advertiseDeal}" itemLabel="#{msg.advertiseIsDeal}" />
<f:selectItem itemValue="#{msg.advertiseSpecial}" itemLabel="#{msg.advertiseIsSpecial}" />
</h:selectOneMenu>
</mobi:fieldsetRow>

<mobi:fieldsetRow>
<h:outputLabel for="Description"
value="#{msg.advertiseDescriptionLabel}:"/>
<mobi:inputText id="Description"
style="width:100%"
required="true"
singleSubmit="true"
requiredMessage="#{requiredMsg}"
type="textarea" validatorMessage="Try Again..."
placeholder="#{msg.advertiseDescriptionPH}"
value="#{promotionBean.description}">
</mobi:inputText>
</mobi:fieldsetRow>


<mobi:fieldsetRow>
<h:outputLabel for="CurrencyCode" value="#{msg.currencyCodeLabel}: "/>
<h:selectOneMenu id="CurrencyCode" value="#{promotionBean.currencyCode}"
style="font-size: 16px;margin:0;padding:0;" >
<f:selectItem itemValue="AED" itemLabel="#{msg.AEDcurrencyCode}" />
<f:selectItem itemValue="AFN" itemLabel="#{msg.AFNcurrencyCode}" />
<f:selectItem itemValue="ALL" itemLabel="#{msg.ALLcurrencyCode}" />
<f:selectItem itemValue="AMD" itemLabel="#{msg.AMDcurrencyCode}" />
<f:selectItem itemValue="ANG" itemLabel="#{msg.ANGcurrencyCode}" />
<f:selectItem itemValue="AOA" itemLabel="#{msg.AOAcurrencyCode}" />
<f:selectItem itemValue="ARS" itemLabel="#{msg.ARScurrencyCode}" />
<f:selectItem itemValue="AUD" itemLabel="#{msg.AUDcurrencyCode}" />
<f:selectItem itemValue="AWG" itemLabel="#{msg.AWGcurrencyCode}" />
<f:selectItem itemValue="AZN" itemLabel="#{msg.AZNcurrencyCode}" />
<f:selectItem itemValue="BAM" itemLabel="#{msg.BAMcurrencyCode}" />
<f:selectItem itemValue="BBD" itemLabel="#{msg.BBDcurrencyCode}" />
<f:selectItem itemValue="BDT" itemLabel="#{msg.BDTcurrencyCode}" />
<f:selectItem itemValue="BGN" itemLabel="#{msg.BGNcurrencyCode}" />
<f:selectItem itemValue="BHD" itemLabel="#{msg.BHDcurrencyCode}" />
<f:selectItem itemValue="BIF" itemLabel="#{msg.BIFcurrencyCode}" />
<f:selectItem itemValue="BMD" itemLabel="#{msg.BMDcurrencyCode}" />
<f:selectItem itemValue="BND" itemLabel="#{msg.BNDcurrencyCode}" />
<f:selectItem itemValue="BOB" itemLabel="#{msg.BOBcurrencyCode}" />
<f:selectItem itemValue="BRL" itemLabel="#{msg.BRLcurrencyCode}" />
<f:selectItem itemValue="BSD" itemLabel="#{msg.BSDcurrencyCode}" />
<f:selectItem itemValue="BTN" itemLabel="#{msg.BTNcurrencyCode}" />
<f:selectItem itemValue="BWP" itemLabel="#{msg.BWPcurrencyCode}" />
<f:selectItem itemValue="BYR" itemLabel="#{msg.BYRcurrencyCode}" />
<f:selectItem itemValue="BZD" itemLabel="#{msg.BZDcurrencyCode}" />
<f:selectItem itemValue="CAD" itemLabel="#{msg.CADcurrencyCode}" />
<f:selectItem itemValue="CDF" itemLabel="#{msg.CDFcurrencyCode}" />
<f:selectItem itemValue="CHE" itemLabel="#{msg.CHEcurrencyCode}" />
<f:selectItem itemValue="CHF" itemLabel="#{msg.CHFcurrencyCode}" />
<f:selectItem itemValue="CHW" itemLabel="#{msg.CHWcurrencyCode}" />
<f:selectItem itemValue="CLP" itemLabel="#{msg.CLPcurrencyCode}" />
<f:selectItem itemValue="CNH" itemLabel="#{msg.CNHcurrencyCode}" />
<f:selectItem itemValue="CNY" itemLabel="#{msg.CNYcurrencyCode}" />
<f:selectItem itemValue="COP" itemLabel="#{msg.COPcurrencyCode}" />
<f:selectItem itemValue="CRC" itemLabel="#{msg.CRCcurrencyCode}" />
<f:selectItem itemValue="CUC" itemLabel="#{msg.CUCcurrencyCode}" />
<f:selectItem itemValue="CUP" itemLabel="#{msg.CUPcurrencyCode}" />
<f:selectItem itemValue="CVE" itemLabel="#{msg.CVEcurrencyCode}" />
<f:selectItem itemValue="CZK" itemLabel="#{msg.CZKcurrencyCode}" />
<f:selectItem itemValue="DJF" itemLabel="#{msg.DJFcurrencyCode}" />
<f:selectItem itemValue="DKK" itemLabel="#{msg.DKKcurrencyCode}" />
<f:selectItem itemValue="DOP" itemLabel="#{msg.DOPcurrencyCode}" />
<f:selectItem itemValue="DZD" itemLabel="#{msg.DZDcurrencyCode}" />
<f:selectItem itemValue="EGP" itemLabel="#{msg.EGPcurrencyCode}" />
<f:selectItem itemValue="ERN" itemLabel="#{msg.ERNcurrencyCode}" />
<f:selectItem itemValue="ETB" itemLabel="#{msg.ETBcurrencyCode}" />
<f:selectItem itemValue="EUR" itemLabel="#{msg.EURcurrencyCode}" />
<f:selectItem itemValue="FJD" itemLabel="#{msg.FJDcurrencyCode}" />
<f:selectItem itemValue="FKP" itemLabel="#{msg.FKPcurrencyCode}" />
<f:selectItem itemValue="GBP" itemLabel="#{msg.GBPcurrencyCode}" />
<f:selectItem itemValue="GEL" itemLabel="#{msg.GELcurrencyCode}" />
<f:selectItem itemValue="GHS" itemLabel="#{msg.GHScurrencyCode}" />
<f:selectItem itemValue="GIP" itemLabel="#{msg.GIPcurrencyCode}" />
<f:selectItem itemValue="GMD" itemLabel="#{msg.GMDcurrencyCode}" />
<f:selectItem itemValue="GNF" itemLabel="#{msg.GNFcurrencyCode}" />
<f:selectItem itemValue="GTQ" itemLabel="#{msg.GTQcurrencyCode}" />
<f:selectItem itemValue="GYD" itemLabel="#{msg.GYDcurrencyCode}" />
<f:selectItem itemValue="HKD" itemLabel="#{msg.HKDcurrencyCode}" />
<f:selectItem itemValue="HNL" itemLabel="#{msg.HNLcurrencyCode}" />
<f:selectItem itemValue="HRK" itemLabel="#{msg.HRKcurrencyCode}" />
<f:selectItem itemValue="HTG" itemLabel="#{msg.HTGcurrencyCode}" />
<f:selectItem itemValue="HUF" itemLabel="#{msg.HUFcurrencyCode}" />
<f:selectItem itemValue="IDR" itemLabel="#{msg.IDRcurrencyCode}" />
<f:selectItem itemValue="ILS" itemLabel="#{msg.ILScurrencyCode}" />
<f:selectItem itemValue="INR" itemLabel="#{msg.INRcurrencyCode}" />
<f:selectItem itemValue="IQD" itemLabel="#{msg.IQDcurrencyCode}" />
<f:selectItem itemValue="IRR" itemLabel="#{msg.IRRcurrencyCode}" />
<f:selectItem itemValue="ISK" itemLabel="#{msg.ISKcurrencyCode}" />
<f:selectItem itemValue="JMD" itemLabel="#{msg.JMDcurrencyCode}" />
<f:selectItem itemValue="JOD" itemLabel="#{msg.JODcurrencyCode}" />
<f:selectItem itemValue="JPY" itemLabel="#{msg.JPYcurrencyCode}" />
<f:selectItem itemValue="KES" itemLabel="#{msg.KEScurrencyCode}" />
<f:selectItem itemValue="KGS" itemLabel="#{msg.KGScurrencyCode}" />
<f:selectItem itemValue="KHR" itemLabel="#{msg.KHRcurrencyCode}" />
<f:selectItem itemValue="KMF" itemLabel="#{msg.KMFcurrencyCode}" />
<f:selectItem itemValue="KPW" itemLabel="#{msg.KPWcurrencyCode}" />
<f:selectItem itemValue="KRW" itemLabel="#{msg.KRWcurrencyCode}" />
<f:selectItem itemValue="KWD" itemLabel="#{msg.KWDcurrencyCode}" />
<f:selectItem itemValue="KYD" itemLabel="#{msg.KYDcurrencyCode}" />
<f:selectItem itemValue="KZT" itemLabel="#{msg.KZTcurrencyCode}" />
<f:selectItem itemValue="LAK" itemLabel="#{msg.LAKcurrencyCode}" />
<f:selectItem itemValue="LBP" itemLabel="#{msg.LBPcurrencyCode}" />
<f:selectItem itemValue="LKR" itemLabel="#{msg.LKRcurrencyCode}" />
<f:selectItem itemValue="LRD" itemLabel="#{msg.LRDcurrencyCode}" />
<f:selectItem itemValue="LSL" itemLabel="#{msg.LSLcurrencyCode}" />
<f:selectItem itemValue="LYD" itemLabel="#{msg.LYDcurrencyCode}" />
<f:selectItem itemValue="MAD" itemLabel="#{msg.MADcurrencyCode}" />
<f:selectItem itemValue="MDL" itemLabel="#{msg.MDLcurrencyCode}" />
<f:selectItem itemValue="MGA" itemLabel="#{msg.MGAcurrencyCode}" />
<f:selectItem itemValue="MKD" itemLabel="#{msg.MKDcurrencyCode}" />
<f:selectItem itemValue="MMK" itemLabel="#{msg.MMKcurrencyCode}" />
<f:selectItem itemValue="MNT" itemLabel="#{msg.MNTcurrencyCode}" />
<f:selectItem itemValue="MOP" itemLabel="#{msg.MOPcurrencyCode}" />
<f:selectItem itemValue="MRO" itemLabel="#{msg.MROcurrencyCode}" />
<f:selectItem itemValue="MUR" itemLabel="#{msg.MURcurrencyCode}" />
<f:selectItem itemValue="MVR" itemLabel="#{msg.MVRcurrencyCode}" />
<f:selectItem itemValue="MWK" itemLabel="#{msg.MWKcurrencyCode}" />
<f:selectItem itemValue="MXN" itemLabel="#{msg.MXNcurrencyCode}" />
<f:selectItem itemValue="MYR" itemLabel="#{msg.MYRcurrencyCode}" />
<f:selectItem itemValue="MZN" itemLabel="#{msg.MZNcurrencyCode}" />
<f:selectItem itemValue="NAD" itemLabel="#{msg.NADcurrencyCode}" />
<f:selectItem itemValue="NGN" itemLabel="#{msg.NGNcurrencyCode}" />
<f:selectItem itemValue="NIO" itemLabel="#{msg.NIOcurrencyCode}" />
<f:selectItem itemValue="NOK" itemLabel="#{msg.NOKcurrencyCode}" />
<f:selectItem itemValue="NPR" itemLabel="#{msg.NPRcurrencyCode}" />
<f:selectItem itemValue="NZD" itemLabel="#{msg.NZDcurrencyCode}" />
<f:selectItem itemValue="OMR" itemLabel="#{msg.OMRcurrencyCode}" />
<f:selectItem itemValue="PAB" itemLabel="#{msg.PABcurrencyCode}" />
<f:selectItem itemValue="PEN" itemLabel="#{msg.PENcurrencyCode}" />
<f:selectItem itemValue="PGK" itemLabel="#{msg.PGKcurrencyCode}" />
<f:selectItem itemValue="PHP" itemLabel="#{msg.PHPcurrencyCode}" />
<f:selectItem itemValue="PKR" itemLabel="#{msg.PKRcurrencyCode}" />
<f:selectItem itemValue="PLN" itemLabel="#{msg.PLNcurrencyCode}" />
<f:selectItem itemValue="PYG" itemLabel="#{msg.PYGcurrencyCode}" />
<f:selectItem itemValue="QAR" itemLabel="#{msg.QARcurrencyCode}" />
<f:selectItem itemValue="RON" itemLabel="#{msg.RONcurrencyCode}" />
<f:selectItem itemValue="RSD" itemLabel="#{msg.RSDcurrencyCode}" />
<f:selectItem itemValue="RUB" itemLabel="#{msg.RUBcurrencyCode}" />
<f:selectItem itemValue="RWF" itemLabel="#{msg.RWFcurrencyCode}" />
<f:selectItem itemValue="SAR" itemLabel="#{msg.SARcurrencyCode}" />
<f:selectItem itemValue="SBD" itemLabel="#{msg.SBDcurrencyCode}" />
<f:selectItem itemValue="SCR" itemLabel="#{msg.SCRcurrencyCode}" />
<f:selectItem itemValue="SDG" itemLabel="#{msg.SDGcurrencyCode}" />
<f:selectItem itemValue="SEK" itemLabel="#{msg.SEKcurrencyCode}" />
<f:selectItem itemValue="SGD" itemLabel="#{msg.SGDcurrencyCode}" />
<f:selectItem itemValue="SHP" itemLabel="#{msg.SHPcurrencyCode}" />
<f:selectItem itemValue="SLL" itemLabel="#{msg.SLLcurrencyCode}" />
<f:selectItem itemValue="SOS" itemLabel="#{msg.SOScurrencyCode}" />
<f:selectItem itemValue="SRD" itemLabel="#{msg.SRDcurrencyCode}" />
<f:selectItem itemValue="SSP" itemLabel="#{msg.SSPcurrencyCode}" />
<f:selectItem itemValue="STD" itemLabel="#{msg.STDcurrencyCode}" />
<f:selectItem itemValue="SYP" itemLabel="#{msg.SYPcurrencyCode}" />
<f:selectItem itemValue="SZL" itemLabel="#{msg.SZLcurrencyCode}" />
<f:selectItem itemValue="THB" itemLabel="#{msg.THBcurrencyCode}" />
<f:selectItem itemValue="TJS" itemLabel="#{msg.TJScurrencyCode}" />
<f:selectItem itemValue="TMT" itemLabel="#{msg.TMTcurrencyCode}" />
<f:selectItem itemValue="TND" itemLabel="#{msg.TNDcurrencyCode}" />
<f:selectItem itemValue="TOP" itemLabel="#{msg.TOPcurrencyCode}" />
<f:selectItem itemValue="TRY" itemLabel="#{msg.TRYcurrencyCode}" />
<f:selectItem itemValue="TTD" itemLabel="#{msg.TTDcurrencyCode}" />
<f:selectItem itemValue="TWD" itemLabel="#{msg.TWDcurrencyCode}" />
<f:selectItem itemValue="TZS" itemLabel="#{msg.TZScurrencyCode}" />
<f:selectItem itemValue="UAH" itemLabel="#{msg.UAHcurrencyCode}" />
<f:selectItem itemValue="UGX" itemLabel="#{msg.UGXcurrencyCode}" />
<f:selectItem itemValue="USD" itemLabel="#{msg.USDcurrencyCode}" />
<f:selectItem itemValue="UYU" itemLabel="#{msg.UYUcurrencyCode}" />
<f:selectItem itemValue="UZS" itemLabel="#{msg.UZScurrencyCode}" />
<f:selectItem itemValue="VEF" itemLabel="#{msg.VEFcurrencyCode}" />
<f:selectItem itemValue="VND" itemLabel="#{msg.VNDcurrencyCode}" />
<f:selectItem itemValue="VUV" itemLabel="#{msg.VUVcurrencyCode}" />
<f:selectItem itemValue="WST" itemLabel="#{msg.WSTcurrencyCode}" />
<f:selectItem itemValue="XAF" itemLabel="#{msg.XAFcurrencyCode}" />
<f:selectItem itemValue="XCD" itemLabel="#{msg.XCDcurrencyCode}" />
<f:selectItem itemValue="XDR" itemLabel="#{msg.XDRcurrencyCode}" />
<f:selectItem itemValue="XOF" itemLabel="#{msg.XOFcurrencyCode}" />
<f:selectItem itemValue="XPF" itemLabel="#{msg.XPFcurrencyCode}" />
<f:selectItem itemValue="XSU" itemLabel="#{msg.XSUcurrencyCode}" />
<f:selectItem itemValue="YER" itemLabel="#{msg.YERcurrencyCode}" />
<f:selectItem itemValue="ZAR" itemLabel="#{msg.ZARcurrencyCode}" />
<f:selectItem itemValue="ZMW" itemLabel="#{msg.ZMWcurrencyCode}" />
<f:selectItem itemValue="ZWD" itemLabel="#{msg.ZWDcurrencyCode}" />
</h:selectOneMenu>

</mobi:fieldsetRow>


<mobi:fieldsetRow>
<h:outputLabel for="wasPrice" value="#{msg.advertiseWas}: "/>
<mobi:inputText id="wasPrice"
value="#{promotionBean.wasPrice}"
required="true"
singleSubmit="true"
placeholder="Was Price"
requiredMessage="#{requiredMsg}"
style="width:20%;"
converterMessage="Invalid value, try again."
validatorMessage="Only numbers ar allowed."
type="number">
<f:convertNumber maxFractionDigits="2"
minFractionDigits="2"
locale="#{promotionBean.country}"/>
</mobi:inputText>

<h:message for="wasPrice" style="width:30%;color:red" />
</mobi:fieldsetRow>


<mobi:fieldsetRow>
<h:outputLabel for="nowPrice" value="#{msg.advertiseNow}: "/>
<mobi:inputText id="nowPrice"
type="number"
singleSubmit="true"
placeholder="Now Price"
value="#{promotionBean.nowPrice}"
required="true"
requiredMessage="#{requiredMsg}"
style="width:20%;">
<f:convertNumber maxFractionDigits="2"
minFractionDigits="2"
locale="#{promotionBean.country}"/>
</mobi:inputText>
<h:message for="nowPrice" style="width:30%;color:red" />
</mobi:fieldsetRow>
</h:form>
[Thumb - Screen Shot 2015-01-10 at 4.28.36 pm.png]
 Filename Screen Shot 2015-01-10 at 4.28.36 pm.png [Disk] Download
 Description
 Filesize 61 Kbytes
 Downloaded:  938 time(s)

philip.breau


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


I've updated the inputText component allow double values for the step attribute. You can try this in the latest snapshot build.

Thanks,
Philip

.
bcantu

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


Many Thanks Philip, That worked well, the incrementation is working fine.
 
Forum Index -> ICEmobile General
Go to:   
Powered by JForum 2.1.7ice © JForum Team