[richfaces-issues] [JBoss JIRA] Created: (RF-7973) Sortby works in standalone jboss fails in integreted appln causing some ajax script issue

kulasekara pandiyan (JIRA) jira-events at lists.jboss.org
Mon Oct 12 01:56:06 EDT 2009


Sortby works in standalone jboss fails in integreted appln causing some ajax script issue
-----------------------------------------------------------------------------------------

                 Key: RF-7973
                 URL: https://jira.jboss.org/jira/browse/RF-7973
             Project: RichFaces
          Issue Type: Bug
          Components: component-tables
    Affects Versions: 3.3.0
         Environment: Windows XP, Jboss Portal Appln server,JDK 1.6 U7
            Reporter: kulasekara pandiyan


Sortby attibute in rich:column works in standalone jboss fails in integreted appln causing some ajax script issue

I've been using sortby attribute in rich:column to sort the datatable column.It works fine in the standalone Jboss Portal application using a sample portlet.But when I tried to use the same piece of logic in the integrated Jboss Portal (multiple portlet appln)application it fails. It's showing some script problem, I think in both the cases the request made was an A4j.Ajax.Submit. Can any help me to resolve this script issues. 

I am using richfaces 3.3.0 version 

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 

-- 
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

       



More information about the richfaces-issues mailing list