[JBoss Seam] - Re: conversation switcher and pageflow
by venkateshbr
Hi gavin,
I was able to reproduce this with the dvd store example.
i added new facelet conversations.xhtml
| <ui:composition xmlns="http://www.w3.org/1999/xhtml"
| xmlns:s="http://jboss.com/products/seam/taglib"
| xmlns:ui="http://java.sun.com/jsf/facelets"
| xmlns:f="http://java.sun.com/jsf/core"
| xmlns:h="http://java.sun.com/jsf/html"
| template="/WEB-INF/template.xhtml">
| <ui:define name="topnav">
| <ui:include src="/WEB-INF/incl/store_nav.xhtml">
| <ui:param name="page" value="cart" />
| </ui:include>
| </ui:define>
|
| <ui:define name="sidebar">
| <ui:include src="/WEB-INF/incl/login.xhtml" />
| </ui:define>
| <ui:define name="body">
| <f:view>
| <h:form>
|
| <table border="0" cellspacing="4" cellpadding="2" width="100%"
| align="center">
| <tr>
| <td align="center" class="pageHeading"><h:outputText
| value="Workspaces" /></td>
| </tr>
| </table>
|
| <table border="0" cellspacing="2" cellpadding="4" width="100%"
| align="center">
| <tr>
| <td align="center"><h:outputLabel styleClass="message"
| value="There are no workspaces"
| rendered="#{empty conversationList}" /> <h:dataTable
| value="#{conversationList}" var="entry" width="70%"
| styleClass="dvdtable" headerClass="dvdtablehead"
| rowClasses="dvdtableodd,dvdtableeven"
| rendered="#{not empty conversationList}">
| <h:column>
| <f:facet name="header">Workspace</f:facet>
| <h:commandLink action="#{entry.select}"
| value="#{entry.description}" />
| <h:outputText value="[current]" rendered="#{entry.current}" />
| </h:column>
| <h:column>
| <f:facet name="header">Activity</f:facet>
| <h:outputText value="#{entry.startDatetime}">
| <f:convertDateTime type="time" pattern="hh:mm a" />
| </h:outputText>
| <h:outputText value=" - " />
| <h:outputText value="#{entry.lastDatetime}">
| <f:convertDateTime type="time" pattern="hh:mm a" />
| </h:outputText>
| </h:column>
| <h:column>
| <f:facet name="header">Action</f:facet>
| <h:commandButton action="#{entry.select}" value="switch" />
|
| <h:commandButton action="#{entry.destroy}" value="destroy" />
| </h:column>
| </h:dataTable></td>
| </tr>
| </table>
| </h:form>
| </f:view>
|
| </ui:define>
| </ui:composition>
|
I added a outputlink to the login.xhtml so that i can switch to the conversations from the link.
| <h:outputLink
| value="/seam-dvd/conversations.seam"> Workspaces
| </h:outputLink>
|
Modified the newuser pageflow to add description to all the pages. I guess with the new seam build descriptions are mandatory to be in the conversationList.
| <page name="contact" view-id="/newuser/contact.xhtml"
| no-conversation-view-id="/newuser/account.xhtml">
| <description>Contact Details</description>
| <redirect/>
| <transition name="prev" to="account"/>
| <transition name="next" to="card"/>
| </page>
|
| <page name="card" view-id="/newuser/card.xhtml"
| no-conversation-view-id="/newuser/account.xhtml">
| <description>Card Details</description>
| <redirect/>
| <redirect/>
| <transition name="prev" to="contact"/>
| <transition name="next" to="complete">
| <action expression="#{editCustomer.saveUser}"/>
| </transition>
| </page>
|
Deployed the example.
I go to the home page of dvdstore example
Click on Create Account.
Enter the username and password and click continue. now the pageflow would have started and will be at contact details page.
Without going further I Click on the home link.
I look at the conversations page by clicking on the workspaces link i added to the login.xhtml to check the workspaces.
I can see that there is a workspace listed with the name Contact Details.
I switch to this workspace. It takes me back to the contact details page.
I enter valid data and when i say continue it doesn't move beyond this page. This is the exact same problem we are facing with our application.
Is this test case sufficient. Can i report this in JIRA.
regards,
Venkatesh
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031473#4031473
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031473
19Â years
[Messaging, JMS & JBossMQ] - Re: import org.jboss.mq.server.jmx.Queue
by milind.uc
Dear Victor,
Feel glade to see the way you reply and sorry as I am replying so late because sat. and sun. was holiday here...
Well as ur able to send message to queue and not able to recive.So there are 2 to 3 possiblity...
1)Might be u r usinng diffrent Queue(Queue Name) while creating the receiver .I mean you need to used the same queue name at receiver end which you used at while creating the queue sender.
2) At the time of creating the Receiver you migth forget to do connection.start() (I mean you need to invoke the start method on the QueueConnection object above I writeen connection.start() in this connection is object of Queueconnection class)
3)It might happen that while creating object of initialcontext.. you need to set the property like:---------------
Hashtable env = new Hashtable();
|
| env.put (Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
| env.put(Context.PROVIDER_URL, "jnp://localhost:1099");
| env.put(Context.URL_PKG_PREFIXES, "jboss.naming:org.jnp.interfaces");
|
| ctx = new InitialContext(env);
Inseted of localhost might be ur using the difffrent ipadress in reciver side which u have used for the sender side(Provided that you are creating the sender and receiver in diffrent java files).So used the same IpAdress in sender and receiver side...
4)Might be you are reciving the message twice in ur code specially at the time of synchronus reciving and might at first time of receving ur not fetching and checking the contenet of message which might be ur doing at the second time so just make look on ur code so try adopt the model of asynchronus......
5)And being it is the queue here first user(Queue receiver) available on it (Queue) will able to fetch the message so the next QueueReciver coming after the first QueueReceiver not get any messages from the queue because first QueueReceiver might be consuming the messages.....
Well this what I am felling..hope it will work for u....
Well I just came in the office still I havent used the code you send to me but well I dont know lot of thing in JMS,JMX and all thses stuffs I want to do all thse things I never know( I meas I never have the idea to read the mbeans like it ) the code u written for me so could u tell mesome books or links because I want to explore it lot.. And yes ,, after trying your code example I might will get some query so please help me that time....
Thanks :)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031466#4031466
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031466
19Â years