Difference between revisions of "GSWComponent"

From GNUstepWiki
Jump to navigation Jump to search
Line 11: Line 11:
 
[[Image:Wobuilder.jpg]]
 
[[Image:Wobuilder.jpg]]
  
== Contents of a WO File Wrapper==
+
== Contents of a WO File Wrapper ==
  
 +
user@host>ls LoginComponent.wo/
 +
LoginComponent.html  LoginComponent.wod  LoginComponent.woo
 +
 +
== html file ==
 +
<code>
 +
<!-- "$Id: LoginComponent.html 337 2006-01-25 15:30:46Z dave $" -->
 +
<webobject name=LoggedInCon><webobject name=LoginForm>
 +
        <div class="logbar">
 +
                <p class="center">Login to see your calls and account.</p>
 +
                <p class="right">Email:
 +
                        <webobject name=EmailField></webobject></p>
 +
                <p class="right">Password:
 +
                        <webobject name=PasswordField></webobject></p>
 +
                <p class="center">
 +
                        <webobject name="LoginButton"></webobject><webobject name=ErrorCond>Error</webobject></p>
 +
        </div>
 +
</webobject></webobject><webobject name=LoggedInCon2>
 +
        <div class="logbar">
 +
                <h2>My Account</h2>
 +
                <p class="center"><webobject name=emailString></webobject></p>
 +
                <p class="center"><webobject name=logoutLink>Log out</webobject></p>
 +
        </div>
 +
</webobject>
 +
<!-- END LoginComponent -->
 +
</code>
 
----
 
----
  
 
[[Category:GNUstepWeb]]
 
[[Category:GNUstepWeb]]
 
[[Category:Development]]
 
[[Category:Development]]

Revision as of 10:14, 2 January 2007

Introduction

Componets are the basic building blocks for GNUstepWeb.

Every componet is a directory. A component can represent a whole web page or just a part of it. It is easy to re-use pieces needed multiple times. A component contains three files they contain the HTML, the connections or bindings of your objects and additional information like the used encoding. Those files are suffixed .html, .wod and .woo.

If we use the WO Name syntax (Tags Named WEBOBJECT) we have the advantage of Web Objects Builder compatibility.


Wobuilder.jpg

Contents of a WO File Wrapper

user@host>ls LoginComponent.wo/
LoginComponent.html  LoginComponent.wod   LoginComponent.woo

html file

<webobject name=LoggedInCon><webobject name=LoginForm>

Login to see your calls and account.

Email: <webobject name=EmailField></webobject>

Password: <webobject name=PasswordField></webobject>

<webobject name="LoginButton"></webobject><webobject name=ErrorCond>Error</webobject>

</webobject></webobject><webobject name=LoggedInCon2>

My Account

<webobject name=emailString></webobject>

<webobject name=logoutLink>Log out</webobject>

</webobject>