[JBoss Tools (users)] - Re: WIP: XForms editor based on VPE
by kukeltje
What I used them for in the past was designing forms that have a fairly complex structure. Car damage reports, the related insurance claim, the damage assesment etc...
But from 'normal life' it can best be compared to tax forms where you have things like:
- conditionally relevant (visible) items: e.g. did you donate more than x amount to charity, if so fill out to
- conditionally required items: if you have more than 3 children, fill this in, otherwise it is optional
- repeating items (e.g. 0 or more times) (like the number of children)
- spread things over tabs
- show on a tab if there are input fields on that specific tab that need attention (e.g. are invalid, or not filled in yet when required)
etc...
you can all do this declaratively and it results, which is the nice thing, in a xml document that conforms to the xsd on which the form is based
This technology is also used in healthcare (https://xmlprocess.projects.openhealthtools.org/) , document management systems (Alfresco) and jBPM is also considering using it
For screenshots it is rather difficult to show something since the XForms engine (at least Chiba (which would be a nice addition to the JBoss portfolio)) renders everything as html for you
The chiba examples/demo is currently offline, but the orbeon ones are there (but their server is not that responsive)
Controls example: http://www.orbeon.com/ops/xforms-controls/
More Complex form: http://www.orbeon.com/ops/forms/ (select on and choos edit above or start a new one)
What the plugin will do is support editing/creating these kinds of forms in a way you desing e.g. pages with richfaces components nothing more nothing less, but very important and missing at the moment
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4213018#4213018
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4213018
17 years, 1 month
[JBoss jBPM] - Re: JbpmContext usage & best practices
by apdo
We are using jbpm with EJB3. we use jbpm beind SLSB
Here is a solution that we have implemented.
We have implemented an Interceptor (using jboss AOP) that identify when it exit from the latest layer of a SLSB (exit from the business layer). When the aspect identify that the execution path is going to exit from the business layer it close the ejbcontext.
In the Interceptor, we identify when we exit from the first called SLSB (exit from the business layer) by using a counter in the Interceptor. the counter is incremented when entering in the aspect and in the finaly block, if the counter is 0 the jbpmcontext is closed if it has been opened during the transaction.
It will have been easier to register a listener to the jboss transaction but I didn`t find anyway to do it. Is there a way to doing it?
An Phong Do
www.solabs.com
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4213004#4213004
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4213004
17 years, 1 month
[Remoting] - Problem of remoting in ajax with jseam
by zzuli
Hi everybody:
I'm studying ajax in JSeam using remoting and got stuck with the helloworld demo.
The java code:
@Local
public interface Hello {
@WebRemote
public String sayHello(String name);
}
@Stateful
@Scope(SESSION)
@Name("helloAction")
public class HelloAction implements Hello{
public String sayHello(String name) {
System.out.println("get name:"+name);
return "Hello, " + name;
}
@Remove
public void destroy() {
}
}
The .xhtml:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:s="http://jboss.com/products/seam/taglib">
<!-- tried,no use
<s:remote include="helloAction"></s:remote>
-->
function sayHello() {
var name='zwz';
Seam.Component.newInstance("helloAction").sayHello(name, sayHelloCallback);
}
function sayHelloCallback(result) {
alert(result);
}
Say Hello
The part of web.xml about jseam:
<listener-class>
org.jboss.seam.servlet.SeamListener
</listener-class>
<servlet-name>Seam Resource Servlet</servlet-name>
<servlet-class>
org.jboss.seam.servlet.ResourceServlet
</servlet-class>
<servlet-mapping>
<servlet-name>Seam Resource Servlet</servlet-name>
<url-pattern>/seam/resource/*</url-pattern>
</servlet-mapping>
<filter-name>Seam Filter</filter-name>
<filter-class>org.jboss.seam.web.SeamFilter</filter-class>
<filter-mapping>
<filter-name>Seam Filter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<servlet-name>Seam Remoting</servlet-name>
<servlet-class>
org.jboss.seam.remoting.SeamRemotingServlet
</servlet-class>
<servlet-mapping>
<servlet-name>Seam Remoting</servlet-name>
<url-pattern>/seam/remoting/*</url-pattern>
</servlet-mapping>
The faces-config.xml :
<view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
The components.xml :
<core:init jndi-pattern="JSeamDemo_Remote/#{ejbName}/local"
debug="true" />
<core:manager conversation-timeout="120000" />
true
true
The .xhtml page have javascript error, said "Seam.Component." method doesn't exist.
I use JBoss AS 5, JSeam2.1.1,IE7.
And I'm still confused about the code in .xhtml:
where is the js file, which host is it on?
Can anyone help me ?
Thanks a lot.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4213002#4213002
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4213002
17 years, 1 month