Questions tagged [metawidget]

Metawidget is a smart User Interface widget that populates itself, either statically or at runtime, with UI components to match the properties of your business objects.

Metawidget is an LGPL licensed UI widget that populates itself, either statically or at runtime, with UI components to match the properties of any business objects.

Source at GitHub.

18 questions
2
votes
1 answer

How do I force Metawidget to display a date selection widget instead of a number widget for timestamp properties?

Metawidget creates date selection widgets if the property type is java.util.Date. In my case, the POJO contains timestamps of type long. public class Node { private long created; private long lastModified; /* ... */ } Node node = new…
1
vote
2 answers

Dynamically creating Swing GUI from JSON Schema (using Metawidget)

as the title suggest, I would like to create a Swing GUI based on a JSON Schema (that I fetch in real time) and use it to populate a JSONObject (Google SimpleJSON). I was thinking of using the Metawidget framework for this, but have been so far…
milin
  • 414
  • 4
  • 14
1
vote
1 answer

Add CSS property in Angualr2 with MetaWidget

I am trying to add CSS when clicked on row or column of table, Following is code private rowClicked(event: Event): void { event.srcElement.setAttribute("class", "highlighted"); } But it's not working as accepted. Am I doing in wrong way, Is…
deen
  • 2,185
  • 7
  • 29
  • 53
1
vote
1 answer

Is there buttons / funtion calls & tables handled in MetaWidget - js

I am wondering if some can help me out to get the buttons , function calls and tables displayed using metawidget jsonSchema. Unfortunately, I can see it just as a form render-er for our applications, is it something which we need to define…
1
vote
1 answer

UI Validation not working in Swing MetaWidget

I am using MetaWidget for Swing. I am able to generate the UI and the BeanBinding is working as well. However, the validations like Mandatory Field and Max Length do not work. I am expecting that the first line in the savePerson() method to throw an…
Pramod CS
  • 45
  • 6
1
vote
1 answer

Metawidgetjs tabs is not working insight the iframe on IE browser

I am using metawidgetJs, Tabs are never support into the IE if it call from Iframe. I share basic sample code. Here is basic html file if I open this file into the IE it's working fine, But if I call this file from Iframe into another file and open…
1
vote
1 answer

Creating own scaffold plugins: Unable to locate scaffold/faces/metawidget-qbe.xml

I want to create my own scaffold's provider for jboss forge 1.4.4, for do that I forked the files on github. I add succesfully the plugin with command: forge source-plugins path/to/plugins I can add the plugins to my project with scaffold setup…
marms
  • 21
  • 6
0
votes
2 answers

Generating Form (and XML result) using XSD(s)

This post JSON shows how to create a JSON from JSON schema using Java Metawidget. I want to do exactly the same for an XSD (and if necessary XML). The metawidget documentation says quite a bit about XMLInspectors, but I have not been able to get a…
Relluuuu
  • 11
  • 3
0
votes
2 answers

Getting java.lang.NoClassDefFoundError: com/vaadin/data/Property using Metawidget with Vaadin

I am trying to use Metawidget with Vaadin and getting the following error when I run my code java.lang.NoClassDefFoundError: com/vaadin/data/Property I am using Vaadin 8 and Metawidget 4.2 (latest available release). I did track down the exception…
Pramod CS
  • 45
  • 6
0
votes
1 answer

Working with custom value types in metawidget

Imagine the following form/bean: public class MyForm { private BankAccountNumber accountNumber; // getter + setter } where BankAccountNumber is a custom value object. When I use metawidget and jsf with an instance of this class, no input…
Xavier Dury
  • 1,530
  • 1
  • 16
  • 23
0
votes
1 answer

How to append attributes in metawidget

I am trying to implement metawidget on angular2 using metawidget javascricpt api. Till now I am able to generate UI form using buildWidgets. Now I want to append ng-model to input type for two way data binding, can someone suggest me how I can…
deen
  • 2,185
  • 7
  • 29
  • 53
0
votes
1 answer

SwingMetawidget, value not getting bound to JComboBox

I am using SwingMetawidget. My data structure has a Person class and one of the properties is a Title which is also a class with a Many To One relationship from Person to Title. I am trying to get a JComboBox in the MetaWidget with the value of the…
Pramod CS
  • 45
  • 6
0
votes
1 answer

How to get the Swing MetaWidget to adjust its size dynamically

I am using SwingMetaWidget. In my code I have a Dialog to which I pass a domain object dynamically and that will lead to different number of components based on the domain object. I would like the metawidget to return its preferredSize based on the…
Pramod CS
  • 45
  • 6
0
votes
1 answer

How to Get and Show Updated Domain Model in Metawidgets (JavaScript) within the Client?

I'm using Metawidgets for javascript, and want to access and show the updated domain model if any changes were made to it, without routing back to a server (e.g.: all within the same client side javascript). Sadly, every example I could find went…
R. Barzell
  • 666
  • 5
  • 24
0
votes
1 answer

Extract UI elements with values and id from a html form and ignore null elements and FALSE checkboxes

I have generated several forms using METAWIDGET where i pass a light weight JSON now I want to extract the values of the ui elements along with their ids and then bind it to a string to pass it as a URL parameter. Now I can write Javascript to…
KronnorK
  • 539
  • 5
  • 17
1
2