Adding properties to iwtDesktop
I want to add a property to the iwtDesktop component called externalServer.
I want to be able to use this property in various channels such as the
iwtUserInfoProvider, and other base channels as well as some custom ones to
get where the external content server is so that I do not need to hard code
it in.
I am hoping to be able to use this similar to the [tag:iwtDesktop-fontFace1]
call, but I am having some problems.
Here is what I have done so far:
-Added the attribute to the iwtDesktop component.
-Modified the iwtDesktop.properties file to include the change.
-Modified the default iwtDesktop.xml to include the change
-I have changed the property to be correct for the domain that I am using it
in
I would assume that there is a tag library somewhere that I need to change,
but I have not found it yet. Anyone got any ideas on what else I need to
do/why this isnt working?
Or if you have a better approach that would be great, basically I need a way
to dynamically define the address of a server for any channel/component/html
page that runs through the portal server no matter where these files are
located.
[1244 byte] By [
708789] at [2007-11-25 4:31:09]

To be able to use some custom properties I have created a custom channel
with the only purpose
to store some information. (use one of the example channels)
You can add this custom channel to your domain and in the admin console you
than can fill in the variables.
The information in these variables is available using jsp (e.g.
getStringProperty("custom channel", varname)
or using
[tag:"custom channel-varname"]
Twan
"Brian Orwig" <brian.orwig@pegs.com> wrote in message
news:9qpftv$4hd1@ripley.netscape.com...
> I want to add a property to the iwtDesktop component called
externalServer.
> I want to be able to use this property in various channels such as the
> iwtUserInfoProvider, and other base channels as well as some custom ones
to
> get where the external content server is so that I do not need to hard
code
> it in.
>
> I am hoping to be able to use this similar to the
[tag:iwtDesktop-fontFace1]
> call, but I am having some problems.
>
> Here is what I have done so far:
> -Added the attribute to the iwtDesktop component.
> -Modified the iwtDesktop.properties file to include the change.
> -Modified the default iwtDesktop.xml to include the change
> -I have changed the property to be correct for the domain that I am using
it
> in
>
> I would assume that there is a tag library somewhere that I need to
change,
> but I have not found it yet. Anyone got any ideas on what else I need to
> do/why this isnt working?
>
> Or if you have a better approach that would be great, basically I need a
way
> to dynamically define the address of a server for any
channel/component/html
> page that runs through the portal server no matter where these files are
> located.
>
>
If you just want to read this attribute value everywhere and use it then you can
just read the attribute value using something like this,
String desktopattribute = profileobject.getAttributeString("Desktop-Attribute");
the tag libraries for this release of portal are private api's and we don't plan
to expose it.
Karthik !
Brian Orwig wrote:
> I want to add a property to the iwtDesktop component called externalServer.
> I want to be able to use this property in various channels such as the
> iwtUserInfoProvider, and other base channels as well as some custom ones to
> get where the external content server is so that I do not need to hard code
> it in.
>
> I am hoping to be able to use this similar to the [tag:iwtDesktop-fontFace1]
> call, but I am having some problems.
>
> Here is what I have done so far:
> -Added the attribute to the iwtDesktop component.
> -Modified the iwtDesktop.properties file to include the change.
> -Modified the default iwtDesktop.xml to include the change
> -I have changed the property to be correct for the domain that I am using it
> in
>
> I would assume that there is a tag library somewhere that I need to change,
> but I have not found it yet. Anyone got any ideas on what else I need to
> do/why this isnt working?
>
> Or if you have a better approach that would be great, basically I need a way
> to dynamically define the address of a server for any channel/component/html
> page that runs through the portal server no matter where these files are
> located.
