webtier@glassfish.java.net
Re: composite component with "for" attribute in jsf2.0 - is it possible?
This message
: [
Message body
] [ More options (
top
,
bottom
) ]
Related messages
: [
Next message
] [
Previous message
] [
In reply to
] [
Next in thread
] [
Replies
]
Contemporary messages sorted
: [
by date
] [
by thread
] [
by subject
] [
by author
] [
by messages with attachments
]
From
: <
webtier_at_javadesktop.org
>
Date
: Thu, 01 Apr 2010 04:31:13 PDT
Try the following:
[code]
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
">
<html xmlns="
http://www.w3.org/1999/xhtml
"
xmlns:h="
http://java.sun.com/jsf/html
"
xmlns:composite="
http://java.sun.com/jsf/composite
"
xmlns:ui="
http://java.sun.com/jsf/facelets
">
<composite:interface>
<composite:attribute name="for" required="true" />
</composite:interface>
<composite:implementation>
<span id="#{cc.clientId}">
<ui:repeat value="#{facesContext.getMessageList(cc.attrs.for)}" var="_msg">
<h:outputText value="#{_msg.summary}"/><br/>
</ui:repeat>
</span>
</composite:implementation>
</html>
[/code]
It worked on GlassFish v3.
[Message sent by forum member 'vesuvius']
http://forums.java.net/jive/thread.jspa?messageID=394882
This message
: [
Message body
]
Next message
:
Ed Burns: "Re: [webtier] JSF 2 How to resolve Resource URLs in UIComponents"
Previous message
:
Hilco Wijbenga: "JSPs, Enums, and toString"
In reply to
:
webtier_at_javadesktop.org: "Re: composite component with "for" attribute in jsf2.0 - is it possible?"
Next in thread
:
webtier_at_javadesktop.org: "Re: composite component with "for" attribute in jsf2.0 - is it possible?"
Reply
:
webtier_at_javadesktop.org: "Re: composite component with "for" attribute in jsf2.0 - is it possible?"
Contemporary messages sorted
: [
by date
] [
by thread
] [
by subject
] [
by author
] [
by messages with attachments
]