[JBoss JIRA] (RF-12427) AJAX loading of resources in dynamically / programatically generated subtree
by Brian Leathem (JIRA)
[ https://issues.jboss.org/browse/RF-12427?page=com.atlassian.jira.plugin.s... ]
Brian Leathem updated RF-12427:
-------------------------------
Fix Version/s: 5-Tracking
(was: 4.3.0.M3)
> AJAX loading of resources in dynamically / programatically generated subtree
> ----------------------------------------------------------------------------
>
> Key: RF-12427
> URL: https://issues.jboss.org/browse/RF-12427
> Project: RichFaces
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: core
> Affects Versions: 4.1.0.CR2
> Reporter: Lukáš Fryč
> Fix For: 5-Tracking
>
>
> There are several scenarios where components are dynamically added to the tree so resources for these components doesn't have to be loaded by AJAX:
> * components added programatically
> * components included by {{ui:include}} with dynamic {{src}} attribute
> * components under dynamic rows/panels/etc., e.g. {{rich:tab}} generated by {{c:forEach}} (RF-11694)
> Create mock components with mock resources and test that when component rendered "dynamically", the resources (JS and CSS) are provided to the page properly.
--
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
13 years, 6 months
[JBoss JIRA] (RF-12535) RichFaces example generates warnings
by Brian Leathem (JIRA)
[ https://issues.jboss.org/browse/RF-12535?page=com.atlassian.jira.plugin.s... ]
Brian Leathem updated RF-12535:
-------------------------------
Story Points: 1
> RichFaces example generates warnings
> ------------------------------------
>
> Key: RF-12535
> URL: https://issues.jboss.org/browse/RF-12535
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Environment: Version: 6.0.0.Alpha2
> Build id: Alpha2-v20121004-2330-B40
> Build date: 20121004-2330
> Reporter: Len DiMaggio
> Fix For: 4.3.0.M3
>
>
> The RichFaces example generates these warnings:
> The local variable options may not have been initialized
> slidfast.js
> /jboss-richfaces-webapp/src/main/webapp/resources/js
> line 60
> Missing semicolon
> slidfast.js
> /jboss-richfaces-webapp/src/main/webapp/resources/js
> line 79
> Unnecessary @SuppressWarnings("unused")
> Resources.java
> /jboss-richfaces-webapp/src/main/java/org/jboss/tools/example/richfaces/util
> line 26
> The local variable options may not have been initialized
> slidfast.js
> /jboss-richfaces-webapp/src/main/webapp/resources/js
> line 57
> The local variable options may not have been initialized
> slidfast.js
> /jboss-richfaces-webapp/src/main/webapp/resources/js
> line 58
> The local variable options may not have been initialized
> slidfast.js
> /jboss-richfaces-webapp/src/main/webapp/resources/js
> line 54
> The local variable options may not have been initialized
> slidfast.js
> /jboss-richfaces-webapp/src/main/webapp/resources/js
> line 56
> The import javax.inject.Inject is never used
> RewriteConfigurationProvider.java
> /jboss-richfaces-webapp/src/main/java/org/jboss/tools/example/richfaces/util
> line 34
> The import javax.annotation.PostConstruct is never used
> PageBean.java
> /jboss-richfaces-webapp/src/main/java/org/jboss/tools/example/richfaces/controller
> line 24
> The import javax.enterprise.inject.Model is never used
> PageBean.java
> /jboss-richfaces-webapp/src/main/java/org/jboss/tools/example/richfaces/controller
> line 26
> The import javax.inject.Inject is never used
> UserAgent.java
> /jboss-richfaces-webapp/src/main/java/org/jboss/tools/example/richfaces/util
> line 29
> No connection specified for project. No database-specific validation will be performed.
> jboss-richfaces-webapp
> The import javax.faces.bean.SessionScoped is never used UserAgent.java
> /jboss-richfaces-webapp/src/main/java/org/jboss/tools/example/richfaces/util
> line 27
> The import javax.faces.bean.ManagedBean is never used
> UserAgent.java
> /jboss-richfaces-webapp/src/main/java/org/jboss/tools/example/richfaces/util
> line 26
--
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
13 years, 6 months
[JBoss JIRA] (RF-12296) Improve CDK c:forEach typing
by Paul Dijou (JIRA)
Paul Dijou created RF-12296:
-------------------------------
Summary: Improve CDK c:forEach typing
Key: RF-12296
URL: https://issues.jboss.org/browse/RF-12296
Project: RichFaces
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Components: cdk
Affects Versions: 4.2.2.Final
Environment: All
Reporter: Paul Dijou
As we can see on [this comment|https://issues.jboss.org/browse/RF-10037?focusedCommentId=1269671...], you currently need to assign a list/array to a var before using it inside a {{<c:forEach>}} or the CDK doesn't know its correct type.
As suggested by Lukas, I agree to add a {{cdk:itemType}} (or {{cdk:type}} like in the {{<cdk:object>}} tag) to specify manually the type of the object inside the iteration. If this attribute is present in the {{<c:forEach>}}, then the CDK use it to cast the object, otherwise it does the same as currently, no regression.
In addition, for Enum, I would also try to use the initial import :
{code:xml}
<cdk:import package="org.richfaces.component" names="MyEnum" />
{code}
In order to know the type of each Enum and then be able to correctly cast the following code :
{code:xml}
<cc:implementation>
<c:forEach items="#{MyEnum.values()}" var="item">
#{item}
</c:forEach>
</cc:implementation>
{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
13 years, 6 months