aspose file tools*
The moose likes JSF and the fly likes Concat two attributes in Composite component in jsf Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Concat two attributes in Composite component in jsf" Watch "Concat two attributes in Composite component in jsf" New topic
Author

Concat two attributes in Composite component in jsf

muthukumar mahadevan
Greenhorn

Joined: Sep 21, 2011
Posts: 10
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
 
subject: Concat two attributes in Composite component in jsf
 
Similar Threads
Restricting access to data in JSF form:
Problem using composite components
Composite Components Problem
javax.el.PropertyNotFoundException: Objetivo inalcanzable - JSF - Facelet - method-signature