[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
16 years, 11 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
16 years, 11 months
[JBoss JIRA] Created: (RF-5935) jQuery: exception compressing with JSMin
by Nick Belaevski (JIRA)
jQuery: exception compressing with JSMin
----------------------------------------
Key: RF-5935
URL: https://jira.jboss.org/jira/browse/RF-5935
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.3.1
Reporter: Nick Belaevski
Assignee: Nick Belaevski
Fix For: 3.3.1
26.01.2009 12:36:36 org.ajax4jsf.resource.ScriptRenderer send
SEVERE: Error send script to client for resource org/richfaces/renderkit/html/sc
ripts/jquery/jquery.js
org.ajax4jsf.javascript.JSMin$UnterminatedRegExpLiteralException: Unterminated r
egular expression at line 290 and column 0
at org.ajax4jsf.javascript.JSMin.action(JSMin.java:213)
at org.ajax4jsf.javascript.JSMin.jsmin(JSMin.java:289)
at org.ajax4jsf.resource.ScriptRenderer.send(ScriptRenderer.java:62)
at org.ajax4jsf.resource.InternetResourceBase.send(InternetResourceBase.
java:376)
at org.ajax4jsf.tests.AbstractAjax4JsfTestCase$1.getResponse(AbstractAja
x4JsfTestCase.java:405)
at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnect
ion(WebClient.java:1500)
at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.jav
a:1456)
at com.gargoylesoftware.htmlunit.html.HtmlPage.loadJavaScriptFromUrl(Htm
lPage.java:841)
at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFil
e(HtmlPage.java:792)
at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(H
tmlScript.java:276)
at com.gargoylesoftware.htmlunit.html.HtmlScript.onAddedToPage(HtmlScrip
t.java:197)
at com.gargoylesoftware.htmlunit.html.HtmlPage.notifyNodeAdded(HtmlPage.
java:1497)
at com.gargoylesoftware.htmlunit.html.DomNode.appendDomChild(DomNode.jav
a:808)
at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.star
tElement(HTMLParser.java:392)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Sour
ce)
at org.cyberneko.html.filters.DefaultFilter.startElement(DefaultFilter.j
ava:179)
at org.cyberneko.html.filters.NamespaceBinder.startElement(NamespaceBind
er.java:286)
at org.cyberneko.html.HTMLTagBalancer.callStartElement(HTMLTagBalancer.j
ava:1009)
at org.cyberneko.html.HTMLTagBalancer.startElement(HTMLTagBalancer.java:
639)
at org.cyberneko.html.HTMLScanner$ContentScanner.scanStartElement(HTMLSc
anner.java:2407)
at org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:1
881)
at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:809)
at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:478
)
at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:431
)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:2
53)
at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(Defau
ltPageCreator.java:116)
at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPa
geCreator.java:89)
at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient
.java:450)
at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:359)
at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:407)
at org.ajax4jsf.tests.AbstractAjax4JsfTestCase.processResponse(AbstractA
jax4JsfTestCase.java:781)
at org.ajax4jsf.tests.AbstractAjax4JsfTestCase.processResponseWriter(Abs
tractAjax4JsfTestCase.java:752)
at org.ajax4jsf.tests.AbstractAjax4JsfTestCase.renderView(AbstractAjax4J
sfTestCase.java:623)
at org.richfaces.component.CalendarComponentTest.testCalendarStyles(Cale
ndarComponentTest.java:277)
--
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
16 years, 11 months
[JBoss JIRA] Created: (RF-4113) IE 7 type mismatch when get 302 redirection
by Tomas Hampl (JIRA)
IE 7 type mismatch when get 302 redirection
-------------------------------------------
Key: RF-4113
URL: https://jira.jboss.org/jira/browse/RF-4113
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.2
Environment: windows XP servicepack 3 -> internet explorer 7 browser
Reporter: Tomas Hampl
When session is invalided with spring security . Spring security sends status 302 and redirect to custom page. When I click to open a modal panel and ajax get back 302 redirection there is type mismatch javascript error in Internet explorer, but in firefox works well.
is there any workaround or something ?
Problem is on this line "window.document.open(req.getContentType(),true);" . ("req.getContentType()" is ok)
here is debug output:
debug[15:06:22,252]: Have Event [object Object] with properties: target: [object], srcElement: [object], type: click
debug[15:06:22,252]: NEW AJAX REQUEST !!! with form :j_id16
debug[15:06:22,268]: Append hidden control j_id16:folderTree:j__id50:0::_defaultNodeFaceNodeExpanded with value [false] and value attribute [false]
debug[15:06:22,268]: Append hidden control j_id16:folderTree:j__id50:1::_defaultNodeFaceNodeExpanded with value [false] and value attribute [false]
debug[15:06:22,284]: Append hidden control j_id16:folderTree:j__id50:1:j__id50:0::_defaultNodeFaceNodeExpanded with value [false] and value attribute [false]
debug[15:06:22,284]: Append hidden control j_id16:folderTree:input with value [j_id16:folderTree:j__id50:1::_defaultNodeFace] and value attribute [j_id16:folderTree:j__id50:1::_defaultNodeFace]
debug[15:06:22,299]: Append hidden control j_id16_SUBMIT with value [1] and value attribute [1]
debug[15:06:22,299]: Append hidden control javax.faces.ViewState with value [VWVnSkh++7wEiAwpAMM+MtuU9eaGfD3Q60e5hNQHw/niFHXZVXk/FGv4cR4XOgWPAYrhd8JH48HNyraATgehx1EqghLjL+nUGGwwHsa6hNLtJsA1TnvwGJeUZ1bKSqKi] and value attribute [VWVnSkh++7wEiAwpAMM+MtuU9eaGfD3Q60e5hNQHw/niFHXZVXk/FGv4cR4XOgWPAYrhd8JH48HNyraATgehx1EqghLjL+nUGGwwHsa6hNLtJsA1TnvwGJeUZ1bKSqKi]
debug[15:06:22,315]: parameter ajaxSingle with value j_id16:folderTree
debug[15:06:22,315]: parameter j_id16:folderTree:selectedNode with value j_id16:folderTree:j__id50:1::_defaultNodeFace
debug[15:06:22,330]: Start XmlHttpRequest
debug[15:06:22,346]: Reqest state : 1
debug[15:06:22,346]: QueryString: AJAXREQUEST=_viewRoot&j_id16%3AfolderTree%3Aj__id50%3A0%3A%3A_defaultNodeFaceNodeExpanded=false&j_id16%3AfolderTree%3Aj__id50%3A1%3A%3A_defaultNodeFaceNodeExpanded=false&j_id16%3AfolderTree%3Aj__id50%3A1%3Aj__id50%3A0%3A%3A_defaultNodeFaceNodeExpanded=false&j_id16%3AfolderTree%3Ainput=j_id16%3AfolderTree%3Aj__id50%3A1%3A%3A_defaultNodeFace&j_id16_SUBMIT=1&javax.faces.ViewState=VWVnSkh%2B%2B7wEiAwpAMM%2BMtuU9eaGfD3Q60e5hNQHw%2FniFHXZVXk%2FFGv4cR4XOgWPAYrhd8JH48HNyraATgehx1EqghLjL%2BnUGGwwHsa6hNLtJsA1TnvwGJeUZ1bKSqKi&ajaxSingle=j_id16%3AfolderTree&j_id16%3AfolderTree%3AselectedNode=j_id16%3AfolderTree%3Aj__id50%3A1%3A%3A_defaultNodeFace&
debug[15:06:22,487]: Reqest state : 2
debug[15:06:22,487]: Reqest state : 3
debug[15:06:22,502]: Reqest state : 4
debug[15:06:22,502]: Reqest end with state 4
debug[15:06:22,518]: Response with content-type: text/html;charset=UTF-8
debug[15:06:22,518]: Full response content:
<html xmlns="http://www.w3.org/1999/xhtml"><head> <title></title> </head>
<body> text </body></html>
warn[15:06:22,534]: No ajax response header
debug[15:06:22,534]: Header Location not found, search in <meta>
debug[15:06:22,549]: replace all page content with response
debug[15:06:22,549]: setup custom document.open method
debug[15:06:22,627]: exception during write page content undefined
debug[15:06:22,643]: response has parsed as DOM documnet.
debug[15:06:22,721]: append new node in documen
--
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
16 years, 11 months