Questions tagged [openxava]

OpenXava is an AJAX Java Framework for Rapid Development of Enterprise Applications

OpenXava is an AJAX Java Framework for Rapid Development of Enterprise Applications.

In OpenXava you only have to write the domain classes in plain Java to get an AJAX application ready for production.

http://www.openxava.org

83 questions
0
votes
1 answer

OpenXava how to populate dropdown/combobox with my own values

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?
0
votes
1 answer

Module definition for transient class in OpenXava

in the documentation of OX, is explained how to create a non-persisted class, obtaining just a view, with some actions/fields. Here is the link: View reference documentation Using version 6.6, I'm not able to configure a module in application.xml…
Massimo
  • 24
  • 5
0
votes
1 answer

Is it possible to override naviox-users. properties file in production environment

For an initial pilot of a small app, I would like to keep a separate file for users name/passwords to be used in dev environment, and one for the prd environment. Up to now, I have two files, and I copy manually the prd one to…
0
votes
2 answers

DiscussionComment entity has Oracle reserved word as a column causing database generation error

When I try to use the stereotype DISCUSSION with Oracle I get an error because of the entity DiscussionComment column named "comment". Although I'm using the correct dialect for my Oracle version, Hibernate is not quoting DDL as needed. This is a…
Gustavo
  • 1,332
  • 2
  • 16
  • 39
0
votes
1 answer

How to create a documentation module in OpenXava?

I need a documentation module in my OpenXava application. Basically it's to allow the user consult the manual in case of doubt. I think in HTML format. I saw in the OpenXava documentation the possibility of creating a documentation…
javierpaniza
  • 677
  • 4
  • 10
0
votes
1 answer

How to concatenate 2 fields to show in a combo for a @ManyToOne reference with @DescriptionsList in OpenXava?

The @ManyToOne relationship in OpenXava, only allows me to lookup a table in a combo box from another table for a description attribute (one field only). For example, if I write: @DescriptionsList @ManyToOne Product product I get a combo box with…
javierpaniza
  • 677
  • 4
  • 10
0
votes
1 answer

@Calculation annotation does not work in OpenXava

In my OpenXava application, the @Calculation annotation does not work. Here my coding for my @Embeddable that uses @Calculation: import java.math.*; import java.time.*; import javax.persistence.*; import org.openxava.annotations.*; import…
javierpaniza
  • 677
  • 4
  • 10
0
votes
1 answer

How to apply a @RowStyle to a range of rows (or other complex condition) in OpenXava?

I understand that using @RowStyle I can determine the style depending on specific values of a field. But how can I do it if I want to differentiate the five first records (id >= 1 and id <= 5) from the other ones? For example, in my case an Activity…
javierpaniza
  • 677
  • 4
  • 10
0
votes
1 answer

How to change the currency symbol for MONEY stereotype in OpenXava?

I am having a problem with the currency at a particular site. The currency is displaying in $ although I have set the locale to South Africa. Excel and other programs reflect R. However my OpenXava application is reflecting $. I have tried several…
javierpaniza
  • 677
  • 4
  • 10
0
votes
1 answer

Displayed data cleared after changing view with getView().setViewName() from an action in OpenXava

I use setViewName() to change the view from an action and it works, but after changing the view all the displayed data goes aways, all the fields are in blank. This is my action code: public void execute() throws Exception { // ... //…
javierpaniza
  • 677
  • 4
  • 10
0
votes
1 answer

How to validate if a nested referenced object (@ManyToOne) exists with OpenXava/JPA?

In my OpenXava application I have a class called Parcel that references TaxAccount class: @Entity public Parcel { @ManyToOne TaxAccount taxAccout; } Also, I have a class called Assessment that references Parcel: @Entity public class…
javierpaniza
  • 677
  • 4
  • 10
0
votes
1 answer

How to define the color/style of each row depending on the value of a reference with OpenXava?

I have an entity Issue with a reference to an entity Priority. I want in the list mode of my OpenXava module, a different color and visual style for each row depending on the value of priority. This is the code for my Issue entity: package…
javierpaniza
  • 677
  • 4
  • 10
0
votes
1 answer

Can I use Java code inside the @Calculation annotation in OpenXava?

Does the @Calculation annotation support Java code? For example, does the next code work? LocalDate startDate; @Calculation("startDate.plusDays(400)") LocalDate endDate; Otherwise, how can I implement the above case?
javierpaniza
  • 677
  • 4
  • 10
0
votes
1 answer

New modules are not shown in menu with XavaPro

When I upgrade my OpenXava application to XavaPro, all modules of my application are available in XavaPro automatically. That is, if I have three modules, Customer, Invoice and Product, thoses modules are in the left menu in XavaPro. That's…
javierpaniza
  • 677
  • 4
  • 10
0
votes
1 answer

How to use a different view for creating and for updating in OpenXava?

By default, OpenXava uses the same view for creating a new entity and for updating an existing one. Is there a way to have a different view for each case?
javierpaniza
  • 677
  • 4
  • 10