-
1. Re: Adding DataModel/DataModelSelection/In/Out in runtime
pmuir Sep 13, 2007 5:58 AM (in response to fphilip)You would have to do it programmatically rather than using annotations.
-
2. Re: Adding DataModel/DataModelSelection/In/Out in runtime
fphilip Sep 13, 2007 6:33 AM (in response to fphilip)I was looking inside of the Component class, but I didnt found way to add annotations.
Any idea? -
3. Re: Adding DataModel/DataModelSelection/In/Out in runtime
jacob.orshalick Sep 13, 2007 8:59 AM (in response to fphilip)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. -
4. Re: Adding DataModel/DataModelSelection/In/Out in runtime
fphilip Sep 14, 2007 6:54 AM (in response to fphilip)thanks
you cant tell my somthing about create ".component" in runtime? -
5. Re: Adding DataModel/DataModelSelection/In/Out in runtime
jacob.orshalick Sep 14, 2007 9:08 AM (in response to fphilip)You can create a component instance at runtime through one of the Component.getInstance(...) methods.
-
6. Re: Adding DataModel/DataModelSelection/In/Out in runtime
fphilip Sep 19, 2007 6:05 PM (in response to fphilip)If i put @Begin in a query list updated method, its works, but if put your code, dosen't works. Any idea?
-
7. Re: Adding DataModel/DataModelSelection/In/Out in runtime
jacob.orshalick Sep 19, 2007 7:27 PM (in response to fphilip)Hmm... I'm not sure what you are trying to do. Could you post the related code?
-
8. Re: Adding DataModel/DataModelSelection/In/Out in runtime
fphilip Sep 20, 2007 4:34 PM (in response to fphilip)Sorry, my english is poor.
Im looking a way to start a conversation programmatically like a @Begin does.
I was diving at source of ConversationInterceptor, and end in beginConversation method of Manager class. Its possible star a converstation with this method? -
9. Re: Adding DataModel/DataModelSelection/In/Out in runtime
jacob.orshalick Sep 20, 2007 6:45 PM (in response to fphilip)Try:
Conversation.instance().begin()