[JBoss Seam] - Need Form to Work Without
by neilac333
The good news is this one should be easy.
I have finally developed the first page of my Seam-JPA/Hibernate application, a search page. This page contains a typical form where the user fills out the search parameters and presses Submit. The results are then presented in a table just below the form on the same page.
The problem is that when I navigate to the page URL the first time and fill out the form and press submit, I wait a bit and nothing happens...except the form is cleared and a "jsessionid" with all the funky hexadecimal is appended to the URL. If I repeat the process, only then does the form do what I want it to do. The really funny thing is that this doesn't happen every time--just most of the time.
As you might have guessed, I would like for this form to work on the initial submit.
Here is the relevant excerpt in pages.xml:
| <page view-id="/mySearch.jspx">
| <navigation from-action="#{mySearchAction.doAdvancedSearch}">
| <redirect view-id="/mySearch.jspx"/>
| </navigation>
| </page>
|
Please let me know if you require more information. I appreciate any insight you may have.
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125729#4125729
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125729
18 years, 2 months
[JBoss Messaging] - JBoss 5.0.0 Beta3 Messaging Client
by cfergus
I would like to make a JavaSE client send messages to an out-of-the-box instance of JBoss 5.0.0 Beta3. All of my attempts have been thwarted by classpath problems.
Ideally, I'd like to get a maven pom.xml file to include everything I need, but I'd be happy with links to the required jar files. (Note: I've already seen [url=http://labs.jboss.com/file-access/default/members/jbossmessaging/free...]
the messaging client setup page [/url] , but it lacks the version information I need)
For reference, here's my pom.xml right now:
| <dependency>
| <artifactId>jboss-remoting</artifactId>
| <groupId>jboss.remoting</groupId>
| <version>2.2.2.SP4</version>
| <scope>system</scope>
| <systemPath>C:/Development/jboss-remoting.jar</systemPath>
| </dependency>
|
| <!-- Taken from the jboss-messaging-1.4.1Beta1 download -->
| <dependency>
| <artifactId>jboss-messaging-client</artifactId>
| <groupId>jboss.messaging</groupId>
| <version>1.4.1.Beta1</version>
| <scope>system</scope>
| <systemPath>C:/Development/jboss-messaging-client.jar</systemPath>
| </dependency>
|
| <!-- Taken from jboss 5.0.0beta3 installation -->
| <dependency>
| <artifactId>jbossall-client</artifactId>
| <groupId>jboss</groupId>
| <version>3.2.3</version>
| <scope>system</scope>
| <systemPath>C:/Development/jbossall-client.jar</systemPath>
| </dependency>
|
| <dependency>
| <artifactId>jboss-aop</artifactId>
| <groupId>org.jboss.aop</groupId>
| <version>2.0.0.CR3</version>
| <scope>runtime</scope>
| </dependency>
|
Also note that transitive dependencies bring in trove-2.1.1.jar, javassist-3.6.0.GA.jar, and others.
The error I'm getting is:
Unable to setup messaging environment
org.jboss.jms.exception.MessagingJMSException: Failed to invoke
at org.jboss.jms.client.delegate.DelegateSupport.handleThrowable(DelegateSupport.java:271)
at ...
Caused by: java.lang.IllegalArgumentException: Invalid remoting configuration - do not specify clientMaxPoolSize use JBM_clientMaxPoolSize instead
...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125716#4125716
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125716
18 years, 2 months
[JBoss Seam] - Events..
by tony.herstell@gmail.com
I have an Entity and am trying to get it to throw an event when the number of riders changes (this is mapped to the View naturally)...
I have tried with just two annotation (thrower and catcher) to no avail... now I have added EVERYTHING in and it still does not work; what am I missing?
Entity...
| @SuppressWarnings("serial")
| @Entity // Defines this as an Entity that is a class mapped to the Datastore.
| @Name("bookingResourceArena") // Name used within SEAM for an instance of this class.
| @DiscriminatorValue("WithArena")
| public class BookingResourceWithRiders extends BookingResourceWithHoursRange implements Serializable {
|
| ...
|
| @RaiseEvent("RiderNumbersChanged")
| public void setRiders(int number) {
| this.riders = number;
| Events.instance().raiseEvent("RiderNumbersChanged");
| }
|
Controller...
| @SuppressWarnings("serial")
| @Stateful
| // A new component is created or re-initialised and re-used each time it is
| // called.
| @Name("bookingController")
| // Name used within SEAM for an instance of this class.
| @Conversational
| // Scope that this class exists in.
| public class BookingControllerImpl implements BookingController, Serializable {
|
| ...
|
| @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)
| @Observer("RiderNumbersChanged")
| public void changeRiderNumbers() {
| log.info(">changeRiderNumbers");
| log.info("<changeRiderNumbers");
| }
|
components.xml
| <event type="RiderNumbersChanged">
| <action expression="#{bookingController.changeRiderNumbers}" />
| </event>
|
Chunk off screen
| <!-- Number of Riders (Arenas) -->
| <rich:column colspan="3" breakBefore="true"
| rendered="#{(bookingController.reason == 'ONE_HOUR_PRIVATE' || bookingController.reason == 'ONE_HOUR_OPEN')
| and (eachResource.resource.kind == 'INDOOR_ARENA' || eachResource.resource.kind == 'DRESSAGE_ARENA' || eachResource.resource.kind == 'SJ_ARENA')}">
| <h:outputText value="#{messages.booking_number_of_riders}" />
| <rich:inputNumberSpinner id="riderNumbers" immediate="true" enableManualInput="false"
| minValue="1" maxValue="6" step="1" value="#{eachResource.riders}">
| <a4j:support event="onchange" eventsQueue="eventsQueue" requestDelay="2000" />
| </rich:inputNumberSpinner>
| </rich:column>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125714#4125714
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125714
18 years, 2 months
[JBoss Seam] - Re: Remoting - Callback method not being called
by shane.bryzak@jboss.com
You can exclude properties of the result by specifying an "exclude" string on your @WebRemote method. For example, if you didn't want to return the Applicationversion you'd write:
@WebRemote(exclude = "applicationversion")
| public List<Playbackevent> displayEvents() {
|
I'm a little bit concerned about seeing a Javassist proxy object in the returned results, it seems that this is a bug. I don't know if it's the reason why your callback method isn't being invoked, however I'll try to fix this over the weekend anyway. One thing you could try is to debug the client-side Seam remoting code. If you use Firefox, I recommend you download the Firebug extension as it makes debugging a piece of cake and you can just step through the remoting code to see what's actually happening with your response.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125712#4125712
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125712
18 years, 2 months