|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectphp.java.faces.Script
public class Script
Proxy for calling php scripts.
| Constructor Summary | |
|---|---|
Script()
Creates a new script proxy. |
|
| Method Summary | |
|---|---|
java.lang.Object |
call(java.lang.String name,
java.lang.Class[] classes,
java.lang.Object[] args)
Call a php method. |
java.lang.Object |
getValue(int index)
Cal the php method "getValueIndex". |
java.lang.Object |
getValue(java.lang.Object property)
Call the php method "getValue". |
void |
setScript(java.lang.Object value)
Called for the managed Property "script". |
void |
setValue(int index,
java.lang.Object value)
Call the php method "setValueIndex". |
void |
setValue(java.lang.Object property,
java.lang.Object value)
Call the php method "setValue". |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Script()
faces-config.xml as "/scriptname.php" for local scripts or "http://.../scriptname.php" for remote scripts.
Remote scripts are executed and invoked on the remote server.
Example from faces-config.xml:
<managed-bean>
<managed-bean-name>helloWorldBacking</managed-bean-name>
<managed-bean-class>php.java.faces.Script</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
<managed-property>
<property-name>script</property-name>
<value>/scriptname.php</value>
</managed-property>
</managed-bean>
Invocable,
URLReader| Method Detail |
|---|
public java.lang.Object getValue(int index)
index - The index
public java.lang.Object getValue(java.lang.Object property)
property - The property
public void setValue(int index,
java.lang.Object value)
index - The array indexvalue - The new value
public void setValue(java.lang.Object property,
java.lang.Object value)
property - The property to setvalue - The new valuepublic void setScript(java.lang.Object value)
value - The script, for example "/helloWorld.php" or "http://.../helloWorld.php" or "@80:/.../helloWorld.php" as a short form for "http://127.0.0.1:80/.../helloWorld.php".
public java.lang.Object call(java.lang.String name,
java.lang.Class[] classes,
java.lang.Object[] args)
name - The name of the methodclasses - The parametersargs - The arguments
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||