This content has been marked as final.
Show 4 replies
-
1. Re: Hiding cid's
marx3 Mar 16, 2009 6:34 PM (in response to meetoblivion)I would like to know too...
-
2. Re: Hiding cid's
gonorrhea Mar 16, 2009 11:46 PM (in response to meetoblivion)read section 9.3 in Yuan/Heute 2nd ed. Seam book on
natural conversations
.you can also download the source code for the book here: http://solutionsfit.com/seam
the natural booking example is the one you're interested in...
Explicit synthetic conversation IDs are now deprecated; use natural conversations instead. -
3. Re: Hiding cid's
gonorrhea Mar 16, 2009 11:59 PM (in response to meetoblivion)well it gets a bit confusing. I just checked the book and it states the following:
Seam implements a very simple approach to configuring navigable URLs. First, you need to add the following snippet to your components.xml file to enable URL rewriting:<web:rewrite-filter view-mapping="*.seam"/>
But I don't see this in the booking example source code (there is no separate naturalbooking example in the download).
I do see this:
urlrewrite.xml:
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE urlrewrite PUBLIC "-//tuckey.org//DTD UrlRewrite 3.0//EN" "http://tuckey.org/res/dtds/urlrewrite3.0.dtd"> <urlrewrite> <rule> <from>^/confirm/([A-Za-z0-9]*)$</from> <to last="true">/confirm.seam?hotelId=$1</to> </rule> <outbound-rule> <from>/confirm.seam\?hotelId=([A-Za-z0-9]*)</from> <to>/confirm/$1</to> </outbound-rule> <rule> <from>^/book/([A-Za-z0-9]*)$</from> <to last="true">/book.seam?hotelId=$1</to> </rule> <outbound-rule> <from>/book.seam\?hotelId=([A-Za-z0-9]*)</from> <to>/book/$1</to> </outbound-rule> <rule> <from>^/hotel/([A-Za-z0-9]*)$</from> <to last="true">/hotel.seam?hotelId=$1</to> </rule> <outbound-rule> <from>/hotel.seam\?hotelId=([A-Za-z0-9]*)</from> <to>/hotel/$1</to> </outbound-rule> </urlrewrite>
-