Re: Quick Q regarding D2W smartAttributes

2020-12-08 Thread Markus Ruggiero via Webobjects-dev
thanks for all your suggestion. I finally found out what happened and how to 
fix this.



This is an example of such a flag with Postgres Prototype "flag": class is 
"java.lang.Boolean", value class is "NSNumber" and valueType is "c". 
EOGenerator correctly craetes java.lang.Boolean methods but when I have a rule 
testing smartAttribute.className I get "NSNumber" instead of 
"java.lang.Boolean" and thus the rule does not fire.

My first test: overtyped the prototype given Value Class with 
"java.langBoolean". Saved the model and the world was fine. So I went and did 
this overtyping on all similar attributes, stored the model and the world was 
sunny and bright.

Quit Eclipse and when I later opened Eclipse again the world was still sunny. 
But then I opened the EOModel and the lights went out. Entity Modeller 
immediately set the model to "dirty". When I checked why I found that all 
"java.lang.Boolean" Value Class entries got zapped and were replaced by 
"NSNumber". WHY? Why did it do this. If I locally change e.g. the external 
length it is not restored to the value the prototype specifies. Why value class?

Ok, eventually I figured I could rewrite the rule and now the worls is sunny 
and warm again:

100 : (task = 'list' and (smartAttribute.externalType = 'bool' or 
smartAttribute.className = 'java.lang.Boolean')) => componentName = 
"D2WDisplayBoolean" [com.webobjects.directtoweb.Assignment]

So I do have a working solution, just out of curiosity - why? What is going on 
here?

---markus---


> On 2 Dec 2020, at 12:15, Markus Ruggiero via Webobjects-dev 
>  wrote:
> 
> Quick question:
> Why does this rule
> 
> 200 : (smartAttribute.className = 'java.lang.Boolean' and task = 'list') => 
> componentName = "D2WDisplayBoolean" [com.webobjects.directtoweb.Assignment]
> 
> not fire (even with a bumped-up prio)? A more specific rule however works but 
> is a nuisance because I have tons of such isXyz propertyKeys. 
> 
> 100 : (propertyKey = 'isActive' and task = 'list') => componentName = 
> "D2WDisplayBoolean" [com.webobjects.directtoweb.Assignment]
> 
> I must be missing something trivial (it's always the trivial things that ruin 
> the day).
> 
> Thanks a lot
> ---markus---
> 
> 
> ___
> 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/mailinglists%40kataputt.com
> 
> This email sent to mailingli...@kataputt.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: Quick Q regarding D2W smartAttributes

2020-12-02 Thread Jesse Tayler via Webobjects-dev
Just as a thought, I look and noted I have a component rule for boolean in my 
app with much the same logic at 100 priority. This suggests you’ve just got 
some OTHER rule cranked up and don’t forget that rule could just be VERY strict 
with greater specificity vs. priority.


100 : (smartAttribute.className = 'java.lang.Boolean' and task != 'edit') => 
componentName = ERD2WCustomDisplayBoolean 
[com.webobjects.directtoweb.Assignment]



> On Dec 2, 2020, at 6:15 AM, Markus Ruggiero via Webobjects-dev 
>  wrote:
> 
> Quick question:
> Why does this rule
> 
> 200 : (smartAttribute.className = 'java.lang.Boolean' and task = 'list') => 
> componentName = "D2WDisplayBoolean" [com.webobjects.directtoweb.Assignment]
> 
> not fire (even with a bumped-up prio)? A more specific rule however works but 
> is a nuisance because I have tons of such isXyz propertyKeys. 
> 
> 100 : (propertyKey = 'isActive' and task = 'list') => componentName = 
> "D2WDisplayBoolean" [com.webobjects.directtoweb.Assignment]
> 
> I must be missing something trivial (it's always the trivial things that ruin 
> the day).
> 
> Thanks a lot
> ---markus---
> 
> 
> ___
> 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


Re: Quick Q regarding D2W smartAttributes

2020-12-02 Thread Jesse Tayler via Webobjects-dev
Did you make certain your className does indeed report as that form of boolean? 
These things resolve from your model and you can fish around those attributes 
for information.

Honestly, I’ve found that in these cases with D2W I resort to simply reporting 
things from the D2WContext right onto the display (since you are a list there, 
put a string reporting values into your html repetition there)

You should also generally open up the various D2Ws loading from frameworks to 
see where your last firing rule really is.

Although there are better tools for this, I never really learned to use them - 
more like avoid these things where I can and generally just interrogate at 
runtime to see what rules are firing and what values are in the context and 
when.

I’m sure others know how to use the rule firing tools in a more suitable manner.





> On Dec 2, 2020, at 6:15 AM, Markus Ruggiero via Webobjects-dev 
>  wrote:
> 
> Quick question:
> Why does this rule
> 
> 200 : (smartAttribute.className = 'java.lang.Boolean' and task = 'list') => 
> componentName = "D2WDisplayBoolean" [com.webobjects.directtoweb.Assignment]
> 
> not fire (even with a bumped-up prio)? A more specific rule however works but 
> is a nuisance because I have tons of such isXyz propertyKeys. 
> 
> 100 : (propertyKey = 'isActive' and task = 'list') => componentName = 
> "D2WDisplayBoolean" [com.webobjects.directtoweb.Assignment]
> 
> I must be missing something trivial (it's always the trivial things that ruin 
> the day).
> 
> Thanks a lot
> ---markus---
> 
> 
> ___
> 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


Quick Q regarding D2W smartAttributes

2020-12-02 Thread Markus Ruggiero via Webobjects-dev
Quick question:
Why does this rule

200 : (smartAttribute.className = 'java.lang.Boolean' and task = 'list') => 
componentName = "D2WDisplayBoolean" [com.webobjects.directtoweb.Assignment]

not fire (even with a bumped-up prio)? A more specific rule however works but 
is a nuisance because I have tons of such isXyz propertyKeys. 

100 : (propertyKey = 'isActive' and task = 'list') => componentName = 
"D2WDisplayBoolean" [com.webobjects.directtoweb.Assignment]

I must be missing something trivial (it's always the trivial things that ruin 
the day).

Thanks a lot
---markus---


 ___
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


Multi column D2W Edit Page?

2020-12-01 Thread Markus Ruggiero via Webobjects-dev
Maybe I am overlooking something . . . 

Is there a multi colum create/inspect/edit page available in (ERX)D2W? I have 
an EO with many attributes and having them listed one after the other creates 
rather long pages with lots of whitespace at the right side. Would be great if 
at least two columns could be used. Anyone aware of such a thing?

Thanks a lot
---markus---

 ___
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


D2W Wonder with multiple EOModels

2020-10-12 Thread Don Lindsay via Webobjects-dev
Hello, I apologize if this is a duplicate my apple lists account appeared to be 
messed up so I resubscribed;

I have a D2W application with two EOModels that connect to two different 
databases.EOF works correctly to pull the data for both models, I turned on 
EOF debugging and I see records being returned when the entries are selected 
and queried.  For example:  ( I removed some of the columns text to make it 
easier to read)

Oct 11 21:04:52 mozaic[5001] DEBUG NSLog  -  === Begin Internal Transaction
Oct 11 21:04:52 mozaic[5001] DEBUG NSLog  -  evaluateExpression: 

Oct 11 21:04:52 mozaic[5001] DEBUG NSLog  - 412 row(s) processed


The task is LIST.

For any entity in the first EOModel the list template works fine and data is 
listed in the page.
For any entity in the second EOModel the list template loads but says there are 
no records.  But as you can see above, 412 records have been returned from the 
database for ITABYY and when it is selected and searched with no criteria 
nothing displays in the list page.   Every entity in the second EOModel will 
not display in the list template.

If I query the EOF directly I get all the records back that I would respect.

Have I missed a step when using multiple Models?

Thanks,

Don



 ___
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


D2W Application Cant Add records to tables

2020-06-30 Thread Don Lindsay via Webobjects-dev
Hello;

I created a D2W application, and this may be a newbie question as I just 
started using Wonder D2W.  With WebObjects D2W, I don’t remember ever having an 
issue with creating records in tables and saving them, the button was on the 
the screen for each entity.  In this new D2W Wonder application I do not see 
any way to create records in tables, I can edit them, inspect them, query 
entities, but I cannot add.  I am hoping this is something simple that has to 
be done to enable this functionality.  

Any common mistakes that cause this type of issue?

Thanks

DoN
 ___
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: Standalone D2W RuleModeler update?

2020-01-18 Thread Riccardo De Menna via Webobjects-dev
In my case it launches but if you start using it a bit it crashes often.
The errors are mostly index out of bounds on arrays in relationship with 
NSTableView’s calls.

Riccardo De Menna

> On 16 Jan 2020, at 00:33, Jesse Tayler  wrote:
> 
> I’m on Catalina?
> 
> Did I miss?
> 
> Version 1.6.0 (4)
> 
> Is what I’m running and it seems fine, but I’m not sure about bits
> 
> 
> 
>> On Jan 15, 2020, at 2:36 PM, Riccardo De Menna via Webobjects-dev 
>>  wrote:
>> 
>> 
>> 
>>> On 28 Dec 2019, at 16:09, Markus Ruggiero via Webobjects-dev 
>>>  wrote:
>>> 
>>> Is there a new(er) version of the standalone macOS D2W RuleModeler 
>>> available? The version I have is 1.6.0.
>>> 
>>> I looked up the source in WonderSource but this also seems to be 1.6.0. 
>>> Opening the xcodeproj file throws hundreds of issues at me. That is way 
>>> over my head to fix (at leat at the moment).
>>> 
>>> Anyone compiled RuleModeler with a newer version of Xcode? 
>> 
>> Markus, Ted, Mark…
>> 
>> Anyone managed to get a working RuleModeler?
>> Mine exhibits the same out of range errors after the Catalina/64bit upgrade.
>> 
>> Regards,
>> Riccardo De Menna
>> ___
>> 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


Re: Standalone D2W RuleModeler update?

2020-01-15 Thread Jesse Tayler via Webobjects-dev
I’m on Catalina?

Did I miss?

Version 1.6.0 (4)

Is what I’m running and it seems fine, but I’m not sure about bits



> On Jan 15, 2020, at 2:36 PM, Riccardo De Menna via Webobjects-dev 
>  wrote:
> 
> 
> 
>> On 28 Dec 2019, at 16:09, Markus Ruggiero via Webobjects-dev 
>>  wrote:
>> 
>> Is there a new(er) version of the standalone macOS D2W RuleModeler 
>> available? The version I have is 1.6.0.
>> 
>> I looked up the source in WonderSource but this also seems to be 1.6.0. 
>> Opening the xcodeproj file throws hundreds of issues at me. That is way over 
>> my head to fix (at leat at the moment).
>> 
>> Anyone compiled RuleModeler with a newer version of Xcode? 
> 
> Markus, Ted, Mark…
> 
> Anyone managed to get a working RuleModeler?
> Mine exhibits the same out of range errors after the Catalina/64bit upgrade.
> 
> Regards,
> Riccardo De Menna
> ___
> 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


Re: Standalone D2W RuleModeler update?

2020-01-15 Thread Riccardo De Menna via Webobjects-dev


> On 28 Dec 2019, at 16:09, Markus Ruggiero via Webobjects-dev 
>  wrote:
> 
> Is there a new(er) version of the standalone macOS D2W RuleModeler available? 
> The version I have is 1.6.0.
> 
> I looked up the source in WonderSource but this also seems to be 1.6.0. 
> Opening the xcodeproj file throws hundreds of issues at me. That is way over 
> my head to fix (at leat at the moment).
> 
> Anyone compiled RuleModeler with a newer version of Xcode? 

Markus, Ted, Mark…

Anyone managed to get a working RuleModeler?
Mine exhibits the same out of range errors after the Catalina/64bit upgrade.

Regards,
Riccardo De Menna
 ___
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: Standalone D2W RuleModeler update?

2019-12-28 Thread Ted Petrosky via Webobjects-dev
Ken isimoto has a version for OSX Only.

Theodore Petrosky | IT/Finance Director
AgencySacks

345 Seventh Avenue, New York, NY 10001
p. 212. 225. 9323  |  agencysacks.com


From: Webobjects-dev 
mailto:webobjects-dev-bounces+tpetrosky=agencysacks@lists.apple.com>>
 on behalf of "Ted Petrosky (WO)" 
mailto:webobjects-dev@lists.apple.com>>
Reply-To: Markus Ruggiero 
mailto:mailingli...@kataputt.com>>
Date: Saturday, December 28, 2019 at 10:09 AM
To: "Ted Petrosky (WO)" 
mailto:webobjects-dev@lists.apple.com>>
Subject: Standalone D2W RuleModeler update?

Is there a new(er) version of the standalone macOS D2W RuleModeler available? 
The version I have is 1.6.0.

I looked up the source in WonderSource but this also seems to be 1.6.0. Opening 
the xcodeproj file throws hundreds of issues at me. That is way over my head to 
fix (at leat at the moment).

Anyone compiled RuleModeler with a newer version of Xcode?
 ___
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


Standalone D2W RuleModeler update?

2019-12-28 Thread Markus Ruggiero via Webobjects-dev
Is there a new(er) version of the standalone macOS D2W RuleModeler available? 
The version I have is 1.6.0.

I looked up the source in WonderSource but this also seems to be 1.6.0. Opening 
the xcodeproj file throws hundreds of issues at me. That is way over my head to 
fix (at leat at the moment).

Anyone compiled RuleModeler with a newer version of Xcode?  ___
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: D2W ModelDialog inside EditPage

2019-05-29 Thread Savas Celik via Webobjects-dev
Hello Jérémy

Thank you very much, this worked perfectly.

Savas

> On 28 May 2019, at 21:21, Gastronomie des Terroirs 
>  wrote:
> 
> Hello Savas,
> 
> In your modal dialog container, use ERXWOForm tag instead of WOForm and set 
> embedded to true (see below).
> 
> Hope this helps,
> 
> Jérémy
> 
> AjaxForm: ERXWOForm {
>   embedded = true;
> }
> 
>> Le 28 mai 2019 à 18:44, Savas Celik > > a écrit :
>> 
>> I have a problem with the ModelDialog, I tried to call an AjaxModelDialog in 
>> my EditPage. The AjaxModelDialog is displayed but unfortunately the values 
>> changed in the AjaxModelDialog are not saved.
>> I get a warning displayed in the console which says that an AjaxModelDialog 
>> must not be inside a form. 
>> Therefore I tried to add the AjaxModalDialog to the 
>> "belowDisplayPropertyKeys" but unfortunately the "object" is not given to me 
>> here.
>> 
>> The warning:
>> May 28 18:39:13 Application[13007] WARN  er.ajax.AjaxModalDialog 
>> (EditVerrechnungsGruppe) - The AjaxModalDialog should not be used inside of 
>> a WOForm (EditForm) if it contains any form inputs or buttons.  Remove this 
>> AMD from this form, add a form of its own. Replace it with an 
>> AjaxModalDialogOpener with a dialogID that matches the ID of this dialog.
>>  
>> 
>> Is there any neat solution for this problem?
>> ___
>> 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/jeremy.deroyer%40ingencys.net
>>  
>> 
>> 
>> This email sent to jeremy.dero...@ingencys.net
> 

 ___
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


D2W ModelDialog inside EditPage

2019-05-28 Thread Savas Celik
I have a problem with the ModelDialog, I tried to call an AjaxModelDialog in my 
EditPage. The AjaxModelDialog is displayed but unfortunately the values changed 
in the AjaxModelDialog are not saved.
I get a warning displayed in the console which says that an AjaxModelDialog 
must not be inside a form. 
Therefore I tried to add the AjaxModalDialog to the "belowDisplayPropertyKeys" 
but unfortunately the "object" is not given to me here.

The warning:
May 28 18:39:13 Application[13007] WARN  er.ajax.AjaxModalDialog 
(EditVerrechnungsGruppe) - The AjaxModalDialog should not be used inside of a 
WOForm (EditForm) if it contains any form inputs or buttons.  Remove this AMD 
from this form, add a form of its own. Replace it with an AjaxModalDialogOpener 
with a dialogID that matches the ID of this dialog.


Is there any neat solution for this problem?
 ___
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: D2W to many deny delete

2019-02-21 Thread Fabian Peters
Hi Ted,

There's no validation exception handling on the list pages. To work around 
this, you can implement something like this on the EO:

@Override
public boolean canDelete() {
boolean canDelete = super.canDelete();
if (studentCount() > 0) {
canDelete = false;
} else if 
(ERXEOControlUtilities.objectCountWithQualifier(editingContext(),
Course.ENTITY_NAME, Course.PREVIOUS_COURSE.eq(this)) > 0) {
canDelete = false;
}
return canDelete;
}

If the method returns false, the button will be deactivated. Still, the user 
has no way of knowing why the object cannot be deleted…

Fabian


> Am 15.02.2019 um 18:43 schrieb Theodore Petrosky :
> 
> I have a small d2w project. 
> 
> Person has a to-many relationship to DocuentScan. In my Person entity I see 
> the documentScans relation. I set the Delete Rule to deny. So if I try to 
> delete a person, and there are Document Scans attached, the transaction will 
> be aborted and there will be an error message.
> 
> OK, so user ‘Ted' has some documentScans attached. I click to delete the user 
> and I get the normal confirmation box. I click the delete to confirm and 
> instead of returning me to the previous screen with a warning, I get an error 
> in Eclipse. here is the top few lines:
> 
> WARN  NSLog  - : Exception occurred while 
> handling request:
>  pk:"1">; propertyKey: documentScans; type: ObjectsRemovalException; 
> additionalExceptions: ()>
> [2019-2-15 12:21:5 EST]  
>  pk:"1">; propertyKey: documentScans; type: ObjectsRemovalException; 
> additionalExceptions: ()>
>   at 
> com.webobjects.eoaccess.EOEntity.validateObjectForDelete(EOEntity.java:4190)
> at 
> com.webobjects.eoaccess.EOEntityClassDescription.validateObjectForDelete(EOEntityClassDescription.java:521)
>   at 
> er.extensions.eof.ERXEntityClassDescription.validateObjectForDelete(ERXEntityClassDescription.java:700)
>   at 
> com.webobjects.eocontrol.EOCustomObject.validateForDelete(EOCustomObject.java:1419)
>   at 
> com.webobjects.eocontrol.EOEditingContext.validateTable(EOEditingContext.java:2274)
> 
> and this is the top of my browswer:
> 
> Application:  AS_Document_Safe 
> Error: ; propertyKey: documentScans; type: 
> ObjectsRemovalException; additionalExceptions: ()> 
> Reason:   Cannot delete this Person. You should first delete the 
> items in its Document Scans.
> OK, Am I missing some rule somewhere?  
> 
> Since I was looking at a ListPerson page, I expected the ‘Reason’ to be at 
> the top of the table.
> 
> Anyone have any solution here?
> 
> Ted
> ___
> 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/lists.fabian%40e-lumo.com
> 
> This email sent to lists.fab...@e-lumo.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: Weird D2W rule selection

2018-08-22 Thread Fabian Peters
Hi Markus,

Have you checked whether the "region" key is present in the context of the 
ERMDInspectPageRepetition – or whichever component is used to render the 
display property lines?

Fabian

> Am 22.08.2018 um 15:11 schrieb Markus Ruggiero :
> 
> I just had a debugging session with a customer. He complained that 
> "CreateProduct" page conf did not list the correct displayPropertyKeys. And 
> indeed they are wrong. But why?
> 
> Rule I want to work (list of properties truncated to anonymize the customer):
> 
> 100 : (pageConfiguration = 'CreateProduct' and region = 'europe') => 
> displayPropertyKeys = ("productCode",  ) 
> [com.webobjects.directtoweb.Assignment](list of properties I want)
> 
> Rule that actually fires
> 
> 100 : pageConfiguration = 'CreateProduct' => displayPropertyKeys = 
> ("productCode", ) [com.webobjects.directtoweb.Assignment]   (fallback 
> rule with different list of properties
> 
> That can be when region is not properly defined, BUT it is.
> 
> Opening D2W debug output in the resulting browser shows at the very top when 
> hovering over the "?" the list from the second, less qualified rule
> When entering "displayPropertyKeys into the little debug textfield I do get 
> the expected list of properties (the one for 'europe').
> 
> When manually asking for the displayPropertyKeys the first rule fires (which 
> is what I expect) but the D2W template resolves via the second rule. Even 
> reducing the priority of that rule to e.g. 80 does not give prio to the more 
> qualified first rule. D2WTraceRuleFiringEnabled shows what is displayed in 
> the app.
> 
> Other pageConfigurations like EditProduct have similar rules but there the 
> rule with "region" is firing - as it should.
> 
> I inject the region code into d2wContext in the PageWrapper.awake() with the 
> fillowing code lines:
> 
> public void awake() {
> super.awake();
> D2WContext ctx = d2wContext();
> if (ctx != null) {
> Application application = (Application)Application.application();
> ctx.takeValueForKey( application.region().code(), "region" );
> }
> }
> 
> public D2WContext d2wContext() {
> if (context().page() instanceof D2WPage) {
> D2WPage d2wPage = (D2WPage) context().page();
> return d2wPage.d2wContext();
> }
> return null;
> }
> 
> Any idea why this happens? Could this be a timing issue?
> 
> ---markus---
> ___
> 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/lists.fabian%40e-lumo.com
> 
> This email sent to lists.fab...@e-lumo.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


Weird D2W rule selection

2018-08-22 Thread Markus Ruggiero
I just had a debugging session with a customer. He complained that 
"CreateProduct" page conf did not list the correct displayPropertyKeys. And 
indeed they are wrong. But why?

Rule I want to work (list of properties truncated to anonymize the customer):

100 : (pageConfiguration = 'CreateProduct' and region = 'europe') => 
displayPropertyKeys = ("productCode",  ) 
[com.webobjects.directtoweb.Assignment](list of properties I want)

Rule that actually fires

100 : pageConfiguration = 'CreateProduct' => displayPropertyKeys = 
("productCode", ) [com.webobjects.directtoweb.Assignment]   (fallback rule 
with different list of properties

That can be when region is not properly defined, BUT it is.

Opening D2W debug output in the resulting browser shows at the very top when 
hovering over the "?" the list from the second, less qualified rule
When entering "displayPropertyKeys into the little debug textfield I do get the 
expected list of properties (the one for 'europe').

When manually asking for the displayPropertyKeys the first rule fires (which is 
what I expect) but the D2W template resolves via the second rule. Even reducing 
the priority of that rule to e.g. 80 does not give prio to the more qualified 
first rule. D2WTraceRuleFiringEnabled shows what is displayed in the app.

Other pageConfigurations like EditProduct have similar rules but there the rule 
with "region" is firing - as it should.

I inject the region code into d2wContext in the PageWrapper.awake() with the 
fillowing code lines:

public void awake() {
super.awake();
D2WContext ctx = d2wContext();
if (ctx != null) {
Application application = (Application)Application.application();
ctx.takeValueForKey( application.region().code(), "region" );
}
}

public D2WContext d2wContext() {
if (context().page() instanceof D2WPage) {
D2WPage d2wPage = (D2WPage) context().page();
return d2wPage.d2wContext();
}
return null;
}

Any idea why this happens? Could this be a timing issue?

---markus---
 ___
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: Replacing the delete button in a D2W ListTask

2018-08-22 Thread Savas Celik
Hello Fabian,

Thank you for replying.
It works perfectly now.

Savas

> On 22 Aug 2018, at 10:53, Fabian Peters  wrote:
> 
> Hi Savas,
> 
> This will add a "fooAction" on the right side:
> 
> 100 : pageConfiguration = 'ListAddress' => actions = {"right" = 
> ("deleteAction", "fooAction"); } [com.webobjects.directtoweb.Assignment]
> 
> And this will tell D2W which component to use for it:
> 
> 100 : propertyKey = 'fooAction' => componentName = "FooButton" 
> [com.webobjects.directtoweb.Assignment]
> 
> Fabian
> 
> P.S.: Please keep the mails on the list.
> 
>> Am 22.08.2018 um 10:41 schrieb Savas Celik :
>> 
>> Thank you very much Fabian, 
>> 
>> the first rule works it's replacing the delete button. But what if, I do not 
>> want to replace it but just add a custom button next to it? How would this 
>> work?
>> 
>> Savas
>>> On 22 Aug 2018, at 09:19, Fabian Peters  wrote:
>>> 
>>> Hi Savas,
>>> 
>>> That's certainly possible. This rule in ERModernLook should be the one to 
>>> modify:
>>> 
>>> 20 : (look = 'ERModernLook' and propertyKey = 'deleteAction') => 
>>> componentName = "ERMDDeleteButton" 
>>> [com.webobjects.directtoweb.Assignment]:Default modern button component 
>>> names
>>> 
>>> There's also ERMDRemoveRelatedButton, which is used in 
>>> ERMODEditRelationshipPage:
>>> 
>>> 20 : (look = 'ERModernLook' and propertyKey = 'removeRelatedAction') => 
>>> componentName = "ERMDRemoveRelatedButton" 
>>> [com.webobjects.directtoweb.Assignment]:Default modern button component 
>>> names
>>> 
>>> Fabian
>>> 
>>>> Am 22.08.2018 um 08:18 schrieb Savas Celik :
>>>> 
>>>> Hello,
>>>> 
>>>> how can I replace the delete button with a custom made button in a list 
>>>> task? or is this even possible?
>>>> 
>>>> Thanks in advance.
>>>> Savas
>>>> ___
>>>> 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/lists.fabian%40e-lumo.com
>>>> 
>>>> This email sent to lists.fab...@e-lumo.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: Replacing the delete button in a D2W ListTask

2018-08-22 Thread Fabian Peters
Hi Savas,

This will add a "fooAction" on the right side:

100 : pageConfiguration = 'ListAddress' => actions = {"right" = 
("deleteAction", "fooAction"); } [com.webobjects.directtoweb.Assignment]

And this will tell D2W which component to use for it:

100 : propertyKey = 'fooAction' => componentName = "FooButton" 
[com.webobjects.directtoweb.Assignment]

Fabian

P.S.: Please keep the mails on the list.

> Am 22.08.2018 um 10:41 schrieb Savas Celik :
> 
> Thank you very much Fabian, 
> 
> the first rule works it's replacing the delete button. But what if, I do not 
> want to replace it but just add a custom button next to it? How would this 
> work?
> 
> Savas
>> On 22 Aug 2018, at 09:19, Fabian Peters  wrote:
>> 
>> Hi Savas,
>> 
>> That's certainly possible. This rule in ERModernLook should be the one to 
>> modify:
>> 
>> 20 : (look = 'ERModernLook' and propertyKey = 'deleteAction') => 
>> componentName = "ERMDDeleteButton" 
>> [com.webobjects.directtoweb.Assignment]:Default modern button component names
>> 
>> There's also ERMDRemoveRelatedButton, which is used in 
>> ERMODEditRelationshipPage:
>> 
>> 20 : (look = 'ERModernLook' and propertyKey = 'removeRelatedAction') => 
>> componentName = "ERMDRemoveRelatedButton" 
>> [com.webobjects.directtoweb.Assignment]:Default modern button component names
>> 
>> Fabian
>> 
>>> Am 22.08.2018 um 08:18 schrieb Savas Celik :
>>> 
>>> Hello,
>>> 
>>> how can I replace the delete button with a custom made button in a list 
>>> task? or is this even possible?
>>> 
>>> Thanks in advance.
>>> Savas
>>> ___
>>> 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/lists.fabian%40e-lumo.com
>>> 
>>> This email sent to lists.fab...@e-lumo.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: Replacing the delete button in a D2W ListTask

2018-08-22 Thread Fabian Peters
Hi Savas,

That's certainly possible. This rule in ERModernLook should be the one to 
modify:

20 : (look = 'ERModernLook' and propertyKey = 'deleteAction') => componentName 
= "ERMDDeleteButton" [com.webobjects.directtoweb.Assignment]:Default modern 
button component names

There's also ERMDRemoveRelatedButton, which is used in 
ERMODEditRelationshipPage:

20 : (look = 'ERModernLook' and propertyKey = 'removeRelatedAction') => 
componentName = "ERMDRemoveRelatedButton" 
[com.webobjects.directtoweb.Assignment]:Default modern button component names

Fabian

> Am 22.08.2018 um 08:18 schrieb Savas Celik :
> 
> Hello,
> 
> how can I replace the delete button with a custom made button in a list task? 
> or is this even possible?
> 
> Thanks in advance.
> Savas
> ___
> 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/lists.fabian%40e-lumo.com
> 
> This email sent to lists.fab...@e-lumo.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


Replacing the delete button in a D2W ListTask

2018-08-21 Thread Savas Celik
Hello,

how can I replace the delete button with a custom made button in a list task? 
or is this even possible?

Thanks in advance.
Savas
 ___
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: D2W

2018-03-21 Thread Theodore Petrosky
Emre,

First, anything is possible!!!

In PW, a create page is ERMODWizardCreationPage. If you look in Project Wonder, 
you will find the source for this page in ERModernLook. Examine this 
carefully!! This is your documentation.

Look at this source!!! you will see how the buttons that are there are created! 
You will see the different booleans that are used to turn the button on and off.

There have been times when I want to add something to a template that doesn’t 
exist.  I clone the template (in this case ERMODWizardCreationPage cloning it 
into TPMODWizardCreationPage) and add what I want to this new page. Then create 
a rule that uses my new page as the creation page for this situation.

100 : pageConfiguration = ‘' => 
templateNameForWizardCreationPage = "TPMODWizardCreationPage" [Assignment]

Use the source as a guide. I am not saying this is the only way, but it has 
worked for me.

Ted

> On Mar 21, 2018, at 10:40 AM, e...@hacilar.ch wrote:
> 
> Yes I'm working with Project Wonder on a D2W Application. On the 
> PageConfigurations Edit and Create
> there are 2 Buttons on the Bottom.
> I need to add some additional functionality to those Buttons. Do you know if 
> this is possible?
> 
> Am 21.03.2018 15:24, schrieb Theodore Petrosky:
>> are you using Project Wonder? The way you word your question makes me
>> think you are not using Wonder.
>> Ted
>>> On Mar 21, 2018, at 10:14 AM, e...@hacilar.ch wrote:
>>> Hi Theodore
>>> For Example on a Create, on the Bottom of the Page there are 2 Buttons from 
>>> D2W.
>>> Once the Cancel Button, and once the Save Button.
>>> I need to access those Buttons, to do my custom stuff.
>>> Emre

 ___
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: D2W

2018-03-21 Thread emre
Yes I'm working with Project Wonder on a D2W Application. On the 
PageConfigurations Edit and Create

there are 2 Buttons on the Bottom.
I need to add some additional functionality to those Buttons. Do you 
know if this is possible?


Am 21.03.2018 15:24, schrieb Theodore Petrosky:

are you using Project Wonder? The way you word your question makes me
think you are not using Wonder.

Ted



On Mar 21, 2018, at 10:14 AM, e...@hacilar.ch wrote:

Hi Theodore

For Example on a Create, on the Bottom of the Page there are 2 Buttons 
from D2W.

Once the Cancel Button, and once the Save Button.
I need to access those Buttons, to do my custom stuff.

Emre

___
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


D2W access PageButton

2018-03-21 Thread emre

Hi all,

I am currently working on a FileUpload in D2W and need to access to the 
PageButtons, so I can do my custom work, like cleaning up the directory 
on a Cancel. How exactly can I access those PageButtons?


Thanks in advance.

Emre Hacilar
e...@hacilar.ch
___
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: D2W and Ajax oh my!

2017-03-02 Thread Flavio Donadio
Ted,


For sure, it helps… I’ll try it myself and will post my results here.


Cheers,
Flavio

> On 2 Mar 2017, at 17:15, Theodore Petrosky  wrote:
> 
> I was trying to find the project that I needed this in.
> 
> No luck, however, I seem to recall that I created a custom component that had 
> an ajax in place editor. you could have a button that needs to be clicked or 
> when you leave the text area it fires the method.
> 
> does that help?
> 
> 
> 
>> On Mar 2, 2017, at 2:05 PM, Flavio Donadio  wrote:
>> 
>> Ted,
>> 
>> 
>> I was searching the list for a solution like this and found this message 
>> from 2014!
>> 
>> Only difference is that I need this behavior in a subtask 
>> (EditRelationship), but shouldn’t be very different.
>> 
>> Did you ever get this working? How did you do it?
>> 
>> 
>> Cheers,
>> Flavio
>> 
>> 
>>> On 11 Feb 2014, at 17:48, Theodore Petrosky  wrote:
>>> 
>>> I am trying to add a custom component to a ListPage. I am showing a normal 
>>> list (ERMODListPage) and I want the user to be able to edit an attribute by 
>>> clicking on the cell and use an AjaxInPlace to edit the text.
>>> 
>>> I have everything working except the refresh when the user clicks the 
>>> 'save' button. I am hoping the answer is simple. If I were not using D2W, I 
>>> would wrap the table in an AjaxUpdateContainer and just fire that update 
>>> after I did a saveChanges(). 
>>> 
>>> Before I start subclassing ERMODListPage to add an UpdateContainer, is 
>>> there a rule or two that will do this. Or am I working too hard.
>>> 
>>> I would love to find something like:
>>> 
>>> updateContainerID = d2wContext.idForParentMainContainer;
>>> 
>>> Ted
> 


 ___
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: D2W and Ajax oh my!

2017-03-02 Thread Flavio Donadio
Ted,


I was searching the list for a solution like this and found this message from 
2014!

Only difference is that I need this behavior in a subtask (EditRelationship), 
but shouldn’t be very different.

Did you ever get this working? How did you do it?


Cheers,
Flavio


> On 11 Feb 2014, at 17:48, Theodore Petrosky  wrote:
> 
> I am trying to add a custom component to a ListPage. I am showing a normal 
> list (ERMODListPage) and I want the user to be able to edit an attribute by 
> clicking on the cell and use an AjaxInPlace to edit the text.
> 
> I have everything working except the refresh when the user clicks the 'save' 
> button. I am hoping the answer is simple. If I were not using D2W, I would 
> wrap the table in an AjaxUpdateContainer and just fire that update after I 
> did a saveChanges(). 
> 
> Before I start subclassing ERMODListPage to add an UpdateContainer, is there 
> a rule or two that will do this. Or am I working too hard.
> 
> I would love to find something like:
> 
> updateContainerID = d2wContext.idForParentMainContainer;
> 
> Ted

 ___
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: d2w file upload help

2016-11-22 Thread Paul Hoadley
Hi Ted,

With the caveat that I don’t use ERAttachment in a D2W setting...

On 22 Nov 2016, at 10:52 PM, Theodore Petrosky  wrote:

> I have a ERAttachment relationship and I am upload assets. I need to upload 
> .zip files and process them after they arrive. I need to unzip them. the 
> contents of the zip is a webpage (index.html and images). Hopefully, I can 
> unzip the file, and provide a link to this folder to view the webpage.
> 
> The filesystempath of erattachment looks like this:
> 
> /clientFiles/attachments/b/8/5/5.zip
> 
> if I end up with 
> 
> /clientFiles/attachments/b/8/5/5
> 
> as a directory, I should be able to create a link to that folder.
> 
> or am I barking up the wrong tree?

I think you might be barking up the wrong tree. ERAttachment is really designed 
to represent a single file. (For example, the ERAttachment EO itself has 
attributes like size, thumbnail, width, height, mimeType.) You might be able to 
beat it into your use case, but there’s probably a better way of doing it.

> how can i unzip this file after the uploads succeeds?


As a separate question, you can certainly do this. But you’d need to forget 
about using a component that automatically creates an ERAttachment, and use one 
of the regular upload components, like AjaxFlexibleFileUpload. You can then 
grab the InputStream provided by that component and do whatever you like with 
it. You can even later create ERAttachments from your post-processed files.

So, the summary is: I don’t think you’re going to win by trying to make an 
ERAttachment point to a filesystem directory, but everything else you’re 
talking about is completely possible.


-- 
Paul Hoadley
http://logicsquad.net/
https://www.linkedin.com/company/logic-squad/


 ___
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

d2w file upload help

2016-11-22 Thread Theodore Petrosky
I have a ERAttachment relationship and I am upload assets. I need to upload 
.zip files and process them after they arrive. I need to unzip them. the 
contents of the zip is a webpage (index.html and images). Hopefully, I can 
unzip the file, and provide a link to this folder to view the webpage.

The filesystempath of erattachment looks like this:

/clientFiles/attachments/b/8/5/5.zip

if I end up with 

/clientFiles/attachments/b/8/5/5

as a directory, I should be able to create a link to that folder.

or am I barking up the wrong tree?  how can i unzip this file after the uploads 
succeeds?
 ___
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: excel export D2W

2016-10-28 Thread Fabian Peters
Hi Ted,

That's handled via the rules. I don't have an example for dates, but for 
numeric values it looks like:

10 : (propertyKey like '*NetTurnover' or propertyKey like '*GrossProfit') => 
excelCellFormatForProperty = "#,##0€;#,##0€" 
[com.webobjects.directtoweb.Assignment]
10 : (propertyKey like '*NetTurnover' or propertyKey like '*GrossProfit') => 
excelCellTypeForProperty = "CELL_TYPE_NUMERIC" 
[com.webobjects.directtoweb.Assignment]

Fabian

> Am 28.10.2016 um 05:29 schrieb Theodore Petrosky :
> 
> I am looking at ERExcelLook and the minimal video from David. Is there a way 
> to specify the cell type for an attribute? I have added a formatter for my 
> date column, but I really want to specify that it is a date column. I am 
> trying to get the data into excel with as much of the cell types set up as I 
> can.
> ___
> 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/lists.fabian%40e-lumo.com
> 
> This email sent to lists.fab...@e-lumo.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

Data type column error on D2W attachment save

2016-06-28 Thread Vanek Josef
Hi guys,

I'm facing a strange error when trying to save a file attachment in D2W 
application.

The app is using Wonder 6, subclass of ERXApplication, using PostgreSQL PlugIn 
and adaptor,
includes classical frameworks as shown below:



+ of course all traditionals JavaWOFrameworks.

The page with attachment is using ERMD2WEditAttachment component from 
ERModernDirectToWeb framework.

The database migration contains application model as well as ERAttachment, and 
DB migrations work fine, the application starts normally.

Now when I try to upload an attachment everything goes well, and then on click 
on Save button, I get an exception
like this:

09:41:11 PlatformAdmin[4] DEBUG NSLog Page: 
er.modern.look.pages.ERMODInspectPage - Configuration: EditRaceTrack -  
evaluateExpression: 
juin 28 09:41:11 PlatformAdmin[4] DEBUG NSLog Page: 
er.modern.look.pages.ERMODInspectPage - Configuration: EditRaceTrack -  
evaluateExpression: 
juin 28 09:41:11 PlatformAdmin[4] INFO  er.transaction.adaptor.Exceptions 
Page: er.modern.look.pages.ERMODInspectPage - Configuration: EditRaceTrack - 
Database Exception occured: com.webobjects.eoaccess.EOGeneralAdaptorException: 
Unable to find type information for external type 'INTEGER' in attribute 'size' 
of entity 'ERFileAttachment'.  Check spelling and capitalization.
juin 28 09:41:11 PlatformAdmin[4] DEBUG NSLog Page: 
er.modern.look.pages.ERMODInspectPage - Configuration: EditRaceTrack -  === 
Rollback Internal Transaction
juin 28 09:41:11 PlatformAdmin[4] ERROR 
er.extensions.eof.ERXEOAccessUtilities Page: 
er.modern.look.pages.ERMODInspectPage - Configuration: EditRaceTrack - Missing 
EOFailedAdaptorOperationKey or EOFailedDatabaseOperationKey in 
com.webobjects.eoaccess.EOGeneralAdaptorException: Unable to find type 
information for external type 'INTEGER' in attribute 'size' of entity 
'ERFileAttachment'.  Check spelling and capitalization.: 
{EOAdaptorOperationsKey = ({_adaptorOperator = "EOAdaptorInsertOperator"; 
_entity = "TrackPoint"; _changedValues = 

... cut here because too much voluminous

 id = 569; insertedAt = 2016-06-28 09:41:11 Etc/GMT; updatedAt = 2016-06-28 
09:41:11 Etc/GMT; raceTrackId = 9; uuid = 
"1fdcbf55-f8f1-4b3a-bdf3-3afba96f4c0c"; }; }, {_exception = N/A; 
_adaptorOperator = "EOAdaptorInsertOperator"; _entity = "ERFileAttachment"; 
_changedValues = {size = 3720126; configurationName = "kmzAttachment"; width = 
; height = 
; available = true; thumbnail 
= ; creationDate = 2016-06-28 
09:41:01 Etc/GMT; ownerID = ; 
filesystemPath = "/Users/joe/tmp/data/attachments/Test.kmz"; mimeType = 
"application/vnd.google-earth.kmz"; originalFileName = "Test.kmz"; webPath = 
"/2.kmz"; id = 2; proxied = true; storageType = "file"; }; }, {_qualifier = 
"((id = 9) and (erAttachmentID = null))"; _adaptorOperator = 
"EOAdaptorUpdateOperator"; _entity = "RaceTrack"; _changedValues = 
{erAttachmentID = 2; updatedAt = 2016-06-28 09:41:11 Etc/GMT; boundaryRect = 
SRID=4326;MULTIPOINT(-0.1672380002080964 51.48281898235108,-0.1472338293995268 
51.47527413267257); }; }); EOFailedDatabaseOperationKey = {_dbSnapshot = {}; 
_entity = "ERFileAttachment"; _newRow = {size = 3720126; configurationName = 
"kmzAttachment"; width = ; 
height = ; available = true; 
thumbnail = ; creationDate = 
2016-06-28 09:41:01 Etc/GMT; ownerID = 
;

... cut here because too much voluminous

mimeType = "application/vnd.google-earth.kmz"; originalFileName = "Test.kmz"; 
webPath = "/2.kmz"; id = 2; proxied = true; storageType = "file"; }; }; }
juin 28 09:41:12 PlatformAdmin[4] WARN  NSLog  - 
: Exception occurred while 
handling request:
com.webobjects.eoaccess.EOGeneralAdaptorException: Unable to find type 
information for external type 'INTEGER' in attribute 'size' of entity 
'ERFileAttachment'.  Check spelling and capitalization.
[2016-6-28 9:41:12 GMT]  
com.webobjects.eoaccess.EOGeneralAdaptorException: Unable to find type 
information for external type 'INTEGER' in attribute 'size' of entity 
'ERFileAttachment'.  Check spelling and capitalization.
at 
com.webobjects.eoaccess.EODatabaseContext._exceptionWithDatabaseContextInformationAdded(EODatabaseContext.java:4504)
at 
com.webobjects.eoaccess.EODatabaseContext.performChanges(EODatabaseContext.java:6216)
at 
com.webobjects.eocontrol.EOObjectStoreCoordinator.saveChangesInEditingContext(EOObjectStoreCoordinator.java:376)
at 
com.webobjects.eocontrol.EOEditingContext.saveChanges(EOEditingContext.java:3192)
at er.extensions.eof.ERXEC._saveChanges(ERXEC.java:1179)
at er.extensions.eof.ERXEC.saveChanges(ERXEC.java:1102)
at 
er.dir

Nefarious IE / javascript / D2W problem

2016-05-08 Thread Mark Wardle
Dear all,

There are probably not many who might encounter this as a problem as the 
combination of D2W and IE and javascript is less likely. However, I can see it 
might appear if you use ERModernLook’s ERMODTabInspectPage as it looks as if it 
would be subject to the same problem.

Essentially, I was struggling with Internet Explorer ignoring AjaxObserveField 
and AjaxUpdateContainers. I finally tracked it down to a syntax error in 
prototype.js

  function evalScripts() {
return this.extractScripts().map(function(script) { return eval(script); });
  }

It turns out that some of the generated javascript on the page was throwing a 
syntax error on IE - namely some of my D2W page templates that use the 
following to give focus to the first textfield of the D2W page:


Script: WOJavaScript {
scriptString = tabScriptString;
hideInComment = true;
}

The problem is fixed simply by changing hideInComment to false. No more 
Internet Explorer issues.

Unless you are using D2W, then you won’t see this issue but I suggest that 
ERMODTabInspectPage is modified as above to prevent others having the same 
issue.

Best wishes,

Mark
-- 
Dr. Mark Wardle
Consultant Neurologist, University Hospital Wales, Cardiff, UK
Email: mark.war...@wales.nhs.uk or m...@wardle.org  Twitter: @mwardle
Telephone: 02920745274 (secretary) or facsimile: 02920744166





 ___
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: D2W rule controlled NavigationMenu.plist?

2016-01-07 Thread Markus Ruggiero
Thanks to Theodore and Fabian,

that was exactly what I needed

---markus---


> On 07.01.2016, at 13:03, Theodore Petrosky  wrote:
> 
> I hide/show tabs with boolean values in my user. SO   
> user.security.seesClients is true so I have a condition in my 
> Navigation.plist:
> 
> {
>   name = Client;
>   action = "session.navController.listClientAction";
>   children = ("queryClient", "createClient", "Logout");
>   conditions = ("session.user.security.seesClients");
> }
> 
> if sessClient is true the tab shows if false it is hidden.
> 
> Is this what you are looking for?
> 
> Ted
> 
> 
> 
> 
>> On Jan 7, 2016, at 6:53 AM, Markus Ruggiero  
>> wrote:
>> 
>> Hi,
>> 
>> I wish you all a happy new year, hope you had a good start.
>> 
>> Here is my problem. Is there a way to dynamically control what is shown by 
>> NavigationMenu.plist? 
>> Background: I have 4 main tabs with the rightmost being for admin users 
>> only. Can I show/hide tabs (maybe also 2nd and 3rd level navigation) on 
>> conditions given by the currently logged-in user?
>> 
>> Is something like session.currentUser.isAdmin=1 and tabname = 'TAB_ADMIN' => 
>> showTab = 1 possible?
>> 
>> Thanks a lot
>> ---markus---
>> ___
>> 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: Looking for multiple D2W rule files strategy

2015-11-26 Thread Ramsey Gurley
I do all rules in one file. I do create an empty user file to suppress warnings 
and keep it fast. Note: adding additional files adds a scan for that file in 
every framework.

Mostly I find this manageable so long as I reduce rules so they apply as 
broadly as possible. If every entity is a special little snowflake, it's less 
fun.

Markus Ruggiero  wrote:

> ___
>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/rgurley%40smarthealth.com
>
>This email sent to rgur...@smarthealth.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: Looking for multiple D2W rule files strategy

2015-11-26 Thread Fabian Peters
Hi Markus,

Personally I prefer keeping rules in a single file. If you do use multiple rule 
files, make sure you use a model group file to allow easy searching over all 
files. 

Maybe you could split the EOModel into different parts, given its size. Then 
you could maintain a rule file per model.

You could also override additionalModelNames() in ERD2WModel to get all 
entities and assume there's a rule file for each – which may not really be 
needed.

Fabian

> Am 26.11.2015 um 11:17 schrieb Markus Ruggiero :
> 
> Hi list,
> 
> A D2W app usually has the 2 rule files user.d2wmodel and d2w.d2wmodel. A 
> wonder property allows to add more rule files 
> (er.directtoweb.ERD2WModel.additionalModelNames). Up to now I have all my 
> rules in those 2 default files. I am thinking about having one rule file per 
> entity name. This works but is a nuisance because I have to maintain the 
> value for this property. We currently have about 50 entities, thus 50 rule 
> files, and therefore a rather large property value. During ongoing 
> development new entities will be needed, others will go away. How are you 
> folks handling this? All rules in one file? Separate files? How many? How to 
> decide what to put where? And how to maintain the contents of the 
> additionalModelNames property?
> 
> Thanks for any hints.
> 
> ---markus---
> 
> 
> 
> ___
> 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/lists.fabian%40e-lumo.com
> 
> This email sent to lists.fab...@e-lumo.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

Looking for multiple D2W rule files strategy

2015-11-26 Thread Markus Ruggiero
Hi list,

A D2W app usually has the 2 rule files user.d2wmodel and d2w.d2wmodel. A wonder 
property allows to add more rule files 
(er.directtoweb.ERD2WModel.additionalModelNames). Up to now I have all my rules 
in those 2 default files. I am thinking about having one rule file per entity 
name. This works but is a nuisance because I have to maintain the value for 
this property. We currently have about 50 entities, thus 50 rule files, and 
therefore a rather large property value. During ongoing development new 
entities will be needed, others will go away. How are you folks handling this? 
All rules in one file? Separate files? How many? How to decide what to put 
where? And how to maintain the contents of the additionalModelNames property?

Thanks for any hints.

---markus---



 ___
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: More than the 2 default D2W rule files

2015-11-02 Thread Markus Ruggiero

> On 02.11.2015, at 16:26, Theodore Petrosky  wrote:
> 
> what do you mean more than "two default rule files”
> 
> er.directtoweb.ERD2WModel.additionalModelNames=("Person.d2wmodel", 
> "Contribution.d2wmodel", "Employee.d2wmodel")
> 
> Is that what you mean?
> 
Thanks a lot, that's exactly what I wanted :-)

---markus---

> 
> 
>> On Nov 2, 2015, at 10:20 AM, Markus Ruggiero > > wrote:
>> 
>> Just a quick question (cannot find the info right now as I am not in the 
>> office where all those clever books are)
>> 
>> What do I have to do to be able to use more than the two default rule files 
>> user.d2wmodel and d2w.d2wmodel?
>> 
>> Thanks a lot
>> ---markus---
>> 
>> Markus Ruggiero
>> mailingli...@kataputt.com 
>> Check out the new book about Project Wonder and WebObjects on 
>> http://learningthewonders.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/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

More than the 2 default D2W rule files

2015-11-02 Thread Markus Ruggiero
Just a quick question (cannot find the info right now as I am not in the office 
where all those clever books are)

What do I have to do to be able to use more than the two default rule files 
user.d2wmodel and d2w.d2wmodel?

Thanks a lot
---markus---

Markus Ruggiero
mailingli...@kataputt.com
Check out the new book about Project Wonder and WebObjects on 
http://learningthewonders.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: SOLVED: problem with willInsert() and willUpdate() when using D2W.

2015-10-19 Thread Mark Wardle
For the avoidance of doubt, this should read:

Dear all,

I thought I would share a tricky problem and its solution.

I have implemented willInsert() and willUpdate() and used them successfully. 
Oddly, they didn’t seem to get called during the editing or creation of a new 
entity and so I was getting validation errors.

It sounds simple now but the D2W edit page checks a D2W key called 
shouldValidateBeforeSave which means that validateForInsert() or 
validateForSave() is called BEFORE willInsert or willUpdate. The documentation 
for ERXEnterpriseObject of course suggests that willInsert/willUpdate will be 
called BEFORE validation. Simply setting D2W key shouldValidateBeforeSave to 
false resolves the issue.

Therefore, if you are using D2W and you have odd willInsert or willUpdate 
errors, then check here. The source code for ERD2WInspectPage shows this 
clearly enough although I can’t work out why anyone would want to explicitly 
call validate before save given that validation should occur before saving 
simply during saveChanges().

Best wishes,

Mark

> On 19 Oct 2015, at 15:32, Mark Wardle  wrote:
> 
> Dear all,
> 
> I thought I would share a tricky problem and its solution.
> 
> I have implemented willInsert() and willUpdate() and used them successfully. 
> Oddly, they didn’t seem to get called during the editing or creation of a new 
> entity and so I was getting validation errors.
> 
> It sounds simple now but the D2W edit page checks a D2W key called 
> shouldValidateBeforeSave which means that validateForInsert() or 
> validateForSave() is called BEFORE willInsert or willUpdate. The 
> documentation for ERXEnterpriseObject of course suggests that 
> willInsert/willUpdate will be called AFTER validation. Simply setting D2W key 
> shouldValidateBeforeSave to false resolves the issue.
> 
> Therefore, if you are using D2W and you have odd willInsert or willUpdate 
> errors, then check here. The source code for ERD2WInspectPage shows this 
> clearly enough although I can’t work out why anyone would want to explicitly 
> call validate before save given that validation should occur before saving 
> simply during saveChanges().
> 
> Best wishes,
> 
> Mark
> 
> — 
> Mark Wardle
> m...@eldrix.co.uk <mailto:m...@eldrix.co.uk>

 ___
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

SOLVED: problem with willInsert() and willUpdate() when using D2W.

2015-10-19 Thread Mark Wardle
Dear all,

I thought I would share a tricky problem and its solution.

I have implemented willInsert() and willUpdate() and used them successfully. 
Oddly, they didn’t seem to get called during the editing or creation of a new 
entity and so I was getting validation errors.

It sounds simple now but the D2W edit page checks a D2W key called 
shouldValidateBeforeSave which means that validateForInsert() or 
validateForSave() is called BEFORE willInsert or willUpdate. The documentation 
for ERXEnterpriseObject of course suggests that willInsert/willUpdate will be 
called AFTER validation. Simply setting D2W key shouldValidateBeforeSave to 
false resolves the issue.

Therefore, if you are using D2W and you have odd willInsert or willUpdate 
errors, then check here. The source code for ERD2WInspectPage shows this 
clearly enough although I can’t work out why anyone would want to explicitly 
call validate before save given that validation should occur before saving 
simply during saveChanges().

Best wishes,

Mark

— 
Mark Wardle
m...@eldrix.co.uk

 ___
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: D2W HTML Editor?

2015-09-07 Thread Fabian Peters
Hi Markus,

There's ERDEditHTML, which is based on tinyMCE. It checks the key 
"richTextMode" to initialize different configurations.

cheers, Fabian

> Am 07.09.2015 um 14:57 schrieb Markus Ruggiero :
> 
> Is there a simple D2W plug-and-play property level component that can be used 
> to have (HTML) styled text input? How would I use it then?
> 
> Thanks
> ---markus---
> 
> ___
> 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/lists.fabian%40e-lumo.com
> 
> This email sent to lists.fab...@e-lumo.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

D2W HTML Editor?

2015-09-07 Thread Markus Ruggiero
Is there a simple D2W plug-and-play property level component that can be used 
to have (HTML) styled text input? How would I use it then?

Thanks
---markus---

 ___
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

Open D2W pull requests seeking help

2015-05-19 Thread Johann Werner
Hi all,

we currently have a couple of open pull requests for Wonder regarding D2W 
topics. In the course of getting pull requests merged or closed without endless 
waiting we need D2W skilled people who could take a look at those pull requests 
and leave some comments about usefulness/corrections/whatever.

Here are the specific pull requests:

https://github.com/wocommunity/wonder/pull/496
https://github.com/wocommunity/wonder/pull/500
https://github.com/wocommunity/wonder/pull/629

Further there are some open issues that could take a look (did you know that 
submitting a pull request is rally easy? ;):

https://github.com/wocommunity/wonder/issues/89
https://github.com/wocommunity/wonder/issues/93
https://github.com/wocommunity/wonder/issues/97


Thanks helping the community!

jw


signature.asc
Description: Message signed with OpenPGP using GPGMail
 ___
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: D2W - help with rule

2015-05-13 Thread Ramsey Gurley
I was referring to Tim’s second attempt, though your rule works as well.

On May 13, 2015, at 4:44 PM, Theodore Petrosky  wrote:

> I'm sorry Ramsey, you say the second attempt is good! I'm lost, which is the 
> second attempt?
> 
> Sent from my iPad
> 
> On May 13, 2015, at 4:56 PM, Ramsey Gurley  wrote:
> 
>> The boolean assignment expects a boolean value. A key path is not a boolean 
>> value :) If it did somehow work, it still wouldn’t work because the first 
>> time you fired the rule, it would cache the value, and that would be the 
>> value forever. 
>> 
>> Your second attempt is the proper approach, because it will cache and fire 
>> correctly based on the keys in the lhs.
>> 
>> On May 13, 2015, at 1:18 PM, Timothy Worman  wrote:
>> 
>>> Nice. Thanks. I’m always solving problems right after I ask a question, 
>>> so………..I also tried this and it works.
>>> 
>>> 110 : ((entity.name = 'Role' and task != 'editRelationship') and 
>>> session.loggedInMember.canEditRolesInAdminApp = 1) => isEntityEditable = 
>>> "true" [com.webobjects.directtoweb.BooleanAssignment]
>>> 
>>> I don’t like either of the ones that work as much as the original one that 
>>> doesn’t!!
>>> 
>>> Tim Worman
>>> UCLA GSE&IS
>>> 
>>> 
>>>> On May 13, 2015, at 1:15 PM, Theodore Petrosky  wrote:
>>>> 
>>>> this one works for me:
>>>> 
>>>> 100 : entity.name = 'AdRelease' => isEntityEditable = {"conditionKey" = 
>>>> "session.user.security.canEditAdRelease"; "trueValue" = "true"; } 
>>>> [er.directtoweb.assignments.delayed.ERDDelayedBooleanAssignment]
>>>> 
>>>> 
>>>> 
>>>> On May 13, 2015, at 4:12 PM, Timothy Worman  wrote:
>>>> 
>>>>> My D2W kung fu is not the strongest and I’m in need of some D2W guru 
>>>>> love. I have an entity that I only want to be editable for certain users. 
>>>>> So, I have this in my rule file:
>>>>> 
>>>>> 110 : (entity.name = ‘Role' and task != 'editRelationship') => 
>>>>> isEntityEditable = "session.loggedInMember.canEditRolesInAdminApp" 
>>>>> [com.webobjects.directtoweb.BooleanAssignment]
>>>>> 
>>>>> The only problem is that now edit buttons are never presented regardless 
>>>>> of who the user is. If I simply use “true” on the RHS it works fine. Is 
>>>>> the issue that I cannot reference the session from the RHS of a rule?
>>>>> 
>>>>> Tim Worman
>>>>> UCLA GSE&IS
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> ___
>>>>> 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/rgurley%40smarthealth.com
>>> 
>>> This email sent to rgur...@smarthealth.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: D2W - help with rule

2015-05-13 Thread Theodore Petrosky
I'm sorry Ramsey, you say the second attempt is good! I'm lost, which is the 
second attempt?

Sent from my iPad

> On May 13, 2015, at 4:56 PM, Ramsey Gurley  wrote:
> 
> The boolean assignment expects a boolean value. A key path is not a boolean 
> value :) If it did somehow work, it still wouldn’t work because the first 
> time you fired the rule, it would cache the value, and that would be the 
> value forever. 
> 
> Your second attempt is the proper approach, because it will cache and fire 
> correctly based on the keys in the lhs.
> 
>> On May 13, 2015, at 1:18 PM, Timothy Worman  wrote:
>> 
>> Nice. Thanks. I’m always solving problems right after I ask a question, 
>> so………..I also tried this and it works.
>> 
>> 110 : ((entity.name = 'Role' and task != 'editRelationship') and 
>> session.loggedInMember.canEditRolesInAdminApp = 1) => isEntityEditable = 
>> "true" [com.webobjects.directtoweb.BooleanAssignment]
>> 
>> I don’t like either of the ones that work as much as the original one that 
>> doesn’t!!
>> 
>> Tim Worman
>> UCLA GSE&IS
>> 
>> 
>>> On May 13, 2015, at 1:15 PM, Theodore Petrosky  wrote:
>>> 
>>> this one works for me:
>>> 
>>> 100 : entity.name = 'AdRelease' => isEntityEditable = {"conditionKey" = 
>>> "session.user.security.canEditAdRelease"; "trueValue" = "true"; } 
>>> [er.directtoweb.assignments.delayed.ERDDelayedBooleanAssignment]
>>> 
>>> 
>>> 
>>>> On May 13, 2015, at 4:12 PM, Timothy Worman  wrote:
>>>> 
>>>> My D2W kung fu is not the strongest and I’m in need of some D2W guru love. 
>>>> I have an entity that I only want to be editable for certain users. So, I 
>>>> have this in my rule file:
>>>> 
>>>> 110 : (entity.name = ‘Role' and task != 'editRelationship') => 
>>>> isEntityEditable = "session.loggedInMember.canEditRolesInAdminApp" 
>>>> [com.webobjects.directtoweb.BooleanAssignment]
>>>> 
>>>> The only problem is that now edit buttons are never presented regardless 
>>>> of who the user is. If I simply use “true” on the RHS it works fine. Is 
>>>> the issue that I cannot reference the session from the RHS of a rule?
>>>> 
>>>> Tim Worman
>>>> UCLA GSE&IS
>>>> 
>>>> 
>>>> 
>>>> 
>>>> ___
>>>> 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/rgurley%40smarthealth.com
>> 
>> This email sent to rgur...@smarthealth.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: D2W - help with rule

2015-05-13 Thread Timothy Worman
I foolishly thought it might be cool enough to evaluate the key path. :-) 
Thinking it through I see why the receiver can’t do that.

Tim Worman
UCLA GSE&IS

> On May 13, 2015, at 1:56 PM, Ramsey Gurley  wrote:
> 
> The boolean assignment expects a boolean value. A key path is not a boolean 
> value :) If it did somehow work, it still wouldn’t work because the first 
> time you fired the rule, it would cache the value, and that would be the 
> value forever. 
> 
> Your second attempt is the proper approach, because it will cache and fire 
> correctly based on the keys in the lhs.
> 
> On May 13, 2015, at 1:18 PM, Timothy Worman  wrote:
> 
>> Nice. Thanks. I’m always solving problems right after I ask a question, 
>> so………..I also tried this and it works.
>> 
>> 110 : ((entity.name = 'Role' and task != 'editRelationship') and 
>> session.loggedInMember.canEditRolesInAdminApp = 1) => isEntityEditable = 
>> "true" [com.webobjects.directtoweb.BooleanAssignment]
>> 
>> I don’t like either of the ones that work as much as the original one that 
>> doesn’t!!
>> 
>> Tim Worman
>> UCLA GSE&IS
>> 
>> 
>>> On May 13, 2015, at 1:15 PM, Theodore Petrosky  wrote:
>>> 
>>> this one works for me:
>>> 
>>> 100 : entity.name = 'AdRelease' => isEntityEditable = {"conditionKey" = 
>>> "session.user.security.canEditAdRelease"; "trueValue" = "true"; } 
>>> [er.directtoweb.assignments.delayed.ERDDelayedBooleanAssignment]
>>> 
>>> 
>>> 
>>> On May 13, 2015, at 4:12 PM, Timothy Worman  wrote:
>>> 
>>>> My D2W kung fu is not the strongest and I’m in need of some D2W guru love. 
>>>> I have an entity that I only want to be editable for certain users. So, I 
>>>> have this in my rule file:
>>>> 
>>>> 110 : (entity.name = ‘Role' and task != 'editRelationship') => 
>>>> isEntityEditable = "session.loggedInMember.canEditRolesInAdminApp" 
>>>> [com.webobjects.directtoweb.BooleanAssignment]
>>>> 
>>>> The only problem is that now edit buttons are never presented regardless 
>>>> of who the user is. If I simply use “true” on the RHS it works fine. Is 
>>>> the issue that I cannot reference the session from the RHS of a rule?
>>>> 
>>>> Tim Worman
>>>> UCLA GSE&IS
>>>> 
>>>> 
>>>> 
>>>> 
>>>> ___
>>>> 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/rgurley%40smarthealth.com
>> 
>> This email sent to rgur...@smarthealth.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: D2W - help with rule

2015-05-13 Thread Ramsey Gurley
The boolean assignment expects a boolean value. A key path is not a boolean 
value :) If it did somehow work, it still wouldn’t work because the first time 
you fired the rule, it would cache the value, and that would be the value 
forever. 

Your second attempt is the proper approach, because it will cache and fire 
correctly based on the keys in the lhs.

On May 13, 2015, at 1:18 PM, Timothy Worman  wrote:

> Nice. Thanks. I’m always solving problems right after I ask a question, 
> so………..I also tried this and it works.
> 
> 110 : ((entity.name = 'Role' and task != 'editRelationship') and 
> session.loggedInMember.canEditRolesInAdminApp = 1) => isEntityEditable = 
> "true" [com.webobjects.directtoweb.BooleanAssignment]
> 
> I don’t like either of the ones that work as much as the original one that 
> doesn’t!!
> 
> Tim Worman
> UCLA GSE&IS
> 
> 
>> On May 13, 2015, at 1:15 PM, Theodore Petrosky  wrote:
>> 
>> this one works for me:
>> 
>> 100 : entity.name = 'AdRelease' => isEntityEditable = {"conditionKey" = 
>> "session.user.security.canEditAdRelease"; "trueValue" = "true"; } 
>> [er.directtoweb.assignments.delayed.ERDDelayedBooleanAssignment]
>> 
>> 
>> 
>> On May 13, 2015, at 4:12 PM, Timothy Worman  wrote:
>> 
>>> My D2W kung fu is not the strongest and I’m in need of some D2W guru love. 
>>> I have an entity that I only want to be editable for certain users. So, I 
>>> have this in my rule file:
>>> 
>>> 110 : (entity.name = ‘Role' and task != 'editRelationship') => 
>>> isEntityEditable = "session.loggedInMember.canEditRolesInAdminApp" 
>>> [com.webobjects.directtoweb.BooleanAssignment]
>>> 
>>> The only problem is that now edit buttons are never presented regardless of 
>>> who the user is. If I simply use “true” on the RHS it works fine. Is the 
>>> issue that I cannot reference the session from the RHS of a rule?
>>> 
>>> Tim Worman
>>> UCLA GSE&IS
>>> 
>>> 
>>> 
>>> 
>>> ___
>>> 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/rgurley%40smarthealth.com
> 
> This email sent to rgur...@smarthealth.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: D2W - help with rule

2015-05-13 Thread Theodore Petrosky
yea, i have some where I put the session.user.security on the LHS also! Just a 
question of style I guess.



On May 13, 2015, at 4:18 PM, Timothy Worman  wrote:

> Nice. Thanks. I’m always solving problems right after I ask a question, 
> so………..I also tried this and it works.
> 
> 110 : ((entity.name = 'Role' and task != 'editRelationship') and 
> session.loggedInMember.canEditRolesInAdminApp = 1) => isEntityEditable = 
> "true" [com.webobjects.directtoweb.BooleanAssignment]
> 
> I don’t like either of the ones that work as much as the original one that 
> doesn’t!!
> 
> Tim Worman
> UCLA GSE&IS
> 
> 
>> On May 13, 2015, at 1:15 PM, Theodore Petrosky  wrote:
>> 
>> this one works for me:
>> 
>> 100 : entity.name = 'AdRelease' => isEntityEditable = {"conditionKey" = 
>> "session.user.security.canEditAdRelease"; "trueValue" = "true"; } 
>> [er.directtoweb.assignments.delayed.ERDDelayedBooleanAssignment]
>> 
>> 
>> 
>> On May 13, 2015, at 4:12 PM, Timothy Worman  wrote:
>> 
>>> My D2W kung fu is not the strongest and I’m in need of some D2W guru love. 
>>> I have an entity that I only want to be editable for certain users. So, I 
>>> have this in my rule file:
>>> 
>>> 110 : (entity.name = ‘Role' and task != 'editRelationship') => 
>>> isEntityEditable = "session.loggedInMember.canEditRolesInAdminApp" 
>>> [com.webobjects.directtoweb.BooleanAssignment]
>>> 
>>> The only problem is that now edit buttons are never presented regardless of 
>>> who the user is. If I simply use “true” on the RHS it works fine. Is the 
>>> issue that I cannot reference the session from the RHS of a rule?
>>> 
>>> Tim Worman
>>> UCLA GSE&IS
>>> 
>>> 
>>> 
>>> 
>>> ___
>>> 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: D2W - help with rule

2015-05-13 Thread Timothy Worman
Nice. Thanks. I’m always solving problems right after I ask a question, 
so………..I also tried this and it works.

110 : ((entity.name = 'Role' and task != 'editRelationship') and 
session.loggedInMember.canEditRolesInAdminApp = 1) => isEntityEditable = "true" 
[com.webobjects.directtoweb.BooleanAssignment]

I don’t like either of the ones that work as much as the original one that 
doesn’t!!

Tim Worman
UCLA GSE&IS


> On May 13, 2015, at 1:15 PM, Theodore Petrosky  wrote:
> 
> this one works for me:
> 
> 100 : entity.name = 'AdRelease' => isEntityEditable = {"conditionKey" = 
> "session.user.security.canEditAdRelease"; "trueValue" = "true"; } 
> [er.directtoweb.assignments.delayed.ERDDelayedBooleanAssignment]
> 
> 
> 
> On May 13, 2015, at 4:12 PM, Timothy Worman  wrote:
> 
>> My D2W kung fu is not the strongest and I’m in need of some D2W guru love. I 
>> have an entity that I only want to be editable for certain users. So, I have 
>> this in my rule file:
>> 
>> 110 : (entity.name = ‘Role' and task != 'editRelationship') => 
>> isEntityEditable = "session.loggedInMember.canEditRolesInAdminApp" 
>> [com.webobjects.directtoweb.BooleanAssignment]
>> 
>> The only problem is that now edit buttons are never presented regardless of 
>> who the user is. If I simply use “true” on the RHS it works fine. Is the 
>> issue that I cannot reference the session from the RHS of a rule?
>> 
>> Tim Worman
>> UCLA GSE&IS
>> 
>> 
>> 
>> 
>> ___
>> 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: D2W - help with rule

2015-05-13 Thread Theodore Petrosky
this one works for me:

100 : entity.name = 'AdRelease' => isEntityEditable = {"conditionKey" = 
"session.user.security.canEditAdRelease"; "trueValue" = "true"; } 
[er.directtoweb.assignments.delayed.ERDDelayedBooleanAssignment]



On May 13, 2015, at 4:12 PM, Timothy Worman  wrote:

> My D2W kung fu is not the strongest and I’m in need of some D2W guru love. I 
> have an entity that I only want to be editable for certain users. So, I have 
> this in my rule file:
> 
> 110 : (entity.name = ‘Role' and task != 'editRelationship') => 
> isEntityEditable = "session.loggedInMember.canEditRolesInAdminApp" 
> [com.webobjects.directtoweb.BooleanAssignment]
> 
> The only problem is that now edit buttons are never presented regardless of 
> who the user is. If I simply use “true” on the RHS it works fine. Is the 
> issue that I cannot reference the session from the RHS of a rule?
> 
> Tim Worman
> UCLA GSE&IS
> 
> 
> 
> 
> ___
> 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

D2W - help with rule

2015-05-13 Thread Timothy Worman
My D2W kung fu is not the strongest and I’m in need of some D2W guru love. I 
have an entity that I only want to be editable for certain users. So, I have 
this in my rule file:

110 : (entity.name = ‘Role' and task != 'editRelationship') => isEntityEditable 
= "session.loggedInMember.canEditRolesInAdminApp" 
[com.webobjects.directtoweb.BooleanAssignment]

The only problem is that now edit buttons are never presented regardless of who 
the user is. If I simply use “true” on the RHS it works fine. Is the issue that 
I cannot reference the session from the RHS of a rule?

Tim Worman
UCLA GSE&IS




 ___
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: custom d2w component ?

2015-04-21 Thread David LeBer
That FAQ entry is a little incomplete.

1. For those rules and using the D2WCustomComponent wrapper that is all you 
need to do. The custom component does not need to extend any specific class. 
2. If you want to create a true d2w component, that you can specify with one 
rule: 

100: pageConfiguration = "ListTheEntity" and propertyKey = 
"theProperty" => componentName = "MyD2WCustomComponent"

Then I would recommend subclassing one of the ERDCustom*Component classes. They 
give you all of the methods/helpers needed to make that easy for you (though 
this assumes you would be willing to invest a little in figuring out how they 
are used).

D

> On Apr 21, 2015, at 11:10 AM, Theodore Petrosky  wrote:
> 
> on the wiki, under - D2W Rules Reference - Cookbook - FAQ in section 7.  How 
> do I easily use my own custom component in a Direct to Web page?
> 
> there are two rules and then step two, add the two methods to the java. What 
> should my component extend? I mean, is there a minimal class to extend it 
> like ERD2WPage? 
> 
> Step 2:
> Create a component in your project named 'MyThePropertyComponent' and give it 
> an 'object' and 'key' binding. The object will receive the current object, 
> and the key will receive the current propertyKey (as a string) from 
> DirectToWeb. Do with them what you will.
> 
> Or is giving it the object and key enough?
> ___
> 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/dleber_wodev%40codeferous.com
> 
> This email sent to dleber_wo...@codeferous.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

custom d2w component ?

2015-04-21 Thread Theodore Petrosky
on the wiki, under - D2W Rules Reference - Cookbook - FAQ in section 7.  How do 
I easily use my own custom component in a Direct to Web page?

there are two rules and then step two, add the two methods to the java. What 
should my component extend? I mean, is there a minimal class to extend it like 
ERD2WPage? 

Step 2:
Create a component in your project named 'MyThePropertyComponent' and give it 
an 'object' and 'key' binding. The object will receive the current object, and 
the key will receive the current propertyKey (as a string) from DirectToWeb. Do 
with them what you will.

Or is giving it the object and key enough? ___
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

D2W component ??

2015-03-14 Thread Theodore Petrosky
I have a whole bunch of booleans (attributes) in the security section of my 
Person (Entity). I have been using the ERD2WMultiItemCustomComponent to 
aggregate multiple check boxes (with labels [the propertyKeys]) to a single 
line.

The problem with ERD2WMultiItemCustomComponent is that it appears to be 
incomplete. the HTML from the component:

  

notice there is a repetition then a span with a class. Unfortunately, the class 
is “PropertyName”. if I have 15 items wrapped in this component, the all have 
the class of “PropertyName”.  There is no way to target custom CSS on each 
element.

So a question, is there a different component that can be used to aggregate 
multiple attributes to a single line? Or should I fix the component and add 
custom classes to each iteration of the repetition. 

I cloned ERD2WMultiItemCustomComponent and added the elements to include 
targetable css to each and any attribute the is included. I was thinking of 
making the change to the Wonder component and requesting a pull. 

Before I do that, I wanted to make sure it is something that is needed. Maybe 
there is a better component that I should be using. 

Is there a better way to accomplish this without ERD2WMultiItemCustomComponent?

Ted
 ___
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: using ajax in a D2W app??

2015-03-11 Thread Ramsey Gurley
You’re wrapping the observe field with the popup button? Isn’t that supposed to 
be the other way around?

On Mar 11, 2015, at 9:17 AM, Theodore Petrosky  wrote:

> Is there some secret? I just want to fire a method when the user changes a 
> popup. so I did everything I normally did in a regular app.
> 
> I get the WOPopupButton an id, and set up an AjaxObserveField to watch the 
> popup.:
> 
> 
>  "AEObserveField">
> 
> the person is: 
>   
> 
> 
> thePopupButton : WOPopUpButton {
>  id = "AEFieldID";
>  list = accountExecList;
>  item = thePerson;
>  selection = selectedPerson;  
>  displayString = thePerson.fullName;
>  noSelectionString = "No Person Selected";
> }
> 
> AEObserveField : AjaxObserveField {
>   observeFieldID = "AEFieldID";
>   updateContainerID = "AEDiv1";
>   action = mainPopupAction;
>   fullSubmit = true;
> }
> 
> AEUpdateComponent : AjaxUpdateContainer {
>   id = "AEDiv1";
> }
> WOForm : WOForm {
>  multipleSubmit = "true";
> }
> 
> Does anyone see what I am missing? the ajax framework is there, and this is a 
> Modern D2W app. I thought it was using ajax in places, so is there something 
> I need to do to make it available?
> ___
> 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/rgurley%40smarthealth.com
> 
> This email sent to rgur...@smarthealth.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: using ajax in a D2W app??

2015-03-11 Thread Theodore Petrosky
and of course just after I pushed the send button I found that I had the 
AjaxUpdateContainer inside the WOForm.

as soon as I moved it out, all was good and I have joy.

On Mar 11, 2015, at 12:17 PM, Theodore Petrosky  wrote:

> Is there some secret? I just want to fire a method when the user changes a 
> popup. so I did everything I normally did in a regular app.
> 
> I get the WOPopupButton an id, and set up an AjaxObserveField to watch the 
> popup.:
> 
> 
>  "AEObserveField">
> 
> the person is: 
>   
> 
> 
> thePopupButton : WOPopUpButton {
>  id = "AEFieldID";
>  list = accountExecList;
>  item = thePerson;
>  selection = selectedPerson;  
>  displayString = thePerson.fullName;
>  noSelectionString = "No Person Selected";
> }
> 
> AEObserveField : AjaxObserveField {
>   observeFieldID = "AEFieldID";
>   updateContainerID = "AEDiv1";
>   action = mainPopupAction;
>   fullSubmit = true;
> }
> 
> AEUpdateComponent : AjaxUpdateContainer {
>   id = "AEDiv1";
> }
> WOForm : WOForm {
>  multipleSubmit = "true";
> }
> 
> Does anyone see what I am missing? the ajax framework is there, and this is a 
> Modern D2W app. I thought it was using ajax in places, so is there something 
> I need to do to make it available?


 ___
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

using ajax in a D2W app??

2015-03-11 Thread Theodore Petrosky
Is there some secret? I just want to fire a method when the user changes a 
popup. so I did everything I normally did in a regular app.

I get the WOPopupButton an id, and set up an AjaxObserveField to watch the 
popup.:


  

the person is: 



thePopupButton : WOPopUpButton {
  id = "AEFieldID";
  list = accountExecList;
  item = thePerson;
  selection = selectedPerson;  
  displayString = thePerson.fullName;
  noSelectionString = "No Person Selected";
}

AEObserveField : AjaxObserveField {
observeFieldID = "AEFieldID";
updateContainerID = "AEDiv1";
action = mainPopupAction;
fullSubmit = true;
}

AEUpdateComponent : AjaxUpdateContainer {
id = "AEDiv1";
}
WOForm : WOForm {
  multipleSubmit = "true";
}

Does anyone see what I am missing? the ajax framework is there, and this is a 
Modern D2W app. I thought it was using ajax in places, so is there something I 
need to do to make it available?
 ___
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

Project template to automate some resources creation for D2W app

2015-03-06 Thread Ângelo Andrade Cirino
Hi all,

I would like to create a project template to automate the creation of D2W rules 
files and the application menus based on the application’s EOModels and some 
user selections. I see two options:

1. Modify the new project from template wizard to load and parse the models.
2. Add two new options in Entity Modeler to generate the rules files and the 
menus, just like the SQL and migration options.

I am not sure which one will be more advisable or if the whole idea is indeed 
interesting.

Regards,

Angelo

Ângelo Andrade Cirino
aacir...@gmail.com

"O homem sensato se adapta ao mundo. O insensato insiste em tentar adaptar o 
mundo a ele. Todo o progresso depende, portanto, do homem insensato"
Sir George Benard Shaw

"The reasonable man adapts himself to the world: the unreasonable one persists 
in trying to adapt the world to himself. Therefore all progress depends on the 
unreasonable man."
Sir George Benard Shaw


 ___
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: D2W Rules

2015-02-27 Thread Lize Anthonin (@JCOMMOPS)
That sounds to be a good idea too, since we're dealing with displaying which 
can depends on locale, it's better and cleaner to my mind to handle this at 
that level.

A good things is that when developing D2W app, the debug tool enable you to 
dump created keys directly by clicking on "Created Keys" on the app webpage.
But I didn't find all the keys which were supposed to be created.

So I have to force the localization to be English (the application will be in 
English only for the moment), i.e. : 
er.extensions.ERXLocalizer.availableLanguages=(English)

Actually I haven't dived into localization yet because it's not a requirement 
for my app, I should do it in a near future.

Thanks for your help!

Anthonin

On Thu, 2015-02-26 at 10:13 -0700, Ramsey Gurley wrote:


The correct way is to use localization. If you put 



“PropertyKey.agency.name” = “Agency”; 



in your  



Resources/English.lproj/Localizable.strings  



file, you’ll get the desired effect. You can easily generate these by 
visiting all the pages you want to localize and then dumping your localized 
keys to the console.  




http://localhost/cgi-bin/WebObjects/YourApp.woa/wa/ERXDirectAction/dumpCreatedKeys
 



There’s also a ERD2WPageRunner class to automate this if you have many 
page configurations you’d like to generate. 


On Feb 26, 2015, at 3:10 AM, Lize Anthonin (@JCOMMOPS) 
 wrote: 


Hi all,

Quick question, I have some rules defined in my D2W 
application, which aim to improve display for foreign entity, for instance (I 
don't use RuleModeler, so the syntax must be not correct here, but it's no big 
deal for that question) :
pageConfiguration = 'foo' => displayPropertyKey = 
("agency.name")
propertyKey = 'agency.name' => displayNameForProperty = "Agency"

My question is, I have to repeat this for a lot of properties :
propertyKey = 'agency.name' => displayNameForProperty = "Agency"
propertyKey = 'program.name' => displayNameForProperty = 
"Program"
...

FYI, the "name" field is a standard I use in a lot of entities.

Is there a way to define a generic rule, with some king of 
chaining assignment to an existing key (e.g. 
er.directtoweb.assignments.ERDKeyValueAssignment), like :
propertyKey like '*.name' => displayNameForProperty = "<>"
?

It is just to avoid doing it every time and having a huge rules 
file.

Thanks








 ___
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: D2W Rules

2015-02-26 Thread Ramsey Gurley
The correct way is to use localization. If you put

“PropertyKey.agency.name” = “Agency”;

in your 

Resources/English.lproj/Localizable.strings 

file, you’ll get the desired effect. You can easily generate these by visiting 
all the pages you want to localize and then dumping your localized keys to the 
console. 

http://localhost/cgi-bin/WebObjects/YourApp.woa/wa/ERXDirectAction/dumpCreatedKeys

There’s also a ERD2WPageRunner class to automate this if you have many page 
configurations you’d like to generate.

On Feb 26, 2015, at 3:10 AM, Lize Anthonin (@JCOMMOPS)  
wrote:

> Hi all,
> 
> Quick question, I have some rules defined in my D2W application, which aim to 
> improve display for foreign entity, for instance (I don't use RuleModeler, so 
> the syntax must be not correct here, but it's no big deal for that question) :
> pageConfiguration = 'foo' => displayPropertyKey = ("agency.name")
> propertyKey = 'agency.name' => displayNameForProperty = "Agency"
> 
> My question is, I have to repeat this for a lot of properties :
> propertyKey = 'agency.name' => displayNameForProperty = "Agency"
> propertyKey = 'program.name' => displayNameForProperty = "Program"
> ...
> 
> FYI, the "name" field is a standard I use in a lot of entities.
> 
> Is there a way to define a generic rule, with some king of chaining 
> assignment to an existing key (e.g. 
> er.directtoweb.assignments.ERDKeyValueAssignment), like :
> propertyKey like '*.name' => displayNameForProperty = "< looking for referencing foreign entity name>>"
> ?
> 
> It is just to avoid doing it every time and having a huge rules file.
> 
> Thanks
> 
> -- 
> Anthonin Lizé
> ___
> 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/rgurley%40smarthealth.com
> 
> This email sent to rgur...@smarthealth.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: D2W Rules

2015-02-26 Thread Lize Anthonin (@JCOMMOPS)
Indeed that could be a first good solution!

I will take a look at it.

Thanks

On Thu, 2015-02-26 at 06:21 -0500, Theodore Petrosky wrote:


I don’t know about the global characters in the propertyKey but here is 
another solution. 



Create another .d2wmodel file called PropertyKeys.d2wmodel. add this to 
your Properties file: 




er.directtoweb.ERD2WModel.additionalModelNames=(“PropertyKeys.d2wmodel”, 
“Another.d2wmodel”, “AndAnother.d2wmodel"); 



I create a rule file for all my EOs (that’s right one for each EO). Now 
I don’t have one huge .d2wmodel file that is difficult to parse, I look in the 
model file that belongs to the process I am working on. 



You should also look at the Localizable.strings file. 


On Feb 26, 2015, at 5:10 AM, Lize Anthonin (@JCOMMOPS) 
 wrote: 


Hi all,

Quick question, I have some rules defined in my D2W 
application, which aim to improve display for foreign entity, for instance (I 
don't use RuleModeler, so the syntax must be not correct here, but it's no big 
deal for that question) :
pageConfiguration = 'foo' => displayPropertyKey = 
("agency.name")
propertyKey = 'agency.name' => displayNameForProperty = "Agency"

My question is, I have to repeat this for a lot of properties :
propertyKey = 'agency.name' => displayNameForProperty = "Agency"
propertyKey = 'program.name' => displayNameForProperty = 
"Program"
...

FYI, the "name" field is a standard I use in a lot of entities.

Is there a way to define a generic rule, with some king of 
chaining assignment to an existing key (e.g. 
er.directtoweb.assignments.ERDKeyValueAssignment), like :
propertyKey like '*.name' => displayNameForProperty = "<>"
?

It is just to avoid doing it every time and having a huge rules 
file.

Thanks






-- 
Anthonin Lizé
Software Engineer

JCOMMOPS (IOC-UNESCO / WMO)
E-mail: al...@jcommops.org
Tel.: +33 (0)2.29.00.85.89
Web: www.jcomm.info


 ___
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: D2W Rules

2015-02-26 Thread Theodore Petrosky
I don’t know about the global characters in the propertyKey but here is another 
solution.

Create another .d2wmodel file called PropertyKeys.d2wmodel. add this to your 
Properties file:

er.directtoweb.ERD2WModel.additionalModelNames=(“PropertyKeys.d2wmodel”, 
“Another.d2wmodel”, “AndAnother.d2wmodel");

I create a rule file for all my EOs (that’s right one for each EO). Now I don’t 
have one huge .d2wmodel file that is difficult to parse, I look in the model 
file that belongs to the process I am working on.

You should also look at the Localizable.strings file.

On Feb 26, 2015, at 5:10 AM, Lize Anthonin (@JCOMMOPS)  
wrote:

> Hi all,
> 
> Quick question, I have some rules defined in my D2W application, which aim to 
> improve display for foreign entity, for instance (I don't use RuleModeler, so 
> the syntax must be not correct here, but it's no big deal for that question) :
> pageConfiguration = 'foo' => displayPropertyKey = ("agency.name")
> propertyKey = 'agency.name' => displayNameForProperty = "Agency"
> 
> My question is, I have to repeat this for a lot of properties :
> propertyKey = 'agency.name' => displayNameForProperty = "Agency"
> propertyKey = 'program.name' => displayNameForProperty = "Program"
> ...
> 
> FYI, the "name" field is a standard I use in a lot of entities.
> 
> Is there a way to define a generic rule, with some king of chaining 
> assignment to an existing key (e.g. 
> er.directtoweb.assignments.ERDKeyValueAssignment), like :
> propertyKey like '*.name' => displayNameForProperty = "< looking for referencing foreign entity name>>"
> ?
> 
> It is just to avoid doing it every time and having a huge rules file.
> 
> Thanks
> 
> -- 
> Anthonin Lizé
> ___
> 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

D2W Rules

2015-02-26 Thread Lize Anthonin (@JCOMMOPS)
Hi all,

Quick question, I have some rules defined in my D2W application, which aim to 
improve display for foreign entity, for instance (I don't use RuleModeler, so 
the syntax must be not correct here, but it's no big deal for that question) :
pageConfiguration = 'foo' => displayPropertyKey = ("agency.name")
propertyKey = 'agency.name' => displayNameForProperty = "Agency"

My question is, I have to repeat this for a lot of properties :
propertyKey = 'agency.name' => displayNameForProperty = "Agency"
propertyKey = 'program.name' => displayNameForProperty = "Program"
...

FYI, the "name" field is a standard I use in a lot of entities.

Is there a way to define a generic rule, with some king of chaining assignment 
to an existing key (e.g. er.directtoweb.assignments.ERDKeyValueAssignment), 
like :
propertyKey like '*.name' => displayNameForProperty = "<>"
?

It is just to avoid doing it every time and having a huge rules file.

Thanks


-- 
Anthonin Lizé   
 ___
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: Wonder D2W App Tomcat Deployment

2015-02-23 Thread Kevin Hinkson
John,
That’s ok. Even just pointing me in the right direction was helpful. Thanks.

> On Feb 23, 2015, at 11:38 AM, John Huss  wrote:
> 
> Yes, in web.xml, but I think you can just set it in the ant build file.  
> Sorry, I don't have any more time to help today.
> 
> On Mon, Feb 23, 2015 at 9:26 AM Kevin Hinkson  <mailto:k...@coralstone.co>> wrote:
> Hi John,
> Thanks for the reply.
> 
> Could you explain what you think is happening in a little more detail? By use 
> ERXServletAdaptor do you mean I need to replace the WOServletAdaptor in the 
> web.xml file with with ERXServletAdaptor?
> 
> 
> 
> 
>> On Feb 23, 2015, at 11:22 AM, John Huss > <mailto:johnth...@gmail.com>> wrote:
>> 
>> You have to use ERXServletAdaptor or copy it and write your own (it's short).
>> 
>> On Sun Feb 22 2015 at 1:23:14 PM Kevin Hinkson > <mailto:k...@coralstone.co>> wrote:
>> Hi,
>> 
>> I am able to deploy other Wonder apps to Tomcat without any problems but I 
>> cannot get even an empty D2W app to deploy.  I’m attempting to deploy to 
>> Tomcat 7 Java 7 and I get the following for an empty D2W app with the only 
>> change being to enable servlet deployment:
>> 
>> INFO: Command line argument: -Djava.awt.headless=true
>> Feb 22, 2015 7:08:32 PM org.apache.catalina.startup.VersionLoggerListener log
>> INFO: Command line argument: -Djava.endorsed.dirs=
>> Feb 22, 2015 7:08:32 PM org.apache.catalina.startup.VersionLoggerListener log
>> INFO: Command line argument: -Djava.io.tmpdir=/var/cache/tomcat7/temp
>> Feb 22, 2015 7:08:32 PM org.apache.catalina.startup.VersionLoggerListener log
>> INFO: Command line argument: 
>> -Djava.util.logging.config.file=/usr/share/tomcat7/conf/logging.properties
>> Feb 22, 2015 7:08:32 PM org.apache.catalina.startup.VersionLoggerListener log
>> INFO: Command line argument: 
>> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
>> Feb 22, 2015 7:08:32 PM org.apache.catalina.core.AprLifecycleListener 
>> lifecycleEvent
>> INFO: The APR based Apache Tomcat Native library which allows optimal 
>> performance in production environments was not found on the 
>> java.library.path: 
>> /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
>> Feb 22, 2015 7:08:32 PM org.apache.coyote.AbstractProtocol init
>> INFO: Initializing ProtocolHandler ["http-bio-8080"]
>> Feb 22, 2015 7:08:32 PM org.apache.coyote.AbstractProtocol init
>> INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
>> Feb 22, 2015 7:08:32 PM org.apache.catalina.startup.Catalina load
>> INFO: Initialization processed in 1885 ms
>> Feb 22, 2015 7:08:32 PM org.apache.catalina.core.StandardService 
>> startInternal
>> INFO: Starting service Catalina
>> Feb 22, 2015 7:08:32 PM org.apache.catalina.core.StandardEngine startInternal
>> INFO: Starting Servlet Engine: Apache Tomcat/7.0.57
>> Feb 22, 2015 7:08:32 PM org.apache.catalina.startup.HostConfig 
>> deployDirectory
>> INFO: Deploying web application directory /var/lib/tomcat7/webapps/ROOT
>> Feb 22, 2015 7:08:33 PM org.apache.catalina.loader.WebappClassLoader 
>> validateJarFile
>> INFO: 
>> validateJarFile(/usr/share/tomcat7/webapps/ROOT/WEB-INF/lib/javaxml.jar) - 
>> jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: 
>> javax/servlet/Servlet.class
>> Feb 22, 2015 7:08:37 PM org.apache.catalina.startup.TldConfig tldScanWebXml
>> WARNING: Failed to process TLD with path 
>> [/WEB-INF/tlds//WEB-INF/tlds/WOtaglib_1_0.tld] and URI [/WOtaglib]. The 
>> specified path does not exist.
>> Feb 22, 2015 7:08:37 PM org.apache.catalina.startup.TaglibUriRule body
>> INFO: TLD skipped. URI: com.webobjects.taglib_1_0 is already defined
>> Found MainBundle at: /usr/share/tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa
>> Classpath for WebObjects classloader is 
>> /usr/share/tomcat7/webapps/ROOT/WEB-INF/Resources/Java/:/usr/share/tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa/Contents/Resources/Java/ec2test.jar:/usr/share/tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa/Contents/Frameworks/ERExtensions.framework/Resources/Java/ERExtensions.jar:/usr/share/tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa/Contents/Frameworks/ERJars.framework/Resources/Java/ERJars.jar:/usr/share/tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa/Contents/Frameworks/ERJars.framework/Resources/Java/ERFoundation.jar:/usr/share/tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa/Contents/Frameworks/ERJars.framework/Resources/Java/ERWebObjects.jar:/usr/share/tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa/Contents/Frameworks/ERJars.framework/Resources/Java/commons-cli-1.2.jar:/usr/share/tomcat7

Re: Wonder D2W App Tomcat Deployment

2015-02-23 Thread John Huss
Yes, in web.xml, but I think you can just set it in the ant build file.
Sorry, I don't have any more time to help today.

On Mon, Feb 23, 2015 at 9:26 AM Kevin Hinkson  wrote:

> Hi John,
> Thanks for the reply.
>
> Could you explain what you think is happening in a little more detail? By
> use ERXServletAdaptor do you mean I need to replace the WOServletAdaptor in
> the web.xml file with with ERXServletAdaptor?
>
>
>
>
> On Feb 23, 2015, at 11:22 AM, John Huss  wrote:
>
> You have to use ERXServletAdaptor or copy it and write your own (it's
> short).
>
> On Sun Feb 22 2015 at 1:23:14 PM Kevin Hinkson  wrote:
>
>> Hi,
>>
>> I am able to deploy other Wonder apps to Tomcat without any problems but
>> I cannot get even an empty D2W app to deploy.  I’m attempting to deploy to
>> Tomcat 7 Java 7 and I get the following for an empty D2W app with the only
>> change being to enable servlet deployment:
>>
>> INFO: Command line argument: -Djava.awt.headless=true
>> Feb 22, 2015 7:08:32 PM org.apache.catalina.startup.VersionLoggerListener
>> log
>> INFO: Command line argument: -Djava.endorsed.dirs=
>> Feb 22, 2015 7:08:32 PM org.apache.catalina.startup.VersionLoggerListener
>> log
>> INFO: Command line argument: -Djava.io.tmpdir=/var/cache/tomcat7/temp
>> Feb 22, 2015 7:08:32 PM org.apache.catalina.startup.VersionLoggerListener
>> log
>> INFO: Command line argument: -Djava.util.logging.config.
>> file=/usr/share/tomcat7/conf/logging.properties
>> Feb 22, 2015 7:08:32 PM org.apache.catalina.startup.VersionLoggerListener
>> log
>> INFO: Command line argument: -Djava.util.logging.manager=org.apache.juli.
>> ClassLoaderLogManager
>> Feb 22, 2015 7:08:32 PM org.apache.catalina.core.AprLifecycleListener
>> lifecycleEvent
>> INFO: The APR based Apache Tomcat Native library which allows optimal
>> performance in production environments was not found on the
>> java.library.path: /usr/java/packages/lib/amd64:/
>> usr/lib64:/lib64:/lib:/usr/lib
>> Feb 22, 2015 7:08:32 PM org.apache.coyote.AbstractProtocol init
>> INFO: Initializing ProtocolHandler ["http-bio-8080"]
>> Feb 22, 2015 7:08:32 PM org.apache.coyote.AbstractProtocol init
>> INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
>> Feb 22, 2015 7:08:32 PM org.apache.catalina.startup.Catalina load
>> INFO: Initialization processed in 1885 ms
>> Feb 22, 2015 7:08:32 PM org.apache.catalina.core.StandardService
>> startInternal
>> INFO: Starting service Catalina
>> Feb 22, 2015 7:08:32 PM org.apache.catalina.core.StandardEngine
>> startInternal
>> INFO: Starting Servlet Engine: Apache Tomcat/7.0.57
>> Feb 22, 2015 7:08:32 PM org.apache.catalina.startup.HostConfig
>> deployDirectory
>> INFO: Deploying web application directory /var/lib/tomcat7/webapps/ROOT
>> Feb 22, 2015 7:08:33 PM org.apache.catalina.loader.WebappClassLoader
>> validateJarFile
>> INFO: 
>> validateJarFile(/usr/share/tomcat7/webapps/ROOT/WEB-INF/lib/javaxml.jar)
>> - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class:
>> javax/servlet/Servlet.class
>> Feb 22, 2015 7:08:37 PM org.apache.catalina.startup.TldConfig
>> tldScanWebXml
>> WARNING: Failed to process TLD with path 
>> [/WEB-INF/tlds//WEB-INF/tlds/WOtaglib_1_0.tld]
>> and URI [/WOtaglib]. The specified path does not exist.
>> Feb 22, 2015 7:08:37 PM org.apache.catalina.startup.TaglibUriRule body
>> INFO: TLD skipped. URI: com.webobjects.taglib_1_0 is already defined
>> Found MainBundle at: /usr/share/tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa
>> Classpath for WebObjects classloader is /usr/share/tomcat7/webapps/
>> ROOT/WEB-INF/Resources/Java/:/usr/share/tomcat7/webapps/
>> ROOT/WEB-INF/EC2Test.woa/Contents/Resources/Java/ec2test.jar:/usr/share/
>> tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa/Contents/
>> Frameworks/ERExtensions.framework/Resources/Java/
>> ERExtensions.jar:/usr/share/tomcat7/webapps/ROOT/WEB-INF/
>> EC2Test.woa/Contents/Frameworks/ERJars.framework/
>> Resources/Java/ERJars.jar:/usr/share/tomcat7/webapps/
>> ROOT/WEB-INF/EC2Test.woa/Contents/Frameworks/ERJars.
>> framework/Resources/Java/ERFoundation.jar:/usr/share/
>> tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa/Contents/
>> Frameworks/ERJars.framework/Resources/Java/ERWebObjects.
>> jar:/usr/share/tomcat7/webapps/ROOT/WEB-INF/EC2Test.
>> woa/Contents/Frameworks/ERJars.framework/Resources/
>> Java/commons-cli-1.2.jar:/usr/share/tomcat7/webapps/ROOT/
>> WEB-INF/EC2Test.woa/Contents/Frameworks/ERJars.framework/
>> Resources/Java/commons-codec-1.6.jar:/usr/sha

Re: Wonder D2W App Tomcat Deployment

2015-02-23 Thread Kevin Hinkson
Hi John,
Thanks for the reply.

Could you explain what you think is happening in a little more detail? By use 
ERXServletAdaptor do you mean I need to replace the WOServletAdaptor in the 
web.xml file with with ERXServletAdaptor?




> On Feb 23, 2015, at 11:22 AM, John Huss  wrote:
> 
> You have to use ERXServletAdaptor or copy it and write your own (it's short).
> 
> On Sun Feb 22 2015 at 1:23:14 PM Kevin Hinkson  <mailto:k...@coralstone.co>> wrote:
> Hi,
> 
> I am able to deploy other Wonder apps to Tomcat without any problems but I 
> cannot get even an empty D2W app to deploy.  I’m attempting to deploy to 
> Tomcat 7 Java 7 and I get the following for an empty D2W app with the only 
> change being to enable servlet deployment:
> 
> INFO: Command line argument: -Djava.awt.headless=true
> Feb 22, 2015 7:08:32 PM org.apache.catalina.startup.VersionLoggerListener log
> INFO: Command line argument: -Djava.endorsed.dirs=
> Feb 22, 2015 7:08:32 PM org.apache.catalina.startup.VersionLoggerListener log
> INFO: Command line argument: -Djava.io.tmpdir=/var/cache/tomcat7/temp
> Feb 22, 2015 7:08:32 PM org.apache.catalina.startup.VersionLoggerListener log
> INFO: Command line argument: 
> -Djava.util.logging.config.file=/usr/share/tomcat7/conf/logging.properties
> Feb 22, 2015 7:08:32 PM org.apache.catalina.startup.VersionLoggerListener log
> INFO: Command line argument: 
> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
> Feb 22, 2015 7:08:32 PM org.apache.catalina.core.AprLifecycleListener 
> lifecycleEvent
> INFO: The APR based Apache Tomcat Native library which allows optimal 
> performance in production environments was not found on the 
> java.library.path: 
> /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
> Feb 22, 2015 7:08:32 PM org.apache.coyote.AbstractProtocol init
> INFO: Initializing ProtocolHandler ["http-bio-8080"]
> Feb 22, 2015 7:08:32 PM org.apache.coyote.AbstractProtocol init
> INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
> Feb 22, 2015 7:08:32 PM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 1885 ms
> Feb 22, 2015 7:08:32 PM org.apache.catalina.core.StandardService startInternal
> INFO: Starting service Catalina
> Feb 22, 2015 7:08:32 PM org.apache.catalina.core.StandardEngine startInternal
> INFO: Starting Servlet Engine: Apache Tomcat/7.0.57
> Feb 22, 2015 7:08:32 PM org.apache.catalina.startup.HostConfig deployDirectory
> INFO: Deploying web application directory /var/lib/tomcat7/webapps/ROOT
> Feb 22, 2015 7:08:33 PM org.apache.catalina.loader.WebappClassLoader 
> validateJarFile
> INFO: 
> validateJarFile(/usr/share/tomcat7/webapps/ROOT/WEB-INF/lib/javaxml.jar) - 
> jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: 
> javax/servlet/Servlet.class
> Feb 22, 2015 7:08:37 PM org.apache.catalina.startup.TldConfig tldScanWebXml
> WARNING: Failed to process TLD with path 
> [/WEB-INF/tlds//WEB-INF/tlds/WOtaglib_1_0.tld] and URI [/WOtaglib]. The 
> specified path does not exist.
> Feb 22, 2015 7:08:37 PM org.apache.catalina.startup.TaglibUriRule body
> INFO: TLD skipped. URI: com.webobjects.taglib_1_0 is already defined
> Found MainBundle at: /usr/share/tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa
> Classpath for WebObjects classloader is 
> /usr/share/tomcat7/webapps/ROOT/WEB-INF/Resources/Java/:/usr/share/tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa/Contents/Resources/Java/ec2test.jar:/usr/share/tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa/Contents/Frameworks/ERExtensions.framework/Resources/Java/ERExtensions.jar:/usr/share/tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa/Contents/Frameworks/ERJars.framework/Resources/Java/ERJars.jar:/usr/share/tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa/Contents/Frameworks/ERJars.framework/Resources/Java/ERFoundation.jar:/usr/share/tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa/Contents/Frameworks/ERJars.framework/Resources/Java/ERWebObjects.jar:/usr/share/tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa/Contents/Frameworks/ERJars.framework/Resources/Java/commons-cli-1.2.jar:/usr/share/tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa/Contents/Frameworks/ERJars.framework/Resources/Java/commons-codec-1.6.jar:/usr/share/tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa/Contents/Frameworks/ERJars.framework/Resources/Java/commons-io-2.2.jar:/usr/share/tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa/Contents/Frameworks/ERJars.framework/Resources/Java/commons-lang-2.6.jar:/usr/share/tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa/Contents/Frameworks/ERJars.framework/Resources/Java/commons-lang3-3.1.jar:/usr/share/tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa/Contents/Frameworks/ERJars.framework/Resources/Java/commons-logging-1.2.jar:/usr/share/tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa/Contents/Frameworks/ERJars.framework/Resources/Java/erxs

Re: Wonder D2W App Tomcat Deployment

2015-02-23 Thread John Huss
You have to use ERXServletAdaptor or copy it and write your own (it's
short).

On Sun Feb 22 2015 at 1:23:14 PM Kevin Hinkson  wrote:

> Hi,
>
> I am able to deploy other Wonder apps to Tomcat without any problems but I
> cannot get even an empty D2W app to deploy.  I’m attempting to deploy to
> Tomcat 7 Java 7 and I get the following for an empty D2W app with the only
> change being to enable servlet deployment:
>
> INFO: Command line argument: -Djava.awt.headless=true
> Feb 22, 2015 7:08:32 PM org.apache.catalina.startup.VersionLoggerListener
> log
> INFO: Command line argument: -Djava.endorsed.dirs=
> Feb 22, 2015 7:08:32 PM org.apache.catalina.startup.VersionLoggerListener
> log
> INFO: Command line argument: -Djava.io.tmpdir=/var/cache/tomcat7/temp
> Feb 22, 2015 7:08:32 PM org.apache.catalina.startup.VersionLoggerListener
> log
> INFO: Command line argument: -Djava.util.logging.config.
> file=/usr/share/tomcat7/conf/logging.properties
> Feb 22, 2015 7:08:32 PM org.apache.catalina.startup.VersionLoggerListener
> log
> INFO: Command line argument: -Djava.util.logging.manager=org.apache.juli.
> ClassLoaderLogManager
> Feb 22, 2015 7:08:32 PM org.apache.catalina.core.AprLifecycleListener
> lifecycleEvent
> INFO: The APR based Apache Tomcat Native library which allows optimal
> performance in production environments was not found on the
> java.library.path: /usr/java/packages/lib/amd64:/
> usr/lib64:/lib64:/lib:/usr/lib
> Feb 22, 2015 7:08:32 PM org.apache.coyote.AbstractProtocol init
> INFO: Initializing ProtocolHandler ["http-bio-8080"]
> Feb 22, 2015 7:08:32 PM org.apache.coyote.AbstractProtocol init
> INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
> Feb 22, 2015 7:08:32 PM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 1885 ms
> Feb 22, 2015 7:08:32 PM org.apache.catalina.core.StandardService
> startInternal
> INFO: Starting service Catalina
> Feb 22, 2015 7:08:32 PM org.apache.catalina.core.StandardEngine
> startInternal
> INFO: Starting Servlet Engine: Apache Tomcat/7.0.57
> Feb 22, 2015 7:08:32 PM org.apache.catalina.startup.HostConfig
> deployDirectory
> INFO: Deploying web application directory /var/lib/tomcat7/webapps/ROOT
> Feb 22, 2015 7:08:33 PM org.apache.catalina.loader.WebappClassLoader
> validateJarFile
> INFO: validateJarFile(/usr/share/tomcat7/webapps/ROOT/WEB-INF/lib/javaxml.jar)
> - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class:
> javax/servlet/Servlet.class
> Feb 22, 2015 7:08:37 PM org.apache.catalina.startup.TldConfig
> tldScanWebXml
> WARNING: Failed to process TLD with path 
> [/WEB-INF/tlds//WEB-INF/tlds/WOtaglib_1_0.tld]
> and URI [/WOtaglib]. The specified path does not exist.
> Feb 22, 2015 7:08:37 PM org.apache.catalina.startup.TaglibUriRule body
> INFO: TLD skipped. URI: com.webobjects.taglib_1_0 is already defined
> Found MainBundle at: /usr/share/tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa
> Classpath for WebObjects classloader is /usr/share/tomcat7/webapps/
> ROOT/WEB-INF/Resources/Java/:/usr/share/tomcat7/webapps/
> ROOT/WEB-INF/EC2Test.woa/Contents/Resources/Java/ec2test.jar:/usr/share/
> tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa/Contents/Frameworks/ERExtensions.
> framework/Resources/Java/ERExtensions.jar:/usr/share/
> tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa/Contents/
> Frameworks/ERJars.framework/Resources/Java/ERJars.jar:/
> usr/share/tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa/
> Contents/Frameworks/ERJars.framework/Resources/Java/
> ERFoundation.jar:/usr/share/tomcat7/webapps/ROOT/WEB-INF/
> EC2Test.woa/Contents/Frameworks/ERJars.framework/
> Resources/Java/ERWebObjects.jar:/usr/share/tomcat7/
> webapps/ROOT/WEB-INF/EC2Test.woa/Contents/Frameworks/
> ERJars.framework/Resources/Java/commons-cli-1.2.jar:/usr/
> share/tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa/Contents/
> Frameworks/ERJars.framework/Resources/Java/commons-codec-
> 1.6.jar:/usr/share/tomcat7/webapps/ROOT/WEB-INF/EC2Test.
> woa/Contents/Frameworks/ERJars.framework/Resources/
> Java/commons-io-2.2.jar:/usr/share/tomcat7/webapps/ROOT/
> WEB-INF/EC2Test.woa/Contents/Frameworks/ERJars.framework/
> Resources/Java/commons-lang-2.6.jar:/usr/share/tomcat7/
> webapps/ROOT/WEB-INF/EC2Test.woa/Contents/Frameworks/
> ERJars.framework/Resources/Java/commons-lang3-3.1.jar:/
> usr/share/tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa/
> Contents/Frameworks/ERJars.framework/Resources/Java/
> commons-logging-1.2.jar:/usr/share/tomcat7/webapps/ROOT/
> WEB-INF/EC2Test.woa/Contents/Frameworks/ERJars.framework/Resources/Java/
> erxservletadaptor.jar:/usr/share/tomcat7/webapps/ROOT/
> WEB-INF/EC2Test.woa/Contents/Frameworks/ERJars.framework/
> Resources/Java/fluent-hc-4.3.6.jar:/usr/share/tomcat7/
&g

Wonder D2W App Tomcat Deployment

2015-02-22 Thread Kevin Hinkson
Hi,

I am able to deploy other Wonder apps to Tomcat without any problems but I 
cannot get even an empty D2W app to deploy.  I’m attempting to deploy to Tomcat 
7 Java 7 and I get the following for an empty D2W app with the only change 
being to enable servlet deployment:

INFO: Command line argument: -Djava.awt.headless=true
Feb 22, 2015 7:08:32 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.endorsed.dirs=
Feb 22, 2015 7:08:32 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.io.tmpdir=/var/cache/tomcat7/temp
Feb 22, 2015 7:08:32 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: 
-Djava.util.logging.config.file=/usr/share/tomcat7/conf/logging.properties
Feb 22, 2015 7:08:32 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: 
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
Feb 22, 2015 7:08:32 PM org.apache.catalina.core.AprLifecycleListener 
lifecycleEvent
INFO: The APR based Apache Tomcat Native library which allows optimal 
performance in production environments was not found on the java.library.path: 
/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
Feb 22, 2015 7:08:32 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Feb 22, 2015 7:08:32 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Feb 22, 2015 7:08:32 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1885 ms
Feb 22, 2015 7:08:32 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Feb 22, 2015 7:08:32 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.57
Feb 22, 2015 7:08:32 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /var/lib/tomcat7/webapps/ROOT
Feb 22, 2015 7:08:33 PM org.apache.catalina.loader.WebappClassLoader 
validateJarFile
INFO: validateJarFile(/usr/share/tomcat7/webapps/ROOT/WEB-INF/lib/javaxml.jar) 
- jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: 
javax/servlet/Servlet.class
Feb 22, 2015 7:08:37 PM org.apache.catalina.startup.TldConfig tldScanWebXml
WARNING: Failed to process TLD with path 
[/WEB-INF/tlds//WEB-INF/tlds/WOtaglib_1_0.tld] and URI [/WOtaglib]. The 
specified path does not exist.
Feb 22, 2015 7:08:37 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: com.webobjects.taglib_1_0 is already defined
Found MainBundle at: /usr/share/tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa
Classpath for WebObjects classloader is 
/usr/share/tomcat7/webapps/ROOT/WEB-INF/Resources/Java/:/usr/share/tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa/Contents/Resources/Java/ec2test.jar:/usr/share/tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa/Contents/Frameworks/ERExtensions.framework/Resources/Java/ERExtensions.jar:/usr/share/tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa/Contents/Frameworks/ERJars.framework/Resources/Java/ERJars.jar:/usr/share/tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa/Contents/Frameworks/ERJars.framework/Resources/Java/ERFoundation.jar:/usr/share/tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa/Contents/Frameworks/ERJars.framework/Resources/Java/ERWebObjects.jar:/usr/share/tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa/Contents/Frameworks/ERJars.framework/Resources/Java/commons-cli-1.2.jar:/usr/share/tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa/Contents/Frameworks/ERJars.framework/Resources/Java/commons-codec-1.6.jar:/usr/share/tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa/Contents/Frameworks/ERJars.framework/Resources/Java/commons-io-2.2.jar:/usr/share/tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa/Contents/Frameworks/ERJars.framework/Resources/Java/commons-lang-2.6.jar:/usr/share/tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa/Contents/Frameworks/ERJars.framework/Resources/Java/commons-lang3-3.1.jar:/usr/share/tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa/Contents/Frameworks/ERJars.framework/Resources/Java/commons-logging-1.2.jar:/usr/share/tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa/Contents/Frameworks/ERJars.framework/Resources/Java/erxservletadaptor.jar:/usr/share/tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa/Contents/Frameworks/ERJars.framework/Resources/Java/fluent-hc-4.3.6.jar:/usr/share/tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa/Contents/Frameworks/ERJars.framework/Resources/Java/httpclient-4.3.6.jar:/usr/share/tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa/Contents/Frameworks/ERJars.framework/Resources/Java/httpclient-cache-4.3.6.jar:/usr/share/tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa/Contents/Frameworks/ERJars.framework/Resources/Java/httpcore-4.3.3.jar:/usr/share/tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa/Contents/Frameworks/ERJars.framework/Resources/Java/httpmime-4.3.6.jar:/usr/share/tomcat7/webapps/ROOT/WEB-INF/EC2Test.woa/Contents/Frameworks/ERJars.framework/Resources/Java/

Re: Is there a D2W input length limiting component?

2015-02-04 Thread Robert B. Hanviriyapunt
Don’t know anything in WONDER, but

Help with jQuery text box length counter
http://stackoverflow.com/questions/4230432/help-with-jquery-text-box-length-counter

--
Robert B. Hanviriyapunt

> Date: Wed, 04 Feb 2015 09:28:26 +0100
> From: Markus Ruggiero 
> To: webobjects-dev@lists.apple.com
> Subject: Is there a D2W input length limiting component?
> Message-ID: <23b95d4e-15f7-447f-8a53-5ebaf65c8...@kataputt.com>
> Content-Type: text/plain; charset="utf-8"
> 
> Before I try to create something on my own
> 
> I need a text input that can limit the length of the text entered to eg 2000 
> chars and display a running counter so that the user knows immediately how 
> much he has left. 
> 
> Is there something in (D2W) Wonder?
> 
> Thanks for any pointer
> ---markus---
> 
> CU @ WOWODC15
 ___
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

Is there a D2W input length limiting component?

2015-02-04 Thread Markus Ruggiero
Before I try to create something on my own

I need a text input that can limit the length of the text entered to eg 2000 
chars and display a running counter so that the user knows immediately how much 
he has left. 

Is there something in (D2W) Wonder?

Thanks for any pointer
---markus---

CU @ WOWODC15 ___
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: limiting All Queries in D2W

2015-01-30 Thread Fabian Peters
Those methods may get called too early. I'd suggest you just write a method 
that returns the relationship candidates. When that method is being called and 
a person is still not set, then we'll have another look.

Fabian

Am 30.01.2015 um 16:01 schrieb Theodore Petrosky :

> actually I am looking at that now. I created in my BookPerson EO:
> 
>   @Override
>   public void awakeFromInsertion(EOEditingContext editingContext) {
>   // TODO Auto-generated method stub
>   super.awakeFromInsertion(editingContext);
>   
>   System.out.println("awakeFromInsertion person: “+ person());
>   }
> 
> in the log:
> awakeFromInsertion person: null
> 
> in the init method:
> System.out.println("creating a new bookperson person: "+ person());
> 
> in the log:
> creating a new bookperson person: null
> 
> I thought that when the BookPerson EO was created it would be assigned the 
> person.  
> 
> I was thinking of storing it on the session but I didn’t think of 
> session.objectStore.  I was thinking of using thread storage. 
> 
> But where would you do this?
> 
> 
> 
> 
> 
> On Jan 30, 2015, at 9:45 AM, Fabian Peters  wrote:
> 
>> Well, I'm not sure about your model, but: If editing a Person and clicking 
>> on the book relations "new" button, I would expect the created Book object 
>> to have its "person" relationship be set to the person EO you're editing.
>> 
>> If the EO is inaccessible, then you can alway resort to storing it on the 
>> session, e.g. in "session.objectStore".
>> 
>> Fabian
>> 
>>> Ok, maybe using the restrictedChoiceKey option and put a method on the EO 
>>> that returns an array of these objects.
>>> 
>>> But how do I pass in either the Person EO that I am editing, or an array of 
>>> (in this case) “Person.Shows" that are assigned to this Person?
>>> 
>>> Obviously, if I can pass in the Person, I can create a Qualifier based on 
>>> that Person.
>>> 
>>> Book.() and 
>>> Book.INSTRUMENT.eq()
>>> 
>>> I need to add a qualifier to this method to return a subset based on the 
>>> parent object’s instrument and shows.
>>> 
>>> Ted
>>> 
>>> 
>>> 
>>> On Jan 30, 2015, at 2:37 AM, Fabian Peters  wrote:
>>> 
>>>> Hi Ted,
>>>> 
>>>> The most basic rule would be:
>>>> 
>>>> 100 : entity.name like '*' => queryDataSourceDelegate = 
>>>> "COM.YOUR-PACKAGE.LimitBooksToPersonDataSourceDelegate" 
>>>> [ERDDelayedObjectCreationAssignment]
>>>> 
>>>> But if you want to limit the choices in a relationship component, the 
>>>> "restrictedChoiceKey" approach should be easier to use:
>>>> 
>>>> 100 : (task = 'edit' and entity.name = 'Location' and propertyKey = 
>>>> 'parentLocation') => restrictedChoiceKey = 
>>>> "object.availableParentLocations" [com.webobjects.directtoweb.Assignment]
>>>> 
>>>> Just put a method on the EO that returns the possible choices for the 
>>>> relationship.
>>>> 
>>>> HTH, Fabian
>>>> 
>>>> Am 29.01.2015 um 16:41 schrieb Theodore Petrosky :
>>>> 
>>>>> Fabian,
>>>>> 
>>>>> You commented on this a long time ago. and in checking my old emails, I 
>>>>> see this is along the lines of what I need.
>>>>> 
>>>>> I have a D2W app with an embedded toMany CreateEmbeddedBookPerson that 
>>>>> has an ERD2WEditToOneRelationship that I am trying to create a fetch 
>>>>> specification for.
>>>>> 
>>>>> I see in the logs:
>>>>> 
>>>>> DEBUG NSLog Page: er.modern.look.pages.ERMODInspectPage - Configuration: 
>>>>> EditPerson Page: er.modern.look.pages.ERMODEditRelationshipPage - 
>>>>> Configuration: EditRelationshipEmbeddedBookPerson 
>>>>> (CreateEmbeddedBookPerson) -  evaluateExpression: 
>>>>> >>>> t0.eventid, t0.id, t0.instrumentfamilyid, t0.showid FROM book t0" 
>>>>> withBindings: >
>>>>> Jan 29 10:26:28 Booking_D2W[61840] DEBUG NSLog Page: 
>>>>> er.modern.look.pages.ERMODInspectPage - Configuration: EditPerson Page: 
>>>>> er.modern.look.pages.ERMODEditRelationshipPage - Configuratio

Re: limiting All Queries in D2W

2015-01-30 Thread Theodore Petrosky
BTW here is the method that is called when you click the New button:

/**
 * Performs the newObjectAction. Creates a new object and sets the 
inline task
 * to 'create'
 */
public WOComponent newObjectAction() {

EOEditingContext newEc = 
ERXEC.newEditingContext(masterObject().editingContext());
EOClassDescription relatedObjectClassDescription = 
masterObject().classDescriptionForDestinationKey(relationshipKey());
EOEnterpriseObject relatedObject = 
(EOEnterpriseObject)EOUtilities.createAndInsertInstance(newEc, 
relatedObjectClassDescription.entityName());
EOEnterpriseObject localObj = 
EOUtilities.localInstanceOfObject(relatedObject.editingContext(), 
masterObject());
if (localObj instanceof ERXGenericRecord) {

((ERXGenericRecord)localObj).setValidatedWhenNested(false);
}

localObj.addObjectToBothSidesOfRelationshipWithKey(relatedObject, 
relationshipKey());
setSelectedObject(relatedObject);
setInlineTaskSafely("create");
return null;
}

What is interesting is that the masterObject() is the Person EO.




On Jan 30, 2015, at 9:45 AM, Fabian Peters  wrote:

> Well, I'm not sure about your model, but: If editing a Person and clicking on 
> the book relations "new" button, I would expect the created Book object to 
> have its "person" relationship be set to the person EO you're editing.
> 
> If the EO is inaccessible, then you can alway resort to storing it on the 
> session, e.g. in "session.objectStore".
> 
> Fabian
> 
>> Ok, maybe using the restrictedChoiceKey option and put a method on the EO 
>> that returns an array of these objects.
>> 
>> But how do I pass in either the Person EO that I am editing, or an array of 
>> (in this case) “Person.Shows" that are assigned to this Person?
>> 
>> Obviously, if I can pass in the Person, I can create a Qualifier based on 
>> that Person.
>> 
>> Book.() and 
>> Book.INSTRUMENT.eq()
>> 
>> I need to add a qualifier to this method to return a subset based on the 
>> parent object’s instrument and shows.
>> 
>> Ted
>> 
>> 
>> 
>> On Jan 30, 2015, at 2:37 AM, Fabian Peters  wrote:
>> 
>>> Hi Ted,
>>> 
>>> The most basic rule would be:
>>> 
>>> 100 : entity.name like '*' => queryDataSourceDelegate = 
>>> "COM.YOUR-PACKAGE.LimitBooksToPersonDataSourceDelegate" 
>>> [ERDDelayedObjectCreationAssignment]
>>> 
>>> But if you want to limit the choices in a relationship component, the 
>>> "restrictedChoiceKey" approach should be easier to use:
>>> 
>>> 100 : (task = 'edit' and entity.name = 'Location' and propertyKey = 
>>> 'parentLocation') => restrictedChoiceKey = 
>>> "object.availableParentLocations" [com.webobjects.directtoweb.Assignment]
>>> 
>>> Just put a method on the EO that returns the possible choices for the 
>>> relationship.
>>> 
>>> HTH, Fabian
>>> 
>>> Am 29.01.2015 um 16:41 schrieb Theodore Petrosky :
>>> 
>>>> Fabian,
>>>> 
>>>> You commented on this a long time ago. and in checking my old emails, I 
>>>> see this is along the lines of what I need.
>>>> 
>>>> I have a D2W app with an embedded toMany CreateEmbeddedBookPerson that has 
>>>> an ERD2WEditToOneRelationship that I am trying to create a fetch 
>>>> specification for.
>>>> 
>>>> I see in the logs:
>>>> 
>>>> DEBUG NSLog Page: er.modern.look.pages.ERMODInspectPage - Configuration: 
>>>> EditPerson Page: er.modern.look.pages.ERMODEditRelationshipPage - 
>>>> Configuration: EditRelationshipEmbeddedBookPerson 
>>>> (CreateEmbeddedBookPerson) -  evaluateExpression: 
>>>> >>> t0.eventid, t0.id, t0.instrumentfamilyid, t0.showid FROM book t0" 
>>>> withBindings: >
>>>> Jan 29 10:26:28 Booking_D2W[61840] DEBUG NSLog Page: 
>>>> er.modern.look.pages.ERMODInspectPage - Configuration: EditPerson Page: 
>>>> er.modern.look.pages.ERMODEditRelationshipPage - Configuration: 
>>>> EditRelationshipEmbeddedBookPerson (CreateEmbeddedBookPerson) - 29 row(s) 
>>>> processed
>>>> 
>>>> There we have it. it is getting 29 rows. If I create:
>>>> 
>>>> public class LimitBooksToPerson

Re: limiting All Queries in D2W

2015-01-30 Thread Theodore Petrosky
actually I am looking at that now. I created in my BookPerson EO:

@Override
public void awakeFromInsertion(EOEditingContext editingContext) {
// TODO Auto-generated method stub
super.awakeFromInsertion(editingContext);

System.out.println("awakeFromInsertion person: “+ person());
}

in the log:
awakeFromInsertion person: null

in the init method:
System.out.println("creating a new bookperson person: "+ person());

in the log:
creating a new bookperson person: null

I thought that when the BookPerson EO was created it would be assigned the 
person.  

I was thinking of storing it on the session but I didn’t think of 
session.objectStore.  I was thinking of using thread storage. 

But where would you do this?





On Jan 30, 2015, at 9:45 AM, Fabian Peters  wrote:

> Well, I'm not sure about your model, but: If editing a Person and clicking on 
> the book relations "new" button, I would expect the created Book object to 
> have its "person" relationship be set to the person EO you're editing.
> 
> If the EO is inaccessible, then you can alway resort to storing it on the 
> session, e.g. in "session.objectStore".
> 
> Fabian
> 
>> Ok, maybe using the restrictedChoiceKey option and put a method on the EO 
>> that returns an array of these objects.
>> 
>> But how do I pass in either the Person EO that I am editing, or an array of 
>> (in this case) “Person.Shows" that are assigned to this Person?
>> 
>> Obviously, if I can pass in the Person, I can create a Qualifier based on 
>> that Person.
>> 
>> Book.() and 
>> Book.INSTRUMENT.eq()
>> 
>> I need to add a qualifier to this method to return a subset based on the 
>> parent object’s instrument and shows.
>> 
>> Ted
>> 
>> 
>> 
>> On Jan 30, 2015, at 2:37 AM, Fabian Peters  wrote:
>> 
>>> Hi Ted,
>>> 
>>> The most basic rule would be:
>>> 
>>> 100 : entity.name like '*' => queryDataSourceDelegate = 
>>> "COM.YOUR-PACKAGE.LimitBooksToPersonDataSourceDelegate" 
>>> [ERDDelayedObjectCreationAssignment]
>>> 
>>> But if you want to limit the choices in a relationship component, the 
>>> "restrictedChoiceKey" approach should be easier to use:
>>> 
>>> 100 : (task = 'edit' and entity.name = 'Location' and propertyKey = 
>>> 'parentLocation') => restrictedChoiceKey = 
>>> "object.availableParentLocations" [com.webobjects.directtoweb.Assignment]
>>> 
>>> Just put a method on the EO that returns the possible choices for the 
>>> relationship.
>>> 
>>> HTH, Fabian
>>> 
>>> Am 29.01.2015 um 16:41 schrieb Theodore Petrosky :
>>> 
>>>> Fabian,
>>>> 
>>>> You commented on this a long time ago. and in checking my old emails, I 
>>>> see this is along the lines of what I need.
>>>> 
>>>> I have a D2W app with an embedded toMany CreateEmbeddedBookPerson that has 
>>>> an ERD2WEditToOneRelationship that I am trying to create a fetch 
>>>> specification for.
>>>> 
>>>> I see in the logs:
>>>> 
>>>> DEBUG NSLog Page: er.modern.look.pages.ERMODInspectPage - Configuration: 
>>>> EditPerson Page: er.modern.look.pages.ERMODEditRelationshipPage - 
>>>> Configuration: EditRelationshipEmbeddedBookPerson 
>>>> (CreateEmbeddedBookPerson) -  evaluateExpression: 
>>>> >>> t0.eventid, t0.id, t0.instrumentfamilyid, t0.showid FROM book t0" 
>>>> withBindings: >
>>>> Jan 29 10:26:28 Booking_D2W[61840] DEBUG NSLog Page: 
>>>> er.modern.look.pages.ERMODInspectPage - Configuration: EditPerson Page: 
>>>> er.modern.look.pages.ERMODEditRelationshipPage - Configuration: 
>>>> EditRelationshipEmbeddedBookPerson (CreateEmbeddedBookPerson) - 29 row(s) 
>>>> processed
>>>> 
>>>> There we have it. it is getting 29 rows. If I create:
>>>> 
>>>> public class LimitBooksToPersonDataSourceDelegate extends 
>>>> EODatabaseDataSource implements ERDQueryDataSourceDelegateInterface {
>>>> 
>>>> add the required methods and add in some sys logs to see if it gets fired. 
>>>> But what is the rule? Am I barking up the wrong tree?
>>>> 
>>>> A little help would be appreciated!
>>>> 
>>>> 
>>>> On Apr 13, 2012, at 9:27 AM, F

Re: limiting All Queries in D2W

2015-01-30 Thread Fabian Peters
Well, I'm not sure about your model, but: If editing a Person and clicking on 
the book relations "new" button, I would expect the created Book object to have 
its "person" relationship be set to the person EO you're editing.

If the EO is inaccessible, then you can alway resort to storing it on the 
session, e.g. in "session.objectStore".

Fabian

> Ok, maybe using the restrictedChoiceKey option and put a method on the EO 
> that returns an array of these objects.
> 
> But how do I pass in either the Person EO that I am editing, or an array of 
> (in this case) “Person.Shows" that are assigned to this Person?
> 
> Obviously, if I can pass in the Person, I can create a Qualifier based on 
> that Person.
> 
> Book.() and 
> Book.INSTRUMENT.eq()
> 
> I need to add a qualifier to this method to return a subset based on the 
> parent object’s instrument and shows.
> 
> Ted
> 
> 
> 
> On Jan 30, 2015, at 2:37 AM, Fabian Peters  wrote:
> 
>> Hi Ted,
>> 
>> The most basic rule would be:
>> 
>> 100 : entity.name like '*' => queryDataSourceDelegate = 
>> "COM.YOUR-PACKAGE.LimitBooksToPersonDataSourceDelegate" 
>> [ERDDelayedObjectCreationAssignment]
>> 
>> But if you want to limit the choices in a relationship component, the 
>> "restrictedChoiceKey" approach should be easier to use:
>> 
>> 100 : (task = 'edit' and entity.name = 'Location' and propertyKey = 
>> 'parentLocation') => restrictedChoiceKey = "object.availableParentLocations" 
>> [com.webobjects.directtoweb.Assignment]
>> 
>> Just put a method on the EO that returns the possible choices for the 
>> relationship.
>> 
>> HTH, Fabian
>> 
>> Am 29.01.2015 um 16:41 schrieb Theodore Petrosky :
>> 
>>> Fabian,
>>> 
>>> You commented on this a long time ago. and in checking my old emails, I see 
>>> this is along the lines of what I need.
>>> 
>>> I have a D2W app with an embedded toMany CreateEmbeddedBookPerson that has 
>>> an ERD2WEditToOneRelationship that I am trying to create a fetch 
>>> specification for.
>>> 
>>> I see in the logs:
>>> 
>>> DEBUG NSLog Page: er.modern.look.pages.ERMODInspectPage - Configuration: 
>>> EditPerson Page: er.modern.look.pages.ERMODEditRelationshipPage - 
>>> Configuration: EditRelationshipEmbeddedBookPerson 
>>> (CreateEmbeddedBookPerson) -  evaluateExpression: 
>>> >> t0.eventid, t0.id, t0.instrumentfamilyid, t0.showid FROM book t0" 
>>> withBindings: >
>>> Jan 29 10:26:28 Booking_D2W[61840] DEBUG NSLog Page: 
>>> er.modern.look.pages.ERMODInspectPage - Configuration: EditPerson Page: 
>>> er.modern.look.pages.ERMODEditRelationshipPage - Configuration: 
>>> EditRelationshipEmbeddedBookPerson (CreateEmbeddedBookPerson) - 29 row(s) 
>>> processed
>>> 
>>> There we have it. it is getting 29 rows. If I create:
>>> 
>>> public class LimitBooksToPersonDataSourceDelegate extends 
>>> EODatabaseDataSource implements ERDQueryDataSourceDelegateInterface {
>>> 
>>> add the required methods and add in some sys logs to see if it gets fired. 
>>> But what is the rule? Am I barking up the wrong tree?
>>> 
>>> A little help would be appreciated!
>>> 
>>> 
>>> On Apr 13, 2012, at 9:27 AM, Fabian Peters  wrote:
>>> 
>>>> 
>>>> Am 13.04.2012 um 11:34 schrieb Theodore Petrosky:
>>>> 
>>>>> I don't even know where to begin. I have a D2W app that manages Briefs. A 
>>>>> Brief is created by a User. (one to one relation)
>>>>> 
>>>>> I can easily create a tab that calls a method to limit the resultant list 
>>>>> to only those Briefs created by the current User. However, where do I 
>>>>> 'fix' the search area.
>>>>> 
>>>>> I mean if the current User is Sally, she will search for Brief(s) that 
>>>>> the Objective attribute contains the word 'Iceman'. But I want all 
>>>>> queries to include  'and user = 'Sally'.
>>>> 
>>>> You can add restricting qualifiers (almost) globally via 
>>>> "editingContextShouldFetchObjects" in ERXEditingContextDelegate. Just 
>>>> create your own EC delegate and use it to modify the fetch spec. To define 
>>>> your custom delegate as the default delegate:
>>>> 
&

Re: limiting All Queries in D2W

2015-01-30 Thread Theodore Petrosky
Ok, maybe using the restrictedChoiceKey option and put a method on the EO that 
returns an array of these objects.

But how do I pass in either the Person EO that I am editing, or an array of (in 
this case) “Person.Shows" that are assigned to this Person?

Obviously, if I can pass in the Person, I can create a Qualifier based on that 
Person.

Book.() and 
Book.INSTRUMENT.eq()

I need to add a qualifier to this method to return a subset based on the parent 
object’s instrument and shows.

Ted



On Jan 30, 2015, at 2:37 AM, Fabian Peters  wrote:

> Hi Ted,
> 
> The most basic rule would be:
> 
> 100 : entity.name like '*' => queryDataSourceDelegate = 
> "COM.YOUR-PACKAGE.LimitBooksToPersonDataSourceDelegate" 
> [ERDDelayedObjectCreationAssignment]
> 
> But if you want to limit the choices in a relationship component, the 
> "restrictedChoiceKey" approach should be easier to use:
> 
> 100 : (task = 'edit' and entity.name = 'Location' and propertyKey = 
> 'parentLocation') => restrictedChoiceKey = "object.availableParentLocations" 
> [com.webobjects.directtoweb.Assignment]
> 
> Just put a method on the EO that returns the possible choices for the 
> relationship.
> 
> HTH, Fabian
> 
> Am 29.01.2015 um 16:41 schrieb Theodore Petrosky :
> 
>> Fabian,
>> 
>> You commented on this a long time ago. and in checking my old emails, I see 
>> this is along the lines of what I need.
>> 
>> I have a D2W app with an embedded toMany CreateEmbeddedBookPerson that has 
>> an ERD2WEditToOneRelationship that I am trying to create a fetch 
>> specification for.
>> 
>> I see in the logs:
>> 
>> DEBUG NSLog Page: er.modern.look.pages.ERMODInspectPage - Configuration: 
>> EditPerson Page: er.modern.look.pages.ERMODEditRelationshipPage - 
>> Configuration: EditRelationshipEmbeddedBookPerson (CreateEmbeddedBookPerson) 
>> -  evaluateExpression: > "SELECT t0.booktitle, t0.eventid, t0.id, t0.instrumentfamilyid, t0.showid 
>> FROM book t0" withBindings: >
>> Jan 29 10:26:28 Booking_D2W[61840] DEBUG NSLog Page: 
>> er.modern.look.pages.ERMODInspectPage - Configuration: EditPerson Page: 
>> er.modern.look.pages.ERMODEditRelationshipPage - Configuration: 
>> EditRelationshipEmbeddedBookPerson (CreateEmbeddedBookPerson) - 29 row(s) 
>> processed
>> 
>> There we have it. it is getting 29 rows. If I create:
>> 
>> public class LimitBooksToPersonDataSourceDelegate extends 
>> EODatabaseDataSource implements ERDQueryDataSourceDelegateInterface {
>> 
>> add the required methods and add in some sys logs to see if it gets fired. 
>> But what is the rule? Am I barking up the wrong tree?
>> 
>> A little help would be appreciated!
>> 
>> 
>> On Apr 13, 2012, at 9:27 AM, Fabian Peters  wrote:
>> 
>>> 
>>> Am 13.04.2012 um 11:34 schrieb Theodore Petrosky:
>>> 
>>>> I don't even know where to begin. I have a D2W app that manages Briefs. A 
>>>> Brief is created by a User. (one to one relation)
>>>> 
>>>> I can easily create a tab that calls a method to limit the resultant list 
>>>> to only those Briefs created by the current User. However, where do I 
>>>> 'fix' the search area.
>>>> 
>>>> I mean if the current User is Sally, she will search for Brief(s) that the 
>>>> Objective attribute contains the word 'Iceman'. But I want all queries to 
>>>> include  'and user = 'Sally'.
>>> 
>>> You can add restricting qualifiers (almost) globally via 
>>> "editingContextShouldFetchObjects" in ERXEditingContextDelegate. Just 
>>> create your own EC delegate and use it to modify the fetch spec. To define 
>>> your custom delegate as the default delegate:
>>> 
>>>  new ERXEC.DefaultFactory()
>>>  .setDefaultEditingContextDelegate(new 
>>> DREditingContextDelegate());
>>> 
>>>> Sally should not see Bob's Briefs. I am trying to embrace D2W, and (for 
>>>> me) this would be trivial in a Wonder app.
>>> 
>>> For D2W you can subclass EODatabaseDataSource and modify the constructors 
>>> and the "setFetchSpecification" method to ensure restrictions are applied. 
>>> To make sure your subclass gets used you can implement 
>>> "ERDQueryDataSourceDelegateInterface" and set it via the rules. Using only 
>>> the queryDataSourceDelegate may also be sufficient depending on your needs.
>>> 
>>

Re: limiting All Queries in D2W

2015-01-29 Thread Fabian Peters
Hi Ted,

The most basic rule would be:

100 : entity.name like '*' => queryDataSourceDelegate = 
"COM.YOUR-PACKAGE.LimitBooksToPersonDataSourceDelegate" 
[ERDDelayedObjectCreationAssignment]

But if you want to limit the choices in a relationship component, the 
"restrictedChoiceKey" approach should be easier to use:

100 : (task = 'edit' and entity.name = 'Location' and propertyKey = 
'parentLocation') => restrictedChoiceKey = "object.availableParentLocations" 
[com.webobjects.directtoweb.Assignment]

Just put a method on the EO that returns the possible choices for the 
relationship.

HTH, Fabian

Am 29.01.2015 um 16:41 schrieb Theodore Petrosky :

> Fabian,
> 
> You commented on this a long time ago. and in checking my old emails, I see 
> this is along the lines of what I need.
> 
> I have a D2W app with an embedded toMany CreateEmbeddedBookPerson that has an 
> ERD2WEditToOneRelationship that I am trying to create a fetch specification 
> for.
> 
> I see in the logs:
> 
> DEBUG NSLog Page: er.modern.look.pages.ERMODInspectPage - Configuration: 
> EditPerson Page: er.modern.look.pages.ERMODEditRelationshipPage - 
> Configuration: EditRelationshipEmbeddedBookPerson (CreateEmbeddedBookPerson) 
> -  evaluateExpression:  "SELECT t0.booktitle, t0.eventid, t0.id, t0.instrumentfamilyid, t0.showid 
> FROM book t0" withBindings: >
> Jan 29 10:26:28 Booking_D2W[61840] DEBUG NSLog Page: 
> er.modern.look.pages.ERMODInspectPage - Configuration: EditPerson Page: 
> er.modern.look.pages.ERMODEditRelationshipPage - Configuration: 
> EditRelationshipEmbeddedBookPerson (CreateEmbeddedBookPerson) - 29 row(s) 
> processed
> 
> There we have it. it is getting 29 rows. If I create:
> 
> public class LimitBooksToPersonDataSourceDelegate extends 
> EODatabaseDataSource implements ERDQueryDataSourceDelegateInterface {
> 
> add the required methods and add in some sys logs to see if it gets fired. 
> But what is the rule? Am I barking up the wrong tree?
> 
> A little help would be appreciated!
> 
> 
> On Apr 13, 2012, at 9:27 AM, Fabian Peters  wrote:
> 
>> 
>> Am 13.04.2012 um 11:34 schrieb Theodore Petrosky:
>> 
>>> I don't even know where to begin. I have a D2W app that manages Briefs. A 
>>> Brief is created by a User. (one to one relation)
>>> 
>>> I can easily create a tab that calls a method to limit the resultant list 
>>> to only those Briefs created by the current User. However, where do I 'fix' 
>>> the search area.
>>> 
>>> I mean if the current User is Sally, she will search for Brief(s) that the 
>>> Objective attribute contains the word 'Iceman'. But I want all queries to 
>>> include  'and user = 'Sally'.
>> 
>> You can add restricting qualifiers (almost) globally via 
>> "editingContextShouldFetchObjects" in ERXEditingContextDelegate. Just create 
>> your own EC delegate and use it to modify the fetch spec. To define your 
>> custom delegate as the default delegate:
>> 
>>   new ERXEC.DefaultFactory()
>>   .setDefaultEditingContextDelegate(new 
>> DREditingContextDelegate());
>> 
>>> Sally should not see Bob's Briefs. I am trying to embrace D2W, and (for me) 
>>> this would be trivial in a Wonder app.
>> 
>> For D2W you can subclass EODatabaseDataSource and modify the constructors 
>> and the "setFetchSpecification" method to ensure restrictions are applied. 
>> To make sure your subclass gets used you can implement 
>> "ERDQueryDataSourceDelegateInterface" and set it via the rules. Using only 
>> the queryDataSourceDelegate may also be sufficient depending on your needs.
>> 
>> cheers, Fabian
>> 
>>> Is there a property for this?
>>> 
>>> Ted
>>> ___
>>> 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/lists.fabian%40e-lumo.com
>>> 
>>> This email sent to lists.fab...@e-lumo.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: limiting All Queries in D2W

2015-01-29 Thread Theodore Petrosky
Fabian,

You commented on this a long time ago. and in checking my old emails, I see 
this is along the lines of what I need.

I have a D2W app with an embedded toMany CreateEmbeddedBookPerson that has an 
ERD2WEditToOneRelationship that I am trying to create a fetch specification for.

I see in the logs:

DEBUG NSLog Page: er.modern.look.pages.ERMODInspectPage - Configuration: 
EditPerson Page: er.modern.look.pages.ERMODEditRelationshipPage - 
Configuration: EditRelationshipEmbeddedBookPerson (CreateEmbeddedBookPerson) -  
evaluateExpression: 
Jan 29 10:26:28 Booking_D2W[61840] DEBUG NSLog Page: 
er.modern.look.pages.ERMODInspectPage - Configuration: EditPerson Page: 
er.modern.look.pages.ERMODEditRelationshipPage - Configuration: 
EditRelationshipEmbeddedBookPerson (CreateEmbeddedBookPerson) - 29 row(s) 
processed

There we have it. it is getting 29 rows. If I create:

public class LimitBooksToPersonDataSourceDelegate extends EODatabaseDataSource 
implements ERDQueryDataSourceDelegateInterface {

add the required methods and add in some sys logs to see if it gets fired. But 
what is the rule? Am I barking up the wrong tree?

A little help would be appreciated!


On Apr 13, 2012, at 9:27 AM, Fabian Peters  wrote:

> 
> Am 13.04.2012 um 11:34 schrieb Theodore Petrosky:
> 
>> I don't even know where to begin. I have a D2W app that manages Briefs. A 
>> Brief is created by a User. (one to one relation)
>> 
>> I can easily create a tab that calls a method to limit the resultant list to 
>> only those Briefs created by the current User. However, where do I 'fix' the 
>> search area.
>> 
>> I mean if the current User is Sally, she will search for Brief(s) that the 
>> Objective attribute contains the word 'Iceman'. But I want all queries to 
>> include  'and user = 'Sally'.
> 
> You can add restricting qualifiers (almost) globally via 
> "editingContextShouldFetchObjects" in ERXEditingContextDelegate. Just create 
> your own EC delegate and use it to modify the fetch spec. To define your 
> custom delegate as the default delegate:
> 
>new ERXEC.DefaultFactory()
>        .setDefaultEditingContextDelegate(new 
> DREditingContextDelegate());
> 
>> Sally should not see Bob's Briefs. I am trying to embrace D2W, and (for me) 
>> this would be trivial in a Wonder app.
> 
> For D2W you can subclass EODatabaseDataSource and modify the constructors and 
> the "setFetchSpecification" method to ensure restrictions are applied. To 
> make sure your subclass gets used you can implement 
> "ERDQueryDataSourceDelegateInterface" and set it via the rules. Using only 
> the queryDataSourceDelegate may also be sufficient depending on your needs.
> 
> cheers, Fabian
> 
>> Is there a property for this?
>> 
>> Ted
>> ___
>> 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/lists.fabian%40e-lumo.com
>> 
>> This email sent to lists.fab...@e-lumo.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: D2w - toMany relation

2015-01-23 Thread Theodore Petrosky

what about:

100 : pageConfiguration = 'EditRelationshipEmbeddedRentalHistory' => 
isEntityCreatable = "false" [com.webobjects.directtoweb.Assignment]



On 1/23/15 6:25 AM, Pierre Gilquin wrote:
In some circonstance, I need also to get rid of the "New" button of a 
toMany relation
I look in the ERMODEditRelationshipPage component but I didnot find 
any way



  


IsEntityWritable: WOConditional {
_unroll = true;
condition = isEntityCreatable;
}


NewButton: CCSmartAjaxButton {
alt = "Creates a new Object to add to the relationship";
action = newObjectAction;
class = "Button PageButton CreatePageButton";
value = d2wContext.newRelationshipButtonLabel;
useAjax = d2wContext.useAjaxControls;
updateContainerID = d2wContext.idForMainContainer;
dontSubmitForm = true;
}

Thanks in advance for any idea
Pierre

On 12. 01. 15 15:50, Flavio Donadio wrote:

Pierre,


Try this simple rule (took me some time to find the first time I 
needed this):


100 : pageConfiguration like 'EditRelationshipEmbeddedRentalHistory' 
=> shouldShowQueryRelatedButton = "false" 
[com.webobjects.directtoweb.BooleanAssignment]



Cheers,
Flavio

On 12/01/2015, at 08:48, Pierre Gilquin  wrote:


Hi,


I have a tomany relation very similar to the RentalHistory relation 
in Movie DB (Customer ->> RentalHistory -> Movie).
I created an Wonder D2W Application with my model and that's already 
very good.


But the component used for the relation use 2 buttons Search and New.
How can I get rid of the Search button as there is no meaning to 
transfer a rental from a cutomer to an other ?


The New bouton is ok except I think that it should be "Add ...". How 
can I change that ?




Thanks in advance


Pierre



___
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/flavio%40donadio.com.br 



This email sent to fla...@donadio.com.br


___
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: D2w - toMany relation

2015-01-23 Thread Pierre Gilquin
In some circonstance, I need also to get rid of the "New" button of a 
toMany relation

I look in the ERMODEditRelationshipPage component but I didnot find any way


  


IsEntityWritable: WOConditional {
_unroll = true;
condition = isEntityCreatable;
}


NewButton: CCSmartAjaxButton {
alt = "Creates a new Object to add to the relationship";
action = newObjectAction;
class = "Button PageButton CreatePageButton";
value = d2wContext.newRelationshipButtonLabel;
useAjax = d2wContext.useAjaxControls;
updateContainerID = d2wContext.idForMainContainer;
dontSubmitForm = true;
}

Thanks in advance for any idea
Pierre

On 12. 01. 15 15:50, Flavio Donadio wrote:

Pierre,


Try this simple rule (took me some time to find the first time I needed this):

100 : pageConfiguration like 'EditRelationshipEmbeddedRentalHistory' => 
shouldShowQueryRelatedButton = "false" 
[com.webobjects.directtoweb.BooleanAssignment]


Cheers,
Flavio

On 12/01/2015, at 08:48, Pierre Gilquin  wrote:


Hi,


I have a tomany relation very similar to the RentalHistory relation in Movie DB 
(Customer ->> RentalHistory -> Movie).
I created an Wonder D2W Application with my model and that's already very good.

But the component used for the relation use 2 buttons Search and New.
How can I get rid of the Search button as there is no meaning to transfer a 
rental from a cutomer to an other ?

The New bouton is ok except I think that it should be "Add ...". How can I 
change that ?



Thanks in advance


Pierre



___
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/flavio%40donadio.com.br

This email sent to fla...@donadio.com.br


___
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: D2w - toMany relation

2015-01-15 Thread Fabian Peters
"Entity.name.Location" = "Ort";
"Nav.Settings" = "Einstellungen";
"Pages.CreatePerson" = "Person anlegen";
"PropertyKey.amount" = "Betrag";
"TabKey.Owner" = "Eigentümer";

Fabian

Am 15.01.2015 um 16:26 schrieb Pierre Gilquin :

> Thanks for all this info. I will try it.
> I wonder also how to localize the title of the component (i.e "Select 
> embedded ") and the labels for property key ?
> 
> 
> Pierre
> 
> 
> Query Embedded Hv Motif Hospitalisation
> 
> 
> 
> On 15. 01. 15 13:16, Theodore Petrosky wrote:
>> Localization is handled by a Localizable.strings  file.
>> 
>> for instance create a folder in your Resources folder called English.lproj 
>> in there a file called Localizable.strings. now you can do things like:
>> 
>>  "ERD2W.advancedFindButtonLabel" = "Advanced...";
>>   
>>   "PropertyKey.meetingAttendees" = "Attendees";
>>   "PropertyKey.meetingLocation" = "Location”;
>> 
>> then you can create a folder French.lproj in your Resources folder with a 
>> file Localizable.strings were you would put the French version (then Polish, 
>> Italian, etc)
>> 
>> now if the user’s language is set to English they get the English 
>> localizations and appropriately the other languages that you create will 
>> just work.
>> 
>> 
>> Is this what you are looking for?
>> 
>> BTW, in the language folder you also put a file (in each language) 
>> ValidationTemplate.strings and you can do things like:
>> 
>> {
>>  "UniqueConstraintException.loginname_idx" = "Please choose a different 
>> username (It must be unique).";
>>  
>>  "Quote.quoteAmount"="You must enter a dollar amount in the format 
>> 123.00 (you entered @@escapedValue@@)!";
>>  
>> }
>> 
>> 
>> 
>> On Jan 15, 2015, at 2:26 AM, Pierre Gilquin 
>> 
>>  wrote:
>> 
>> 
>>> One more question :
>>> is there a way to change the button text ? and in general, how to localyze 
>>> an d2w app ?
>>> 
>>> 
>>> Thanks
>>> 
>>> Pierre
>>> 
>>> ___
>>> 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/lists.fabian%40e-lumo.com
> 
> This email sent to lists.fab...@e-lumo.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: D2w - toMany relation

2015-01-15 Thread Pierre Gilquin

Thanks for all this info. I will try it.
I wonder also how to localize the title of the component (i.e "Select 
embedded ") and the labels for property key ?



Pierre


 Query Embedded Hv Motif Hospitalisation



On 15. 01. 15 13:16, Theodore Petrosky wrote:

Localization is handled by a Localizable.strings  file.

for instance create a folder in your Resources folder called English.lproj in 
there a file called Localizable.strings. now you can do things like:

  "ERD2W.advancedFindButtonLabel" = "Advanced...";
   
   "PropertyKey.meetingAttendees" = "Attendees";

   "PropertyKey.meetingLocation" = "Location”;

then you can create a folder French.lproj in your Resources folder with a file 
Localizable.strings were you would put the French version (then Polish, 
Italian, etc)

now if the user’s language is set to English they get the English localizations 
and appropriately the other languages that you create will just work.


Is this what you are looking for?

BTW, in the language folder you also put a file (in each language) 
ValidationTemplate.strings and you can do things like:

{
"UniqueConstraintException.loginname_idx" = "Please choose a different 
username (It must be unique).";

"Quote.quoteAmount"="You must enter a dollar amount in the format 123.00 
(you entered @@escapedValue@@)!";

}



On Jan 15, 2015, at 2:26 AM, Pierre Gilquin  wrote:


One more question :
is there a way to change the button text ? and in general, how to localyze an 
d2w app ?


Thanks

Pierre

___
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: D2w - toMany relation

2015-01-15 Thread Theodore Petrosky
Localization is handled by a Localizable.strings  file.

for instance create a folder in your Resources folder called English.lproj in 
there a file called Localizable.strings. now you can do things like:

 "ERD2W.advancedFindButtonLabel" = "Advanced...";
  
  "PropertyKey.meetingAttendees" = "Attendees";
  "PropertyKey.meetingLocation" = "Location”;

then you can create a folder French.lproj in your Resources folder with a file 
Localizable.strings were you would put the French version (then Polish, 
Italian, etc)

now if the user’s language is set to English they get the English localizations 
and appropriately the other languages that you create will just work.


Is this what you are looking for?

BTW, in the language folder you also put a file (in each language) 
ValidationTemplate.strings and you can do things like:

{
"UniqueConstraintException.loginname_idx" = "Please choose a different 
username (It must be unique).";

"Quote.quoteAmount"="You must enter a dollar amount in the format 
123.00 (you entered @@escapedValue@@)!";

}



On Jan 15, 2015, at 2:26 AM, Pierre Gilquin  wrote:

> One more question :
> is there a way to change the button text ? and in general, how to localyze an 
> d2w app ?
> 
> 
> Thanks
> 
> Pierre
> 
> ___
> 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: D2w - toMany relation

2015-01-14 Thread Fabian Peters
Assuming you use ERModern, the two buttons would be:

"ERMD.newRelationshipButtonLabel" = "Neu anlegen";
"ERMD.queryRelationshipButtonLabel" = "Suchen";

You can find this out by looking at the WOD of ERMODEditRelationshipPage, where 
you'll see QueryButton gets its value via 
d2wContext.queryRelationshipButtonLabel, which by default is set to 
"ERMD.queryRelationshipButtonLabel" via the d2w.d2wmodel file of 
ERModernDirectToWeb.

Fabian

Am 15.01.2015 um 08:26 schrieb Pierre Gilquin :

> One more question :
> is there a way to change the button text ? and in general, how to localyze an 
> d2w app ?
> 
> 
> Thanks
> 
> Pierre
> 
> ___
> 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/lists.fabian%40e-lumo.com
> 
> This email sent to lists.fab...@e-lumo.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: D2w - toMany relation

2015-01-14 Thread Pierre Gilquin

One more question :
is there a way to change the button text ? and in general, how to 
localyze an d2w app ?



Thanks

Pierre

___
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: D2w - toMany relation

2015-01-13 Thread Pierre Gilquin

Thanks Fabien,
You are right. I change the text like this :
{
author = 100;
class = "com.webobjects.directtoweb.Rule";
lhs = {
class = "com.webobjects.eocontrol.EOKeyValueQualifier";
key = pageConfiguration;
selectorName = isLike;
value = EditRelationshipEmbeddedHvLienCasProduit;
};
rhs = {
class = "com.webobjects.directtoweb.BooleanAssignment";
keyPath = shouldShowQueryRelatedButton;
value = false;
};
}


It mean's that the rule editor I used is not up to date or there is a 
bug 


Pierre
On 13. 01. 15 09:58, Fabian Peters wrote:

Hi Pierre,

I'd say the class on line 3 should be "com.webobjects.directtoweb.Rule".

Fabian

Am 13.01.2015 um 09:16 schrieb Pierre Gilquin :


Thanks all for your help,

I try the rule from Flavio but I get the error:

** DirectToWeb could not merge d2wmodel from test.d2wmodel for reason: 
 valueForKey(): lookup 
of unknown key: 'priority'.
This class does not have an instance variable of the name priority or 
_priority, nor a method of the name priority, _priority, getPriority, or 
_getPriority
I have no clue what is the problem.

This the rule generated by the rule editor in place (eclipse plugin) :


  {
   author = 100;
   class = "com.webobjects.directtoweb.BooleanAssignment";
   lhs = {
   class = "com.webobjects.eocontrol.EOKeyValueQualifier";
   key = pageConfiguration;
   selectorName = isLike;
   value = EditRelationshipEmbeddedHvLienCasProduit;
   };
   rhs = {
   class = "com.webobjects.directtoweb.Assignment";
   keyPath = shouldShowQueryRelatedButton;
   value = false;
   };
   }

As I am on linux, I cannot use the RuleModeler app.

Thanks in advance for any advice

Pierre



On 12. 01. 15 15:50, Flavio Donadio wrote:

Pierre,


Try this simple rule (took me some time to find the first time I needed this):

100 : pageConfiguration like 'EditRelationshipEmbeddedRentalHistory' => 
shouldShowQueryRelatedButton = "false" 
[com.webobjects.directtoweb.BooleanAssignment]


Cheers,
Flavio

On 12/01/2015, at 08:48, Pierre Gilquin  wrote:


Hi,


I have a tomany relation very similar to the RentalHistory relation in Movie DB 
(Customer ->> RentalHistory -> Movie).
I created an Wonder D2W Application with my model and that's already very good.

But the component used for the relation use 2 buttons Search and New.
How can I get rid of the Search button as there is no meaning to transfer a 
rental from a cutomer to an other ?

The New bouton is ok except I think that it should be "Add ...". How can I 
change that ?



Thanks in advance


Pierre



___
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/flavio%40donadio.com.br

This email sent to fla...@donadio.com.br

___
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/lists.fabian%40e-lumo.com

This email sent to lists.fab...@e-lumo.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: D2w - toMany relation

2015-01-13 Thread Fabian Peters
Hi Pierre,

I'd say the class on line 3 should be "com.webobjects.directtoweb.Rule".

Fabian

Am 13.01.2015 um 09:16 schrieb Pierre Gilquin :

> Thanks all for your help,
> 
> I try the rule from Flavio but I get the error:
> 
> ** DirectToWeb could not merge d2wmodel from test.d2wmodel for reason: 
>  valueForKey(): lookup 
> of unknown key: 'priority'.
> This class does not have an instance variable of the name priority or 
> _priority, nor a method of the name priority, _priority, getPriority, or 
> _getPriority
> I have no clue what is the problem.
> 
> This the rule generated by the rule editor in place (eclipse plugin) :
> 
> 
>  {
>   author = 100;
>   class = "com.webobjects.directtoweb.BooleanAssignment";
>   lhs = {
>   class = "com.webobjects.eocontrol.EOKeyValueQualifier";
>   key = pageConfiguration;
>   selectorName = isLike;
>   value = EditRelationshipEmbeddedHvLienCasProduit;
>   };
>   rhs = {
>   class = "com.webobjects.directtoweb.Assignment";
>   keyPath = shouldShowQueryRelatedButton;
>   value = false;
>   };
>   }
> 
> As I am on linux, I cannot use the RuleModeler app.
> 
> Thanks in advance for any advice
> 
> Pierre
> 
> 
> 
> On 12. 01. 15 15:50, Flavio Donadio wrote:
>> Pierre,
>> 
>> 
>> Try this simple rule (took me some time to find the first time I needed 
>> this):
>> 
>> 100 : pageConfiguration like 'EditRelationshipEmbeddedRentalHistory' => 
>> shouldShowQueryRelatedButton = "false" 
>> [com.webobjects.directtoweb.BooleanAssignment]
>> 
>> 
>> Cheers,
>> Flavio
>> 
>> On 12/01/2015, at 08:48, Pierre Gilquin  wrote:
>> 
>>> Hi,
>>> 
>>> 
>>> I have a tomany relation very similar to the RentalHistory relation in 
>>> Movie DB (Customer ->> RentalHistory -> Movie).
>>> I created an Wonder D2W Application with my model and that's already very 
>>> good.
>>> 
>>> But the component used for the relation use 2 buttons Search and New.
>>> How can I get rid of the Search button as there is no meaning to transfer a 
>>> rental from a cutomer to an other ?
>>> 
>>> The New bouton is ok except I think that it should be "Add ...". How can I 
>>> change that ?
>>> 
>>> 
>>> 
>>> Thanks in advance
>>> 
>>> 
>>> Pierre
>>> 
>>> 
>>> 
>>> ___
>>> 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/flavio%40donadio.com.br
>>> 
>>> This email sent to fla...@donadio.com.br
> 
> ___
> 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/lists.fabian%40e-lumo.com
> 
> This email sent to lists.fab...@e-lumo.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: D2w - toMany relation

2015-01-13 Thread Pierre Gilquin

Thanks all for your help,

I try the rule from Flavio but I get the error:

** DirectToWeb could not merge d2wmodel from test.d2wmodel for reason: 
 valueForKey(): 
lookup of unknown key: 'priority'.
This class does not have an instance variable of the name priority or 
_priority, nor a method of the name priority, _priority, getPriority, or 
_getPriority

I have no clue what is the problem.

This the rule generated by the rule editor in place (eclipse plugin) :


   {
author = 100;
class = "com.webobjects.directtoweb.BooleanAssignment";
lhs = {
class = "com.webobjects.eocontrol.EOKeyValueQualifier";
key = pageConfiguration;
selectorName = isLike;
value = EditRelationshipEmbeddedHvLienCasProduit;
};
rhs = {
class = "com.webobjects.directtoweb.Assignment";
keyPath = shouldShowQueryRelatedButton;
value = false;
};
}

As I am on linux, I cannot use the RuleModeler app.

 Thanks in advance for any advice

Pierre



On 12. 01. 15 15:50, Flavio Donadio wrote:

Pierre,


Try this simple rule (took me some time to find the first time I needed this):

100 : pageConfiguration like 'EditRelationshipEmbeddedRentalHistory' => 
shouldShowQueryRelatedButton = "false" 
[com.webobjects.directtoweb.BooleanAssignment]


Cheers,
Flavio

On 12/01/2015, at 08:48, Pierre Gilquin  wrote:


Hi,


I have a tomany relation very similar to the RentalHistory relation in Movie DB 
(Customer ->> RentalHistory -> Movie).
I created an Wonder D2W Application with my model and that's already very good.

But the component used for the relation use 2 buttons Search and New.
How can I get rid of the Search button as there is no meaning to transfer a 
rental from a cutomer to an other ?

The New bouton is ok except I think that it should be "Add ...". How can I 
change that ?



Thanks in advance


Pierre



___
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/flavio%40donadio.com.br

This email sent to fla...@donadio.com.br


___
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: D2w - toMany relation

2015-01-12 Thread Theodore Petrosky
Keep in mind that there are lots of WOConditionals that you can access. I would 
hope that you have the Wonder source, and you can look at the components and 
get the conditional. in this case in ERMODEditRelationshipPage  in the WOD is:

ShowFind: WOConditional {
condition = d2wContext.shouldShowQueryRelatedButton;
}

I find that you must begin looking through the source of D2W to find all these 
hidden jewels.

Ted


On Jan 12, 2015, at 5:48 AM, Pierre Gilquin  wrote:

> Hi,
> 
> 
> I have a tomany relation very similar to the RentalHistory relation in Movie 
> DB (Customer ->> RentalHistory -> Movie).
> I created an Wonder D2W Application with my model and that's already very 
> good.
> 
> But the component used for the relation use 2 buttons Search and New.
> How can I get rid of the Search button as there is no meaning to transfer a 
> rental from a cutomer to an other ?
> 
> The New bouton is ok except I think that it should be "Add ...". How can I 
> change that ?
> 
> 
> 
> Thanks in advance
> 
> 
> Pierre
> 
> 
> 
> ___
> 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: D2w - toMany relation

2015-01-12 Thread Flavio Donadio
Pierre,


Try this simple rule (took me some time to find the first time I needed this):

100 : pageConfiguration like 'EditRelationshipEmbeddedRentalHistory' => 
shouldShowQueryRelatedButton = "false" 
[com.webobjects.directtoweb.BooleanAssignment]


Cheers,
Flavio

On 12/01/2015, at 08:48, Pierre Gilquin  wrote:

> Hi,
> 
> 
> I have a tomany relation very similar to the RentalHistory relation in Movie 
> DB (Customer ->> RentalHistory -> Movie).
> I created an Wonder D2W Application with my model and that's already very 
> good.
> 
> But the component used for the relation use 2 buttons Search and New.
> How can I get rid of the Search button as there is no meaning to transfer a 
> rental from a cutomer to an other ?
> 
> The New bouton is ok except I think that it should be "Add ...". How can I 
> change that ?
> 
> 
> 
> Thanks in advance
> 
> 
> Pierre
> 
> 
> 
> ___
> 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/flavio%40donadio.com.br
> 
> This email sent to fla...@donadio.com.br


 ___
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

D2w - toMany relation

2015-01-12 Thread Pierre Gilquin

Hi,


I have a tomany relation very similar to the RentalHistory relation in 
Movie DB (Customer ->> RentalHistory -> Movie).
I created an Wonder D2W Application with my model and that's already 
very good.


But the component used for the relation use 2 buttons Search and New.
How can I get rid of the Search button as there is no meaning to 
transfer a rental from a cutomer to an other ?


The New bouton is ok except I think that it should be "Add ...". How can 
I change that ?




Thanks in advance


Pierre



___
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: D2W - How to turn of batching in EmbeddedLists

2014-12-22 Thread Flavio Donadio
David and list,


Two years later, I got the answer:

100 : (pageConfiguration like 'EditRelationshipEmbedded*' or pageConfiguration 
like 'ListEmbedded*') => showBottomBatchCount = "false" 
[com.webobjects.directtoweb.BooleanAssignment]

100 : (pageConfiguration like 'EditRelationshipEmbedded*' or pageConfiguration 
like 'ListEmbedded*') => showBottomBatchNavBar = "false" 
[com.webobjects.directtoweb.BooleanAssignment]


Cheers,
Flavio


On 17/11/2012, at 17:02, Flavio Donadio  wrote:

> David,
> 
> 
> Sorry for taking so long. I got terribly ill and couldn't even code for the 
> last few days. I'm all right now...
> 
> I tried exactly what you suggested, but got a crash, something about casting 
> an int to string. Changed the class to com.webobjects.directtoweb.Assignment 
> and it works.
> 
> But... the navigation ("x items : show [x] items") is still there. I wish I 
> could make it go away, but don't know how.
> 
> 
> Regards,
> Flavio
> 
> On 13/11/2012, at 15:52, David LeBer wrote:
> 
>> Flavio,
>> 
>> Have you tried:
>> 
>> 100 : pageConfiguration = 'ListEmbeddedWhatever' => defaultBatchSize = "0" 
>> [com.webobjects.directtoweb.BooleanAssignment]
>> 
>> On 2012-11-13, at 12:29 PM, Flavio Donadio  wrote:
>> 
>>> Hello, all!
>>> 
>>> 
>>> I can't find this anywhere on the net: how can I turn off batching in 
>>> EmbeddedLists (ListEmbedded*, EditRelationshipEmbedded*, etc.)?
>>> 
>>> I tried several rules, but I can't make it work...
>>> 
>>> 
>>> Regards,
>>> Flavio
>>> 
>>> 
>>> 
>>> ___
>>> 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/dleber_wodev%40codeferous.com
>>> 
>>> This email sent to dleber_wo...@codeferous.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: dependent lists in D2W

2014-12-21 Thread Fabian Peters
Hi Ted,

You can use Ramsey's AjaxNotifcationCenter for this. The code has moved here: 
<https://github.com/wocommunity/wonder/tree/master/Archives/Frameworks/AjaxLook>

You'll need a few rules, along these lines:

80 : propertyChangedDelegate != null => aboveDisplayPropertyKeys = 
("ajaxNotificationCenter") [com.webobjects.directtoweb.Assignment]
100 : ((task = 'create' or task = 'edit') and entity.name = 'Person') => 
propertyChangedDelegate = 
"your.app.d2w.delegates.PersonPropertyChangedDelegate" 
[ERDDelayedObjectCreationAssignment]
120 : ((task = 'create' or task = 'edit') and entity.name = 'Person' and 
(propertyKey = 'isFemale' or propertyKey = 'salutation')) => componentName = 
"AjaxObservingSwitch" [com.webobjects.directtoweb.Assignment]
100 : ((task = 'create' or task = 'edit') and entity.name = 'Person' and 
propertyKey = 'isFemale') => customComponentName = "ERD2WCustomEditBoolean" 
[com.webobjects.directtoweb.Assignment]
100 : ((task = 'create' or task = 'edit') and entity.name = 'Person' and 
propertyKey = 'salutation') => customComponentName = "ERD2WEditString" 
[com.webobjects.directtoweb.Assignment]

And you need to implement PropertyChangedDelegate to tell the notification 
center which containers should be updated:

public class PersonPropertyChangedDelegate implements PropertyChangedDelegate {

public NSArray propertyChanged(D2WContext context) {
String prop = context.propertyKey();
if (Person.ATTRIBUTE_isFemale.equals(prop)) {
return new NSArray(Person.ATTRIBUTE_salutation);
}
return NSArray.emptyArray();
}

}

Make sure your page component has the "aboveDisplayPropertyKeys" section.

HTH, Fabian

P.S.: Why was the code moved to the archives and not integrated into 
ERDirectToWeb?

Am 21.12.2014 um 03:33 schrieb Theodore Petrosky :

> i have these relationships
> 
> PersonBook toOne Book toOne Show
> PersonBook toOne Person
> 
> When I am creating a new personBook, I want a Show popup that lists all 
> shows. if I select the Show, the Book popup is given the short list of books 
> for that show.
> 
> So, with no Show selected the Book list would be quite long.
> 
> I am looking at the Ajax dependent popups and I have done this before in a 
> regular Wonder app, but never in D2W.
> 
> Is there a component to create this dependent popup setup in D2W?
> 
> Maybe I need to rethink the whole structure of the database.
> 
> Ted
> 
> ___
> 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/lists.fabian%40e-lumo.com
> 
> This email sent to lists.fab...@e-lumo.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

dependent lists in D2W

2014-12-20 Thread Theodore Petrosky
i have these relationships

PersonBook toOne Book toOne Show
PersonBook toOne Person

When I am creating a new personBook, I want a Show popup that lists all shows. 
if I select the Show, the Book popup is given the short list of books for that 
show.

So, with no Show selected the Book list would be quite long.

I am looking at the Ajax dependent popups and I have done this before in a 
regular Wonder app, but never in D2W.

Is there a component to create this dependent popup setup in D2W?

Maybe I need to rethink the whole structure of the database.

Ted

 ___
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: Ponder/D2W Format Date Output in my list.

2014-12-20 Thread James Cicenia
I changed the R2D2WDisplayDate to use dateFormat instead of formatter

Date: WOString {
//formatter = d2wContext.formatObject;
value = objectPropertyValue;
valueWhenEmpty = d2wContext.valueWhenEmpty;
dateformat = d2wContext.formatter;
}

worked for me

> On Dec 20, 2014, at 11:38 AM, Theodore Petrosky  wrote:
> 
> first I have never done a “like” on a propertyKey. But I suspect that 
> formatter, I would have expected "%Y-%m-%d”
> On Dec 20, 2014, at 12:24 PM, James Cicenia  wrote:
> 
>> Why doesn’t this work?
>> 
>> 
>> 200 : ((pageConfiguration like 'List*' or pageConfiguration like 
>> 'EditList*') and propertyKey like ‘*Dt') => formatter = "YY-MM-dd" 
>> [ERDDelayedKeyValueAssignment]
>> ___
>> 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: Ponder/D2W Format Date Output in my list.

2014-12-20 Thread Theodore Petrosky
first I have never done a “like” on a propertyKey. But I suspect that 
formatter, I would have expected "%Y-%m-%d”
On Dec 20, 2014, at 12:24 PM, James Cicenia  wrote:

> Why doesn’t this work?
> 
> 
> 200 : ((pageConfiguration like 'List*' or pageConfiguration like 'EditList*') 
> and propertyKey like ‘*Dt') => formatter = "YY-MM-dd" 
> [ERDDelayedKeyValueAssignment]
> ___
> 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

Ponder/D2W Format Date Output in my list.

2014-12-20 Thread James Cicenia
Why doesn’t this work?


200 : ((pageConfiguration like 'List*' or pageConfiguration like 'EditList*') 
and propertyKey like ‘*Dt') => formatter = "YY-MM-dd" 
[ERDDelayedKeyValueAssignment]
 ___
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: d2w add displayPropertyKeys in new ListPageInterface

2014-12-09 Thread Ramsey Gurley
No, that’s fine. However, with custom assignment you could put the rule in a 
framework and wouldn’t have to implement that method on your session in every 
app you build. You can also control caching properly using dependent keys.

100 : pageConfiguration = 'ListInstrumentFamily' => displayPropertyKeys = "” 
[MyAssignment]


On Dec 9, 2014, at 12:05 PM, Theodore Petrosky  wrote:

> Ramsey,
> 
> since displayPropertyKeys is looking for an array of strings is there a way 
> to do this. Where session.myDisplayKeys returns an array of strings.
> 
> 100 : pageConfiguration = 'ListInstrumentFamily' => displayPropertyKeys = 
> "session.myDisplayKeys" [com.webobjects.directtoweb.Assignment]
> 
> or does this also get one ‘stuck’?
> 
> Ted
> 
> On Dec 9, 2014, at 1:44 PM, James Cicenia  wrote:
> 
>> I have been able to change the displayProperties in code and have it 
>> successfully render.
>> 
>> Then again I think I am instantiating a new report each time.
>> 
>> 
>> 
>>> On Dec 9, 2014, at 11:54 AM, Ramsey Gurley  wrote:
>>> 
>>> You may want to avoid pushing the context like that. I’ve had some case 
>>> where I pushed the context on values typically set by rules and it resulted 
>>> in hard caching those values. No matter what other rules I had set, it was 
>>> stuck that way. If I need to do it in code, I do so via a custom rule 
>>> assignment.
>>> 
>>> On Dec 9, 2014, at 9:56 AM, James Cicenia  wrote:
>>> 
 Great -
 forgot about d2wContext()
 thanks
 
 
 
 
> On Dec 9, 2014, at 10:35 AM, Theodore Petrosky  wrote:
> 
> 
> this will do what you want, just create the array of strings that 
> represent the keys you want.
> 
> ((D2WPage) lpi).d2wContext().takeValueForKey(theArray, 
> "displayPropertyKeys”);
> 
> 
> 
> On Dec 9, 2014, at 11:25 AM, James Cicenia  wrote:
> 
>> 
>> How does one add the displayPropertKeys in code for a new 
>> ListPageInterface?
>> 
>> I could add it to the session and use a rule to grab it, but that 
>> doesn’t sound right.
>> 
>> Thanks
>> James
>> 
>> 
>> 
>> ___
>> 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/rgurley%40smarthealth.com
 
 This email sent to rgur...@smarthealth.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: d2w add displayPropertyKeys in new ListPageInterface

2014-12-09 Thread Theodore Petrosky
Ramsey,

since displayPropertyKeys is looking for an array of strings is there a way to 
do this. Where session.myDisplayKeys returns an array of strings.

100 : pageConfiguration = 'ListInstrumentFamily' => displayPropertyKeys = 
"session.myDisplayKeys" [com.webobjects.directtoweb.Assignment]

or does this also get one ‘stuck’?

Ted

On Dec 9, 2014, at 1:44 PM, James Cicenia  wrote:

> I have been able to change the displayProperties in code and have it 
> successfully render.
> 
> Then again I think I am instantiating a new report each time.
> 
> 
> 
>> On Dec 9, 2014, at 11:54 AM, Ramsey Gurley  wrote:
>> 
>> You may want to avoid pushing the context like that. I’ve had some case 
>> where I pushed the context on values typically set by rules and it resulted 
>> in hard caching those values. No matter what other rules I had set, it was 
>> stuck that way. If I need to do it in code, I do so via a custom rule 
>> assignment.
>> 
>> On Dec 9, 2014, at 9:56 AM, James Cicenia  wrote:
>> 
>>> Great -
>>> forgot about d2wContext()
>>> thanks
>>> 
>>> 
>>> 
>>> 
 On Dec 9, 2014, at 10:35 AM, Theodore Petrosky  wrote:
 
 
 this will do what you want, just create the array of strings that 
 represent the keys you want.
 
 ((D2WPage) lpi).d2wContext().takeValueForKey(theArray, 
 "displayPropertyKeys”);
 
 
 
 On Dec 9, 2014, at 11:25 AM, James Cicenia  wrote:
 
> 
> How does one add the displayPropertKeys in code for a new 
> ListPageInterface?
> 
> I could add it to the session and use a rule to grab it, but that doesn’t 
> sound right.
> 
> Thanks
> James
> 
> 
> 
> ___
> 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/rgurley%40smarthealth.com
>>> 
>>> This email sent to rgur...@smarthealth.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: d2w add displayPropertyKeys in new ListPageInterface

2014-12-09 Thread James Cicenia
I have been able to change the displayProperties in code and have it 
successfully render.

Then again I think I am instantiating a new report each time.



> On Dec 9, 2014, at 11:54 AM, Ramsey Gurley  wrote:
> 
> You may want to avoid pushing the context like that. I’ve had some case where 
> I pushed the context on values typically set by rules and it resulted in hard 
> caching those values. No matter what other rules I had set, it was stuck that 
> way. If I need to do it in code, I do so via a custom rule assignment.
> 
> On Dec 9, 2014, at 9:56 AM, James Cicenia  > wrote:
> 
>> Great -
>> forgot about d2wContext()
>> thanks
>> 
>> 
>> 
>> 
>>> On Dec 9, 2014, at 10:35 AM, Theodore Petrosky >> > wrote:
>>> 
>>> 
>>> this will do what you want, just create the array of strings that represent 
>>> the keys you want.
>>> 
>>> ((D2WPage) lpi).d2wContext().takeValueForKey(theArray, 
>>> "displayPropertyKeys”);
>>> 
>>> 
>>> 
>>> On Dec 9, 2014, at 11:25 AM, James Cicenia >> > wrote:
>>> 
 
 How does one add the displayPropertKeys in code for a new 
 ListPageInterface?
 
 I could add it to the session and use a rule to grab it, but that doesn’t 
 sound right.
 
 Thanks
 James
 
 
 
 ___
 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/rgurley%40smarthealth.com
>>  
>> 
>> 
>> This email sent to rgur...@smarthealth.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: d2w add displayPropertyKeys in new ListPageInterface

2014-12-09 Thread James Cicenia

Well if I use a custom rule assignment the custom rule still needs to get the 
array.
So wouldn’t it just be the same to stuff it in the Session which is what I did 
in the past but it didn’t seem right.





> On Dec 9, 2014, at 11:54 AM, Ramsey Gurley  wrote:
> 
> You may want to avoid pushing the context like that. I’ve had some case where 
> I pushed the context on values typically set by rules and it resulted in hard 
> caching those values. No matter what other rules I had set, it was stuck that 
> way. If I need to do it in code, I do so via a custom rule assignment.
> 
> On Dec 9, 2014, at 9:56 AM, James Cicenia  > wrote:
> 
>> Great -
>> forgot about d2wContext()
>> thanks
>> 
>> 
>> 
>> 
>>> On Dec 9, 2014, at 10:35 AM, Theodore Petrosky >> > wrote:
>>> 
>>> 
>>> this will do what you want, just create the array of strings that represent 
>>> the keys you want.
>>> 
>>> ((D2WPage) lpi).d2wContext().takeValueForKey(theArray, 
>>> "displayPropertyKeys”);
>>> 
>>> 
>>> 
>>> On Dec 9, 2014, at 11:25 AM, James Cicenia >> > wrote:
>>> 
 
 How does one add the displayPropertKeys in code for a new 
 ListPageInterface?
 
 I could add it to the session and use a rule to grab it, but that doesn’t 
 sound right.
 
 Thanks
 James
 
 
 
 ___
 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/rgurley%40smarthealth.com
>>  
>> 
>> 
>> This email sent to rgur...@smarthealth.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: d2w add displayPropertyKeys in new ListPageInterface

2014-12-09 Thread Ramsey Gurley
You may want to avoid pushing the context like that. I’ve had some case where I 
pushed the context on values typically set by rules and it resulted in hard 
caching those values. No matter what other rules I had set, it was stuck that 
way. If I need to do it in code, I do so via a custom rule assignment.

On Dec 9, 2014, at 9:56 AM, James Cicenia  wrote:

> Great -
> forgot about d2wContext()
> thanks
> 
> 
> 
> 
>> On Dec 9, 2014, at 10:35 AM, Theodore Petrosky  wrote:
>> 
>> 
>> this will do what you want, just create the array of strings that represent 
>> the keys you want.
>> 
>> ((D2WPage) lpi).d2wContext().takeValueForKey(theArray, 
>> "displayPropertyKeys”);
>> 
>> 
>> 
>> On Dec 9, 2014, at 11:25 AM, James Cicenia  wrote:
>> 
>>> 
>>> How does one add the displayPropertKeys in code for a new ListPageInterface?
>>> 
>>> I could add it to the session and use a rule to grab it, but that doesn’t 
>>> sound right.
>>> 
>>> Thanks
>>> James
>>> 
>>> 
>>> 
>>> ___
>>> 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/rgurley%40smarthealth.com
> 
> This email sent to rgur...@smarthealth.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

  1   2   3   4   5   6   7   8   9   10   >