I am missing a data grid to keep several span and textfield aligned
In this case span is not aligned to textfield no matter what I do:
<hbox >
<vbox>
<span text="ciao" />
<span text="ciaociao" />
<span text="ciaociao" />
</vbox>
<vbox>
<textField id="nomeField" property="nome"/>
<textField id="nomeField2" property="nome"/>
<textField id="nomeField3" property="nome"/>
</vbox>
<vbox>
<textField id="nomeField6" property="nome"/>
<textField id="nomeField4" property="nome"/>
<textField id="nomeField5" property="nome"/>
</vbox>
</hbox>
And I need also to update span content via java code (with label it was possible)
ValidationMessage
is a class created for Vaadin sample, see additional tabs with code (some samples have more than one class attached)
In order to add components programmatically you need to obtain a view content object, e.g.:
getContent().add(grid, firstNameValidationMessage, lastNameValidationMessage, emailValidationMessage);
As for Grid Editor
, it works only with Vaadin Binder
, but we use our own data binding that aware of CollectionContainer
s. It means that if you need Grid Editor
then you have to use Vaadin data binding.
Could you please describe your task in more detail? It seems that you’re trying to create a form (in this case the FormLayout
component is the best solution), but I can be mistaken.
Hello,
We have planned this for the end of November.
It is a sort of form but the description of the fields is dynamic because it depends by another field.
A simple example: each textfield in a row contains a number. On the left I have a span that can change to “kg” “g” “mg” (the unit of scale).
I am trying EntityPicker and it looks like a textfield component, so it does not let me choose an entity.
What am I doing wrong?
and this one probably is because I am a newbie, but I have added an
@Autowired
protected TextField nomeField;
to my subclass of StandardDetailView but I get always an:
NoSuchBeanDefinitionException: No qualifying bean of type 'com.vaadin.flow.component.textfield.TextField' available```
In addition to this if I put in a form labelsPosition=“ASIDE” the input fields become shorter
@m.fedoseev Thank you. I am in the middle of the conversion of a project that needs the use of composite project functionality on Flow. I would even appreciate it sooner but not slipped from the end Nov. Thank you in advance.
@gorelov I can tell you that this is a very important and useful functional requirement from developers as there are many UI that required an inline edit option. When do you plan to add this data binding capability in dataGrid in Jmix?
Ok, no I think you got the question right. Sorry that was confusing from my side to use java class names, but I was actually interested in extending screen descriptor xmls.
Like you said:
Currently, there is no extend attribute in XML descriptor, so if any view needs to be > extended, then you need to override it by providing a view with the same Id.
I understand that there is no extends
attribute now:
But I didn’t get your proposed solution - so what I don’t understand is this phrase:
so if any view needs to be > extended, then you need to override it by providing a view with the same Id
From what I know, that works when I want to change a built-in view. But how would I do this when I want to have multiple views extended from one base view? (with the xml descriptors, not the java classes)
Currently, XML extension doesn’t supported. So, you can override (replace) any existing view by providing a new view with the same Id. If you need to have several views that extends some base view, then you can do it only programmatically by providing base controller class.
Ok, thanks. From what I can see in the code it’s only a few lines of code that is required for the “extends” functionality. Did I miss something? Maybe I could build it myself and create a pull request.
Hi @m.fedoseev Any update on the release of this feature (Composit project FlowUI)? Looking forward.
Hi Mortoza,
The full support for FlowUI in composite projects will appear only in release 1.5 in Feb 2023.
You can track the progress in the issue.