Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Regarding favicon for applications on top of Jazz

We are now doing our application branding and i was looking for a way to define the favicon for my application.

I figured out that for jazz we do like this in template.html
<link></link>

I have couple of doubts :
1. Can we override the favicon for applications on top of jazz.
2. If so, then which apis need to used for this purpose.

thanks
-Prem

0 votes



3 answers

Permanent link
Assuming you are defining you Web UI application using the
"net.jazz.ajax.applications" extension point you can provide your own
favicon by specifying a path to it as a attribute of the "application"
element. For example :

<application>

The path to the icon will be relative to the base directory specified
for the webBundle. If you are using the default base value then it would be

"/resources/ui/graphics/MyIcon.ico"

in the bundle.

Richard
Jazz Web UI Development

prem911 wrote:
We are now doing our application branding and i was looking for a way
to define the favicon for my application.

I figured out that for jazz we do like this in template.html
link></link

I have couple of doubts :
1. Can we override the favicon for applications on top of jazz.
2. If so, then which apis need to used for this purpose.

thanks
-Prem

0 votes


Permanent link
I did not succeed with this. On inspecting the html found that the href didnot have /jazz appended to the path.

The link href in my case is as follows :
/web/<component name>/ui/<image path>

Any ideas why this could be happening?

-Prem

Assuming you are defining you Web UI application using the
"net.jazz.ajax.applications" extension point you can provide your own
favicon by specifying a path to it as a attribute of the "application"
element. For example :

<application>

The path to the icon will be relative to the base directory specified
for the webBundle. If you are using the default base value then it would be

"/resources/ui/graphics/MyIcon.ico"

in the bundle.

Richard
Jazz Web UI Development

prem911 wrote:
We are now doing our application branding and i was looking for a way
to define the favicon for my application.

I figured out that for jazz we do like this in template.html
link></link

I have couple of doubts :
1. Can we override the favicon for applications on top of jazz.
2. If so, then which apis need to used for this purpose.

thanks
-Prem

0 votes


Permanent link
The Jazz Ajax Framework will prepend the context root of the Web
Application that the Web UI is running in. It will also add the JAF Web
UI prefix which defaults to "/web"

/<context>/web/<Web>/<path>

If you have not provided an alias for the webBundle extension then the
alias defaults to the symbolica name of the bundle.

The path to the icon will be minus the defined resources base-name for
the webBundle (defaults to "/resources").

For example if you a webbundle with the symbolic name "my.web.bundle",
have not provided an <alias> or <resource>
in the webBundle extension and have placed the icon in this path in the
same bundle

/resources/ui/graphics/MyIcon.ico

and the context root that you are running in is "/jazz" the URL will
look like

/jazz/web/my.web.bundle/ui/graphics/MyIcon.ico

Richard

Jazz Web UI Development

prem911 wrote:
I did not succeed with this. On inspecting the html found that the
href didnot have /jazz appended to the path.

The link href in my case is as follows :
/web/<component>/ui/<image></link

I have couple of doubts :
1. Can we override the favicon for applications on top of jazz.
2. If so, then which apis need to used for this purpose.

thanks
-Prem

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: May 12 '09, 2:59 p.m.

Question was seen: 8,865 times

Last updated: May 12 '09, 2:59 p.m.

Confirmation Cancel Confirm