Hello thanks that code works very well; but in my case i want to display different time for example "07:00","08:00" and so on. is there a way for that to happen?
OpenXava how to populate dropdown/combobox with my own values
218 Views Asked by tresor kabeya At
1
There are 1 best solutions below
Related Questions in PROPERTIES
- The Selenium application properties folder holds two environment options. After running a test the environment setting changes to a previous setting
- Inconsistency in lazy variable initialization between static and instance properties in Swift
- How to convert from Java ASCII properties to UTF8 (Java 9) properties
- Conditional Property After Powershell Left Join
- Inheritance - is it possible to 'force' variable values relative to the derived class?
- How to use an imported Excel file inside Anylogic model
- TinyMCE custom toolbar button to set CSS property of selected text
- Missing Properties
- I am trying a display items (events) from db typescript nestjs using handlebars the events are an array of object. Properties of each object undefined
- How to transform a flat form-specific data-structure into a nested one?
- C# How do I Create and Reference Multiple Globally Accessible Objects?
- powershell array of object with dynamic properties outputs only properties from first element
- Swift protocol extensions and immutable properties
- Object property has different many string values
- I created a dice cube model using a tutorial and i would like to expoert the subdivision holes as properties to unity3d. how can i do it?
Related Questions in OPENXAVA
- How do I implement soft delete in OpenXava?
- In OpenXava how do you prevent a link to an entity to be included in the main menu links of an application user interface?
- Error connecting OpenXava to SQL Server - It was impossible to execute the Record action: [Persist
- How to remove cards, charts and calendar from tabs of all modules?
- How to hide properties depending on a different property value
- In OpenXava Is it possible to have a calculated property that is also persisted in database?
- What OpenXava version is my project using?
- How to make an Entity updatable but not insertable or deletable in OpenXava?
- Problem showing chinese in the browser with OpenXava
- OpenXava how to populate dropdown/combobox with my own values
- Module definition for transient class in OpenXava
- Is it possible to override naviox-users. properties file in production environment
- DiscussionComment entity has Oracle reserved word as a column causing database generation error
- How to create a documentation module in OpenXava?
- How to concatenate 2 fields to show in a combo for a @ManyToOne reference with @DescriptionsList in OpenXava?
Related Questions in STEREOTYPE
- What can be put in an EJB stereotype?
- Acceleo: using custom UML Profile as metamodal, and its stereotypes in templates?
- changing cism: Stereotype rdf:resource when exporting RDFS File
- UML Stereotypes applied to Class Inheritance design pattern
- what is uml stereotype and how to use it
- Does spring have @Stereotype annotation?
- How to play music in left speaker and microphone voice in right speaker with raspberry pi python?
- Modelio : default stereotypes are unavailable
- What's the difference between declaring a controller with the Spring Controller stereotype versus as a subclass of the AbstractController?
- Should I create multiple services (using the Spring `@Service` stereotype) to do database lookups for different controllers?
- How to apply a stereotype from UML Standard Profile inside QVTo transformation?
- How to identify class stereotypes for use case scenario?
- How to get a IStereotype reference in a T4 Template?
- How do you use stereotype annotations in Spring 2.5.x?
- Change Stereotypes of multiple Packages selected in Project Browser at once - Enterprise Architect
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
To have a dropdown in OpenXava you can:
Define your property as a JPA @ManyToOne relationship annotated with @DescriptionsList.
You have an entity Hour that maps a table HOUR in your database, a combo box with all the value is shown.
Other option is to define a regular Java enum property:
It will show a combo with the four values of the enum.
Finally, you can add the values programmatically, usind add/removeValidValue of View class.
For example, for a simple property like this:
You can add a combo programmatically in this way:
Look at: https://openxava.org/OpenXavaDoc/docs/view_en.html#View-Property%20customization-Dynamic%20combos%20%28new%20in%20v5.8%29