I am not sure if another UIInput type should be created. UIInputMany covers most of the many values input types. Perhaps a InputType.TABLE should help, still unsure how to handle that in shell

Em domingo, 23 de agosto de 2015, Rafael Pestano <rmpestano@gmail.com> escreveu:
also if we press tab in shell we could display a json skeleton with empty values:

network-config --proxybypass { "host": "", "provider": ""}

2015-08-23 14:13 GMT-03:00 Rafael Pestano <rmpestano@gmail.com>:
Hi George,

custom layout is nice but I think tabular data is a common case that could be provided out of the box. We need to think about the shell, maybe we can represent input data as json.

Here's an example for network config to add proxy bypass (image in first message):

@Inject
@WithAttributes(label = "Proxy bypass")
private UIInputTable<ProxyBypass> proxyByPassConfig;

ProxyBypass is a pojo with 2(String) fields (host and provider), the name of the fields could be used for table column names.

in shell we could use the following command:

network-config --proxybypass { "host": "127.0.0.1", "provider": "Manual"}


Don't know if its viable, for now I'll stick with input many.





2015-08-23 11:12 GMT-03:00 George Gastaldi <ggastald@redhat.com>:

We do have https://issues.jboss.org/browse/FORGE-1190 requesting a custom extension point to allow custom component inputs to be rendered (that's why the inputType attribute in HintsFacet is a String), so you could implement your own component using the Eclipse API and the Forge plugin would render as you like, but that is not implemented yet.

Best Regards,
George Gastaldi

Em 23/08/2015 11:07, "George Gastaldi" <ggastald@redhat.com> escreveu:

Hi Rafael,

For now you can use UInputMany to make it render as a checkbox table (one column only), but that would be interesting to have, as long as we find a way to input data like this in shell. Ideas are welcome.

Best Regards,

George Gastaldi

Em 23/08/2015 09:26, "Rafael Pestano" <rmpestano@gmail.com> escreveu:
Hi,

there is any intention to add a table ui component in Forge?

I would like to generate an output like eclipse network config:
http://postimg.org/image/ktwia3fhr/full/

WDYT?



--
Att,

Rafael M. Pestano

Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul

_______________________________________________
forge-dev mailing list
forge-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/forge-dev

_______________________________________________
forge-dev mailing list
forge-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/forge-dev



--
Att,

Rafael M. Pestano

Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul



--
Att,

Rafael M. Pestano

Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul


--
George Gastaldi | Senior Software Engineer

JBoss Forge Team
T: +55 11 3524-6169
M: +55 47 9711-1000