ERXNSLogLog4jBridge

2012-05-17 Thread Mai Nguyen
Hello List,
I wonder if someone can explain the following property and its usage?
er.extensions.ERXNSLogLog4jBridge.ignoreNSLogSettings
Whichever value I used (true or false), the NSLog output is not directed to a 
log4J appender as it should.
My application does not use ERXApplication (not a Wonder application) so I use 
the traditional approach to set up log4j, something like:
 
// Log4J initialization

final URL log4jFile =

resourceManager().pathURLForResourceNamed("log4j.properties",
null, null);
System.out.println("Log4j file (from .woa): " + log4jFile);
PropertyConfigurator.configure(log4jFile);
final Logger appLog = Logger.getLogger(Application.class);
 
// Setting up logging for NSLog
final NSLog.Log4JLogger debug =
new NSLog.Log4JLogger(appLog, 
NSLog.DebugLevelDetailed);

final NSLog.Log4JLogger err =
new NSLog.Log4JLogger(appLog, 
NSLog.DebugLevelCritical);

final NSLog.Log4JLogger out =
new NSLog.Log4JLogger(appLog, 
NSLog.DebugLevelInformational);

NSLog.setErr(err); // DOES NOT WORK, NSLog output is not 
redirected to log4J
NSLog.setOut(out); // DOES NOT WORK, NSLog output is not 
redirected to log4J
NSLog.setDebug(debug);// DOES NOT WORK, NSLog output is not 
redirected to log4J

appLog.debug("Log4j has been initialized");


Thanks for your help,

-mai

 ___
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: Or qualifier (including a many-to-many > 'containsObject') give wrong    results

2012-05-17 Thread Theodore Petrosky
Mark,

I may be looking at the wrong, but don't you want an 'and' qualifier not an 
'or'?

Ted

> Date: Thu, 17 May 2012 18:17:58 +0100
> From: Mark Gowdy 
> To: WebObjects webobjects-dev 
> Subject: Or qualifier (including a many-to-many
> 'containsObject') give
>     wrong    results
> Message-ID: <8947bdf0-6370-48f5-9473-c0c206fa3...@mac.com>
> Content-Type: text/plain; charset="utf-8"
> 
> Hi, 
> 
> I have a 'Media' entity, and a 'Category' entity.
> I need to create a qualifier that queries on 2 'to-one'
> relationships, as well as on a single 'to-many'.
> 
> 
> These are some test qualifiers and the number of distinct
> results they got:
> 
> EOQualifier q1 =
> Media.PRIMARY_CATEGORY.eq(cat).or(Media.SECONDARY_CATEGORY.eq(cat));
> // result count = 16 (correct)
> //
> EOQualifier q2 = Media.OTHER_CATEGORIES.containsObject(cat);
> // result count = 11 (correct)
> //
> EOQualifier q3 =
> Media.PRIMARY_CATEGORY.eq(cat).or(Media.SECONDARY_CATEGORY.eq(cat)).or(Media.OTHER_CATEGORIES.containsObject(cat));
> // result count = 15 (WRONG, should be 27)
> //
> // Another way
> EOOrQualifier q4 = new EOOrQualifier(new NSArray( new
> EOQualifier[] {q1,q2 } ));  // result count = 15
> (WRONG)
> 
> 
> In the past, I worked around the problem by doing two
> separate fetches and combining the results.  But I
> would like to do it in one.
> So, any ideas how can I get 'q3' to work?
> 
> The main reason for fixing this, is that I need to combine a
> few of these with a larger AND qualifier, and some of the
> intermediary qualifiers are likely to have LOTS of results.
> 
> Regards, 
> 
> Mark
> 
> 
>

 ___
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: Or qualifier (including a many-to-many 'containsObject') give wrong results

2012-05-17 Thread Chuck Hill
What are the three SQL statements being generated.  That is usually where to 
start looking.

Chuck


On 2012-05-17, at 10:17 AM, Mark Gowdy wrote:

> Hi, 
> 
> I have a 'Media' entity, and a 'Category' entity.
> I need to create a qualifier that queries on 2 'to-one' relationships, as 
> well as on a single 'to-many'.
> 
> 
> These are some test qualifiers and the number of distinct results they got:
> 
> EOQualifier q1 = 
> Media.PRIMARY_CATEGORY.eq(cat).or(Media.SECONDARY_CATEGORY.eq(cat)); // 
> result count = 16 (correct)
> //
> EOQualifier q2 = Media.OTHER_CATEGORIES.containsObject(cat); // result count 
> = 11 (correct)
> //
> EOQualifier q3 = 
> Media.PRIMARY_CATEGORY.eq(cat).or(Media.SECONDARY_CATEGORY.eq(cat)).or(Media.OTHER_CATEGORIES.containsObject(cat));
>  // result count = 15 (WRONG, should be 27)
> //
> // Another way
> EOOrQualifier q4 = new EOOrQualifier(new NSArray( new EOQualifier[] {q1,q2 } 
> ));  // result count = 15 (WRONG)
> 
> 
> In the past, I worked around the problem by doing two separate fetches and 
> combining the results.  But I would like to do it in one.
> So, any ideas how can I get 'q3' to work?
> 
> The main reason for fixing this, is that I need to combine a few of these 
> with a larger AND qualifier, and some of the intermediary qualifiers are 
> likely to have LOTS of results.
> 
> Regards, 
> 
> Mark
> 
> 
> ___
> 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/chill%40global-village.net
> 
> This email sent to ch...@global-village.net

-- 
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall 
knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/gvc/practical_webobjects










smime.p7s
Description: S/MIME cryptographic signature
 ___
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


Or qualifier (including a many-to-many 'containsObject') give wrong results

2012-05-17 Thread Mark Gowdy
Hi, 

I have a 'Media' entity, and a 'Category' entity.
I need to create a qualifier that queries on 2 'to-one' relationships, as well 
as on a single 'to-many'.


These are some test qualifiers and the number of distinct results they got:

EOQualifier q1 = 
Media.PRIMARY_CATEGORY.eq(cat).or(Media.SECONDARY_CATEGORY.eq(cat)); // result 
count = 16 (correct)
//
EOQualifier q2 = Media.OTHER_CATEGORIES.containsObject(cat); // result count = 
11 (correct)
//
EOQualifier q3 = 
Media.PRIMARY_CATEGORY.eq(cat).or(Media.SECONDARY_CATEGORY.eq(cat)).or(Media.OTHER_CATEGORIES.containsObject(cat));
 // result count = 15 (WRONG, should be 27)
//
// Another way
EOOrQualifier q4 = new EOOrQualifier(new NSArray( new EOQualifier[] {q1,q2 } 
));  // result count = 15 (WRONG)


In the past, I worked around the problem by doing two separate fetches and 
combining the results.  But I would like to do it in one.
So, any ideas how can I get 'q3' to work?

The main reason for fixing this, is that I need to combine a few of these with 
a larger AND qualifier, and some of the intermediary qualifiers are likely to 
have LOTS of results.

Regards, 

Mark


 ___
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: maven deploy

2012-05-17 Thread Pascal Robert
We really should move the REST calls into wotaskd so that we don't even need 
Monitor to manage apps from Jenkins or Maven.

> Hi Ron,
> 
> There is no special tool for deploying WO applications with Maven. You have 
> to manually download the produced artifacts (yourapp.woapplication.tar.gz and 
>  yourapp.wowebserverresources.tar.gz) from your repository and uncompress it 
> in the right folders on your server.
> 
> There is an idea to create a maven-javamonitor-plugin capable of deploying WO 
> applications, but I' still haven't found time to work on it.
> 
> Cheers,
> 
> Henrique
> 
> On 17/05/2012, at 07:50, Ron X wrote:
> 
>> hi,
>> is any page on wiki how to deploy application with Maven?
>> or can anybody describe this process?
>> 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/hprange%40gmail.com
>> 
>> This email sent to hpra...@gmail.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/probert%40macti.ca
> 
> This email sent to prob...@macti.ca


 ___
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: AjaxUpdateContainer Empty Reponse

2012-05-17 Thread Henrique Gomes
Looking at your code; are you sure $regStatusExists is true? If it's null or 
false the container will be empty.
You can place an  after the   just to show sometting in that 
case.

HG

On May 16, 2012, at 3:39 PM, Pranathi Chepur wrote:

> Hi,
> 
> I see some weird behavior with AjaxUpdateContainer which is being triggered 
> by a AjaxObserveField as shown in the code below. Container is updated, but 
> the response is empty. This makes the UI field vanish all of the sudden. This 
> behavior is not consistent and changes each time. Anyone experiencing similar 
> issue? I am using Wonder_5_54_11763 version.
> 
> Thanks for any help
> Pranathi  
> 
> 
> Registration Approval 
> Status
>   list="$regApprovalStatusList" item="$regApprovalStatusItem" 
> displayString="$regApprovalStatusItem.displayName" id="regtestid" 
> selection="$selectedRegApprovalStatus"/>
> updateContainerID="regYearContainer" fullSubmit="$false"/>
>  
>   
>   class="dataLabel">   
> 
>
> displayString="$year.yearString" selection="$regYearSelected" />
>
>
>  
> 
> ___
> 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%40farol.pt
> 
> This email sent to li...@farol.pt


 ___
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: maven deploy

2012-05-17 Thread Henrique Prange
Hi Ron,

There is no special tool for deploying WO applications with Maven. You have to 
manually download the produced artifacts (yourapp.woapplication.tar.gz and  
yourapp.wowebserverresources.tar.gz) from your repository and uncompress it in 
the right folders on your server.

There is an idea to create a maven-javamonitor-plugin capable of deploying WO 
applications, but I' still haven't found time to work on it.

Cheers,

Henrique

On 17/05/2012, at 07:50, Ron X wrote:

> hi,
> is any page on wiki how to deploy application with Maven?
> or can anybody describe this process?
> 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/hprange%40gmail.com
> 
> This email sent to hpra...@gmail.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: Multiple foreign keys pointing to the same table

2012-05-17 Thread Pavan Kumar Jayam
Hi, 

I resolved the issue by setting up the "deferrable initially deferred" for the 
foreign key

- Pavan.


On 14-May-2012, at 5:01 PM, Mark Gowdy wrote:

> Read the replies to this posting.  It should help.
> 
> http://markmail.org/message/ndp7jgdfjwfnouwa#query:webobject%20many%20to%20many%20tutorial+page:1+mid:ejbgzqebozximrda+state:results
> 
>> EOModeler can do this automatically for you. 1)Click on the model so you can 
>> see the model in list mode. 2)Select the two entities you want to join 
>> (Command Click on Mac Control Click on Windows) 3)Menu->Property->Join In 
>> Many-to-Many
>> Et Voilà!
>> Just fill the missing info in the newly created entity. Also I leave the 
>> correlation object to be of type EOGenericRecord (no need for create a 
>> custom class).
>> 
> 
> Mark
> 
> Sent from my iPhone
> 
> On 14 May 2012, at 12:00, Pavan Kumar Jayam 
>  wrote:
> 
>> Hi Ralf,
>> 
>> Thanks for the suggestion and I will verify marking as deferrable constraint.
>> 
>> And I followed another approach of storing the details in a join table, I am 
>> encountering a null pointer exception while saving the data. Displayed all 
>> the objects in the context by using "context.insertedObjects()" and I can 
>> see all the objects and data in console.
>> 
>> Can you suggest me where I am going wrong.
>> 
>> Regards,
>> Pavan.
>> 
>> 
>> 
>> On 14-May-2012, at 3:44 PM, Ralf Schuchardt wrote:
>> 
>>> Hi Pavan,
>>> 
>>> the order of inserts of objects in a transaction is not specified. I think 
>>> you see the insert of a row in table1 before the depending row in table2 
>>> causing the error.
>>> You should mark the foreign keys as "deferrable initially deferred" to 
>>> postpone the integrity check to the end of the transaction, when all rows 
>>> are inserted.
>>> 
>>> Regards,
>>> Ralf
>>> 
>>> Am 14.05.2012 um 10:57 schrieb Pavan Kumar Jayam:
>>> 
 Hi List,
 
 I want to have multiple foreign keys in Table1 representing same table 
 Table2.
 
 Eg: Employee table have a Department table primary key as foreign key, now 
 I want to have another foreign key in Employee table representing 
 Department table. Which means an employee can be a member of two 
 departments.
 
 I have foreign key in table1 represents table 2 primary key, also I want 
 to have another foreign key in table 1 to represent the same table(table 
 2).
 
 Both the table 1 and table 2 records are creating in the same editing 
 context and saving the editing context changes with ec.saveChanges().
 
 With one foreign key I am able to save table1 and table2 records, but when 
 I am saving the editing context with multiple foreign keys of same table I 
 am getting error "error code: 2291 == msg ORA-02291: integrity 
 constraint() violated - parent key not found".
 
 Please advise how to implement it with Oracle 11 and WO 5.4.3.
 
 Regards,
 Pavan.
 
 ___
 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/rasc%40gmx.de
 
 This email sent to r...@gmx.de
>>> 
>>> 
>>> 
>> 
>> 
>> 
>> ___
>> 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/gowdy%40mac.com
>> 
>> This email sent to go...@mac.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

Draggable And Droppable Error in IE when the Droppable list count is < 2

2012-05-17 Thread Pavan Kumar Jayam
Hi List,

I am using Project Wonder for Ajax actions in my project with WO 5.4.3.

When I implement Draggable and Droppable in my application it works fine with 
safari and Chrome browsers.

But when I verified the same functionality in IE 7 or 8 it is not working only 
when the droppable list is less than 2 or empty. It is working when the 
Droppable list contains two or more items.

The code follows like:

---HTML Code-







    










    










-WOD Code---

DragItem : AjaxDraggable {
class = "draggableItem";
revert = false;
draggableObject = repetitionDragItem;
}

DragItemTitle : WOString {
value = repetitionDragItem.text;
escapeHTML = repetitionDragItem.escapeHTML;
}

LeftDropBlock : AjaxDroppable {
id = "leftDropBlock";
updateContainerID = "Container1";
action = droppedOnLeft;
droppedObject = droppedLeftObject;
onComplete = "function(request) { new 
Effect.Highlight('leftDropBlock'); new Effect.Highlight('rightDropBlock'); }";
}

RightDropBlock : AjaxDroppable {
id = "rightDropBlock";
updateContainerID = "MyContainer";
action = droppedOnRight;
droppedObject = droppedRightObject;
onComplete = "function(request) { new 
Effect.Highlight('leftDropBlock'); new Effect.Highlight('rightDropBlock');}";
}

LeftItemRepetition : WORepetition {
id="leftList";
list = leftList;
item = repetitionDragItem;
}

RightItemRepetition : WORepetition {
id = "rightList";
list = rightList;
item = repetitionDragItem;
}
 ___
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