[JBoss JIRA] Created: (RF-3340) tree: javax.faces.FacesException: Exception while validating component
by Aleksej Yanul (JIRA)
tree: javax.faces.FacesException: Exception while validating component
----------------------------------------------------------------------
Key: RF-3340
URL: http://jira.jboss.com/jira/browse/RF-3340
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.1
Environment: myfaces 1.2.2
Reporter: Aleksej Yanul
Assigned To: Nick Belaevski
Priority: Critical
Is reproduced when in treeNode to add ajaxSingle = "true"
1. open tree
2. expand node
3. to move node
<rich:tree id="tree" switchType="#{bean.switchType}" value="#{bean.data}" var="data" selectedClass="#{style.selectedClass}" styleClass="#{style.styleClass}" style="#{style.style}" highlightedClass="#{style.highlightedClass}"
nodeFace="#{data.name != 'param-value' ? 'input' : 'text'}" changeExpandListener="#{bean.onExpand}"
nodeSelectListener="#{bean.onSelect}" binding="#{bean.tree}" onselected="window.status='selectedNode: '+event.selectedNode;"
onexpand="window.status='expandedNode: '+event.expandedNode" oncollapse="window.status='collapsedNode: '+ event.collapsedNode"
ajaxSubmitSelection="true" reRender="outputText, selectOneListbox" preserveModel="none" dragIndicator="treeIndicator"
immediate="false" acceptedTypes="file1" dragType="#{bean.dragOn ? 'file1' : ''}" icon="#{bean.icon}" dropListener="#{bean.processDrop}">
<rich:dndParam name="treeParam" value="Tree Parameter" />
<rich:dndParam name="accept" value="accept" />
<rich:treeNode type="input" dropListener="#{bean.processDrop}" ajaxSingle="true"
oncollapse="Element.removeClassName(event['treeItem'].getElement(), 'colored')"
onexpand="Element.addClassName(event['treeItem'].getElement(), 'colored')" >
<h:outputText value="#{data} : " />
<h:inputText value="#{data.name}" required="true" styleClass="inputs">
</h:inputText>
<rich:dndParam name="nodeParam" value="Node Parameter" />
</rich:treeNode>
<rich:treeNode type="text" nodeClass="customNode" acceptedTypes="file2" onselected="return false;">
<h:outputText value="#{data}" />
</rich:treeNode>
</rich:tree>
////////////////////////////////////////////////////////
javax.faces.FacesException: javax.faces.FacesException: Exception while validating component with path : {Component-Path : [Class: org.ajax4jsf.component.AjaxViewRoot,ViewId: /Tree/Tree.jsp][Class: javax.faces.component.html.HtmlForm,Id: j_id_jsp_1410692482_1][Class: org.richfaces.component.html.HtmlTree,Id: tree][Class: org.richfaces.component.html.HtmlTreeNode,Id: j_id_jsp_1410692482_7][Class: javax.faces.component.html.HtmlInputText,Id: j_id_jsp_1410692482_9]}
at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:155)
at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:260)
at org.richfaces.component.UITree.invokeOnComponent(UITree.java:971)
at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:161)
at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:260)
at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:161)
at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:260)
at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:238)
at org.ajax4jsf.component.AjaxViewRoot.processValidators(AjaxViewRoot.java:451)
at org.apache.myfaces.lifecycle.ProcessValidationsExecutor.execute(ProcessValidationsExecutor.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:148)
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:154)
at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:260)
at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:366)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:493)
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:147)
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: javax.faces.FacesException: Exception while validating component with path : {Component-Path : [Class: org.ajax4jsf.component.AjaxViewRoot,ViewId: /Tree/Tree.jsp][Class: javax.faces.component.html.HtmlForm,Id: j_id_jsp_1410692482_1][Class: org.richfaces.component.html.HtmlTree,Id: tree][Class: org.richfaces.component.html.HtmlTreeNode,Id: j_id_jsp_1410692482_7][Class: javax.faces.component.html.HtmlInputText,Id: j_id_jsp_1410692482_9]}
at javax.faces.component.UIInput.validate(UIInput.java:346)
at javax.faces.component.UIInput.processValidators(UIInput.java:144)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:658)
at org.ajax4jsf.component.AjaxViewRoot$3.invokeContextCallback(AjaxViewRoot.java:435)
at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:152)
... 33 more
Caused by: org.apache.jasper.el.JspPropertyNotFoundException: /Tree/Tree.jsp(31,4) '#{data.name}' Target Unreachable, identifier 'data' resolved to null
at org.apache.jasper.el.JspValueExpression.getType(JspValueExpression.java:61)
at org.apache.myfaces.shared_impl.renderkit._SharedRendererUtils.findUIOutputConverter(_SharedRendererUtils.java:58)
at org.apache.myfaces.shared_impl.renderkit.RendererUtils.findUIOutputConverter(RendererUtils.java:391)
at org.apache.myfaces.shared_impl.renderkit.RendererUtils.getConvertedUIOutputValue(RendererUtils.java:743)
at org.apache.myfaces.shared_impl.renderkit.html.HtmlTextRendererBase.getConvertedValue(HtmlTextRendererBase.java:219)
at javax.faces.component.UIInput.getConvertedValue(UIInput.java:380)
at javax.faces.component.UIInput.validate(UIInput.java:328)
... 37 more
--
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
15 years, 2 months
[JBoss JIRA] Created: (RF-3237) When using SuggestionBoxes into a DataTable it only works in the first row
by Oscar De Moya (JIRA)
When using SuggestionBoxes into a DataTable it only works in the first row
--------------------------------------------------------------------------
Key: RF-3237
URL: http://jira.jboss.com/jira/browse/RF-3237
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.0.SR1
Environment: Operative System: Windows Vista SP1
Java Version: 1.6.0
Reporter: Oscar De Moya
I'm doing a table with a column of InputTexts and SuggestionBoxes, but the suggestion only appears for the first input and for the others it gives me an "Unspected Error" in IE7 (it doesn't works on firefox neither). There's a portion of the code:
<rich:tab label="Replies">
<rich:dataTable id="replyList" value="#{mbUser.userReplyList}" var="userReply" rowClasses="cursor_hand"
rowKeyVar="rowIndex"
onRowMouseOver="this.style.backgroundColor='#F1F1F1'"
onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'">
<h:column>
<h:panelGroup>
<h:inputText id="attribute" value="#{userReply.attribute}" />
<rich:suggestionbox id="replySuggestions" for="attribute" width="100" height="100"
suggestionAction="#{mbUser.autocompleteUsers}" var="user"
selfRendered="false">
<h:column>
<h:outputText id="out" value="#{user.userName}" />
</h:column>
</rich:suggestionbox>
</h:panelGroup>
</h:column>
<h:column>
<rich:inplaceSelect defaultLabel="#{userReply.operator}"
viewClass="inplace" changedClass="inplace" layout="block"
changedHoverClass="inplace_hover" viewHoverClass="inplace_hover">
<f:selectItem itemValue="0" itemLabel="==" />
<f:selectItem itemValue="1" itemLabel="!=" />
<f:selectItem itemValue="2" itemLabel=">" />
</rich:inplaceSelect>
<f:facet name="footer">
<h:panelGroup>
<rich:inplaceSelect
viewClass="inplace" changedClass="inplace" layout="block"
changedHoverClass="inplace_hover" viewHoverClass="inplace_hover">
<f:selectItem itemValue="0" itemLabel="==" />
<f:selectItem itemValue="1" itemLabel="!=" />
<f:selectItem itemValue="2" itemLabel=">" />
</rich:inplaceSelect>
</h:panelGroup>
</f:facet>
</h:column>
<h:column>
<rich:inplaceInput value="#{userReply.value}" layout="block"
viewClass="inplace" changedClass="inplace"
changedHoverClass="inplace_hover" viewHoverClass="inplace_hover" />
<f:facet name="footer">
<rich:inplaceInput layout="block"
viewClass="inplace" changedClass="inplace"
changedHoverClass="inplace_hover" viewHoverClass="inplace_hover" />
</f:facet>
</h:column>
<rich:componentControl event="onRowClick">
<f:param value="#{userReply.id}" name="userReplyId" />
</rich:componentControl>
</rich:dataTable>
</rich:tab>
--
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
15 years, 2 months
[JBoss JIRA] Created: (RF-3380) Tag a4j:support +rich:datatable in IE7
by Ananda Debnath (JIRA)
Tag a4j:support +rich:datatable in IE7
--------------------------------------
Key: RF-3380
URL: http://jira.jboss.com/jira/browse/RF-3380
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.4
Environment: Windows XP, JBoss 4.2.0 GA, FireFox 2.0.0.14, Internet Explorer 7.0.5730.13CO, Safari 3.1.1 (on Mac OS X 10.5.2)
Reporter: Ananda Debnath
I'm trying to implement a UI that uses a rich:datatable object. When the user clicks a row in the datatable, the details of the clicked item has to be displayed in a different part of the page. Searching through the JIRA pages has yielded some clues on how to make this happen... except that the approach that seems to work for FF and Safari, doesn't seem to work with IE 7.0.
Here's my code:
The JSF page:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich"
xmlns:f="http://java.sun.com/jsf/core">
<f:view>
<h:form id="scratchListForm">
<rich:panel header="List" id="list">
<rich:dataTable value="#{RichDataTableRowClickBean.rows}"
var="row" id="listTable"
onRowMouseOver="this.style.backgroundColor='#FFFFAA'"
onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'">
<a4j:support event="onRowClick"
actionListener="#{RichDataTableRowClickBean.rowSelected}"
action="#{RichDataTableRowClickBean.selectRow}">
<f:param value="#{row.id}" name="current" />
</a4j:support>
<rich:column id="id">#{row.id}</rich:column>
<rich:column id="name">#{row.name}</rich:column>
</rich:dataTable>
</rich:panel>
</h:form>
</f:view>
</html>
The bean:
package scratch;
import javax.faces.event.ActionEvent;
public class RichDataTableRowClickBean {
private final Row[] rows = { new Row("0", "Zero"), new Row("1", "One"), new Row("2", "Two") };
public Row[] getRows() {
return this.rows;
}
public void rowSelected(ActionEvent event) {
System.out.println(event.getComponent().getId());
System.out.println(event.getComponent().getAttributes());
System.out.println(event.getSource());
System.out.println(event.getPhaseId());
}
public String selectRow() {
System.out.println("row selected");
return null;
}
public static class Row {
String id;
String name;
Row(String id, String name) {
this.id = id;
this.name = name;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
}
When I click the row in FF/Safari, I get these server side events triggered by means of my System.out's:
12:33:33,707 INFO [STDOUT] j_id1
12:33:33,707 INFO [STDOUT] javax.faces.component.UIComponentBase$AttributesMap@80c55637
12:33:33,707 INFO [STDOUT] org.ajax4jsf.component.html.HtmlAjaxSupport@140d57b
12:33:33,707 INFO [STDOUT] INVOKE_APPLICATION 5
12:33:33,707 INFO [STDOUT] row selected
With IE 7, I see a Javascript error: 'Type mismatch' in a popup box (Line 85, character 452) - I can't find the actual line/char where the error occurs.
Am I missing something obvious? Is there a workaround for IE7?
--
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
15 years, 2 months
[JBoss JIRA] Created: (RF-3458) Placing dragSupport inside simpleTogglePanel creates problems on firefox
by Hajo Krabbenhöft (JIRA)
Placing dragSupport inside simpleTogglePanel creates problems on firefox
------------------------------------------------------------------------
Key: RF-3458
URL: http://jira.jboss.com/jira/browse/RF-3458
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.0
Environment: JBoss AS 4.2.2.GA
RichFaces 3.2.0 SR1
WinXP Pro SP2
Reporter: Hajo Krabbenhöft
When i place an dragSupport inside a simpleTogglePanel with opened="false" set, on firefox, it will only work when i start dragging from text.
when i start dragging from besides the text, i will see the black dotted box drag indicator and it will not turn green when i hover over the drop zone.
it works fine in both cases on internet explorer.
when i convert the rich:simpleTogglePanel to a rich:panel, it works fine on both browsers.
problem:
<rich:simpleTogglePanel label="#{curTagGroup.name}"
switchType="client" style="width: 274px;" opened="false">
<ui:repeat value="#{curTagGroup.tags}" var="curTag">
<a4j:outputPanel styleClass="draggable-tag" onmouseover="#{mouseover}" onmouseout="#{mouseout}" layout="block">
<h:outputText value="#{curTag.name}"/>
<rich:dragSupport dragType="tag" dragValue="#{curTag}" />
</a4j:outputPanel>
</ui:repeat>
</rich:simpleTogglePanel>
works fine:
<rich:panel header="#{curTagGroup.name}"
switchType="client" style="width: 274px;">
<ui:repeat value="#{curTagGroup.tags}" var="curTag">
<a4j:outputPanel styleClass="draggable-tag" onmouseover="#{mouseover}" onmouseout="#{mouseout}" layout="block">
<h:outputText value="#{curTag.name}"/>
<rich:dragSupport dragType="tag" dragValue="#{curTag}" />
</a4j:outputPanel>
</ui:repeat>
</rich:panel>
as i said before, on ie it works on both cases as well as on firefox when you drag the div somwhere where its being overlayed by text.
--
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
15 years, 2 months