[JBoss JIRA] (RF-12523) a4j:commandButton generates duplicated context path using a resource value expression within image attribute
by Juraj Húska (JIRA)
[ https://issues.jboss.org/browse/RF-12523?page=com.atlassian.jira.plugin.s... ]
Juraj Húska updated RF-12523:
-----------------------------
Assignee: Lukáš Fryč (was: Juraj Húska)
> a4j:commandButton generates duplicated context path using a resource value expression within image attribute
> ------------------------------------------------------------------------------------------------------------
>
> Key: RF-12523
> URL: https://issues.jboss.org/browse/RF-12523
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: resource handling
> Affects Versions: 4.2.2.Final, 4.3.0.M1
> Environment: Windows 7 Professional, JBoss AS 6.1.0.Final, Mojarra 2.1.7
> Reporter: Andreas Owczarek
> Assignee: Lukáš Fryč
> Labels: ajax4jsf
>
> a4j:commandButton produces an extra context path prefix for the image resource path, when it is used with the value expression {code}#{resource['library:file']}{code} for the image attribute.
> {code:xml|title=Example code}
> <a4j:commandButton image="#{resource['icons:icon.gif']}" value="#{resource['icons:icon.gif']}"/>
> {code}
> {code:xml|title=Generated Result code}
> <input type="image" alt="/com.example.my.context.path/faces/javax.faces.resource/icon.gif?ln=icons" src="/com.example.my.context.path/com.example.my.context.path/faces/javax.faces.resource/icon.gif?ln=icons" value="/com.example.my.context.path/faces/javax.faces.resource/icon.gif?ln=icons" onclick="RichFaces.ajax("j_idt76",event,{"incId":"1"} );return false;" name="j_idt76" id="j_idt76">
> {code}
> The generated code show the correct value for the expression within the generated button label, but the image could not be located correctly because of the wrong generated image resource path.
--
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, 11 months
[JBoss JIRA] (RF-12523) a4j:commandButton generates duplicated context path using a resource value expression within image attribute
by Juraj Húska (JIRA)
[ https://issues.jboss.org/browse/RF-12523?page=com.atlassian.jira.plugin.s... ]
Juraj Húska commented on RF-12523:
----------------------------------
I have *reproduced the issue* and wrote fundamental tests (please see the linked pull request).
I also wrote tests for:
* plain {{h:commandButton}} - *it works* with it
* {{a4j:commandButton}} with no {{value}} attribute - *it does not work* with it
* {{a4j:commandButton}} with direct reference to the image source - *it works*
That it is why it seems to be RichFaces issue.
> a4j:commandButton generates duplicated context path using a resource value expression within image attribute
> ------------------------------------------------------------------------------------------------------------
>
> Key: RF-12523
> URL: https://issues.jboss.org/browse/RF-12523
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: resource handling
> Affects Versions: 4.2.2.Final, 4.3.0.M1
> Environment: Windows 7 Professional, JBoss AS 6.1.0.Final, Mojarra 2.1.7
> Reporter: Andreas Owczarek
> Assignee: Juraj Húska
> Labels: ajax4jsf
>
> a4j:commandButton produces an extra context path prefix for the image resource path, when it is used with the value expression {code}#{resource['library:file']}{code} for the image attribute.
> {code:xml|title=Example code}
> <a4j:commandButton image="#{resource['icons:icon.gif']}" value="#{resource['icons:icon.gif']}"/>
> {code}
> {code:xml|title=Generated Result code}
> <input type="image" alt="/com.example.my.context.path/faces/javax.faces.resource/icon.gif?ln=icons" src="/com.example.my.context.path/com.example.my.context.path/faces/javax.faces.resource/icon.gif?ln=icons" value="/com.example.my.context.path/faces/javax.faces.resource/icon.gif?ln=icons" onclick="RichFaces.ajax("j_idt76",event,{"incId":"1"} );return false;" name="j_idt76" id="j_idt76">
> {code}
> The generated code show the correct value for the expression within the generated button label, but the image could not be located correctly because of the wrong generated image resource path.
--
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, 11 months
[JBoss JIRA] (RF-12465) Resolve build time issues
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/RF-12465?page=com.atlassian.jira.plugin.s... ]
Lukáš Fryč resolved RF-12465.
-----------------------------
Resolution: Done
> Resolve build time issues
> -------------------------
>
> Key: RF-12465
> URL: https://issues.jboss.org/browse/RF-12465
> Project: RichFaces
> Issue Type: Sub-task
> Security Level: Public(Everyone can see)
> Components: build/distribution
> Reporter: Lukáš Fryč
> Assignee: Lukáš Fryč
> Fix For: 5.0.0.M1
>
>
> Full build takes ~23 sec, incremental build (no changes) ~7 sec.
> {code:title=*Incremental Build*}
> [module instantiation started]
> [module instantiation completed: 463 ms]
> [java source processing started]
> [java source processing completed: 708 ms]
> [non-java source processing started]
> [builder started: RendererTemplateParser]
> [builder completed: 1 ms]
> [builder started: FacesConfigParser]
> [builder completed: 0 ms]
> [non-java source processing completed: 91 ms]
> [library verification started]
> [library verification completed: 1493 ms]
> [library generation started]
> [library generation completed: 1318 ms]
> [cdk completed: 7042 ms]
> {code}
> {code:title=*Full Build*}
> [cdk started: /mnt/workspace/workspaces/build-restructure/core/impl/.]
> [module instantiation started]
> [module instantiation completed: 469 ms]
> [java source processing started]
> [java source processing completed: 9890 ms]
> [non-java source processing started]
> [builder started: RendererTemplateParser]
> [builder completed: 657 ms]
> [builder started: FacesConfigParser]
> [builder completed: 516 ms]
> [non-java source processing completed: 1255 ms]
> [library verification completed: 1354 ms]
> [library generation completed: 7036 ms]
> [cdk completed: 22750 ms]
> {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, 11 months