[JBoss Seam] - Re: How to control end of conversations/state of stateful be
by pete.muir@jboss.org
"schlafsack" wrote : "pete.muir(a)jboss.org" wrote :
| | | * submitting a search query using the button.
| | | * navigation forwards though the results using the next link.
| | | * navigation backwards though the results using the previous link.
| | |
| |
| | I'd also like the submission of a new query to start a new conversation. Ideally, clicking the button should end the existing conversation and begin a new one. So far I can't see an easy way of doing this.
|
| Normally you wouldn't make a search screen conversational. Why do you want to make it conversational?
|
| If you really do want to make it conversational, then you can use <end-conversation before-redirect="true" /> in pages.xml, and start a new conversation after the redirect. But I don't think this is the best way to write a search screen.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117120#4117120
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117120
18 years, 3 months
[JBoss Seam] - authenticator invocation / EL issue
by seamdev
Hi,
Let me start with background of issue I have. My authenticator method uses an external web service, multiple invocation of this method on a failed attempt causes the account to be locked earlier then expected. Locking of account is controlled by the external service. Hence, I really need to ensure that authenticator is invoked only once. Please see that in this scenario the guarantee that login failed event is raised only once is not useful as that event is can't be seen by the authentication service.
After reading JIRA issue 2165, I understand that I need to invoke Identity.isLoggedIn(false) instead of Identity.isLoggedIn() to avoid multiple invocation of authenticator. My app uses identity.isLoggedIn as an EL expression in pages.xml file. If I change this EL expression to identity.isLoggedIn(false), I get an error page on Login attempt as that EL expression gets mapped to Identity.isLoggedIn(java.lang.Boolean) instead of Identity.isLoggedIn(boolean).
My questions:
1. Is there way to write el expression that will map parameter type to boolean instead of java.lang.Boolean?
2. Is there a better way to ensure authenticator is invoked only once?
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117119#4117119
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117119
18 years, 3 months
[JBoss Seam] - Re: How to control end of conversations/state of stateful be
by pete.muir@jboss.org
"trouby" wrote : My case? I think it's any case with buttons that always exist on the template,
|
| Lets make an example:
| I have a top menu(that is always with visible) with few options,
| [my items: a, b, c, d]
|
| Pressing on one item should start a conversation, as this item is heavily being managed later on.
|
| I have added a 'done' button with propagation='none' but no one is using it : )
So the menu items should have propagation="none". Why do you need to start a lrc immediately on clicking on the menu item (this is the use case we are interested in, of course you want to be able to navigate away in a freeform way from within another conversation).
If really need to start a new lrc from a menu item, set the propagation to none, and start up a new conversation on the destination page using pages.xml.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117117#4117117
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117117
18 years, 3 months
[JBoss Messaging] - MDB and clustered Topics
by jduty
I've tried to answer this question myself through forms and the documentation but I've been unable (probably due to my own misunderstanding).
Env:
JBoss 4.2.2
JBoss Messaging 1.4.0.SP1
I have a node of 3 servers, and I'm deploying the same ear to all 3. In that ear I have a MDB that consumes from a topic using a durable subscription where I specify the sub name and client id.
So what this means is that each server has an instance of the MDB that consumers from a topic using the same sub name and client id. My question is should this topic be clustered? When a message is posted to the topic I only want 1 of the mdb instances in the cluster to get a copy, not one on all 3 machines?
Thanks in advance.
~Jonathan
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117112#4117112
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117112
18 years, 3 months