File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Concat two attributes in Composite component in jsf

 
muthukumar mahadevan
Greenhorn
Posts: 10
  • 0
  • Mark post as helpful
  • send pies
  • 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>
<hutputText 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>
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic