How to add icons to cmdbar and in the masthead?

9 views
Skip to first unread message

zombie

unread,
Dec 16, 2009, 5:22:55 PM12/16/09
to AribaWeb (aribaweb.org)
Is there a way to show icons along with actions in the cmd bar and
masthead (Login| line) ?

Is there to make the URLs more human readable (also preferred by
searchbots) instead of machine generated variable based URLs?


Kingsley

unread,
Dec 18, 2009, 7:34:29 PM12/18/09
to AribaWeb (aribaweb.org)
We would need to enhance MetaNavCommandBar.awl and
AribaBasicPageWrapper.htm to support adding an <image> tag next to the
actions.

There are two types of URLs AribaWeb generates: component action URLs
and direct action URLs.

Component Action URL
---------------------------------
Once a session has been established, the app URL is always in this
format, and doesn't change for the session:

http://localhost:9150/Demo/AribaWeb/aw?awh=r&awssk=&dard=1

This is actually an advantage in security because very little client
state is not store in the URL.
Also, developer do not need to worry about specifying a URL to every
action.
If you have login protected page, bots cannot access the component
action URLs for those pages.

Direct Action URL
-------------------------
Public front door URLs can be in this format:

http://localhost:9150/Demo/AribaWeb/ad/foo/Bar

where Bar is the direct action class and foo is the fooAction method.

The "Demo" and "AribaWeb" part of the URL can be configured. You can
find out more about it here:

http://aribaweb.org/Documentation/DirectAction/DirectAction.htm

To further customized the URLs,
you can also configured your webserver to rewrite your custom public
URLs to AribaWeb direct action URLs.

Thanks,
Kingsley

zombie

unread,
Dec 21, 2009, 4:18:43 PM12/21/09
to AribaWeb (aribaweb.org)
Thanks for the info. My followup question is for DirectAction URLs is
there a way to specify a URL param (GET)?
Such as
http://localhost:9150/Demo/AribaWeb/ad/foo/Bar?q=something&r=someotherthing

====

Kingsley

unread,
Dec 21, 2009, 4:53:18 PM12/21/09
to AribaWeb (aribaweb.org)
Yes, and you can access the param in your direct action using
request.formValueForKey()

Example here:

http://aribaweb.org/Documentation/DirectAction/DirectAction.htm#request_parameters

Thanks,
Kingsley

On Dec 21, 1:18 pm, zombie <shankarsa...@gmail.com> wrote:
> Thanks for the info. My followup question is for DirectAction URLs is
> there a way to specify a URL param (GET)?
>  Such as

>    http://localhost:9150/Demo/AribaWeb/ad/foo/Bar?q=something&r=someothe...

zombie

unread,
Dec 22, 2009, 7:22:22 PM12/22/09
to AribaWeb (aribaweb.org)
Thanks for the help.
I can change the GuestBook demo to work as described in the
DirectAction post(or below) but not the IssueTracker example. It keeps
displaying the login page for all ..../ad/... URLs. Any thing that
needs to be done differently for the IssueTracker sample?

On Dec 21, 1:53 pm, Kingsley <kingsley.n...@gmail.com> wrote:
> Yes, and you can access the param in your direct action using
> request.formValueForKey()
>
> Example here:
>

>    http://aribaweb.org/Documentation/DirectAction/DirectAction.htm#reque...

Kingsley

unread,
Jan 5, 2010, 8:49:29 PM1/5/10
to AribaWeb (aribaweb.org)
Hi Zombie,

You need to make sure that the AWComponent you are using in your
direct action has validation turned off.

See PostContent.java for example.

Thanks,
Kingsley

Reply all
Reply to author
Forward
0 new messages