Hi,
i should have left this commented out... it's NOT needed.
You would need it if you wanted to enable friendlier urls for the ajax
direct service...
Using
https://svn.sourceforge.net/svnroot/tacos/tacos-4.0/trunk/src/java/net/sf/tacos/ajax/AjaxDirectServiceEncoder.java
you can have
/907229478F0/ajax/EffectsExample/linkToggle*selectedCountries*ar_AE.ajax?sp=Sar_AE
instead of
/ajaxdirect.svc?component=linkToggle&page=ajax%2FEffectsExample&rand=907229478&session=T&sp=Sar_AE&updatedirect=false&updateid=selectedCountries&updateid=ar_AE
which is a lot nicer, don't you think?
You'll have to also add in your hivemodule.xml this contribution:
<contribution configuration-id="tapestry.url.ServiceEncoders">
<encoder id="ajaxSrvEnc"
object="instance:net.sf.tacos.ajax.AjaxDirectServiceEncoder"/>
</contribution>
So, why haven't I documented this nice encoder? Well, it's not yet
bulletproof - i know that it breaks in some cases and
I believe we can come up with an ever friendlierurl scheme... take a
look at the source and offer your
suggestions if your interested
BTW, http://opencomponentry.com:8080/tacos/ajax/EffectsExample.html
contains a lot of ajax links and the current rendered
page weights at 65kb... IIRC, using this encoder saves you 15-20kb !
Mike Oestereter wrote:
> Hi
>
> I see in the tacos4 demo's web.xml file that amongst all the normal
> friendly URL mappings there is also a..
> <servlet-mapping>
> <servlet-name>TacosDemo</servlet-name>
> <url-pattern>*.ajax</url-pattern>
> </servlet-mapping>
>
> Is this new and/or required?
>
>
> Cheers Mike
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Tacos-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tacos-devel
>
>
--
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Tacos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tacos-devel