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 :

outputLabel qui ne s'affiche pas


Sujet :

JSF Java

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre éclairé

    Profil pro
    Inscrit en
    Juillet 2004
    Messages
    639
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juillet 2004
    Messages : 639
    Par défaut outputLabel qui ne s'affiche pas
    Bonjour

    Dans ma JSP incluse dans une structure Tiles, je veux afficher ce simple outputlabel :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    <h:inputText id="name">
         <h:outputLabel for="name" value="Enter your name: "/>
    </h:inputText>
    Mon soucis c'est que le inputText apparait bien à l'ecran mais pas le outputLabel. Auriez vous une solution?

    Par avance merci.

  2. #2
    Rédacteur
    Avatar de romaintaz
    Homme Profil pro
    Java craftsman
    Inscrit en
    Juillet 2005
    Messages
    3 790
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 47
    Localisation : France, Yvelines (Île de France)

    Informations professionnelles :
    Activité : Java craftsman
    Secteur : Finance

    Informations forums :
    Inscription : Juillet 2005
    Messages : 3 790
    Par défaut
    Oui, ne pas inclure le outputLabel dans l'input Text :


    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    <h:inputText id="name" .../>
    <h:outputLabel for="name" value="Enter your name: "/>
    Nous sommes tous semblables, alors acceptons nos différences !
    --------------------------------------------------------------
    Liens : Blog | Page DVP | Twitter
    Articles : Hudson | Sonar | Outils de builds Java Maven 3 | Play! 1 | TeamCity| CitConf 2009
    Critiques : Apache Maven

  3. #3
    Membre éclairé

    Profil pro
    Inscrit en
    Juillet 2004
    Messages
    639
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juillet 2004
    Messages : 639
    Par défaut
    Après correction l'anomalie subsiste.

    Ci-joint le code source de la page :
    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
    <style>
    	.tfooterPanel {text-align: center; width: 100%;}
    	.tmainpage    {	width:765px;}
     
    	.cmenu    {width:210 ; vertical-align: top;}
    	.cline    {width:1   ; background-color:gray;}
    	.ccontext {width:554 ; vertical-align: top; padding : 10 10 10 10; font-size:12;
    			  font-family: Arial, Helvetica, sans-serif;}
    </style>
     
    <html>
    	<head>
    		<title>Exadel JSF Studio</title>
    	</head>
    	<body bgcolor="#FFFFFF"  leftmargin="0" topmargin="0"
    			 rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0">
     
    <style>
    	.hleft {text-align:left;}
    	.hcenter {text-align:center;}
    	.hright {text-align:right;}
    </style>
     
    <style>
     .menuItem { padding-top : 20px; padding-bottom : 20px; }
    </style>
     
    <style>
    	.pagefooter {text-align: center; font-family: Arial, Helvetica, sans-serif; font-size:14}
    </style>
    			<table id="mainLayout" class="tmainpage" border="0" cellpadding="0" cellspacing="0">
     
    <thead>
    <tr><th colspan="3" scope="colgroup"><table id="header:header" border="0" cellpadding="0" cellspacing="0">
    <tfoot>
    <tr><td colspan="3"><img src="/Cave/images/hline.gif" height="2" width="765" alt="" /></td></tr>
    </tfoot>
    <tbody>
    <tr>
    <td class="hleft"><img src="/Cave/images/exadel-logo.gif" alt="" /></td>
    <td class="hcenter"><img src="/Cave/images/JSFandTiles.gif" alt="" /></td>
    <td class="hright"><img src="/Cave/images/tiles.gif" alt="" /></td>
    </tr>
    </tbody>
    </table>
    </th></tr>
    </thead>
    <tfoot>
    <tr><td class="tfooterPanel" colspan="3"><table id="footer:footer" border="0" cellpadding="0" cellspacing="0">
     
    <thead>
    <tr><th colspan="1" scope="colgroup"><img src="/Cave/images/hline.gif" height="2" width="765" alt="" /></th></tr>
    </thead>
    <tfoot>
    <tr><td class="pagefooter" colspan="1">&copy; Exadel, Inc., Copyright 2004.
     
    			Developed with Exadel JSF Studio</td></tr>
    </tfoot>
    <tbody>
    </tbody>
    </table>
    </td></tr>
    </tfoot>
    <tbody>
    <tr>
    <td class="cmenu"><span id="leftMenu"><form id="leftsideMenu" method="post" action="/Cave/pages/index.jsf" enctype="application/x-www-form-urlencoded">
    <table id="leftsideMenu:menu" border="0" cellpadding="0" cellspacing="0">
     
    <tbody>
    <tr>
    <td class="menuItem"><a id="leftsideMenu:jsf" href="#" title="JSF Studio" onclick="document.forms['leftsideMenu']['leftsideMenu:jsf'].value='leftsideMenu:jsf'; document.forms['leftsideMenu'].submit(); return false;"><img src="/Cave/images/jsfstudio.gif" onmouseout="this.style.border='1px solid white'" onmouseover="this.style.border='1px solid blue'" style="border:1px solid white" alt="" /></a></td>
    </tr>
    <tr>
    <td class="menuItem"><a id="leftsideMenu:orm" href="#" title="ORM Studio" onclick="document.forms['leftsideMenu']['leftsideMenu:orm'].value='leftsideMenu:orm'; document.forms['leftsideMenu'].submit(); return false;"><img src="/Cave/images/ormstudio.gif" onmouseout="this.style.border='1px solid white'" onmouseover="this.style.border='1px solid blue'" style="border:1px solid white" alt="" /></a></td>
    </tr>
    <tr>
    <td class="menuItem"><a id="leftsideMenu:struts" href="#" title="Struts Studio" onclick="document.forms['leftsideMenu']['leftsideMenu:struts'].value='leftsideMenu:struts'; document.forms['leftsideMenu'].submit(); return false;"><img src="/Cave/images/strutsstudio.gif" onmouseout="this.style.border='1px solid white'" onmouseover="this.style.border='1px solid blue'" style="border:1px solid white" alt="" /></a></td>
    </tr>
    </tbody>
    </table>
    <input type="hidden" name="leftsideMenu" value="leftsideMenu" /><input type="hidden" name="leftsideMenu:orm" /><input type="hidden" name="leftsideMenu:struts" /><input type="hidden" name="leftsideMenu:jsf" /></form></span></td>
    <td class="cline"><span id="verticalLine"><img src="/Cave/images/spacer.gif" height="1" width="1" alt="" /></span></td>
    <td class="ccontext"><span id="pageContext"><input id="name" type="text" name="name" /><label for="name">
    </label></span></td>
    </tr>
     
    </tbody>
    </table>
     
     
    	</body>	
    </html>

  4. #4
    Rédacteur
    Avatar de romaintaz
    Homme Profil pro
    Java craftsman
    Inscrit en
    Juillet 2005
    Messages
    3 790
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 47
    Localisation : France, Yvelines (Île de France)

    Informations professionnelles :
    Activité : Java craftsman
    Secteur : Finance

    Informations forums :
    Inscription : Juillet 2005
    Messages : 3 790
    Par défaut
    Le code JSF nous serait plus utile je pense...
    Nous sommes tous semblables, alors acceptons nos différences !
    --------------------------------------------------------------
    Liens : Blog | Page DVP | Twitter
    Articles : Hudson | Sonar | Outils de builds Java Maven 3 | Play! 1 | TeamCity| CitConf 2009
    Critiques : Apache Maven

  5. #5
    Rédacteur

    Profil pro
    Inscrit en
    Juin 2003
    Messages
    4 184
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2003
    Messages : 4 184
    Par défaut
    il faut également un h:form qui englobe le tout.

  6. #6
    Membre éclairé

    Profil pro
    Inscrit en
    Juillet 2004
    Messages
    639
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juillet 2004
    Messages : 639
    Par défaut
    Toujours le même problème avec le <h:form>

    Code source de la page :

    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
    <style>
    	.tfooterPanel {text-align: center; width: 100%;}
    	.tmainpage    {	width:765px;}
     
    	.cmenu    {width:210 ; vertical-align: top;}
    	.cline    {width:1   ; background-color:gray;}
    	.ccontext {width:554 ; vertical-align: top; padding : 10 10 10 10; font-size:12;
    			  font-family: Arial, Helvetica, sans-serif;}
    </style>
     
    <html>
    	<head>
    		<title>Exadel JSF Studio</title>
    	</head>
    	<body bgcolor="#FFFFFF"  leftmargin="0" topmargin="0"
    			 rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0">
     
    <style>
    	.hleft {text-align:left;}
    	.hcenter {text-align:center;}
    	.hright {text-align:right;}
    </style>
    <style>
     .menuItem { padding-top : 20px; padding-bottom : 20px; }
    </style>
     
    <style>
    	.pagefooter {text-align: center; font-family: Arial, Helvetica, sans-serif; font-size:14}
    </style>
     
    			<table id="mainLayout" class="tmainpage" border="0" cellpadding="0" cellspacing="0">
     
    <thead>
    <tr><th colspan="3" scope="colgroup"><table id="header:header" border="0" cellpadding="0" cellspacing="0">
    <tfoot>
    <tr><td colspan="3"><img src="/Cave/images/hline.gif" height="2" width="765" alt="" /></td></tr>
    </tfoot>
    <tbody>
    <tr>
    <td class="hleft"><img src="/Cave/images/exadel-logo.gif" alt="" /></td>
    <td class="hcenter"><img src="/Cave/images/JSFandTiles.gif" alt="" /></td>
    <td class="hright"><img src="/Cave/images/tiles.gif" alt="" /></td>
    </tr>
    </tbody>
    </table>
    </th></tr>
    </thead>
    <tfoot>
    <tr><td class="tfooterPanel" colspan="3"><table id="footer:footer" border="0" cellpadding="0" cellspacing="0">
     
    <thead>
    <tr><th colspan="1" scope="colgroup"><img src="/Cave/images/hline.gif" height="2" width="765" alt="" /></th></tr>
    </thead>
    <tfoot>
    <tr><td class="pagefooter" colspan="1">&copy; Exadel, Inc., Copyright 2004.
     
    			Developed with Exadel JSF Studio</td></tr>
    </tfoot>
    <tbody>
    </tbody>
    </table>
    </td></tr>
    </tfoot>
    <tbody>
    <tr>
    <td class="cmenu"><span id="leftMenu"><form id="leftsideMenu" method="post" action="/Cave/pages/index.jsf" enctype="application/x-www-form-urlencoded">
    <table id="leftsideMenu:menu" border="0" cellpadding="0" cellspacing="0">
     
    <tbody>
    <tr>
    <td class="menuItem"><a id="leftsideMenu:jsf" href="#" title="JSF Studio" onclick="document.forms['leftsideMenu']['leftsideMenu:jsf'].value='leftsideMenu:jsf'; document.forms['leftsideMenu'].submit(); return false;"><img src="/Cave/images/jsfstudio.gif" onmouseout="this.style.border='1px solid white'" onmouseover="this.style.border='1px solid blue'" style="border:1px solid white" alt="" /></a></td>
    </tr>
    <tr>
    <td class="menuItem"><a id="leftsideMenu:orm" href="#" title="ORM Studio" onclick="document.forms['leftsideMenu']['leftsideMenu:orm'].value='leftsideMenu:orm'; document.forms['leftsideMenu'].submit(); return false;"><img src="/Cave/images/ormstudio.gif" onmouseout="this.style.border='1px solid white'" onmouseover="this.style.border='1px solid blue'" style="border:1px solid white" alt="" /></a></td>
    </tr>
    <tr>
    <td class="menuItem"><a id="leftsideMenu:struts" href="#" title="Struts Studio" onclick="document.forms['leftsideMenu']['leftsideMenu:struts'].value='leftsideMenu:struts'; document.forms['leftsideMenu'].submit(); return false;"><img src="/Cave/images/strutsstudio.gif" onmouseout="this.style.border='1px solid white'" onmouseover="this.style.border='1px solid blue'" style="border:1px solid white" alt="" /></a></td>
    </tr>
    </tbody>
    </table>
    <input type="hidden" name="leftsideMenu" value="leftsideMenu" /><input type="hidden" name="leftsideMenu:orm" /><input type="hidden" name="leftsideMenu:struts" /><input type="hidden" name="leftsideMenu:jsf" /></form></span></td>
    <td class="cline"><span id="verticalLine"><img src="/Cave/images/spacer.gif" height="1" width="1" alt="" /></span></td>
    <td class="ccontext"><span id="pageContext"><form id="_id8" method="post" action="/Cave/pages/index.jsf" enctype="application/x-www-form-urlencoded">
    <input id="_id8:name" type="text" name="_id8:name" /><label for="_id8:name">
    </label><input type="hidden" name="_id8" value="_id8" /></form></span></td>
     
    </tr>
    </tbody>
    </table>
    	</body>	
    </html>

Discussions similaires

  1. [HTML]Image qui ne s'affiche pas sous firefox...
    Par OrangeBud dans le forum Balisage (X)HTML et validation W3C
    Réponses: 3
    Dernier message: 13/10/2004, 13h42
  2. pages qui ne s'affichent pas
    Par luck dans le forum ASP
    Réponses: 4
    Dernier message: 19/07/2004, 11h35
  3. [Applet] BorderLayout qui ne s'affiche pas
    Par Invité(e) dans le forum Agents de placement/Fenêtres
    Réponses: 4
    Dernier message: 29/04/2004, 11h39
  4. [debutant][Tomcat]Images qui ne s'affichent pas
    Par omega dans le forum Servlets/JSP
    Réponses: 6
    Dernier message: 07/04/2004, 09h44
  5. [MFC] Ces fenêtres qui ne s'affichent pas..
    Par Davide dans le forum MFC
    Réponses: 3
    Dernier message: 19/11/2003, 11h30

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