Hi,

I created a custom component "Question", and this component simply displays
a question and textfield (or radiobox, depends on the question type) to get
user input. It doesn't have <t:form> defined inside the component's
template.

And now I need to do something like this (see below) on the page which
contains those Question components and not sure how can I can get the user
input from them:

Main.page:
...
<t:form id="mainPageForm">
  <t:loop ...>
    <t:form>
      <t:Question .../>  <!-- my Question component, it display info depends
on what the loop pass in --> 
    </t:form>
  </t:loop>

  <input t:type="submit"/>
</t:form>

So you can see, I need to surround each Question with "<t:form>" as well, it
may look redundant but I need it for a work-round of a DOJO StackContainer
issue, until I find a better solution... 

So how can I get the user input from those Question components in my page's
"onSuccess" function?

thanks!
Ronald
-- 
View this message in context: 
http://www.nabble.com/T5%3A-Get-user-input-of-custom-components-which-themselves-are-forms-tp14857149p14857149.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to