Syboos Htmllib quick start

2008/09/20 23:10Update
TAGS: Htmllib | jsf

Syboos Htmllib quick start with demo.

System Requirement:


1, Java runtime enviroment with JDK1.4 or later.
2, A JSP/SERVLET web container such as Tomcat, JBoss, Weblogic etc.

Run the demo:


1, Download Demo rfcdemo.war Here
2, Copy "rfcdemo.war" to your WEB SERVER's deployment directory. For Tomcat, the deployment directory is $TOMCAT_INSTALLATION_FOLDER/webapps/.
3, Run the web server.
4, Open a browser, access "http://localhost:8080/rfcdemo/jsp/rfc/rfc.faces"



Syboos Htmllib Demo's Source


ソース:rfcdemo.war.src.zip
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>

<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>

<%@ taglib uri="http://tfaces.syboos.com/tag/tfhtml" prefix="x" %>

<!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">
<head>
</head>

<body>

<f:view>
 <x:div id="mydiv">
     <x:span style="font:13px;">
         <h:outputText value="Test tfaces RFC library" />
     </x:span>
 </x:div>

<x:hr />

<x:table border="1px;">
    <x:thead>
        <x:tr>
            <x:th>column1</x:th>
            <x:th>column2</x:th>
        </x:tr>
    </x:thead>
    
    <x:tbody>
        <x:tr>
            <x:td>value1</x:td>
            <x:td>value2</x:td>
        </x:tr>
    </x:tbody>
</x:table>

</f:view>

</body>
</html>

有关作者
Syboos.jp編集長AJavaやオープンソース情報の執筆、Webサイトの開発や運営全般の業務に携わる。

Sponsored Link


Comments

  • Relative Articles