From jira-events at lists.jboss.org Wed Nov 30 12:55:42 2011 Content-Type: multipart/mixed; boundary="===============4901480696876687551==" MIME-Version: 1.0 From: =?utf-8?q?Luk=C3=A1=C5=A1_Fry=C4=8D_=28Issue_Comment_Edited=29_=28JIRA=29?= =?utf-8?q?_=3Cjira-events_at_lists=2Ejboss=2Eorg=3E?= To: richfaces-issues at lists.jboss.org Subject: [richfaces-issues] [JBoss JIRA] (RF-11694) RF4 : Bad rendering on rich:dataTable inside ui:include enclosed in a rich:tabPanel Date: Wed, 30 Nov 2011 12:55:42 -0500 Message-ID: <1097943812.56563.1322675742021.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com> In-Reply-To: 187546568.8861.1321376800960.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com --===============4901480696876687551== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable [ https://issues.jboss.org/browse/RF-11694?page=3Dcom.atlassian.jira.pl= ugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D12645970#com= ment-12645970 ] = Luk=C3=A1=C5=A1 Fry=C4=8D edited comment on RF-11694 at 11/30/11 12:55 PM: ------------------------------------------------------------ Hi Jean, I think you are facing issues with ajax loaded components and thei= r resources. The problem is that {{rich:tab}} is traditionally loading resources (CSS/JS= ) for components in initial page, but due to JSF issues, they can't be load= ed when these components aren't known in initial state of component tree (t= hey are renderer dynamically). This might be the case of components under dynamic {{c:forEach}}. The workaround is to render resources to the initial page, basically you need to get following links rendered to the page: {code} {code} These are workarounds which I propose (haven't tried, please let me know wh= ich works): * use {{}} with {{style=3D"display:none"}} (also {{rendered= =3D"false"}} could work) * use {{}} and {{}} (EDIT: you need to place them into {{}} section) * use aggregated (packed) resources feature (resources for all components w= ill be rendered by default, see [1]) [1] http://docs.jboss.org/richfaces/4.1.X/4.1.0.CR1/Developer_Guide/en-US/h= tml/chap-Developer_Guide-Advanced_features.html#sect-Developer_Guide-Advanc= ed_features-Resource_loading_strategies = was (Author: lfryc): Hi Jean, I think you are facing issues with ajax loaded components and = their resources. The problem is that {{rich:tab}} is traditionally loading resources (CSS/JS= ) for components in initial page, but due to JSF issues, they can't be load= ed when these components aren't known in initial state of component tree (t= hey are renderer dynamically). This might be the case of components under dynamic {{c:forEach}}. The workaround is to render resources to the initial page, basically you need to get following links rendered to the page: {code} {code} These are workarounds which I propose (haven't tried, please let me know wh= ich works): * use {{}} with {{style=3D"display:none"}} (also {{rendered= =3D"false"}} could work) * use {{}} and {{}} * use aggregated (packed) resources feature (resources for all components w= ill be rendered by default, see [1]) [1] http://docs.jboss.org/richfaces/4.1.X/4.1.0.CR1/Developer_Guide/en-US/h= tml/chap-Developer_Guide-Advanced_features.html#sect-Developer_Guide-Advanc= ed_features-Resource_loading_strategies = > RF4 : Bad rendering on rich:dataTable inside ui:include enclosed in a ric= h:tabPanel > -------------------------------------------------------------------------= ---------- > > Key: RF-11694 > URL: https://issues.jboss.org/browse/RF-11694 > Project: RichFaces > Issue Type: Bug > Security Level: Public(Everyone can see) = > Components: component-tables > Affects Versions: 4.0.0.Final > Environment: Websphere 8 - RAD 8 - JSF Mojorra 2.1.4 - Spring 3.0= .6 Final - Use @Inject @Named @SessionScoped as annotations - Firefox 7.0.1= - Windows 7 (6.1 sp1) > Reporter: Jean ANDRE > Fix For: 4.Future > > Attachments: After F5 Key.jpg, Newly dynamic tab.jpg, Screen at t= he beginning....jpg > > > The rich:dataTable is not rendering with CSS style when the dataTable is = inside a separate file (ui:include src=3D....) during the ajax rendering on= a dynamic insert of rich:tab. > The error does not appear when the content of the include file is directl= y moved inside the final page, I mean without ui:include. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.jboss.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira = --===============4901480696876687551==--