[JBoss JIRA] (RF-12504) rich:calendar: @preloadDateRangeBegin and @preloadDateRangeEnd not working
by Jiří Štefek (JIRA)
Jiří Štefek created RF-12504:
--------------------------------
Summary: rich:calendar: @preloadDateRangeBegin and @preloadDateRangeEnd not working
Key: RF-12504
URL: https://issues.jboss.org/browse/RF-12504
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: component-input
Affects Versions: 4.3.0.Milestone1
Environment: RichFaces 4.3.0-SNAPSHOT
Metamer 4.3.0-SNAPSHOT
Apache Tomcat 7.0.29 / Jboss AS 7.1
OpenJDK Runtime Environment 1.6.0_24-b24 @ Linux
Firefox 15.0 @ Linux x86_64
Reporter: Jiří Štefek
In 'ajax' mode these attributes do not work as expected.
--
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, 3 months
[JBoss JIRA] (RF-11487) Metamer: rich:calendar: Attribute value change causes ConvertException on initialized calendar
by Jiří Štefek (JIRA)
[ https://issues.jboss.org/browse/RF-11487?page=com.atlassian.jira.plugin.s... ]
Jiří Štefek commented on RF-11487:
----------------------------------
I think, that it is just a Metamer's issue. The calendar saves its @currentDate and @value with some default java.util.Date's pattern and updates the according Metamer attributes with this default pattern value, but calendar is expecting the correct date pattern as set in his attribute @datePattern. So a simple converter (f:convertDateTime) to actual date pattern for these attributes inputs can fix it.
> Metamer: rich:calendar: Attribute value change causes ConvertException on initialized calendar
> ----------------------------------------------------------------------------------------------
>
> Key: RF-11487
> URL: https://issues.jboss.org/browse/RF-11487
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-input
> Affects Versions: 4.1.0.Milestone2
> Environment: RichFaces 4.1.0.20110910-M2 r.
> Metamer 4.1.0.20110910-M2 r.22701
> Mojarra 2.0.4-b09-jbossorg-4
> JBoss Web 7.0.1.Final
> Java(TM) SE Runtime Environment 1.6.0_26-b03 @ Linux
> Mozilla/5.0 (X11; Linux i686; rv:7.0) Gecko/20100101 Firefox/7.0
> Reporter: Ján Jamrich
> Assignee: Ján Jamrich
> Priority: Minor
> Fix For: 4.Future
>
>
> When firstly pick some date from popup and then change any attribute value, error page with following exception is displayed instead of component example page:
> Whole exception stack trace:
> {code}
> javax.servlet.ServletException: form:calendar: 'Sat Sep 01 02:00:00 CEST 2012' could not be understood as a date.
> javax.faces.webapp.FacesServlet.service(FacesServlet.java:606)
> org.richfaces.tests.metamer.TestIdentityFilter.doFilter(TestIdentityFilter.java:93)
> root cause
> javax.faces.convert.ConverterException: form:calendar: 'Sat Sep 01 02:00:00 CEST 2012' could not be understood as a date.
> javax.faces.convert.DateTimeConverter.getAsObject(DateTimeConverter.java:407)
> org.richfaces.utils.CalendarHelper.convertStringToDate(CalendarHelper.java:202)
> org.richfaces.utils.CalendarHelper.getAsDate(CalendarHelper.java:68)
> org.richfaces.utils.CalendarHelper.getCurrentDateOrDefault(CalendarHelper.java:210)
> org.richfaces.renderkit.CalendarRendererBase.getCurrentDateAsString(CalendarRendererBase.java:274)
> org.richfaces.renderkit.html.CalendarRenderer.doEncodeEnd(CalendarRenderer.java:475)
> org.richfaces.renderkit.RendererBase.encodeEnd(RendererBase.java:175)
> javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:875)
> javax.faces.component.UIComponent.encodeAll(UIComponent.java:1786)
> javax.faces.render.Renderer.encodeChildren(Renderer.java:168)
> javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845)
> com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:304)
> com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:105)
> javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845)
> javax.faces.component.UIComponent.encodeAll(UIComponent.java:1779)
> javax.faces.component.UIComponent.encodeAll(UIComponent.java:1782)
> javax.faces.component.UIComponent.encodeAll(UIComponent.java:1782)
> com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:402)
> com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:125)
> javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:288)
> com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121)
> com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
> com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
> javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)
> org.richfaces.tests.metamer.TestIdentityFilter.doFilter(TestIdentityFilter.java:93)
> root cause
> java.text.ParseException: Unparseable date: "Sat Sep 01 02:00:00 CEST 2012"
> java.text.DateFormat.parse(DateFormat.java:357)
> javax.faces.convert.DateTimeConverter.getAsObject(DateTimeConverter.java:404)
> org.richfaces.utils.CalendarHelper.convertStringToDate(CalendarHelper.java:202)
> org.richfaces.utils.CalendarHelper.getAsDate(CalendarHelper.java:68)
> org.richfaces.utils.CalendarHelper.getCurrentDateOrDefault(CalendarHelper.java:210)
> org.richfaces.renderkit.CalendarRendererBase.getCurrentDateAsString(CalendarRendererBase.java:274)
> org.richfaces.renderkit.html.CalendarRenderer.doEncodeEnd(CalendarRenderer.java:475)
> org.richfaces.renderkit.RendererBase.encodeEnd(RendererBase.java:175)
> javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:875)
> javax.faces.component.UIComponent.encodeAll(UIComponent.java:1786)
> javax.faces.render.Renderer.encodeChildren(Renderer.java:168)
> javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845)
> com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:304)
> com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:105)
> javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845)
> javax.faces.component.UIComponent.encodeAll(UIComponent.java:1779)
> javax.faces.component.UIComponent.encodeAll(UIComponent.java:1782)
> javax.faces.component.UIComponent.encodeAll(UIComponent.java:1782)
> com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:402)
> com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:125)
> javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:288)
> com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121)
> com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
> com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
> javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)
> org.richfaces.tests.metamer.TestIdentityFilter.doFilter(TestIdentityFilter.java:93)
> {code}
> Before date selected there is no problem with attribute change in calendar component example page.
> Note: on similar page using f:ajax (faces/components/richCalendar/fAjax.xhtml) this problem doesn't appear - no exception raised, but when change attribute value, date set in calendar component is lost.
--
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, 3 months
[JBoss JIRA] (RF-11973) rich:contextMenu - after ajax re-render of table contextMenu no longer works
by Brendan Healey (JIRA)
Brendan Healey created RF-11973:
-----------------------------------
Summary: rich:contextMenu - after ajax re-render of table contextMenu no longer works
Key: RF-11973
URL: https://issues.jboss.org/browse/RF-11973
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 4.2.0.CR1
Environment: chrome browser / glassfish 3.1.1 / mojarra 2.1.6
Reporter: Brendan Healey
With the following code structure, when the page is first rendered
you can right click on a row in the table and the context menu appears.
After pushing the commandButton subsequent right clicks show the
default browser right click menu, and not the context menu.
<rich:extendedDataTable id="mytable">
...
</rich:extendedDataTable>
<a4j:commandButton value="push" render="mytable"/>
<rich:contextMenu target="mytable" mode="ajax">
<rich:menuItem label="Delete"
mode="ajax"
onclick="alert('hello, world!')"/>
</rich:contextMenu>
--
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] (RF-11974) Optimizing Resource Loading with RichFaces 4.2 doesn't work as expected
by Rene O (JIRA)
Rene O created RF-11974:
---------------------------
Summary: Optimizing Resource Loading with RichFaces 4.2 doesn't work as expected
Key: RF-11974
URL: https://issues.jboss.org/browse/RF-11974
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 4.2.0.CR1
Environment: richfaces-4.2.0.CR1, myfaces-2.1.6, firefox 10
Reporter: Rene O
If i use resource loading optimizing, the packed js resources where included multiple times, which is not the expected behaviour.
Here is a simple usecase:
{code:title=simplepage.xhtml}
<!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: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"
xmlns:rich="http://richfaces.org/rich"
>
<h:head>
<title>JSF Test</title>
</h:head>
<h:body>
<h:form id="testForm">
<rich:panel id="mypanel">
<f:facet name="header">
Header
</f:facet>
Content
</rich:panel>
</h:form>
</h:body>
</html>
{code}
{code:title=web.xml}
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<description>jsftest web.xml</description>
<!-- myfaces config: http://myfaces.apache.org/core20/myfaces-impl/webconfig.html -->
<context-param>
<param-name>javax.faces.PARTIAL_STATE_SAVING</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
</context-param>
<context-param>
<param-name>org.apache.myfaces.COMPRESS_STATE_IN_SESSION</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>org.apache.myfaces.SERIALIZE_STATE_IN_SESSION</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>org.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION</param-name>
<param-value>5</param-value>
</context-param>
<context-param>
<param-name>javax.faces.FACELETS_REFRESH_PERIOD</param-name>
<param-value>2</param-value>
</context-param>
<context-param>
<param-name>javax.faces.FACELETS_SKIP_COMMENTS</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
</context-param>
<context-param>
<param-name>org.richfaces.resourceOptimization.enabled</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>org.richfaces.resourceOptimization.compressionStages</param-name>
<param-value>All</param-value>
</context-param>
<context-param>
<param-name>org.richfaces.resourceOptimization.packagingStages</param-name>
<param-value>All</param-value>
</context-param>
<servlet>
<servlet-name>Resource Servlet</servlet-name>
<servlet-class>org.richfaces.webapp.ResourceServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Resource Servlet</servlet-name>
<url-pattern>/org.richfaces.resources/*</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>FacesServlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>FacesServlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>30</session-timeout>
</session-config>
<distributable/>
</web-app>
{code}
{code:title=source code of generated html}
<!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"><head>
<title>JSF Test</title><link rel="stylesheet" media="screen" type="text/css" href="/jsftest/org.richfaces.resources/javax.faces.resource/org.richfaces.staticResource/4.2.0.CR1/PackedCompressed/DEFAULT/skinning.css" /><script type="text/javascript" src="/jsftest/javax.faces.resource/jsf.js.jsf?ln=javax.faces"><!--
//--></script><script type="text/javascript" src="/jsftest/org.richfaces.resources/javax.faces.resource/org.richfaces.staticResource/4.2.0.CR1/PackedCompressed/packed/packed.js"><!--
//--></script><script type="text/javascript" src="/jsftest/org.richfaces.resources/javax.faces.resource/org.richfaces.staticResource/4.2.0.CR1/PackedCompressed/packed/packed.js"><!--
//--></script><script type="text/javascript" src="/jsftest/org.richfaces.resources/javax.faces.resource/org.richfaces.staticResource/4.2.0.CR1/PackedCompressed/packed/packed.js"><!--
//--></script><link rel="stylesheet" media="screen" type="text/css" href="/jsftest/org.richfaces.resources/javax.faces.resource/org.richfaces.staticResource/4.2.0.CR1/PackedCompressed/DEFAULT/packed/packed.css" /></head><body><form id="testForm" name="testForm" method="post" action="/jsftest/tabtest.jsf" enctype="application/x-www-form-urlencoded"><div class="rf-p " id="testForm:mypanel"><div class="rf-p-hdr " id="testForm:mypanel_header">
Header
</div><div class="rf-p-b " id="testForm:mypanel_body">
Content
</div></div><input type="hidden" name="testForm_SUBMIT" value="1" /><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="BCdgrBds6dPVxGA5g7QTvuYJ8/PuaJifnYvMIUGHf2r4d6JJFsGNbgoWnR9/JiyT861SIhrba11L0hX4aFlyD1oAXywRv4cQTCaw23T3TN9cuUSgI1VQAx0bW+JUNFXw7+HsPg==" /></form></body>
</html>
{code}
--
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