Re: passing parameters to an action
Re: passing parameters to an action
- Subject: Re: passing parameters to an action
- From: Jonathan Rochkind <email@hidden>
- Date: Thu, 8 Jan 2004 13:18:28 -0600
PS: As of WO 5.0, default configuration, clicking reload in the
browser should never cause an action method to be invoked (again).
It should just return the same page instance that was originally
returned from that URL. Unless you change the default configuration
by manually setPageRefreshOnBacktrackEnabled(false) on your
Application. See the somewhat confusing documentation for
WOApplication. setPageRefreshOnBacktrackEnabled. I've always found
this to be the case, but I haven't upgraded to 5.2.2 yet, maybe there
are some bugs or changes.
But from your description, it sounds like either that's not happening
for you, or perhaps you are misunderstanding what your real problem
is. Or I'm misunderstanding your description. But I thought this
would be useful info for you. Even when things are behaving like I
describe, there certainly still are cases where it's useful to store
a particular WOComponent instance and re-return that, rather than
creating a new one. But dealing with browser refresh is not usually
one of them, due to the behavior I describe above.
--Jonathan
At 7:25 PM +0100 1/8/04, Andreas Kosmala wrote:
Hi All,
is it possible to pass parameters to action methods or to get the
attributes from the element that called the action method?
my problem:
I want to build a menu with hyperlinks. Idea: a WORepitition with a
Vector for the menu entries with names and pages that shall be
called. Works fine. Problem: when a reload is performed, clicking a
menu entry causes the corresponding page to be instantiated again,
because apparently the hyperlink using the pageName attribute calls
a pageWithName() that always create a new page.
A solution could be working with an action method that stores all
already instantiated pages in the session. For I am using a
WORepitition containing one WOHyperlink I only can declare one such
action method. But this action method must return different pages
depending on the clicked hyperlink, so I have to pass a parameter.
Does anybody have an idea how to do this?
TIA
andreas
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.