Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JSF
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
JSF
Conversion Error
Steve Dyke
Ranch Hand
Posts: 2206
2
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
This is the error message:
E com.sun.faces.context.FacesContextImpl addMessage Adding Message[sourceId=form1:text100,summary=Conversion error occurred.)
The textbox that is causing the error is no different from the other textboxes on the form.
This is my managed bean code:
/* * Created on Jun 1, 2007 * * TODO To change the template for this generated file go to * Window - Preferences - Java - Code Style - Code Templates */ package com.drawingpdmw1; import java.sql.*; import java.text.Format; import java.text.SimpleDateFormat; import java.util.Date; import com.ibm.as400.access.AS400JDBCDataSource; /** * @author sde * * TODO To change the template for this generated type comment go to * Window - Preferences - Java - Code Style - Code Templates */ public class writerDataPush { public String wpError; public String wpErrorLiteral; private String whatdwgrec; private String cpriority; private String affectedvalue; private String affectedlist; private String modelnumber; private String effectivity; private String disposition; private String changeaffectsa; private String changeaffects2; private String changeaffects3; private String changeaffects4; private String changeaffects5; private String changeaffects6; private String changeaffects7; private String mfgaction1; private String mfgaction2; private String mfgaction3; private String mfgaction4; private String mfgaction5; private String mfgaction6; private String mfgaction7; private String dlgroup; private String dluser; private String rfc1; private String rfc2; private String rfc3; private String explanation; private String dwgtype; private String queloc; private String wfname; private String wlname; private String signhist; private String rejflag1; private String rejflag2; private String rejnote; private String corrnote; private String assnto; public writerDataPush() { this.rejflag2 = "1"; this.rejflag2 = "0"; } public void setWhatdwgrec(String wdwgrec) { this.whatdwgrec = wdwgrec; } public String getWhatdwgrec() { return this.whatdwgrec; } public void setCpriority(String priority) { this.cpriority = priority; } public String getCpriority() { return this.cpriority; } public void setaffectedvalue(String waffectedvalue) { this.affectedvalue = waffectedvalue; } public String getaffectedvalue() { return this.affectedvalue; } public void setaffectedlist(String waffectedlist) { this.affectedlist = waffectedlist; } public String getaffectedlist() { return this.affectedlist; } public void setmodelnumber(String wmodelnumber) { this.modelnumber = wmodelnumber; } public String getmodelnumber() { return this.modelnumber; } public void seteffectivity(String weffectivity) { this.effectivity = weffectivity; } public String geteffectivity() { return this.effectivity; } public void setdisposition(String wdisposition) { this.disposition = wdisposition; } public String getdisposition() { return this.disposition; } public void setChangeaffectsa(String wchangeaffectsa) { if(wchangeaffectsa.equals("Yes")){ this.changeaffectsa = "1"; } else{ this.changeaffectsa = "0"; } } public String getChangeaffectsa() { return this.changeaffectsa; } public void setchangeaffects2(String wchangeaffects2) { if(wchangeaffects2.equals("Yes")){ this.changeaffects2 = "1"; } else{ this.changeaffects2 = "0"; } } public String getchangeaffects2() { return this.changeaffects2; } public void setchangeaffects3(String wchangeaffects3) { if(wchangeaffects3.equals("Yes")){ this.changeaffects3 = "1"; } else{ this.changeaffects3 = "0"; } } public String getchangeaffects3() { return this.changeaffects3; } public void setchangeaffects4(String wchangeaffects4) { if(wchangeaffects4.equals("Yes")){ this.changeaffects4 = "1"; } else{ this.changeaffects4 = "0"; } } public String getchangeaffects4() { return this.changeaffects4; } public void setchangeaffects5(String wchangeaffects5) { if(wchangeaffects5.equals("Yes")){ this.changeaffects5 = "1"; } else{ this.changeaffects5 = "0"; } } public String getchangeaffects5() { return this.changeaffects5; } public void setchangeaffects6(String wchangeaffects6) { if(wchangeaffects6.equals("Yes")){ this.changeaffects6 = "1"; } else{ this.changeaffects6 = "0"; } } public String getchangeaffects6() { return this.changeaffects6; } public void setchangeaffects7(String wchangeaffects7) { if(wchangeaffects7.equals("Yes")){ this.changeaffects7 = "1"; } else{ this.changeaffects7 = "0"; } } public String getchangeaffects7() { return this.changeaffects7; } public void setmfgaction1(String wmfgaction1) { if(wmfgaction1.equals("Yes")){ this.mfgaction1 = "1"; } else{ this.mfgaction1 = "0"; } } public String getmfgaction1() { return this.mfgaction1; } public void setmfgaction2(String wmfgaction2) { if(wmfgaction2.equals("Yes")){ this.mfgaction2 = "1"; } else{ this.mfgaction2 = "0"; } } public String getmfgaction2() { return this.mfgaction2; } public void setmfgaction3(String wmfgaction3) { if(wmfgaction3.equals("Yes")){ this.mfgaction3 = "1"; } else{ this.mfgaction3 = "0"; } } public String getmfgaction3() { return this.mfgaction3; } public void setmfgaction4(String wmfgaction4) { if(wmfgaction4.equals("Yes")){ this.mfgaction4 = "1"; } else{ this.mfgaction4 = "0"; } } public String getmfgaction4() { return this.mfgaction4; } public void setmfgaction5(String wmfgaction5) { if(wmfgaction5.equals("Yes")){ this.mfgaction5 = "1"; } else{ this.mfgaction5 = "0"; } } public String getmfgaction5() { return this.mfgaction5; } public void setmfgaction6(String wmfgaction6) { if(wmfgaction6.equals("Yes")){ this.mfgaction6 = "1"; } else{ this.mfgaction6 = "0"; } } public String getmfgaction6() { return this.mfgaction6; } public void setmfgaction7(String wmfgaction7) { if(wmfgaction7.equals("Yes")){ this.mfgaction7 = "1"; } else{ this.mfgaction7 = "0"; } } public String getmfgaction7() { return this.mfgaction7; } public void setdlgroup(String wdlgroup) { this.dlgroup = wdlgroup; } public String getdlgroup() { return this.dlgroup; } public void setdluser(String wdluser) { this.dluser = wdluser; } public String getdluser() { return this.dluser; } public void setrfc1(String wrfc1) { this.rfc1 = wrfc1; } public String getrfc1() { return this.rfc1; } public void setrfc2(String wrfc2) { this.rfc2 = wrfc2; } public String getrfc2() { return this.rfc2; } public void setrfc3(String wrfc3) { this.rfc3 = wrfc3; } public String getrfc3() { return this.rfc3; } public void setexplanation(String wexplanation) { this.explanation = wexplanation; } public String getexplanation() { return this.explanation; } public void setdwgtype(String wdwgtype) { this.dwgtype = wdwgtype; } public String getdwgtype() { return this.dwgtype; } public void setqueloc(String wqueloc) { this.queloc = wqueloc; } public String getqueloc() { return this.queloc; } public void setrejflag1(String wrflag1) { if(wrflag1.equals("Yes")){ this.rejflag1 = "1"; } else{ this.rejflag1 = "0"; } } public String getrejflag1() { return this.rejflag1; } public void setrejflag2(String wrflag2) { if(wrflag2.equals("Yes")){ this.rejflag2 = "1"; } else{ this.rejflag2 = "0"; } } public String getrejflag2() { return this.rejflag2; } public void setrejnote(String wrnote) { this.rejnote = wrnote; } public String getrejnote() { return this.rejnote; } public void setcorrnote(String wcnote) { this.corrnote = wcnote; } public String getcorrnote() { return this.corrnote; } public void setwfname(String wfname) { this.wfname = wfname; } public String getwfname() { return this.wfname; } public void setsignhist(String wshist) { this.signhist = wshist; } public String getsignhist() { return this.signhist; } public void setassnto(String wassnto) { this.assnto = wassnto; } public String getassnto() { return this.assnto; } public void setwlname(String wlname) { this.wlname = wlname; Date date = new Date(); Format formatter; Format formatter2; formatter = new SimpleDateFormat("MMddyy"); formatter2 = new SimpleDateFormat("MM/dd/yyyy"); String dateString = formatter.format(date); String dateString2 = formatter2.format(date); AS400JDBCDataSource datasource = new AS400JDBCDataSource("gvas400"); datasource.setTranslateBinary(true); datasource.setUser("drawchg"); datasource.setPassword("webabc1"); try { Connection connection = datasource.getConnection(); Statement setWPSTMT = connection.createStatement(); String setWPSQL = "Update webprddt6.drawmext3 Set priority = '" + this.cpriority + "', affassy = '" + this.affectedvalue + "', assynos = '" + this.affectedlist + "', modelno = '" + this.modelnumber + "', efftvy = '" + this.effectivity + "', prtsdisp = '" + this.disposition + "', calom = '" + this.changeaffectsa + "', cafod = '" + this.changeaffects2 + "', cadn = '" + this.changeaffects3 + "', capp = '" + this.changeaffects4 + "', cafp = '" + this.changeaffects5 + "', caassy = '" + this.changeaffects6 + "', cacatest = '" + this.changeaffects7 + "', mainv = '" + this.mfgaction1 + "', maassys = '" + this.mfgaction2 + "', mashopo = '" + this.mfgaction3 + "', matoolf = '" + this.mfgaction4 + "', macompp = '" + this.mfgaction5 + "', mashipp = '" + this.mfgaction6 + "', masurpm = '" + this.mfgaction7 + "', dlgrp = '" + this.dlgroup + "', dluser = '" + this.dluser + "', rforchg1 = '" + this.rfc1 + "', rforchg2 = '" + this.rfc2 + "', rforchg3 = '" + this.rfc3 + "', explan = '" + this.explanation + "', dwgtype = '" + this.dwgtype + "', queloc = '" + this.queloc + "', writer1 = '" + this.wfname.trim() + " " + this.wlname.trim() + "', writer1d = '" + dateString2 + "', signhist = '" + this.signhist.substring(0,2000) + "', rejnote = '" + this.rejnote + "', cornote = '" + this.corrnote + "', rejflg1 = '" + this.rejflag1 + "', rejflg2 = '" + this.rejflag2 + "', assnto = '" + this.assnto + "' Where recseq = " + this.whatdwgrec ; setWPSTMT.executeUpdate(setWPSQL); setWPSTMT.close(); setWPSTMT.close(); connection.close(); wpError = ""; wpErrorLiteral = "NoError"; } catch (SQLException sqle) { wpError = "Warning!!! The submit process has failed!"; wpErrorLiteral = "Error"; System.out.println("Warning!!! The submit process has failed!"); System.out.println(sqle); } } public String getwlname() { return this.wlname; } }
Politics is a circus designed to distract you from what is really going on. So is this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Checking for No Value
How do I get a Subset of a ResultSet
Creating Cewolf Combined Charts
date
date
More...