Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JavaServer Faces » Programmatically attach a stylesheet to JSF page being opened in WPD
Programmatically attach a stylesheet to JSF page being opened in WPD [message #475396] Fri, 18 January 2008 17:51 Go to next message
Eclipse UserFriend
Originally posted by: xiaonewbie.hotmail.com

Hi All,

I wonder if it is possible to programmatically attach a predefined css
stylesheet to a JSF page when the page is opened in WPD. This stylesheet
affects designer view/Preview only.

Jim
Re: Programmatically attach a stylesheet to JSF page being opened in WPD [message #475397 is a reply to message #475396] Fri, 18 January 2008 21:27 Go to previous messageGo to next message
Cameron Bateman is currently offline Cameron BatemanFriend
Messages: 481
Registered: July 2009
Senior Member
> I wonder if it is possible to programmatically attach a predefined css
> stylesheet to a JSF page when the page is opened in WPD. This stylesheet
> affects designer view/Preview only.

What event would you want to cause the stylesheet to be added? Can you
explain the use-case in more detail as it impacts your end-user?


--Cam
Re: Programmatically attach a stylesheet to JSF page being opened in WPD [message #475399 is a reply to message #475397] Fri, 18 January 2008 22:27 Go to previous messageGo to next message
John Smith is currently offline John SmithFriend
Messages: 20
Registered: July 2009
Junior Member
The JSF component library I am working on has default theme (stylesheet)
defined and built-in the library. Default style for each component gets
applied in runtime via resourceManager of the component library if
styleClass is not explicitly desined as attribute. The stylesheet and
resources are wrapped inside jar file.

What I want to do is to attach stylesheet for WPD only with file url
pointing to the stylesheet placed in its plugin's directory.

Thanks




Cameron Bateman wrote:
>> I wonder if it is possible to programmatically attach a predefined css
>> stylesheet to a JSF page when the page is opened in WPD. This
>> stylesheet affects designer view/Preview only.
>
> What event would you want to cause the stylesheet to be added? Can you
> explain the use-case in more detail as it impacts your end-user?
>
>
> --Cam
>
Re: Programmatically attach a stylesheet to JSF page being opened in WPD [message #475400 is a reply to message #475399] Wed, 23 January 2008 18:16 Go to previous message
Ian Trimble is currently offline Ian TrimbleFriend
Messages: 137
Registered: July 2009
Senior Member
John,

We need to add some similar (if not the same) functionality for the
resource servlet used by Trinidad. The general approach will likely be
some sort of per-project setting to allow URI prefixes to be mapped to
some resource handler class, which must be provided (e.g. map
"/resources/*" to "com.foo.bar.MyResourceHandler").

Please would you open an enhancement request against JSF Tools Project's
UI component[1], so we can track both your requirements and our own to
ensure the solution we provide is flexible enough to solve both use cases
(and any other use cases that we consider as we proceed)?

[1]
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Java%20S erver%20Faces

Thanks,
- Ian Trimble (JSF Tools Project)




John Smith wrote:

> The JSF component library I am working on has default theme (stylesheet)
> defined and built-in the library. Default style for each component gets
> applied in runtime via resourceManager of the component library if
> styleClass is not explicitly desined as attribute. The stylesheet and
> resources are wrapped inside jar file.

> What I want to do is to attach stylesheet for WPD only with file url
> pointing to the stylesheet placed in its plugin's directory.

> Thanks




> Cameron Bateman wrote:
>>> I wonder if it is possible to programmatically attach a predefined css
>>> stylesheet to a JSF page when the page is opened in WPD. This
>>> stylesheet affects designer view/Preview only.
>>
>> What event would you want to cause the stylesheet to be added? Can you
>> explain the use-case in more detail as it impacts your end-user?
>>
>>
>> --Cam
>>
Re: Programmatically attach a stylesheet to JSF page being opened in WPD [message #616467 is a reply to message #475396] Fri, 18 January 2008 21:27 Go to previous message
Cameron Bateman is currently offline Cameron BatemanFriend
Messages: 481
Registered: July 2009
Senior Member
> I wonder if it is possible to programmatically attach a predefined css
> stylesheet to a JSF page when the page is opened in WPD. This stylesheet
> affects designer view/Preview only.

What event would you want to cause the stylesheet to be added? Can you
explain the use-case in more detail as it impacts your end-user?


--Cam
Re: Programmatically attach a stylesheet to JSF page being opened in WPD [message #616478 is a reply to message #475397] Fri, 18 January 2008 22:27 Go to previous message
John Smith is currently offline John SmithFriend
Messages: 20
Registered: July 2009
Junior Member
The JSF component library I am working on has default theme (stylesheet)
defined and built-in the library. Default style for each component gets
applied in runtime via resourceManager of the component library if
styleClass is not explicitly desined as attribute. The stylesheet and
resources are wrapped inside jar file.

What I want to do is to attach stylesheet for WPD only with file url
pointing to the stylesheet placed in its plugin's directory.

Thanks




Cameron Bateman wrote:
>> I wonder if it is possible to programmatically attach a predefined css
>> stylesheet to a JSF page when the page is opened in WPD. This
>> stylesheet affects designer view/Preview only.
>
> What event would you want to cause the stylesheet to be added? Can you
> explain the use-case in more detail as it impacts your end-user?
>
>
> --Cam
>
Re: Programmatically attach a stylesheet to JSF page being opened in WPD [message #616480 is a reply to message #475399] Wed, 23 January 2008 18:16 Go to previous message
Ian Trimble is currently offline Ian TrimbleFriend
Messages: 137
Registered: July 2009
Senior Member
John,

We need to add some similar (if not the same) functionality for the
resource servlet used by Trinidad. The general approach will likely be
some sort of per-project setting to allow URI prefixes to be mapped to
some resource handler class, which must be provided (e.g. map
"/resources/*" to "com.foo.bar.MyResourceHandler").

Please would you open an enhancement request against JSF Tools Project's
UI component[1], so we can track both your requirements and our own to
ensure the solution we provide is flexible enough to solve both use cases
(and any other use cases that we consider as we proceed)?

[1]
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Java%20S erver%20Faces

Thanks,
- Ian Trimble (JSF Tools Project)




John Smith wrote:

> The JSF component library I am working on has default theme (stylesheet)
> defined and built-in the library. Default style for each component gets
> applied in runtime via resourceManager of the component library if
> styleClass is not explicitly desined as attribute. The stylesheet and
> resources are wrapped inside jar file.

> What I want to do is to attach stylesheet for WPD only with file url
> pointing to the stylesheet placed in its plugin's directory.

> Thanks




> Cameron Bateman wrote:
>>> I wonder if it is possible to programmatically attach a predefined css
>>> stylesheet to a JSF page when the page is opened in WPD. This
>>> stylesheet affects designer view/Preview only.
>>
>> What event would you want to cause the stylesheet to be added? Can you
>> explain the use-case in more detail as it impacts your end-user?
>>
>>
>> --Cam
>>
Previous Topic:Re: How to use MyFaces trinidad
Next Topic:WPE Transform Operations - Provisional API Change Alert
Goto Forum:
  


Current Time: Thu Mar 28 12:19:40 GMT 2024

Powered by FUDForum. Page generated in 0.02644 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top