From jira-events at lists.jboss.org Wed Aug 20 13:02:23 2008 Content-Type: multipart/mixed; boundary="===============5238212108841075351==" MIME-Version: 1.0 From: Nick Belaevski (JIRA) To: richfaces-issues at lists.jboss.org Subject: [richfaces-issues] [JBoss JIRA] Assigned: (RF-4218) Update TreeNode api docs Date: Wed, 20 Aug 2008 13:02:23 -0400 Message-ID: <11986102.1219251743222.JavaMail.jira@cloud.prod.atl2.jboss.com> In-Reply-To: 24701487.1218849838684.JavaMail.jira@cloud.prod.atl2.jboss.com --===============5238212108841075351== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable [ https://jira.jboss.org/jira/browse/RF-4218?page=3Dcom.atlassian.jira= .plugin.system.issuetabpanels:all-tabpanel ] Nick Belaevski reassigned RF-4218: ---------------------------------- Assignee: Nick Belaevski > Update TreeNode api docs = > ------------------------- > > Key: RF-4218 > URL: https://jira.jboss.org/jira/browse/RF-4218 > Project: RichFaces > Issue Type: Bug > Affects Versions: 3.2.1 > Environment: FF3, WinXP > Reporter: Charles Crouch > Assignee: Nick Belaevski > Fix For: 3.2.2 > > > Right now the TreeNode api documentation: > http://www.jboss.org/file-access/default/members/jbossrichfaces/freezone/= docs/apidoc_framework/org/richfaces/model/TreeNode.html > doesn't mention the fact that the Richfaces implementation will use the '= identifier' Object passed into the addChild method when it generates the id= attribute for html elements when rendering the tree. In most situations th= is usage is probably not problematic however I've seen the rendered tree no= t open correctly when using various odd strings for the 'identifier'. > For example this is some debug output when clicking on the (+) to the lef= t of a node (i.e. trying to open it). The node would not open until I refre= shed the page, I'm using ajax as the rendering type for the tree: > 2008-08-15 17:24:27,906 DEBUG [org.ajax4jsf.renderkit.RendererBase] Finis= h encoding of component j_id147:j_id148::JBossAS Server:C_:\usr\apps\jboss\= jbossesb-server-4.3.GA\server\default:JBossESB .esb Package:jboss.esb_:depl= oyment=3Djbossesb.esb:JBoss ESB Services:jboss.esb_:category=3DMessageCount= er,deployment=3Djbossesb.esb,service-name=3DInvokerService:JBoss ESB Action= s::j_id168 with class org.richfaces.component.html.HtmlTreeNode > and here's one that could be opened in the browser: > 2008-08-15 17:25:35,703 DEBUG [org.ajax4jsf.renderkit.RendererBase] Finis= h encoding of component j_id147:j_id148::JBossAS Server:C_:\usr\apps\jboss\= jbossesb-server-4.3.GA\server\default:Environment:JBoss AS JVM::j_id162 wit= h class org.richfaces.component.html.HtmlTreeNode > I couldn't find any significant difference between the two. Its not lengt= h related, I tried using sets of 30digits for the 'identifier' and that wor= ked fine generating a component id of >400chars long. > For both of the above cases TidyParser complains > 2008-08-15 17:25:35,734 DEBUG [org.ajax4jsf.webapp.tidy.TidyParser] Messa= ge for HTML parsing : attribute "id" has invalid value "j_id147:j_i= d148::JBossAS Server:C_:\usr\apps\jboss\jbossesb-server-4.3.GA\server\defau= lt:Environment:JBoss AS JVM::j_id162" > 2008-08-15 17:25:35,734 DEBUG [org.ajax4jsf.webapp.tidy.TidyParser] Messa= ge for HTML parsing : attribute "id" has invalid value "j_id147:j_id14= 8::JBossAS Server:C_:\usr\apps\jboss\jbossesb-server-4.3.GA\server\default:= Environment:JBoss AS JVM::j_id162:mainRow" > 2008-08-15 17:25:35,734 DEBUG [org.ajax4jsf.webapp.tidy.TidyParser] Messa= ge for HTML parsing :
attribute "id" has invalid value "j_id147:j_id14= 8::JBossAS Server:C_:\usr\apps\jboss\jbossesb-server-4.3.GA\server\default:= Environment:JBoss AS JVM::j_id162:handles" > and = > 2008-08-15 17:24:27,921 DEBUG [org.ajax4jsf.webapp.tidy.TidyParser] Messa= ge for HTML parsing : attribute "id" has invalid value "j_id147:j_i= d148::JBossAS Server:C_:\usr\apps\jboss\jbossesb-server-4.3.GA\server\defau= lt:JBossESB .esb Package:jboss.esb_:deployment=3Djbossesb.esb:JBoss ESB Ser= vices:jboss.esb_:category=3DMessageCounter,deployment=3Djbossesb.esb,servic= e-name=3DInvokerService:JBoss ESB Actions::j_id168" > 2008-08-15 17:24:27,921 DEBUG [org.ajax4jsf.webapp.tidy.TidyParser] Messa= ge for HTML parsing : attribute "id" has invalid value "j_id147:j_id14= 8::JBossAS Server:C_:\usr\apps\jboss\jbossesb-server-4.3.GA\server\default:= JBossESB .esb Package:jboss.esb_:deployment=3Djbossesb.esb:JBoss ESB Servic= es:jboss.esb_:category=3DMessageCounter,deployment=3Djbossesb.esb,service-n= ame=3DInvokerService:JBoss ESB Actions::j_id168:mainRow" > 2008-08-15 17:24:27,921 DEBUG [org.ajax4jsf.webapp.tidy.TidyParser] Messa= ge for HTML parsing :
attribute "id" has invalid value "j_id147:j_id14= 8::JBossAS Server:C_:\usr\apps\jboss\jbossesb-server-4.3.GA\server\default:= JBossESB .esb Package:jboss.esb_:deployment=3Djbossesb.esb:JBoss ESB Servic= es:jboss.esb_:category=3DMessageCounter,deployment=3Djbossesb.esb,service-n= ame=3DInvokerService:JBoss ESB Actions::j_id168:handles" > but its only the latter one that actually fails to open in the browser. > I think the docs should be updated to indicate that you should be careful= ly about what identifier.toString() will actually return because its going = to be used in creating id attributes, and the format of those appears to ha= ve some rules around it. -- = This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: htt= ps://jira.jboss.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira =20 --===============5238212108841075351==--