[JBoss JIRA] Created: (RF-3453) rich:modalPanel does not work with event listeners added using a4j:support
by Paul Speijers (JIRA)
rich:modalPanel does not work with event listeners added using a4j:support
--------------------------------------------------------------------------
Key: RF-3453
URL: http://jira.jboss.com/jira/browse/RF-3453
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.5, 3.1.x
Reporter: Paul Speijers
Fix For: 3.1.6, 3.1.x
I wanted to perform some finalization work when I hide a modalPanel and an obvious solution would be to register an action to the onhide event using an a4j:support. However, the action is never executed and it seems like the event listener is not registered with the onhide event.
<rich:modalPanel id="#{modalPanelId}" height="600" top="20" left="112" width="900" resizeable="false" moveable="true"
onshow="focusFirstModalPanelElement('#{modalPanelId}')">
<a4j:support event="onhide" action="#{modalPanelDelegator.closePanel}" oncomplete="alert('test2')"/>
.....
</rich:modalPanel>
--
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, 11 months
[JBoss JIRA] Created: (RF-5240) Exception processing in the richfaces custom listeners
by Anton Belevich (JIRA)
Exception processing in the richfaces custom listeners
-------------------------------------------------------
Key: RF-5240
URL: https://jira.jboss.org/jira/browse/RF-5240
Project: RichFaces
Issue Type: Feature Request
Affects Versions: 3.3.0
Reporter: Anton Belevich
Assignee: Anton Belevich
Fix For: Future
exception which could occur in our listeners should be wrapped with AbortProcessingException (see MethodBindingValueChangeListener, MethodExpressionValueChangeListener for the implementation details)
Hint: It's seems we should change componentTag.vm (setProperties) component.vm (getters generation) templates in our component generator for this purpose and implement custom MethodExpressionListeners, MethodBindingListeners like sun do with valueChangeListener, actionListener
--
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, 11 months
[JBoss JIRA] Created: (RF-3305) Calendar: doExpand doesn't work with custom events
by Nick Belaevski (JIRA)
Calendar: doExpand doesn't work with custom events
--------------------------------------------------
Key: RF-3305
URL: http://jira.jboss.com/jira/browse/RF-3305
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.1
Reporter: Nick Belaevski
Assigned To: Pavel Yaschenko
Priority: Minor
Fix For: 3.2.2
<rich:modalPanel id="modalPanelID"...
<f:facet name="header">
<h:outputText value="Heder goes here..." />
</f:facet>
<f:facet name="controls">
<h:graphicImage value="/pics/error.gif" onclick="Richfaces.hideModalPanel('modalPanelID');return false;" />
</f:facet>
...
<rich:componentControl event="onshow" for="calendarID" operation="doExpand"></rich:componentControl>
...
</rich:modalPanel>
...
<rich:calendar id="calendarID"></rich:calendar>
Step 1. Navigate to page contained modalPanel & calendar components.
Step 2. Call modalPanel.
Step 3. Verify calendar activity.
Actual behavior:
Calendar doesn't expand.
--
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, 11 months
[JBoss JIRA] Created: (RF-7034) Missing selected items in pickList
by Rainer Flicker (JIRA)
Missing selected items in pickList
----------------------------------
Key: RF-7034
URL: https://jira.jboss.org/jira/browse/RF-7034
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.3.1
Environment: JDK 1.5.0_11
JBoss AS 4.2.3.GA
Seam 2.1.1.GA
JSF 1.2_09-b01-BETA1
JSF-Facelets 1.1.15.B1
Richfaces 3.1.1.CR2
Reporter: Rainer Flicker
If a pickList reads selected items from a variable in a backing bean, initial values in the list of selected items are missing
after a submit. (Works with 3.3.0.GA)
--- xhtml snippet ---
<rich:pickList value="#{userDetailsManager.selRoleNames}"
sourceListWidth="200px" targetListWidth="200px">
<f:selectItems value="#{userDetailsManager.roleNames}" />
</rich:pickList>
----
--- userDetailsManager snippet ---
private List<SelectItem> roleNames = new ArrayList<SelectItem>();
private List<String> selRoleNames = new ArrayList<String>();
for (Role role : roles) {
roleNames.add(new SelectItem(""+role.getId(), role.getName()));
}
for (Role role : user.getRoles()) {
selRoleNames.add("" + role.getId());
}
----
--
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, 11 months
[JBoss JIRA] Created: (RF-7274) CLONE -NullPointerException when uploading with rich:fileUpload
by jerarckill (JIRA)
CLONE -NullPointerException when uploading with rich:fileUpload
---------------------------------------------------------------
Key: RF-7274
URL: https://jira.jboss.org/jira/browse/RF-7274
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.3.1
Environment: tomcat 6.0.18
facelets 1.1.14
myfaces 1.2.6
Reporter: jerarckill
Assignee: Nick Belaevski
Fix For: 3.3.1
When using rich:fileUpload in the current 3.3.1 Snapshot (20090427) a nullpinter occurs when performing the upload:
javax.faces.FacesException: Exception while decoding component : {Component-Path : [Class: org.ajax4jsf.component.AjaxViewRoot,ViewId: /examples/fileUpload/index.xhtml][Class: org.richfaces.component.html.HtmlTabPanel,Id: j_id71][Class: org.richfaces.component.html.HtmlTab,Id: j_id72][Class: javax.faces.component.html.HtmlForm,Id: j_id74][Class: org.richfaces.component.html.HtmlFileUpload,Id: j_id75]}
at javax.faces.component.UIComponentBase.decode(UIComponentBase.java:583)
at javax.faces.component.UIInput.decode(UIInput.java:231)
at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:709)
at javax.faces.component.UIInput.processDecodes(UIInput.java:149)
at javax.faces.component.UIForm.processDecodes(UIForm.java:65)
at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:705)
at org.richfaces.component.UISwitchablePanel.processDecodes(UISwitchablePanel.java:170)
at org.richfaces.component.UITabPanel.processDecodes(UITabPanel.java:155)
at org.ajax4jsf.component.AjaxViewRoot$1.invokeContextCallback(AjaxViewRoot.java:392)
at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:238)
at org.ajax4jsf.component.AjaxViewRoot.processDecodes(AjaxViewRoot.java:409)
at org.apache.myfaces.lifecycle.ApplyRequestValuesExecutor.execute(ApplyRequestValuesExecutor.java:32)
at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:103)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:76)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:151)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at de.solseit.framework.base.lifecyle.FrameworkFilter.doFilter(FrameworkFilter.java:265)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:344)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:347)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)
at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:381)
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.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
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:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException
at org.richfaces.renderkit.FileUploadRendererBase.doDecode(FileUploadRendererBase.java:140)
at org.ajax4jsf.renderkit.RendererBase.decode(RendererBase.java:75)
at javax.faces.component.UIComponentBase.decode(UIComponentBase.java:579)
... 45 more
the component is used in this very simple way (no listener-binding, for simplicity):
<rich:fileUpload
maxFilesQuantity="3"
immediateUpload="false"
acceptedTypes="jpg" />
--
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, 11 months
[JBoss JIRA] Created: (RF-5591) User is unable to clean the existing date in <rich:calendar> if <a4j:support> is used to re-render the input
by Igor Dikhtyaruk (JIRA)
User is unable to clean the existing date in <rich:calendar> if <a4j:support> is used to re-render the input
------------------------------------------------------------------------------------------------------------
Key: RF-5591
URL: https://jira.jboss.org/jira/browse/RF-5591
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.2
Reporter: Igor Dikhtyaruk
example:
xhtml:
<rich:calendar id="selectedDate" datePattern="dd MMM yyyy"
value="#{myBean.selectedDate}" enableManualInput="true"
popup="true">
<a4j:support ajaxSingle="true" event="oninputchange"
reRender="selectedDate" bypassUpdates="true" />
<a4j:support ajaxSingle="true" event="onchanged"
reRender="selectedDate" bypassUpdates="true" />
</rich:calendar>
java bean:
package au.gov.austrac;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
import org.jboss.seam.annotations.Name;
@Name("myBean")
public class MyBean {
private Date selectedDate = new Date();
public Date getSelectedDate() {
return selectedDate;
}
public void setSelectedDate(Date selectedDate) {
this.selectedDate = selectedDate;
}
}
--
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
15 years
[JBoss JIRA] Created: (RF-7269) RichFaces Javascript error while page is loading for the first time
by Amarendra Nandigam (JIRA)
RichFaces Javascript error while page is loading for the first time
-------------------------------------------------------------------
Key: RF-7269
URL: https://jira.jboss.org/jira/browse/RF-7269
Project: RichFaces
Issue Type: Bug
Components: performance
Affects Versions: 3.3.1, 3.3.0
Environment: tomcat server 6.0.18, spring webflow 2.0.6, facelets 1.1.14, myfaces 1.2.2
Reporter: Amarendra Nandigam
The problem seems to be happening when the browser downloads js files for the listShuttle. During that time the script method is called before even script gets loaded. Here are the details that we found:
can now reliably reproduce the javascript errors. Here are my steps:
1) Clear browser cache. Go to Tools > Internet Options > General Tab >
Temporary Internet Files section. Click the Delete Files button, check the box
for "Delete all offline content", click OK, click the Delete Files button
again, leave the box unchecked this time, click OK again, click OK on the
Internet Options window.
2) Login as JOGLETRE
3) Go to Order RFIs
4) Select RFI Type = Architectural Plan Addition/Revision
5) You may get the errors. If not, logout, close your browser window, and
repeat steps 1-4. It seems to happen most of the time.
I used the Microsoft Script Debugger to identify the sources of the errors.
http://blogs.msdn.com/ie/archive/2004/10/26/247912.aspx
Error 1: "'undefined' is null or not an object" is caused by
3_3_0.GAorg.ajax4jsf.javascript.PrototypeScript, line 9, characters 117 to 140:
value=source[property];
Error 2: "'RichFaces.ListShuttle.Target.SelectItem' is null or not an object"
is caused by this block of code (entire block is highlighted by the Script
Debugger):
new Richfaces.ListShuttle(
new Richfaces.ListShuttle.Target(
'submitForm:options',
'submitForm:optionstlInternal_tab',
'submitForm:optionstlInternal_header_tab',
'submitForm:optionstlFocusKeeper',
[['up', 'disup'], ['down', 'disdown'],
['last', 'dislast'], ['first','disfirst']],
'submitForm:optionssortLabel',
{onorderchanged:null,
onorderchange:null,
ontopclick:null,
onbottomclick:null,
onupclick:null,
ondownclick:null},
Richfaces.ListShuttle.Target.SelectItem,
null,
null
),
new Richfaces.ListShuttle.Source(
'submitForm:options',
'submitForm:optionsinternal_tab',
'submitForm:optionsinternal_header_tab',
'submitForm:optionsfocusKeeper',
undefined,
Richfaces.ListShuttle.Source.SelectItem,
null,
null),
"submitForm:options",
[['copy', 'discopy'], ['copyAll', 'discopyAll'],
['remove', 'disremove'], ['removeAll','disremoveAll']],
"false",
{onlistchanged:null,
onlistchange:null,
oncopyallclick:null,
oncopyclick:null,
onremoveallclick:null,
onremoveclick:null,
onfocus:null,
onblur:null
}
);
--
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
15 years