java - playframework - setting a list parameter in a custom select tag -


Text after "

I select some duplication tags in my html so that I will select a custom tag in the game that will be taken as a parameter The name attribute of the selection (which can be easily done) and a list item through which I can make the option tag dynamic.

Basically I want to do something like this

  / ///// Store the custom tag in the formulas /////// & lt; Select Name Name = "$ {_ selectName}" & gt; # {List $ {_ Option}, like: 't'} & lt; Option value = "$ {t.Description}" & gt; $ {T.Description} & lt; / Options & gt; # {/ List} & lt; / Select & gt; /////// Calling custom tag from another HTML file is ////////// Type: # {select the form name: 'type', option: type /} field: # {Select form nameName: 'reg' options: areas /}   

type and regions are variables vector and forwarded from the controller. To assume the type and regions >, select the $ {_ options} tag ( # {list} ) Inside) strong>

When I execute this exception on the above code

  Template occurred in the error execution error template /app/views/tags/FormSelect.html. No sign of method: The raised exception was MissingMethodException. (Template_1002 $ _run_closure1_closure2) Value: Template_1002 $ () is applicable for logic types [Template_1002 $ _run_closure1_closure2 @ 127a1d8] Possible solutions: _ (java.lang.String), (Java is .lang.Object), run (), runs (), Any (), get (java.lang.String). /app/views/tags/FormSelect.html (around line 2) 1: & lt; Select Name Name = "$ {_ selectName}" & gt; 2: # {list $ {_ options}, like: 't'} 3: & lt; Option value = "$ {t.Description}" & gt; $ {T.Description} & lt; / Options & gt; 4: # {/ list} 5: & lt; / Select & gt;   

thx

instead of < Previous> # {list $ {_ option}, like: 't'} & lt; Option value = "$ {t.Description}" & gt; $ {T.Description} & lt; / Options & gt; # {/ List}

Use:

  # {list items: _options, as: 't'} & lt; Option value = "$ {t} .description}" & gt; $ {T.Description} & lt; / Options & gt; # {/ List}   

This should resolve your current error.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -