[jbosstools-issues] [JBoss JIRA] Updated: (JBIDE-3376) Recreate mechanizm of prefix verification

Yura Zhishko (JIRA) jira-events at lists.jboss.org
Tue Dec 9 11:55:36 EST 2008


     [ https://jira.jboss.org/jira/browse/JBIDE-3376?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yura Zhishko updated JBIDE-3376:
--------------------------------

    Description: 
Insert next source code:

<%@ taglib uri="http://java.sun.com/jsf/html" prefix="j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>

<html>
	<head></head>
	<body>
	<f:view>
	<j:form>
		<j:dataTable value="#{bookList.bookList}" var="book">
		<f:facet name="header"><j:outputText value="Header" /> </f:facet>
		<f:facet name="footer"><j:outputText value="Header" /> </f:facet>
				<j:column>
 					<j:outputText value="#{book.name}" />
				</j:column>
				<j:column>
					<j:outputText value="#{book.name}" />
				</j:column>
			</j:dataTable>
			<j:commandLink action="none" value="Go next page:"/><br></br>
			<j:outputText value="Begin" />
	</j:form>
	</f:view>
	</body>
</html>

See the results (screenshot-1). The main cause of this is that we make a verification of parents next way:

<vpe:if
			test="parentname()='h:dataTable'|parentname()='h:panelGrid'....

And we take account of only "h"-prefix. This verification doesn't include other named prefix

  was:
Insert next source code:

<%@ taglib uri="http://java.sun.com/jsf/html" prefix="j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>

<html>
	<head></head>
	<body>
	<j:form>
		<j:dataTable value="#{bookList.bookList}" var="book">
		<f:facet name="header"><j:outputText value="Header" /> </f:facet>
		<f:facet name="footer"><j:outputText value="Header" /> </f:facet>
				<j:column>
 					<j:outputText value="#{book.name}" />
				</j:column>
				<j:column>
					<j:outputText value="#{book.name}" />
				</j:column>
			</j:dataTable>
			<j:commandLink action="none" value="Go next page:"/><br></br>
			<j:outputText value="Begin" />
	</j:form>
	</body>
</html>

See the results (screenshot-1). The main cause of this is that we make a verification of parents next way:

<vpe:if
			test="parentname()='h:dataTable'|parentname()='h:panelGrid'....

And we take account of only "h"-prefix. This verification doesn't include other named prefix



> Recreate mechanizm of prefix verification
> -----------------------------------------
>
>                 Key: JBIDE-3376
>                 URL: https://jira.jboss.org/jira/browse/JBIDE-3376
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Visual Page Editor core
>    Affects Versions: 3.0.0.cr1
>            Reporter: Yura Zhishko
>            Assignee: Maxim Areshkau
>
> Insert next source code:
> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="j"%>
> <%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
> <html>
> 	<head></head>
> 	<body>
> 	<f:view>
> 	<j:form>
> 		<j:dataTable value="#{bookList.bookList}" var="book">
> 		<f:facet name="header"><j:outputText value="Header" /> </f:facet>
> 		<f:facet name="footer"><j:outputText value="Header" /> </f:facet>
> 				<j:column>
>  					<j:outputText value="#{book.name}" />
> 				</j:column>
> 				<j:column>
> 					<j:outputText value="#{book.name}" />
> 				</j:column>
> 			</j:dataTable>
> 			<j:commandLink action="none" value="Go next page:"/><br></br>
> 			<j:outputText value="Begin" />
> 	</j:form>
> 	</f:view>
> 	</body>
> </html>
> See the results (screenshot-1). The main cause of this is that we make a verification of parents next way:
> <vpe:if
> 			test="parentname()='h:dataTable'|parentname()='h:panelGrid'....
> And we take account of only "h"-prefix. This verification doesn't include other named prefix

-- 
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