NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

JSF/MYSQL: How to update your database twice in one selection process?

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
aoifeoz



Joined: 05 Aug 2009
Posts: 7
Location: Ireland

PostPosted: Wed Aug 12, 2009 3:19 pm    Post subject: JSF/MYSQL: How to update your database twice in one selection process? Reply with quote

Hi,

I don't know if this can be done, I am new to all this, so I am asking just in case. Basically I have created a webapp using JSF and MySQL. When a user wants to select an option (using radiobutton because i only want one selection to be possible) I want it to update two columns in my database. Can this be done? I have it working for one but I need it to work for two. If I select one answer it updates the ansCat column, each ansCat has a corresponding sectionID therefore I need both to be updated can this be done inside the code? eg:

<h:selectOneRadio value="#{stuprof.stuprof.ansCat}" >
<f:selectItem
itemValue="True" itemLabel="True" />
(......maybe somewhere in here <f:.....???)

I have asked a similiar query about two values in a datatable and I didnt get a response so I am thinking it is not possible it would be great to know for sure, save me a lot of hassle.
Thanks
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo