[jboss-user] [JBoss Seam] - Re: Adding DataModel/DataModelSelection/In/Out in runtime
jacob.orshalick
do-not-reply at jboss.com
Thu Sep 13 08:59:43 EDT 2007
Programmatically means you could do something like this:
| ...
| private List myList;
| private ListDataModel myDataModel;
| ...
| public void initializeMyDataModel() {
| this.myDataModel = new ListDataModel(this.myList);
| Context.getConversationContext().set("myProgrammaticName", this.myDataModel);
| }
| ...
|
The DataModel will now be available in the conversation context under the name provided. This of course will depend on what Context you want to set the DataModel into.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4083926#4083926
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4083926
More information about the jboss-user
mailing list