[JBoss JIRA] Created: (RF-6902) slow deployment of richfaces-ui
by David Schlotfeldt (JIRA)
slow deployment of richfaces-ui
-------------------------------
Key: RF-6902
URL: https://jira.jboss.org/jira/browse/RF-6902
Project: RichFaces
Issue Type: Feature Request
Affects Versions: 3.3.0
Reporter: David Schlotfeldt
ResourceBuilderImpl loads resources-config.xml files.
Loading
jar:file:/...../richfaces-ui-3.3.0.GA.jar!/META-INF/resources-config.xml
takes 2-3 seconds.
This is a large issue when you have a number of sites using jsf. We have about 50 or so.. so this adds 1-2 minutes to the start up of jboss.
Can this be optimized in some way? Lazy-initialize in some way? (The config contains a LARGE number of resources. Im not sure what the config loading is doing but I bet we never use more then a handful of them.)
Thanks!
David
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 6 months
[JBoss JIRA] Created: (RF-5598) a4j:push is not portlet session aware
by Dirk Pitt (JIRA)
a4j:push is not portlet session aware
-------------------------------------
Key: RF-5598
URL: https://jira.jboss.org/jira/browse/RF-5598
Project: RichFaces
Issue Type: Bug
Components: portal
Affects Versions: 3.3.0
Environment: Richfaces 3.3.0.CR2, JBoss Portletbridge 1.0.0.B5, JBoss Portal 2.6.4
Reporter: Dirk Pitt
Hallo,
I have funny problem with a4j:pushBean...
We have a web application, which runs perfectly in test environment with single web client.
But if for the same page in the web application another browser client is opened, second browser start receiving the events intended for the first browser...
So my first impression is that push functionality make no distinction about from which session is called...
So I surf little bit in the source code and here what I found....
In org.ajax4jsf.webapp.BaseFilter an instance of PushEventsCounter is obtained with the following call
PushEventsCounter listener = eventsManager .getListener(ajaxPushHeader);
which my debuging shows ajaxPushHeader contains no session specific information. At this point I have to say I am using the JBoss Portal and JBoss Portlet Bridge.
I made some more debuging and I found this....
In org.ajax4jsf.component.UIPush in method getListenerId method only HttpSession case taking into count....
Object session = context.getExternalContext().getSession(false);
StringBuffer id = new StringBuffer();
if(null != session && session instanceof HttpSession){
HttpSession httpSession = (HttpSession) session;
id.append(httpSession.getId());
}
id.append(context.getViewRoot().getViewId());
id.append(NamingContainer.SEPARATOR_CHAR);
id.append(getClientId(context));
return id.toString();
But portal delivers PortletSession object so the SessionId is not there at that is causing the mentioned problem...
Now this problem is quite critical for our project and I can actually deliver code solution to be commited jboss source tree also but the question is how to solve this without putting portal dependencies to Richfaces classes...
Or can we solve this PortletBridge?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 6 months
[JBoss JIRA] Created: (RF-4398) Form: ajax form doesn't handle ajaxSingle in the right way
by Nick Belaevski (JIRA)
Form: ajax form doesn't handle ajaxSingle in the right way
----------------------------------------------------------
Key: RF-4398
URL: https://jira.jboss.org/jira/browse/RF-4398
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.2
Reporter: Nick Belaevski
Assignee: Alexander Smirnov
Fix For: Future
<a4j:form ajaxSubmit="true" ajaxSingle="true" id="a4jform">
Ajax single
<h:inputText />
<h:commandButton actionListener="#{capitalsBean.action}" value="Button" id="button" />
</a4j:form>
Pressing button submits the following parameters:
AJAXREQUEST _viewRoot
a4jform a4jform
a4jform a4jform
a4jform:button Button
a4jform:j_id236 22
ajaxSingle a4jform
autoScroll
javax.faces.ViewState j_id2
ajaxSingle should be a4jform:button, duplicate parameters should not be submitted
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 6 months
[JBoss JIRA] Created: (RF-3273) Ajax response should not send <head> tag
by Dan Allen (JIRA)
Ajax response should not send <head> tag
----------------------------------------
Key: RF-3273
URL: http://jira.jboss.com/jira/browse/RF-3273
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.0
Reporter: Dan Allen
There is an expectation that Ajax responses are reasonably small. However, RichFaces Ajax responses are unreasonably large because the BaseXMLFilter is mistakingly sending the entire <head> tag regardless of whether the response type is Ajax or not. The <head> tag contains many <script> and <link> tags that bloat the response. The BaseXMLFilter should only be sending the <head> tag on a normal response.
Now you might think, "What if the region to be rendered has new components (that were not previously rendered) for which styles and scripts are necessary for proper behavior?" Well, RichFaces is already smart and incorporates these styles and scripts into the initial response even if the associated components are not rendered. So there is absolutely *no* reason to have them sent in the Ajax response.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 6 months
[JBoss JIRA] Created: (RF-2203) suggestionbox in Jboss portal gives err "AjaxRendererUtils - Failed to obtain Response#setHeader() method: java.lang.NoSuchMethodException: org.jboss.portlet.JBossRenderResponse.setHeader(java.lang.String, jave.lan.string)"
by prashant verma (JIRA)
suggestionbox in Jboss portal gives err "AjaxRendererUtils - Failed to obtain Response#setHeader() method: java.lang.NoSuchMethodException: org.jboss.portlet.JBossRenderResponse.setHeader(java.lang.String, jave.lan.string)"
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Key: RF-2203
URL: http://jira.jboss.com/jira/browse/RF-2203
Project: RichFaces
Issue Type: Bug
Environment: jboss portal 2.4.1 jdk1.5 RF3.1.4GA
Reporter: prashant verma
hi here is my code.
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<html>
<head>
<title>repeater</title>
</head>
<body>
<f:view>
<h:form id="RichFacesForm">
<rich:panel header="Simple Echo">
<h:inputText value="#{bean.text}" id="suggest" />
<rich:suggestionbox for="suggest"
suggestionAction="#{bean.autocomplete}" var="suggest" height="50"
width="100">
<h:column>
<h:outputText value="#{suggest}" />
</h:column>
</rich:suggestionbox>
</rich:panel>
</h:form>
</f:view>
</body>
</html>
bean is this :-
public class Bean {
private String text = "";
public Bean() {
}
public String getText() {
return text;
}
public void setText(String text) {
this.text = text;
}
public List autocomplete(Object event) {
String pref = event.toString();
System.out.println("pref : "+pref);
ArrayList a = new ArrayList();
for(int i =0 ;i<10;i++)
a.add(i+"");
System.out.println("a - "+a);
return a;
}
}}
i have made appropriate enteries in the faces-config.xml
Everything is fine but when I try to access the page in the jbossportal then while rerendering this err occurs
.....
16:07:10,923 INFO [STDOUT] pref : 1
16:07:10,923 INFO [STDOUT] engineModelValues - [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
16:07:10,923 INFO [STDOUT] ERROR AjaxRendererUtils - Detecting request character encoding is disable.
16:07:10,923 INFO [STDOUT] ERROR AjaxRendererUtils - Failed to obtain Response#setHeader() method:
java.lang.NoSuchMethodException: org.jboss.portlet.JBossRenderResponse.setHeader(java.lang.String, java.lang.String)
.....
Please suggest.
Thanks in Advance
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 6 months