@@ -0,0 +1,914 @@
+package org.jpos.qi.minigl;%0A%0Aimport com.vaadin.data.Converter;%0Aimport com.vaadin.data.Result;%0Aimport com.vaadin.data.ValueContext;%0Aimport org.jpos.gl.Journal;%0Aimport org.jpos.gl.Layer;%0A%0Apublic class StringToLayerConverter implements Converter%3CLayer, String%3E %7B%0A    private Journal journal;%0A%0A    public StringToLayerConverter(Journal journal) %7B%0A        super();%0A        this.journal = journal;%0A    %7D%0A    @Override%0A    public Result%3CString%3E convertToModel (Layer value, ValueContext context) %7B%0A        if (value != null)%0A            return Result.ok(String.valueOf(value.getId()));%0A        return Result.ok(null);%0A    %7D%0A%0A    @Override%0A    public Layer convertToPresentation (String value, ValueContext context) %7B%0A        if (value != null) %7B%0A            TransactionsHelper helper = new TransactionsHelper();%0A            return helper.getLayer(Short.parseShort(value), journal);%0A        %7D%0A        return null;%0A    %7D%0A%7D%0A

Add String to Layer converter