Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How is it called when you generate components from code?  RSS feed

 
Pablo Mino
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 18709
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Pablo Mino
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!