Help adding second style sheet (media="print") to project

I am trying to add a second style sheet to a project:

For example:

This one is already there

<ui:link binding="#{Page1.link1}" id="link1" url="/resources/stylesheet.css"/>

Trying to add this one:

<ui:link binding="#{Page1.link2}" id="link2" url="/resources/print.css" media="print"/>

I get the following error: in three places

Exception Details: org.apache.jasper.JasperException

Error getting property 'link2' from bean of type summaries.Page1

Possible Source of Error:

Class Name: org.apache.jasper.servlet.JspServletWrapper

File Name: JspServletWrapper.java

Method Name: service

Line Number: 384

Thanks

[713 byte] By [SummerWinea] at [2007-11-27 8:08:33]
# 1
Did you just add that line in the JSP editor to create link2? Doing this does not create the object in the backing bean.You need to create link2 using the design view. You'll find the link component under the Advanced category.
jsra at 2007-7-12 19:51:31 > top of Java-index,Development Tools,Java Tools...
# 2

The file if external needs to be added to the resources directory and you add the link yourself. Or you can drag and drop the stylesheet from your file system onto the designer and the link will automatically get created in the .jsp for you, and the file will be added automatically to the resources directory :<webuijsf:link binding="#{Page1.link2}" id="link2" url="/resources/anewstylesheet.css"/>. I then added media="print" to the new link and deployed it with no errors.

/krys

3431603a at 2007-7-12 19:51:31 > top of Java-index,Development Tools,Java Tools...