I am waiting on a book I ordered a while ago related =
to JSF but they take about a month to get here from Amazon. During =
development my application contained no bugs during user case testing.I =
am now seeing issues related to a graphic table banner that uses a few =
commandlink jsf tags that take (or are meant to) users to various areas =
of my site. The problem is I get a 404 when interacting with the image =
links and my suspicions aree that the root cause is due to 2 reasons =
possibly:
1) commandlink does not start a new request thereby causing the url  to =
be appended to existing url making it incorrect.
2) I am having to deploy an exploded war because my hosting provider =
fails to see that I simply can not upload my war and start it.

any suggestions as to why this is happening?  The code behind this =
is....=20

<h:form>
            <table id=3D"Table_01" width=3D"800"
                   height=3D"200" border=3D"0" cellpadding=3D"0" =
cellspacing=3D"0">
                <tr>
                    <td colspan=3D"9">
                        <h:commandLink action=3D"home" =
title=3D"#{hmsg.mainHomeLink}">
                            <h:graphicImage =
url=3D"/images/main-home.gif" width=3D"800"
                                            height=3D"158"
                                            alt=3D"#{hmsg.brokenImage}" =
style=3D"border-style:none"/>

                        </h:commandLink> </td>
                </tr>
                <tr>
                    <td colspan=3D"9">
                        <h:graphicImage =
url=3D"/images/jarbar-banner_02.png" width=3D"800" height=3D"3" =
alt=3D""/></td>

                </tr>
                <tr>
                    <td colspan=3D"3">
                        <h:graphicImage =
url=3D"/images/jarbar-banner_03.png" width=3D"227" height=3D"1" =
alt=3D""/></td>
                    <td rowspan=3D"2">
                        <h:commandLink =
action=3D"tutorials"title=3D"#{hmsg.tutorialLink}">
                            <h:graphicImage =
url=3D"/images/tutorials.gif" width=3D"161" height=3D"33"
                                            =
alt=3D"#{hmsg.brokenImage}"style=3D"border-style:none"/>
                        </h:commandLink></td>
                    <td colspan=3D"5">
                        <h:graphicImage =
url=3D"/images/jarbar-banner_05.png" width=3D"412" height=3D"1" =
alt=3D"#{hmsg.brokenImage}"/></td>
                </tr>
                <tr>
                    <td rowspan=3D"2">
                        <h:graphicImage =
url=3D"/images/jarbar-banner_06.png" width=3D"31" height=3D"38" =
alt=3D"#{hmsg.brokenImage}"/></td>
                    <td rowspan=3D"2">
                        <h:commandLink title=3D"#{hmsg.mainHomeLink}" =
action=3D"home">
                            <h:graphicImage url=3D"/images/home.gif" =
width=3D"160" height=3D"38"
                                            =
alt=3D"#{hmsg.brokenImage}"style=3D"border-style:none"/>
                        </h:commandLink></td>
                    <td rowspan=3D"2">
                        <h:graphicImage =
url=3D"/images/jarbar-banner_08.png" width=3D"36" height=3D"38" =
alt=3D"#{hmsg.brokenImage}"/></td>
                        <td rowspan=3D"2">
                            <h:graphicImage =
url=3D"/images/jarbar-banner_09.png" width=3D"35" height=3D"38" =
alt=3D"#{hmsg.brokenImage}"/></td>
                        <td> <h:commandLink =
action=3D"links"title=3D"#{hmsg.linksLink}">
                            <h:graphicImage =
url=3D"/images/downloads.gif" width=3D"154" height=3D"32"
                                            =
alt=3D"#{hmsg.brokenImage}"style=3D"border-style:none"/>
                            </h:commandLink>
                        </td>
                        <td rowspan=3D"2">
                            <h:graphicImage =
url=3D"/images/jarbar-banner_11.png" width=3D"28" height=3D"38" =
alt=3D"#{hmsg.brokenImage}"/></td>
                        <td>
                            <h:outputLink =
value=3D"/pages/user/secure/contact.jsf">

                                <h:graphicImage =
url=3D"/images/contact.png" width=3D"173" height=3D"32"
                                                =
alt=3D"#{hmsg.brokenImage}"style=3D"border-style:none"/>
                        </h:outputLink></td>
                        <td rowspan=3D"2">
                            <h:graphicImage =
url=3D"/images/jarbar-banner_13.png" width=3D"22" height=3D"38" =
alt=3D"#{hmsg.brokenImage}"/></td>
                    </tr>
                    <tr>
                        <td>
                            <h:graphicImage =
url=3D"/images/jarbar-banner_14.png" width=3D"161" height=3D"6" =
alt=3D"#{hmsg.brokenImage}"/></td>
                        <td>
                            <h:graphicImage =
url=3D"/images/jarbar-banner_15.png" width=3D"154" height=3D"6" =
alt=3D"#{hmsg.brokenImage}"/></td>
                        <td>
                            <h:graphicImage =
url=3D"/images/jarbar-banner_16.png" width=3D"173" height=3D"6" =
alt=3D"#{hmsg.brokenImage}"/></td>
                    </tr>
            </table></h:form>
       =20



where the actions directly linked to the respective pages in =
facesconfig.xml

more specifically, if I am currently on url/welcome.jsf and click home I =
get 404 as follows:=20
type Status report

message /pages/welcome.jsf

description The requested resource (/pages/welcome.jsf) is not =
available.






-------------------------------------------------------------------------=
-------

Apache Tomcat/6.0.20


  
------=_NextPart_000_0022_01CAF785.6A590390
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>IOL Daily Newsletter</TITLE>
<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<STYLE type=3Dtext/css>
<!--
 .artt { font-family: Arial; font-size: 10pt ; color: #000000}
 .related { font-family: Arial; font-size: 10pt ; color: =
#CC6600;text-decoration:underline}
 .related:hover { color: #000000;text-decoration:none}
 .m { font-family: Arial; font-size: 10pt ; color: =
#000000;text-decoration:underline}
 .m:hover { color: #FF6600;text-decoration:none}
 .whitetext { font-family: Arial; font-size: 11pt ; color: =
#000000;text-decoration:none}
 .orangetext { font-family: Arial; font-size: 12pt ; color: #FFFFFF}
 .date { font-family: Arial; font-size: 9pt ; color: #666666}
 .sl { font-family: Arial; font-size: 9pt ; color: =
#ff6600;text-decoration: none;font-weight:bold}
 .sl:hover { color: #000000}
 .leadhead { font-family: Arial; font-size: 10pt ; color: #FF6600 =
;font-weight:bold; text-decoration:none}
 .leadhead:hover { color: #000000}
 .leadstory { font-family: Arial; font-size: 14pt ; color: #000000; =
font-weight:bold; text-decoration:none}
 .leadstory:hover { color: #FF6600}
 .caption { font-family: Arial; font-size: 9pt ; color: #000000 }
 .caption:hover { color: #000000}
 .sl { font-family: Arial; font-size: 10pt;color: =
#FF6600;font-weight:bold;text-decoration:none}
 .sl:hover { color: #000000}
 .sectlink { font-family: Arial; font-size: 10pt;color: =
#FF6600;font-weight:bold;text-decoration:none}
 .sectlink:hover { color: #000000}
 .storylink { font-family: Arial; font-size: 10pt;color: =
#FF6600;font-weight:bold;text-decoration:none}
 .storylink:hover { color: #000000}
 .newidea { font-family: Arial; font-size: 10pt;color: =
#CC3300;font-weight:bold;text-decoration:none}
 .newidea:hover { color: #000000}
 .catindex { font-family: Arial; font-size: 10pt ; color: #000000; =
text-decoration: none;}
 .holon { padding: 2; border : solid #333333 1px; }
 .preferences {  font-family: Arial; font-size: 10pt}
 .cat {  font-family: Arial; font-size: 11pt; color: #FF6600; =
font-weight:bold;text-decoration:none}
 .cat:hover {color: #000000}
 .feature {  font-family: Arial; font-size: 10pt; color: #FFFFFF; =
font-weight:bold}
 .weather {  font-family: Arial; font-size: 10pt;color: #FF6600}
 .url {  font-family: Arial; font-size: 10pt}
 .arth {font-size:11pt;text-decoration:none;font-weight:bold;color:#000}
 .arth:visited {color:#000}

Reply via email to