Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Horizontal Tree: TreeNode styleClass not respecting Node EL variable #3444

Closed
melloware opened this issue Mar 7, 2018 · 1 comment
Closed
Labels
6.1.15 6.2.1 🐞 defect Bug...Something isn't working
Milestone

Comments

@melloware
Copy link
Member

Version: PF 6.1.13 and PF 6.2

Screenshot:
image

We are trying to use StyleClass of TreeNode to color the treenode border based on the content of the node. It appears using an EL expression in the styleClass() leads to the Node value being the previous value every time or off by 1 starting with the root.

We have attached an example Test project that shows the issue. The border colors should be RED, GREEN, BLUE but you can see they are all shifted by one color.

<p:tree  value="#{testView.treeNode}" var="node" orientation="horizontal">
	<p:treeNode styleClass="custom-node border-#{node.color}">
		<h:outputText value="#{node.color}" title="#{node.color}" />
	</p:treeNode>
</p:tree>
.custom-node .ui-treenode-content {
	background-color: white;
	color:black;
	background-image:none;
	border:1.5px solid black;
}

.border-RED .ui-treenode-content {
	border:1.5px solid red !important;
}

.border-GREEN .ui-treenode-content {
	border:1.5px solid green !important;
}

.border-BLUE .ui-treenode-content {
	border:1.5px solid navy !important;
}

Runnable Project to demonstrate the issue: primefaces-test-treenode.zip

@melloware
Copy link
Member Author

I am reporting this through a PRO account so no action for anyone.

@melloware melloware changed the title Horizonatl TreeNode styleClass not respecting Node EL variable Horizontal TreeNode styleClass not respecting Node EL variable Mar 7, 2018
@tandraschko tandraschko changed the title Horizontal TreeNode styleClass not respecting Node EL variable Horizontal Tree: TreeNode styleClass not respecting Node EL variable Mar 7, 2018
@tandraschko tandraschko added the 🐞 defect Bug...Something isn't working label Mar 7, 2018
@mertsincan mertsincan added this to the 6.3 milestone Mar 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.1.15 6.2.1 🐞 defect Bug...Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants