私は自分のプロジェクトで prettyfaces を使用し、うまく機能していますが、2 つの URL マッピングに同様のパターンを使用しようとすると、常に最初のものを念頭に置き、同じパターンを持つ 2 番目の URL マッピングを無視します。
私のコードであるきれいな顔を持つ別のページに同じパターンを持たせる方法があるかどうかあなたに尋ねたいです:
<pretty-config xmlns="http://ocpsoft.com/prettyfaces/3.3.0" 
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
               xsi:schemaLocation="http://ocpsoft.com/prettyfaces/3.3.0
                                        http://ocpsoft.com/xml/ns/prettyfaces/ocpsoft-pretty-faces-3.3.0.xsd">
    <url-mapping id="accueillogin"> 
      <pattern value="/login" />   
       <view-id value="/faces/login.xhtml" />             
    </url-mapping>  
    <url-mapping id="afficherarticlehome"> 
    <pattern value="/article" />   
       <view-id value="/faces/admin/gestiondesarticles/afficherarticlehome.xhtml" />             
    </url-mapping>
        <url-mapping id="afficherarticleges"> 
    <pattern value="/article" />     
       <view-id value="/faces/admin/gestiondesarticles/afficherarticleges.xhtml" />             
    </url-mapping> 
</pretty-config>
何か案が ?