[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-4311) vpe is broken in some cases
Denis Maliarevich (JIRA)
jira-events at lists.jboss.org
Fri May 22 03:32:56 EDT 2009
[ https://jira.jboss.org/jira/browse/JBIDE-4311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12468796#action_12468796 ]
Denis Maliarevich commented on JBIDE-4311:
------------------------------------------
I've tested this issue on trunk from 11 of May. The issue was reproduced.
It happaned in the same place:
During loading of testPage.xhtml VPE inserts parameters declared in <ui:param> into <ui:composition>'s template (in our case it's testTemplate.xhtml). testTemplate.xhtml has <div> with backgroung-image in css style. And there is an el expressin in the url. In ui:composition tempalte #{env.skinPic} variable is compared with ui:params name and will be replaced if matched. But ui:param's name is null thus exception is thrown.
> vpe is broken in some cases
> ---------------------------
>
> Key: JBIDE-4311
> URL: https://jira.jboss.org/jira/browse/JBIDE-4311
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: Visual Page Editor core
> Affects Versions: 3.1.0.M1
> Environment: windows
> Reporter: Sergey Dzmitrovich
> Assignee: Denis Maliarevich
> Fix For: 3.1.0.M1
>
>
> testTemplate.xhtml :
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml"
> xmlns:ui="http://java.sun.com/jsf/facelets"
> xmlns:h="http://java.sun.com/jsf/html"
> xmlns:f="http://java.sun.com/jsf/core">
> <body>
> <div style="background-image: url(${facesContext.externalContext.requestContextPath}/images/#{env.skinPic}) !imp
> ortant;padding-left: 10px">
>
> </div>
> <ui:insert name="content>
> <h:commandButton action="" value="Some button" />
> </ui:insert>
> </body>
> </html>
> testPage.xhtml :
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml"
> xmlns:ui="http://java.sun.com/jsf/facelets"
> xmlns:h="http://java.sun.com/jsf/html"
> xmlns:f="http://java.sun.com/jsf/core">
> <ui:composition template="testTemplate.xhtml">
> <ui:param name="icon" value="system171.ico" />
> <ui:define name="content">
> <h:commandButton action="" value=button A" />
> <h:inputText value="aaa" />
> </ui:define>
>
> </ui:composition>
> </html>
--
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 jbosstools-issues
mailing list