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
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
3 answers
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:
"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
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
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
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:
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