| Author |
How is it called when you generate components from code?
|
Pablo Mino
Greenhorn
Joined: Aug 11, 2009
Posts: 26
|
|
I wrote a post before about a dynamic CRUD, but it turned out I have to create it from 0, adding childrens to a unique form tag on the jsp level
How and where can I find documentation and examples for elements like HtmlCommandButton and HtmlDataTable and so on?
I'm totally lost at giving actions to elements with that Method and Expression Language thing, bindings and all that stuff
So I would love a hello world with jsf from code.... or something better
|
 |
Tim Holloway
Saloon Keeper
Joined: Jun 25, 2001
Posts: 14456
|
|
Generating an entire JSF view from code is a significant task. More often, people will take a static view definition and dynamically customize it.
The documentation on the view element classes is located right next to the documentation of the core JSF tags on Sun's documentation area at java.sun.com. It's in the familiar JavaDoc form.
Kito Mann's Javaserver Faces in Action book has some basic code examples and discussion on this kind of stuff.
|
Customer surveys are for companies who didn't pay proper attention to begin with.
|
 |
Pablo Mino
Greenhorn
Joined: Aug 11, 2009
Posts: 26
|
|
finally a starting point thanks
so far I got:
an inputText that gets its value with one click delay....
a commanButton that does not execute its Method action...
a dataTable that does work, it is meant to print each value one cell at a time in an outputText, but instead I end up with a whole row in one cell...
1 inputText per each column of the selected dataTable, but no idea on how to get those values from there to the cachedResultSet
If I fix the first 2 I will get a decent grade at least :P, thanks again
|
 |
 |
|
|
subject: How is it called when you generate components from code?
|
|
|