Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

cc.parent in component compositions not working

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
found out it was a known bug

https://javaserverfaces.dev.java.net/issues/show_bug.cgi?id=1689
 
What's wrong? Where are you going? Stop! Read this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic