Re: Access to WOComponents of a page

2019-07-25 Thread Chuck Hill via Webobjects-dev


> On Jul 25, 2019, at 12:21 AM, André Rothe via Webobjects-dev 
>  wrote:
> 
> Hi Chuck,
> 
>> If you are trying to clear it after a failed validation attempt, perhaps
>> there is simply a bug
>> here: 
>> https://github.com/molequedeideias/wonder/blob/00e813f91664a1df1a84902e03175e4a34cf7d0f/Frameworks/Misc/ERCaptcha/Sources/er/captcha/ERCaptcha.java#L94
>> And after that should be:
>> _response = null;
> 
> That's right, I try to reset the TextField of ERCaptcha after wrong
> input.

I can see the appeal, but that is the wrong way to do this.


> The idea was, to fix this problem with a simple call of
> setResponse(), so I don't need to bother with creating/updating WO
> frameworks at the moment (I'm still an absolute beginner in WO).

That component has bug in it.  The best way is to get the bug fixed, either by 
asking the author or submitting a pull request and updating your frameworks (I 
assume this is in Wonder proper somewhere).  If that is not possible, then 
subclassing is the right approach. 

Chuck


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Serialize shopping cart

2019-07-25 Thread Jesse Tayler via Webobjects-dev
I would definitely suggest making the cart entries part of your persistent 
model and not use session variables for that.

> On Jul 25, 2019, at 1:32 PM, Gino Pacitti via Webobjects-dev 
>  wrote:
> 
> Hi all
> Anyone had any experience with serialising either a shopping cart or perhaps 
> a session to persist for 24 hrs.
> 
> I’m trying to create an abandoned cart process that will take someone back to 
> the checkout and continue even if session has expired...
> 
> Gino 
> 
> Follow: https://instagram.com/mybuddiadventure 
> 
> Like: https://facebook.com/mybuddi.co 
> Learn: https://mybuddi.co/about 
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/jtayler%40oeinc.com
> 
> This email sent to jtay...@oeinc.com

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Serialize shopping cart

2019-07-25 Thread Gino Pacitti via Webobjects-dev
Hi all
Anyone had any experience with serialising either a shopping cart or perhaps a 
session to persist for 24 hrs.

I’m trying to create an abandoned cart process that will take someone back to 
the checkout and continue even if session has expired...

Gino 

Follow: https://instagram.com/mybuddiadventure
Like: https://facebook.com/mybuddi.co
Learn: https://mybuddi.co/about

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Modern instructions for setting up an environment?

2019-07-25 Thread Theodore Petrosky via Webobjects-dev
did you try this:

https://wiki.wocommunity.org/display/WEB/Project+Wonder+Installation 


Ted


> On Jul 25, 2019, at 10:32 AM, Matt Lee via Webobjects-dev 
>  wrote:
> 
> I'm struggling to find modern instructions on setting up a dev
> environment. Lots of pages are out of date, broken links, etc.
> 
> Does anyone have a guide they use that they could point me to?
> 
> Best,
> matt
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com
> 
> This email sent to tedp...@yahoo.com

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Modern instructions for setting up an environment?

2019-07-25 Thread Jesse Tayler via Webobjects-dev
I install Eclipse and use WOLips I think there’s a script called golipse which 
installs automatically, and might need updating, but you can at least see the 
steps

Maybe that will help get you on the right track

> On Jul 25, 2019, at 10:32 AM, Matt Lee via Webobjects-dev 
>  wrote:
> 
> I'm struggling to find modern instructions on setting up a dev
> environment. Lots of pages are out of date, broken links, etc.
> 
> Does anyone have a guide they use that they could point me to?
> 
> Best,
> matt
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/jtayler%40oeinc.com
> 
> This email sent to jtay...@oeinc.com

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Modern instructions for setting up an environment?

2019-07-25 Thread Matt Lee via Webobjects-dev
I'm struggling to find modern instructions on setting up a dev
environment. Lots of pages are out of date, broken links, etc.

Does anyone have a guide they use that they could point me to?

Best,
matt
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Access to WOComponents of a page

2019-07-25 Thread Morris, Mark via Webobjects-dev
Of course, this is just an example, replace the class name with your superclass 
class name. ;-)

On Jul 25, 2019, at 8:59 AM, Morris, Mark 
mailto:mark.mor...@experian.com>> wrote:

Hi André,

If you still want to go the subclass route, try adding this in your subclass 
(to get it to use the superclass’s WO template):

@Override
public WOElement template() {
return 
ERXComponentUtilities.inheritTemplateFrom(ContractCodeMapping.class.getSimpleName(),
 session().languages());
}

Regards,
Mark

On Jul 25, 2019, at 2:32 AM, André Rothe via Webobjects-dev 
mailto:Webobjects-dev@lists.apple.com>> wrote:

Hi,

This way I have tried too, but I did not know, which page name I have to
use. I'll try this with the class again.

public WOComponent  generateCapcha(){
{
ERCaptcha captcha = pageWithName(ERCaptcha.class);
captcha. setResponse("");
return captcha;
}

But probably action can be used in your case.


You can try  the subclass way. You  could override appendToResponse in your 
PSDCaptcha to do what you want...

After I have created the subclass, the Captcha was not longer visible. I
will check that again, or I'll go the longer way: fixing the bug within
the framework. There are more problems within the framework, it runs
only with Java 1.5.

Thanks
André

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  
(Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/mark.morris%40experian.com

This email sent to mark.mor...@experian.com


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Access to WOComponents of a page

2019-07-25 Thread Morris, Mark via Webobjects-dev
Hi André,

If you still want to go the subclass route, try adding this in your subclass 
(to get it to use the superclass’s WO template):

@Override
public WOElement template() {
return 
ERXComponentUtilities.inheritTemplateFrom(ContractCodeMapping.class.getSimpleName(),
 session().languages());
}

Regards,
Mark

On Jul 25, 2019, at 2:32 AM, André Rothe via Webobjects-dev 
mailto:Webobjects-dev@lists.apple.com>> wrote:

Hi,

This way I have tried too, but I did not know, which page name I have to
use. I'll try this with the class again.

public WOComponent  generateCapcha(){
{
ERCaptcha captcha = pageWithName(ERCaptcha.class);
captcha. setResponse("");
return captcha;
}

But probably action can be used in your case.


You can try  the subclass way. You  could override appendToResponse in your 
PSDCaptcha to do what you want...

After I have created the subclass, the Captcha was not longer visible. I
will check that again, or I'll go the longer way: fixing the bug within
the framework. There are more problems within the framework, it runs
only with Java 1.5.

Thanks
André

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  
(Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/mark.morris%40experian.com

This email sent to mark.mor...@experian.com

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Problem with a few apps in WOMonitor

2019-07-25 Thread Michael Schmiedgen via Webobjects-dev

Hi Lon,

On 24.07.2019 02:11, Lon Varscsak via Webobjects-dev wrote:

I added JavaXML framework and it seems fine now...weirdly I removed this A
LONG time ago and it only recently has been a problem. 🤷‍♂️

-Lon


same here. I replaced JavaXML with up-to-date libraries long time ago. 
Everything
worked fine until recently the problem with the monitor appeared. I somewhat
noobish handle the monitor commands STATISTICS and TERMINATE myself now in
dispatchRequest().

Michael


--
___

Michael Schmiedgen, BSc
Senior Software Engineer

Takwa GmbH
Friedrich-List-Str. 36
99096 Erfurt GERMANY

Tel  +49 361 6534096
Fax  +49 361 6534097
Mail schmied...@takwa.de
Web  http://www.takwa.de/
___


Amtsgericht Jena HRB 112964
Geschäftsführung: Ingo Buchholz
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Access to WOComponents of a page

2019-07-25 Thread André Rothe via Webobjects-dev
Hi,

This way I have tried too, but I did not know, which page name I have to
use. I'll try this with the class again.

> public WOComponent  generateCapcha(){
> {
>   ERCaptcha captcha = pageWithName(ERCaptcha.class);
>   captcha. setResponse("");
>   return captcha;
> }
> 
> But probably action can be used in your case.
>  

> You can try  the subclass way. You  could override appendToResponse in your 
> PSDCaptcha to do what you want...

After I have created the subclass, the Captcha was not longer visible. I
will check that again, or I'll go the longer way: fixing the bug within
the framework. There are more problems within the framework, it runs
only with Java 1.5.

Thanks
André

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Access to WOComponents of a page

2019-07-25 Thread André Rothe via Webobjects-dev
Hi Chuck,

> If you are trying to clear it after a failed validation attempt, perhaps
> there is simply a bug
> here: 
> https://github.com/molequedeideias/wonder/blob/00e813f91664a1df1a84902e03175e4a34cf7d0f/Frameworks/Misc/ERCaptcha/Sources/er/captcha/ERCaptcha.java#L94
> And after that should be:
> _response = null;

That's right, I try to reset the TextField of ERCaptcha after wrong
input. The idea was, to fix this problem with a simple call of
setResponse(), so I don't need to bother with creating/updating WO
frameworks at the moment (I'm still an absolute beginner in WO).

Thanks
André

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com