[JBoss JIRA] (JBSEAM-4960) seam-gen project classpath not updated
by Tomas Remes (JIRA)
Tomas Remes created JBSEAM-4960:
-----------------------------------
Summary: seam-gen project classpath not updated
Key: JBSEAM-4960
URL: https://issues.jboss.org/browse/JBSEAM-4960
Project: Seam 2
Issue Type: Bug
Components: Tools
Affects Versions: 2.3.0.BETA2
Reporter: Tomas Remes
Fix For: 2.3.0.CR1
Project generated by seam-gen does not have updated classpath entries thus there are following errors after importing project to JBDS/JBT:
{noformat}
Project 'myproject' is missing required library: 'bootstrap'
Project 'myproject' is missing required library: 'lib/core.jar'
Project 'myproject' is missing required library: 'lib/ejb-api.jar'
Project 'myproject' is missing required library: 'lib/hibernate-annotations.jar'
Project 'myproject' is missing required library: 'lib/hibernate-search.jar'
Project 'myproject' is missing required library: 'lib/janino.jar'
Project 'myproject' is missing required library: 'lib/jboss-embedded-api.jar'
Project 'myproject' is missing required library: 'lib/jsf-api.jar'
Project 'myproject' is missing required library: 'lib/jsf-facelets.jar'
Project 'myproject' is missing required library: 'lib/persistence-api.jar'
Project 'myproject' is missing required library: 'lib/richfaces-api.jar'
{noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 3 months
[JBoss JIRA] (JBSEAM-4991) Seam-gen view template - Editing in CRUD causes doesn't work
by Marek Novotny (JIRA)
Marek Novotny created JBSEAM-4991:
-------------------------------------
Summary: Seam-gen view template - Editing in CRUD causes doesn't work
Key: JBSEAM-4991
URL: https://issues.jboss.org/browse/JBSEAM-4991
Project: Seam 2
Issue Type: Bug
Components: Tools
Affects Versions: 2.3.0.BETA2
Environment: seam-gen generated WAR project
Reporter: Marek Novotny
Assignee: Marek Novotny
Priority: Critical
Fix For: 2.3.0.CR1
entityEdit.xhtml and Entity.xhtml templates are generated with <rich:tabPanel switchType="ajax"> which requires form for updating of tabPanel.
Currently it throws exception:
{noformat}
4:27:01,401 SEVERE [javax.enterprise.resource.webcontainer.jsf.application] (http-localhost/127.0.0.1:8080-2) Error Rendering View[/VehicleEdit.xhtml]: org.richfaces.renderkit.util.EnclosingFormRequiredException: class org.richfaces.component.UITabPanel (id="j_idt80") did not find parent form.
at org.richfaces.renderkit.util.FormUtil.throwEnclFormReqExceptionIfNeed(FormUtil.java:45) [richfaces-components-ui.jar:4.2.2.Final-redhat-1]
at org.richfaces.renderkit.html.TogglePanelRenderer.doEncodeBegin(TogglePanelRenderer.java:104) [richfaces-components-ui.jar:4.2.2.Final-redhat-1]
at org.richfaces.renderkit.html.TabPanelRenderer.doEncodeBegin(TabPanelRenderer.java:100) [richfaces-components-ui.jar:4.2.2.Final-redhat-1]
at org.richfaces.renderkit.RendererBase.encodeBegin(RendererBase.java:115) [richfaces-components-ui.jar:4.2.2.Final-redhat-1]
at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:820) [jboss-jsf-api_2.1_spec-2.0.2.Final-redhat-1.jar:2.0.2.Final-redhat-1]
at org.richfaces.component.AbstractTogglePanel.encodeBegin(AbstractTogglePanel.java:179) [richfaces-components-ui.jar:4.2.2.Final-redhat-1]
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1777) [jboss-jsf-api_2.1_spec-2.0.2.Final-redhat-1.jar:2.0.2.Final-redhat-1]
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1782) [jboss-jsf-api_2.1_spec-2.0.2.Final-redhat-1.jar:2.0.2.Final-redhat-1]
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1782) [jboss-jsf-api_2.1_spec-2.0.2.Final-redhat-1.jar:2.0.2.Final-redhat-1]
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1782) [jboss-jsf-api_2.1_spec-2.0.2.Final-redhat-1.jar:2.0.2.Final-redhat-1]
at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:402) [jsf-impl-2.1.7-redhat-1.jar:2.1.7-redhat-1]
at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:125) [jsf-impl-2.1.7-redhat-1.jar:2.1.7-redhat-1]
at org.jboss.seam.jsf.SeamViewHandler.renderView(SeamViewHandler.java:88) [jboss-seam.jar:2.3.0.Beta2-redhat-1]
at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:288) [jboss-jsf-api_2.1_spec-2.0.2.Final-redhat-1.jar:2.0.2.Final-redhat-1]
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121) [jsf-impl-2.1.7-redhat-1.jar:2.1.7-redhat-1]
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) [jsf-impl-2.1.7-redhat-1.jar:2.1.7-redhat-1]
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) [jsf-impl-2.1.7-redhat-1.jar:2.1.7-redhat-1]
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594) [jboss-jsf-api_2.1_spec-2.0.2.Final-redhat-1.jar:2.0.2.Final-redhat-1]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.16.Final-redhat-1.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.16.Final-redhat-1.jar:]
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83) [jboss-seam.jar:2.3.0.Beta2-redhat-1]
at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60) [jboss-seam.jar:2.3.0.Beta2-redhat-1]
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam.jar:2.3.0.Beta2-redhat-1]
at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40) [jboss-seam.jar:2.3.0.Beta2-redhat-1]
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam.jar:2.3.0.Beta2-redhat-1]
at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90) [jboss-seam.jar:2.3.0.Beta2-redhat-1]
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam.jar:2.3.0.Beta2-redhat-1]
at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64) [jboss-seam.jar:2.3.0.Beta2-redhat-1]
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam.jar:2.3.0.Beta2-redhat-1]
at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45) [jboss-seam.jar:2.3.0.Beta2-redhat-1]
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam.jar:2.3.0.Beta2-redhat-1]
at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53) [jboss-seam.jar:2.3.0.Beta2-redhat-1]
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam.jar:2.3.0.Beta2-redhat-1]
at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158) [jboss-seam.jar:2.3.0.Beta2-redhat-1]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.16.Final-redhat-1.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.16.Final-redhat-1.jar:]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.16.Final-redhat-1.jar:]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.16.Final-redhat-1.jar:]
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:397) [jbossweb-7.0.16.Final-redhat-1.jar:]
at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.1.2.Final-redhat-1.jar:7.1.2.Final-redhat-1]
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.2.Final-redhat-1.jar:7.1.2.Final-redhat-1]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.16.Final-redhat-1.jar:]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.16.Final-redhat-1.jar:]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.16.Final-redhat-1.jar:]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.16.Final-redhat-1.jar:]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.16.Final-redhat-1.jar:]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:679) [jbossweb-7.0.16.Final-redhat-1.jar:]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:931) [jbossweb-7.0.16.Final-redhat-1.jar:]
at java.lang.Thread.run(Thread.java:679) [rt.jar:1.6.0_24]
{noformat}
We need to change ajax switchType to client in those templates
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 3 months
[JBoss JIRA] (JBSEAM-5010) Documentation, conversations, 7.12.2. Dealing with errors, needs to be updated wrt. RF4
by Marek Schmidt (JIRA)
Marek Schmidt created JBSEAM-5010:
-------------------------------------
Summary: Documentation, conversations, 7.12.2. Dealing with errors, needs to be updated wrt. RF4
Key: JBSEAM-5010
URL: https://issues.jboss.org/browse/JBSEAM-5010
Project: Seam 2
Issue Type: Bug
Components: Documentation Issues
Affects Versions: 2.3.0.BETA2
Reporter: Marek Schmidt
Assignee: Marek Novotny
Fix For: 2.3.0.CR1
The "A4J.AJAX.onError" no longer exists in RF4, as there is a standard mechanism in JFS2 for this kind of thing, "jsf.ajax.addOnError", e.g.:
{code}
<script type="text/javascript">
jsf.ajax.addOnError(function(data) {
alert("An error occurred");
});
</script>
{code}
There is no 1:1 replacement for "A4J.AJAX.onExpired" AFAICFO
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 3 months
[JBoss JIRA] (JBSEAM-4940) @CaptchaResponse throws javax.validation exception
by Andrea Martino (JIRA)
Andrea Martino created JBSEAM-4940:
--------------------------------------
Summary: @CaptchaResponse throws javax.validation exception
Key: JBSEAM-4940
URL: https://issues.jboss.org/browse/JBSEAM-4940
Project: Seam 2
Issue Type: Bug
Components: Core, Framework
Affects Versions: 2.3.0.BETA1
Environment: JBOSS 7.1 AS + JSF2 + RichFaces 4.2
Reporter: Andrea Martino
When the JSF login page sets the captcha value in the "org.jboss.seam.captcha.captcha" component, a "contains Constraint annotation, but does not contain a groups parameter" exception is thrown.
Create a new customized "captcha" as following:
{code:title=MyCaptcha.java|borderStyle=solid}
@Name("myCaptcha")
public class MyCaptcha extends org.jboss.seam.captcha.Captcha {
private String myResponse;
@org.jboss.seam.captcha.CaptchaResponse
public String getMyResponse{
return myResponse;
}
public void setMyResponse(String myResponse) {
this.myResponse = myResponse;
}
}
{code}
Just create a JSF page and set the "myResponse" field annotated with "CaptchaResponse" in the above component:
{code:xml}
<h:form>
<h:inputText value="#{myCaptcha.myResponse}" size="5"/>
<h:commandButton action="#{myLogin.login}" value="Login" />
</h:form>
{code}
The above code works in Seam 2.2.x, but throws a javax.validation exception complaining about missing "group" in Seam 2.3.0.Beta1 ("contains Constraint annotation, but does not contain a groups parameter").
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 3 months