[JBoss Seam] - Problme in LoggedInInterceptor..
by waheed.murad
I am developing a " LoggedInInterceptor" but problem with it is that when i return the string it does not functon properly
Interceptor code is here:
----------------------------------
@Interceptor(around={BijectionInterceptor.class, ValidationInterceptor.class, ConversationInterceptor.class, BusinessProcessInterceptor.class},
within=RemoveInterceptor.class)
public class LoggedInInterceptor{
@AroundInvoke
public Object checkLoggedIn(InvocationContext invocation) throws Exception{
System.out.println("LoggedInInterceptor...");
Method m=invocation.getMethod();
boolean isLoggedIn = Contexts.getSessionContext().get("loggedIn")!=null;
if (isLoggedIn){
return invocation.proceed();
}else{
return "loginpage";
}
}
}
when it return loginpage it seems that instead of going to login page it is trying to go on the same page actionbean on which it was invoked...
navigation rule in faces-config.xml is
<navigation-rule>
<navigation-case>
<from-outcome>loginpage</from-outcome>
<to-view-id>/eregindex.jsp</to-view-id>
</navigation-case>
</navigation-rule>
any help plzzz
thanks in advance...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996386#3996386
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996386
19 years, 4 months
[JBoss jBPM] - Re: AssignmentHandler problem
by dslevine
In case anyone else runs into this problem, I think I've stumbled upon a solution. It seems that:
<swimlane name="MySwimlane">
| <assignment class='tv.current.base.workflow.CurrentAssignmentHandler' expression="user(danlevine)"></assignment>
| </swimlane>
|
will not recognize the custom handler, but this will:
| <swimlane name="MySwimlane">
| <assignment class='tv.current.base.workflow.CurrentAssignmentHandler'><expression>user(danlevine)</expression></assignment>
| </swimlane>
|
as will this:
| <swimlane name="MySwimlane">
| <assignment class='tv.current.base.workflow.CurrentAssignmentHandler' >user(danlevine)</assignment>
| </swimlane>
|
I would've assumed that the latter is the way to go, except that the ExpressionAssignmentHandler entry in the Delegate table matches the one in the middle, so I'll stick with the middle option.
Still struggling mightily with trying to implement a custom identity module. As with the Spring set up, I'll post a sample to the Wiki if/when I get it going.
d
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996383#3996383
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996383
19 years, 4 months
[JBoss jBPM] - Re: Problem testing Hello BPEL sample
by alex.guizar@jboss.com
jBPM BPEL 1.1.Beta2 predates JBoss AS 4.0.5.GA, hence it is untested with that version. However, the InvalidClassException is not caused by a problem with jBPM BPEL but by a mismatch between the server and client classes.
As mentioned in section 4.4 of the user guide, the lib/endorsed subdirectory of JBoss AS contains replacements for the default implementations of the XML APIs in the JDK. Overriding the default implementations should resolve the class mismatch.
The NullPointerException in the DII code is caused because a malformed SOAP envelope is being sent to the engine. I see several parameters that are not quite right - please compare your code with the DII code provided with the Hello example.
On the other hand, the server code should probably be more robust and inform that the SOAP envelope is malformed. Please create a JIRA issue for this.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996382#3996382
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996382
19 years, 4 months
[JBoss Seam] - Re: Getting LazyInitializationErrors with a SMPC
by SmokingAPipe
"norman.richards(a)jboss.com" wrote : I assume the reason you were failing is that your PC was not in long-running conversation.
Right, that is the problem. I load the customer into the session-scope, and that works. Now I want to display some collections that are referenced by the customer object on some other pages. That won't work because there's no conversation and thus no conversation-scoped SMPC.
anonymous wrote : It's obviously not a bright idea to store a conversation-scoped entity in the session, but it would work.
Ok, then how do I handle this? I've got a Customer in the session, and now I need to start a conversation with the same customer entity in it.
I could have a conversation-scoped bean with some other field, like conversationCustomer. I could then do:
conversationCustomer = entityManager.merge(customer);
but that seems wrong because I'm not really doing a merge.
What do you think of this? Surely this is a fairly common situation, where there is a user object that's in a session, and then we need to have that user attached to a PC so we can display collections from that user? There must be some standard approach to this?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996378#3996378
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996378
19 years, 4 months