<html><body><div><div>Hi Ivan,</div><div><br></div><div>Yes, if you define the UISelectOne&lt;YourEnum&gt;, it will be rendered as a combo box (non-editable). That depends on the InputType you choose (@WithAttributes(type=InputType.DROPDOWN)).</div><div><br></div><div>As for your suggestion, you can use a UIInputMany and add a UICompleter to present some options when Ctrl+Space is pressed (although I think this may require some changes in the Eclipse plugin).</div><div><br></div><div>Best Regards,</div><div><br></div><div>George Gastaldu</div><div><br></div><div><br></div><div>-------- Mensagem original --------</div><div>De: "Ivan St. Ivanov" &lt;ivan.st.ivanov@gmail.com&gt; </div><div>Data: 04/07/2015  11:47  (GMT-03:00) </div><div>Para: forge-dev List &lt;forge-dev@lists.jboss.org&gt; </div><div>Assunto: Re: [forge-dev] Some questions on wizard steps </div><div><br></div></div><br><div><p dir="ltr">Thanks a lot, George!</p>
<p dir="ltr">I guess that if I make the List parameter an enum, it will appear as combo box(es) in the GUI?</p>
<p dir="ltr">And to add to this question. Is it possible to define a combo box, where the user can both choose one of the options as well as add one by herself?</p>
<div class="gmail_quote">On Jul 4, 2015 17:37, &quot;George Gastaldi&quot; &lt;<a href="mailto:ggastald@redhat.com">ggastald@redhat.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>Hey Ivan,<div><br></div><div>1) Finish is automatically enabled when the next steps are valid (do not require any input from the user) or is null. </div><div><br></div><div>2) Use a UIInputMany&lt;String&gt; and make it required.</div><div><br></div><div>Best Regards,</div><div><br></div><div>George Gastaldi</div><div><br></div><div><br></div><div>-------- Mensagem original --------</div><div>De: &quot;Ivan St. Ivanov&quot; &lt;<a href="mailto:ivan.st.ivanov@gmail.com" target="_blank">ivan.st.ivanov@gmail.com</a>&gt; </div><div>Data: 03/07/2015  17:46  (GMT-03:00) </div><div>Para: forge-dev List &lt;<a href="mailto:forge-dev@lists.jboss.org" target="_blank">forge-dev@lists.jboss.org</a>&gt; </div><div>Assunto: [forge-dev] Some questions on wizard steps </div><div><br></div></div><br><div><div dir="ltr">Hey everybody,<div><br></div><div>It&#39;s me again, using a new thread for the sake of keeping stuff separated :)</div><div><br></div><div>My next questions concern defining wizard steps. There we go:<br></div><div><br></div><div>1) Suppose I define a wizard. But already at the first window the user can say &quot;I am done&quot;. And can press the Finish button. How can I specify in a wizard step that the Finish button is clickable. From the docs I got it is just by returning null from the next() method. But I want to have both the opportunity to go to the next step or finish everything immediately. So both Next and Finish buttons have to be enabled</div><div><br></div><div>2) That&#39;s a more tricky question. In a command window I want to give the opportunity to the user to define one or more security roles. Pay attention to the &#39;one or more&#39; requirement: the user should be able to enter in one, two, three, four or <i>n</i> text fields the name of the role they want to add to the security constraint. How can I implement that?</div><div><br></div><div>Thanks,</div><div>Ivan</div></div>
</div></div><br>_______________________________________________<br>
forge-dev mailing list<br>
<a href="mailto:forge-dev@lists.jboss.org">forge-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/forge-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br></blockquote></div>
</div></body></html>