File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
javax.el.PropertyNotFoundException: Objetivo inalcanzable - JSF - Facelet - method-signature
Restricting access to data in JSF form:
Composite Components Problem
Problem using composite components