JSF sıralanmamış(unorderedlist) liste kullanımı (JSF unorderedlist usage code example)

<!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:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<h:head>
	<f:facet name="first">
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" />
		<title>My Useful Links Page</title>
	</f:facet>
</h:head>

<h:body>
	<ul class="myList" style="font-size: 13px;">

		<ui:repeat var="my" value="#{myBean.myList}" >	
    		<ui:fragment rendered="#{my.url != null}">
    			<li>
					<h:outputLink value="#{my.url}" target="_blank">
						<h:outputText value="#{my.name}"/>
					</h:outputLink>
				</li>
    		</ui:fragment>
    		<ui:fragment rendered="#{my.url == null}">
    			<li>
					<h:outputText value="#{my.name}" rendered="#{my.url == null}"/>
				</li>
    		</ui:fragment>
    	</ui:repeat>
	</ul>

</h:body>
</html>
Share on Facebook0Tweet about this on TwitterShare on Google+0Share on StumbleUpon0Share on Reddit0

Leave a Reply


*