aspose file tools*
The moose likes JSF and the fly likes cc.parent in component compositions not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "cc.parent in component compositions not working" Watch "cc.parent in component compositions not working" New topic
Author

cc.parent in component compositions not working

Mark Smits
Greenhorn

Joined: Jun 10, 2008
Posts: 2
Hi,

I'm trying to create a tabset component that includes tab component. To make things a little easier i like to have a reference between the two components. I tried several things but was unable to make this reference. So i made a simple example.

In the example below i made a child and parent component. In the child i like to reference the parent. through the #{cc.parent} property. If you will include the test components in your page you will see that the parent property is not empty but i'm unable to print any information like id/clientId. I tried everything. Even installed netbeans but even that made no difference. The App server i'm using is glassfish v3.

Anyone know what i'm doing wrong?

Parent Component: parent.xhtml


Child Component: child.xhtml


Index.xhtml
include: xmlns:test="http://java.sun.com/jsf/composite/components/test"
<test:parent test="Hello"/>


Mark Smits
Greenhorn

Joined: Jun 10, 2008
Posts: 2
found out it was a known bug

https://javaserverfaces.dev.java.net/issues/show_bug.cgi?id=1689
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: cc.parent in component compositions not working
 
Similar Threads
Composite Components Problem
Problem using composite components
create component with ajax and listener behavior in java
[JSF2] f:ajax doesn't seemed to decode input field
Problem With Richfaces datatable and datascroller