IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

JSF Java Discussion :

ajax4jsf: problème avec <a4j:include>


Sujet :

JSF Java

  1. #1
    Futur Membre du Club
    Inscrit en
    Mai 2007
    Messages
    5
    Détails du profil
    Informations forums :
    Inscription : Mai 2007
    Messages : 5
    Points : 5
    Points
    5
    Par défaut ajax4jsf: problème avec <a4j:include>
    Bonjour,
    Je suis en train de développer une application JSF avec ajax4jsf, j'utilise ajax4jsf-1.1.0 (la dernière version) et pourtant quand je mets le tag <a4j:include>, j'ai cette erreur:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    Aucun tag include dans la librairie de tag importée avec le préfixe a4j.
    Si quelqu'un a une idée.

    Merci

  2. #2
    Nouveau membre du Club
    Profil pro
    Inscrit en
    Août 2006
    Messages
    53
    Détails du profil
    Informations personnelles :
    Localisation : France, Rhône (Rhône Alpes)

    Informations forums :
    Inscription : Août 2006
    Messages : 53
    Points : 39
    Points
    39
    Par défaut
    tu peux nous donner du code (jsf + web.xml)
    ça nous aiderait

  3. #3
    Futur Membre du Club
    Inscrit en
    Mai 2007
    Messages
    5
    Détails du profil
    Informations forums :
    Inscription : Mai 2007
    Messages : 5
    Points : 5
    Points
    5
    Par défaut
    Le code provient d'un tutorial, tout allait bien avant que j'ajoute <a4j:include>.
    La partie du code qui pose problème dans le fichier:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
     
    <a4j:outputPanel id="tab" ajaxRendered="true">
      <a4j:include  viewId="employeeHeader.jsp"/>
    </a4j:outputPanel>

    et le web.xml
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
     
    <?xml version="1.0" encoding="UTF-8"?>
    <!--
     * Copyright 2004 The Apache Software Foundation.
     *
     * Licensed under the Apache License, Version 2.0 (the "License");
     * you may not use this file except in compliance with the License.
     * You may obtain a copy of the License at
     *
     *      http://www.apache.org/licenses/LICENSE-2.0
     *
     * Unless required by applicable law or agreed to in writing, software
     * distributed under the License is distributed on an "AS IS" BASIS,
     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     * See the License for the specific language governing permissions and
     * limitations under the License.
    -->
    <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
     <display-name>googlehousemyface</display-name>
     <context-param>
      <description>State saving method: "client" or "server" (= default)
                See JSF Specification 2.5.2</description>
      <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
      <param-value>client</param-value>
     </context-param>
     <context-param>
      <description>This parameter tells MyFaces if javascript code should be allowed in the
                rendered HTML output.
                If javascript is allowed, command_link anchors will have javascript code
                that submits the corresponding form.
                If javascript is not allowed, the state saving info and nested parameters
                will be added as url parameters.
                Default: "true"</description>
      <param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name>
      <param-value>true</param-value>
     </context-param>
     <context-param>
      <description>This parameter tells MyFaces if javascript code should be allowed in the
                rendered HTML output.
                If javascript is allowed, command_link anchors will have javascript code
                that submits the corresponding form.
                If javascript is not allowed, the state saving info and nested parameters
                will be added as url parameters.
                Default: "false"
     
                Setting this param to true should be combined with STATE_SAVING_METHOD "server" for
                best results.
     
                This is an EXPERIMENTAL feature. You also have to enable the detector filter/filter mapping below to get
                JavaScript detection working.</description>
      <param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name>
      <param-value>false</param-value>
     </context-param>
     <context-param>
      <description>If true, rendered HTML code will be formatted, so that it is "human readable".
                i.e. additional line separators and whitespace will be written, that do not
                influence the HTML code.
                Default: "true"</description>
      <param-name>org.apache.myfaces.PRETTY_HTML</param-name>
      <param-value>true</param-value>
     </context-param>
     <context-param>
      <description>If true, a javascript function will be rendered that is able to restore the
                former vertical scroll on every request. Convenient feature if you have pages
                with long lists and you do not want the browser page to always jump to the top
                if you trigger a link or button action that stays on the same page.
                Default: "false"</description>
      <param-name>org.apache.myfaces.AUTO_SCROLL</param-name>
      <param-value>false</param-value>
     </context-param>
     
     <!--  
     <context-param>
      <param-name>javax.faces.application.CONFIG_FILES</param-name>
      <param-value>/WEB-INF/faces-config.xml,/WEB-INF/data-config.xml</param-value>
     </context-param>
     -->
     
     <context-param>
      <param-name>javax.faces.CONFIG_FILES</param-name>
      <param-value>/WEB-INF/faces-config.xml,/WEB-INF/data-config.xml</param-value>
     </context-param>
     
     
     <filter>
      <filter-name>extensionsFilter</filter-name>
      <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
      <init-param>
       <description>Set the size limit for uploaded files.
                    Format: 10 - 10 bytes
                            10k - 10 KB
                            10m - 10 MB
                            1g - 1 GB</description>
       <param-name>uploadMaxFileSize</param-name>
       <param-value>100m</param-value>
      </init-param>
      <init-param>
       <description>Set the threshold size - files
                        below this limit are stored in memory, files above
                        this limit are stored on disk.
     
                    Format: 10 - 10 bytes
                            10k - 10 KB
                            10m - 10 MB
                            1g - 1 GB</description>
       <param-name>uploadThresholdSize</param-name>
       <param-value>100k</param-value>
      </init-param>
      <!--        <init-param>
                <param-name>uploadRepositoryPath</param-name>
                <param-value>/temp</param-value>
                <description>Set the path where the intermediary files will be stored.
                </description>
            </init-param>-->
     </filter>
     
     <!-- jajx4jsf config -->
     <context-param>
      <param-name>org.ajax4jsf.SKIN</param-name>
      <param-value>DEFAULT</param-value>
     </context-param>
     <filter>
      <display-name>Ajax4jsf Filter</display-name>
      <filter-name>ajax4jsf</filter-name>
      <filter-class>org.ajax4jsf.Filter</filter-class>
     </filter>
     <filter-mapping>
      <filter-name>ajax4jsf</filter-name>
      <url-pattern>/*</url-pattern>
     </filter-mapping>
     
     
     <filter-mapping>
      <filter-name>extensionsFilter</filter-name>
      <url-pattern>*.jsf</url-pattern>
     </filter-mapping>
     <filter-mapping>
      <filter-name>extensionsFilter</filter-name>
      <url-pattern>/faces/*</url-pattern>
     </filter-mapping>
     
     <!--  sun ri start up 
     <listener>
      <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
     </listener>
     -->
     <!-- Listener, that does all the startup work (configuration, init). -->
     
     <listener>
      <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
     </listener>
     
     <servlet>
      <servlet-name>Faces Servlet</servlet-name>
      <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
      <load-on-startup>1</load-on-startup>
     </servlet>
     
     <servlet>
              <servlet-name>SourceCodeServlet</servlet-name>
                <servlet-class>
                org.apache.myfaces.shared_tomahawk.util.servlet.SourceCodeServlet
                </servlet-class>
     </servlet>
     
     <servlet-mapping>
      <servlet-name>Faces Servlet</servlet-name>
      <url-pattern>*.jsf</url-pattern>
     </servlet-mapping>
     <welcome-file-list>
      <welcome-file>index.jsf</welcome-file>
      <welcome-file>index.jsp</welcome-file>
      <welcome-file>index.html</welcome-file>
     </welcome-file-list>
    </web-app>
    Merci

  4. #4
    Futur Membre du Club
    Inscrit en
    Mai 2007
    Messages
    5
    Détails du profil
    Informations forums :
    Inscription : Mai 2007
    Messages : 5
    Points : 5
    Points
    5
    Par défaut
    Bonjour,
    Au fait mon problème est résolu. Le tag <a4j:include> est reconnu sans que j'ai eu à changer quoique ce soit.
    Merci de m'avoir répondu.

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. [Wamp] Problème avec la fonction include
    Par hoRus` dans le forum EDI, CMS, Outils, Scripts et API
    Réponses: 2
    Dernier message: 03/08/2007, 14h56
  2. [SQL] Problème avec la fonction include
    Par dubailth dans le forum PHP & Base de données
    Réponses: 2
    Dernier message: 16/07/2007, 11h34
  3. Problème avec la fonction include chez ifrance.com
    Par othmane126 dans le forum Langage
    Réponses: 10
    Dernier message: 26/05/2007, 11h56
  4. [Système] problème avec la fonction include()
    Par daemon2a dans le forum Langage
    Réponses: 4
    Dernier message: 10/05/2007, 11h02
  5. Problème avec mon 2nd include
    Par Diabless6 dans le forum Langage
    Réponses: 10
    Dernier message: 16/03/2007, 13h10

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo