Re: action in a sub-component?

2024-04-26 Thread ocs--- via Webobjects-dev
Hugi, thanks, works like a charm! (So far I bumped into no problem without setCurrentComponent( parent() ). Somewhat weird, but well, far as it works... :)) Thanks and all the best, OC > On 26. 4. 2024, at 22:19, Hugi Thordarson via Webobjects-dev > wrote: > > I've never done this, but it's

Re: action in a sub-component?

2024-04-26 Thread Hugi Thordarson via Webobjects-dev
I've never done this, but it's such a nice brain-teaser I had to try :). And what I did _seems_ to work. https://gist.github.com/hugithordarson/37d03336de17cfcf3ac399f6325e0ff2 The key is making the child component non-synchronizing, otherwise the parent action will get invoked during the pulli

action in a sub-component?

2024-04-26 Thread ocs--- via Webobjects-dev
Hi there, I've got a sub-component which uses performParentAction; the appropriate binding is something like . Works perfectly. Purely for aesthetic reasons (and, well, for consistency), I would prefer if I could use the sub-component precisely same way one uses wo:hyperlink, i.e., like this:

Re: enumerating sessions?

2024-04-26 Thread Samuel Pelletier via Webobjects-dev
Hi, As Hugi wrote, you can access the list via the session store. Be careful with access to objects inside those sessions, especially EOs since you are outside their normal RR loop request. I have a standard way to list active users and keep track of last access inside session by adding those

Re: enumerating sessions?

2024-04-26 Thread Hugi Thordarson via Webobjects-dev
Hi, if you're using WO's standard session store (WOServerSessionStore) you should be able to access the active sessions using: ((WOServerSessionStore)WOApplication.application().sessionStore())._sessions() It will return a dictionary consisting of sessionID -> Session. Not using it though, I'm

Re: enumerating sessions?

2024-04-26 Thread Jesse Tayler via Webobjects-dev
Off the top of my head? I’d not use sessions for that — I’ve done some bank apps where only one session is allowed and some other stuff, but we avoided relying on or tracking sessions, rather we build a login scheme that tracked this concept specifically and we let session and cookies stuff be.

enumerating sessions?

2024-04-26 Thread OCsite via Webobjects-dev
Hi there, is there a way to enumerate sessions which are alive inside of a WO/ERXApplication? I guess I can create such a list myself, adding new ones in session.awake, keeping it weak not to prevent old sessions to be destroyed (or perhaps storing just session IDs), yadda yadda, but it would