[
https://jira.jboss.org/jira/browse/RF-6234?page=com.atlassian.jira.plugin...
]
kulasekara pandiyan commented on RF-6234:
-----------------------------------------
I've one question related to this problem
Do we really need the SortOrder attribute in rich:column to sort the column?
I've used sortBy attribute in rich:column to sort the rich:datatable column.
But, while deploying the application in the standalone Jboss portal appln server.
This sorting works fine.
In case of portlet application deployed and integrated into Jboss portal appln the same
logic doesn't works.
In both the cases on click of the icon (header) of the datatable a4j.ajax.submit the JS
action being performed.
I don't have much idea to debug the ajax JS function. Can any one help me to resolve
the issue.
I am using richfaces 3.3.0 GA in both the cases.
Code in sample portlet in standalone jboss
<h:form>
<rich:dataTable value="#{menu.myList}" var="datalist"
id="mytable">
<rich:column sortBy="#{datalist.name}">
<f:facet name="header">
<h:outputText value="Friends Name" />
</f:facet>
<h:commandLink action="#{datalist.name}"
value="#{datalist.name}">
</h:commandLink>
</rich:column>
</rich:dataTable>
</h:form>
Code in integrated portalappln in jboss
<h:form>
<rich:dataTable id="allTimezones"
columnClasses="col" value="#{timezoneController.allTimezones}"
var="iter" styleClass="stddatatable">
<rich:column sortBy="#{iter.description}">
<f:facet name="header">
<h:outputText styleClass="headerText" value="Name" />
</f:facet>
<h:commandLink action="#{timezoneController.clickToModify}"
value="#{iter.description}">
<f:param name="desc" value="#{iter.description}" />
<f:param name="tzname" value="#{iter.name}" />
</h:commandLink>
</rich:column>
<rich:column sortBy="#{iter.name}">
<f:facet name="header">
<h:outputText styleClass="headerText" value="Time zone" />
</f:facet>
<h:outputText value="#{iter.name}" />
</rich:column>
</rich:dataTable>
<rich:spacer height="10" />
<h:commandLink action="#{timezoneController.viewZone}" value="View
details for all time zones"></h:commandLink>
</h:form>
A4j.Ajax.Submit request in standalone:
A4J.AJAX.Submit('j_id_jsp_624192424_0',
'jbpnsdashboard_3a_2fadmin_2fdefault_2fProvMenuPortletWindowsnpbj:j_id_jsp_624192424_0:j_id_jsp_624192424_1',
event,{'similarityGroupingId':'jbpnsdashboard_3a_2fadmin_2fdefault_2fProvMenuPortletWindowsnpbj:j_id_jsp_624192424_0:j_id_jsp_624192424_1:j_id_jsp_624192424_2',
'parameters':
{'fsp':'jbpnsdashboard_3a_2fadmin_2fdefault_2fProvMenuPortletWindowsnpbj:j_id_jsp_624192424_0:j_id_jsp_624192424_1:j_id_jsp_624192424_2:j_id_jsp_624192424_3',
'javax.faces.portletbridge.STATE_ID':'MainMenuPortletC2F2F852C5728F80090F25F7B9B0233Dviewjbpnsdashboard_3a_2fadmin_2fdefault_2fProvMenuPortletWindowsnpbj',
'jbpnsdashboard_3a_2fadmin_2fdefault_2fProvMenuPortletWindowsnpbj:j_id_jsp_624192424_0:j_id_jsp_624192424_1:j_id_jsp_624192424_2':'fsp'}
,
'namespace':'jbpnsdashboard_3a_2fadmin_2fdefault_2fProvMenuPortletWindowsnpbj',
'actionUrl':'/mainmenu/faces/jsp/initialView.jsp?org.jboss.portletbridge.VIEWID=/jsp/initialView.jsp\x26javax.portlet.faces.DirectLink=true'}
)"
A4j.Ajax.Submit request in integrated portal appl in timezone portlet:
A4J.AJAX.Submit("_jbpns_2fprov_2fdefault_2fProvTimezoneWindowsnpbj:j_id_jsp_1060194696_0",
"_jbpns_2fprov_2fdefault_2fProvTimezoneWindowsnpbj:j_id_jsp_1060194696_0:timeZoneView:j_id_jsp_918360415_0pc2",
event, {similarityGroupingId:
"_jbpns_2fprov_2fdefault_2fProvTimezoneWindowsnpbj:j_id_jsp_1060194696_0:timeZoneView:j_id_jsp_918360415_0pc2:allTimezones",
parameters:
{'_jbpns_2fprov_2fdefault_2fProvTimezoneWindowsnpbj:j_id_jsp_1060194696_0:timeZoneView:j_id_jsp_918360415_0pc2:allTimezones':
"fsp", fsp:
"_jbpns_2fprov_2fdefault_2fProvTimezoneWindowsnpbj:j_id_jsp_1060194696_0:timeZoneView:j_id_jsp_918360415_0pc2:allTimezones:j_id_jsp_918360415_2pc2",
'org.ajax4jsf.portlet.NAMESPACE':
"jbpns_2fprov_2fdefault_2fProvTimezoneWindowsnpbj",
'javax.faces.portletbridge.STATE_ID':
"TimezonePortlet64F4BD84636FCB3B8CA43F35BE62462B:view:66cd8d8e-0084-4ecd-b9a6-7ca2dd28bf25"},
namespace: "jbpns_2fprov_2fdefault_2fProvTimezoneWindowsnpbj", actionUrl:
"/timezone/faces/jsp/initialView.jsp?javax.portlet.faces.DirectLink=true"});
Please help me to resolve this script error. I have been debugging the issue for long a
while...
Regards
Pandiyan S
Columns: sorting/filtering features don't work when
"id" is not explicitly assigned (WAS: Columns: sorting/filtering features dont
work)
----------------------------------------------------------------------------------------------------------------------------------------
Key: RF-6234
URL:
https://jira.jboss.org/jira/browse/RF-6234
Project: RichFaces
Issue Type: Bug
Components: component-tables
Affects Versions: 3.3.0
Reporter: Andrei Markavtsov
Assignee: Nick Belaevski
Priority: Minor
Fix For: Future
--
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