[JBoss Seam] - Re: taghandler passing of action parameters ?
by dreuzel
I've an odd problem using seam and facelets
a) what I want to do :
i've a generic tag with the ability to handle multiple facelet functionalities hidden away
in the end it comes down to <ui:composition
| <my:xxx action="Submit" entity="${mymodule}"
|
I get different results depending on how executed and called
A)
| <my:xxx action="Submit" entity="${aanscan}"
|
| used as ${entity[Submit]} fails (1)
| ${aanscan[Submit]} fails (2)
| ${aanscan.Submit} works (3)
|
as I call the function Through a taghandler
| ${aanscan.Submit} fails (4)
| ${aanscan.Submit()} works (5)
|
I consider the above behaviour very odd, since all is done in the same
session using the same code.
I suspect, using the seam extra argument handling the el expression
entity[submit] is not valid any more .
I never tried ${entity[submit('sdfdsfds')]} or should i use
| ${entity[submit]('dsfds')}
|
I suspect the problem is derived from the exact definition type
of the term entity
Is/should that be a variableExpression/Methodexpression
or a variable (if there is a difference) (DO I need a special definition
handling the arguments ?)
can anyone help, clarifying the original difference in the different expressions that should all be normaly compatible.
thanks in advance
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4120379#4120379
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4120379
18 years, 5 months
[JBoss jBPM] - Re: task in start state
by debnathm
Hi
Here is the JUnit test case. Please check if the APIs have
been used correctly
Thanks,
Debnath
package org.jbpm.tutorial.startstatetask;
|
| import org.jbpm.graph.def.ProcessDefinition;
| import org.jbpm.graph.exe.ProcessInstance;
| import org.jbpm.graph.exe.Token;
| import org.jbpm.taskmgmt.exe.TaskMgmtInstance;
|
| import junit.framework.TestCase;
|
| public class StartStateTask extends TestCase {
| public void testStartStateTask() {
|
| ProcessDefinition processDefinition = ProcessDefinition.parseXmlString(
| "<process-definition> " +
| " <start-state name='start'>" +
| " <task name='StartStateTask'> " +
| " <controller> " +
| " <variable access='read,write,required' name='variable1' mapped-name='Var1'></variable> " +
| " </controller> " +
| " </task> " +
| " <transition to='task-node1' name='to_task_node1'></transition>" +
| " </start-state> " +
| " <task-node name='task-node1'> " +
| " <task name='SecondTask'>" +
| " <controller> " +
| " <variable access='read,write,required' name='variable2' mapped-name='Var2'></variable>" +
| " </controller> " +
| " </task> " +
| "<transition to='end' name='to_end'></transition>" +
| "</task-node>" +
| "<end-state name='end'></end-state>" +
| "</process-definition>");
|
| ProcessInstance processInstance =
| new ProcessInstance(processDefinition);
|
| Token token = processInstance.getRootToken();
| TaskMgmtInstance taskmgmtInstance = processInstance.getTaskMgmtInstance();
| assertEquals(true, taskmgmtInstance.hasUnfinishedTasks(token));
| }
}
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4120378#4120378
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4120378
18 years, 5 months
[JBoss Seam] - Re: Manager.switchConversation via Ajax4JSF actionListener d
by objectbay
What I forgot to mention is how conversations are started in the first place. I have an "Actions" dropdown box in the view, which triggers an actionMenuSelectionChanged handler:
<h:selectOneMenu value="#{navigation.actionMenuSelection}"
| class="navlist" >
| <f:selectItems value="#{navigation.actionMenu}" />
| <a:support event="onchange"
| actionListener="#{navigation.actionMenuSelectionChanged}"
| ajaxSingle="true"
| reRender="navlists" />
| </h:selectOneMenu>
The actionMenuSelectionChanged method looks like this:
public void actionMenuSelectionChanged() {
| if (ActionMenuItems.NEW_CONVERSATION.toString().equals(actionMenuSelection)) {
| Conversation.instance().leave();
| Manager.instance().beginConversation("navigator");
| Manager.instance().redirect(Views.COMPUTATION.toString());
| }
| }
In the meantime, I found a deterministic way to reproduce the problem:
| * Start a new conversation (through the NEW_CONVERSATION entry in the action list)
| * Start another conversation in the same way
| * Hit F5 (generate a GET request)
| * Try to switch from the current (second) conversation to the first one
| * -> ce.lock() in Manager.switchConversation times out
|
I have stepped through Seam's JSF phase handling and conversation management, but didn't fully understand what happens.
However, after adding the cid and clr parameters to the AJAX request the problem seems to be gone:
<a:support event="onchange"
| onsubmit="showLoading('NavForm:conversations')"
| oncomplete="hideLoading();"
| actionListener="#{switcher.select}">
| <a:actionparam name="cid" value="#{conversation.id}" />
| <a:actionparam name="clr" value="true" />
| </a:support>
Can anyone confirm that this is a plausible solution?
Karl
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4120375#4120375
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4120375
18 years, 5 months
[Installation, Configuration & DEPLOYMENT] - DataSourceBinding not yet installed
by benjiii
Hello all!
I tried to use a datasource (SQL Server 2000) for my JBoss - and the result is this error:
ObjectName: jboss.jca:service=DataSourceBinding,name=TEST
State: NOTYETINSTALLED
Depends On Me:
jboss.mq:service=PersistenceManager
Don't know, what's the problem. I put the msql-jdk2-service.xml in the correct directory (deploy/jms), the 3 driver libs in the lib (for MSSQL 2000 there are 3 libs necessary, not a single one) dir and I wrote the file for the database connections into the deploy dir (the original hsqldb-ds.xml also is in the dir or even more errors occure):
<xa-datasource>
<jndi-name>MSSQL2000XADS</jndi-name>
<track-connection-by-tx/>
<isSameRM-override-value>false</isSameRM-override-value>
<xa-datasource-class>com.microsoft.jdbcx.sqlserver.SQLServerDataSource</xa-datasource-class>
<xa-datasource-property name="ServerName">12.0.0.12</xa-datasource-property>
<xa-datasource-property name="DatabaseName">TEST</xa-datasource-property>
<xa-datasource-property name="SelectMethod">cursor</xa-datasource-property>
<xa-datasource-property name="User">TEST</xa-datasource-property>
<xa-datasource-property name="Password">test</xa-datasource-property>
<!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->
<type-mapping>MS SQLSERVER2000</type-mapping>
</xa-datasource>
What's the problem here? Is it the server name? I wasn't sure what to insert there, so I took the IP adress from the computer where the database is installed. Perhaps this is the problem?
Please help - it's urgent and I've no idea...
Thanks
Benji
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4120371#4120371
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4120371
18 years, 5 months
[JBossWS] - Re: WSSE UsernameToken without HTTP basic auth?
by mikaeljl
Hi!
Thank you for the answer.
I have more questions though:
You are saying that:
"The Username token sent in the SOAP Message is the one used by the endpoint server/stack to authenticate the user who is performing this request."
Good, this is what I want, I want the user to be authenticated based on the UsernameToken.
However,I do not want to secure the servlet as such on http level. I do not want to use http basic authentication in addition to the UsernameToken.
As you can see in my previous posts I've been trying to set this up without successes. As soon as I remove the HTTP basic auth authentication I can no lnger retrieve the principal information using the standard API. I can see that the WSEE data is parsed because I can get the principal info using: org.jboss.security.SecurityAssociation.getPrincipal() but no authentication seems to take place.
Do you have any examples of UsernameToken without http basic auth where the user is athenticated based on the UsernameToken data? The example under /src/test/java/org/jboss/test/ws/jaxws/samples/wssecurity will be using http basic auth since it is default. Will this example work if http basic auth is removed ???
There implementation of the server is simply doing
Principal principal = wsCtx.getUserPrincipal();
| log.info("getUsernameToken: " + principal);
| return principal.toString();
| But will this really work if http basic auth is not enabled?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4120370#4120370
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4120370
18 years, 5 months
[JBoss jBPM] - JBPM 3.2.2 doesn't work
by MattOwens
Was the JBPM 3.2 release some kind of practical joke that i and the rest of the world wasn't in on? Nothing works, absolutely nothing. The CVS tests don't work properly either as they leave the database in a state it wasn't previously in - a basic unit test no no. Signalling doesn't work at all. I've tried implementing saveAndReload() but that doesn't work.
Instead all I get is errors such as "Session closed!" or "closed JbpmContext in different order then they were created... check your try-finally's around JbpmContexts blocks". Why do i need to reload a process instance? There is no documentation about anything.
Does anyone use JBPM for commerical purposes because thats what im trying to do with it and it just doesn't work.
Sorry if this seems angy but after 6 weeks of trying to get things working and coming up with nothing, i am angry.
Can anyone submit some useful code that works in jbpm 3.2.2? Im trying to wrap the JBPM objects into more business orientated objects with clearer methods but i am getting continual context errors. its infuriating.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4120366#4120366
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4120366
18 years, 5 months