[JBoss JIRA] (RF-10927) Implement resources loading strategies
by Lukáš Fryč (Commented) (JIRA)
[ https://issues.jboss.org/browse/RF-10927?page=com.atlassian.jira.plugin.s... ]
Lukáš Fryč commented on RF-10927:
---------------------------------
In M3, resource loading strategies has been implemented as follows:
* maven-resources-plugin generates packed/compressed resources into org.richfaces.staticResource library (distributed in richfaces-components-ui.jar)
* resource compression is turned on in specific project stages defined by JSF (Development, Production, ...)
** user has ability to redefine which feature is applied in which stage (configuration supports all JSF stages + keyword All)
** context-param {{org.richfaces.staticResourceCompressedPhases}} - default: Production,SystemTest
** context-param {{org.richfaces.staticResourcePackedPhases}} - default: none
* user has ability to redefine mapping completely
** {{org.richfaces.staticResourceLocation}} defines location from where should be static resources served (as in previous versions)
*** default: #{facesContext.externalContext.requestContextPath}/org.richfaces.resources/javax.faces.resource/org.richfaces.staticResource/%Features%/#{resourceLocation}
*** where %Features%% stands for {,Packed,Compressed,PackedCompressed}
** {{org.richfaces.staticResourceMappingLocation}} redefines where mapping file is located on classpath
*** default: META-INF/richfaces/staticResourceMapping/%Features%.properties
> Implement resources loading strategies
> --------------------------------------
>
> Key: RF-10927
> URL: https://issues.jboss.org/browse/RF-10927
> Project: RichFaces
> Issue Type: Task
> Security Level: Public(Everyone can see)
> Components: optimization
> Affects Versions: 4.0.0.Milestone1
> Reporter: Ilya Shaikovsky
> Assignee: Lukáš Fryč
> Fix For: 4.1.0.Milestone3
>
>
> http://community.jboss.org/message/558629#558629
--
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, 11 months
[JBoss JIRA] Created: (RF-11115) a4j:push CDI Push sample in demo of push component in showcase does not work on tomcat 6
by Juraj Huska (JIRA)
a4j:push CDI Push sample in demo of push component in showcase does not work on tomcat 6
----------------------------------------------------------------------------------------
Key: RF-11115
URL: https://issues.jboss.org/browse/RF-11115
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: examples
Affects Versions: 4.1.0.Milestone2
Environment: richfaces-showcase-4.1.0-SNAPSHOT, apache-tomcat-6.0.32
Reporter: Juraj Huska
Assignee: Lukáš Fryč
Sample for CDI Push in demo of aj4:push component does not work on tomcat6. It throws this exception:
/richfaces/push/samples/pushCdi-sample.xhtml @12,59 action="#{pushBean.sendMessage(message)}" Error Parsing: #{pushBean.sendMessage(message)}
Stacktrace:
javax.faces.view.facelets.TagAttributeException: /richfaces/push/samples/pushCdi-sample.xhtml @12,59 action="#{pushBean.sendMessage(message)}" Error Parsing: #{pushBean.sendMessage(message)}
at com.sun.faces.facelets.tag.TagAttributeImpl.getMethodExpression(TagAttributeImpl.java:232)
at com.sun.faces.facelets.tag.jsf.ActionSourceRule$ActionMapper2.applyMetadata(ActionSourceRule.java:104)
at com.sun.faces.facelets.tag.MetadataImpl.applyMetadata(MetadataImpl.java:81)
at javax.faces.view.facelets.MetaTagHandler.setAttributes(MetaTagHandler.java:129)
at javax.faces.view.facelets.DelegatingMetaTagHandler.setAttributes(DelegatingMetaTagHandler.java:102)
at org.richfaces.view.facelets.html.BehaviorsAddingComponentHandlerWrapper.setAttributes(BehaviorsAddingComponentHandlerWrapper.java:113)
at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.doNewComponentActions(ComponentTagHandlerDelegateImpl.java:402)
at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:159)
at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
at org.richfaces.view.facelets.html.BehaviorsAddingComponentHandlerWrapper.applyNextHandler(BehaviorsAddingComponentHandlerWrapper.java:53)
at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:184)
at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
at org.richfaces.view.facelets.html.BehaviorsAddingComponentHandlerWrapper.applyNextHandler(BehaviorsAddingComponentHandlerWrapper.java:53)
at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:184)
at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
at com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:166)
at com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
at com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:82)
at com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:308)
at com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:367)
at com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:346)
at com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:199)
at com.sun.faces.facelets.tag.ui.IncludeHandler.apply(IncludeHandler.java:108)
at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
at com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:166)
at com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
at com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:82)
at com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:308)
at com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:367)
at com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:346)
at com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:199)
at com.sun.faces.facelets.tag.ui.IncludeHandler.apply(IncludeHandler.java:108)
at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
at com.sun.faces.facelets.tag.ui.DefineHandler.applyDefinition(DefineHandler.java:103)
at com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:178)
at com.sun.faces.facelets.impl.DefaultFaceletContext$TemplateManager.apply(DefaultFaceletContext.java:395)
at com.sun.faces.facelets.impl.DefaultFaceletContext.includeDefinition(DefaultFaceletContext.java:366)
at com.sun.faces.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:108)
at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
at org.richfaces.view.facelets.html.BehaviorsAddingComponentHandlerWrapper.applyNextHandler(BehaviorsAddingComponentHandlerWrapper.java:53)
at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:184)
at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
at com.sun.faces.facelets.tag.jsf.core.ViewHandler.apply(ViewHandler.java:167)
at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
at com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
at com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:82)
at com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:308)
at com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:367)
at com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:346)
at com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:199)
at com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:155)
at com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
at com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:82)
at com.sun.faces.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:152)
at com.sun.faces.application.view.FaceletViewHandlingStrategy.buildView(FaceletViewHandlingStrategy.java:744)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:100)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
at org.richfaces.demo.arrangeablemodel.PersistenceLifecycle.render(PersistenceLifecycle.java:66)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:313)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.richfaces.webapp.PushFilter.doFilter(PushFilter.java:130)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:662)
Caused by: javax.el.ELException: Error Parsing: #{pushBean.sendMessage(message)}
at org.apache.el.lang.ExpressionBuilder.createNodeInternal(ExpressionBuilder.java:147)
at org.apache.el.lang.ExpressionBuilder.build(ExpressionBuilder.java:172)
at org.apache.el.lang.ExpressionBuilder.createMethodExpression(ExpressionBuilder.java:223)
at org.apache.el.ExpressionFactoryImpl.createMethodExpression(ExpressionFactoryImpl.java:57)
at org.jboss.weld.util.el.ForwardingExpressionFactory.createMethodExpression(ForwardingExpressionFactory.java:43)
at org.jboss.weld.el.WeldExpressionFactory.createMethodExpression(WeldExpressionFactory.java:62)
at com.sun.faces.facelets.tag.TagAttributeImpl.getMethodExpression(TagAttributeImpl.java:222)
... 80 more
Caused by: org.apache.el.parser.ParseException: Encountered " "(" "( "" at line 1, column 23.
Was expecting one of:
"}" ...
"." ...
"[" ...
">" ...
"gt" ...
"<" ...
"lt" ...
">=" ...
"ge" ...
"<=" ...
"le" ...
"==" ...
"eq" ...
"!=" ...
"ne" ...
"&&" ...
"and" ...
"||" ...
"or" ...
"*" ...
"+" ...
"-" ...
"/" ...
"div" ...
"%" ...
"mod" ...
at org.apache.el.parser.ELParser.generateParseException(ELParser.java:2142)
at org.apache.el.parser.ELParser.jj_consume_token(ELParser.java:2024)
at org.apache.el.parser.ELParser.DeferredExpression(ELParser.java:113)
at org.apache.el.parser.ELParser.CompositeExpression(ELParser.java:40)
at org.apache.el.lang.ExpressionBuilder.createNodeInternal(ExpressionBuilder.java:115)
... 86 more
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 11 months
[JBoss JIRA] Created: (RF-11375) jQuery script file broken in FF6 + FF7
by Heinrich Freiherr von Schwerin (JIRA)
jQuery script file broken in FF6 + FF7
--------------------------------------
Key: RF-11375
URL: https://issues.jboss.org/browse/RF-11375
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: base functionality
Affects Versions: 4.0.0.Final
Environment: Windows 7 FF6 + FF7
Reporter: Heinrich Freiherr von Schwerin
Priority: Blocker
Ajax requets are not working in Firefox 6 and Firefox 7.
An error appears while laoding the jquery.js from <application>/javax.faces.resources/jQuery.js.html
{noformat} unterminated string literal .. "*": "* jquery.js.html (Line 2199){noformat}
This is how the line looks in IE and FF 3-5 : (Affected Line in jquery.js 6371)
{code:JavaScript}
ajaxSettings: {
url: ajaxLocation,
isLocal: rlocalProtocol.test( ajaxLocParts[ 1 ] ),
global: true,
type: "GET",
contentType: "application/x-www-form-urlencoded",
processData: true,
async: true,
/*
timeout: 0,
data: null,
dataType: null,
username: null,
password: null,
cache: null,
traditional: false,
headers: {},
crossDomain: null,
*/
accepts: {
xml: "application/xml, text/xml",
html: "text/html",
text: "text/plain",
json: "application/json, text/javascript",
"*": "*/*"
},
contents: {
xml: /xml/,
html: /html/,
json: /json/
},
{code}
And this how it looks in FF6+
{code:JavaScript}
ajaxSettings: {
url: ajaxLocation,
isLocal: rlocalProtocol.test( ajaxLocParts[ 1 ] ),
global: true,
type: "GET",
contentType: "application/x-www-form-urlencoded",
processData: true,
async: true,
/*
timeout: 0,
data: null,
dataType: null,
username: null,
password: null,
cache: null,
traditional: false,
headers: {},
crossDomain: null,
*/
accepts: {
xml: "application/xml,text/xml",
html: "text/html",
text: "text/plain",
json: "application/json,text/javascript",
"*": "*
/**/*;q=0.01" : "" ) :
s.accepts[ "*" ];
{code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 11 months
[JBoss JIRA] (RF-11457) Unexpected caret move in rich:editor with IE8 + MS IME
by Toshiya Kobayashi (Created) (JIRA)
Unexpected caret move in rich:editor with IE8 + MS IME
------------------------------------------------------
Key: RF-11457
URL: https://issues.jboss.org/browse/RF-11457
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Environment: Windows7/XP
IE8
MS IME(Japanese)
Reporter: Toshiya Kobayashi
You can reproduce it with http://livedemo.exadel.com/richfaces-demo/richfaces/editor.jsf
I just reproduced with Japanese IME, not sure how other languages work.
- Toggle MS IME on
- Enter "ほんぶん"
- Press SPACE key to change it to "本文"
-- Then the caret moves to the line head. Weird.
- Enter "です"
- "本文" disappears and only "です" remains.
The issue is reproducible only when you write something for the first time to the empty text area. After that, the issue wouldn't happen.
I'm not sure the details of how TinyMCE handles IME keyDown events but the root cause seems to me that TinyMCE doesn't generate <p> tag in the empty text area for IE8 while it does for FireFox and Chrome.
A workaround is populating "<p/>" as the initial value for the rich:editor.
Example)
xhtml:
{code}
<rich:editor id="editor" width="400" height="300" viewMode="visual" value="#{editorBean.value}" ></rich:editor>
{code}
EditorBean:
{code}
private String value = "<p/>";
{code}
This is reproducible with pure TinyMCE 3.2 and the latest 3.4.6 still have a similar issue (The Behaviour is a bit different but <p> is not generated for IE8 yet).
--
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, 11 months
[JBoss JIRA] Created: (RF-11446) a4j:jsFunction actionListener= method called before a4j:param assignTo setter
by Brendan Healey (JIRA)
a4j:jsFunction actionListener= method called before a4j:param assignTo setter
-----------------------------------------------------------------------------
Key: RF-11446
URL: https://issues.jboss.org/browse/RF-11446
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 4.0.0.Final
Environment: Mojarra 2.1.3
Reporter: Brendan Healey
In the following scenario when the jsTest() function is called then in
the server log I see the jsTestAction method executing before the
setJsTestParam method, so the parameter supplied by a4j:param is useless.
<a4j:jsFunction name="jsTest"
oncomplete="alert(event.data)"
actionListener="#{bean.jsTestAction}"
data="#{bean.jsTestData}">
<a4j:param name="p1" value="Fred" assignTo="#{bean.jsTestParam}"/>
</a4j:jsFunction>
The workaround is to use action= rather than actionListener, but this
is a pretty fundamental issue and needs to get fixed IMHO.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 11 months