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(a)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(a)gmail.com
<javascript:_e(%7B%7D,'cvml','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(a)redhat.com
> <javascript:_e(%7B%7D,'cvml','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(a)redhat.com
>> <javascript:_e(%7B%7D,'cvml','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(a)gmail.com
>>>
<javascript:_e(%7B%7D,'cvml','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?
>>>>
>>>>
>>>>
>>>> --
>>>> <
http://www.advancedit.com.br/>Att,
>>>>
>>>> Rafael M. Pestano
>>>>
>>>> Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul
>>>>
http://rpestano.wordpress.com/
>>>> @realpestano <
https://twitter.com/realpestano>
>>>>
>>>> _______________________________________________
>>>> forge-dev mailing list
>>>> forge-dev(a)lists.jboss.org
>>>>
<javascript:_e(%7B%7D,'cvml','forge-dev@lists.jboss.org');>
>>>>
https://lists.jboss.org/mailman/listinfo/forge-dev
>>>>
>>>
>> _______________________________________________
>> forge-dev mailing list
>> forge-dev(a)lists.jboss.org
>>
<javascript:_e(%7B%7D,'cvml','forge-dev@lists.jboss.org');>
>>
https://lists.jboss.org/mailman/listinfo/forge-dev
>>
>
>
>
> --
> <
http://www.advancedit.com.br/>Att,
>
> Rafael M. Pestano
>
> Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul
>
http://rpestano.wordpress.com/
> @realpestano <
https://twitter.com/realpestano>
>
--
<
http://www.advancedit.com.br/>Att,
Rafael M. Pestano
Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul
http://rpestano.wordpress.com/
@realpestano <
https://twitter.com/realpestano>
--
*George Gastaldi | Senior Software Engineer*
JBoss Forge Team
T: +55 11 3524-6169
M: +55 47 9711-1000