[JBoss JIRA] (RF-13018) a4j:commandButton wrong actions performed
by Brian Leathem (JIRA)
[ https://issues.jboss.org/browse/RF-13018?page=com.atlassian.jira.plugin.s... ]
Brian Leathem commented on RF-13018:
------------------------------------
JSF is form based, so command actions must submit forms. When you set the type to button, the form should be submitted via javascript, but I expect there is an error in setting the source (button) of the submission when the type is button.
The default execute for a4j:commandButton is @form. Override this behavior with the _execute_ attribute.
> a4j:commandButton wrong actions performed
> -----------------------------------------
>
> Key: RF-13018
> URL: https://issues.jboss.org/browse/RF-13018
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-a4j-core
> Affects Versions: 4.2.3.Final, 4.3.2
> Environment: Server: Fedora 17, Jboss AS 7.1.1.Final, Jboss EAP 6.1.0.Beta, Java 1.7.0_15
> Browsers: Chrome 26 and Chrome 27 on (Linux & Windows 7), Firefox 20.0 (Linux & Windows 7), IE 9
> Reporter: Rob Hare
> Assignee: Brian Leathem
> Fix For: 5.0.0.Alpha2
>
> Attachments: RF-13018.zip
>
>
> When an a4j commponent (a4j:commandButton, a4j:jsFunction) is activated, actions of other a4j:commandButtons on the page with type=button will be fired.
> For example, pressing either button in the following code will cause both richBean.function1() and richBean.function2() actions.
> {noformat}
> <h:form id="testForm">
> <a4j:commandButton id="button1" type="button" value="Button 1"
> action="#{richBean.function1}" />
> <a4j:commandButton id="button2" type="button" value="Button 2"
> action="#{richBean.function2}" />
> </h:form>
> {noformat}
> Note, if one of the a4j:commandButton is marked immediate, then only one action (possibly the wrong action) will be performed and block others. For instance if an a4j:jsFunction action was being triggered, the a4j:commandButton action may occur making appear that the a4j:jsFunction failed.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 10 months
[JBoss JIRA] (RF-13018) a4j:commandButton wrong actions performed
by Rob Hare (JIRA)
[ https://issues.jboss.org/browse/RF-13018?page=com.atlassian.jira.plugin.s... ]
Rob Hare commented on RF-13018:
-------------------------------
I can confirm that using type="submit" or just not specifying (the default) works in this case.
On the workaround, are there ramifications for doing this? I haven't experimented enough to know, but doesn't the default action on pressing enter on a form go to the first "submit" button? I thought that the default execute for type=submit would be "@form" and for type=button would be "@this". Is this true?
> a4j:commandButton wrong actions performed
> -----------------------------------------
>
> Key: RF-13018
> URL: https://issues.jboss.org/browse/RF-13018
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-a4j-core
> Affects Versions: 4.2.3.Final, 4.3.2
> Environment: Server: Fedora 17, Jboss AS 7.1.1.Final, Jboss EAP 6.1.0.Beta, Java 1.7.0_15
> Browsers: Chrome 26 and Chrome 27 on (Linux & Windows 7), Firefox 20.0 (Linux & Windows 7), IE 9
> Reporter: Rob Hare
> Assignee: Brian Leathem
> Fix For: 5.0.0.Alpha2
>
> Attachments: RF-13018.zip
>
>
> When an a4j commponent (a4j:commandButton, a4j:jsFunction) is activated, actions of other a4j:commandButtons on the page with type=button will be fired.
> For example, pressing either button in the following code will cause both richBean.function1() and richBean.function2() actions.
> {noformat}
> <h:form id="testForm">
> <a4j:commandButton id="button1" type="button" value="Button 1"
> action="#{richBean.function1}" />
> <a4j:commandButton id="button2" type="button" value="Button 2"
> action="#{richBean.function2}" />
> </h:form>
> {noformat}
> Note, if one of the a4j:commandButton is marked immediate, then only one action (possibly the wrong action) will be performed and block others. For instance if an a4j:jsFunction action was being triggered, the a4j:commandButton action may occur making appear that the a4j:jsFunction failed.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 10 months
[JBoss JIRA] (RF-13028) Warning when deploying showcase - SelectLabelValueValidator class not present
by Brian Leathem (JIRA)
[ https://issues.jboss.org/browse/RF-13028?page=com.atlassian.jira.plugin.s... ]
Brian Leathem updated RF-13028:
-------------------------------
Sprint: 5.0.0.Alpha1
> Warning when deploying showcase - SelectLabelValueValidator class not present
> -----------------------------------------------------------------------------
>
> Key: RF-13028
> URL: https://issues.jboss.org/browse/RF-13028
> Project: RichFaces
> Issue Type: Enhancement
> Security Level: Public(Everyone can see)
> Components: regression, showcase
> Affects Versions: 5.0.0.Alpha1
> Environment: JBoss AS 7.1.1.Final
> Reporter: Juraj Húska
> Assignee: Lukáš Fryč
> Priority: Minor
> Fix For: 5.0.0.Alpha1
>
> Original Estimate: 15 minutes
> Remaining Estimate: 15 minutes
>
> There is following warning when deploying showcase:
> {code}
> 11:54:45,575 WARNING [org.richfaces.log.Config] (MSC service thread 1-4) Found JavaScript function definition for class org.richfaces.validator.SelectLabelValueValidator, but that class is not presented
> {code}
> The reason is changed package for {{SelectLabelValueValidator}}.
> The new one is: {{org.richfaces.ui.select.select}}
> The demos for {{select components}} seems to work correctly.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 10 months
[JBoss JIRA] (RF-13021) Simpleapp archetype does not work on Tomcat
by Brian Leathem (JIRA)
[ https://issues.jboss.org/browse/RF-13021?page=com.atlassian.jira.plugin.s... ]
Brian Leathem updated RF-13021:
-------------------------------
Sprint: 5.0.0.Alpha1
> Simpleapp archetype does not work on Tomcat
> -------------------------------------------
>
> Key: RF-13021
> URL: https://issues.jboss.org/browse/RF-13021
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: archetype
> Affects Versions: 5.0.0.Alpha1
> Reporter: Juraj Húska
> Assignee: Lukáš Fryč
> Priority: Blocker
> Fix For: 5.0.0.Alpha1
>
> Original Estimate: 1 hour
> Remaining Estimate: 1 hour
>
> The simple app archetype does not work on Tomcats. It works on JBoss AS.
> The only notable error is this one from server log:
> {code}
> INFO: validateJarFile(/home/jhuska/workspace_jbossToolsTesting/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/rf500Alpha1testingMvn/WEB-INF/lib/jsp-api-2.1.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/el/Expression.class
> May 27, 2013 5:37:13 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
> INFO: validateJarFile(/home/jhuska/workspace_jbossToolsTesting/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/rf500Alpha1testingMvn/WEB-INF/lib/servlet-api-2.5.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
> {code}
> The issue IMHO relates to RF-12998, which was already solved for showcase.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 10 months
[JBoss JIRA] (RF-13024) Kitchenksink archetype - can not built generated project - missing atmosphere version
by Brian Leathem (JIRA)
[ https://issues.jboss.org/browse/RF-13024?page=com.atlassian.jira.plugin.s... ]
Brian Leathem updated RF-13024:
-------------------------------
Original Estimate: 30 minutes
Remaining Estimate: 30 minutes
> Kitchenksink archetype - can not built generated project - missing atmosphere version
> -------------------------------------------------------------------------------------
>
> Key: RF-13024
> URL: https://issues.jboss.org/browse/RF-13024
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: archetype, build/distribution
> Affects Versions: 5.0.0.Alpha1
> Reporter: Juraj Húska
> Priority: Blocker
> Fix For: 5.0.0.Alpha1
>
> Original Estimate: 30 minutes
> Remaining Estimate: 30 minutes
>
> The project generated from _kitchensink_ archetype can not be built, because there is missing version for {{org.atmosphere:atmosphere-runtime:jar}}.
> The {{atmosphere}} was removed from {{bom}} and the {{push-depchain}} was introduced. It needs to be introduced in the kitchensink as well.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 10 months
[JBoss JIRA] (RF-13028) Warning when deploying showcase - SelectLabelValueValidator class not present
by Brian Leathem (JIRA)
[ https://issues.jboss.org/browse/RF-13028?page=com.atlassian.jira.plugin.s... ]
Brian Leathem updated RF-13028:
-------------------------------
Original Estimate: 15 minutes
Remaining Estimate: 15 minutes
> Warning when deploying showcase - SelectLabelValueValidator class not present
> -----------------------------------------------------------------------------
>
> Key: RF-13028
> URL: https://issues.jboss.org/browse/RF-13028
> Project: RichFaces
> Issue Type: Enhancement
> Security Level: Public(Everyone can see)
> Components: regression, showcase
> Affects Versions: 5.0.0.Alpha1
> Environment: JBoss AS 7.1.1.Final
> Reporter: Juraj Húska
> Assignee: Lukáš Fryč
> Priority: Minor
> Fix For: 5.0.0.Alpha1
>
> Original Estimate: 15 minutes
> Remaining Estimate: 15 minutes
>
> There is following warning when deploying showcase:
> {code}
> 11:54:45,575 WARNING [org.richfaces.log.Config] (MSC service thread 1-4) Found JavaScript function definition for class org.richfaces.validator.SelectLabelValueValidator, but that class is not presented
> {code}
> The reason is changed package for {{SelectLabelValueValidator}}.
> The new one is: {{org.richfaces.ui.select.select}}
> The demos for {{select components}} seems to work correctly.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 10 months