Win a copy of React Cookbook: Recipes for Mastering the React Framework 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

Concat two attributes in Composite component in jsf

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hai Friendz!

How can I Concat two attributes in Composite component in jsf ??

@ManagedBean(name="mbean1")
@SessionScoped
public class Mbean
{
private string name ="NNNNName";
private string company="CCCCompany";
getter();
setter();
}


I have one custom component named as

<cc:myComponent bean="#{mbean1} paramv="name" />

<cc:myComponent bean="#{mbean2} paramv="company"/>


IN composite component i want to concat bean and the attribute. How can i achive this..?

My tries are
<composite:interface>
<composite:attribute name="bean"/>
<composite:attribute name="paramv"/>
<composite:interface/>

<composite:implementation>
<h:outputText value="#{cc.attrs.bean.cc.attrs.paramv }

/****** #{cc.attrs.bean.name} ====>working
But i want to get it from attribute and set with that bean.******/
</composite:implementation>
 
Are we home yet? Wait, did we forget the tiny ad?
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic