[JBoss JIRA] (RF-12764) rich:select - javascript error when using myfaces with french locale
by Brian Leathem (JIRA)
[ https://issues.jboss.org/browse/RF-12764?page=com.atlassian.jira.plugin.s... ]
Brian Leathem updated RF-12764:
-------------------------------
Labels: patch_proposed (was: )
> rich:select - javascript error when using myfaces with french locale
> --------------------------------------------------------------------
>
> Key: RF-12764
> URL: https://issues.jboss.org/browse/RF-12764
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 4.3.0.CR2
> Reporter: Dupont Dupont
> Labels: patch_proposed
> Fix For: 5-Tracking
>
>
> Using RF 4.3.0.CR2, using rich:select with french locale on Myfaces produces the following javascript error :
> {code}
> Uncaught SyntaxError: Unexpected identifier.
> {code}
> It appears when javax.faces.component.UISelectOne.INVALID error message has a value containing a single quote.
> To reproduce it, just add the following line in your jsf messages properties :
> {code}
> javax.faces.component.UISelectOne.INVALID = {0} : Erreur de validation : la valeur n''est pas valide.
> {code}
> And add a rich:select in your JSF page.
> We end up with the javascript :
> {code}
> RichFaces.csv.addMessage({ 'UISELECTONE_INVALID': {detail:'{0} : Erreur de validation : la valeur n'est pas valide.',summary:'{0} : Erreur de validation : la valeur n'est pas valide.',severity:2} });
> {code}
> This error impacts users of Websphere 8 (tested on 8.0.0.3) with french locale (myfaces provides a default message containing simple quotes).
> Resolved locally by modifying AddCSVMessageScript#appendcript
> But perhaps I've missed some side effects.
> {code:java}
> @Override
> public void appendScript(Appendable target) throws IOException {
> String summary = facesMessage.getSummary();
> String detail = facesMessage.getDetail();
> int severity = facesMessage.getSeverity().getOrdinal();
> StringBuilder builder = new StringBuilder();
> ScriptUtils.appendEncodedString(builder, summary);
> summary = builder.toString();
> builder = new StringBuilder();
> ScriptUtils.appendEncodedString(builder, detail);
> detail = builder.toString();
>
> String script = MessageFormat.format(MESSAGE_OBJECT, messageId, summary, detail, severity);
> target.append(script);
> }
> {code}
--
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
11 years, 10 months
[JBoss JIRA] (RF-12763) a4j:mediaOutput does not work in composite component : accessing cc evaluates to null
by Brian Leathem (JIRA)
[ https://issues.jboss.org/browse/RF-12763?page=com.atlassian.jira.plugin.s... ]
Brian Leathem updated RF-12763:
-------------------------------
Fix Version/s: 5-Tracking
> a4j:mediaOutput does not work in composite component : accessing cc evaluates to null
> -------------------------------------------------------------------------------------
>
> Key: RF-12763
> URL: https://issues.jboss.org/browse/RF-12763
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-output
> Affects Versions: 4.2.3.Final
> Environment: JSF-RI 2.1.6
> RichFaces 4.2.3.FINAL
> Reporter: Thomas Jodes
> Fix For: 5-Tracking
>
> Attachments: richfaces-mediaoutput.zip
>
>
> Using a4j:mediaOutput in any compsite component cannot evaluate cc (is null).
> Thus, using mediaOutput's createContent-Attribute like "#{cc.attrs.handler.paintImage}" will not work.
> ---
> Relevant part of the exception:
> javax.el.PropertyNotFoundException: /resources/components/media.xhtml @27,24 createContent="#{cc.attrs.handler.paintImage}": Target Unreachable, identifier 'cc' resolved to null
--
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
11 years, 10 months
[JBoss JIRA] (RF-12762) Duplicate id problem in ExtendedDatatable with dynamic columns
by Brian Leathem (JIRA)
[ https://issues.jboss.org/browse/RF-12762?page=com.atlassian.jira.plugin.s... ]
Brian Leathem updated RF-12762:
-------------------------------
Steps to Reproduce:
1. Using for c:forEach to construct dynamic columns inside ExtendedDatatable:
e.g.
{code}
<rich:extendedDataTable
id="studentTable"
value="#{updateMarkBean.studentVoMarkAmends}"
var="studVo"
height="100%">
<c:forEach items="#{updateMarkBean.taskVos}"
var="tvo"
varStatus="s">
<rich:column width="100px">
<h:inputText id="task#{s.index}_amk"
value="#{tvo.xxx}"
size="1" maxlength="3"/>
</rich:column>
</c:forEach>
</rich:extendedDataTable>
{code}
2. First Submit from commandButton has no problem.
3. Fail on the second submit
Full stack trace:
{code}
java.lang.IllegalStateException: component with duplicate id "frmMarkUpdate:studentVoMarkInputTab:j_id_4h_1" found
at org.apache.myfaces.view.facelets.compiler.CheckDuplicateIdFaceletUtils.checkIds(CheckDuplicateIdFaceletUtils.java:100)
at org.apache.myfaces.view.facelets.compiler.CheckDuplicateIdFaceletUtils.checkIds(CheckDuplicateIdFaceletUtils.java:116)
at org.apache.myfaces.view.facelets.compiler.CheckDuplicateIdFaceletUtils.checkIds(CheckDuplicateIdFaceletUtils.java:116)
at org.apache.myfaces.view.facelets.compiler.CheckDuplicateIdFaceletUtils.checkIds(CheckDuplicateIdFaceletUtils.java:116)
at org.apache.myfaces.view.facelets.compiler.CheckDuplicateIdFaceletUtils.checkIds(CheckDuplicateIdFaceletUtils.java:116)
at org.apache.myfaces.view.facelets.compiler.CheckDuplicateIdFaceletUtils.checkIds(CheckDuplicateIdFaceletUtils.java:116)
at org.apache.myfaces.view.facelets.compiler.CheckDuplicateIdFaceletUtils.checkIds(CheckDuplicateIdFaceletUtils.java:82)
at org.apache.myfaces.view.facelets.DefaultFaceletsStateManagementStrategy.saveView(DefaultFaceletsStateManagementStrategy.java:536)
at org.apache.myfaces.application.StateManagerImpl.saveView(StateManagerImpl.java:189)
at javax.faces.application.StateManager.getViewState(StateManager.java:253)
at org.richfaces.context.ExtendedPartialViewContextImpl.renderState(ExtendedPartialViewContextImpl.java:371)
at org.richfaces.context.ExtendedPartialViewContextImpl.processPartialRenderPhase(ExtendedPartialViewContextImpl.java:272)
at org.richfaces.context.ExtendedPartialViewContextImpl.processPartial(ExtendedPartialViewContextImpl.java:194)
at javax.faces.context.PartialViewContextWrapper.processPartial(PartialViewContextWrapper.java:88)
at javax.faces.context.PartialViewContextWrapper.processPartial(PartialViewContextWrapper.java:88)
at javax.faces.component.UIViewRoot.encodeChildren(UIViewRoot.java:408)
at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:530)
at org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.renderView(FaceletViewDeclarationLanguage.java:1981)
at org.apache.myfaces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:285)
at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:59)
at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:59)
at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:59)
at org.apache.myfaces.tomahawk.application.ResourceViewHandlerWrapper.renderView(ResourceViewHandlerWrapper.java:93)
at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:116)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:241)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:199)
at org.apache.myfaces.webapp.MyFacesServlet.service(MyFacesServlet.java:112)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
at hk.edu.hkeaa.infrastructure.security.BlockGetMethodFilter.doFilter(BlockGetMethodFilter.java:227)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at hk.edu.hkeaa.sba.security.UserPathRedirectFilter.doFilter(UserPathRedirectFilter.java:75)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at hk.edu.hkeaa.infrastructure.security.UrlPrivilegeFilter.doFilter(UrlPrivilegeFilter.java:66)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at hk.edu.hkeaa.sba.security.UserCredentialFilter.doFilter(UserCredentialFilter.java:80)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at hk.edu.hkeaa.infrastructure.security.AccessDenyListFilter.doFilter(AccessDenyListFilter.java:58)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.authentication.preauth.AbstractPreAuthenticatedProcessingFilter.doFilter(AbstractPreAuthenticatedProcessingFilter.java:94)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
{code}
was:
1. Using for c:forEach to construct dynamic columns inside ExtendedDatatable:
e.g.
<rich:extendedDataTable
id="studentTable"
value="#{updateMarkBean.studentVoMarkAmends}"
var="studVo"
height="100%">
<c:forEach items="#{updateMarkBean.taskVos}"
var="tvo"
varStatus="s">
<rich:column width="100px">
<h:inputText id="task#{s.index}_amk"
value="#{tvo.xxx}"
size="1" maxlength="3"/>
</rich:column>
</c:forEach>
</rich:extendedDataTable>
2. First Submit from commandButton has no problem.
3. Fail on the second submit
Full stack trace:
java.lang.IllegalStateException: component with duplicate id "frmMarkUpdate:studentVoMarkInputTab:j_id_4h_1" found
at org.apache.myfaces.view.facelets.compiler.CheckDuplicateIdFaceletUtils.checkIds(CheckDuplicateIdFaceletUtils.java:100)
at org.apache.myfaces.view.facelets.compiler.CheckDuplicateIdFaceletUtils.checkIds(CheckDuplicateIdFaceletUtils.java:116)
at org.apache.myfaces.view.facelets.compiler.CheckDuplicateIdFaceletUtils.checkIds(CheckDuplicateIdFaceletUtils.java:116)
at org.apache.myfaces.view.facelets.compiler.CheckDuplicateIdFaceletUtils.checkIds(CheckDuplicateIdFaceletUtils.java:116)
at org.apache.myfaces.view.facelets.compiler.CheckDuplicateIdFaceletUtils.checkIds(CheckDuplicateIdFaceletUtils.java:116)
at org.apache.myfaces.view.facelets.compiler.CheckDuplicateIdFaceletUtils.checkIds(CheckDuplicateIdFaceletUtils.java:116)
at org.apache.myfaces.view.facelets.compiler.CheckDuplicateIdFaceletUtils.checkIds(CheckDuplicateIdFaceletUtils.java:82)
at org.apache.myfaces.view.facelets.DefaultFaceletsStateManagementStrategy.saveView(DefaultFaceletsStateManagementStrategy.java:536)
at org.apache.myfaces.application.StateManagerImpl.saveView(StateManagerImpl.java:189)
at javax.faces.application.StateManager.getViewState(StateManager.java:253)
at org.richfaces.context.ExtendedPartialViewContextImpl.renderState(ExtendedPartialViewContextImpl.java:371)
at org.richfaces.context.ExtendedPartialViewContextImpl.processPartialRenderPhase(ExtendedPartialViewContextImpl.java:272)
at org.richfaces.context.ExtendedPartialViewContextImpl.processPartial(ExtendedPartialViewContextImpl.java:194)
at javax.faces.context.PartialViewContextWrapper.processPartial(PartialViewContextWrapper.java:88)
at javax.faces.context.PartialViewContextWrapper.processPartial(PartialViewContextWrapper.java:88)
at javax.faces.component.UIViewRoot.encodeChildren(UIViewRoot.java:408)
at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:530)
at org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.renderView(FaceletViewDeclarationLanguage.java:1981)
at org.apache.myfaces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:285)
at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:59)
at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:59)
at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:59)
at org.apache.myfaces.tomahawk.application.ResourceViewHandlerWrapper.renderView(ResourceViewHandlerWrapper.java:93)
at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:116)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:241)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:199)
at org.apache.myfaces.webapp.MyFacesServlet.service(MyFacesServlet.java:112)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
at hk.edu.hkeaa.infrastructure.security.BlockGetMethodFilter.doFilter(BlockGetMethodFilter.java:227)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at hk.edu.hkeaa.sba.security.UserPathRedirectFilter.doFilter(UserPathRedirectFilter.java:75)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at hk.edu.hkeaa.infrastructure.security.UrlPrivilegeFilter.doFilter(UrlPrivilegeFilter.java:66)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at hk.edu.hkeaa.sba.security.UserCredentialFilter.doFilter(UserCredentialFilter.java:80)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at hk.edu.hkeaa.infrastructure.security.AccessDenyListFilter.doFilter(AccessDenyListFilter.java:58)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.authentication.preauth.AbstractPreAuthenticatedProcessingFilter.doFilter(AbstractPreAuthenticatedProcessingFilter.java:94)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
> Duplicate id problem in ExtendedDatatable with dynamic columns
> --------------------------------------------------------------
>
> Key: RF-12762
> URL: https://issues.jboss.org/browse/RF-12762
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 4.3.0.CR1
> Environment: Windows 7 , weblogic10.4.3, Myfaces 2.1.10, IE 9, FireFox 14.0.1
> Reporter: blam lam
> Priority: Critical
>
> When the ExtendedDataTable contains dynamic columns (i.e. using for:each), "java.lang.IllegalStateException: component with duplicate id" will occur after the second submit from a commandButton.
> The problem does not appear in 4.2.3 Final but found in 4.3 CR1
> Sample source code:
> <h:form id="frmMarkUpdate">
> <a4j:outputPanel id="resultPanel">
> <rich:extendedDataTable id="studentVoMarkInputTab"
> value="#{updateMarkBean.studentVoMarkAmends}"
> var="studVo"
> selectionMode="none"
> height="100%">
>
> <rich:column width="200px" >
> <f:facet name="header">
> Status
> </f:facet>
> <h:outputText value="#{studVo.student.markAmendStatus}" />
> </rich:column>
>
> <c:forEach items="#{updateMarkBean.taskVos}" var="tvo" varStatus="s">
> <rich:column width="100px">
> <f:facet name="header">
> <h:outputText value="#{tvo.task.taskName}" />
> </f:facet>
> <h:inputText id="task#{s.index}_amk"
> value="#{studVo.getTaskMarkMap().get(tvo.task.taskId).amendedMark}"
> size="1" maxlength="3"/>
> </rich:column>
> </c:forEach>
> </rich:extendedDataTable>
>
> <a4j:commandButton id="btnSave" value="Save"
> action="#{updateMarkBean.doBeforeSave}"
> styleClass="button blue">
> </a4j:commandButton>
>
> </a4j:outputPanel>
> </h:form>
--
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
11 years, 10 months
[JBoss JIRA] (RF-12762) Duplicate id problem in ExtendedDatatable with dynamic columns
by Brian Leathem (JIRA)
[ https://issues.jboss.org/browse/RF-12762?page=com.atlassian.jira.plugin.s... ]
Brian Leathem updated RF-12762:
-------------------------------
Description:
When the ExtendedDataTable contains dynamic columns (i.e. using for:each), "java.lang.IllegalStateException: component with duplicate id" will occur after the second submit from a commandButton.
The problem does not appear in 4.2.3 Final but found in 4.3 CR1
Sample source code:
{code}
<h:form id="frmMarkUpdate">
<a4j:outputPanel id="resultPanel">
<rich:extendedDataTable id="studentVoMarkInputTab"
value="#{updateMarkBean.studentVoMarkAmends}"
var="studVo"
selectionMode="none"
height="100%">
<rich:column width="200px" >
<f:facet name="header">
Status
</f:facet>
<h:outputText value="#{studVo.student.markAmendStatus}" />
</rich:column>
<c:forEach items="#{updateMarkBean.taskVos}" var="tvo" varStatus="s">
<rich:column width="100px">
<f:facet name="header">
<h:outputText value="#{tvo.task.taskName}" />
</f:facet>
<h:inputText id="task#{s.index}_amk"
value="#{studVo.getTaskMarkMap().get(tvo.task.taskId).amendedMark}"
size="1" maxlength="3"/>
</rich:column>
</c:forEach>
</rich:extendedDataTable>
<a4j:commandButton id="btnSave" value="Save"
action="#{updateMarkBean.doBeforeSave}"
styleClass="button blue">
</a4j:commandButton>
</a4j:outputPanel>
</h:form>
{code}
was:
When the ExtendedDataTable contains dynamic columns (i.e. using for:each), "java.lang.IllegalStateException: component with duplicate id" will occur after the second submit from a commandButton.
The problem does not appear in 4.2.3 Final but found in 4.3 CR1
Sample source code:
<h:form id="frmMarkUpdate">
<a4j:outputPanel id="resultPanel">
<rich:extendedDataTable id="studentVoMarkInputTab"
value="#{updateMarkBean.studentVoMarkAmends}"
var="studVo"
selectionMode="none"
height="100%">
<rich:column width="200px" >
<f:facet name="header">
Status
</f:facet>
<h:outputText value="#{studVo.student.markAmendStatus}" />
</rich:column>
<c:forEach items="#{updateMarkBean.taskVos}" var="tvo" varStatus="s">
<rich:column width="100px">
<f:facet name="header">
<h:outputText value="#{tvo.task.taskName}" />
</f:facet>
<h:inputText id="task#{s.index}_amk"
value="#{studVo.getTaskMarkMap().get(tvo.task.taskId).amendedMark}"
size="1" maxlength="3"/>
</rich:column>
</c:forEach>
</rich:extendedDataTable>
<a4j:commandButton id="btnSave" value="Save"
action="#{updateMarkBean.doBeforeSave}"
styleClass="button blue">
</a4j:commandButton>
</a4j:outputPanel>
</h:form>
> Duplicate id problem in ExtendedDatatable with dynamic columns
> --------------------------------------------------------------
>
> Key: RF-12762
> URL: https://issues.jboss.org/browse/RF-12762
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 4.3.0.CR1
> Environment: Windows 7 , weblogic10.4.3, Myfaces 2.1.10, IE 9, FireFox 14.0.1
> Reporter: blam lam
> Priority: Critical
>
> When the ExtendedDataTable contains dynamic columns (i.e. using for:each), "java.lang.IllegalStateException: component with duplicate id" will occur after the second submit from a commandButton.
> The problem does not appear in 4.2.3 Final but found in 4.3 CR1
> Sample source code:
> {code}
> <h:form id="frmMarkUpdate">
> <a4j:outputPanel id="resultPanel">
> <rich:extendedDataTable id="studentVoMarkInputTab"
> value="#{updateMarkBean.studentVoMarkAmends}"
> var="studVo"
> selectionMode="none"
> height="100%">
>
> <rich:column width="200px" >
> <f:facet name="header">
> Status
> </f:facet>
> <h:outputText value="#{studVo.student.markAmendStatus}" />
> </rich:column>
>
> <c:forEach items="#{updateMarkBean.taskVos}" var="tvo" varStatus="s">
> <rich:column width="100px">
> <f:facet name="header">
> <h:outputText value="#{tvo.task.taskName}" />
> </f:facet>
> <h:inputText id="task#{s.index}_amk"
> value="#{studVo.getTaskMarkMap().get(tvo.task.taskId).amendedMark}"
> size="1" maxlength="3"/>
> </rich:column>
> </c:forEach>
> </rich:extendedDataTable>
>
> <a4j:commandButton id="btnSave" value="Save"
> action="#{updateMarkBean.doBeforeSave}"
> styleClass="button blue">
> </a4j:commandButton>
>
> </a4j:outputPanel>
> </h:form>
> {code}
--
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
11 years, 10 months
[JBoss JIRA] (RF-12761) The first ajax request after a jsFunction don´t work
by Brian Leathem (JIRA)
[ https://issues.jboss.org/browse/RF-12761?page=com.atlassian.jira.plugin.s... ]
Brian Leathem updated RF-12761:
-------------------------------
Description:
After execute a ajax request with jsFunction and render a rich:panel or a rich:popup and try to invoke a4j:commandButton within this rich:panel rendered, the first request don´t work.
View:
{code}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:rich="http://richfaces.org/rich"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:a4j="http://richfaces.org/a4j">
<h:head>
</h:head>
<h:body>
<h:form>
<a4j:jsFunction name="jsFunctionTest" actionListener="#{testBean.methodA}" render=":panel"/>
<h:commandButton value="Test">
<f:ajax onevent="jsFunctionTest()"/>
</h:commandButton>
</h:form>
<rich:panel id="panel" >
<h:form >
<a4j:commandButton value="OK" actionListener="#{testBean.methodB}" />
</h:form>
</rich:panel>
</h:body>
</html>
{code}
Bean:
{code}
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.faces.event.ActionEvent;
@SessionScoped
@ManagedBean(name="testBean")
public class TestMBean {
public void methodA(ActionEvent event) {
System.out.println("TestMBean.methodA()");
}
public void methodB(ActionEvent event) {
System.out.println("TestMBean.methodB()");
}
}
{code}
was:
After execute a ajax request with jsFunction and render a rich:panel or a rich:popup and try to invoke a4j:commandButton within this rich:panel rendered, the first request don´t work.
View:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:rich="http://richfaces.org/rich"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:a4j="http://richfaces.org/a4j">
<h:head>
</h:head>
<h:body>
<h:form>
<a4j:jsFunction name="jsFunctionTest" actionListener="#{testBean.methodA}" render=":panel"/>
<h:commandButton value="Test">
<f:ajax onevent="jsFunctionTest()"/>
</h:commandButton>
</h:form>
<rich:panel id="panel" >
<h:form >
<a4j:commandButton value="OK" actionListener="#{testBean.methodB}" />
</h:form>
</rich:panel>
</h:body>
</html>
Bean:
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.faces.event.ActionEvent;
@SessionScoped
@ManagedBean(name="testBean")
public class TestMBean {
public void methodA(ActionEvent event) {
System.out.println("TestMBean.methodA()");
}
public void methodB(ActionEvent event) {
System.out.println("TestMBean.methodB()");
}
}
> The first ajax request after a jsFunction don´t work
> ----------------------------------------------------
>
> Key: RF-12761
> URL: https://issues.jboss.org/browse/RF-12761
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-a4j-core
> Affects Versions: 4.3.0.CR2
> Environment: Windows 7 - IE9
> Mojarra 2.1.17
> Richfaces 4.3.CR2
> Reporter: Adelmo santos
>
> After execute a ajax request with jsFunction and render a rich:panel or a rich:popup and try to invoke a4j:commandButton within this rich:panel rendered, the first request don´t work.
> View:
> {code}
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml"
> xmlns:rich="http://richfaces.org/rich"
> xmlns:h="http://java.sun.com/jsf/html"
> xmlns:f="http://java.sun.com/jsf/core"
> xmlns:ui="http://java.sun.com/jsf/facelets"
> xmlns:a4j="http://richfaces.org/a4j">
>
> <h:head>
> </h:head>
> <h:body>
> <h:form>
> <a4j:jsFunction name="jsFunctionTest" actionListener="#{testBean.methodA}" render=":panel"/>
> <h:commandButton value="Test">
> <f:ajax onevent="jsFunctionTest()"/>
> </h:commandButton>
> </h:form>
>
> <rich:panel id="panel" >
> <h:form >
> <a4j:commandButton value="OK" actionListener="#{testBean.methodB}" />
> </h:form>
> </rich:panel>
> </h:body>
> </html>
> {code}
> Bean:
> {code}
> import javax.faces.bean.ManagedBean;
> import javax.faces.bean.SessionScoped;
> import javax.faces.event.ActionEvent;
> @SessionScoped
> @ManagedBean(name="testBean")
> public class TestMBean {
> public void methodA(ActionEvent event) {
> System.out.println("TestMBean.methodA()");
> }
>
> public void methodB(ActionEvent event) {
> System.out.println("TestMBean.methodB()");
> }
> }
> {code}
--
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
11 years, 10 months
[JBoss JIRA] (RF-12728) rich:fileUpload doesn't accept valid file after its unsuccessful multiple upload
by Brian Leathem (JIRA)
[ https://issues.jboss.org/browse/RF-12728?page=com.atlassian.jira.plugin.s... ]
Brian Leathem resolved RF-12728.
--------------------------------
Assignee: Brian Leathem (was: Jan Papousek)
Resolution: Done
> rich:fileUpload doesn't accept valid file after its unsuccessful multiple upload
> --------------------------------------------------------------------------------
>
> Key: RF-12728
> URL: https://issues.jboss.org/browse/RF-12728
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-input
> Affects Versions: 4.3.0.CR1
> Environment: RichFaces 4.3.0.CR1
> Metamer 4.3.0.20130114-CR1
> Weld Servlet (Uber Jar) 20120106-1159
> Apache Tomcat 7.0.34
> Java(TM) SE Runtime Environment 1.7.0_10-b18 @ Linux
> Firefox 16.0 @ Linux x86_64
> RichFaces 4.3.0.CR1
> Metamer 4.3.0.20130114-CR1
> JBoss Application Server: Weld Integration 7.1.1.Final
> JBoss AS 7.1.1.Final
> Java(TM) SE Runtime Environment 1.7.0_10-b18 @ Linux
> Firefox 16.0 @ Linux x86_64
> Reporter: Jan Papousek
> Assignee: Brian Leathem
> Labels: needs-qe, regression
> Fix For: 4.3.0.Final
>
> Attachments: to_upload.png
>
> Original Estimate: 3 hours
> Remaining Estimate: 3 hours
>
> Using 4.3.0.M3 I've successfuly uploaded 3 files from the attachment in one time.
--
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
11 years, 10 months
[JBoss JIRA] (RF-12366) Uploading 2 files despite rich:fileUpload:maxFilesQuantity="1"
by Thomas Jodes (JIRA)
[ https://issues.jboss.org/browse/RF-12366?page=com.atlassian.jira.plugin.s... ]
Thomas Jodes commented on RF-12366:
-----------------------------------
In my case I additionally check in the upload listener callback method how many files the server has got.
If size is exceeded, I do nothing but enqueue a faces error message that can be shown in the browser via rich:message for="..." ajaxRendered="true" />.
> Uploading 2 files despite rich:fileUpload:maxFilesQuantity="1"
> ---------------------------------------------------------------
>
> Key: RF-12366
> URL: https://issues.jboss.org/browse/RF-12366
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-input
> Affects Versions: 4.2.2.Final
> Environment: JDK1.6,
> JBoss 6.0.Final
> richfaces 4.2.2.Final
> seam 3.1
> Chrome
> Reporter: Artur Mioduszewski
> Fix For: 5-Tracking
>
>
> Button 'Add' does not disable after starting file uploading.
> In case: maxFilesQuantity="1" in rich:fileUpload I am able to upload more than 1 file using below scenario:
> I start to upload large file lala.wmv. During uploading of lala.wmv file, button "Add" is not blocked, so I am able to select second file to upload.
> Finally 2 files are uploaded despite maxFilesQuantity="1".
--
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
11 years, 10 months
[JBoss JIRA] (RF-12366) Uploading 2 files despite rich:fileUpload:maxFilesQuantity="1"
by Artur Mioduszewski (JIRA)
[ https://issues.jboss.org/browse/RF-12366?page=com.atlassian.jira.plugin.s... ]
Artur Mioduszewski commented on RF-12366:
-----------------------------------------
So, how to solve my problem (if I would like to let to upload only one file) ?
> Uploading 2 files despite rich:fileUpload:maxFilesQuantity="1"
> ---------------------------------------------------------------
>
> Key: RF-12366
> URL: https://issues.jboss.org/browse/RF-12366
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-input
> Affects Versions: 4.2.2.Final
> Environment: JDK1.6,
> JBoss 6.0.Final
> richfaces 4.2.2.Final
> seam 3.1
> Chrome
> Reporter: Artur Mioduszewski
> Fix For: 5-Tracking
>
>
> Button 'Add' does not disable after starting file uploading.
> In case: maxFilesQuantity="1" in rich:fileUpload I am able to upload more than 1 file using below scenario:
> I start to upload large file lala.wmv. During uploading of lala.wmv file, button "Add" is not blocked, so I am able to select second file to upload.
> Finally 2 files are uploaded despite maxFilesQuantity="1".
--
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
11 years, 10 months