[forge-issues] [JBoss JIRA] (FORGE-1547) Adding debug information on JSF pages

George Gastaldi (JIRA) issues at jboss.org
Mon Feb 17 15:35:47 EST 2014


    [ https://issues.jboss.org/browse/FORGE-1547?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12945359#comment-12945359 ] 

George Gastaldi commented on FORGE-1547:
----------------------------------------

{{javax.faces.PROJECT_STAGE}} should be used instead
                
> Adding debug information on JSF pages
> -------------------------------------
>
>                 Key: FORGE-1547
>                 URL: https://issues.jboss.org/browse/FORGE-1547
>             Project: Forge
>          Issue Type: Enhancement
>          Components: Scaffold
>    Affects Versions: 2.0.0.Final
>            Reporter: Antonio Goncalves
>            Assignee: Antonio Goncalves
>              Labels: starter
>             Fix For: 2.x Future
>
>
> JSF pages are hard to debug, so adding a {{ui:debug}} in the main template. The idea (as explained on http://stackoverflow.com/questions/4049531/uidebug-tag-not-working-in-facelets-jsf-2-0) is to add a {{ui:debug}} and some config in web.xml so only the debugging shows up in development. 
> So in the {{pageTemplate.xhtml}} we would add :
> {code}
> <h:body>
>     <ui:debug rendered="#{initParam['javax.faces.FACELETS_DEVELOPMENT']}"/>
>     <div class="navbar navbar-fixed-top">
> {code}
> And in the {{web.xml}} :
> {code}
>   <context-param>
>     <param-name>javax.faces.FACELETS_DEVELOPMENT</param-name>
>     <param-value>true</param-value>
>   </context-param>
> {code}
> Then, once in any page, you just need to press CTRL+ SHIFT + D

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the forge-issues mailing list