Web Page Development and Web Client API
Web頁(yè)面開(kāi)發(fā)和Web客戶端提供的API
 3.1 Overview 概述
To create or edit existing web pages, from the PowerFolder Console click 'Develop', then 'Web 
Pages'. You can either edit an existing web page by clicking the 'Edit' button beside it or create a 
new web page by entering its name in the box next to 'New Web Page' and clicking 'Create'. 
Remember, new and editted web pages cannot be seen by outside viewers until they are deployed 
under the 'Administer' section.
為了創(chuàng)建頁(yè)面和編輯已有頁(yè)面,從PowerFolder控制臺(tái)單擊Develop,然后Web 
Pages.你可以編輯一個(gè)現(xiàn)存的頁(yè)面,通過(guò)單擊它旁邊的Edit按鈕,或者通過(guò)在New Web 
Page' 旁的文本框中輸入它的名字并且單擊'Create'按鈕來(lái)創(chuàng)建一個(gè)新頁(yè)面。記住,新的
和編輯的頁(yè)面不能從外部觀察者看到直到他們?cè)?Admimister'部分被發(fā)布為止。
Standard Html is rather bland. It just displays things for the user to see, but it can't understand 
commands issued by the user or 'do anything'. It can't read HTML 'form' parameters, it can't use 
user submitted information to change the state of a workflow.
標(biāo)準(zhǔn)的HTML是相當(dāng)謙遜的。它僅僅顯示用戶看到的,不過(guò)它不能理解用戶發(fā)出的做
任何事情的命令。它不能閱讀HTML form參數(shù),它也不能利用用戶提交的信息來(lái)改變工作
流的狀態(tài)。
That is where 'client' comes in. By default, it is included with every web page in PowerFolder. Its 
role is to simplify the PRocess of making HTML 'intelligent'.
這就是client進(jìn)入的原因。缺省情況下,它被包含在PowerFolder的每個(gè)頁(yè)面之
中。它的作用是簡(jiǎn)化使HTML智能的過(guò)程。
Web pages in PowerFolder use java jsp scripting and syntactically correct scripting means 
following the JSP conventions. For a general script area within a web page, start it with '<%' and 
end it with '%>'. For a one line script that writes output that the user will see, start it with '<%= ' 
and end it with '%>'.
PowerFolder中的web頁(yè)面使用jsp腳本,通過(guò)JSP轉(zhuǎn)換來(lái)得到正確的腳本含義。對(duì)
于一個(gè)頁(yè)面中的腳本區(qū)域,它開(kāi)始于<%,結(jié)束于%>,對(duì)于一行中的腳本,用于輸出給用戶可
見(jiàn)的內(nèi)容,開(kāi)始于<%=,結(jié)束于%>。
The goal of 'client' is to minimize the learning curve and make the scripting process more 
enjoyable.
client的目標(biāo)是使學(xué)習(xí)過(guò)程最小化而且使腳本流程更有趣。
PowerFolder can use any Java class or primitive, but by default it uses 3 variable types – 
Boolean, Decimal, and String. In the view of 'client' these represent 'boolean', 'double', and 
'java.lang.String' in Java.
PowerFolder可以使用任何java類和主類型,但缺省情況下它使用三種變量類型-
Boolean, Decimal, 和 String. 在client的觀點(diǎn)來(lái)看,這些表示了Java中的boolean, 
double, 和java.lang.String。
Note about below - when '()' is used to surround a name in a description, it is referring to an input 
argument. For instance if 'startWorkflow("Hello")' will start a workflow with trigger data 
'<powerfolder>Hello</powerfolder>', not '<powerfolder>(arguement1)</powerfolder>'.
注重下面內(nèi)容,當(dāng)()被用來(lái)在描述中包圍一個(gè)名字時(shí),它表示一個(gè)輸入?yún)?shù)。例如如
果'startWorkflow("Hello")'將啟動(dòng)一個(gè)工作流,帶有觸發(fā)數(shù)據(jù)'<powerfolder>Hello 
新聞熱點(diǎn)
疑難解答
圖片精選
網(wǎng)友關(guān)注