[JBoss JIRA] (RF-13193) Rename the resource library to account for RF 4/5 resource overlap
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/RF-13193?page=com.atlassian.jira.plugin.s... ]
Lukáš Fryč reassigned RF-13193:
-------------------------------
Assignee: Michal Petrov
Michal, could you clarify whether you see any problems with overlap?
Have those issue been potentially solved already?
> Rename the resource library to account for RF 4/5 resource overlap
> ------------------------------------------------------------------
>
> Key: RF-13193
> URL: https://issues.jboss.org/browse/RF-13193
> Project: RichFaces
> Issue Type: Task
> Security Level: Public(Everyone can see)
> Components: resource handling
> Reporter: Brian Leathem
> Assignee: Michal Petrov
> Priority: Critical
> Fix For: 5.0.0.Alpha2
>
> Original Estimate: 1 hour
> Remaining Estimate: 1 hour
>
> Rename the RichFaces resource library name to something like: _org.richfaces.ui_, or _org.richfaces.widgets_. This will allow RF 4 and RF 5 components to co-exist when resource names overlap.
--
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, 5 months
[JBoss JIRA] (RF-12270) Allow RichFaces to bring new CSS/JS resources into the page after AJAX request
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/RF-12270?page=com.atlassian.jira.plugin.s... ]
Lukáš Fryč commented on RF-12270:
---------------------------------
Note that issue can be resolved by leveraging modular loading of dependencies (AMD).
There are two approaches:
1) we will hard-code AMD's {{require}} directive to all script executions
2) jsf.js will intercept beforedomupdate phase and load all requires dependencies - the dependency list may automatically generated from @ResourceDependency
> Allow RichFaces to bring new CSS/JS resources into the page after AJAX request
> ------------------------------------------------------------------------------
>
> Key: RF-12270
> URL: https://issues.jboss.org/browse/RF-12270
> Project: RichFaces
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: core, resource handling
> Affects Versions: 4.2.2.Final
> Reporter: Tomasz Kurpios
> Fix For: 5.0.0.Alpha2
>
> Original Estimate: 2 days
> Remaining Estimate: 2 days
>
> Quoting the extract from official documentation (3.5 Restrictions):
> ??JSF 2 does not allow resources such as JavaScript or Cascading Style Sheets (CSS) to be added if the element requiring the resource is not initially present in the JSF tree. As such, components added to the tree via Ajax must have any required resources already loaded. In RichFaces, any components added to the JSF tree should have components with corresponding resources included on the main page initially. To facilitate this, components can use the rendered="false" setting to not be rendered on the page.??
>
> Setting rendered="false" is OK when components are in the tree. However, if there are lots of components on a single view, for performance reasons some parts might be excluded by means of <c:if> or <c:choose> tags.
> That's at least what could be done in 3.3.3. It worked fine back then. However, the JSF2 AJAX mechanism does not support this feature. This makes usage of aforementioned tags impossible in some cases.
--
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, 5 months
[JBoss JIRA] (RF-13252) a4j:ajax includes jsf.js script twice
by Jonáš Trantina (JIRA)
[ https://issues.jboss.org/browse/RF-13252?page=com.atlassian.jira.plugin.s... ]
Jonáš Trantina updated RF-13252:
--------------------------------
Description:
When a4j:script is used in the page like so:
{noformat}
<h:commandLink value="Click me ">
<a4j:ajax event="click" render="@form"/>
</h:commandLink>
{noformat}
Then two script tags pointing to jsf.js are added to the page, once in the head by the inclusion of @ResourceDependency [1], and once again by Overriding the ClientBehaviorRenderer#getScript method [2,3].
Note, that according to Brian, resolving this without introducing any functional regressions may require the resolution of RF-12270 [4].
[1] https://github.com/richfaces/richfaces/blob/master/framework/src/main/jav...
[2] https://github.com/richfaces/richfaces/blob/master/framework/src/main/jav...
[3] https://github.com/jboss/mojarra/blob/2.1.21-jbossorg-1/jsf-api/src/main/...
[4] https://issues.jboss.org/browse/RF-12270
was:
When a4j:script is used in the page like so:
{noformat}
<h:commandLink value="Click me ">
<a4j:ajax event="click" render="@form"/>
</h:commandLink>
{noformat}
Then two script tags pointing to jsf.js are added to the page, once in the head by the inclusion of @ResourceDependency [1], and once again by Overriding the ClientBehaviorRenderer#getScript method [2,3].
[1] https://github.com/richfaces/richfaces/blob/master/framework/src/main/jav...
[2] https://github.com/richfaces/richfaces/blob/master/framework/src/main/jav...
[3] https://github.com/jboss/mojarra/blob/2.1.21-jbossorg-1/jsf-api/src/main/...
> a4j:ajax includes jsf.js script twice
> -------------------------------------
>
> Key: RF-13252
> URL: https://issues.jboss.org/browse/RF-13252
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-a4j-core
> Affects Versions: 4.3.4
> Reporter: Jonáš Trantina
> Attachments: reproducer.zip
>
>
> When a4j:script is used in the page like so:
> {noformat}
> <h:commandLink value="Click me ">
> <a4j:ajax event="click" render="@form"/>
> </h:commandLink>
> {noformat}
> Then two script tags pointing to jsf.js are added to the page, once in the head by the inclusion of @ResourceDependency [1], and once again by Overriding the ClientBehaviorRenderer#getScript method [2,3].
> Note, that according to Brian, resolving this without introducing any functional regressions may require the resolution of RF-12270 [4].
> [1] https://github.com/richfaces/richfaces/blob/master/framework/src/main/jav...
> [2] https://github.com/richfaces/richfaces/blob/master/framework/src/main/jav...
> [3] https://github.com/jboss/mojarra/blob/2.1.21-jbossorg-1/jsf-api/src/main/...
> [4] https://issues.jboss.org/browse/RF-12270
--
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, 5 months