[JBoss JIRA] (RF-13278) Add support for a 'header' meta-component to the rich:tabPanel
by Jiří Štefek (JIRA)
[ https://issues.jboss.org/browse/RF-13278?page=com.atlassian.jira.plugin.s... ]
Jiří Štefek commented on RF-13278:
----------------------------------
It seems that this issue was not resolved in 5.0.0.Alpha3.
The provided test do not pass with: 5.0.0.Alpha3, 5.0.0-SNAPSHOT, 4.5.0-SNAPSHOT. Tried on AS 7.1 (for 5.0.0.Alpha3), EAP 6.3 (for actual 5 and 4.5 snapshots and 5.0.0.Alpha3)
Steps:
# build and deploy metamer
# load http://localhost:8080/metamer/faces/components/richTabPanel/rf-13278.xhtml
# click the "click me" link in tab1 content
# the tab2 header *is* updated with ajax to "1 clicks" (correct)
# switch to second tab
# the header of the second tab is changed back to its *initial state* "0 clicks"
* If you refresh the page, the tab header will be updated.
* if you switch back to tab1, the header will be updated to "1 clicks", but if you then switch again to tab2 the header will be back at "0 clicks"
[~bleathem], is this a correct/ecpected behaviour of the tab panel? Or is the sample somehow wrong?
(the test, bean, sample can be easily accessed from [this comment|https://issues.jboss.org/browse/RF-13278?focusedCommentId=1282543...])
> Add support for a 'header' meta-component to the rich:tabPanel
> --------------------------------------------------------------
>
> Key: RF-13278
> URL: https://issues.jboss.org/browse/RF-13278
> Project: RichFaces
> Issue Type: Enhancement
> Security Level: Public(Everyone can see)
> Components: component-panels-layout-themes
> Affects Versions: 4.3.4
> Environment: java 7,
> tomcat 7, JBoss AS,
> mojarra, myfaces
> chrome, firefox
> Reporter: Alexey Shakov
> Assignee: Brian Leathem
> Labels: 45x
> Fix For: 4.5.0.Alpha3, 5.0.0.Alpha3
>
> Original Estimate: 2 hours
> Remaining Estimate: 2 hours
>
> I use ajax to update the header label of rich:tab. That is why label is placed in a header-facet. Since RF 4.3.4 this does not work:
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?>
> <!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:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html"
> xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:rich="http://richfaces.org/rich" xmlns:a4j="http://richfaces.org/a4j"
> xmlns:f="http://java.sun.com/jsf/core" xml:lang="en" lang="en">
> <h:head>
> </h:head>
> <h:body>
>
> <a4j:log hotkey="M" mode="popup" />
> <h:form id="form" prependId="false">
> <rich:tabPanel id="tabPanel">
> <rich:tab header="tab 1">
> <a4j:commandLink value="click me" action="#{testBean.put('clicks',testBean.clicks + 1)}" render="label" execute="@this" />
> </rich:tab>
> <rich:tab>
> <f:facet name="header">
> <h:outputText id="label" value="#{testBean.clicks} clicks" />
> </f:facet>
> </rich:tab>
> </rich:tabPanel>
> </h:form>
> </h:body>
> </html>
> {code}
> testBean is a simple session-scoped HashMap.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 5 months
[JBoss JIRA] (RF-12936) Use jQuery in non-conflicting way
by J W (JIRA)
[ https://issues.jboss.org/browse/RF-12936?page=com.atlassian.jira.plugin.s... ]
J W edited comment on RF-12936 at 6/18/14 7:47 AM:
---------------------------------------------------
I just updated to the latest RF version(4.3.7). Now i have a conflict with Prototype and richfaces.js @ Line: 137
https://github.com/richfaces4/core/blob/master/impl/src/main/resources/ME...
Shouldn't all the "$" be gone after the issues got fixed?
EDIT: Nevermind, i assumed it got fixed in 4.3, while this issues states it will be fixed in 4.5
was (Author: jigg4):
I just updated to the latest RF version(4.3.7). Now i have a conflict with Prototype and richfaces.js @ Line: 137
https://github.com/richfaces4/core/blob/master/impl/src/main/resources/ME...
Shouldn't all the "$" be gone after the issues got fixed?
> Use jQuery in non-conflicting way
> ---------------------------------
>
> Key: RF-12936
> URL: https://issues.jboss.org/browse/RF-12936
> Project: RichFaces
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: core
> Affects Versions: 4.3.1
> Reporter: Lukáš Fryč
> Assignee: Lukáš Fryč
> Fix For: 4.5.0.Alpha1, 5.0.0.Alpha2
>
> Original Estimate: 1 hour
> Remaining Estimate: 1 hour
>
> The {{richfaces.js}} references both, {{jQuery}} from closure and global {{$}} - this issue is addressed in RF-12833.
> However jQuery should not be used directly, rather from closures - prefered way is to use {{$}} but its naming now conflicts with {{RichFaces.$}} for component references.
> I suggest to use following trick:
> {code:title=richfaces.js}
> window.RichFaces = window.RichFaces || {};
> RichFaces.jQuery = RichFaces.jQuery || window.jQuery;
> //encapsulation
> (function($, rf) {
> // free to use $ here
> }(RichFaces.jQuery, RichFaces));
> {code}
> It will allow:
> * provide own jQuery for RichFaces (using _jQuery.noConflict()_)
> * use libraries which make use of {{$}} (prototype, other jQuery versions) in no-conflicting way
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 5 months
[JBoss JIRA] (RF-12936) Use jQuery in non-conflicting way
by J W (JIRA)
[ https://issues.jboss.org/browse/RF-12936?page=com.atlassian.jira.plugin.s... ]
J W commented on RF-12936:
--------------------------
I just updated to the latest RF version(4.3.7). Now i have a conflict with Prototype and richfaces.js @ Line: 137
https://github.com/richfaces4/core/blob/master/impl/src/main/resources/ME...
Shouldn't all the "$" be gone after the issues got fixed?
> Use jQuery in non-conflicting way
> ---------------------------------
>
> Key: RF-12936
> URL: https://issues.jboss.org/browse/RF-12936
> Project: RichFaces
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: core
> Affects Versions: 4.3.1
> Reporter: Lukáš Fryč
> Assignee: Lukáš Fryč
> Fix For: 4.5.0.Alpha1, 5.0.0.Alpha2
>
> Original Estimate: 1 hour
> Remaining Estimate: 1 hour
>
> The {{richfaces.js}} references both, {{jQuery}} from closure and global {{$}} - this issue is addressed in RF-12833.
> However jQuery should not be used directly, rather from closures - prefered way is to use {{$}} but its naming now conflicts with {{RichFaces.$}} for component references.
> I suggest to use following trick:
> {code:title=richfaces.js}
> window.RichFaces = window.RichFaces || {};
> RichFaces.jQuery = RichFaces.jQuery || window.jQuery;
> //encapsulation
> (function($, rf) {
> // free to use $ here
> }(RichFaces.jQuery, RichFaces));
> {code}
> It will allow:
> * provide own jQuery for RichFaces (using _jQuery.noConflict()_)
> * use libraries which make use of {{$}} (prototype, other jQuery versions) in no-conflicting way
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 5 months
[JBoss JIRA] (RF-13677) InputNumberSlider & Spinner render does not work when nested in iteration components
by Michal Petrov (JIRA)
[ https://issues.jboss.org/browse/RF-13677?page=com.atlassian.jira.plugin.s... ]
Michal Petrov commented on RF-13677:
------------------------------------
There seems to be an issue with ID resolution.
* The id of the slider should be {{form:containerRichDataTable:2:slider}}, however it is just {{form:containerRichDataTable:slider}}. Don't know if it affects the issue.
* During ApplyRequestValuesPhase the output is found on the first row (it is processed despite rendered="false", but that is intended) and so the resolved id is wrong.
> InputNumberSlider & Spinner render does not work when nested in iteration components
> ------------------------------------------------------------------------------------
>
> Key: RF-13677
> URL: https://issues.jboss.org/browse/RF-13677
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-input
> Affects Versions: 4.5.0.Alpha3
> Reporter: Juraj Húska
> Assignee: Michal Petrov
> Labels: regression
> Fix For: 4.5.0.Alpha3
>
>
> When {{inputNumberSlider}} or {{inputNumberSpinner}} is nested in either of these iteration components:
> * uiRepeat
> * a4jRepeat
> * richExtendedDataTable
> * richCollapsibleSubTable
> * richDataGrid
> * richDataTable
> then the property of the bean bound to its {{value}} attribute is not updated by ajax request.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 5 months
[JBoss JIRA] (RF-11103) org.richfaces.skin = plain causes java.lang.IllegalArgumentException: Width (2000) and height (0) cannot be <= 0
by Sebastian Cramer (JIRA)
[ https://issues.jboss.org/browse/RF-11103?page=com.atlassian.jira.plugin.s... ]
Sebastian Cramer commented on RF-11103:
---------------------------------------
Hello.
As far as I can tell this bug is still unfixed for 4.3.7.Final. The problem surfaces e.g. when using <rich:select> with skinning set to plain. I checked the sources and it seems the Skin#imageUrl() solution wasn't backported from 5.0.0.Alpha2 to RF4 head. I belive this issue needs to be reopened.
What can be done to backport the solution? I tried to look at the attached changes but couldn't really make any sense of it. Seems to be a little confused. :-) Is it as simple as adding #imageUrl() to Skin/AbstractSkin and changing all background-image: references accordingly?
Cheers
S
> org.richfaces.skin = plain causes java.lang.IllegalArgumentException: Width (2000) and height (0) cannot be <= 0
> ----------------------------------------------------------------------------------------------------------------
>
> Key: RF-11103
> URL: https://issues.jboss.org/browse/RF-11103
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: skinning
> Reporter: u j
> Assignee: Brian Leathem
> Priority: Minor
> Fix For: 5.0.0.Alpha2
>
> Original Estimate: 1 hour
> Remaining Estimate: 1 hour
>
> I tried
> {code}
> <context-param>
> <param-name>org.richfaces.skin</param-name>
> <param-value>plain</param-value>
> </context-param>
> {code}
>
> and the skinning seems to be disabled, but I get
> {code}
> 14:44:21,584 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/myapp].[Faces Servlet]] Servlet.service() para servlet Faces Servlet lanzó excepción: java.lang.IllegalArgumentException: Width (2000) and height (0) cannot be <= 0
> at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:999) [:1.6.0_24]
> at java.awt.image.BufferedImage.<init>(BufferedImage.java:321) [:1.6.0_24]
> at org.richfaces.resource.ImageType.createARGBImage(ImageType.java:103) [:4.0.0-SNAPSHOT]
> at org.richfaces.resource.ImageType.access$200(ImageType.java:34) [:4.0.0-SNAPSHOT]
> at org.richfaces.resource.ImageType$2.createImage(ImageType.java:44) [:4.0.0-SNAPSHOT]
> at org.richfaces.resource.ImageType.createImage(ImageType.java:118) [:4.0.0-SNAPSHOT]
> at org.richfaces.resource.Java2DUserResourceWrapperImpl.paintAndWrite(Java2DUserResourceWrapperImpl.java:155) [:4.0.0-SNAPSHOT]
> at org.richfaces.resource.Java2DUserResourceWrapperImpl.getInputStream(Java2DUserResourceWrapperImpl.java:65) [:4.0.0-SNAPSHOT]
> at org.richfaces.resource.CachedResourceImpl.initialize(CachedResourceImpl.java:178) [:4.0.0-SNAPSHOT]
> at org.richfaces.resource.ResourceHandlerImpl.handleResourceRequest(ResourceHandlerImpl.java:171) [:4.0.0-SNAPSHOT]
> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:407) [:2.1.1-FCS]
> 14:45:38,493 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/myapp].[Faces Servlet]] Servlet.service() para servlet Faces Servlet lanzó excepción: java.lang.IllegalArgumentException: Width (1) and height (0) cannot be <= 0
> at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:999) [:1.6.0_24]
> at java.awt.image.BufferedImage.<init>(BufferedImage.java:321) [:1.6.0_24]
> at org.richfaces.resource.ImageType.createARGBImage(ImageType.java:103) [:4.0.0-SNAPSHOT]
> at org.richfaces.resource.ImageType.access$200(ImageType.java:34) [:4.0.0-SNAPSHOT]
> at org.richfaces.resource.ImageType$2.createImage(ImageType.java:44) [:4.0.0-SNAPSHOT]
> at org.richfaces.resource.ImageType.createImage(ImageType.java:118) [:4.0.0-SNAPSHOT]
> at org.richfaces.resource.Java2DUserResourceWrapperImpl.paintAndWrite(Java2DUserResourceWrapperImpl.java:155) [:4.0.0-SNAPSHOT]
> at org.richfaces.resource.Java2DUserResourceWrapperImpl.getInputStream(Java2DUserResourceWrapperImpl.java:65) [:4.0.0-SNAPSHOT]
> at org.richfaces.resource.CachedResourceImpl.initialize(CachedResourceImpl.java:178) [:4.0.0-SNAPSHOT]
> at org.richfaces.resource.ResourceHandlerImpl.handleResourceRequest(ResourceHandlerImpl.java:171) [:4.0.0-SNAPSHOT]
> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:407) [:2.1.1-FCS]
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:6.0.0.Final]
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]
> at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:67) [:6.0.0.Final]
> {code}
> I found a note
> http://echelog.matzon.dk/logs/browse/richfaces/1306706400
> Thanks
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 5 months