[forge-dev] UI - Table output

Rafael Pestano rmpestano at gmail.com
Sun Aug 23 13:13:33 EDT 2015


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 at 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 at 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 at 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 at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/forge-dev
>>>
>>
> _______________________________________________
> forge-dev mailing list
> forge-dev at 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>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/forge-dev/attachments/20150823/f2e003de/attachment.html 


More information about the forge-dev mailing list