0
<select><option value="AND">AND</option><option value="OR">OR</option></select>

How to convert this HTML code to ui.XML?

1
  • textList = textList.stream().map(s -> "%" + s).collect(Collectors.toList()); for your other question. BUT, it creates a new List object and uses a loop both behind the scenes, breaking your requirements Commented Apr 13, 2019 at 17:06

1 Answer 1

2

You can migrate it to widgets using ListBox:

<g:ListBox>
  <g:item value='AND'>AND</g:item>
  <g:item value='OR'>OR</g:item>
</g:ListBox>

Or keep it as elements using HTMLPanel:

<g:HTMLPanel>
  <select>
    <option value="AND">AND</option>
    <option value="OR">OR</option>
  </select>
</g:HTMLPanel>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.