Hey dude,
check this link
http://wiki.apache.org/myfaces/Shared_-_impl_or_tomahawk
On 6/26/06, John Ruffin <[EMAIL PROTECTED]> wrote:
I want to create a horizontal list and have each surrounded by a commandLink.
I thought I could do something like this:
--- Piece from java class
public SimpleNavItems(String displayValue, String goToText){
this.displayValue = displayValue;
this.goToText = goToText;
}
--- piece from backing bean - SearchForm
public List getNavItems() {
ArrayList l = new ArrayList();
l.add(new SimpleNavItems("Home", "toHomePage"));
l.add(new SimpleNavItems("Create new customer",
"toCreateNewCustomer"));
l.add(new SimpleNavItems("Find existing customer",
"toFindCustomer"));
return l;
}
--- piece from .faces
<t:dataList
value="#{searchForm.navItems}"
var="navItem"
id="horzNav" layout="grid">
<t:commandLink
immediate="true"
action="#{navItem.goToText}">
<h:outputText value="#{navItem.displayValue}"/>
<t:commandLink>
</t:dataList>
</t:div>
The list shows like I want but the commandLink doesn't work inside a table.
Is Matt's solution a workaround for this? Tomahawk1.1.14.
--
View this message in context:
http://www.nabble.com/Component-like-panelGrid-with-ul-and-li-t1668669.html#a5052296
Sent from the MyFaces - Users forum at Nabble.com.
--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com