Reply To: dynamic url

Splash Forums PrettyFaces Users dynamic url Reply To: dynamic url

#24944

senceffm
Participant

EDIT:
got it working


    <url-mapping> 
    <pattern value="/info/#{contentController.viewPage}" /> 
    <view-id value="/META-INF/templates/layout.jsf" />
    <action>#{contentController.initContent()}</action> 
    </url-mapping> 
      
    <url-mapping>
  	<pattern value="/#{ /.+/ katName }/"></pattern>
 	<view-id value="/kategorien.jsf"></view-id>
	</url-mapping>
    
    <url-mapping>
  	<pattern value="/#{ /.+/ katName }/[^.]+$"></pattern>
 	<view-id value="/artikelDetails.jsf"></view-id>
	</url-mapping>

categorie directorys like:
/tools/hammer/
-> works -> viewID /kategorien.jsf will be used

article detail Pages like:
/cat/article-name
-> works -> viewId artikelDetails.jsf will be used

info Pages like:
/info/content
-> works -> viewID /META/templates/layout.jsf will be used

System Pages like:
/index.jsf
or
/checkout/basket.jsf
-> works -> cos regex pattern exclude the last end of the url if it contains a dot

  • This reply was modified 8 years, 4 months ago by  senceffm.