myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fabio F." <fabio...@gmail.com>
Subject Re: Tomahawk and eclipse galileo not working?
Date Tue, 23 Mar 2010 15:38:13 GMT
If I change it to that url-pattern, the page doesn't render at all and the
html I obtain is:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8"></HEAD>
<BODY></BODY></HTML>

In case of popupCalendar=true or popupCalendar=false ...

Fabio Ferrari

2010/3/23 Jakob Korherr <jakob.korherr@gmail.com>

> Great - Thanks!
>
> The HTML tells me that your filter mapping for the extension filter is
> wrong. Please change it to
>
> <filter-mapping>
> <filter-name>MyFacesExtensionsFilter</filter-name>
> <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
> </filter-mapping>
>
> This should make it work!
>
> Regards,
> Jakob
>
>
> 2010/3/23 Fabio F. <fabiof78@gmail.com>
>
> > And this is the page (query.jsp) for popupCalendar=false
> >
> > <html><head>
> > <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
> > <title>Benvenuto</title>
> > <style type="text/css">
> >    <!--
> >    .highlight { background-color: #A8D1E8; color=blue;}
> >    -->
> > </style>
> > </head><body id="j_id_jsp_470444661_3"><form id="queryaziende"
> > name="queryaziende" method="post" action="/telemarketing/faces/query.jsp"
> > enctype="application/x-www-form-urlencoded">
> >    <p>Benvenuto <label>Fabio</label>&nbsp;<label>Ferrari</label></p>
> >    <p>Provincia: <select name="queryaziende:j_id_jsp_470444661_7"
> > size="1">    <option value="PR">PR</option>    <option
> > value="BS">BS</option>    <option value="" selected="selected"></option>
> > <option value="TO">TO</option>    <option value="PZ">PZ</option>
>  <option
> > value="ZIBELLO">ZIBELLO</option>    <option value="SP">SP</option>
> > <option value="MI">MI</option></select>
> >    Stato: <select name="queryaziende:j_id_jsp_470444661_9" size="1">
> > <option value="x">Non interessato</option>    <option value="C">In
> > trattativa</option>    <option value="A">Acquisto
> > effettuato</option></select></p>
> >
> > <span id="queryaziende:datainiz"><input id="queryaziende:datainiz.day"
> > name="queryaziende:datainiz.day" size="2" maxlength="2" /><select
> > id="queryaziende:datainiz.month" name="queryaziende:datainiz.month"
> > size="1"><option value="-1" selected="selected"></option>       
<option
> > value="1">gennaio</option>        <option value="2">febbraio</option>
> > <option value="3">marzo</option>        <option value="4">aprile</option>
> >    <option value="5">maggio</option>        <option
> > value="6">giugno</option>        <option value="7">luglio</option>
> > <option value="8">agosto</option>        <option
> > value="9">settembre</option>        <option value="10">ottobre</option>
> >    <option value="11">novembre</option>        <option
> > value="12">dicembre</option></select><input
> id="queryaziende:datainiz.year"
> > name="queryaziende:datainiz.year" size="4" maxlength="4" /></span><script
> > type="text/javascript"><!--
> >
> >
> >    function oamSetHiddenInput(formname, name, value)
> >    {
> >        var form = document.forms[formname];
> >         if(typeof form.elements[name]!='undefined' &&
> > form.elements[name].nodeName=='INPUT')
> >        {
> >             form.elements[name].value=value;
> >        }
> >        else
> >        {
> >            var newInput = document.createElement('input');
> >            newInput.setAttribute('type','hidden');
> >            newInput.setAttribute('id',name);
> >            newInput.setAttribute('name',name);
> >            newInput.setAttribute('value',value);
> >            form.appendChild(newInput);
> >        }
> >
> >    }
> >
> >
> >    function oamClearHiddenInput(formname, name, value)
> >    {
> >        var form = document.forms[formname];
> >         var hInput = form.elements[name];
> >        if(typeof hInput !='undefined')
> >        {
> >            form.removeChild(hInput);
> >        }
> >
> >    }
> >
> >    function oamSubmitForm(formName, linkId, target, params)
> >    {
> >
> >        var clearFn = 'clearFormHiddenParams_'+formName.replace(/-/g,
> > '\$:').replace(/:/g,'_');
> >        if(typeof window[clearFn] =='function')
> >        {
> >            window[clearFn](formName);
> >        }
> >
> >        if(typeof window.getScrolling!='undefined')
> >        {
> >            oamSetHiddenInput(formName,'autoScroll',getScrolling());
> >        }
> >
> >        var form = document.forms[formName];
> >         var oldTarget = form.target;
> >        if(target != null)
> >        {
> >
> >            form.target=target;
> >        }
> >        if((typeof params!='undefined') && params != null)
> >        {
> >
> >            for(var i=0, param; (param = params[i]); i++)
> >            {
> >                oamSetHiddenInput(formName,param[0], param[1]);
> >            }
> >
> >        }
> >
> >        oamSetHiddenInput(formName,formName +':'+'_idcl',linkId);
> >
> >        if(form.onsubmit)
> >        {
> >            var result=form.onsubmit();
> >            if((typeof result=='undefined')||result)
> >            {
> >                try
> >                {
> >                    form.submit();
> >                }
> >                catch(e){}
> >            }
> >
> >        }
> >        else
> >        {
> >            try
> >            {
> >                form.submit();
> >            }
> >            catch(e){}
> >        }
> >
> >        form.target=oldTarget;
> >        if((typeof params!='undefined') && params != null)
> >        {
> >
> >            for(var i=0, param; (param = params[i]); i++)
> >            {
> >                oamClearHiddenInput(formName,param[0], param[1]);
> >            }
> >
> >        }
> >
> >        oamClearHiddenInput(formName,formName +':'+'_idcl',linkId);return
> > false;
> >    }
> >
> >
> > //--></script><input id="queryaziende:j_id_jsp_470444661_12"
> > name="queryaziende:j_id_jsp_470444661_12" type="submit" value="Query"
> > onclick="if(typeof
> >
> >
> window.getScrolling!='undefined'){oamSetHiddenInput('queryaziende','autoScroll',getScrolling());}"
> > />
> > <input type="hidden" name="autoScroll" />
> > <input type="hidden" name="queryaziende_SUBMIT" value="1" /><input
> > type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState"
> >
> >
> value="OJESdja1jaMfY2GNgOEtYZVCGw5Xw63sGplYVRh7SJZiPTBAy5S+j3OUQiungWQ8Cu/1ZM6ltj2fiJ9zyhgHww=="
> > /></form>
> > <script type="text/javascript"><!--
> >
> >    function getScrolling()
> >    {
> >        var x = 0; var y = 0;if (self.pageXOffset || self.pageYOffset)
> >        {
> >            x = self.pageXOffset;
> >            y = self.pageYOffset;
> >        }
> >         else if ((document.documentElement &&
> > document.documentElement.scrollLeft)||(document.documentElement &&
> > document.documentElement.scrollTop))
> >        {
> >            x = document.documentElement.scrollLeft;
> >            y = document.documentElement.scrollTop;
> >        }
> >         else if (document.body)
> >        {
> >            x = document.body.scrollLeft;
> >            y = document.body.scrollTop;
> >        }
> >        return x + "," + y;
> >    }
> >
> > //--></script>
> > </body></html>
> >
> > 2010/3/23 Fabio F. <fabiof78@gmail.com>
> >
> > > No, it is the login page. This page leads to the
> > >
> > > http://localhost:8080/telemarketing/faces/query.jsp
> > >
> > > whose code is (note that it is incomplete because it crashes):
> > >
> > > <html><head>
> > > <link rel="stylesheet"
> > >
> >
> href="/telemarketing/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/12693516/calendar.HtmlCalendarRenderer/WH/theme.css"
> > > type="text/css" />
> > > <link rel="stylesheet"
> > >
> >
> href="/telemarketing/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/12693516/calendar.HtmlCalendarRenderer/DB/theme.css"
> > > type="text/css" />
> > >
> > > <meta http-equiv="Content-Type" content="text/html;
> charset=ISO-8859-1">
> > > <title>Benvenuto</title>
> > > <style type="text/css">
> > >     <!--
> > >     .highlight { background-color: #A8D1E8; color=blue;}
> > >     -->
> > > </style>
> > > </head><body id="j_id_jsp_470444661_3"><form id="queryaziende"
> > > name="queryaziende" method="post"
> action="/telemarketing/faces/query.jsp"
> > > enctype="application/x-www-form-urlencoded">
> > >     <p>Benvenuto <label>Fabio</label>&nbsp;<label>Ferrari</label></p>
> > >     <p>Provincia: <select name="queryaziende:j_id_jsp_470444661_7"
> > > size="1">    <option value="PR">PR</option>    <option
> > > value="BS">BS</option>    <option value=""
> selected="selected"></option>
> > > <option value="TO">TO</option>    <option value="PZ">PZ</option>
> >  <option
> > > value="ZIBELLO">ZIBELLO</option>    <option value="SP">SP</option>
> > > <option value="MI">MI</option></select>
> > >     Stato: <select name="queryaziende:j_id_jsp_470444661_9" size="1">
> > > <option value="x">Non interessato</option>    <option value="C">In
> > > trattativa</option>    <option value="A">Acquisto
> > > effettuato</option></select></p>
> > >
> > > <span id="queryaziende:datainiz"><input id="queryaziende:datainiz.day"
> > > name="queryaziende:datainiz.day" size="2" maxlength="2" /><select
> > > id="queryaziende:datainiz.month" name="queryaziende:datainiz.month"
> > > size="1"><option value="-1" selected="selected"></option>
>  <option
> > > value="1">gennaio</option>        <option value="2">febbraio</option>
> > > <option value="3">marzo</option>        <option
> value="4">aprile</option>
> > >     <option value="5">maggio</option>        <option
> > > value="6">giugno</option>        <option value="7">luglio</option>
> > > <option value="8">agosto</option>        <option
> > > value="9">settembre</option>        <option value="10">ottobre</option>
> > >     <option value="11">novembre</option>        <option
> > > value="12">dicembre</option></select><input
> > id="queryaziende:datainiz.year"
> > > name="queryaziende:datainiz.year" size="4" maxlength="4" />
> > >
> > >
> > >
> > >
> > > 2010/3/23 Jakob Korherr <jakob.korherr@gmail.com>
> > >
> > >> Thanks!
> > >>
> > >> Is this the page that is supposed to render the calendar with the
> popup?
> > >> Because I don't see the javascript needed for it here..
> > >>
> > >> Regards,
> > >> Jakob
> > >>
> > >> 2010/3/23 Fabio F. <fabiof78@gmail.com>
> > >>
> > >> > Ah, ok.
> > >> >
> > >> > Here's login.jsp.
> > >> >
> > >> > <html>
> > >> > <head>
> > >> > <meta http-equiv="Content-Type" content="text/html;
> > charset=ISO-8859-1">
> > >> > <title>Login aziende</title>
> > >> > </head>
> > >> > <body>
> > >> > <center><h1>Elenco aziende</h1></center>
> > >> > <form id="login" name="login" method="post"
> > >> > action="/telemarketing/faces/login.jsp"
> > >> > enctype="application/x-www-form-urlencoded">
> > >> >    <p>Entra</p>
> > >> >    <p>Username: <input id="login:j_id_jsp_1876195572_2"
> > >> > name="login:j_id_jsp_1876195572_2" type="text" value="fabio" /></p>
> > >> >    <p>Password: <input type="password"
> > >> name="login:j_id_jsp_1876195572_3"
> > >> > /></p>
> > >> >    <script type="text/javascript"><!--
> > >> >
> > >> >
> > >> >    function oamSetHiddenInput(formname, name, value)
> > >> >    {
> > >> >        var form = document.forms[formname];
> > >> >        if (typeof form == 'undefined')
> > >> >        {
> > >> >            form = document.getElementById(formName);
> > >> >        }
> > >> >
> > >> >        if(typeof form.elements[name]!='undefined' &&
> > >> > (form.elements[name].nodeName=='INPUT' ||
> > >> > form.elements[name].nodeName=='input'))
> > >> >        {
> > >> >            form.elements[name].value=value;
> > >> >        }
> > >> >        else
> > >> >        {
> > >> >            var newInput = document.createElement('input');
> > >> >            newInput.setAttribute('type','hidden');
> > >> >            newInput.setAttribute('id',name);
> > >> >            newInput.setAttribute('name',name);
> > >> >            newInput.setAttribute('value',value);
> > >> >            form.appendChild(newInput);
> > >> >        }
> > >> >
> > >> >    }
> > >> >
> > >> >
> > >> >    function oamClearHiddenInput(formname, name, value)
> > >> >    {
> > >> >        var form = document.forms[formname];
> > >> >        if (typeof form == 'undefined')
> > >> >        {
> > >> >            form = document.getElementById(formName);
> > >> >        }
> > >> >
> > >> >        var hInput = form.elements[name];
> > >> >        if(typeof hInput !='undefined')
> > >> >        {
> > >> >            form.removeChild(hInput);
> > >> >        }
> > >> >
> > >> >    }
> > >> >
> > >> >    function oamSubmitForm(formName, linkId, target, params)
> > >> >    {
> > >> >
> > >> >        var clearFn = 'clearFormHiddenParams_'+formName.replace(/-/g,
> > >> > '\$:').replace(/:/g,'_');
> > >> >        if(typeof window[clearFn] =='function')
> > >> >        {
> > >> >            window[clearFn](formName);
> > >> >        }
> > >> >
> > >> >        if(typeof window.getScrolling!='undefined')
> > >> >        {
> > >> >            oamSetHiddenInput(formName,'autoScroll',getScrolling());
> > >> >        }
> > >> >
> > >> >        var form = document.forms[formName];
> > >> >        if (typeof form == 'undefined')
> > >> >        {
> > >> >            form = document.getElementById(formName);
> > >> >        }
> > >> >
> > >> >        var oldTarget = form.target;
> > >> >        if(target != null)
> > >> >        {
> > >> >
> > >> >            form.target=target;
> > >> >        }
> > >> >        if((typeof params!='undefined') && params != null)
> > >> >        {
> > >> >
> > >> >            for(var i=0, param; (param = params[i]); i++)
> > >> >            {
> > >> >                oamSetHiddenInput(formName,param[0], param[1]);
> > >> >            }
> > >> >
> > >> >        }
> > >> >
> > >> >        oamSetHiddenInput(formName,formName +':'+'_idcl',linkId);
> > >> >
> > >> >        if(form.onsubmit)
> > >> >        {
> > >> >            var result=form.onsubmit();
> > >> >            if((typeof result=='undefined')||result)
> > >> >            {
> > >> >                try
> > >> >                {
> > >> >                    form.submit();
> > >> >                }
> > >> >                catch(e){}
> > >> >            }
> > >> >
> > >> >        }
> > >> >        else
> > >> >        {
> > >> >            try
> > >> >            {
> > >> >                form.submit();
> > >> >            }
> > >> >            catch(e){}
> > >> >        }
> > >> >
> > >> >        form.target=oldTarget;
> > >> >        if((typeof params!='undefined') && params != null)
> > >> >        {
> > >> >
> > >> >            for(var i=0, param; (param = params[i]); i++)
> > >> >            {
> > >> >                oamClearHiddenInput(formName,param[0], param[1]);
> > >> >            }
> > >> >
> > >> >        }
> > >> >
> > >> >        oamClearHiddenInput(formName,formName
> > +':'+'_idcl',linkId);return
> > >> > false;
> > >> >    }
> > >> >
> > >> >
> > >> > //--></script><input id="login:j_id_jsp_1876195572_4"
> > >> > name="login:j_id_jsp_1876195572_4" type="submit" value="Login"
> > >> > onclick="if(typeof
> > >> >
> > >> >
> > >>
> >
> window.getScrolling!='undefined'){oamSetHiddenInput('login','autoScroll',getScrolling());}"
> > >> > />
> > >> > <input type="hidden" name="autoScroll" />
> > >> > <input type="hidden" name="login_SUBMIT" value="1" /><input
> > >> type="hidden"
> > >> > name="javax.faces.ViewState" id="javax.faces.ViewState"
> > >> >
> > >> >
> > >>
> >
> value="zIMgBuW/tce7OOILsjV0PiVTJ/AqSIX+uDFIECtrt49O49UDy2OA2ZSz0eJf6CsXjINRtpLixMffHDTl5zBAaQ=="
> > >> > /></form>
> > >> >
> > >> > <script type="text/javascript"><!--
> > >> >
> > >> >    function getScrolling()
> > >> >    {
> > >> >        var x = 0; var y = 0;if (self.pageXOffset ||
> self.pageYOffset)
> > >> >        {
> > >> >            x = self.pageXOffset;
> > >> >            y = self.pageYOffset;
> > >> >        }
> > >> >         else if ((document.documentElement &&
> > >> > document.documentElement.scrollLeft)||(document.documentElement &&
> > >> > document.documentElement.scrollTop))
> > >> >        {
> > >> >            x = document.documentElement.scrollLeft;
> > >> >            y = document.documentElement.scrollTop;
> > >> >        }
> > >> >         else if (document.body)
> > >> >        {
> > >> >            x = document.body.scrollLeft;
> > >> >            y = document.body.scrollTop;
> > >> >        }
> > >> >        return x + "," + y;
> > >> >    }
> > >> >
> > >> > //--></script>
> > >> > </body>
> > >> > </html>
> > >> >
> > >> > 2010/3/23 Jakob Korherr <jakob.korherr@gmail.com>
> > >> >
> > >> > > OK thanks for the URL.
> > >> > >
> > >> > > No I don't mean from the JSP, but from the generated HTML in
the
> > >> browser.
> > >> > > Just open your login.jsp in the browser and view the HTML source.
> > >> > >
> > >> > > Regards,
> > >> > > Jakob
> > >> > >
> > >> > >
> > >> >
> > >>
> > >
> > >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message