aspose file tools
The moose likes JSF and the fly likes How is it called when you generate components from code? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "How is it called when you generate components from code?" Watch "How is it called when you generate components from code?" New topic
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
    
    7

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How is it called when you generate components from code?
 
Similar Threads
Vector array
How does set ensures uniqueness
HQL query related to many-to-many relationship
How to sort a list of lists
Get the Element from Set