I am new to the Grails platform and became interested in the TagLib component.
I have this application wherein I am to create a time select [24-hour format selection] made of two <select>
tag: hour and time. So far I have coded my theory in this manner.
def timePicker = { attrs ->
out << "<g:select name='" + attrs['name'] + ".hour' from='${00..21}' />"
out << "<g:select name='" + attrs['name'] + ".minute' from='${00..59}' />"
}
However I can't display it in the page but it display the content of out
in the webpage itself which is wrong. How can I have two <select>
display properly on the .gsp
by TagLib? Am i going to write it in the conventional <select>
accompanied with <option>
statements, or am going to utilize the g.select(attrs)
syntax?
Thanks