I would like to have something similar to Picklist, but Picklist needs to bind to sObject.
Other than InputText, is there any component to get user input that does not correspond to a field on a Salesforce object?
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.
Sign up to join this communityI would like to have something similar to Picklist, but Picklist needs to bind to sObject.
Other than InputText, is there any component to get user input that does not correspond to a field on a Salesforce object?
There are many different VF tags that don't tie directly to a SF object, but rather than controller properties.
inputText
inputCheckbox
inputHidden
inputTextArea
selectList
selectOption
selectOptions
selectRadio
selectCheckboxes
Check the VF developers guide for info on these
http://www.salesforce.com/us/developer/docs/pages/
Also, new in the Winter 14 release, they came out with the <apex:input>
tag. This tage references a controller property and does not need to tie to a SF object field.
From the Release notes.
is a new, HTML5-friendly, general purpose input component that adapts to the data expected by a form field. It uses the HTML type attribute to allow client browsers to display type-appropriate user input widgets
More Information
https://help.salesforce.com/help/pdfs/en/salesforce_winter14_release_notes.pdf
http://blogs.developerforce.com/developer-relations/2013/08/winter-14-developer-preview.html
I think you're looking for apex:selectList
.
http://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_selectList.htm
view
mode.