[JBoss JIRA] Created: (RF-5182) fileUpload: exception on uploading files
by Tsikhon Kuprevich (JIRA)
fileUpload: exception on uploading files
----------------------------------------
Key: RF-5182
URL: https://jira.jboss.org/jira/browse/RF-5182
Project: RichFaces
Issue Type: Bug
Environment: 3.3.0.BETA1
myfaces 1.2.5
tomcat 6
FF 2
Reporter: Tsikhon Kuprevich
Assignee: Nick Belaevski
Just uploaded jpeg
PhaseTracker.afterPhase()RENDER_RESPONSE(6)
Dec 1, 2008 5:20:08 PM javax.faces.webapp._ErrorPageWriter handleThrowable
SEVERE: An exception occurred
javax.faces.FacesException: Exception while decoding component : {Component-Path : [Class: org.ajax4jsf.component.AjaxViewRoot,ViewId: /pages/Rich/Rich.jsp][Class: javax.faces.component.html.HtmlForm,Id: formID][Class: javax.faces.component.html.HtmlPanelGrid,Id: richGridID][Class: javax.faces.component.html.HtmlPanelGroup,Id: j_id_jsp_1047952894_9][Class: javax.faces.component.UINamingContainer,Id: FileUploadSubviewID][Class: org.richfaces.component.html.HtmlFileUpload,Id: fileUploadID]}
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.UIComponentBase.processDecodes(UIComponentBase.java:705)
at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:705)
at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:705)
at javax.faces.component.UIForm.processDecodes(UIForm.java:65)
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 org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:307)
at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:419)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:550)
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:246)
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:301)
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:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NullPointerException
at org.richfaces.renderkit.FileUploadRendererBase.doDecode(FileUploadRendererBase.java:135)
at org.ajax4jsf.renderkit.RendererBase.decode(RendererBase.java:76)
at javax.faces.component.UIComponentBase.decode(UIComponentBase.java:579)
... 38 more
--
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, 11 months
[JBoss JIRA] Created: (RF-5841) pattern of f:convertDateTime isn't applied for output on the same page.
by Mikhail Vitenkov (JIRA)
pattern of f:convertDateTime isn't applied for output on the same page.
-----------------------------------------------------------------------
Key: RF-5841
URL: https://jira.jboss.org/jira/browse/RF-5841
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.3.1
Environment: IE6, IE7, FF 3.1.3, Safari 3.1, Opera 9.62(3.3.1-snapshot)
Reporter: Mikhail Vitenkov
Assignee: Nick Belaevski
#1. Add following code on xhtml page:
<h:form>
<h:selectOneRadio
value="#{custom.pattern}">
<f:selectItems value="#{custom.catalogDateFormatList}"
hideNoSelectionLabel="true" />
<a4j:support event="onclick" reRender="testDataTable,out">
</a4j:support>
</h:selectOneRadio>
<rich:dataTable id="testDataTable" value="#{custom.testList}"
width="100%" var="_cat">
<rich:column>
<h:outputText value="_cat" />
<h:outputText value="#{custom.testDate}">
<f:convertDateTime pattern="#{custom.pattern}" />
</h:outputText>
</rich:column>
</rich:dataTable>
<br />
<h:commandButton value="submit" />
<h:outputText id="out" value="#{custom.testDate}">
<f:convertDateTime pattern="#{custom.pattern}" />
</h:outputText>
</h:form>
#2. Use following java bean code:
private String pattern;
private ArrayList<SelectItem> catalogDateFormatList;
private ArrayList<String> testList;
private Date testDate;
...
+getters and setters
...
Inside constructor place:
catalogDateFormatList = new ArrayList<SelectItem>();
testList = new ArrayList<String>();
pattern = "d/MMM/y";
catalogDateFormatList.add(new SelectItem("d/MMM/y","d/MMM/y"));
catalogDateFormatList.add(new SelectItem("dd/M/yy HH:mm","dd/M/yy HH:mm"));
for(int i=0;i<2;i++){
testList.add("#" + i + " ");
}
testDate = new Date();
#3. Navigate to page.
#4. Verify #{custom.testDate} date format - d/MMM/y
#5. Select "dd/M/yy HH:mm" radio button and verify date formay again.
Actual behavior:
Date pattern isn't applied for both output(inside and outside rich:dataTable).
But if you place tested outputs on another page and navigate to it, using a4j:support action -
pattern, selected from radio button group is applied.
--
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, 11 months
[JBoss JIRA] Created: (RF-4096) 3.2.2.BETA3: Javascript error for <a4j:support event="onRowDblClick">
by Juergen Zimmermann (JIRA)
3.2.2.BETA3: Javascript error for <a4j:support event="onRowDblClick">
---------------------------------------------------------------------
Key: RF-4096
URL: https://jira.jboss.org/jira/browse/RF-4096
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.2
Environment: JBoss 4.2.3, JSF 1.2_09, Facelets 1.1.15B1, JBossTools 3.0alpha
Reporter: Juergen Zimmermann
When double-clicking on a row produced by <rich:dataTable> I get a Javascript error. Screenshots and generated source will be provided.
This is the JSF code:
...
<h:form rendered="#{not empty kv.gefundeneKunden}">
<h2><h:outputText value="#{i18n['doubleclick.hinweis']}"/></h2>
<rich:dataTable id="kundenTabelle" value="#{kv.gefundeneKunden}"
var="kunde" binding="#{kv.tabelleDoubleclick}"
rows="5"
cellspacing="10">
<a4j:support event="onRowDblClick" action="#{kv.detailsTabPanel}"/>
<rich:column>
<f:facet name="header">
<h:outputText value="#{i18n['tabelle.nr']}"/>
</f:facet>
<h:outputText value="#{kv.tabelleDoubleclick.rowIndex+1}"/>
</rich:column>
<rich:column sortBy="#{kunde.id}">
<f:facet name="header">
<h:outputText value="#{i18n['tabelle.kunde.id']}"/>
</f:facet>
<h:outputText value="#{kunde.id}"/>
</rich:column>
,,,
--
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, 11 months
[JBoss JIRA] Created: (RF-4454) onsubmit support for panelMenuItem
by Benoit Pflieger (JIRA)
onsubmit support for panelMenuItem
----------------------------------
Key: RF-4454
URL: https://jira.jboss.org/jira/browse/RF-4454
Project: RichFaces
Issue Type: Feature Request
Affects Versions: 3.2.1
Reporter: Benoit Pflieger
Priority: Minor
Fix For: Wishes
It would be useful to provide support for onsubmit on a panelMenuItem in order to break the submission of the form by returning false thanks to a javascript confirm dialog.
Here is the expected behavior but with a uggly gui experience:
<rich:panelMenuItem mode="none">
<h:commandButton value="#{data.text}" action="#{data.action}" onclick="if(#{stateBean.dirty}){return confirm('Continue?'))}"/>
</rich:panelMenuItem>
--
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, 11 months