You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Admin Bid n' Play <ad...@bidnplay.com> on 2007/01/14 12:13:46 UTC
favicon.ico
Hi,
Very wierd question! I have added the following line in my Shell component:
<link rel="icon" href="favicon.ico" type="image/x-icon" />.
This is working fine with Mozilla, but there is nothing in IE 7. Has anyone
ever tried favicon before? Is there something particular i should do with
IE?
Thanks.
DvJ @ www.bidnplay.com
Re: favicon.ico
Posted by Marilen Corciovei <le...@nemesisit.rdsnet.ro>.
Sometimes the browser caches the favicon.ico and a page refresh does not
do the trick. The only thing that does is to open the favicon link:
http://www.len.ro/favicon.ico in my case and then do a browser refresh
in that page. After that everything is ok.
In the page I have something like:
<link rel="shortcut icon" type="image/x-icon"
href="http://www.len.ro/favicon.ico" />
Hope it helps,
Len
www.len.ro
On Sun, 2007-01-14 at 11:42 +0000, Admin Bid n' Play wrote:
> Tried all that, but this is not working as well from what I could get in
> wikipedia the last days.
> It is written that in fact the "link rel" is not necessary as long as the
> favicon is in the root... I have tried some other web sites, and this is
> working, so, I started thinking that might due to the way Tapestry is
> working.
>
> Would someone know how the favicon.ico is being rendered in the browser? Is
> that a request post by the browser after the page is already rendered? Then,
> this would have no relation with Tapestry at all.
>
> Cheers.
> DvJ @ www.bidnplay.com
>
> On 1/14/07, Daniel Lydiard <dl...@hotmail.com> wrote:
> >
> > http://en.wikipedia.org/wiki/Favicon
> >
> > a.. It has been suggested that both of the following XHTML element types
> > should be included:
> > <link rel="shortcut icon" href="http://example.com/favicon.ico"
> > type="image/x-icon" />
> > <link rel="icon" href="http://example.com/favicon.ico"
> > type="image/x-icon"
> > />
> > However, only the former is necessary, as "shortcut icon" will be
> > treated
> > as a list of possibilities by standards-compliant browsers (with
> > "shortcut"
> > being ignored, and "icon" used); whilst Internet Explorer will treat it as
> > a
> > single name ("shortcut icon"). The result is that all browsers understand
> > the code. It is only necessary to include a second piece of code if one
> > desires to offer an alternative image to modern browsers (e.g. an animated
> > GIF).
> >
> > ----- Original Message -----
> > From: "Admin Bid n' Play" <ad...@bidnplay.com>
> > To: <us...@tapestry.apache.org>
> > Sent: Sunday, January 14, 2007 3:13 AM
> > Subject: favicon.ico
> >
> >
> > > Hi,
> > >
> > > Very wierd question! I have added the following line in my Shell
> > > component:
> > > <link rel="icon" href="favicon.ico" type="image/x-icon" />.
> > >
> > > This is working fine with Mozilla, but there is nothing in IE 7. Has
> > > anyone
> > > ever tried favicon before? Is there something particular i should do
> > with
> > > IE?
> > >
> > > Thanks.
> > > DvJ @ www.bidnplay.com
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
Re: favicon.ico
Posted by Admin Bid n' Play <ad...@bidnplay.com>.
Tried all that, but this is not working as well from what I could get in
wikipedia the last days.
It is written that in fact the "link rel" is not necessary as long as the
favicon is in the root... I have tried some other web sites, and this is
working, so, I started thinking that might due to the way Tapestry is
working.
Would someone know how the favicon.ico is being rendered in the browser? Is
that a request post by the browser after the page is already rendered? Then,
this would have no relation with Tapestry at all.
Cheers.
DvJ @ www.bidnplay.com
On 1/14/07, Daniel Lydiard <dl...@hotmail.com> wrote:
>
> http://en.wikipedia.org/wiki/Favicon
>
> a.. It has been suggested that both of the following XHTML element types
> should be included:
> <link rel="shortcut icon" href="http://example.com/favicon.ico"
> type="image/x-icon" />
> <link rel="icon" href="http://example.com/favicon.ico"
> type="image/x-icon"
> />
> However, only the former is necessary, as "shortcut icon" will be
> treated
> as a list of possibilities by standards-compliant browsers (with
> "shortcut"
> being ignored, and "icon" used); whilst Internet Explorer will treat it as
> a
> single name ("shortcut icon"). The result is that all browsers understand
> the code. It is only necessary to include a second piece of code if one
> desires to offer an alternative image to modern browsers (e.g. an animated
> GIF).
>
> ----- Original Message -----
> From: "Admin Bid n' Play" <ad...@bidnplay.com>
> To: <us...@tapestry.apache.org>
> Sent: Sunday, January 14, 2007 3:13 AM
> Subject: favicon.ico
>
>
> > Hi,
> >
> > Very wierd question! I have added the following line in my Shell
> > component:
> > <link rel="icon" href="favicon.ico" type="image/x-icon" />.
> >
> > This is working fine with Mozilla, but there is nothing in IE 7. Has
> > anyone
> > ever tried favicon before? Is there something particular i should do
> with
> > IE?
> >
> > Thanks.
> > DvJ @ www.bidnplay.com
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
Re: favicon.ico
Posted by Daniel Lydiard <dl...@hotmail.com>.
http://en.wikipedia.org/wiki/Favicon
a.. It has been suggested that both of the following XHTML element types
should be included:
<link rel="shortcut icon" href="http://example.com/favicon.ico"
type="image/x-icon" />
<link rel="icon" href="http://example.com/favicon.ico" type="image/x-icon"
/>
However, only the former is necessary, as "shortcut icon" will be treated
as a list of possibilities by standards-compliant browsers (with "shortcut"
being ignored, and "icon" used); whilst Internet Explorer will treat it as a
single name ("shortcut icon"). The result is that all browsers understand
the code. It is only necessary to include a second piece of code if one
desires to offer an alternative image to modern browsers (e.g. an animated
GIF).
----- Original Message -----
From: "Admin Bid n' Play" <ad...@bidnplay.com>
To: <us...@tapestry.apache.org>
Sent: Sunday, January 14, 2007 3:13 AM
Subject: favicon.ico
> Hi,
>
> Very wierd question! I have added the following line in my Shell
> component:
> <link rel="icon" href="favicon.ico" type="image/x-icon" />.
>
> This is working fine with Mozilla, but there is nothing in IE 7. Has
> anyone
> ever tried favicon before? Is there something particular i should do with
> IE?
>
> Thanks.
> DvJ @ www.bidnplay.com
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: target is null for setProperty(null, "targetUrl", thomas)
Posted by Nick Westgate <ni...@key-planning.co.jp>.
Liju Thomas wrote:
> Hi All,
>
> I am getting an error called 'target is null for setProperty(null, "targetUrl",
> thomas)'.
This is an OGNL error, where it's trying to set a property,
"targetUrl" in this case, on an object that doesn't exist.
Fomr your source code:
> <component id="targetUrl" type="TextField">
> <binding name="value" value="fnuRedirect.targetUrl"/>
> </component>
The target is fnuRedirect, but this object is not defined.
Cheers,
Nick.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
target is null for setProperty(null, "targetUrl", thomas)
Posted by Liju Thomas <lt...@annetsite.com>.
Hi All,
I am getting an error called 'target is null for setProperty(null, "targetUrl",
thomas)'.
This is being generated when Iam Editing a record.
- I have a List page where iam displaying lots of records with Edit link in
each record.
- When i click edit link I get another page where the record details are displayed.
- After editing a few details or editing nothing when I click submit I get this
paticular Error.
Following is my Class file:
package com.palm.fnur.page;
import java.text.Format;
import java.text.NumberFormat;
import java.util.Date;
import org.apache.log4j.Logger;
import org.apache.tapestry.IPage;
import org.apache.tapestry.IRequestCycle;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.palm.fnur.model.entities.BusinessUsers;
import com.palm.fnur.model.entities.FnuRedirect;
public abstract class EditFnuPage extends SearchResultsPage {
private String sourceUrl, targetUrl, businessUserName, deptName, emailAddress,
autoGeneratedFlag;
static Logger logger = Logger.getLogger(EditFnuPage.class);
public abstract FnuRedirect getFnuRedirect();
public abstract void setFnuRedirect(FnuRedirect fnuRedirect);
public abstract String getTargetUrl();
public void setTargetUrl(String Value){
targetUrl = Value;
}
public void beginEdit(IRequestCycle cycle,long index)
{
logger.info("Value of Index"+index);
ApplicationContext context = new
ClassPathXmlApplicationContext("applicationContext.xml");
com.palm.fnur.dao.IFnuDAO iFnuDAO =
(com.palm.fnur.dao.IFnuDAO)context.getBean("fnuDAO");
logger.info("Called getEditFnuLIJU"+index);
FnuRedirect fnuRedirect = (FnuRedirect)iFnuDAO.getFnu(index);
logger.info("ValLIJU CALLEDdex"+index);
logger.info("Value of Index"+fnuRedirect.getAutoGeneratedFlag());
if(fnuRedirect.getAutoGeneratedFlag().equals("Y"))
{
fnuRedirect.setAutoGeneratedFlag("true");
}else
{
fnuRedirect.setAutoGeneratedFlag("false");
}
setFnuRedirect(fnuRedirect);
cycle.activate(this);
}
public IPage onOk(IRequestCycle cycle)
{
logger.info("EditFNU onOk Called.");
boolean inserted = false;
logger.info("EditFNU CAlled ...1.");
try
{
logger.info("AddFNU CAlled ...2.");
inserted = fnuDao.editFnu(fnuRedirect);
}
catch(Exception e)
{
inserted = false;
}
ConfirmationPage resultPage = (ConfirmationPage)
cycle.getPage("AdminConfirmAddFnu");
if (inserted == true)
{
cycle.activate("Home");
}
else
{
cycle.activate("FnuManual");
}
return resultPage;
}
}
And following is my page file
<?xml version="1.0" encoding ="UTF-8"?>
<!DOCTYPE page-specification PUBLIC
"-//Apache Software Foundation//Tapestry Specification 4.0//EN"
"http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd">
<page-specification class="com.palm.fnur.page.EditFnuPage">
<component id="edit" type="Form">
<binding name="listener" value="listener:onOk"/>
</component>
<inject property="resultPage" type="page" object="Result"/>
<component id="leftnav" type="AdminLeftNav"/>
<component id="head" type="AdminHead"/>
<component id="footer" type="AdminFooter"/>
<component id="fnuId" type="Insert">
<binding name="value" value="fnuRedirect.fnuId"/>
</component>
<component id="sourceUrl" type="Insert">
<binding name="value" value="fnuRedirect.sourceUrl"/>
</component>
<component id="httpStatus" type="PropertySelection" >
<binding name="value" value="fnuRedirect.httpStatusId" />
<binding name="model" value="httpStatusSelection"/>
</component>
<component id="status" type="PropertySelection" >
<binding name="value" value="fnuRedirect.fnuStatusId" />
<binding name="model" value="statusSelection"/>
</component>
<component id="targetUrl" type="TextField">
<binding name="value" value="fnuRedirect.targetUrl"/>
</component>
<component id="businessUserName" type="TextField">
<binding name="value" value="fnuRedirect.businessUserName"/>
</component>
<component id="emailAddress" type="TextField">
<binding name="value" value="fnuRedirect.emailAddress"/>
</component>
<component id="deptName" type="TextField">
<binding name="value" value="fnuRedirect.deptName"/>
</component>
<component id="pubDate" type="DatePicker">
<binding name="value" value="fnuRedirect.modifiedDate"/>
</component>
<component id="autoGeneratedFlag" type="Checkbox">
<binding name="value" value="fnuRedirect.autoGeneratedFlag"/>
</component>
</page-specification>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org