Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

Dynamic Forms

$
0
0
Hi all,

I'm currently working on a report generation tool (using JasperReports in the background). The reports will consist of multiple components. Beside having "static" parameters, I will need runtime parameters shared across the different components. The challenge I'm facing now, is to create a dynamic form for this runtime parameters. I imagine to have a Map<String, Class> or a similar construct calculated from the from the different components. For example, the Map could look this:

"title" => java.lang.String
"date" => java.util.Date
"companies" => java.util.List<Company>
...

Is it possible to generate a dynamic form containing each of the parameters by loading a form fragment based on the given type?
Can I use the Dynamic component for it and if yes how (unfortunately, I couldn't find an example)?

http://tapestry.apache.org/5.3/apidocs/org/apache/tapestry5/corelib/components/Dynamic.html

All inputs are appreciated!

Thanks a lot and best,
Thilo

Viewing all articles
Browse latest Browse all 5648

Trending Articles