> 
>                 String htmlCodeInputfield = erzeugeEingabefeld( q );  
>               Label label = new Label( "Input", htmlCodeInputfield );
>               label.setEscapeModelStrings( false );
>               item.add( label );
> 
> 

Use a textfield instead of plain html. Bind it to a "dynamic" model like
PropertyModel and the leave the rest to Wicket. In onSubmit the beans in
your Katalog will contain the entered values. Something like:
item.add(new TextItem("Input", new PropertyModel(q, "antwort")));



> Apart from that how can I tell the components apart within my onSubmit
> method?
> Because of the fact that all have the same wicket:id ("Frage" or "Input")
> how can I access each of them separate?
> 

I think there is no need for that if you use Models the right way. You are
interested in what the user enters aren't you? You don't need to care about
the components and getting/putting data from/to them. That's Wicket's
concern.

In onSubmit, just iterate through your FragenKatalog and you will see that
every instance of Question has the entered answer filled in.

-----
-- 

Regards,

Hans


http://www.cantaa.de http://cantaa.de 

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/how-to-access-component-values-within-a-dynamic-table-tp3310939p3311134.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to