Re: [solved] Problem on actionUrl param from a4j components when using pretty faces

Splash Forums PrettyFaces Users [solved] Problem on actionUrl param from a4j components when using pretty faces Re: [solved] Problem on actionUrl param from a4j components when using pretty faces

#20033

Ricardo Amaral
Participant

Follows my mapping:

<!– Begin RewriteRules –>

<rewrite match=”/(buscar|comparar)/(w+)/(w+)” substitute=”/$2/$3″ redirect=”chain” />

<rewrite match=”/(buscar|comparar)/([w]+.pchxa)” substitute=”/$2″ redirect=”chain” />

<!– Begin UrlMappings –>

<url-mapping id=”index”>

<pattern value=”/” />

<view-id>/index.pchxa</view-id>

</url-mapping>

<url-mapping id=”quemsomos”>

<pattern value=”/quemsomos” />

<view-id>/quemsomos_wrapper.pchxa</view-id>

</url-mapping>

<url-mapping id=”clientes”>

<pattern value=”/clientes” />

<view-id>/clientes_wrapper.pchxa</view-id>

</url-mapping>

<url-mapping id=”anuncie”>

<pattern value=”/anuncie” />

<view-id>/anuncie_wrapper.pchxa</view-id>

</url-mapping>

<url-mapping id=”ajuda”>

<pattern value=”/ajuda” />

<view-id>/ajuda_wrapper.pchxa</view-id>

</url-mapping>

<url-mapping id=”contato”>

<pattern value=”/contato” />

<view-id>/contato_wrapper.pchxa</view-id>

</url-mapping>

<url-mapping id=”cadastrese”>

<pattern value=”/cadastrese” />

<view-id>/cadastrese_wrapper.pchxa</view-id>

</url-mapping>

<url-mapping id=”convite”>

<pattern value=”/convite” />

<view-id>/convite_wrapper.pchxa</view-id>

</url-mapping>

<url-mapping id=”buscaProduto”>

<pattern value=”/buscar/#{buscaMB.bean.nm_produto}” />

<view-id>/busca_wrapper.pchxa?directaccess=true</view-id>

<action>#{buscaMB.buscarProdutos}</action>

</url-mapping>

<url-mapping id=”buscaCategoria”>

<pattern value=”/buscar/categoria/#{buscaMB.id_categoria}” />

<view-id>/busca_wrapper.pchxa?directaccess=true</view-id>

<action>#{buscaMB.buscarProdutosPorCategoria}</action>

</url-mapping>

<url-mapping id=”comparar”>

<pattern value=”/comparar/#{comparacaoMB.bean.cd_code_bar}” />

<view-id>/comparacao_wrapper.pchxa?directaccess=true</view-id>

<action>#{comparacaoMB.compararProduto}</action>

</url-mapping>

<url-mapping id=”termo”>

<pattern value=”/termo” />

<view-id>/termo_wrapper.pchxa</view-id>

</url-mapping>

<url-mapping id=”politica”>

<pattern value=”/politica” />

<view-id>/politica_wrapper.pchxa</view-id>

</url-mapping>