-
1. Re: programmatic starting a list of conversations
pmuir Jan 17, 2008 1:36 PM (in response to tschnoelzer)You can't have more than one active conversation.
-
2. Re: programmatic starting a list of conversations
tschnoelzer Jan 18, 2008 3:14 AM (in response to tschnoelzer)Hi Pete,
it is clear to have only one active converstion. I need a list of conversations for choosing the one I work on with the workspace switcher.
Talking in seam example "hotel booking" it is like choosing x (e.g. 4) hotels from the hotel list, than switch one by one for booking using the workspace pulldown.
In my project, order people choose e.g. 10 cars from a list and than choose options and calc one by one while switching their workspace.
So I need to do something like:
Contexts.getConversationContext().add(new CarManagedBean(carId));
Thx for any info!!!!
Timo -
3. Re: programmatic starting a list of conversations
tschnoelzer Jan 18, 2008 4:04 AM (in response to tschnoelzer)Hi all,
once more to the point
List listOfCars;
iterate over list of cars{
Contexts.getConversationContext().add(new CarManagedBean(car.carId));
}
forward to info page with workspace switcher
Timo -
4. Re: programmatic starting a list of conversations
tschnoelzer Jan 21, 2008 9:08 AM (in response to tschnoelzer)Hi team,
please be so kind and help me. There should be knowledge out there!
Thx
Timo -
5. Re: programmatic starting a list of conversations
pmuir Jan 22, 2008 6:55 AM (in response to tschnoelzer)So, you want to start multiple workspaces at once?
-
6. Re: programmatic starting a list of conversations
tschnoelzer Jan 23, 2008 12:07 PM (in response to tschnoelzer)Hi Pete,
yes, I have a List of Cars and the user checks several of them. With this list of n cars I wan't to begin n conversations, making the first active.
in the conversation switcher I like to have the n Conversations where the user can switch and work on one by one.
Any useful idea?
Thx at all
Timo -
7. Re: programmatic starting a list of conversations
pmuir Jan 23, 2008 12:40 PM (in response to tschnoelzer)I don't think you can begin multiple long running conversations in the same request with Seam.
-
8. Re: programmatic starting a list of conversations
tschnoelzer Jan 23, 2008 1:27 PM (in response to tschnoelzer)One can start multiple "long" running conversations in seam using the API. But I have to start simple "short" conversations that are managed in the workspace manager / switcher. Here i miss the API to do this...
:-( -
9. Re: programmatic starting a list of conversations
muhviehstarr Feb 7, 2008 9:43 AM (in response to tschnoelzer)Did you find any solution for your problem, because I want to do a similar thing.
-
10. Re: programmatic starting a list of conversations
dhinojosa Feb 7, 2008 9:11 PM (in response to tschnoelzer)@Timo
Show us your page, where the user selects the cars. ;) Maybe we can find something for you.
Danno -
11. Re: programmatic starting a list of conversations
muhviehstarr Feb 8, 2008 4:17 AM (in response to tschnoelzer)For my needs I found the following solution.
To build multiple independent conversations I use this code to create one conversation:Conversation.instance().root(); Conversation.instance().begin(false, true);
-
12. Re: programmatic starting a list of conversations
tschnoelzer Feb 8, 2008 9:26 AM (in response to tschnoelzer)Hi folks,
some movement, looks great -> thx.
So 1st of all i have a list on the xhtml page. this list has a checkbox for each row. when submited i like to start one conversation for each checked row. i expect to find the list of conversations e.g. in the conversation switcher.
i have to start those conversations programatically. as a workaround i removed the checkboxes and use links to start a conversation with a new page. after, the user has to go back to the list and start the next and so on.
I now will try muhviehstarr hint.
thx again
Timo -
13. Re: programmatic starting a list of conversations
dhinojosa Feb 8, 2008 1:21 PM (in response to tschnoelzer)Uhm, so after the page where they select the cars, if they select 10 cars, and 10 popup pages going to appear?
-
14. Re: programmatic starting a list of conversations
tschnoelzer Feb 11, 2008 4:00 AM (in response to tschnoelzer)Hi,
i did not find a solution :(
btw: this should be a common problem...
Thx for any input
Timo