[JBoss Seam] - Create component from pageflow
by dgallego
I can't create a component within a seam pageflow:
The following code works if the 'contactAction' seam component has already been created, for example when viewing a facelet using it.
| <start-page name="contactPage" view-id="/pages/contacto/index.seam">
| <redirect/>
| <transition name="sendMessage" to="evaluateMessageSent">
| <action expression="#{contactAction.sendMessage}"/>
| </transition>
| </start-page>
|
| <decision name="evaluateMessageSent" expression="#{contactAction.messageSent}">
| <transition name="true" to="messageSentPage"/>
| <transition name="false" to="messageFailPage" />
| </decision>
|
| <!-- Pages -->
| <page name="messageSentPage" view-id="/pages/contacto/messageSent.seam">
| <redirect/>
| <end-conversation/>
| </page>
| <page name="messageFailPage" view-id="/pages/contacto/messageFail.seam">
| <redirect />
| <end-conversation />
| </page>
|
Is it possible to invoke #{contactAction} from a pageflow when that component hasn't been created?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972827#3972827
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3972827
19 years, 7 months
[EJB 3.0] - Re: SLSB Local Interface Exception - EjB 3.0 with jboss-4.0.
by vashistvishal
Thanks for yr prompty reply:) that clarifies something.
When i say i'm accesing remote ejb interface and local ejb interface from a same cleint.
I mean i have the same (only one) JVM on my pc and i'm accesing this from my pc.
What i think is different is that my jboss is running inside Eclipse, which means it gets its own instnace of JVM. Where as my client runs from a command shell which means when it runs it uses or it gets a different instance of JVM. In that sense my shell based client becomes a remote (client) to jboss running in different jvm instance inside Eclipse.
Is this right understanding. And if thsi is correct than my local ejb interface client will not run talk until i run both JBoss and Client in same JVM instance. ....
Thanks for raising this and look forward to yr repsonse.
Vishal
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972824#3972824
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3972824
19 years, 7 months
[EJB 3.0] - Re: EJb 3.0 primary key loose ?
by stephan.opitz
and interface defined hier
import java.util.Date;
import de.Test.entity.Orders;
public interface OrdersFacade {
/**
* Makes a Orders object persistent
*
* @param order
* Orders object
*/
public void save(Orders order);
and statelessbean here
with mark of which interface is local and remote - both same :-/
but local isn't need is'nt it - filled i mean?
import javax.ejb.Local;
import javax.ejb.Remote;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
...
import de.Test.entity.Orders;
import de.Test.facade.OrdersFacade;
@Local(OrdersFacade.class)
@Remote(OrdersFacade.class)
@Stateless
public class OrdersBean implements OrdersFacade {
@PersistenceContext(unitName = "TestPU")
private EntityManager em;
// ------------------------------------------------------ Manifest Constants
public static final String Remote = OrdersBean.class.getSimpleName()
+ "/remote";
public static final String Local = OrdersBean.class.getSimpleName()
+ "/local";
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972817#3972817
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3972817
19 years, 7 months