[jboss-jira] [JBoss JIRA] Updated: (JBPORTAL-2262) wrong instance id for portlet instances under portlet instances tab in admin ui
Chris Laprun (JIRA)
jira-events at lists.jboss.org
Fri Feb 27 12:50:44 EST 2009
[ https://jira.jboss.org/jira/browse/JBPORTAL-2262?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chris Laprun updated JBPORTAL-2262:
-----------------------------------
Fix Version/s: 2.8 Final
(was: 2.6.8 Final)
(was: 2.7.2 Final)
> wrong instance id for portlet instances under portlet instances tab in admin ui
> --------------------------------------------------------------------------------
>
> Key: JBPORTAL-2262
> URL: https://jira.jboss.org/jira/browse/JBPORTAL-2262
> Project: JBoss Portal
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Portal Core Admin
> Affects Versions: 2.6.7 Final, 2.7.0 Final
> Reporter: Prabhat Jha
> Assignee: Thomas Heute
> Priority: Minor
> Fix For: 2.8 Final
>
>
> Viliam pointed this out and I thought it could be because of my id changes but it does not seem to be the case.
> For AdminPortletInstance (first page in pagination), this is what gets generated for security link
> <td><a id="jbpns_2fadmin_2fdefault_2fAdminPortletWindowsnpbj:_viewRoot:instances-form:security-AdminPortletInstance" href="#" onclick="if(typeof jsfcljs == 'function'){jsfcljs(document.getElementById('jbpns_2fadmin_2fdefault_2fAdminPortletWindowsnpbj:_viewRoot:instances-form'),{'jbpns_2fadmin_2fdefault_2fAdminPortletWindowsnpbj:_viewRoot:instances-form:security-AdminPortletInstance':'jbpns_2fadmin_2fdefault_2fAdminPortletWindowsnpbj:_viewRoot:instances-form:security-AdminPortletInstance','id':'AdminPortletInstance','plugin':'security'},'');}return false" class="actionSecurity">
> Security</a></td>
> For TestPortletInstance (last page in pagination), for the security link, this is what gets generated:
> <td><a id="jbpns_2fadmin_2fdefault_2fAdminPortletWindowsnpbj:_viewRoot:instances-form:security-AdminPortletInstance" href="#" onclick="if(typeof jsfcljs == 'function'){jsfcljs(document.getElementById('jbpns_2fadmin_2fdefault_2fAdminPortletWindowsnpbj:_viewRoot:instances-form'),{'jbpns_2fadmin_2fdefault_2fAdminPortletWindowsnpbj:_viewRoot:instances-form:security-AdminPortletInstance':'jbpns_2fadmin_2fdefault_2fAdminPortletWindowsnpbj:_viewRoot:instances-form:security-AdminPortletInstance','id':'TestPortletInstance','plugin':'security'},'');}return false" class="actionSecurity">
> Security</a></td>
> The above is generated by following in instances.xhtml:
> <h:commandLink action="#{instancemgr.selectInstance}" styleClass="actionSecurity" id="security-#{instance.id}">
> <f:param name="id" value="#{instance.id}"/>
> <f:param name="plugin" value="security"/>
> #{bundle.SECURITY}
> </h:commandLink>
> As you can see both of these have same instance.id although they are different protlet instances. Instance id seem to be getting messed up when paginating.
> To reproduce, do this:
> 1. admin -> admin -> portlet instances:
> 2. use firebug or anything to check the ids for the "security buttons" - ids are named similiar to "instance id" row name (1st - *adminportlet, 2nd - *asyncUrl,...), due to the name of used instance
> 3. click on "20" link to go to the second page
> 4. the portlet instances on the second page are other than before, but... the ids for the "security" action links are the same (1st - *adminportlet, 2nd - *asyncUrl,...).
> 5. the situation remains the same for the "40" page
--
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 jboss-jira
mailing list