[JBoss Seam] - Re: [2.0beta1]s:button + pages.xml behaviour change
by ellenzhao
Here is the third experiment.
In home.xhtml:
| <rich:panel>
| <p>You can:</p>
| <ul>
| <li><s:link action="#{userManager.startRegistration}" value="Register as a new user" /></li>
| <li><s:link action="#{recipeManager.startNewRecipe}" value="Create Recipe"/></li>
| </ul>
| </rich:panel>
|
In the pages.xml:
| <page view-id="/home.xhtml">
| <navigation from-action="#{userManager.startRegistration}">
| <redirect view-id="/register.xhtml" />
| </navigation>
| </page>
|
| <page view-id="/home.xhtml">
| <navigation from-action="#{recipeManager.startNewRecipe}">
| <rule if="#{recipeManager.recipe != null}">
| <redirect view-id="/new-recipe.xhtml" />
| </rule>
| </navigation>
| </page>
|
The first link does _not_ redirect but the second link redirects! In order to make the first link actually takes me to the registration page, I would have to say:
| <s:link action="#{userManager.startRegistration}" value="Register as a new user" view="/register.xhtml"/>
|
in the home.xhtml.
Strange thing....
My development environment is: Seam 2.0 beta 1 the latest build from CVS, Java 1.6. Debian Lenny amd64 kennel or Windows XP 32bits.
Thanks in advance for any enlightenment!
Best Regards,
Ellen
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061052#4061052
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061052
18Â years, 9Â months
[JBoss Seam] - question on injection with multiple forms
by X490812
I am getting the following error and would like to know why:
Caused by: org.jboss.seam.RequiredException: In attribute requires non-null value: indexPage.property
at org.jboss.seam.Component.getValueToInject(Component.java:1919)
at org.jboss.seam.Component.injectAttributes(Component.java:1368)
at org.jboss.seam.Component.inject(Component.java:1195)
at org.jboss.seam.interceptors.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)
I have an xhtml page with 3 forms and 1 session bean that gets injected with entity beans for each form. When I submit the the borrower form, I get the above exception.
I have the following statless session bean
| @Stateless
| @Name("indexPage")
| public class IndexPageBean implements IndexPage {
|
| @Logger
| private Log log;
|
| @In
| FacesMessages facesMessages;
|
| @In(create=true)
| private Property property;
|
| @In(create=true)
| private Borrower borrower;
|
| @In(create=true)
| private LoanApplication loanApplication;
| .
| .
| .
|
and the folowing facelet code
| <div id="Borrower">
| <h2>Borrower</h2>
| <form name="BorrowerForm" id="BorrowerForm" jsfc="h:form">
| <div id="ageDiv">
| <label>AGE:
| <input type="text" name="textfield" jsfc="h:inputText" value="#{Borrower.age}"/>
| </label>
| </div>
| <div id="grossIncomeDiv">
| <label>GROSS:
| <input type="text" name="textfield" jsfc="h:inputText" value="#{Borrower.grossIncome}"/>
| </label>
| </div>
| <div id="submitBorrower">
| <input type="submit" jsfc="h:commandButton" id="submitBorrowerButton" action="#{indexPage.submitBorrower}" value="Submit" />
| </div>
| </form>
| </div>
|
| <div id="Property">
| <h2>Property</h2>
| <form name="PropertyForm" id="PropertyForm" jsfc="h:form">
| <div id="typeDiv">
| <label>TYPE:
| <input type="text" name="textfield" jsfc="h:inputText" value="#{Property.type}"/>
| </label>
| </div>
| <div id="purposeDiv">
| <label>PURPOSE:
| <input type="text" name="textfield" jsfc="h:inputText" value="#{Property.purpose}"/>
| </label>
| </div>
| <div id="zipDiv">
| <label>ZIP:
| <input type="text" name="textfield" jsfc="h:inputText" value="#{Property.zipCode}"/>
| </label>
| </div>
| <div id="yearDiv">
| <label>YEAR:
| <input type="text" name="textfield" jsfc="h:inputText" value="#{Property.yearBuilt}"/>
| </label>
| </div>
| <div id="submitProperty">
| <input type="submit" jsfc="h:commandButton" id="submitPropertyButton" action="#{indexPage.submitProperty}" value="Submit" />
| </div>
| </form>
| </div>
|
| <div id="LoanApp">
| <h2>Loan Application</h2>
| <form name="LoanAppForm" id="LoanAppForm" jsfc="h:form">
| <div id="loanAmountDiv">
| <label>LoanAmount:
| <input type="text" name="textfield" jsfc="h:inputText" value="#{LoanApplication.loanAmount}"/>
| </label>
| </div>
| <div id="submitProperty">
| <input type="submit" jsfc="h:commandButton" id="submitPropertyButton" action="#{indexPage.submitLoanApplication}" value="Submit" />
| </div>
| </form>
| </div>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061051#4061051
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061051
18Â years, 9Â months
[JBoss Seam] - Re: [2.0beta1]s:button + pages.xml behaviour change
by ellenzhao
Here is the first experiment I did today.
in the new-recipe.xhtml:
| ...
| <s:link value="Add an ingredient" action="#{ingredientManager.startAddAnIngredient(recipeManager.recipe)}" />
| ...
| <s:button value="Cancel Creating New Recipe" action="#{recipeManager.cancelNewRecipe}" />
| ...
|
in the pages.xhtml, at first it was like below. It prevented the "Cancel Creating New Recipe" button redirecting to /home.xhtml:
| <page view-id="/new-recipe.xhtml">
| <navigation from-action="#{ingredientManager.startAddAnIngredient(recipeManager.recipe)}">
| <redirect view-id="/new-recipe.xhtml" />
| </navigation>
| </page>
|
| <page view-id="/new-recipe.xhtml">
|
| <navigation from-action="#{recipeManager.cancelNewRecipe}">
|
| <redirect view-id="/home.xhtml" />
|
| </navigation>
|
| </page>
|
|
|
|
|
When I modified the code in page.xhtml like below (disabled the first block), the "Cancel..." button worked! And, the "Add an ingredient" link worked correctly too, even if I commented the first block out.
| <!--
| <page view-id="/new-recipe.xhtml">
| <navigation from-action="#{ingredientManager.startAddAnIngredient(recipeManager.recipe)}">
| <redirect view-id="/new-recipe.xhtml" />
| </navigation>
| </page>
| -->
|
| <page view-id="/new-recipe.xhtml">
| <navigation from-action="#{recipeManager.cancelNewRecipe}">
| <redirect view-id="/home.xhtml" />
| </navigation>
| </page>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061048#4061048
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061048
18Â years, 9Â months
[Clustering/JBoss] - Cluster JBoss 4.0.5 - IP_MULTICAST_IF error on startup
by fshtank
* JBoss 4.0.5 (JEMS 1.2 installer EJB3 cluster option)
* Fedora Core 6 (Linux)
* Java 1.6.1_01 (also tried 1.5.1_01) JDK
* Starting JBoss as a Linux service with a jboss link under 'etc/rc.d/init.d'
starting parameters :: run.sh -c default -b 0.0.0.0 -g DefaultPartition -Djava.net.preferIPv4Stack=true
- - - - - - - - - - - - - - - - - - - - - - - - -
Hello everyone:
- I am trying to cluster JBoss across two Linux boxes.
- I Have installed the JEMS installer of JBoss 4.0.5 with EJB3 clustered option selected. (cluster-service.xml is present under "server/default/deploy" directory.
- I will only try to start configuring the 2nd server 'after' I get this server up and running:
I keep getting the following error:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
08:49:04,042 ERROR [JChannel] exception: java.lang.Exception: exception caused by UDP.start(): java.net.SocketException: bad argument for IP_MULTICAST_IF: address not bound to any interface
08:49:04,045 WARN [ServiceController] Problem starting service jboss.cache:service=TomcatClusteringCache
ChannelException: java.lang.Exception: exception caused by UDP.start(): java.net.SocketException: bad argument for IP_MULTICAST_IF: address not bound to any interface
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> I've read articles about trying to disable IP_MULTICAST_IF to prevent application chatter over network
> Someone in my shop suggested 'IP Multicast' is a network-policy level blocking
I need some help to get past this error.
I can include my full "cluster-config.xml" or any other file in a following comment (to keep this posting clean.)
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061044#4061044
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061044
18Â years, 9Â months