net.sf.tacos.ajax
Class AjaxDirectServiceEncoder
java.lang.Object
net.sf.tacos.ajax.AjaxDirectServiceEncoder
- All Implemented Interfaces:
- org.apache.tapestry.engine.ServiceEncoder
public class AjaxDirectServiceEncoder
- extends Object
- implements org.apache.tapestry.engine.ServiceEncoder
This class encodes links generated by the AjaxDirectService.
You have to add a servlet-mapping for *.ajax for this to work.
Here's an example of the output:
/ajaxdirect.svc?component=linkToggle&page=ajax%2FEffectsExample&rand=907229478
&session=T&sp=Sar_AE&updatedirect=false&updateid=selectedCountries&updateid=ar_AE
becomes:
/907229478F0/ajax/EffectsExample/linkToggle*selectedCountries*ar_AE.ajax?sp=Sar_AE
TODO: This is more of a quick and untested solution for the moment. There are many
ways to create urls - we'll just have to talk + think + find the best looking one!
- Author:
- andyhot
Method Summary |
void |
decode(org.apache.tapestry.engine.ServiceEncoding encoding)
|
void |
encode(org.apache.tapestry.engine.ServiceEncoding encoding)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AjaxDirectServiceEncoder
public AjaxDirectServiceEncoder()
encode
public void encode(org.apache.tapestry.engine.ServiceEncoding encoding)
-
- Specified by:
encode
in interface org.apache.tapestry.engine.ServiceEncoder
decode
public void decode(org.apache.tapestry.engine.ServiceEncoding encoding)
-
- Specified by:
decode
in interface org.apache.tapestry.engine.ServiceEncoder