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


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


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

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

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 li...@thetimmy.com 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 GSEIS
 
 
 
 
 ___
 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 GSEIS


 On May 13, 2015, at 1:15 PM, Theodore Petrosky tedp...@yahoo.com 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 li...@thetimmy.com 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 GSEIS
 
 
 
 
 ___
 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
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 li...@thetimmy.com 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 GSEIS
 
 
 On May 13, 2015, at 1:15 PM, Theodore Petrosky tedp...@yahoo.com 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 li...@thetimmy.com 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 GSEIS
 
 
 
 
 ___
 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 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 li...@thetimmy.com 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 GSEIS
 
 
 On May 13, 2015, at 1:15 PM, Theodore Petrosky tedp...@yahoo.com 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 li...@thetimmy.com 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 GSEIS
 
 
 
 
 ___
 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 GSEIS

 On May 13, 2015, at 1:56 PM, Ramsey Gurley rgur...@smarthealth.com 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 li...@thetimmy.com 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 GSEIS
 
 
 On May 13, 2015, at 1:15 PM, Theodore Petrosky tedp...@yahoo.com 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 li...@thetimmy.com 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 GSEIS
 
 
 
 
 ___
 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
I was referring to Tim’s second attempt, though your rule works as well.

On May 13, 2015, at 4:44 PM, Theodore Petrosky tedp...@yahoo.com 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 rgur...@smarthealth.com 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 li...@thetimmy.com 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 GSEIS
 
 
 On May 13, 2015, at 1:15 PM, Theodore Petrosky tedp...@yahoo.com 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 li...@thetimmy.com 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 GSEIS
 
 
 
 
 ___
 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 rgur...@smarthealth.com 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 li...@thetimmy.com 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 GSEIS
 
 
 On May 13, 2015, at 1:15 PM, Theodore Petrosky tedp...@yahoo.com 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 li...@thetimmy.com 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 GSEIS
 
 
 
 
 ___
 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 - 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


webobject name = IsEntityWritable
  liwebobject name = NewButton //li
/webobject

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 pgilq...@citycable.ch 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

webobject name = IsEntityWritable
  liwebobject name = NewButton //li
/webobject

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 pgilq...@citycable.ch 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 pgilq...@citycable.ch:

 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 
 pgilq...@citycable.ch
  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 pgilq...@citycable.ch 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 pgilq...@citycable.ch 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 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-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 pgilq...@citycable.ch:

 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-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 pgilq...@citycable.ch:


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: 
com.webobjects.directtoweb.BooleanAssignment 0xdf824a 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 pgilq...@citycable.ch 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: 
com.webobjects.directtoweb.BooleanAssignment 0xdf824a 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 pgilq...@citycable.ch 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-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 pgilq...@citycable.ch:

 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: 
 com.webobjects.directtoweb.BooleanAssignment 0xdf824a 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 pgilq...@citycable.ch 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-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 pgilq...@citycable.ch 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 pgilq...@citycable.ch 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 - 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 fla...@donadio.com.br 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 fla...@donadio.com.br 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: d2w add displayPropertyKeys in new ListPageInterface

2014-12-09 Thread Theodore Petrosky

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 ja...@jimijon.com 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/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
Great -
forgot about d2wContext()
thanks




 On Dec 9, 2014, at 10:35 AM, Theodore Petrosky tedp...@yahoo.com 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 ja...@jimijon.com 
 mailto:ja...@jimijon.com 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 
 mailto:Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com 
 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 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 ja...@jimijon.com wrote:

 Great -
 forgot about d2wContext()
 thanks
 
 
 
 
 On Dec 9, 2014, at 10:35 AM, Theodore Petrosky tedp...@yahoo.com 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 ja...@jimijon.com 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 rgur...@smarthealth.com 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 ja...@jimijon.com 
 mailto:ja...@jimijon.com wrote:
 
 Great -
 forgot about d2wContext()
 thanks
 
 
 
 
 On Dec 9, 2014, at 10:35 AM, Theodore Petrosky tedp...@yahoo.com 
 mailto:tedp...@yahoo.com 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 ja...@jimijon.com 
 mailto:ja...@jimijon.com 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 
 mailto:Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com 
 https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com
 
 This email sent to tedp...@yahoo.com mailto:tedp...@yahoo.com
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
 mailto:Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com
  
 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 rgur...@smarthealth.com 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 ja...@jimijon.com 
 mailto:ja...@jimijon.com wrote:
 
 Great -
 forgot about d2wContext()
 thanks
 
 
 
 
 On Dec 9, 2014, at 10:35 AM, Theodore Petrosky tedp...@yahoo.com 
 mailto:tedp...@yahoo.com 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 ja...@jimijon.com 
 mailto:ja...@jimijon.com 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 
 mailto:Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com 
 https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com
 
 This email sent to tedp...@yahoo.com mailto:tedp...@yahoo.com
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
 mailto:Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com
  
 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 ja...@jimijon.com 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 rgur...@smarthealth.com 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 ja...@jimijon.com wrote:
 
 Great -
 forgot about d2wContext()
 thanks
 
 
 
 
 On Dec 9, 2014, at 10:35 AM, Theodore Petrosky tedp...@yahoo.com 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 ja...@jimijon.com 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
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 tedp...@yahoo.com 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 ja...@jimijon.com 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 rgur...@smarthealth.com 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 ja...@jimijon.com wrote:
 
 Great -
 forgot about d2wContext()
 thanks
 
 
 
 
 On Dec 9, 2014, at 10:35 AM, Theodore Petrosky tedp...@yahoo.com 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 ja...@jimijon.com 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 propertyKey question

2014-11-14 Thread Chuck Hill
Key vs KeyPath?



On 2014-11-14, 1:41 PM, James Cicenia wrote:

I have an App object.

I have a method in App:
  public AppConfigIOS iosAppConfig(){
   //lazily create an instance of AppConfigIOS
}


how come I get an error in my rule for tabSectionContents
with:

iosAppConfig.certPassword

It says lookup of unknown key:
com.pp.eos.App 0x5b5fbbd7 valueForKey(): lookup of unknown key: 
'iosAppConfig.certFileAttachment'

It is there and it is public. Cannot tabSections use key paths?

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/archive%40mail-archive.com

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

Re: D2W Tiered Navigation

2014-11-10 Thread Flavio Donadio
Ramsey and Ted,


Thanks a lot for the help. I've found the Generate Bundles checkbox and 
unchecked it. It's working now!


Cheers,
Flavio

On 07/11/2014, at 14:13, Ramsey Gurley rgur...@smarthealth.com wrote:

 What Ted said
 
 http://wiki.wocommunity.org/display/documentation/Configuring+Rule+Modeler?src=search
 
 
 On Nov 7, 2014, at 6:30 AM, Theodore Petrosky tedp...@yahoo.com wrote:
 
 and an addendum to that is, that RuleModeler has to be started after eclipse 
 and you must tell RuleModeler the password for WOLips server.
 
 
 
 On Nov 7, 2014, at 8:28 AM, Theodore Petrosky tedp...@yahoo.com wrote:
 
 what about the WOLips server in WOLips preferences? it has to be turned on.
 
 
 On Nov 7, 2014, at 8:27 AM, Flavio Donadio fla...@donadio.com.br wrote:
 
 Hello, all...
 
 
 Does anyone have any other idea why checking Builds Automatically in the 
 Project menu isn't working for me?
 
 Theodore is right: the rules defining navigationState are needed. But 
 every time I change user.d2wmodel, I have to clean the project and build 
 it again.
 
 If my memory is right, just clicking Clear D2W Cache (on the 
 ERD2WDebugFlags box on the bottom right of the pages) used to apply new 
 rules...
 
 
 Cheers,
 Flavio
 
 On 06/11/2014, at 17:32, Flavio Donadio fla...@donadio.com.br wrote:
 
 Theodore,
 
 
 It's checked. :(
 
 
 Cheers,
 Flavio
 
 On 06/11/2014, at 17:27, Theodore Petrosky tedp...@yahoo.com wrote:
 
 sounds like the “Builds Automatically” selection wasn’t checked. For 
 most of the magic to happen, Builds Automatically must be selected under 
 the Project menu.
 
 Ted
 
 On Nov 6, 2014, at 2:15 PM, Flavio Donadio fla...@donadio.com.br wrote:
 
 Theodore,
 
 
 Cleaned the project, built it again... Worked.
 
 I swore I had done that before... I mean, a BUNCH of times...
 
 
 Cheers,
 Flavio
 
 On 06/11/2014, at 17:07, Flavio Donadio fla...@donadio.com.br wrote:
 
 Theodore,
 
 
 Just tried it again, the way you said. Still doesn't work.
 
 Also, when I tried to use direct acion names (instead of actions), I 
 got a page with Access denied on it.
 
 
 Cheers,
 Flavio
 
 
 On 06/11/2014, at 16:49, Theodore Petrosky tedp...@yahoo.com wrote:
 
 they don’t show up because you need to set rules
 
 100 : pageConfiguration like ‘*Product*' = navigationState = 
 “Products [com.webobjects.directtoweb.Assignment]
 
 be very careful with the plurals and such. Names must match exactly.
 
 Ted
 
 
 On Nov 6, 2014, at 1:43 PM, Flavio Donadio fla...@donadio.com.br 
 wrote:
 
 Hello, all!
 
 
 Here I come again!
 
 This time, I am having the same problem Pascal had back in June. 
 Please, check the Can't see the tabs in D2W app thread... Which 
 means... My tiered navigation is not working. The subtabs don't 
 show up.
 
 Here's my NavigationMenu.plist:
 
 (
  {
  name = Root;
  directActionClass = DirectAction;
  directActionName = default;
  children = (Products);
  },
  {
  name = Products;
  action = session.navController.listProductsAction;
  children = (ListProduct,CreateProduct);
 },
 {
  name = ListProduct;
  action = session.navController.listProductsAction;
 },
 {
  name = CreateProduct;
  action = session.navController.createProductAction;
 }
 )
 
 I tried all the solutions suggested by Ramsey Gurley, but still... 
 No dice.
 
 
 Cheers,
 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/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/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/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 Tiered Navigation

2014-11-07 Thread Flavio Donadio
Hello, all...


Does anyone have any other idea why checking Builds Automatically in the 
Project menu isn't working for me?

Theodore is right: the rules defining navigationState are needed. But every 
time I change user.d2wmodel, I have to clean the project and build it again.

If my memory is right, just clicking Clear D2W Cache (on the 
ERD2WDebugFlags box on the bottom right of the pages) used to apply new 
rules...


Cheers,
Flavio

On 06/11/2014, at 17:32, Flavio Donadio fla...@donadio.com.br wrote:

 Theodore,
 
 
 It's checked. :(
 
 
 Cheers,
 Flavio
 
 On 06/11/2014, at 17:27, Theodore Petrosky tedp...@yahoo.com wrote:
 
 sounds like the “Builds Automatically” selection wasn’t checked. For most of 
 the magic to happen, Builds Automatically must be selected under the Project 
 menu.
 
 Ted
 
 On Nov 6, 2014, at 2:15 PM, Flavio Donadio fla...@donadio.com.br wrote:
 
 Theodore,
 
 
 Cleaned the project, built it again... Worked.
 
 I swore I had done that before... I mean, a BUNCH of times...
 
 
 Cheers,
 Flavio
 
 On 06/11/2014, at 17:07, Flavio Donadio fla...@donadio.com.br wrote:
 
 Theodore,
 
 
 Just tried it again, the way you said. Still doesn't work.
 
 Also, when I tried to use direct acion names (instead of actions), I got a 
 page with Access denied on it.
 
 
 Cheers,
 Flavio
 
 
 On 06/11/2014, at 16:49, Theodore Petrosky tedp...@yahoo.com wrote:
 
 they don’t show up because you need to set rules
 
 100 : pageConfiguration like ‘*Product*' = navigationState = “Products 
 [com.webobjects.directtoweb.Assignment]
 
 be very careful with the plurals and such. Names must match exactly.
 
 Ted
 
 
 On Nov 6, 2014, at 1:43 PM, Flavio Donadio fla...@donadio.com.br wrote:
 
 Hello, all!
 
 
 Here I come again!
 
 This time, I am having the same problem Pascal had back in June. Please, 
 check the Can't see the tabs in D2W app thread... Which means... My 
 tiered navigation is not working. The subtabs don't show up.
 
 Here's my NavigationMenu.plist:
 
 (
  {
  name = Root;
  directActionClass = DirectAction;
  directActionName = default;
  children = (Products);
  },
  {
  name = Products;
  action = session.navController.listProductsAction;
  children = (ListProduct,CreateProduct);
 },
 {
  name = ListProduct;
  action = session.navController.listProductsAction;
 },
 {
  name = CreateProduct;
  action = session.navController.createProductAction;
 }
 )
 
 I tried all the solutions suggested by Ramsey Gurley, but still... No 
 dice.
 
 
 Cheers,
 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/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/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 Tiered Navigation

2014-11-07 Thread Theodore Petrosky
what about the WOLips server in WOLips preferences? it has to be turned on.


On Nov 7, 2014, at 8:27 AM, Flavio Donadio fla...@donadio.com.br wrote:

 Hello, all...
 
 
 Does anyone have any other idea why checking Builds Automatically in the 
 Project menu isn't working for me?
 
 Theodore is right: the rules defining navigationState are needed. But every 
 time I change user.d2wmodel, I have to clean the project and build it again.
 
 If my memory is right, just clicking Clear D2W Cache (on the 
 ERD2WDebugFlags box on the bottom right of the pages) used to apply new 
 rules...
 
 
 Cheers,
 Flavio
 
 On 06/11/2014, at 17:32, Flavio Donadio fla...@donadio.com.br wrote:
 
 Theodore,
 
 
 It's checked. :(
 
 
 Cheers,
 Flavio
 
 On 06/11/2014, at 17:27, Theodore Petrosky tedp...@yahoo.com wrote:
 
 sounds like the “Builds Automatically” selection wasn’t checked. For most 
 of the magic to happen, Builds Automatically must be selected under the 
 Project menu.
 
 Ted
 
 On Nov 6, 2014, at 2:15 PM, Flavio Donadio fla...@donadio.com.br wrote:
 
 Theodore,
 
 
 Cleaned the project, built it again... Worked.
 
 I swore I had done that before... I mean, a BUNCH of times...
 
 
 Cheers,
 Flavio
 
 On 06/11/2014, at 17:07, Flavio Donadio fla...@donadio.com.br wrote:
 
 Theodore,
 
 
 Just tried it again, the way you said. Still doesn't work.
 
 Also, when I tried to use direct acion names (instead of actions), I got 
 a page with Access denied on it.
 
 
 Cheers,
 Flavio
 
 
 On 06/11/2014, at 16:49, Theodore Petrosky tedp...@yahoo.com wrote:
 
 they don’t show up because you need to set rules
 
 100 : pageConfiguration like ‘*Product*' = navigationState = “Products 
 [com.webobjects.directtoweb.Assignment]
 
 be very careful with the plurals and such. Names must match exactly.
 
 Ted
 
 
 On Nov 6, 2014, at 1:43 PM, Flavio Donadio fla...@donadio.com.br wrote:
 
 Hello, all!
 
 
 Here I come again!
 
 This time, I am having the same problem Pascal had back in June. 
 Please, check the Can't see the tabs in D2W app thread... Which 
 means... My tiered navigation is not working. The subtabs don't show 
 up.
 
 Here's my NavigationMenu.plist:
 
 (
 {
 name = Root;
 directActionClass = DirectAction;
 directActionName = default;
 children = (Products);
 },
 {
 name = Products;
 action = session.navController.listProductsAction;
 children = (ListProduct,CreateProduct);
 },
 {
 name = ListProduct;
 action = session.navController.listProductsAction;
 },
 {
 name = CreateProduct;
 action = session.navController.createProductAction;
 }
 )
 
 I tried all the solutions suggested by Ramsey Gurley, but still... No 
 dice.
 
 
 Cheers,
 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/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/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 Tiered Navigation

2014-11-07 Thread Theodore Petrosky
and an addendum to that is, that RuleModeler has to be started after eclipse 
and you must tell RuleModeler the password for WOLips server.



On Nov 7, 2014, at 8:28 AM, Theodore Petrosky tedp...@yahoo.com wrote:

 what about the WOLips server in WOLips preferences? it has to be turned on.
 
 
 On Nov 7, 2014, at 8:27 AM, Flavio Donadio fla...@donadio.com.br wrote:
 
 Hello, all...
 
 
 Does anyone have any other idea why checking Builds Automatically in the 
 Project menu isn't working for me?
 
 Theodore is right: the rules defining navigationState are needed. But every 
 time I change user.d2wmodel, I have to clean the project and build it 
 again.
 
 If my memory is right, just clicking Clear D2W Cache (on the 
 ERD2WDebugFlags box on the bottom right of the pages) used to apply new 
 rules...
 
 
 Cheers,
 Flavio
 
 On 06/11/2014, at 17:32, Flavio Donadio fla...@donadio.com.br wrote:
 
 Theodore,
 
 
 It's checked. :(
 
 
 Cheers,
 Flavio
 
 On 06/11/2014, at 17:27, Theodore Petrosky tedp...@yahoo.com wrote:
 
 sounds like the “Builds Automatically” selection wasn’t checked. For most 
 of the magic to happen, Builds Automatically must be selected under the 
 Project menu.
 
 Ted
 
 On Nov 6, 2014, at 2:15 PM, Flavio Donadio fla...@donadio.com.br wrote:
 
 Theodore,
 
 
 Cleaned the project, built it again... Worked.
 
 I swore I had done that before... I mean, a BUNCH of times...
 
 
 Cheers,
 Flavio
 
 On 06/11/2014, at 17:07, Flavio Donadio fla...@donadio.com.br wrote:
 
 Theodore,
 
 
 Just tried it again, the way you said. Still doesn't work.
 
 Also, when I tried to use direct acion names (instead of actions), I got 
 a page with Access denied on it.
 
 
 Cheers,
 Flavio
 
 
 On 06/11/2014, at 16:49, Theodore Petrosky tedp...@yahoo.com wrote:
 
 they don’t show up because you need to set rules
 
 100 : pageConfiguration like ‘*Product*' = navigationState = 
 “Products [com.webobjects.directtoweb.Assignment]
 
 be very careful with the plurals and such. Names must match exactly.
 
 Ted
 
 
 On Nov 6, 2014, at 1:43 PM, Flavio Donadio fla...@donadio.com.br 
 wrote:
 
 Hello, all!
 
 
 Here I come again!
 
 This time, I am having the same problem Pascal had back in June. 
 Please, check the Can't see the tabs in D2W app thread... Which 
 means... My tiered navigation is not working. The subtabs don't show 
 up.
 
 Here's my NavigationMenu.plist:
 
 (
{
name = Root;
directActionClass = DirectAction;
directActionName = default;
children = (Products);
},
{
name = Products;
action = session.navController.listProductsAction;
children = (ListProduct,CreateProduct);
 },
 {
name = ListProduct;
action = session.navController.listProductsAction;
 },
 {
name = CreateProduct;
action = session.navController.createProductAction;
 }
 )
 
 I tried all the solutions suggested by Ramsey Gurley, but still... No 
 dice.
 
 
 Cheers,
 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/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/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 Tiered Navigation

2014-11-07 Thread Flavio Donadio
Theodore,


It was turned off, but it's not working now that it's on.


Cheers,
Flavio

On 07/11/2014, at 11:28, Theodore Petrosky tedp...@yahoo.com wrote:

 what about the WOLips server in WOLips preferences? it has to be turned on.
 
 
 On Nov 7, 2014, at 8:27 AM, Flavio Donadio fla...@donadio.com.br wrote:
 
 Hello, all...
 
 
 Does anyone have any other idea why checking Builds Automatically in the 
 Project menu isn't working for me?
 
 Theodore is right: the rules defining navigationState are needed. But every 
 time I change user.d2wmodel, I have to clean the project and build it 
 again.
 
 If my memory is right, just clicking Clear D2W Cache (on the 
 ERD2WDebugFlags box on the bottom right of the pages) used to apply new 
 rules...
 
 
 Cheers,
 Flavio
 
 On 06/11/2014, at 17:32, Flavio Donadio fla...@donadio.com.br wrote:
 
 Theodore,
 
 
 It's checked. :(
 
 
 Cheers,
 Flavio
 
 On 06/11/2014, at 17:27, Theodore Petrosky tedp...@yahoo.com wrote:
 
 sounds like the “Builds Automatically” selection wasn’t checked. For most 
 of the magic to happen, Builds Automatically must be selected under the 
 Project menu.
 
 Ted
 
 On Nov 6, 2014, at 2:15 PM, Flavio Donadio fla...@donadio.com.br wrote:
 
 Theodore,
 
 
 Cleaned the project, built it again... Worked.
 
 I swore I had done that before... I mean, a BUNCH of times...
 
 
 Cheers,
 Flavio
 
 On 06/11/2014, at 17:07, Flavio Donadio fla...@donadio.com.br wrote:
 
 Theodore,
 
 
 Just tried it again, the way you said. Still doesn't work.
 
 Also, when I tried to use direct acion names (instead of actions), I got 
 a page with Access denied on it.
 
 
 Cheers,
 Flavio
 
 
 On 06/11/2014, at 16:49, Theodore Petrosky tedp...@yahoo.com wrote:
 
 they don’t show up because you need to set rules
 
 100 : pageConfiguration like ‘*Product*' = navigationState = 
 “Products [com.webobjects.directtoweb.Assignment]
 
 be very careful with the plurals and such. Names must match exactly.
 
 Ted
 
 
 On Nov 6, 2014, at 1:43 PM, Flavio Donadio fla...@donadio.com.br 
 wrote:
 
 Hello, all!
 
 
 Here I come again!
 
 This time, I am having the same problem Pascal had back in June. 
 Please, check the Can't see the tabs in D2W app thread... Which 
 means... My tiered navigation is not working. The subtabs don't show 
 up.
 
 Here's my NavigationMenu.plist:
 
 (
{
name = Root;
directActionClass = DirectAction;
directActionName = default;
children = (Products);
},
{
name = Products;
action = session.navController.listProductsAction;
children = (ListProduct,CreateProduct);
 },
 {
name = ListProduct;
action = session.navController.listProductsAction;
 },
 {
name = CreateProduct;
action = session.navController.createProductAction;
 }
 )
 
 I tried all the solutions suggested by Ramsey Gurley, but still... No 
 dice.
 
 
 Cheers,
 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/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/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 Tiered Navigation

2014-11-07 Thread Theodore Petrosky
what about rule modeler?  you have to start the WOLips server with a password. 
then start rule modeler and in its preferences the port and password must 
match. RuleModeler must be started AFTER eclipse/WOLips.


On Nov 7, 2014, at 9:55 AM, Flavio Donadio fla...@donadio.com.br wrote:

 Theodore,
 
 
 It was turned off, but it's not working now that it's on.
 
 
 Cheers,
 Flavio
 
 On 07/11/2014, at 11:28, Theodore Petrosky tedp...@yahoo.com wrote:
 
 what about the WOLips server in WOLips preferences? it has to be turned on.
 
 
 On Nov 7, 2014, at 8:27 AM, Flavio Donadio fla...@donadio.com.br wrote:
 
 Hello, all...
 
 
 Does anyone have any other idea why checking Builds Automatically in the 
 Project menu isn't working for me?
 
 Theodore is right: the rules defining navigationState are needed. But every 
 time I change user.d2wmodel, I have to clean the project and build it 
 again.
 
 If my memory is right, just clicking Clear D2W Cache (on the 
 ERD2WDebugFlags box on the bottom right of the pages) used to apply new 
 rules...
 
 
 Cheers,
 Flavio
 
 On 06/11/2014, at 17:32, Flavio Donadio fla...@donadio.com.br wrote:
 
 Theodore,
 
 
 It's checked. :(
 
 
 Cheers,
 Flavio
 
 On 06/11/2014, at 17:27, Theodore Petrosky tedp...@yahoo.com wrote:
 
 sounds like the “Builds Automatically” selection wasn’t checked. For most 
 of the magic to happen, Builds Automatically must be selected under the 
 Project menu.
 
 Ted
 
 On Nov 6, 2014, at 2:15 PM, Flavio Donadio fla...@donadio.com.br wrote:
 
 Theodore,
 
 
 Cleaned the project, built it again... Worked.
 
 I swore I had done that before... I mean, a BUNCH of times...
 
 
 Cheers,
 Flavio
 
 On 06/11/2014, at 17:07, Flavio Donadio fla...@donadio.com.br wrote:
 
 Theodore,
 
 
 Just tried it again, the way you said. Still doesn't work.
 
 Also, when I tried to use direct acion names (instead of actions), I 
 got a page with Access denied on it.
 
 
 Cheers,
 Flavio
 
 
 On 06/11/2014, at 16:49, Theodore Petrosky tedp...@yahoo.com wrote:
 
 they don’t show up because you need to set rules
 
 100 : pageConfiguration like ‘*Product*' = navigationState = 
 “Products [com.webobjects.directtoweb.Assignment]
 
 be very careful with the plurals and such. Names must match exactly.
 
 Ted
 
 
 On Nov 6, 2014, at 1:43 PM, Flavio Donadio fla...@donadio.com.br 
 wrote:
 
 Hello, all!
 
 
 Here I come again!
 
 This time, I am having the same problem Pascal had back in June. 
 Please, check the Can't see the tabs in D2W app thread... Which 
 means... My tiered navigation is not working. The subtabs don't 
 show up.
 
 Here's my NavigationMenu.plist:
 
 (
   {
   name = Root;
   directActionClass = DirectAction;
   directActionName = default;
   children = (Products);
   },
   {
   name = Products;
   action = session.navController.listProductsAction;
   children = (ListProduct,CreateProduct);
 },
 {
   name = ListProduct;
   action = session.navController.listProductsAction;
 },
 {
   name = CreateProduct;
   action = session.navController.createProductAction;
 }
 )
 
 I tried all the solutions suggested by Ramsey Gurley, but still... No 
 dice.
 
 
 Cheers,
 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/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/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 Tiered Navigation

2014-11-07 Thread Ramsey Gurley
What Ted said

http://wiki.wocommunity.org/display/documentation/Configuring+Rule+Modeler?src=search


On Nov 7, 2014, at 6:30 AM, Theodore Petrosky tedp...@yahoo.com wrote:

 and an addendum to that is, that RuleModeler has to be started after eclipse 
 and you must tell RuleModeler the password for WOLips server.
 
 
 
 On Nov 7, 2014, at 8:28 AM, Theodore Petrosky tedp...@yahoo.com wrote:
 
 what about the WOLips server in WOLips preferences? it has to be turned on.
 
 
 On Nov 7, 2014, at 8:27 AM, Flavio Donadio fla...@donadio.com.br wrote:
 
 Hello, all...
 
 
 Does anyone have any other idea why checking Builds Automatically in the 
 Project menu isn't working for me?
 
 Theodore is right: the rules defining navigationState are needed. But every 
 time I change user.d2wmodel, I have to clean the project and build it 
 again.
 
 If my memory is right, just clicking Clear D2W Cache (on the 
 ERD2WDebugFlags box on the bottom right of the pages) used to apply new 
 rules...
 
 
 Cheers,
 Flavio
 
 On 06/11/2014, at 17:32, Flavio Donadio fla...@donadio.com.br wrote:
 
 Theodore,
 
 
 It's checked. :(
 
 
 Cheers,
 Flavio
 
 On 06/11/2014, at 17:27, Theodore Petrosky tedp...@yahoo.com wrote:
 
 sounds like the “Builds Automatically” selection wasn’t checked. For most 
 of the magic to happen, Builds Automatically must be selected under the 
 Project menu.
 
 Ted
 
 On Nov 6, 2014, at 2:15 PM, Flavio Donadio fla...@donadio.com.br wrote:
 
 Theodore,
 
 
 Cleaned the project, built it again... Worked.
 
 I swore I had done that before... I mean, a BUNCH of times...
 
 
 Cheers,
 Flavio
 
 On 06/11/2014, at 17:07, Flavio Donadio fla...@donadio.com.br wrote:
 
 Theodore,
 
 
 Just tried it again, the way you said. Still doesn't work.
 
 Also, when I tried to use direct acion names (instead of actions), I 
 got a page with Access denied on it.
 
 
 Cheers,
 Flavio
 
 
 On 06/11/2014, at 16:49, Theodore Petrosky tedp...@yahoo.com wrote:
 
 they don’t show up because you need to set rules
 
 100 : pageConfiguration like ‘*Product*' = navigationState = 
 “Products [com.webobjects.directtoweb.Assignment]
 
 be very careful with the plurals and such. Names must match exactly.
 
 Ted
 
 
 On Nov 6, 2014, at 1:43 PM, Flavio Donadio fla...@donadio.com.br 
 wrote:
 
 Hello, all!
 
 
 Here I come again!
 
 This time, I am having the same problem Pascal had back in June. 
 Please, check the Can't see the tabs in D2W app thread... Which 
 means... My tiered navigation is not working. The subtabs don't 
 show up.
 
 Here's my NavigationMenu.plist:
 
 (
   {
   name = Root;
   directActionClass = DirectAction;
   directActionName = default;
   children = (Products);
   },
   {
   name = Products;
   action = session.navController.listProductsAction;
   children = (ListProduct,CreateProduct);
 },
 {
   name = ListProduct;
   action = session.navController.listProductsAction;
 },
 {
   name = CreateProduct;
   action = session.navController.createProductAction;
 }
 )
 
 I tried all the solutions suggested by Ramsey Gurley, but still... No 
 dice.
 
 
 Cheers,
 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/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/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/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 Tiered Navigation

2014-11-06 Thread Theodore Petrosky
they don’t show up because you need to set rules

100 : pageConfiguration like ‘*Product*' = navigationState = “Products 
[com.webobjects.directtoweb.Assignment]

be very careful with the plurals and such. Names must match exactly.

Ted


On Nov 6, 2014, at 1:43 PM, Flavio Donadio fla...@donadio.com.br wrote:

 Hello, all!
 
 
 Here I come again!
 
 This time, I am having the same problem Pascal had back in June. Please, 
 check the Can't see the tabs in D2W app thread... Which means... My tiered 
 navigation is not working. The subtabs don't show up.
 
 Here's my NavigationMenu.plist:
 
 (
   {
   name = Root;
   directActionClass = DirectAction;
   directActionName = default;
   children = (Products);
   },
   {
   name = Products;
   action = session.navController.listProductsAction;
   children = (ListProduct,CreateProduct);
},
{
   name = ListProduct;
   action = session.navController.listProductsAction;
},
{
   name = CreateProduct;
   action = session.navController.createProductAction;
}
 )
 
 I tried all the solutions suggested by Ramsey Gurley, but still... No dice.
 
 
 Cheers,
 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/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 Tiered Navigation

2014-11-06 Thread Flavio Donadio
Theodore,


Just tried it again, the way you said. Still doesn't work.

Also, when I tried to use direct acion names (instead of actions), I got a page 
with Access denied on it.


Cheers,
Flavio


On 06/11/2014, at 16:49, Theodore Petrosky tedp...@yahoo.com wrote:

 they don’t show up because you need to set rules
 
 100 : pageConfiguration like ‘*Product*' = navigationState = “Products 
 [com.webobjects.directtoweb.Assignment]
 
 be very careful with the plurals and such. Names must match exactly.
 
 Ted
 
 
 On Nov 6, 2014, at 1:43 PM, Flavio Donadio fla...@donadio.com.br wrote:
 
 Hello, all!
 
 
 Here I come again!
 
 This time, I am having the same problem Pascal had back in June. Please, 
 check the Can't see the tabs in D2W app thread... Which means... My tiered 
 navigation is not working. The subtabs don't show up.
 
 Here's my NavigationMenu.plist:
 
 (
  {
  name = Root;
  directActionClass = DirectAction;
  directActionName = default;
  children = (Products);
  },
  {
  name = Products;
  action = session.navController.listProductsAction;
  children = (ListProduct,CreateProduct);
   },
   {
  name = ListProduct;
  action = session.navController.listProductsAction;
   },
   {
  name = CreateProduct;
  action = session.navController.createProductAction;
   }
 )
 
 I tried all the solutions suggested by Ramsey Gurley, but still... No dice.
 
 
 Cheers,
 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/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 Tiered Navigation

2014-11-06 Thread Flavio Donadio
Theodore,


Cleaned the project, built it again... Worked.

I swore I had done that before... I mean, a BUNCH of times...


Cheers,
Flavio

On 06/11/2014, at 17:07, Flavio Donadio fla...@donadio.com.br wrote:

 Theodore,
 
 
 Just tried it again, the way you said. Still doesn't work.
 
 Also, when I tried to use direct acion names (instead of actions), I got a 
 page with Access denied on it.
 
 
 Cheers,
 Flavio
 
 
 On 06/11/2014, at 16:49, Theodore Petrosky tedp...@yahoo.com wrote:
 
 they don’t show up because you need to set rules
 
 100 : pageConfiguration like ‘*Product*' = navigationState = “Products 
 [com.webobjects.directtoweb.Assignment]
 
 be very careful with the plurals and such. Names must match exactly.
 
 Ted
 
 
 On Nov 6, 2014, at 1:43 PM, Flavio Donadio fla...@donadio.com.br wrote:
 
 Hello, all!
 
 
 Here I come again!
 
 This time, I am having the same problem Pascal had back in June. Please, 
 check the Can't see the tabs in D2W app thread... Which means... My 
 tiered navigation is not working. The subtabs don't show up.
 
 Here's my NavigationMenu.plist:
 
 (
 {
 name = Root;
 directActionClass = DirectAction;
 directActionName = default;
 children = (Products);
 },
 {
 name = Products;
 action = session.navController.listProductsAction;
 children = (ListProduct,CreateProduct);
  },
  {
 name = ListProduct;
 action = session.navController.listProductsAction;
  },
  {
 name = CreateProduct;
 action = session.navController.createProductAction;
  }
 )
 
 I tried all the solutions suggested by Ramsey Gurley, but still... No dice.
 
 
 Cheers,
 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/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/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 Problem in new application

2014-10-31 Thread Flavio Donadio
Fabian,


I just noticed something really strange in the error message. I just created a 
dummy D2W app (no model, as suggested by Theodore) and ran it as a 
WOApplication.

Here's the full error message, as shown in the browser:

 Application: DummyTest
 Error: java.lang.IllegalStateException exception
 Reason:
 java.lang.IllegalStateException: An Exception occurred while generating the 
 Exception page 'WOExceptionPage'. This is most likely due to an error in 
 'WOExceptionPage' itself or WebObjects encountered an uncaught exception 
 while creating a Session object.
 
 
 Below are the logs of the original Exception which occured in 
 com.webobjects.appserver.WOApplication, then the later Exception in 
 WOExceptionPage.
 
 Original Exception:
 java.lang.IllegalArgumentException: com.webobjects.appserver.WOApplication 
 Class 'Session' exists (interface org.apache.axis.session.Session) but is not 
 a subclass of WOSession.
 at 
 com.webobjects.appserver.WOApplication._sessionClass(WOApplication.java:1934)
 at 
 com.webobjects.appserver.WOApplication.createSessionForRequest(WOApplication.java:1973)
 at 
 com.webobjects.appserver.WOApplication._initializeSessionInContext(WOApplication.java:2110)
 at 
 com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication(WOComponentRequestHandler.java:319)
 at 
 com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(WOComponentRequestHandler.java:369)
 at 
 com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:442)
 at 
 com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
 at 
 com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
 at 
 com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
 at java.lang.Thread.run(Thread.java:695)
 

 WOExceptionPage Exception:
 java.lang.IllegalArgumentException: com.webobjects.appserver.WOApplication 
 Class 'Session' exists (interface org.apache.axis.session.Session) but is not 
 a subclass of WOSession.
 at 
 com.webobjects.appserver.WOApplication._sessionClass(WOApplication.java:1934)
 at 
 com.webobjects.appserver.WOApplication.createSessionForRequest(WOApplication.java:1973)
 at 
 com.webobjects.appserver.WOApplication._initializeSessionInContext(WOApplication.java:2110)
 at com.webobjects.appserver.WOContext.session(WOContext.java:369)
 at com.webobjects.appserver.WOContext.componentActionURL(WOContext.java:1208)
 at 
 com.webobjects.appserver._private.WOHyperlink._appendComponentActionURLToResponse(WOHyperlink.java:183)
 at 
 com.webobjects.appserver._private.WOHyperlink.appendAttributesToResponse(WOHyperlink.java:219)
 at 
 com.webobjects.appserver._private.WOHTMLDynamicElement._appendOpenTagToResponse(WOHTMLDynamicElement.java:493)
 at 
 com.webobjects.appserver._private.WOHyperlink._appendOpenTagToResponse(WOHyperlink.java:133)
 at 
 com.webobjects.appserver._private.WOHTMLDynamicElement.appendToResponse(WOHTMLDynamicElement.java:443)
 at 
 com.webobjects.appserver._private.WODynamicGroup.appendChildrenToResponse(WODynamicGroup.java:126)
 at 
 com.webobjects.appserver._private.WOConditional.appendToResponse(WOConditional.java:94)
 at 
 com.webobjects.appserver._private.WODynamicGroup.appendChildrenToResponse(WODynamicGroup.java:126)
 at 
 com.webobjects.appserver._private.WODynamicGroup.appendToResponse(WODynamicGroup.java:136)
 at 
 com.webobjects.appserver.WOComponent.appendToResponse(WOComponent.java:1122)
 at 
 com.webobjects.appserver._private.WOComponentReference.appendToResponse(WOComponentReference.java:135)
 at 
 com.webobjects.appserver._private.WODynamicGroup.appendChildrenToResponse(WODynamicGroup.java:126)
 at 
 com.webobjects.appserver._private.WODynamicGroup.appendToResponse(WODynamicGroup.java:136)
 at 
 com.webobjects.appserver.WOComponent.appendToResponse(WOComponent.java:1122)
 at 
 com.webobjects.appserver.WOComponent._appendPageToResponse(WOComponent.java:1574)
 at 
 com.webobjects.appserver.WOComponent._generateResponseInContext(WOComponent.java:1543)
 at 
 com.webobjects.appserver.WOComponent.generateResponse(WOComponent.java:1538)
 at 
 com.webobjects.woextensions.WOExceptionPage.generateResponse(WOExceptionPage.java:47)
 at 
 com.webobjects.appserver.WOApplication._handleError(WOApplication.java:3095)
 at 
 com.webobjects.appserver.WOApplication.handleException(WOApplication.java:3245)
 at 
 com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(WOComponentRequestHandler.java:389)
 at 
 com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:442)
 at 
 com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
 at 
 com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
 at 
 com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
 at java.lang.Thread.run(Thread.java:695)


The 

Re: D2W Problem in new application

2014-10-31 Thread Theodore Petrosky
So, class paths. you created a new D2W app. did you compare the “Build Path” of 
your app to the screen shot of the Build Path on the tutorial page?

Ted

On Oct 31, 2014, at 10:05 AM, Flavio Donadio fla...@donadio.com.br wrote:

 Fabian,
 
 
 I just noticed something really strange in the error message. I just created 
 a dummy D2W app (no model, as suggested by Theodore) and ran it as a 
 WOApplication.
 
 Here's the full error message, as shown in the browser:
 
 Application: DummyTest
 Error: java.lang.IllegalStateException exception
 Reason:
 java.lang.IllegalStateException: An Exception occurred while generating the 
 Exception page 'WOExceptionPage'. This is most likely due to an error in 
 'WOExceptionPage' itself or WebObjects encountered an uncaught exception 
 while creating a Session object.
 
 
 Below are the logs of the original Exception which occured in 
 com.webobjects.appserver.WOApplication, then the later Exception in 
 WOExceptionPage.
 
 Original Exception:
 java.lang.IllegalArgumentException: com.webobjects.appserver.WOApplication 
 Class 'Session' exists (interface org.apache.axis.session.Session) but is 
 not a subclass of WOSession.
 at 
 com.webobjects.appserver.WOApplication._sessionClass(WOApplication.java:1934)
 at 
 com.webobjects.appserver.WOApplication.createSessionForRequest(WOApplication.java:1973)
 at 
 com.webobjects.appserver.WOApplication._initializeSessionInContext(WOApplication.java:2110)
 at 
 com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication(WOComponentRequestHandler.java:319)
 at 
 com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(WOComponentRequestHandler.java:369)
 at 
 com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:442)
 at 
 com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
 at 
 com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
 at 
 com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
 at java.lang.Thread.run(Thread.java:695)
 
 
 WOExceptionPage Exception:
 java.lang.IllegalArgumentException: com.webobjects.appserver.WOApplication 
 Class 'Session' exists (interface org.apache.axis.session.Session) but is 
 not a subclass of WOSession.
 at 
 com.webobjects.appserver.WOApplication._sessionClass(WOApplication.java:1934)
 at 
 com.webobjects.appserver.WOApplication.createSessionForRequest(WOApplication.java:1973)
 at 
 com.webobjects.appserver.WOApplication._initializeSessionInContext(WOApplication.java:2110)
 at com.webobjects.appserver.WOContext.session(WOContext.java:369)
 at com.webobjects.appserver.WOContext.componentActionURL(WOContext.java:1208)
 at 
 com.webobjects.appserver._private.WOHyperlink._appendComponentActionURLToResponse(WOHyperlink.java:183)
 at 
 com.webobjects.appserver._private.WOHyperlink.appendAttributesToResponse(WOHyperlink.java:219)
 at 
 com.webobjects.appserver._private.WOHTMLDynamicElement._appendOpenTagToResponse(WOHTMLDynamicElement.java:493)
 at 
 com.webobjects.appserver._private.WOHyperlink._appendOpenTagToResponse(WOHyperlink.java:133)
 at 
 com.webobjects.appserver._private.WOHTMLDynamicElement.appendToResponse(WOHTMLDynamicElement.java:443)
 at 
 com.webobjects.appserver._private.WODynamicGroup.appendChildrenToResponse(WODynamicGroup.java:126)
 at 
 com.webobjects.appserver._private.WOConditional.appendToResponse(WOConditional.java:94)
 at 
 com.webobjects.appserver._private.WODynamicGroup.appendChildrenToResponse(WODynamicGroup.java:126)
 at 
 com.webobjects.appserver._private.WODynamicGroup.appendToResponse(WODynamicGroup.java:136)
 at 
 com.webobjects.appserver.WOComponent.appendToResponse(WOComponent.java:1122)
 at 
 com.webobjects.appserver._private.WOComponentReference.appendToResponse(WOComponentReference.java:135)
 at 
 com.webobjects.appserver._private.WODynamicGroup.appendChildrenToResponse(WODynamicGroup.java:126)
 at 
 com.webobjects.appserver._private.WODynamicGroup.appendToResponse(WODynamicGroup.java:136)
 at 
 com.webobjects.appserver.WOComponent.appendToResponse(WOComponent.java:1122)
 at 
 com.webobjects.appserver.WOComponent._appendPageToResponse(WOComponent.java:1574)
 at 
 com.webobjects.appserver.WOComponent._generateResponseInContext(WOComponent.java:1543)
 at 
 com.webobjects.appserver.WOComponent.generateResponse(WOComponent.java:1538)
 at 
 com.webobjects.woextensions.WOExceptionPage.generateResponse(WOExceptionPage.java:47)
 at 
 com.webobjects.appserver.WOApplication._handleError(WOApplication.java:3095)
 at 
 com.webobjects.appserver.WOApplication.handleException(WOApplication.java:3245)
 at 
 com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(WOComponentRequestHandler.java:389)
 at 
 com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:442)
 at 
 

Re: D2W Problem in new application

2014-10-31 Thread Flavio Donadio
Theodore,


Yes, the Build Path are more or less the same. Since I don't have a model (nor 
a framework), two items are not on the Library pane: H2Plugin and BlogModel.

Here's the console output when I run the app:

 [2014-10-31 15:1:55 BRST] main Principal class '' not found in bundle 
 ERModernLook
 [2014-10-31 15:1:55 BRST] main Principal class '' not found in bundle 
 ERCoolComponents
 [2014-10-31 15:1:55 BRST] main Principal class '' not found in bundle 
 ERModernDefaultSkin
 [2014-10-31 15:1:55 BRST] main Principal class '' not found in bundle 
 ERModernDirectToWeb
 [2014-10-31 15:1:55 BRST] main Principal class 
 'er.directtoweb.ERDirectToWeb' not found in bundle ERDirectToWeb
 [2014-10-31 15:1:55 BRST] main Principal class '' not found in bundle 
 JavaWOExtensions
 [2014-10-31 15:1:55 BRST] main Principal class '' not found in bundle WOLips
 [2014-10-31 15:1:55 BRST] main Principal class 'your.app.Application' not 
 found in bundle DummyTest
 [2014-10-31 15:1:55 BRST] main WOMaxIOBufferSize=8196
 [2014-10-31 15:1:55 BRST] main WOWorkerThreadCountMin=16
 [2014-10-31 15:1:55 BRST] main WOSocketMonitorSleepTime=50
 [2014-10-31 15:1:55 BRST] main WODirectConnectEnabled=true
 [2014-10-31 15:1:55 BRST] main WOIncludeCommentsInResponse=false
 [2014-10-31 15:1:55 BRST] main WOWorkerThreadCount=8
 [2014-10-31 15:1:55 BRST] main 
 WOAdaptorURL=http://127.0.0.1/cgi-bin/WebObjects
 [2014-10-31 15:1:55 BRST] main WOLaunchdEnabled=false
 [2014-10-31 15:1:55 BRST] main WOHost=127.0.0.1
 [2014-10-31 15:1:55 BRST] main WOIDE=WOLips
 [2014-10-31 15:1:55 BRST] main WODebuggingEnabled=true
 [2014-10-31 15:1:55 BRST] main WOListenQueueSize=128
 [2014-10-31 15:1:55 BRST] main WOMissingResourceSearchEnabled=true
 [2014-10-31 15:1:55 BRST] main 
 WOApplicationClassName=com.webobjects.appserver.WOApplication
 [2014-10-31 15:1:55 BRST] main WOSessionStoreClassName=WOServerSessionStore
 [2014-10-31 15:1:55 BRST] main WOContextClassName=WOContext
 [2014-10-31 15:1:55 BRST] main WOCachingEnabled=false
 [2014-10-31 15:1:55 BRST] main WOAcceptMalformedCookies=false
 [2014-10-31 15:1:55 BRST] main 
 NSProjectSearchPath=(..,../..,/Users/fdonadio/Projects/WonderSource/Frameworks/Core/ERExtensions,/Users/fdonadio/Projects/WonderSource/Frameworks/Core/ERJars,/Users/fdonadio/Projects/WonderSource/Frameworks/Core/JavaWOExtensions,/Users/fdonadio/Projects/WonderSource/Frameworks/Core/ERPrototypes,/Users/fdonadio/Projects/WonderSource/Frameworks/D2W/ERModernLook,/Users/fdonadio/Projects/WonderSource/Frameworks/Core/WOOgnl,/Users/fdonadio/Projects/WonderSource/Frameworks/Core/ERDirectToWeb,/Users/fdonadio/Projects/WonderSource/Frameworks/D2W/ERModernDirectToWeb,/Users/fdonadio/Projects/WonderSource/Frameworks/Ajax/Ajax,/Users/fdonadio/Projects/WonderSource/Frameworks/Ajax/ERCoolComponents,/Users/fdonadio/Projects/WonderSource/Frameworks/D2W/ERModernDefaultSkin,/Users/fdonadio/Projects/WonderSource/Frameworks/Misc/WOLips)
 [2014-10-31 15:1:55 BRST] main WOMonitorEnabled=false
 [2014-10-31 15:1:55 BRST] main WOAllowRapidTurnaround=true
 [2014-10-31 15:1:55 BRST] main WOGenerateWSDL=true
 [2014-10-31 15:1:55 BRST] main WOWorkerThreadCountMax=256
 [2014-10-31 15:1:55 BRST] main WOAllowsConcurrentRequestHandling=false
 [2014-10-31 15:1:55 BRST] main WOAdaptor=WODefaultAdaptor
 [2014-10-31 15:1:55 BRST] main WOSessionTimeOut=3600
 [2014-10-31 15:1:55 BRST] main WOMaxSocketIdleTime=18
 [2014-10-31 15:1:55 BRST] main WODefaultUndoStackLimit=10
 [2014-10-31 15:1:55 BRST] main WOAutoOpenClientApplication=true
 [2014-10-31 15:1:55 BRST] main WOAutoOpenInBrowser=true
 [2014-10-31 15:1:55 BRST] main WOApplicationBaseURL=/WebObjects
 [2014-10-31 15:1:55 BRST] main WOMaxHeaders=200
 [2014-10-31 15:1:55 BRST] main WOLifebeatEnabled=true
 [2014-10-31 15:1:55 BRST] main WOAllowsCacheControlHeader=true
 [2014-10-31 15:1:55 BRST] main WOSMTPHost=smtp
 [2014-10-31 15:1:55 BRST] main WOFrameworksBaseURL=/WebObjects/Frameworks
 [2014-10-31 15:1:55 BRST] main WOAdditionalAdaptors=()
 [2014-10-31 15:1:55 BRST] main WOStatisticsStoreSessionMax=50
 [2014-10-31 15:1:55 BRST] main WOLifebeatDestinationPort=1085
 [2014-10-31 15:1:55 BRST] main WOPort=-1
 [2014-10-31 15:1:55 BRST] main WOLifebeatInterval=30
 [2014-10-31 15:1:55 BRST] main WOSocketCacheSize=100
 [2014-10-31 15:1:55 BRST] main 
 WOUserDirectory=/Users/fdonadio/Documents/workspace/DummyTest/build/DummyTest.woa
 [2014-10-31 15:1:55 BRST] main WODisplayExceptionPages=true
 [2014-10-31 15:1:55 BRST] main 
 [2014-10-31 15:1:55 BRST] main WebObjects version = 5.4.3
 [2014-10-31 15:1:55 BRST] main Created adaptor of class WODefaultAdaptor on 
 port 50072 and address localhost/127.0.0.1 with WOWorkerThread minimum of 16 
 and maximum of 256
 [2014-10-31 15:1:55 BRST] main NSBundle is unable to find 
 ExtensionsForResources.plist in the main bundle.  Ignoring optional 
 configuration file.
 [2014-10-31 15:1:55 BRST] main Cannot use rapid turnaround.  Please start 
 Xcode and open the 

Re: D2W Problem in new application

2014-10-31 Thread Ramsey Gurley
Try removing JavaXML framework. You won’t miss it until you try to deploy with 
monitor/wotaskd.


On Oct 31, 2014, at 10:11 AM, Flavio Donadio fla...@donadio.com.br wrote:

 Theodore,
 
 
 Yes, the Build Path are more or less the same. Since I don't have a model 
 (nor a framework), two items are not on the Library pane: H2Plugin and 
 BlogModel.
 
 Here's the console output when I run the app:
 
 [2014-10-31 15:1:55 BRST] main Principal class '' not found in bundle 
 ERModernLook
 [2014-10-31 15:1:55 BRST] main Principal class '' not found in bundle 
 ERCoolComponents
 [2014-10-31 15:1:55 BRST] main Principal class '' not found in bundle 
 ERModernDefaultSkin
 [2014-10-31 15:1:55 BRST] main Principal class '' not found in bundle 
 ERModernDirectToWeb
 [2014-10-31 15:1:55 BRST] main Principal class 
 'er.directtoweb.ERDirectToWeb' not found in bundle ERDirectToWeb
 [2014-10-31 15:1:55 BRST] main Principal class '' not found in bundle 
 JavaWOExtensions
 [2014-10-31 15:1:55 BRST] main Principal class '' not found in bundle 
 WOLips
 [2014-10-31 15:1:55 BRST] main Principal class 'your.app.Application' not 
 found in bundle DummyTest
 [2014-10-31 15:1:55 BRST] main WOMaxIOBufferSize=8196
 [2014-10-31 15:1:55 BRST] main WOWorkerThreadCountMin=16
 [2014-10-31 15:1:55 BRST] main WOSocketMonitorSleepTime=50
 [2014-10-31 15:1:55 BRST] main WODirectConnectEnabled=true
 [2014-10-31 15:1:55 BRST] main WOIncludeCommentsInResponse=false
 [2014-10-31 15:1:55 BRST] main WOWorkerThreadCount=8
 [2014-10-31 15:1:55 BRST] main 
 WOAdaptorURL=http://127.0.0.1/cgi-bin/WebObjects
 [2014-10-31 15:1:55 BRST] main WOLaunchdEnabled=false
 [2014-10-31 15:1:55 BRST] main WOHost=127.0.0.1
 [2014-10-31 15:1:55 BRST] main WOIDE=WOLips
 [2014-10-31 15:1:55 BRST] main WODebuggingEnabled=true
 [2014-10-31 15:1:55 BRST] main WOListenQueueSize=128
 [2014-10-31 15:1:55 BRST] main WOMissingResourceSearchEnabled=true
 [2014-10-31 15:1:55 BRST] main 
 WOApplicationClassName=com.webobjects.appserver.WOApplication
 [2014-10-31 15:1:55 BRST] main WOSessionStoreClassName=WOServerSessionStore
 [2014-10-31 15:1:55 BRST] main WOContextClassName=WOContext
 [2014-10-31 15:1:55 BRST] main WOCachingEnabled=false
 [2014-10-31 15:1:55 BRST] main WOAcceptMalformedCookies=false
 [2014-10-31 15:1:55 BRST] main 
 NSProjectSearchPath=(..,../..,/Users/fdonadio/Projects/WonderSource/Frameworks/Core/ERExtensions,/Users/fdonadio/Projects/WonderSource/Frameworks/Core/ERJars,/Users/fdonadio/Projects/WonderSource/Frameworks/Core/JavaWOExtensions,/Users/fdonadio/Projects/WonderSource/Frameworks/Core/ERPrototypes,/Users/fdonadio/Projects/WonderSource/Frameworks/D2W/ERModernLook,/Users/fdonadio/Projects/WonderSource/Frameworks/Core/WOOgnl,/Users/fdonadio/Projects/WonderSource/Frameworks/Core/ERDirectToWeb,/Users/fdonadio/Projects/WonderSource/Frameworks/D2W/ERModernDirectToWeb,/Users/fdonadio/Projects/WonderSource/Frameworks/Ajax/Ajax,/Users/fdonadio/Projects/WonderSource/Frameworks/Ajax/ERCoolComponents,/Users/fdonadio/Projects/WonderSource/Frameworks/D2W/ERModernDefaultSkin,/Users/fdonadio/Projects/WonderSource/Frameworks/Misc/WOLips)
 [2014-10-31 15:1:55 BRST] main WOMonitorEnabled=false
 [2014-10-31 15:1:55 BRST] main WOAllowRapidTurnaround=true
 [2014-10-31 15:1:55 BRST] main WOGenerateWSDL=true
 [2014-10-31 15:1:55 BRST] main WOWorkerThreadCountMax=256
 [2014-10-31 15:1:55 BRST] main WOAllowsConcurrentRequestHandling=false
 [2014-10-31 15:1:55 BRST] main WOAdaptor=WODefaultAdaptor
 [2014-10-31 15:1:55 BRST] main WOSessionTimeOut=3600
 [2014-10-31 15:1:55 BRST] main WOMaxSocketIdleTime=18
 [2014-10-31 15:1:55 BRST] main WODefaultUndoStackLimit=10
 [2014-10-31 15:1:55 BRST] main WOAutoOpenClientApplication=true
 [2014-10-31 15:1:55 BRST] main WOAutoOpenInBrowser=true
 [2014-10-31 15:1:55 BRST] main WOApplicationBaseURL=/WebObjects
 [2014-10-31 15:1:55 BRST] main WOMaxHeaders=200
 [2014-10-31 15:1:55 BRST] main WOLifebeatEnabled=true
 [2014-10-31 15:1:55 BRST] main WOAllowsCacheControlHeader=true
 [2014-10-31 15:1:55 BRST] main WOSMTPHost=smtp
 [2014-10-31 15:1:55 BRST] main WOFrameworksBaseURL=/WebObjects/Frameworks
 [2014-10-31 15:1:55 BRST] main WOAdditionalAdaptors=()
 [2014-10-31 15:1:55 BRST] main WOStatisticsStoreSessionMax=50
 [2014-10-31 15:1:55 BRST] main WOLifebeatDestinationPort=1085
 [2014-10-31 15:1:55 BRST] main WOPort=-1
 [2014-10-31 15:1:55 BRST] main WOLifebeatInterval=30
 [2014-10-31 15:1:55 BRST] main WOSocketCacheSize=100
 [2014-10-31 15:1:55 BRST] main 
 WOUserDirectory=/Users/fdonadio/Documents/workspace/DummyTest/build/DummyTest.woa
 [2014-10-31 15:1:55 BRST] main WODisplayExceptionPages=true
 [2014-10-31 15:1:55 BRST] main 
 [2014-10-31 15:1:55 BRST] main WebObjects version = 5.4.3
 [2014-10-31 15:1:55 BRST] main Created adaptor of class WODefaultAdaptor 
 on port 50072 and address localhost/127.0.0.1 with WOWorkerThread minimum of 
 16 and maximum of 256
 [2014-10-31 15:1:55 BRST] main NSBundle is unable to find 
 

Re: D2W Problem in new application

2014-10-31 Thread Flavio Donadio
Ramsey,


I think the problem might be in a different place.

Some projects that were running OK before just stopped working. New projects 
don't work at all.

And now Eclipse went berserk, trying to run a different project than the one I 
am trying to run.

I tried deleting this workspace and creating a new one, but to no avail.


Cheers,
Flavio


On 31/10/2014, at 15:23, Ramsey Gurley rgur...@smarthealth.com wrote:

 Try removing JavaXML framework. You won’t miss it until you try to deploy 
 with monitor/wotaskd.
 
 
 On Oct 31, 2014, at 10:11 AM, Flavio Donadio fla...@donadio.com.br wrote:
 
 Theodore,
 
 
 Yes, the Build Path are more or less the same. Since I don't have a model 
 (nor a framework), two items are not on the Library pane: H2Plugin and 
 BlogModel.
 
 Here's the console output when I run the app:
 
 [2014-10-31 15:1:55 BRST] main Principal class '' not found in bundle 
 ERModernLook
 [2014-10-31 15:1:55 BRST] main Principal class '' not found in bundle 
 ERCoolComponents
 [2014-10-31 15:1:55 BRST] main Principal class '' not found in bundle 
 ERModernDefaultSkin
 [2014-10-31 15:1:55 BRST] main Principal class '' not found in bundle 
 ERModernDirectToWeb
 [2014-10-31 15:1:55 BRST] main Principal class 
 'er.directtoweb.ERDirectToWeb' not found in bundle ERDirectToWeb
 [2014-10-31 15:1:55 BRST] main Principal class '' not found in bundle 
 JavaWOExtensions
 [2014-10-31 15:1:55 BRST] main Principal class '' not found in bundle 
 WOLips
 [2014-10-31 15:1:55 BRST] main Principal class 'your.app.Application' not 
 found in bundle DummyTest
 [2014-10-31 15:1:55 BRST] main WOMaxIOBufferSize=8196
 [2014-10-31 15:1:55 BRST] main WOWorkerThreadCountMin=16
 [2014-10-31 15:1:55 BRST] main WOSocketMonitorSleepTime=50
 [2014-10-31 15:1:55 BRST] main WODirectConnectEnabled=true
 [2014-10-31 15:1:55 BRST] main WOIncludeCommentsInResponse=false
 [2014-10-31 15:1:55 BRST] main WOWorkerThreadCount=8
 [2014-10-31 15:1:55 BRST] main 
 WOAdaptorURL=http://127.0.0.1/cgi-bin/WebObjects
 [2014-10-31 15:1:55 BRST] main WOLaunchdEnabled=false
 [2014-10-31 15:1:55 BRST] main WOHost=127.0.0.1
 [2014-10-31 15:1:55 BRST] main WOIDE=WOLips
 [2014-10-31 15:1:55 BRST] main WODebuggingEnabled=true
 [2014-10-31 15:1:55 BRST] main WOListenQueueSize=128
 [2014-10-31 15:1:55 BRST] main WOMissingResourceSearchEnabled=true
 [2014-10-31 15:1:55 BRST] main 
 WOApplicationClassName=com.webobjects.appserver.WOApplication
 [2014-10-31 15:1:55 BRST] main 
 WOSessionStoreClassName=WOServerSessionStore
 [2014-10-31 15:1:55 BRST] main WOContextClassName=WOContext
 [2014-10-31 15:1:55 BRST] main WOCachingEnabled=false
 [2014-10-31 15:1:55 BRST] main WOAcceptMalformedCookies=false
 [2014-10-31 15:1:55 BRST] main 
 NSProjectSearchPath=(..,../..,/Users/fdonadio/Projects/WonderSource/Frameworks/Core/ERExtensions,/Users/fdonadio/Projects/WonderSource/Frameworks/Core/ERJars,/Users/fdonadio/Projects/WonderSource/Frameworks/Core/JavaWOExtensions,/Users/fdonadio/Projects/WonderSource/Frameworks/Core/ERPrototypes,/Users/fdonadio/Projects/WonderSource/Frameworks/D2W/ERModernLook,/Users/fdonadio/Projects/WonderSource/Frameworks/Core/WOOgnl,/Users/fdonadio/Projects/WonderSource/Frameworks/Core/ERDirectToWeb,/Users/fdonadio/Projects/WonderSource/Frameworks/D2W/ERModernDirectToWeb,/Users/fdonadio/Projects/WonderSource/Frameworks/Ajax/Ajax,/Users/fdonadio/Projects/WonderSource/Frameworks/Ajax/ERCoolComponents,/Users/fdonadio/Projects/WonderSource/Frameworks/D2W/ERModernDefaultSkin,/Users/fdonadio/Projects/WonderSource/Frameworks/Misc/WOLips)
 [2014-10-31 15:1:55 BRST] main WOMonitorEnabled=false
 [2014-10-31 15:1:55 BRST] main WOAllowRapidTurnaround=true
 [2014-10-31 15:1:55 BRST] main WOGenerateWSDL=true
 [2014-10-31 15:1:55 BRST] main WOWorkerThreadCountMax=256
 [2014-10-31 15:1:55 BRST] main WOAllowsConcurrentRequestHandling=false
 [2014-10-31 15:1:55 BRST] main WOAdaptor=WODefaultAdaptor
 [2014-10-31 15:1:55 BRST] main WOSessionTimeOut=3600
 [2014-10-31 15:1:55 BRST] main WOMaxSocketIdleTime=18
 [2014-10-31 15:1:55 BRST] main WODefaultUndoStackLimit=10
 [2014-10-31 15:1:55 BRST] main WOAutoOpenClientApplication=true
 [2014-10-31 15:1:55 BRST] main WOAutoOpenInBrowser=true
 [2014-10-31 15:1:55 BRST] main WOApplicationBaseURL=/WebObjects
 [2014-10-31 15:1:55 BRST] main WOMaxHeaders=200
 [2014-10-31 15:1:55 BRST] main WOLifebeatEnabled=true
 [2014-10-31 15:1:55 BRST] main WOAllowsCacheControlHeader=true
 [2014-10-31 15:1:55 BRST] main WOSMTPHost=smtp
 [2014-10-31 15:1:55 BRST] main WOFrameworksBaseURL=/WebObjects/Frameworks
 [2014-10-31 15:1:55 BRST] main WOAdditionalAdaptors=()
 [2014-10-31 15:1:55 BRST] main WOStatisticsStoreSessionMax=50
 [2014-10-31 15:1:55 BRST] main WOLifebeatDestinationPort=1085
 [2014-10-31 15:1:55 BRST] main WOPort=-1
 [2014-10-31 15:1:55 BRST] main WOLifebeatInterval=30
 [2014-10-31 15:1:55 BRST] main WOSocketCacheSize=100
 [2014-10-31 15:1:55 BRST] main 
 

Re: D2W Problem in new application

2014-10-30 Thread Flavio Donadio
Theodore,


I followed the steps from the REST Tutorial to create a model, but I am 
creating a D2W application instead. I didn't create a framework. I've done this 
before and it worked.

But this error message is a little more enlightening:

java.lang.IllegalArgumentException: com.webobjects.appserver.WOApplication 
Class 'Session' exists (interface org.apache.axis.session.Session) but is not a 
subclass of WOSession.

I added the right imports to the class files, so it uses the Session class in 
the project. But it seems something is going wrong...


Cheers,
Flavio

On 29/10/2014, at 18:35, Theodore Petrosky tedp...@yahoo.com wrote:

 d2w.d2wmodel is empty when you create a new d2w app. the action happens in 
 user.d2wmodel
 
 This is odd that I see entity=Product. Where is that coming from?
 
 basically if you create a new d2w app with NO model. it should start. you 
 just can’t do anything.
 
 according to the docs, you are supposed to be picking up the model you 
 created in the last step:
 
 http://wiki.wocommunity.org/display/WEB/Your+First+Framework
 
 which is creating a framework from the model you created in the previous Your 
 First Rest Project.
 
 did you do this?
 
 
 
 
 
 On Oct 29, 2014, at 3:46 PM, Flavio Donadio fla...@donadio.com.br wrote:
 
 Hello, all!
 
 
 I am getting this error when I run the app for the first time:
 
 [2014-10-29 17:37:34 BRST] WorkerThread1 
 br.com.codeprint.website.DirectAction: Exception in performActionNamed() 
 on the action login with the message: 
 com.webobjects.directtoweb.D2WModelException: Error - could not find any 
 rule that returns a pageName using the current context D2WContext 
 task=list, entity=Product, propertyKey=null, pageConfiguration=null
 - Error with action login:com.webobjects.directtoweb.D2WModelException: 
 Error - could not find any rule that returns a pageName using the current 
 context D2WContext task=list, entity=Product, propertyKey=null, 
 pageConfiguration=null, formValues:{username = (); password = (); wosid 
 = (WnGhLWoSK3H0Bvw752rq0g); WOSubmitAction = (login); }
 com.webobjects.directtoweb.D2WModelException: Error - could not find any 
 rule that returns a pageName using the current context D2WContext 
 task=list, entity=Product, propertyKey=null, pageConfiguration=null
  at com.webobjects.directtoweb.D2WContext.pageName(D2WContext.java:734)
  at 
 com.webobjects.directtoweb.D2W._pageWithContextTaskEntity(D2W.java:874)
  at 
 com.webobjects.directtoweb.D2W._pageWithContextTaskEntity(D2W.java:859)
  at 
 com.webobjects.directtoweb.D2W.pageForTaskAndEntityNamed(D2W.java:896)
  at com.webobjects.directtoweb.D2W.listPageForEntityNamed(D2W.java:1034)
  at 
 br.com.codeprint.website.MainNavigationController.listPageForEntityName(MainNavigationController.java:32)
  at 
 br.com.codeprint.website.MainNavigationController.homeAction(MainNavigationController.java:26)
  at 
 br.com.codeprint.website.DirectAction.loginAction(DirectAction.java:72)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:601)
  at 
 com.webobjects.appserver.WODirectAction.performActionNamed(WODirectAction.java:144)
  at 
 er.extensions.appserver.ERXDirectAction.performActionNamed(ERXDirectAction.java:418)
  at 
 er.directtoweb.ERD2WDirectAction.performActionNamed(ERD2WDirectAction.java:456)
  at 
 com.webobjects.appserver._private.WOActionRequestHandler._handleRequest(WOActionRequestHandler.java:259)
  at 
 com.webobjects.appserver._private.WOActionRequestHandler.handleRequest(WOActionRequestHandler.java:158)
  at 
 com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
  at 
 com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
  at 
 com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
  at java.lang.Thread.run(Thread.java:722)
 
 It's a new application and I triple-checked the boilerpate code that should 
 go into MainNavigationController.java. NavigationMenu.plist also seems to be 
 good.
 
 d2w.d2wmodel is empty, which seems strange. I had never looked into that 
 file before, I think.
 
 I still did not implement authentication, but changed the code according to 
 the tutorial at 
 http://wiki.wocommunity.org/display/WEB/Your+First+D2W+Project .
 
 Eclipse 4.4 (Luna) and WOLips 4.4 compiled by myself.
 
 
 Cheers,
 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/tedpet5%40yahoo.com
 
 This email sent to tedp...@yahoo.com
 

Re: D2W Problem in new application

2014-10-30 Thread Flavio Donadio
Fabian,


I see these on the console with no debugging enabled:

[2014-10-30 12:45:55 BRST] main ** DirectToWeb could not merge d2wmodel from 
file:/Users/fdonadio/Projects/WonderSource/Frameworks/D2W/ERModernLook/build/ERModernLook.framework/Resources/d2w.d2wmodel
 for reason: ** DirectToWeb exception - a rule cannot be instantiated if its 
right hand side is null. LHS=(look = 'ERModernLook')  RHS=null
[2014-10-30 12:45:55 BRST] main ** DirectToWeb could not merge d2wmodel from 
file:/Users/fdonadio/Projects/WonderSource/Frameworks/D2W/ERModernDirectToWeb/build/ERModernDirectToWeb.framework/Resources/d2w.d2wmodel
 for reason: ** DirectToWeb exception - a rule cannot be instantiated if its 
right hand side is null. LHS=null  RHS=null
[2014-10-30 12:45:55 BRST] main ** DirectToWeb could not merge d2wmodel from 
file:/Users/fdonadio/Projects/WonderSource/Frameworks/Core/ERDirectToWeb/build/ERDirectToWeb.framework/Resources/d2w.d2wmodel
 for reason: ** DirectToWeb exception - a rule cannot be instantiated if its 
right hand side is null. LHS=null  RHS=null


Cheers,
Flavio

On 29/10/2014, at 18:36, Fabian Peters lists.fab...@e-lumo.com wrote:

 Hi Flavio,
 
 Assuming you're starting out with an empty rule file, you're probably missing 
 one or more d2w.d2wmodel files from ERDirectToWeb or JavaDirectToWeb. If you 
 enable debug logging on er.directtoweb.ERD2WModel, you'll see which files get 
 loaded.
 
 Fabian
 
 Am 29.10.2014 um 20:46 schrieb Flavio Donadio fla...@donadio.com.br:
 
 Hello, all!
 
 
 I am getting this error when I run the app for the first time:
 
 [2014-10-29 17:37:34 BRST] WorkerThread1 
 br.com.codeprint.website.DirectAction: Exception in performActionNamed() 
 on the action login with the message: 
 com.webobjects.directtoweb.D2WModelException: Error - could not find any 
 rule that returns a pageName using the current context D2WContext 
 task=list, entity=Product, propertyKey=null, pageConfiguration=null
 - Error with action login:com.webobjects.directtoweb.D2WModelException: 
 Error - could not find any rule that returns a pageName using the current 
 context D2WContext task=list, entity=Product, propertyKey=null, 
 pageConfiguration=null, formValues:{username = (); password = (); wosid 
 = (WnGhLWoSK3H0Bvw752rq0g); WOSubmitAction = (login); }
 com.webobjects.directtoweb.D2WModelException: Error - could not find any 
 rule that returns a pageName using the current context D2WContext 
 task=list, entity=Product, propertyKey=null, pageConfiguration=null
  at com.webobjects.directtoweb.D2WContext.pageName(D2WContext.java:734)
  at 
 com.webobjects.directtoweb.D2W._pageWithContextTaskEntity(D2W.java:874)
  at 
 com.webobjects.directtoweb.D2W._pageWithContextTaskEntity(D2W.java:859)
  at 
 com.webobjects.directtoweb.D2W.pageForTaskAndEntityNamed(D2W.java:896)
  at com.webobjects.directtoweb.D2W.listPageForEntityNamed(D2W.java:1034)
  at 
 br.com.codeprint.website.MainNavigationController.listPageForEntityName(MainNavigationController.java:32)
  at 
 br.com.codeprint.website.MainNavigationController.homeAction(MainNavigationController.java:26)
  at 
 br.com.codeprint.website.DirectAction.loginAction(DirectAction.java:72)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:601)
  at 
 com.webobjects.appserver.WODirectAction.performActionNamed(WODirectAction.java:144)
  at 
 er.extensions.appserver.ERXDirectAction.performActionNamed(ERXDirectAction.java:418)
  at 
 er.directtoweb.ERD2WDirectAction.performActionNamed(ERD2WDirectAction.java:456)
  at 
 com.webobjects.appserver._private.WOActionRequestHandler._handleRequest(WOActionRequestHandler.java:259)
  at 
 com.webobjects.appserver._private.WOActionRequestHandler.handleRequest(WOActionRequestHandler.java:158)
  at 
 com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
  at 
 com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
  at 
 com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
  at java.lang.Thread.run(Thread.java:722)
 
 It's a new application and I triple-checked the boilerpate code that should 
 go into MainNavigationController.java. NavigationMenu.plist also seems to be 
 good.
 
 d2w.d2wmodel is empty, which seems strange. I had never looked into that 
 file before, I think.
 
 I still did not implement authentication, but changed the code according to 
 the tutorial at 
 http://wiki.wocommunity.org/display/WEB/Your+First+D2W+Project .
 
 Eclipse 4.4 (Luna) and WOLips 4.4 compiled by myself.
 
 
 Cheers,
 Flavio
 ___
 Do not post admin requests to the list. They will be ignored.
 

Re: D2W Problem in new application

2014-10-30 Thread Flavio Donadio
David,


I didn't modify this file, it's the default:

{
 rules = (
   {
 author = 20; 
 class = com.webobjects.directtoweb.Rule; 
 rhs = {
   class = com.webobjects.directtoweb.Assignment; 
   keyPath = appScreenStylesheet; 
   value = {
 filename = customizations.css; 
 framework = app; 
 media = screen; 
   }; 
 }; 
   }, 
   {
 author = 30; 
 class = com.webobjects.directtoweb.Rule; 
 rhs = {
   class = com.webobjects.directtoweb.Assignment; 
   keyPath = stylesheets; 
   value = (
 defaultMainScreenStylesheet, 
 defaultMainPrintStylesheet, 
 datepickerStylesheet, 
 appScreenStylesheet
   ); 
 }; 
   }, 
   {
 author = 40; 
 class = com.webobjects.directtoweb.Rule; 
 rhs = {
   class = com.webobjects.directtoweb.Assignment; 
   keyPath = navigationState; 
   value = Home; 
 }; 
   }, 
   {
 author = 60; 
 class = com.webobjects.directtoweb.Rule; 
 lhs = {
   class = com.webobjects.eocontrol.EOAndQualifier; 
   qualifiers = (
 {
   class = com.webobjects.eocontrol.EOKeyValueQualifier; 
   key = task; 
   selectorName = isEqualTo; 
   value = edit; 
 }, 
 {
   class = com.webobjects.eocontrol.EOKeyValueQualifier; 
   key = smartAttribute.className; 
   selectorName = isEqualTo; 
   value = java.lang.String; 
 }, 
 {
   class = com.webobjects.eocontrol.EOKeyValueQualifier; 
   key = smartAttribute.width; 
   selectorName = isGreaterThanOrEqualTo; 
   value = {
 class = java.lang.Number; 
 value = 110; 
   }; 
 }
   ); 
 }; 
 rhs = {
   class = com.webobjects.directtoweb.Assignment; 
   keyPath = componentName; 
   value = ERD2WEditString; 
 }; 
   }, 
   {
 author = 100; 
 class = com.webobjects.directtoweb.Rule; 
 rhs = {
   class = com.webobjects.directtoweb.Assignment; 
   keyPath = look; 
   value = ERModernLook; 
 }; 
   }, 
   {
 author = 100; 
 class = com.webobjects.directtoweb.Rule; 
 rhs = {
   class = com.webobjects.directtoweb.BooleanAssignment; 
   keyPath = isEntityEditable; 
   value = true; 
 }; 
   }, 
   {
 author = 100; 
 class = com.webobjects.directtoweb.Rule; 
 rhs = {
   class = com.webobjects.directtoweb.BooleanAssignment; 
   keyPath = isEntityDeletable; 
   value = true; 
 }; 
   }, 
   {
 author = 100; 
 class = com.webobjects.directtoweb.Rule; 
 lhs = {
   class = com.webobjects.eocontrol.EOAndQualifier; 
   qualifiers = (
 {
   class = com.webobjects.eocontrol.EOKeyValueQualifier; 
   key = RuleIsDisabled; 
   selectorName = isEqual; 
   value = YES; 
 }, 
 {
   class = com.webobjects.eocontrol.EOKeyValueQualifier; 
   key = pageConfiguration; 
   selectorName = isLike; 
   value = EditRelationship*; 
 }
   ); 
 }; 
 rhs = {
   class = com.webobjects.directtoweb.BooleanAssignment; 
   keyPath = useAjaxControls; 
   value = false; 
 }; 
   }, 
   {
 author = 100; 
 class = com.webobjects.directtoweb.Rule; 
 lhs = {
   class = com.webobjects.eocontrol.EOAndQualifier; 
   qualifiers = (
 {
   class = com.webobjects.eocontrol.EOKeyValueQualifier; 
   key = task; 
   selectorName = isEqualTo; 
   value = inspect; 
 }, 
 {
   class = com.webobjects.eocontrol.EOKeyValueQualifier; 
   key = smartRelationship.isToMany; 
   selectorName = isEqualTo; 
   value = {
 class = java.lang.Number; 
 value = 1; 
   }; 
 }
   ); 
 }; 
 rhs = {
   class = com.webobjects.directtoweb.Assignment; 
   keyPath = componentName; 
   value = ERDList; 
 }; 
   }, 
   {
 author = 100; 
 class = com.webobjects.directtoweb.Rule; 
 lhs = {
   class = com.webobjects.eocontrol.EOAndQualifier; 
   qualifiers = (
 {
   class = com.webobjects.eocontrol.EOKeyValueQualifier; 
   key = smartRelationship; 
   selectorName = isNotEqualTo; 
   value = {
 class = com.webobjects.foundation.NSKeyValueCoding$Null; 
   }; 
 }, 
 {
   class = com.webobjects.eocontrol.EOKeyValueQualifier; 
   key = smartRelationship.isToMany; 
   selectorName = isEqualTo; 
   value = {
 class = java.lang.Number; 
 value = 0; 
   }; 
 }, 
 {
   class = com.webobjects.eocontrol.EOKeyValueQualifier; 
   key = task; 
   selectorName = isEqualTo; 
   value = inspect; 
 }
 

Re: D2W Problem in new application

2014-10-30 Thread Theodore Petrosky
D2W’s magic is that it uses the model for everything. That’s a bit of 
overstatement.

Seriously, what do you get if you:
1. create a new Wonder D2W application (defaults for everything, do not refer 
to any other projects)
2. run it.

that’s right. No model. just a dummy D2W app. you should get the login page, 
when you login, you get a Search All page.

does this work? If it does not, then we can trouble shoot your set up. If it 
does work, we can add a model and see what it does.

JMHO BTW

Ted



On Oct 30, 2014, at 10:49 AM, Flavio Donadio fla...@donadio.com.br wrote:

 Theodore,
 
 
 I followed the steps from the REST Tutorial to create a model, but I am 
 creating a D2W application instead. I didn't create a framework. I've done 
 this before and it worked.
 
 But this error message is a little more enlightening:
 
 java.lang.IllegalArgumentException: com.webobjects.appserver.WOApplication 
 Class 'Session' exists (interface org.apache.axis.session.Session) but is not 
 a subclass of WOSession.
 
 I added the right imports to the class files, so it uses the Session class in 
 the project. But it seems something is going wrong...
 
 
 Cheers,
 Flavio
 
 On 29/10/2014, at 18:35, Theodore Petrosky tedp...@yahoo.com wrote:
 
 d2w.d2wmodel is empty when you create a new d2w app. the action happens in 
 user.d2wmodel
 
 This is odd that I see entity=Product. Where is that coming from?
 
 basically if you create a new d2w app with NO model. it should start. you 
 just can’t do anything.
 
 according to the docs, you are supposed to be picking up the model you 
 created in the last step:
 
 http://wiki.wocommunity.org/display/WEB/Your+First+Framework
 
 which is creating a framework from the model you created in the previous 
 Your First Rest Project.
 
 did you do this?
 
 
 
 
 
 On Oct 29, 2014, at 3:46 PM, Flavio Donadio fla...@donadio.com.br wrote:
 
 Hello, all!
 
 
 I am getting this error when I run the app for the first time:
 
 [2014-10-29 17:37:34 BRST] WorkerThread1 
 br.com.codeprint.website.DirectAction: Exception in performActionNamed() 
 on the action login with the message: 
 com.webobjects.directtoweb.D2WModelException: Error - could not find any 
 rule that returns a pageName using the current context D2WContext 
 task=list, entity=Product, propertyKey=null, pageConfiguration=null
 - Error with action login:com.webobjects.directtoweb.D2WModelException: 
 Error - could not find any rule that returns a pageName using the current 
 context D2WContext task=list, entity=Product, propertyKey=null, 
 pageConfiguration=null, formValues:{username = (); password = (); 
 wosid = (WnGhLWoSK3H0Bvw752rq0g); WOSubmitAction = (login); }
 com.webobjects.directtoweb.D2WModelException: Error - could not find any 
 rule that returns a pageName using the current context D2WContext 
 task=list, entity=Product, propertyKey=null, pageConfiguration=null
 at com.webobjects.directtoweb.D2WContext.pageName(D2WContext.java:734)
 at 
 com.webobjects.directtoweb.D2W._pageWithContextTaskEntity(D2W.java:874)
 at 
 com.webobjects.directtoweb.D2W._pageWithContextTaskEntity(D2W.java:859)
 at 
 com.webobjects.directtoweb.D2W.pageForTaskAndEntityNamed(D2W.java:896)
 at com.webobjects.directtoweb.D2W.listPageForEntityNamed(D2W.java:1034)
 at 
 br.com.codeprint.website.MainNavigationController.listPageForEntityName(MainNavigationController.java:32)
 at 
 br.com.codeprint.website.MainNavigationController.homeAction(MainNavigationController.java:26)
 at 
 br.com.codeprint.website.DirectAction.loginAction(DirectAction.java:72)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:601)
 at 
 com.webobjects.appserver.WODirectAction.performActionNamed(WODirectAction.java:144)
 at 
 er.extensions.appserver.ERXDirectAction.performActionNamed(ERXDirectAction.java:418)
 at 
 er.directtoweb.ERD2WDirectAction.performActionNamed(ERD2WDirectAction.java:456)
 at 
 com.webobjects.appserver._private.WOActionRequestHandler._handleRequest(WOActionRequestHandler.java:259)
 at 
 com.webobjects.appserver._private.WOActionRequestHandler.handleRequest(WOActionRequestHandler.java:158)
 at 
 com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
 at 
 com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
 at 
 com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
 at java.lang.Thread.run(Thread.java:722)
 
 It's a new application and I triple-checked the boilerpate code that should 
 go into MainNavigationController.java. NavigationMenu.plist also seems to 
 be good.
 
 d2w.d2wmodel is empty, which seems strange. I had never looked into that 
 file before, I think.

Re: D2W Problem in new application

2014-10-30 Thread Fabian Peters
Hi Flavio,

It looks like your classpath isn't as it should be. Instead of a WOSession you 
get a org.apache.axis.session.Session. And the d2wmodel files don't seem to get 
referenced correctly either. You could open one of them, e.g. 
/Users/fdonadio/Projects/WonderSource/Frameworks/D2W/ERModernLook/build/ERModernLook.framework/Resources/d2w.d2wmodel
 in RuleModeler and see whether it can be opened at all and whether the 
contents look OK.

Fabian

Am 30.10.2014 um 16:01 schrieb Flavio Donadio fla...@donadio.com.br:

 Fabian,
 
 
 I see these on the console with no debugging enabled:
 
 [2014-10-30 12:45:55 BRST] main ** DirectToWeb could not merge d2wmodel 
 from 
 file:/Users/fdonadio/Projects/WonderSource/Frameworks/D2W/ERModernLook/build/ERModernLook.framework/Resources/d2w.d2wmodel
  for reason: ** DirectToWeb exception - a rule cannot be instantiated if its 
 right hand side is null. LHS=(look = 'ERModernLook')  RHS=null
 [2014-10-30 12:45:55 BRST] main ** DirectToWeb could not merge d2wmodel 
 from 
 file:/Users/fdonadio/Projects/WonderSource/Frameworks/D2W/ERModernDirectToWeb/build/ERModernDirectToWeb.framework/Resources/d2w.d2wmodel
  for reason: ** DirectToWeb exception - a rule cannot be instantiated if its 
 right hand side is null. LHS=null  RHS=null
 [2014-10-30 12:45:55 BRST] main ** DirectToWeb could not merge d2wmodel 
 from 
 file:/Users/fdonadio/Projects/WonderSource/Frameworks/Core/ERDirectToWeb/build/ERDirectToWeb.framework/Resources/d2w.d2wmodel
  for reason: ** DirectToWeb exception - a rule cannot be instantiated if its 
 right hand side is null. LHS=null  RHS=null
 
 
 Cheers,
 Flavio
 
 On 29/10/2014, at 18:36, Fabian Peters lists.fab...@e-lumo.com wrote:
 
 Hi Flavio,
 
 Assuming you're starting out with an empty rule file, you're probably 
 missing one or more d2w.d2wmodel files from ERDirectToWeb or 
 JavaDirectToWeb. If you enable debug logging on er.directtoweb.ERD2WModel, 
 you'll see which files get loaded.
 
 Fabian
 
 Am 29.10.2014 um 20:46 schrieb Flavio Donadio fla...@donadio.com.br:
 
 Hello, all!
 
 
 I am getting this error when I run the app for the first time:
 
 [2014-10-29 17:37:34 BRST] WorkerThread1 
 br.com.codeprint.website.DirectAction: Exception in performActionNamed() 
 on the action login with the message: 
 com.webobjects.directtoweb.D2WModelException: Error - could not find any 
 rule that returns a pageName using the current context D2WContext 
 task=list, entity=Product, propertyKey=null, pageConfiguration=null
 - Error with action login:com.webobjects.directtoweb.D2WModelException: 
 Error - could not find any rule that returns a pageName using the current 
 context D2WContext task=list, entity=Product, propertyKey=null, 
 pageConfiguration=null, formValues:{username = (); password = (); 
 wosid = (WnGhLWoSK3H0Bvw752rq0g); WOSubmitAction = (login); }
 com.webobjects.directtoweb.D2WModelException: Error - could not find any 
 rule that returns a pageName using the current context D2WContext 
 task=list, entity=Product, propertyKey=null, pageConfiguration=null
 at com.webobjects.directtoweb.D2WContext.pageName(D2WContext.java:734)
 at 
 com.webobjects.directtoweb.D2W._pageWithContextTaskEntity(D2W.java:874)
 at 
 com.webobjects.directtoweb.D2W._pageWithContextTaskEntity(D2W.java:859)
 at 
 com.webobjects.directtoweb.D2W.pageForTaskAndEntityNamed(D2W.java:896)
 at com.webobjects.directtoweb.D2W.listPageForEntityNamed(D2W.java:1034)
 at 
 br.com.codeprint.website.MainNavigationController.listPageForEntityName(MainNavigationController.java:32)
 at 
 br.com.codeprint.website.MainNavigationController.homeAction(MainNavigationController.java:26)
 at 
 br.com.codeprint.website.DirectAction.loginAction(DirectAction.java:72)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:601)
 at 
 com.webobjects.appserver.WODirectAction.performActionNamed(WODirectAction.java:144)
 at 
 er.extensions.appserver.ERXDirectAction.performActionNamed(ERXDirectAction.java:418)
 at 
 er.directtoweb.ERD2WDirectAction.performActionNamed(ERD2WDirectAction.java:456)
 at 
 com.webobjects.appserver._private.WOActionRequestHandler._handleRequest(WOActionRequestHandler.java:259)
 at 
 com.webobjects.appserver._private.WOActionRequestHandler.handleRequest(WOActionRequestHandler.java:158)
 at 
 com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
 at 
 com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
 at 
 com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
 at java.lang.Thread.run(Thread.java:722)
 
 It's a new application and I triple-checked the boilerpate code that should 
 go into 

Re: D2W Problem in new application

2014-10-30 Thread Flavio Donadio
Theodore,


Got the same problem: Class 'Session' exists.

I tried some old projects that used to work and they are also showing the same 
problem.


Cheers,
Flavio

On 30/10/2014, at 13:46, Theodore Petrosky tedp...@yahoo.com wrote:

 D2W’s magic is that it uses the model for everything. That’s a bit of 
 overstatement.
 
 Seriously, what do you get if you:
 1. create a new Wonder D2W application (defaults for everything, do not refer 
 to any other projects)
 2. run it.
 
 that’s right. No model. just a dummy D2W app. you should get the login page, 
 when you login, you get a Search All page.
 
 does this work? If it does not, then we can trouble shoot your set up. If it 
 does work, we can add a model and see what it does.
 
 JMHO BTW
 
 Ted
 
 
 
 On Oct 30, 2014, at 10:49 AM, Flavio Donadio fla...@donadio.com.br wrote:
 
 Theodore,
 
 
 I followed the steps from the REST Tutorial to create a model, but I am 
 creating a D2W application instead. I didn't create a framework. I've done 
 this before and it worked.
 
 But this error message is a little more enlightening:
 
 java.lang.IllegalArgumentException: com.webobjects.appserver.WOApplication 
 Class 'Session' exists (interface org.apache.axis.session.Session) but is 
 not a subclass of WOSession.
 
 I added the right imports to the class files, so it uses the Session class 
 in the project. But it seems something is going wrong...
 
 
 Cheers,
 Flavio
 
 On 29/10/2014, at 18:35, Theodore Petrosky tedp...@yahoo.com wrote:
 
 d2w.d2wmodel is empty when you create a new d2w app. the action happens in 
 user.d2wmodel
 
 This is odd that I see entity=Product. Where is that coming from?
 
 basically if you create a new d2w app with NO model. it should start. you 
 just can’t do anything.
 
 according to the docs, you are supposed to be picking up the model you 
 created in the last step:
 
 http://wiki.wocommunity.org/display/WEB/Your+First+Framework
 
 which is creating a framework from the model you created in the previous 
 Your First Rest Project.
 
 did you do this?
 
 
 
 
 
 On Oct 29, 2014, at 3:46 PM, Flavio Donadio fla...@donadio.com.br wrote:
 
 Hello, all!
 
 
 I am getting this error when I run the app for the first time:
 
 [2014-10-29 17:37:34 BRST] WorkerThread1 
 br.com.codeprint.website.DirectAction: Exception in performActionNamed() 
 on the action login with the message: 
 com.webobjects.directtoweb.D2WModelException: Error - could not find any 
 rule that returns a pageName using the current context D2WContext 
 task=list, entity=Product, propertyKey=null, pageConfiguration=null
 - Error with action login:com.webobjects.directtoweb.D2WModelException: 
 Error - could not find any rule that returns a pageName using the current 
 context D2WContext task=list, entity=Product, propertyKey=null, 
 pageConfiguration=null, formValues:{username = (); password = (); 
 wosid = (WnGhLWoSK3H0Bvw752rq0g); WOSubmitAction = (login); }
 com.webobjects.directtoweb.D2WModelException: Error - could not find any 
 rule that returns a pageName using the current context D2WContext 
 task=list, entity=Product, propertyKey=null, pageConfiguration=null
at com.webobjects.directtoweb.D2WContext.pageName(D2WContext.java:734)
at 
 com.webobjects.directtoweb.D2W._pageWithContextTaskEntity(D2W.java:874)
at 
 com.webobjects.directtoweb.D2W._pageWithContextTaskEntity(D2W.java:859)
at 
 com.webobjects.directtoweb.D2W.pageForTaskAndEntityNamed(D2W.java:896)
at com.webobjects.directtoweb.D2W.listPageForEntityNamed(D2W.java:1034)
at 
 br.com.codeprint.website.MainNavigationController.listPageForEntityName(MainNavigationController.java:32)
at 
 br.com.codeprint.website.MainNavigationController.homeAction(MainNavigationController.java:26)
at 
 br.com.codeprint.website.DirectAction.loginAction(DirectAction.java:72)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at 
 com.webobjects.appserver.WODirectAction.performActionNamed(WODirectAction.java:144)
at 
 er.extensions.appserver.ERXDirectAction.performActionNamed(ERXDirectAction.java:418)
at 
 er.directtoweb.ERD2WDirectAction.performActionNamed(ERD2WDirectAction.java:456)
at 
 com.webobjects.appserver._private.WOActionRequestHandler._handleRequest(WOActionRequestHandler.java:259)
at 
 com.webobjects.appserver._private.WOActionRequestHandler.handleRequest(WOActionRequestHandler.java:158)
at 
 com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
at 
 com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
at 
 com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
at java.lang.Thread.run(Thread.java:722)
 
 It's a new application and 

Re: D2W Problem in new application

2014-10-30 Thread Flavio Donadio
Fabian,


I just did and the file seems to be OK:

/Users/fdonadio/Projects/WonderSource/Frameworks/D2W/ERModernLook/build/ERModernLook.framework/Resources/d2w.d2wmodel

... opens in RuleModeler perfectly.


Cheers,
Flavio

On 30/10/2014, at 14:24, Fabian Peters lists.fab...@e-lumo.com wrote:

 Hi Flavio,
 
 It looks like your classpath isn't as it should be. Instead of a WOSession 
 you get a org.apache.axis.session.Session. And the d2wmodel files don't seem 
 to get referenced correctly either. You could open one of them, e.g. 
 /Users/fdonadio/Projects/WonderSource/Frameworks/D2W/ERModernLook/build/ERModernLook.framework/Resources/d2w.d2wmodel
  in RuleModeler and see whether it can be opened at all and whether the 
 contents look OK.
 
 Fabian
 
 Am 30.10.2014 um 16:01 schrieb Flavio Donadio fla...@donadio.com.br:
 
 Fabian,
 
 
 I see these on the console with no debugging enabled:
 
 [2014-10-30 12:45:55 BRST] main ** DirectToWeb could not merge d2wmodel 
 from 
 file:/Users/fdonadio/Projects/WonderSource/Frameworks/D2W/ERModernLook/build/ERModernLook.framework/Resources/d2w.d2wmodel
  for reason: ** DirectToWeb exception - a rule cannot be instantiated if its 
 right hand side is null. LHS=(look = 'ERModernLook')  RHS=null
 [2014-10-30 12:45:55 BRST] main ** DirectToWeb could not merge d2wmodel 
 from 
 file:/Users/fdonadio/Projects/WonderSource/Frameworks/D2W/ERModernDirectToWeb/build/ERModernDirectToWeb.framework/Resources/d2w.d2wmodel
  for reason: ** DirectToWeb exception - a rule cannot be instantiated if its 
 right hand side is null. LHS=null  RHS=null
 [2014-10-30 12:45:55 BRST] main ** DirectToWeb could not merge d2wmodel 
 from 
 file:/Users/fdonadio/Projects/WonderSource/Frameworks/Core/ERDirectToWeb/build/ERDirectToWeb.framework/Resources/d2w.d2wmodel
  for reason: ** DirectToWeb exception - a rule cannot be instantiated if its 
 right hand side is null. LHS=null  RHS=null
 
 
 Cheers,
 Flavio
 
 On 29/10/2014, at 18:36, Fabian Peters lists.fab...@e-lumo.com wrote:
 
 Hi Flavio,
 
 Assuming you're starting out with an empty rule file, you're probably 
 missing one or more d2w.d2wmodel files from ERDirectToWeb or 
 JavaDirectToWeb. If you enable debug logging on er.directtoweb.ERD2WModel, 
 you'll see which files get loaded.
 
 Fabian
 
 Am 29.10.2014 um 20:46 schrieb Flavio Donadio fla...@donadio.com.br:
 
 Hello, all!
 
 
 I am getting this error when I run the app for the first time:
 
 [2014-10-29 17:37:34 BRST] WorkerThread1 
 br.com.codeprint.website.DirectAction: Exception in performActionNamed() 
 on the action login with the message: 
 com.webobjects.directtoweb.D2WModelException: Error - could not find any 
 rule that returns a pageName using the current context D2WContext 
 task=list, entity=Product, propertyKey=null, pageConfiguration=null
 - Error with action login:com.webobjects.directtoweb.D2WModelException: 
 Error - could not find any rule that returns a pageName using the current 
 context D2WContext task=list, entity=Product, propertyKey=null, 
 pageConfiguration=null, formValues:{username = (); password = (); 
 wosid = (WnGhLWoSK3H0Bvw752rq0g); WOSubmitAction = (login); }
 com.webobjects.directtoweb.D2WModelException: Error - could not find any 
 rule that returns a pageName using the current context D2WContext 
 task=list, entity=Product, propertyKey=null, pageConfiguration=null
at com.webobjects.directtoweb.D2WContext.pageName(D2WContext.java:734)
at 
 com.webobjects.directtoweb.D2W._pageWithContextTaskEntity(D2W.java:874)
at 
 com.webobjects.directtoweb.D2W._pageWithContextTaskEntity(D2W.java:859)
at 
 com.webobjects.directtoweb.D2W.pageForTaskAndEntityNamed(D2W.java:896)
at com.webobjects.directtoweb.D2W.listPageForEntityNamed(D2W.java:1034)
at 
 br.com.codeprint.website.MainNavigationController.listPageForEntityName(MainNavigationController.java:32)
at 
 br.com.codeprint.website.MainNavigationController.homeAction(MainNavigationController.java:26)
at 
 br.com.codeprint.website.DirectAction.loginAction(DirectAction.java:72)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at 
 com.webobjects.appserver.WODirectAction.performActionNamed(WODirectAction.java:144)
at 
 er.extensions.appserver.ERXDirectAction.performActionNamed(ERXDirectAction.java:418)
at 
 er.directtoweb.ERD2WDirectAction.performActionNamed(ERD2WDirectAction.java:456)
at 
 com.webobjects.appserver._private.WOActionRequestHandler._handleRequest(WOActionRequestHandler.java:259)
at 
 com.webobjects.appserver._private.WOActionRequestHandler.handleRequest(WOActionRequestHandler.java:158)
at 
 com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
at 
 

Re: D2W Problem in new application

2014-10-29 Thread David Holt
what is in your user.d2wmodel file?


On Oct 29, 2014, at 12:46 PM, Flavio Donadio fla...@donadio.com.br wrote:

 Hello, all!
 
 
 I am getting this error when I run the app for the first time:
 
 [2014-10-29 17:37:34 BRST] WorkerThread1 
 br.com.codeprint.website.DirectAction: Exception in performActionNamed() on 
 the action login with the message: 
 com.webobjects.directtoweb.D2WModelException: Error - could not find any rule 
 that returns a pageName using the current context D2WContext task=list, 
 entity=Product, propertyKey=null, pageConfiguration=null
 - Error with action login:com.webobjects.directtoweb.D2WModelException: Error 
 - could not find any rule that returns a pageName using the current context 
 D2WContext task=list, entity=Product, propertyKey=null, 
 pageConfiguration=null, formValues:{username = (); password = (); wosid 
 = (WnGhLWoSK3H0Bvw752rq0g); WOSubmitAction = (login); }
 com.webobjects.directtoweb.D2WModelException: Error - could not find any rule 
 that returns a pageName using the current context D2WContext task=list, 
 entity=Product, propertyKey=null, pageConfiguration=null
   at com.webobjects.directtoweb.D2WContext.pageName(D2WContext.java:734)
   at 
 com.webobjects.directtoweb.D2W._pageWithContextTaskEntity(D2W.java:874)
   at 
 com.webobjects.directtoweb.D2W._pageWithContextTaskEntity(D2W.java:859)
   at 
 com.webobjects.directtoweb.D2W.pageForTaskAndEntityNamed(D2W.java:896)
   at com.webobjects.directtoweb.D2W.listPageForEntityNamed(D2W.java:1034)
   at 
 br.com.codeprint.website.MainNavigationController.listPageForEntityName(MainNavigationController.java:32)
   at 
 br.com.codeprint.website.MainNavigationController.homeAction(MainNavigationController.java:26)
   at 
 br.com.codeprint.website.DirectAction.loginAction(DirectAction.java:72)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:601)
   at 
 com.webobjects.appserver.WODirectAction.performActionNamed(WODirectAction.java:144)
   at 
 er.extensions.appserver.ERXDirectAction.performActionNamed(ERXDirectAction.java:418)
   at 
 er.directtoweb.ERD2WDirectAction.performActionNamed(ERD2WDirectAction.java:456)
   at 
 com.webobjects.appserver._private.WOActionRequestHandler._handleRequest(WOActionRequestHandler.java:259)
   at 
 com.webobjects.appserver._private.WOActionRequestHandler.handleRequest(WOActionRequestHandler.java:158)
   at 
 com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
   at 
 com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
   at 
 com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
   at java.lang.Thread.run(Thread.java:722)
 
 It's a new application and I triple-checked the boilerpate code that should 
 go into MainNavigationController.java. NavigationMenu.plist also seems to be 
 good.
 
 d2w.d2wmodel is empty, which seems strange. I had never looked into that file 
 before, I think.
 
 I still did not implement authentication, but changed the code according to 
 the tutorial at 
 http://wiki.wocommunity.org/display/WEB/Your+First+D2W+Project .
 
 Eclipse 4.4 (Luna) and WOLips 4.4 compiled by myself.
 
 
 Cheers,
 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/programmingosx%40mac.com
 
 This email sent to programming...@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

Re: D2W Problem in new application

2014-10-29 Thread Theodore Petrosky
d2w.d2wmodel is empty when you create a new d2w app. the action happens in 
user.d2wmodel

This is odd that I see entity=Product. Where is that coming from?

basically if you create a new d2w app with NO model. it should start. you just 
can’t do anything.

according to the docs, you are supposed to be picking up the model you created 
in the last step:

http://wiki.wocommunity.org/display/WEB/Your+First+Framework

which is creating a framework from the model you created in the previous Your 
First Rest Project.

did you do this?





On Oct 29, 2014, at 3:46 PM, Flavio Donadio fla...@donadio.com.br wrote:

 Hello, all!
 
 
 I am getting this error when I run the app for the first time:
 
 [2014-10-29 17:37:34 BRST] WorkerThread1 
 br.com.codeprint.website.DirectAction: Exception in performActionNamed() on 
 the action login with the message: 
 com.webobjects.directtoweb.D2WModelException: Error - could not find any rule 
 that returns a pageName using the current context D2WContext task=list, 
 entity=Product, propertyKey=null, pageConfiguration=null
 - Error with action login:com.webobjects.directtoweb.D2WModelException: Error 
 - could not find any rule that returns a pageName using the current context 
 D2WContext task=list, entity=Product, propertyKey=null, 
 pageConfiguration=null, formValues:{username = (); password = (); wosid 
 = (WnGhLWoSK3H0Bvw752rq0g); WOSubmitAction = (login); }
 com.webobjects.directtoweb.D2WModelException: Error - could not find any rule 
 that returns a pageName using the current context D2WContext task=list, 
 entity=Product, propertyKey=null, pageConfiguration=null
   at com.webobjects.directtoweb.D2WContext.pageName(D2WContext.java:734)
   at 
 com.webobjects.directtoweb.D2W._pageWithContextTaskEntity(D2W.java:874)
   at 
 com.webobjects.directtoweb.D2W._pageWithContextTaskEntity(D2W.java:859)
   at 
 com.webobjects.directtoweb.D2W.pageForTaskAndEntityNamed(D2W.java:896)
   at com.webobjects.directtoweb.D2W.listPageForEntityNamed(D2W.java:1034)
   at 
 br.com.codeprint.website.MainNavigationController.listPageForEntityName(MainNavigationController.java:32)
   at 
 br.com.codeprint.website.MainNavigationController.homeAction(MainNavigationController.java:26)
   at 
 br.com.codeprint.website.DirectAction.loginAction(DirectAction.java:72)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:601)
   at 
 com.webobjects.appserver.WODirectAction.performActionNamed(WODirectAction.java:144)
   at 
 er.extensions.appserver.ERXDirectAction.performActionNamed(ERXDirectAction.java:418)
   at 
 er.directtoweb.ERD2WDirectAction.performActionNamed(ERD2WDirectAction.java:456)
   at 
 com.webobjects.appserver._private.WOActionRequestHandler._handleRequest(WOActionRequestHandler.java:259)
   at 
 com.webobjects.appserver._private.WOActionRequestHandler.handleRequest(WOActionRequestHandler.java:158)
   at 
 com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
   at 
 com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
   at 
 com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
   at java.lang.Thread.run(Thread.java:722)
 
 It's a new application and I triple-checked the boilerpate code that should 
 go into MainNavigationController.java. NavigationMenu.plist also seems to be 
 good.
 
 d2w.d2wmodel is empty, which seems strange. I had never looked into that file 
 before, I think.
 
 I still did not implement authentication, but changed the code according to 
 the tutorial at 
 http://wiki.wocommunity.org/display/WEB/Your+First+D2W+Project .
 
 Eclipse 4.4 (Luna) and WOLips 4.4 compiled by myself.
 
 
 Cheers,
 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/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 Problem in new application

2014-10-29 Thread Fabian Peters
Hi Flavio,

Assuming you're starting out with an empty rule file, you're probably missing 
one or more d2w.d2wmodel files from ERDirectToWeb or JavaDirectToWeb. If you 
enable debug logging on er.directtoweb.ERD2WModel, you'll see which files get 
loaded.

Fabian

Am 29.10.2014 um 20:46 schrieb Flavio Donadio fla...@donadio.com.br:

 Hello, all!
 
 
 I am getting this error when I run the app for the first time:
 
 [2014-10-29 17:37:34 BRST] WorkerThread1 
 br.com.codeprint.website.DirectAction: Exception in performActionNamed() on 
 the action login with the message: 
 com.webobjects.directtoweb.D2WModelException: Error - could not find any rule 
 that returns a pageName using the current context D2WContext task=list, 
 entity=Product, propertyKey=null, pageConfiguration=null
 - Error with action login:com.webobjects.directtoweb.D2WModelException: Error 
 - could not find any rule that returns a pageName using the current context 
 D2WContext task=list, entity=Product, propertyKey=null, 
 pageConfiguration=null, formValues:{username = (); password = (); wosid 
 = (WnGhLWoSK3H0Bvw752rq0g); WOSubmitAction = (login); }
 com.webobjects.directtoweb.D2WModelException: Error - could not find any rule 
 that returns a pageName using the current context D2WContext task=list, 
 entity=Product, propertyKey=null, pageConfiguration=null
   at com.webobjects.directtoweb.D2WContext.pageName(D2WContext.java:734)
   at 
 com.webobjects.directtoweb.D2W._pageWithContextTaskEntity(D2W.java:874)
   at 
 com.webobjects.directtoweb.D2W._pageWithContextTaskEntity(D2W.java:859)
   at 
 com.webobjects.directtoweb.D2W.pageForTaskAndEntityNamed(D2W.java:896)
   at com.webobjects.directtoweb.D2W.listPageForEntityNamed(D2W.java:1034)
   at 
 br.com.codeprint.website.MainNavigationController.listPageForEntityName(MainNavigationController.java:32)
   at 
 br.com.codeprint.website.MainNavigationController.homeAction(MainNavigationController.java:26)
   at 
 br.com.codeprint.website.DirectAction.loginAction(DirectAction.java:72)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:601)
   at 
 com.webobjects.appserver.WODirectAction.performActionNamed(WODirectAction.java:144)
   at 
 er.extensions.appserver.ERXDirectAction.performActionNamed(ERXDirectAction.java:418)
   at 
 er.directtoweb.ERD2WDirectAction.performActionNamed(ERD2WDirectAction.java:456)
   at 
 com.webobjects.appserver._private.WOActionRequestHandler._handleRequest(WOActionRequestHandler.java:259)
   at 
 com.webobjects.appserver._private.WOActionRequestHandler.handleRequest(WOActionRequestHandler.java:158)
   at 
 com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
   at 
 com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
   at 
 com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
   at java.lang.Thread.run(Thread.java:722)
 
 It's a new application and I triple-checked the boilerpate code that should 
 go into MainNavigationController.java. NavigationMenu.plist also seems to be 
 good.
 
 d2w.d2wmodel is empty, which seems strange. I had never looked into that file 
 before, I think.
 
 I still did not implement authentication, but changed the code according to 
 the tutorial at 
 http://wiki.wocommunity.org/display/WEB/Your+First+D2W+Project .
 
 Eclipse 4.4 (Luna) and WOLips 4.4 compiled by myself.
 
 
 Cheers,
 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/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 Generic Annotations?

2014-10-17 Thread Fabian Peters
Hi Markus,

Have you looked at ERCDisplayHelpText? It'll need some work to make it usable 
in a modern app, though. There's also the model documentation, which you could 
access from the rules and maybe localize via ERDDelayedLocalizedAssignment.

Fabian

Am 17.10.2014 um 11:35 schrieb Markus Ruggiero mailingli...@kataputt.com:

 Folks,
 
 is there a way to generically have (styled) annotations for any propertyKey?
 
 What I have today (example is ERD2WEditToOneRelationship):
 
 PastedGraphic-1.png
 
 What I would like to have:
 
 PastedGraphic-2.tiff
 
 There is something available with certain fields from the EOModel (like 
 units in the user dictionary of numeric fields), but what I need is a more 
 general way that works for any type of component in use.
 
 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

Re: d2w attachment rule?

2014-08-18 Thread David LeBer
ERAttachmentFlexibleEditor exposes ERAttachmentLink’s target binding, as 
‘viewTarget’ but that isn’t currently bound to anything in ERMD2WEditAttachment.

You could probably enhance ERMD2WEditAttachment with something like this wod 
entry and set the appropriate rule to get what you need:

viewTarget = ^attachmentViewLinkTarget;

D

On Aug 17, 2014, at 6:59 PM, Theodore Petrosky tedp...@yahoo.com wrote:

 Is there a way to rulify a target = “_blank” in the ERD2WWEditAttachment 
 component? 
 
 I would like to have the downloaded pdf open in a new window. I realize that 
 I can clone ERD2WEditAttachment but I thought I would ask if it could be done 
 with a rule.
 
 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/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: D2W attachment location and delete

2014-08-17 Thread Theodore Petrosky
I found this in the comments of ERD2WEditAttachment:

 * Prerequisite: you must set a D2W rule for key 'enctype' with value 
multipart/form-data in the edit page template

so I added a rule:

100 : pageConfiguration = 'EditArticle' = formEncoding = multipart/form-data 
[com.webobjects.directtoweb.Assignment]

Now I need to figure out how to make thumbnails of PDFs, and display the 
thumbnail.






On Aug 15, 2014, at 1:15 PM, Ramsey Gurley rgur...@smarthealth.com wrote:

 
 On Aug 15, 2014, at 10:01 AM, Theodore Petrosky tedp...@yahoo.com wrote:
 
 Ok, I finally figured out how to add an attachment to a relation in D2W. 
 However, is it expected behavior that when you delete an asset, it only 
 deletes the ‘link’ to the asset, but not the asset itself.
 
 I’m assuming you have a - b - erattachment
 
 If you have the a-b relationship “owns destination” then the related eo 
 will be deleted when it is removed from the relationship. You can then have 
 that eo cascade delete the attachment eo.
 
 
 Meaning I upload a pdf. later I delete it from the relation. the asset shows 
 one less item in its list, however the pdf is still in the file/database. 
 
 It is effectively orphaned. 
 
 Also, when I click to edit the attachment, there is a ‘remove’ button 
 associated with the file. If I click it, the app crashes with: 
 
 Error:   java.lang.IllegalArgumentException: This form is missing a 
 'enctype=multipart/form-data' attribute. It is required for WOFileUpload to 
 work.
 Reason:  This form is missing a 'enctype=multipart/form-data' attribute. 
 It is required for WOFileUpload to work.
 
 
 Ted
 
 I have a custom assignment to handle most of my form encoding cases.
 
 https://github.com/nullterminated/ponder/blob/master/ERR2d2w/Sources/er/r2d2w/assignments/R2DDefaultAttachmentAssignment.java#L47
 
 That probably won’t work if you have set up a nested inline edit page or 
 something though.
 

 ___
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 attachment location and delete

2014-08-17 Thread Ramsey Gurley
Or just. 

100 : *true* = formEncoding = multipart/form-data 
[com.webobjects.directtoweb.Assignment]

I think it should work and make little difference in bandwidth unless you site 
is huge.

Theodore Petrosky tedp...@yahoo.com wrote:

I found this in the comments of ERD2WEditAttachment:


 * Prerequisite: you must set a D2W rule for key 'enctype' with value 
multipart/form-data in the edit page template


so I added a rule:


100 : pageConfiguration = 'EditArticle' = formEncoding = 
multipart/form-data [com.webobjects.directtoweb.Assignment]


Now I need to figure out how to make thumbnails of PDFs, and display the 
thumbnail.







On Aug 15, 2014, at 1:15 PM, Ramsey Gurley rgur...@smarthealth.com wrote:



On Aug 15, 2014, at 10:01 AM, Theodore Petrosky tedp...@yahoo.com wrote:


Ok, I finally figured out how to add an attachment to a relation in D2W. 
However, is it expected behavior that when you delete an asset, it only 
deletes the ‘link’ to the asset, but not the asset itself.


I’m assuming you have a - b - erattachment


If you have the a-b relationship “owns destination” then the related eo will 
be deleted when it is removed from the relationship. You can then have that eo 
cascade delete the attachment eo.



Meaning I upload a pdf. later I delete it from the relation. the asset shows 
one less item in its list, however the pdf is still in the file/database. 


It is effectively orphaned. 


Also, when I click to edit the attachment, there is a ‘remove’ button 
associated with the file. If I click it, the app crashes with: 


Error:java.lang.IllegalArgumentException: This form is missing a 
'enctype=multipart/form-data' attribute. It is required for WOFileUpload to 
work.Reason:This form is missing a 'enctype=multipart/form-data' attribute. It 
is required for WOFileUpload to work.



Ted


I have a custom assignment to handle most of my form encoding cases.


https://github.com/nullterminated/ponder/blob/master/ERR2d2w/Sources/er/r2d2w/assignments/R2DDefaultAttachmentAssignment.java#L47


That probably won’t work if you have set up a nested inline edit page or 
something though.



 ___
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 attachment location and delete

2014-08-15 Thread David Holt
ERAttachment doesn’t delete file objects. You’ll need to implement that 
yourself if orphans distress you :-)

David


On Aug 15, 2014, at 10:01 AM, Theodore Petrosky tedp...@yahoo.com wrote:

 Ok, I finally figured out how to add an attachment to a relation in D2W. 
 However, is it expected behavior that when you delete an asset, it only 
 deletes the ‘link’ to the asset, but not the asset itself.
 
 Meaning I upload a pdf. later I delete it from the relation. the asset shows 
 one less item in its list, however the pdf is still in the file/database. 
 
 It is effectively orphaned. 
 
 Also, when I click to edit the attachment, there is a ‘remove’ button 
 associated with the file. If I click it, the app crashes with: 
 
 Error:java.lang.IllegalArgumentException: This form is missing a 
 'enctype=multipart/form-data' attribute. It is required for WOFileUpload to 
 work.
 Reason:   This form is missing a 'enctype=multipart/form-data' attribute. 
 It is required for WOFileUpload to work.
 
 
 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/programmingosx%40mac.com
 
 This email sent to programming...@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

Re: D2W attachment location and delete

2014-08-15 Thread Ramsey Gurley

On Aug 15, 2014, at 10:01 AM, Theodore Petrosky tedp...@yahoo.com wrote:

 Ok, I finally figured out how to add an attachment to a relation in D2W. 
 However, is it expected behavior that when you delete an asset, it only 
 deletes the ‘link’ to the asset, but not the asset itself.

I’m assuming you have a - b - erattachment

If you have the a-b relationship “owns destination” then the related eo will 
be deleted when it is removed from the relationship. You can then have that eo 
cascade delete the attachment eo.

 
 Meaning I upload a pdf. later I delete it from the relation. the asset shows 
 one less item in its list, however the pdf is still in the file/database. 
 
 It is effectively orphaned. 
 
 Also, when I click to edit the attachment, there is a ‘remove’ button 
 associated with the file. If I click it, the app crashes with: 
 
 Error:java.lang.IllegalArgumentException: This form is missing a 
 'enctype=multipart/form-data' attribute. It is required for WOFileUpload to 
 work.
 Reason:   This form is missing a 'enctype=multipart/form-data' attribute. 
 It is required for WOFileUpload to work.
 
 
 Ted

I have a custom assignment to handle most of my form encoding cases.

https://github.com/nullterminated/ponder/blob/master/ERR2d2w/Sources/er/r2d2w/assignments/R2DDefaultAttachmentAssignment.java#L47

That probably won’t work if you have set up a nested inline edit page or 
something though.

 ___
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 attachment location and delete

2014-08-15 Thread Theodore Petrosky

On Aug 15, 2014, at 1:15 PM, Ramsey Gurley rgur...@smarthealth.com wrote:

 
 On Aug 15, 2014, at 10:01 AM, Theodore Petrosky tedp...@yahoo.com wrote:
 
 Ok, I finally figured out how to add an attachment to a relation in D2W. 
 However, is it expected behavior that when you delete an asset, it only 
 deletes the ‘link’ to the asset, but not the asset itself.
 
 I’m assuming you have a - b - erattachment
 
 If you have the a-b relationship “owns destination” then the related eo 
 will be deleted when it is removed from the relationship. You can then have 
 that eo cascade delete the attachment eo.

Yes, this is what I have.   a - b - erattachment

 Article  pdfs  attachement

 In Article/pdfs basic property the Delete Rule = cascadeand on the 
advanced tab   Owns Destination.

No joy. The uploaded file remains after it is removed. For this project, I can 
see that having a bunch of orphans won’t kill me. 

Ted

 
 
 Meaning I upload a pdf. later I delete it from the relation. the asset shows 
 one less item in its list, however the pdf is still in the file/database. 
 
 It is effectively orphaned. 
 
 Also, when I click to edit the attachment, there is a ‘remove’ button 
 associated with the file. If I click it, the app crashes with: 
 
 Error:   java.lang.IllegalArgumentException: This form is missing a 
 'enctype=multipart/form-data' attribute. It is required for WOFileUpload to 
 work.
 Reason:  This form is missing a 'enctype=multipart/form-data' attribute. 
 It is required for WOFileUpload to work.
 
 
 Ted
 
 I have a custom assignment to handle most of my form encoding cases.
 
 https://github.com/nullterminated/ponder/blob/master/ERR2d2w/Sources/er/r2d2w/assignments/R2DDefaultAttachmentAssignment.java#L47
 
 That probably won’t work if you have set up a nested inline edit page or 
 something though.
 

 ___
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 app date field is required ???

2014-08-05 Thread Philippe Rabier
I would add to (almost) always call super.validateForSave() first.

All your mandatory attributes are tested so you don’t need to write:
if (myAttribute() != null) {
  // check some stuff
}

Your mandatory attributes can’t be null after super.validateForSave().

There are some rare circumstances where you write your own code before (like 
checking invisible attributes for example).

Philippe 
-
http://twitter.com/prabier

On 23 juil. 2014, at 15:58, Markus Ruggiero mailingli...@kataputt.com wrote:

 
 On 23.07.2014, at 14:36, Theodore Petrosky tedp...@yahoo.com wrote:
 
 that’s what it was. I didn’t call super.validateForSave in the validate 
 method. Interesting that the string fields function without the super call.
 
 BTW, is there an example of the correct signature for validateForSave. I am 
 googling and can’t seem to find an example of what it should look like
 
 
 Let Eclipse show you. Type validateforsa ctrl-space and you're good to go
 
   @Override
   public void validateForSave() throws ValidationException {
   // TODO Auto-generated method stub
   super.validateForSave();
   }
 
 
 
 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: D2W Enum Query

2014-07-31 Thread Ramsey Gurley
You might consider a rule that covers all cases. I use

20 : (task = 'query' and smartAttribute.prototypeName = 'javaEnum') = 
componentName = R2D2WQueryEnum [com.webobjects.directtoweb.Assignment]

On Jul 30, 2014, at 9:26 PM, Timothy Worman li...@thetimmy.com wrote:

 Ah, for the love of….. :-) Of course all of the rules above and below are 
 correct.
 
 That fixes it. Thanks!
 
 Tim
 
 On Jul 30, 2014, at 7:12 PM, Theodore Petrosky tedp...@yahoo.com wrote:
 
 I thought propertyKey had a capital K.
 
 
 On Jul 30, 2014, at 9:36 PM, Timothy Worman li...@thetimmy.com wrote:
 
 D2W’ers:
 
 I’ve set up a custom component for querying an enum attribute (thanks to 
 Ramsey for some good ideas and Ponder). I’ve got a rule that indicates that 
 this component should be used when querying my entity. It looks like this:
 
 100 : (task = 'query' and entity.name = 'KeyCheckout' and propertykey = 
 'status') = componentName = GSEISD2WQueryEnum 
 [com.webobjects.directtoweb.Assignment]
 
 When I run the app, the attribute in question shows this on the query page: 
 - cannot be used in a query -
 
 I’ve done what I thought I needed to do but obviously something is missing. 
 Could anyone point me in the right direction? I have a similar custom 
 component in place for editing the enum attribute and that works fine. Any 
 help is appreciated.
 
 Tim
 UCLA GSEIS
 ___
 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 Enum Query

2014-07-30 Thread Theodore Petrosky
I thought propertyKey had a capital K.


On Jul 30, 2014, at 9:36 PM, Timothy Worman li...@thetimmy.com wrote:

 D2W’ers:
 
 I’ve set up a custom component for querying an enum attribute (thanks to 
 Ramsey for some good ideas and Ponder). I’ve got a rule that indicates that 
 this component should be used when querying my entity. It looks like this:
 
 100 : (task = 'query' and entity.name = 'KeyCheckout' and propertykey = 
 'status') = componentName = GSEISD2WQueryEnum 
 [com.webobjects.directtoweb.Assignment]
 
 When I run the app, the attribute in question shows this on the query page: - 
 cannot be used in a query -
 
 I’ve done what I thought I needed to do but obviously something is missing. 
 Could anyone point me in the right direction? I have a similar custom 
 component in place for editing the enum attribute and that works fine. Any 
 help is appreciated.
 
 Tim
 UCLA GSEIS
 ___
 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 Enum Query

2014-07-30 Thread Timothy Worman
Ah, for the love of….. :-) Of course all of the rules above and below are 
correct.

That fixes it. Thanks!

Tim

On Jul 30, 2014, at 7:12 PM, Theodore Petrosky tedp...@yahoo.com wrote:

 I thought propertyKey had a capital K.
 
 
 On Jul 30, 2014, at 9:36 PM, Timothy Worman li...@thetimmy.com wrote:
 
 D2W’ers:
 
 I’ve set up a custom component for querying an enum attribute (thanks to 
 Ramsey for some good ideas and Ponder). I’ve got a rule that indicates that 
 this component should be used when querying my entity. It looks like this:
 
 100 : (task = 'query' and entity.name = 'KeyCheckout' and propertykey = 
 'status') = componentName = GSEISD2WQueryEnum 
 [com.webobjects.directtoweb.Assignment]
 
 When I run the app, the attribute in question shows this on the query page: 
 - cannot be used in a query -
 
 I’ve done what I thought I needed to do but obviously something is missing. 
 Could anyone point me in the right direction? I have a similar custom 
 component in place for editing the enum attribute and that works fine. Any 
 help is appreciated.
 
 Tim
 UCLA GSEIS
 ___
 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 app date field is required ???

2014-07-23 Thread Theodore Petrosky
that’s what it was. I didn’t call super.validateForSave in the validate method. 
Interesting that the string fields function without the super call.

BTW, is there an example of the correct signature for validateForSave. I am 
googling and can’t seem to find an example of what it should look like

Ted


On Jul 22, 2014, at 9:06 PM, Philippe Rabier prab...@icloud.com wrote:

 If you have this kind of error, check your validateForSave method.
 
 Maybe do you just forget to call super.validateForSave()?
 
 There is nothing related to D2W or NSTimestamp attribute. And initializing 
 your attribute with now is crap. If your users delete the value you will 
 have fixed nothing. 
 
 Put a breakpoint and trace your code. 
 
 Philippe
 -
 http://twitter.com/prabier
 
 Sent from my iPad
 
 On 22 juil. 2014, at 21:41, Theodore Petrosky tedp...@yahoo.com wrote:
 
 I have a simple D2W app that creates pdfs from various data. I have a report 
 that requires minimally choosing a client, a location and a date for the 
 event. 
 
 When I am creating a new report, my fields client, date, and location are 
 marked (little red asterisk) as being required.
 
 If I leave the location blank or if I don’t choose the client, I get a very 
 nice warning that these fields are mandatory. 
 
 A Contact Report must have a Client.
 Please provide a Location.
 
 
 However, if I leave the date field blank (obvious op error) the app crashes.
 
 
 EvaluateExpression failed: com.webobjects.jdbcadaptor.PostgresqlExpression: 
 INSERT INTO contactreport(brieflogoid, iscomplete, distribution, clientid, 
 jobname, meetingdate, contactreportnotes, personid, nextsteps, location, 
 jobnumber, id, meetingdecisions, meetingpoints, meetingattendees, 
 lastedited) VALUES (?::int4, ?::bool, NULL, ?::int4, NULL, NULL, NULL, 
 ?::int4, NULL, ?::text, NULL, ?::int4, NULL, NULL, NULL, ?::text) 
 withBindings: 1:1(briefLogoID), 2:false(isComplete), 3:2(clientID), 
 4:1(personID), 5:xfgfdgn(location), 6:7(id), 7:S. Admin(lastEdited): 
 Next exception:SQL State:23502 -- error code: 0 -- msg: ERROR: null value in 
 column meetingdate violates not-null constraint Detail: Failing row 
 contains (1, 2, null, null, 7, f, null, null, xfgfdgn, null, null, null, 
 null, null, 1, S. Admin).
 
 I checked the model and meetingDate is a Timestamp and does not allow nulls. 
 I guess I could set up the init method to insert today’s date as a default 
 and not worry about it but why is D2W blowing up here. 
 
 Is there something special about dates and not null?
 
 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/prabier%40icloud.com
 
 This email sent to prab...@icloud.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 app date field is required ???

2014-07-23 Thread Markus Ruggiero

On 23.07.2014, at 14:36, Theodore Petrosky tedp...@yahoo.com wrote:

 that’s what it was. I didn’t call super.validateForSave in the validate 
 method. Interesting that the string fields function without the super call.
 
 BTW, is there an example of the correct signature for validateForSave. I am 
 googling and can’t seem to find an example of what it should look like
 

Let Eclipse show you. Type validateforsa ctrl-space and you're good to go

@Override
public void validateForSave() throws ValidationException {
// TODO Auto-generated method stub
super.validateForSave();
}



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: D2W app date field is required ???

2014-07-22 Thread Philippe Rabier
If you have this kind of error, check your validateForSave method.

Maybe do you just forget to call super.validateForSave()?

There is nothing related to D2W or NSTimestamp attribute. And initializing your 
attribute with now is crap. If your users delete the value you will have 
fixed nothing. 

Put a breakpoint and trace your code. 

Philippe
-
http://twitter.com/prabier

Sent from my iPad

 On 22 juil. 2014, at 21:41, Theodore Petrosky tedp...@yahoo.com wrote:
 
 I have a simple D2W app that creates pdfs from various data. I have a report 
 that requires minimally choosing a client, a location and a date for the 
 event. 
 
 When I am creating a new report, my fields client, date, and location are 
 marked (little red asterisk) as being required.
 
 If I leave the location blank or if I don’t choose the client, I get a very 
 nice warning that these fields are mandatory. 
 
 A Contact Report must have a Client.
 Please provide a Location.
 
 
 However, if I leave the date field blank (obvious op error) the app crashes.
 
 
 EvaluateExpression failed: com.webobjects.jdbcadaptor.PostgresqlExpression: 
 INSERT INTO contactreport(brieflogoid, iscomplete, distribution, clientid, 
 jobname, meetingdate, contactreportnotes, personid, nextsteps, location, 
 jobnumber, id, meetingdecisions, meetingpoints, meetingattendees, lastedited) 
 VALUES (?::int4, ?::bool, NULL, ?::int4, NULL, NULL, NULL, ?::int4, NULL, 
 ?::text, NULL, ?::int4, NULL, NULL, NULL, ?::text) withBindings: 
 1:1(briefLogoID), 2:false(isComplete), 3:2(clientID), 4:1(personID), 
 5:xfgfdgn(location), 6:7(id), 7:S. Admin(lastEdited): Next exception:SQL 
 State:23502 -- error code: 0 -- msg: ERROR: null value in column 
 meetingdate violates not-null constraint Detail: Failing row contains (1, 
 2, null, null, 7, f, null, null, xfgfdgn, null, null, null, null, null, 1, S. 
 Admin).
 
 I checked the model and meetingDate is a Timestamp and does not allow nulls. 
 I guess I could set up the init method to insert today’s date as a default 
 and not worry about it but why is D2W blowing up here. 
 
 Is there something special about dates and not null?
 
 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/prabier%40icloud.com
 
 This email sent to prab...@icloud.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 Rule Question

2014-06-15 Thread Timothy Worman
In rule modeler the value shows with quotes - so that’s weird. Another weird 
thing - in RuleModeler, I have two 'BooleanAssignment 
(com.webobjects.directtoweb).’ I selected the other one and now things work 
fine. They were stacked right on top of each other in the assignment popup in 
RM.

I’m not using TBRuleModeler. Actually, I know nothing of any treasure boat. :-) 
Was this something I needed to be at WOWODC to track with? :-)

Tim

On Jun 14, 2014, at 7:03 PM, Theodore Petrosky tedp...@yahoo.com wrote:

 I was just playing with this and I can not get the boolean value to appear 
 without the quotes
 
 100 : (entity.name = 'Instrument' or entity.name = 'Person') = 
 isEntityEditable = true [com.webobjects.directtoweb.BooleanAssignment]
 
 also I could not get the LHS to appear with the extra parenthesis that you 
 have. If I add them, they are removed when I save the rues file.
 
 Are you using the new Treasure boat  TBRuleModeler?
 
 Ted
 
 On Jun 14, 2014, at 9:46 PM, Timothy Worman li...@thetimmy.com wrote:
 
 All:
 
 I’ve got a rule that looks like this:
 
 110 : ((entity.name = 'PTAMembership') or (entity.name = 'PTAMember')) = 
 isEntityEditable = true [com.webobjects.directtoweb.BooleanAssignment ]
 
 Is anyone able to tell me what I'm doing wrong with this rule? At 
 application launch this is causing an error like:
 
 IllegalArgumentException: ** DirectToWeb exception - a rule cannot be 
 instantiated if its right hand side is null. LHS=((entity.name = 
 'PTAMembership') or (entity.name = 'PTAMember'))  RHS=null
 at com.webobjects.directtoweb.Rule.init(Rule.java:211)
 at er.directtoweb.ERD2WRule.init(ERD2WRule.java:48)
 at er.directtoweb.ERD2WRule.decodeWithKeyValueUnarchiver(ERD2WRule.java:57)
... skipped 3 stack elements
 at 
 com.webobjects.eocontrol.EOKeyValueUnarchiver._objectForPropertyList(EOKeyValueUnarchiver.java:192)
 at 
 com.webobjects.eocontrol.EOKeyValueUnarchiver._findTypeForPropertyListDecoding(EOKeyValueUnarchiver.java:256)
 at 
 com.webobjects.eocontrol.EOKeyValueUnarchiver._arrayForPropertyList(EOKeyValueUnarchiver.java:215)
 at 
 com.webobjects.eocontrol.EOKeyValueUnarchiver._findTypeForPropertyListDecoding(EOKeyValueUnarchiver.java:250)
 at 
 com.webobjects.eocontrol.EOKeyValueUnarchiver.decodeObjectForKey(EOKeyValueUnarchiver.java:275)
 at er.directtoweb.ERD2WModel.mergePathURL(ERD2WModel.java:648)
 at com.webobjects.directtoweb.D2WModel.loadRules(D2WModel.java:982)
 at com.webobjects.directtoweb.D2WModel.checkRules(D2WModel.java:907)
 at er.directtoweb.ERDirectToWeb.finishInitialization(ERDirectToWeb.java:99)
 at 
 er.extensions.ERXFrameworkPrincipal$Observer.willFinishInitialization(ERXFrameworkPrincipal.java:94)
... skipped 7 stack elements
 at er.extensions.appserver.ERXApplication.init(ERXApplication.java:1147)
 at com.donbenitopta.admin.app.Application.init(Application.java:11)
 
 I could swear I’ve had this rule in there for a long time and it just 
 recently started to throw exceptions - but I’ve been known to be very wrong. 
 :-)
 
 Tim
 UCLA GSEIS
 ___
 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 Rule Question

2014-06-15 Thread Theodore Petrosky
you might want to contact Ken Ishimoto. He wrote TBRuleModeler as a Mac only 
app. I know he made it available to WOWODC14 attendees. It has a few 
idiosyncrasies, but overall I feel that it works well. It has never crashed nor 
hung unexpectedly.


On Jun 15, 2014, at 4:13 PM, Timothy Worman li...@thetimmy.com wrote:

 In rule modeler the value shows with quotes - so that’s weird. Another weird 
 thing - in RuleModeler, I have two 'BooleanAssignment 
 (com.webobjects.directtoweb).’ I selected the other one and now things work 
 fine. They were stacked right on top of each other in the assignment popup in 
 RM.
 
 I’m not using TBRuleModeler. Actually, I know nothing of any treasure boat. 
 :-) Was this something I needed to be at WOWODC to track with? :-)
 
 Tim
 
 On Jun 14, 2014, at 7:03 PM, Theodore Petrosky tedp...@yahoo.com wrote:
 
 I was just playing with this and I can not get the boolean value to appear 
 without the quotes
 
 100 : (entity.name = 'Instrument' or entity.name = 'Person') = 
 isEntityEditable = true [com.webobjects.directtoweb.BooleanAssignment]
 
 also I could not get the LHS to appear with the extra parenthesis that you 
 have. If I add them, they are removed when I save the rues file.
 
 Are you using the new Treasure boat  TBRuleModeler?
 
 Ted
 
 On Jun 14, 2014, at 9:46 PM, Timothy Worman li...@thetimmy.com wrote:
 
 All:
 
 I’ve got a rule that looks like this:
 
 110 : ((entity.name = 'PTAMembership') or (entity.name = 'PTAMember')) = 
 isEntityEditable = true [com.webobjects.directtoweb.BooleanAssignment ]
 
 Is anyone able to tell me what I'm doing wrong with this rule? At 
 application launch this is causing an error like:
 
 IllegalArgumentException: ** DirectToWeb exception - a rule cannot be 
 instantiated if its right hand side is null. LHS=((entity.name = 
 'PTAMembership') or (entity.name = 'PTAMember'))  RHS=null
 at com.webobjects.directtoweb.Rule.init(Rule.java:211)
 at er.directtoweb.ERD2WRule.init(ERD2WRule.java:48)
 at er.directtoweb.ERD2WRule.decodeWithKeyValueUnarchiver(ERD2WRule.java:57)
   ... skipped 3 stack elements
 at 
 com.webobjects.eocontrol.EOKeyValueUnarchiver._objectForPropertyList(EOKeyValueUnarchiver.java:192)
 at 
 com.webobjects.eocontrol.EOKeyValueUnarchiver._findTypeForPropertyListDecoding(EOKeyValueUnarchiver.java:256)
 at 
 com.webobjects.eocontrol.EOKeyValueUnarchiver._arrayForPropertyList(EOKeyValueUnarchiver.java:215)
 at 
 com.webobjects.eocontrol.EOKeyValueUnarchiver._findTypeForPropertyListDecoding(EOKeyValueUnarchiver.java:250)
 at 
 com.webobjects.eocontrol.EOKeyValueUnarchiver.decodeObjectForKey(EOKeyValueUnarchiver.java:275)
 at er.directtoweb.ERD2WModel.mergePathURL(ERD2WModel.java:648)
 at com.webobjects.directtoweb.D2WModel.loadRules(D2WModel.java:982)
 at com.webobjects.directtoweb.D2WModel.checkRules(D2WModel.java:907)
 at er.directtoweb.ERDirectToWeb.finishInitialization(ERDirectToWeb.java:99)
 at 
 er.extensions.ERXFrameworkPrincipal$Observer.willFinishInitialization(ERXFrameworkPrincipal.java:94)
   ... skipped 7 stack elements
 at er.extensions.appserver.ERXApplication.init(ERXApplication.java:1147)
 at com.donbenitopta.admin.app.Application.init(Application.java:11)
 
 I could swear I’ve had this rule in there for a long time and it just 
 recently started to throw exceptions - but I’ve been known to be very 
 wrong. :-)
 
 Tim
 UCLA GSEIS
 ___
 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 Rule Question

2014-06-14 Thread David Holt
true?

Sent from my iPad

 On Jun 14, 2014, at 6:46 PM, Timothy Worman li...@thetimmy.com wrote:
 
 All:
 
 I’ve got a rule that looks like this:
 
 110 : ((entity.name = 'PTAMembership') or (entity.name = 'PTAMember')) = 
 isEntityEditable = true [com.webobjects.directtoweb.BooleanAssignment ]
 
 Is anyone able to tell me what I'm doing wrong with this rule? At application 
 launch this is causing an error like:
 
 IllegalArgumentException: ** DirectToWeb exception - a rule cannot be 
 instantiated if its right hand side is null. LHS=((entity.name = 
 'PTAMembership') or (entity.name = 'PTAMember'))  RHS=null
  at com.webobjects.directtoweb.Rule.init(Rule.java:211)
  at er.directtoweb.ERD2WRule.init(ERD2WRule.java:48)
  at er.directtoweb.ERD2WRule.decodeWithKeyValueUnarchiver(ERD2WRule.java:57)
 ... skipped 3 stack elements
  at 
 com.webobjects.eocontrol.EOKeyValueUnarchiver._objectForPropertyList(EOKeyValueUnarchiver.java:192)
  at 
 com.webobjects.eocontrol.EOKeyValueUnarchiver._findTypeForPropertyListDecoding(EOKeyValueUnarchiver.java:256)
  at 
 com.webobjects.eocontrol.EOKeyValueUnarchiver._arrayForPropertyList(EOKeyValueUnarchiver.java:215)
  at 
 com.webobjects.eocontrol.EOKeyValueUnarchiver._findTypeForPropertyListDecoding(EOKeyValueUnarchiver.java:250)
  at 
 com.webobjects.eocontrol.EOKeyValueUnarchiver.decodeObjectForKey(EOKeyValueUnarchiver.java:275)
  at er.directtoweb.ERD2WModel.mergePathURL(ERD2WModel.java:648)
  at com.webobjects.directtoweb.D2WModel.loadRules(D2WModel.java:982)
  at com.webobjects.directtoweb.D2WModel.checkRules(D2WModel.java:907)
  at er.directtoweb.ERDirectToWeb.finishInitialization(ERDirectToWeb.java:99)
  at 
 er.extensions.ERXFrameworkPrincipal$Observer.willFinishInitialization(ERXFrameworkPrincipal.java:94)
 ... skipped 7 stack elements
  at er.extensions.appserver.ERXApplication.init(ERXApplication.java:1147)
  at com.donbenitopta.admin.app.Application.init(Application.java:11)
 
 I could swear I’ve had this rule in there for a long time and it just 
 recently started to throw exceptions - but I’ve been known to be very wrong. 
 :-)
 
 Tim
 UCLA GSEIS
 ___
 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/programmingosx%40mac.com
 
 This email sent to programming...@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

Re: D2W Rule Question

2014-06-14 Thread Theodore Petrosky
I was just playing with this and I can not get the boolean value to appear 
without the quotes

100 : (entity.name = 'Instrument' or entity.name = 'Person') = 
isEntityEditable = true [com.webobjects.directtoweb.BooleanAssignment]

also I could not get the LHS to appear with the extra parenthesis that you 
have. If I add them, they are removed when I save the rues file.

Are you using the new Treasure boat  TBRuleModeler?

Ted

On Jun 14, 2014, at 9:46 PM, Timothy Worman li...@thetimmy.com wrote:

 All:
 
 I’ve got a rule that looks like this:
 
 110 : ((entity.name = 'PTAMembership') or (entity.name = 'PTAMember')) = 
 isEntityEditable = true [com.webobjects.directtoweb.BooleanAssignment ]
 
 Is anyone able to tell me what I'm doing wrong with this rule? At application 
 launch this is causing an error like:
 
 IllegalArgumentException: ** DirectToWeb exception - a rule cannot be 
 instantiated if its right hand side is null. LHS=((entity.name = 
 'PTAMembership') or (entity.name = 'PTAMember'))  RHS=null
  at com.webobjects.directtoweb.Rule.init(Rule.java:211)
  at er.directtoweb.ERD2WRule.init(ERD2WRule.java:48)
  at er.directtoweb.ERD2WRule.decodeWithKeyValueUnarchiver(ERD2WRule.java:57)
 ... skipped 3 stack elements
  at 
 com.webobjects.eocontrol.EOKeyValueUnarchiver._objectForPropertyList(EOKeyValueUnarchiver.java:192)
  at 
 com.webobjects.eocontrol.EOKeyValueUnarchiver._findTypeForPropertyListDecoding(EOKeyValueUnarchiver.java:256)
  at 
 com.webobjects.eocontrol.EOKeyValueUnarchiver._arrayForPropertyList(EOKeyValueUnarchiver.java:215)
  at 
 com.webobjects.eocontrol.EOKeyValueUnarchiver._findTypeForPropertyListDecoding(EOKeyValueUnarchiver.java:250)
  at 
 com.webobjects.eocontrol.EOKeyValueUnarchiver.decodeObjectForKey(EOKeyValueUnarchiver.java:275)
  at er.directtoweb.ERD2WModel.mergePathURL(ERD2WModel.java:648)
  at com.webobjects.directtoweb.D2WModel.loadRules(D2WModel.java:982)
  at com.webobjects.directtoweb.D2WModel.checkRules(D2WModel.java:907)
  at er.directtoweb.ERDirectToWeb.finishInitialization(ERDirectToWeb.java:99)
  at 
 er.extensions.ERXFrameworkPrincipal$Observer.willFinishInitialization(ERXFrameworkPrincipal.java:94)
 ... skipped 7 stack elements
  at er.extensions.appserver.ERXApplication.init(ERXApplication.java:1147)
  at com.donbenitopta.admin.app.Application.init(Application.java:11)
 
 I could swear I’ve had this rule in there for a long time and it just 
 recently started to throw exceptions - but I’ve been known to be very wrong. 
 :-)
 
 Tim
 UCLA GSEIS
 ___
 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 and Ajax oh my!

2014-02-12 Thread David LeBer
Hey Ted,

Technically the “_parent” thing* is from the Ajax framework, so should be 
documented there.

As far as documentation is concerned, I’m afraid I don’t have any details for 
you (other than documentation == good).

Anyone on the list care to chime in?

D

*FWIW, giving some (but unfortunately not all) Ajax components a ‘_parent’ 
binding for their updateContainerID is a shortcut for binding to something like 
this:

public String parentUpdateContainerID() {
return AjaxUpdateContainer.currentUpdateContainerID();
}

which is pretty handy to know in its own right.

On Feb 12, 2014, at 8:35 AM, Theodore Petrosky tedp...@yahoo.com wrote:

 thanks you.
 
 I was thinking of starting to document my little journey into D2W and add a 
 section to the 'How-tos on the wiki. Do you think it belongs here or is 
 there somewhere else started to add these topics to?
 
 Ted
 
 
 
 On Feb 11, 2014, at 7:32 PM, David LeBer dleber_wo...@codeferous.com wrote:
 
 Theodore,
 
 updateContainerID = d2wContext.idForRepetitionContainer
 
 Should work.
 
 Or more generically:
 
 updateConatinerID = “_parent”; // update whatever UpdateContainer is 
 directly above this element
 
 D
 
 
 
 On Feb 11, 2014, at 2:48 PM, Theodore Petrosky tedp...@yahoo.com 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/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: D2W and Ajax oh my!

2014-02-11 Thread David LeBer
Theodore,

updateContainerID = d2wContext.idForRepetitionContainer

Should work.

Or more generically:

updateConatinerID = “_parent”; // update whatever UpdateContainer is directly 
above this element

D



On Feb 11, 2014, at 2:48 PM, Theodore Petrosky tedp...@yahoo.com 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/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: D2W Navigate from Create to List

2013-11-06 Thread Theodore Petrosky
Is there a reason that you should not create an attribute that describes a 
'New' item. 

I have to do this with duplicates. My users select an object and make 10 
duplicates. I set a boolean attribute (isADupe) to true. it remains true until 
they edit the object. 

when I return from 'duplicating' the original object, I select all objects that 
are marked 'isADupe', and present a short list. These object remain 'dupes' 
until they are edited and saved.

So if they want 10 duplicates of an object where each object is nearly 
identical except for the due date, make 9 duplicates and edit each one changing 
the due date. As you save the edited object, set isADupe to false.

BTW, thank you for Learning the Wonders'! It is really helping me learn the 
missing pieces.

Ted



On Nov 6, 2013, at 8:38 AM, Markus Ruggiero mailingli...@kataputt.com wrote:

 What is the best way to handle the following customer request in a Neutral 
 Look D2W application?
 
 After pressing Save on a create page the customer wants to got to a list 
 page displaying the just created object. Maybe the user wants to add a bunch 
 of objects and might eventually miss-type a code and then not be able to 
 figure whether he has entered the correct value. And while working off a list 
 of data to enter he might lose track of which entry he has to add next. In 
 other cases the creation of an object is pretty simple but afterwards editing 
 is necessary due to very complex background processing that cannot take place 
 before an EO has been properly saved.
 
 Standard D2W behaviour is going back to whatever page was shown when the user 
 pressed New. Customer wants to see what was just created. I was thinking of 
 a generic next page delegate on any Create* page configuration. I know how to 
 create a list page and return that, but the problem is how to best populate 
 that list with the one entry that has just been saved. I was thinking of 
 creating an array datasource for the list page with that one object, but 
 should this not be a database datasource? How would I then create a proper 
 fetch spec? As there are many different types of EOs I cannot just pick some 
 common attribute and create a qualifier for its value. The only real 
 identifier would be the primary key but that is of course not modeled.
 
 Thanks for any ideas.
 ---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: D2W Navigate from Create to List

2013-11-06 Thread Ramsey Gurley
Yeah, you need something to define new. You could use a dateCreated timestamp 
or something. Just using D2W, I would

query page with showListInSamePage = true
set the query min on the dateCreated before returning the query page initially
set show list to true and fetch too
in the list configuration, include a branch delegate to provide a create button

That way, the client fetches everything since the page was loaded, which is 
nothing. And the list gets updated as new items are saved.

Alternately, you could do it without any additional data on the eo. If the 
client expects “new” to mean everything since starting the session, you could 
store the list on your wosession. 

If they’re only “new” when the client is working on that page, you could build 
a custom component using embedded d2w. The component could include a erxd2wlist 
and an erxd2winspect in a master-detail arrangement. You could catch the new EO 
saving using notifications and add it to your list when that happens.

On Nov 6, 2013, at 7:27 AM, Theodore Petrosky tedp...@yahoo.com wrote:

 Is there a reason that you should not create an attribute that describes a 
 'New' item. 
 
 I have to do this with duplicates. My users select an object and make 10 
 duplicates. I set a boolean attribute (isADupe) to true. it remains true 
 until they edit the object. 
 
 when I return from 'duplicating' the original object, I select all objects 
 that are marked 'isADupe', and present a short list. These object remain 
 'dupes' until they are edited and saved.
 
 So if they want 10 duplicates of an object where each object is nearly 
 identical except for the due date, make 9 duplicates and edit each one 
 changing the due date. As you save the edited object, set isADupe to false.
 
 BTW, thank you for Learning the Wonders'! It is really helping me learn the 
 missing pieces.
 
 Ted
 
 
 
 On Nov 6, 2013, at 8:38 AM, Markus Ruggiero mailingli...@kataputt.com wrote:
 
 What is the best way to handle the following customer request in a Neutral 
 Look D2W application?
 
 After pressing Save on a create page the customer wants to got to a list 
 page displaying the just created object. Maybe the user wants to add a bunch 
 of objects and might eventually miss-type a code and then not be able to 
 figure whether he has entered the correct value. And while working off a 
 list of data to enter he might lose track of which entry he has to add next. 
 In other cases the creation of an object is pretty simple but afterwards 
 editing is necessary due to very complex background processing that cannot 
 take place before an EO has been properly saved.
 
 Standard D2W behaviour is going back to whatever page was shown when the 
 user pressed New. Customer wants to see what was just created. I was 
 thinking of a generic next page delegate on any Create* page configuration. 
 I know how to create a list page and return that, but the problem is how to 
 best populate that list with the one entry that has just been saved. I was 
 thinking of creating an array datasource for the list page with that one 
 object, but should this not be a database datasource? How would I then 
 create a proper fetch spec? As there are many different types of EOs I 
 cannot just pick some common attribute and create a qualifier for its value. 
 The only real identifier would be the primary key but that is of course not 
 modeled.
 
 Thanks for any ideas.
 ---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/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 and Boolean Queries

2013-10-12 Thread Theodore Petrosky
I model in postgesql intBoolean and use only booleans in Java. works great, 
less filling.


On Oct 11, 2013, at 6:37 PM, Johnny Miller jlmil...@kahalawai.com wrote:

 hi,
 
 I found this thread on this topic: 
 http://lists.apple.com/archives/webobjects-dev/2004/Dec/msg00079.html
 
 Which basically says you can't do this.  Has anything changed since 2004 or 
 does someone have a work around?
 
 Thanks in advance,
 
 Aloha,
 Mr. Johnny Miller
 Web Development Manager
 Kahalawai Media Company
 Lahaina, HI 96761
 tel: (808) 661-7962 | mobile: (808) 283-0791
 website | e-mail  
 
 ___
 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 and Boolean Queries

2013-10-11 Thread Jesse Tayler

I am not aware of any reason why one would be unable to write any kind of query 
component.

I would think there’s something nice in the modern look frameworks for you, 
have you tried and are having a specific trouble or just wondering and found 
that google provides WO people with bizarrely crappy search results typically 
favoring the old and negative over seemingly anything found on our modern 
wiki!! …sigh...I digress…


On Oct 11, 2013, at 6:37 PM, Johnny Miller jlmil...@kahalawai.com wrote:

 hi,
 
 I found this thread on this topic: 
 http://lists.apple.com/archives/webobjects-dev/2004/Dec/msg00079.html
 
 Which basically says you can't do this.  Has anything changed since 2004 or 
 does someone have a work around?
 
 Thanks in advance,
 
 Aloha,
 Mr. Johnny Miller
 Web Development Manager
 Kahalawai Media Company
 Lahaina, HI 96761
 tel: (808) 661-7962 | mobile: (808) 283-0791
 website | e-mail  
 
 ___
 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: D2W and Boolean Queries

2013-10-11 Thread Johnny Miller
Hi Jesse,

I'm having the same experience as the thread that I posted.  I try to set a 
custom component on the propertyKey but instead of displaying the component it 
writes the following string:  - cannot be used in a query -

That's why I asked the list.

Aloha,
Mr. Johnny Miller
Web Development Manager
Kahalawai Media Company
Lahaina, HI 96761
tel: (808) 661-7962 | mobile: (808) 283-0791
website | e-mail

On Oct 11, 2013, at 1:13 PM, Jesse Tayler jtay...@oeinc.com wrote:

 
 I am not aware of any reason why one would be unable to write any kind of 
 query component.
 
 I would think there’s something nice in the modern look frameworks for you, 
 have you tried and are having a specific trouble or just wondering and found 
 that google provides WO people with bizarrely crappy search results typically 
 favoring the old and negative over seemingly anything found on our modern 
 wiki!! …sigh...I digress…
 
 
 On Oct 11, 2013, at 6:37 PM, Johnny Miller jlmil...@kahalawai.com wrote:
 
 hi,
 
 I found this thread on this topic: 
 http://lists.apple.com/archives/webobjects-dev/2004/Dec/msg00079.html
 
 Which basically says you can't do this.  Has anything changed since 2004 or 
 does someone have a work around?
 
 Thanks in advance,
 
 Aloha,
 Mr. Johnny Miller
 Web Development Manager
 Kahalawai Media Company
 Lahaina, HI 96761
 tel: (808) 661-7962 | mobile: (808) 283-0791
 website | e-mail 
 
 ___
 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: D2W and Boolean Queries

2013-10-11 Thread Jesse Tayler

others may have far more accurate response to your problem.

this reminds me of the response a base component might return when it fails, 
which doesn’t suggest to me that there’s not another component which would 
allow that in a query.

have you written a component yourself and tried or otherwise combed through 
modern look for one more suitable?

I’m sorry I am not more help —perhaps others will chime in. 

I can only say I’m not aware of why you’d be unable to do anything the JDBC 
adaptor and your database might allow, or why D2W would prevent such.


On Oct 11, 2013, at 7:18 PM, Johnny Miller jlmil...@kahalawai.com wrote:

 Hi Jesse,
 
 I'm having the same experience as the thread that I posted.  I try to set a 
 custom component on the propertyKey but instead of displaying the component 
 it writes the following string:  - cannot be used in a query -
 
 That's why I asked the list.
 
 Aloha,
 Mr. Johnny Miller
 Web Development Manager
 Kahalawai Media Company
 Lahaina, HI 96761
 tel: (808) 661-7962 | mobile: (808) 283-0791
 website | e-mail  
 
 On Oct 11, 2013, at 1:13 PM, Jesse Tayler jtay...@oeinc.com wrote:
 
 
 I am not aware of any reason why one would be unable to write any kind of 
 query component.
 
 I would think there’s something nice in the modern look frameworks for you, 
 have you tried and are having a specific trouble or just wondering and found 
 that google provides WO people with bizarrely crappy search results 
 typically favoring the old and negative over seemingly anything found on our 
 modern wiki!! …sigh...I digress…
 
 
 On Oct 11, 2013, at 6:37 PM, Johnny Miller jlmil...@kahalawai.com wrote:
 
 hi,
 
 I found this thread on this topic: 
 http://lists.apple.com/archives/webobjects-dev/2004/Dec/msg00079.html
 
 Which basically says you can't do this.  Has anything changed since 2004 or 
 does someone have a work around?
 
 Thanks in advance,
 
 Aloha,
 Mr. Johnny Miller
 Web Development Manager
 Kahalawai Media Company
 Lahaina, HI 96761
 tel: (808) 661-7962 | mobile: (808) 283-0791
 website | e-mail
 
 ___
 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: D2W and Boolean Queries

2013-10-11 Thread Jesse Tayler

is ERD2WCustomEditBoolean helpful at all?




On Oct 11, 2013, at 7:32 PM, Jesse Tayler jtay...@oeinc.com wrote:

 
 others may have far more accurate response to your problem.
 
 this reminds me of the response a base component might return when it fails, 
 which doesn’t suggest to me that there’s not another component which would 
 allow that in a query.
 
 have you written a component yourself and tried or otherwise combed through 
 modern look for one more suitable?
 
 I’m sorry I am not more help —perhaps others will chime in. 
 
 I can only say I’m not aware of why you’d be unable to do anything the JDBC 
 adaptor and your database might allow, or why D2W would prevent such.
 
 
 On Oct 11, 2013, at 7:18 PM, Johnny Miller jlmil...@kahalawai.com wrote:
 
 Hi Jesse,
 
 I'm having the same experience as the thread that I posted.  I try to set a 
 custom component on the propertyKey but instead of displaying the component 
 it writes the following string:  - cannot be used in a query -
 
 That's why I asked the list.
 
 Aloha,
 Mr. Johnny Miller
 Web Development Manager
 Kahalawai Media Company
 Lahaina, HI 96761
 tel: (808) 661-7962 | mobile: (808) 283-0791
 website | e-mail 
 
 On Oct 11, 2013, at 1:13 PM, Jesse Tayler jtay...@oeinc.com wrote:
 
 
 I am not aware of any reason why one would be unable to write any kind of 
 query component.
 
 I would think there’s something nice in the modern look frameworks for you, 
 have you tried and are having a specific trouble or just wondering and 
 found that google provides WO people with bizarrely crappy search results 
 typically favoring the old and negative over seemingly anything found on 
 our modern wiki!! …sigh...I digress…
 
 
 On Oct 11, 2013, at 6:37 PM, Johnny Miller jlmil...@kahalawai.com wrote:
 
 hi,
 
 I found this thread on this topic: 
 http://lists.apple.com/archives/webobjects-dev/2004/Dec/msg00079.html
 
 Which basically says you can't do this.  Has anything changed since 2004 
 or does someone have a work around?
 
 Thanks in advance,
 
 Aloha,
 Mr. Johnny Miller
 Web Development Manager
 Kahalawai Media Company
 Lahaina, HI 96761
 tel: (808) 661-7962 | mobile: (808) 283-0791
 website | e-mail   
 
 ___
 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/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: D2W and Boolean Queries

2013-10-11 Thread Johnny Miller
Hi Jesse,

I'm trying to query on not edit a boolean.  The components that I see are:

ERD2WQueryBooleanRadioList which subclasses D2WQueryBoolean

But the problem is it works with Integers and not Booleans.  So true is 
anything great than 0.  But I don't really want to change my model if I don't 
have to...

Thank you,

Johnny


On Oct 11, 2013, at 1:36 PM, Jesse Tayler jtay...@oeinc.com wrote:

 
 is ERD2WCustomEditBoolean helpful at all?
 
 
 
 
 On Oct 11, 2013, at 7:32 PM, Jesse Tayler jtay...@oeinc.com wrote:
 
 
 others may have far more accurate response to your problem.
 
 this reminds me of the response a base component might return when it fails, 
 which doesn’t suggest to me that there’s not another component which would 
 allow that in a query.
 
 have you written a component yourself and tried or otherwise combed through 
 modern look for one more suitable?
 
 I’m sorry I am not more help —perhaps others will chime in. 
 
 I can only say I’m not aware of why you’d be unable to do anything the JDBC 
 adaptor and your database might allow, or why D2W would prevent such.
 
 
 On Oct 11, 2013, at 7:18 PM, Johnny Miller jlmil...@kahalawai.com wrote:
 
 Hi Jesse,
 
 I'm having the same experience as the thread that I posted.  I try to set a 
 custom component on the propertyKey but instead of displaying the component 
 it writes the following string:  - cannot be used in a query -
 
 That's why I asked the list.
 
 Aloha,
 Mr. Johnny Miller
 Web Development Manager
 Kahalawai Media Company
 Lahaina, HI 96761
 tel: (808) 661-7962 | mobile: (808) 283-0791
 website | e-mail
 
 On Oct 11, 2013, at 1:13 PM, Jesse Tayler jtay...@oeinc.com wrote:
 
 
 I am not aware of any reason why one would be unable to write any kind of 
 query component.
 
 I would think there’s something nice in the modern look frameworks for 
 you, have you tried and are having a specific trouble or just wondering 
 and found that google provides WO people with bizarrely crappy search 
 results typically favoring the old and negative over seemingly anything 
 found on our modern wiki!! …sigh...I digress…
 
 
 On Oct 11, 2013, at 6:37 PM, Johnny Miller jlmil...@kahalawai.com wrote:
 
 hi,
 
 I found this thread on this topic: 
 http://lists.apple.com/archives/webobjects-dev/2004/Dec/msg00079.html
 
 Which basically says you can't do this.  Has anything changed since 2004 
 or does someone have a work around?
 
 Thanks in advance,
 
 Aloha,
 Mr. Johnny Miller
 Web Development Manager
 Kahalawai Media Company
 Lahaina, HI 96761
 tel: (808) 661-7962 | mobile: (808) 283-0791
 website | e-mail  
 
 ___
 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/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: D2W and Boolean Queries

2013-10-11 Thread Johnny Miller
Well I'm the dummy.

I was looking at this rule:

(task = 'query' and (smartAttribute.className = 'java.lang.Boolean' or 
((smartAttribute.userInfo.erPrototype = 'Boolean' or 
smartAttribute.userInfo.erPrototype = 'BooleanYesNo') and 
(smartAttribute.className = 'java.math.BigDecimal' or smartAttribute.className 
= 'java.lang.Number'

which resolves componentName to ERD2WCustomQueryBoolean

So I couldn't figure out why I was getting that other message.

Anyway my attribute name was filled and in my rule I spelt it fillled

Tired eyes on a Friday didn't see it until after I had lunch.

Sorry about that everyone,

Johnny

On Oct 11, 2013, at 1:42 PM, Johnny Miller jlmil...@kahalawai.com wrote:

 Hi Jesse,
 
 I'm trying to query on not edit a boolean.  The components that I see are:
 
 ERD2WQueryBooleanRadioList which subclasses D2WQueryBoolean
 
 But the problem is it works with Integers and not Booleans.  So true is 
 anything great than 0.  But I don't really want to change my model if I don't 
 have to...
 
 Thank you,
 
 Johnny
 
 
 On Oct 11, 2013, at 1:36 PM, Jesse Tayler jtay...@oeinc.com wrote:
 
 
 is ERD2WCustomEditBoolean helpful at all?
 
 
 
 
 On Oct 11, 2013, at 7:32 PM, Jesse Tayler jtay...@oeinc.com wrote:
 
 
 others may have far more accurate response to your problem.
 
 this reminds me of the response a base component might return when it 
 fails, which doesn’t suggest to me that there’s not another component which 
 would allow that in a query.
 
 have you written a component yourself and tried or otherwise combed through 
 modern look for one more suitable?
 
 I’m sorry I am not more help —perhaps others will chime in. 
 
 I can only say I’m not aware of why you’d be unable to do anything the JDBC 
 adaptor and your database might allow, or why D2W would prevent such.
 
 
 On Oct 11, 2013, at 7:18 PM, Johnny Miller jlmil...@kahalawai.com wrote:
 
 Hi Jesse,
 
 I'm having the same experience as the thread that I posted.  I try to set 
 a custom component on the propertyKey but instead of displaying the 
 component it writes the following string:  - cannot be used in a query -
 
 That's why I asked the list.
 
 Aloha,
 Mr. Johnny Miller
 Web Development Manager
 Kahalawai Media Company
 Lahaina, HI 96761
 tel: (808) 661-7962 | mobile: (808) 283-0791
 website | e-mail   
 
 On Oct 11, 2013, at 1:13 PM, Jesse Tayler jtay...@oeinc.com wrote:
 
 
 I am not aware of any reason why one would be unable to write any kind of 
 query component.
 
 I would think there’s something nice in the modern look frameworks for 
 you, have you tried and are having a specific trouble or just wondering 
 and found that google provides WO people with bizarrely crappy search 
 results typically favoring the old and negative over seemingly anything 
 found on our modern wiki!! …sigh...I digress…
 
 
 On Oct 11, 2013, at 6:37 PM, Johnny Miller jlmil...@kahalawai.com wrote:
 
 hi,
 
 I found this thread on this topic: 
 http://lists.apple.com/archives/webobjects-dev/2004/Dec/msg00079.html
 
 Which basically says you can't do this.  Has anything changed since 2004 
 or does someone have a work around?
 
 Thanks in advance,
 
 Aloha,
 Mr. Johnny Miller
 Web Development Manager
 Kahalawai Media Company
 Lahaina, HI 96761
 tel: (808) 661-7962 | mobile: (808) 283-0791
 website | e-mail 
 
 ___
 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/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: d2w query question

2013-10-04 Thread Markus Ruggiero
I may be late and possibly do not understand exactly the issue, but something 
triggered the following thoughts:

You have Grids
some of those Grid objects are Biilboards.

Can Grid objects switch from being Grid to Billboards and back or is Billboard 
a special type of Grid and a created Billboard object will always be a 
Billboard?

Doesn't this sound like inheritance?

Why not just model entity Billboard ISA Grid? No need for any fancy D2W 
juggling then!

As I said, just some random thoughts

Have fun (and a good weekend)
---markus---

On 26.09.2013, at 23:24, Theodore Petrosky tedp...@yahoo.com wrote:

 
 On Sep 26, 2013, at 5:07 PM, David Holt programming...@mac.com wrote:
 
 Hi Ted,
 
 well Grid is the entity, but you only want to display those grids that are 
 billboards?
 
 Pages.ListGrid = List Billboards
 Nav.ListGrid = List Billboards
 
 ((D2WComponent) qpi).d2wContext().takeValueForKey(ListBillboard, 
 navigationState);
 ((D2WComponent) qpi).d2wContext().takeValueForKey(QueryBillboard, 
 pageConfiguration);
 
 I'm not sure these two rules make any sense (at least this is not how I do 
 it). You probably should be setting navigation state in the rules. And if 
 you want to use a custom pageConfiguration for your list page then you need 
 to set it in your query page rules (either inline or as your 
 listConfigurationName).
 
 If you actually NEED a ListGrid page as well as Billboard, you'll have to 
 create a custom pageConfiguration for Billboards and assign the usual task 
 and entity to it.
 
 and this is my issue. I NEED both the ListGrid and ListBillboard where the 
 underlying entity is Grid. (Tab1 is the ListGrid tab, Tab2 is the 
 ListBillboard tab) Are you suggesting here that I can do this with a custom 
 pageConfiguration? Is there some example of this that I can examine? Keep in 
 mind I have no problem when I enter the ListBillboard tab. My problem is when 
 I click the query button on a Query Billboard. the resultant page is a 
 ListGrid page that I want to call a List Billboard page.
 
 Ted
 
 On 2013-09-26, at 12:21 PM, Theodore Petrosky tedp...@yahoo.com wrote:
 
 yes, I use the Localizable.strings. I don't see how this would help?  I 
 thought I wanted to change the context pageConfiguration.
 
 What did I miss?
 
 
 
 
 On Sep 26, 2013, at 12:12 PM, David Holt programming...@mac.com wrote:
 
 Are you using Localizable.strings?
 
 
 On 2013-09-26, at 7:24 AM, Theodore Petrosky tedp...@yahoo.com wrote:
 
 
 On Sep 26, 2013, at 4:41 AM, Fabian Peters lists.fab...@e-lumo.com 
 wrote:
 
 Hi Ted,
 
 Am 26.09.2013 um 01:51 schrieb Theodore Petrosky:
 
 yea sometimes the original answer to a post was over my head and I 
 didn't understand something, so I gave up.
 
 I have your solution working beautifully. I hope this helps me to 
 understand the delegates more.
 
 but here is an issue.
 
 here is the method that returns the QueryPage:
 
 public WOComponent queryBillboardAction() {
 QueryPageInterface qpi = (QueryPageInterface) 
 D2W.factory().queryPageForEntityNamed(Grid, session());
 
 ((D2WComponent) qpi).d2wContext().takeValueForKey(ListBillboard, 
 navigationState);
 ((D2WComponent) qpi).d2wContext().takeValueForKey(QueryBillboard, 
 pageConfiguration);
 
 return (WOComponent) qpi;
 
 }
 
 of course this is a 'subselect' of the entity 'Grid'. so the page that 
 returns is a ListGrid page.
 
 How can I control this? It needs to be a ListBillboard page.
 
 If your query page should return a list of billboards, then I guess the 
 query page should be one for billboards. If a billboard has some 
 relation to grid, you can still query for grid attributes by specifying 
 key-paths from billboard. Something like billboard.grids.id.
 
 it's the other way around. I have an entity 'Grid'. this entity has a 
 boolean attribute isBillboard. I have created a tab that gives a listing 
 of a subset of Grid where isBillboard is true.
 In the action method that returns the ListGrid page, I set the 
 navigationState:
 
 ((D2WComponent) lpi).d2wContext().takeValueForKey(ListBillboard, 
 navigationState);
 
 I have a search button that I set the delegate to return Grid entities 
 where isBillboard is true.
 
 Unfortunately, when you do a query, the returning page is a 'ListGrid' 
 page (As the entity is Grid). I am looking for a way such that when this 
 ListGrid page is returned, I can set the navigationState to 
 'ListBillboard'.
 
 I could make this easy on myself and create a view on the backend called 
 Billboard. (CREATE VIEW billboard AS SELECT * FROM t_grid WHERE 
 isbillboard = true). I could even set up some rules and triggers on the 
 backend that would make it updatable. Then I could just treat it as a 
 separate entity and be done.
 
 But I thought I would just stay on the WO side of things.
 
 
 
 Fabian
 
 Thank you for your patience.  When I first read your solution over a 
 year ago I felt it was too complex as I didn't have the knowledge to 
 understand it. Funny what another 

Re: d2w query question

2013-09-28 Thread Theodore Petrosky
what did I learn in my d2w sojourn?

make sure you use the full package name when adding a queryDataSourceDelegate 
(that one bit me until I read the email about 16 times).

you can create a Query page and specify in the rules what the entity is.

there are so many possible rules with settings that I feel there is no way to 
learn them all. so there must be a logic to their organization that when you 
learn it, it is all clear.

I am reminded of a story told by Gurdjieff.

He was studying at a Tibetan Monastery. One of the 'rules' was that to be 
considered 'enlightened' one had to perform a very intricate dance. It took on 
the average 3 years of study to master all the movements and pass the test. But 
if you studied hard (ate your wheaties) and listened to your master, you would 
eventually learn this complete dance.

One day he was eating his lunch watching two new supplicants begin the process 
of learning the dance. Whilst eating and in the midst of a reverie, he looked 
up and noticed that in the room, there was a bas-relief that depicted all the 
steps of the dance. Unfortunately, when doing the dance, you can not just look 
up as, depending on your angle you can or can not make out the images. And 
that's when the images became clear to him.

In each step of the dance, the dancer is forming a character of the alphabet 
(picture Village People YMCA), and the supplicant is spelling out the names of 
the 20 men that founded the Monastery. Once you learned this fact, it was easy.

Where is the D2W key? It's there somewhere!!!



On Sep 26, 2013, at 5:52 PM, David Holt programming...@mac.com wrote:

 Your method calling this query page should actually be:
 
   public WOComponent queryBillboarAction() {
 return D2W.factory().pageForConfigurationNamed(QueryBillboard, 
 session());
   }
 
 pageConfiguration = QueryBillboard = entity = Grid 
 [com.webobjects.directtoweb.EntityAssignment], 
 
 task is in the configurationName
 
 On 2013-09-26, at 2:45 PM, David Holt programming...@mac.com wrote:
 
 Yes! You're coming to the crux of D2W power. Congratulations :-)
 
 All you need to do is set some rules for task and entity of the custom 
 configuration you need. Typed into Mail:
 
 pageConfiguration = RowsAndRowsOfMyAwesomeBillboards = task = 'list' 
 [com.webobjects.directtoweb.Assignment]
 pageConfiguration = RowsAndRowsOfMyAwesomeBillboards = entity  Grid 
 [com.webobjects.directtoweb.EntityAssignment], 
 
 
   public WOComponent queryBillboardAction() {
 QueryPageInterface qpi = (QueryPageInterface) 
 D2W.factory().queryPageForEntityNamed(Grid, session());
 return (WOComponent) qpi; 
   }
 
 pageConfiguration = 'QueryBillboard' = navigationState = 'Tab2' 
 [com.webobjects.directtoweb.Assignment]
 pageConfiguration = RowsAndRowsOfMyAwesomeBillboards = navigationState = 
 'Tab2' [com.webobjects.directtoweb.Assignment]
 
 rule to return the custom page configuration:
 
 pageConfiguration = QueryBillboard = listConfigurationName =   
 RowsAndRowsOfMyAwesomeBillboards [com.webobjects.directtoweb.Assignment], 
 
 you can return the list in the same page like so:
 
 pageConfiguration = QueryBillboard = showListInSamePage = true 
 [com.webobjects.directtoweb.BooleanAssignment]
 
 and don't forget the rule to set your query delegate to the QueryBillboard 
 page.
 
 Of course you could be more reasonable and call your custom page 
 configuration something like ListBillboardGrid and your task and entity 
 should be picked up by the default assignment rules (since both list and 
 grid are contained in the pageConfiguration name) but I exaggerated for 
 effect.
 
 
 On 2013-09-26, at 2:24 PM, Theodore Petrosky tedp...@yahoo.com wrote:
 
 
 On Sep 26, 2013, at 5:07 PM, David Holt programming...@mac.com wrote:
 
 Hi Ted,
 
 well Grid is the entity, but you only want to display those grids that are 
 billboards?
 
 Pages.ListGrid = List Billboards
 Nav.ListGrid = List Billboards
 
 ((D2WComponent) qpi).d2wContext().takeValueForKey(ListBillboard, 
 navigationState);
 ((D2WComponent) qpi).d2wContext().takeValueForKey(QueryBillboard, 
 pageConfiguration);
 
 I'm not sure these two rules make any sense (at least this is not how I do 
 it). You probably should be setting navigation state in the rules. And if 
 you want to use a custom pageConfiguration for your list page then you 
 need to set it in your query page rules (either inline or as your 
 listConfigurationName).
 
 If you actually NEED a ListGrid page as well as Billboard, you'll have to 
 create a custom pageConfiguration for Billboards and assign the usual task 
 and entity to it.
 
 and this is my issue. I NEED both the ListGrid and ListBillboard where the 
 underlying entity is Grid. (Tab1 is the ListGrid tab, Tab2 is the 
 ListBillboard tab) Are you suggesting here that I can do this with a custom 
 pageConfiguration? Is there some example of this that I can examine? Keep 
 in mind I have no problem when I enter the ListBillboard tab. My problem is 

Re: d2w query question

2013-09-28 Thread David LeBer
The first rule of D2W: There is NO magic.

If you can't figure out why something works a certain way, that's just because 
you haven't found where the logic is yet.

The d2wContext is just a state machine / key-value store. It performs little 
logic on its own.

All the 'smarts' are in one of three places:

1. The page templates (from the 'Look')
2. The property level components
3. The assignment objects

Number 3 is the one most overlooked by novice D2W devs, and provides most of 
the 'hidden' functionality. It is well worth your effort to scan the available 
rule files looking for Assignment objects you've never used before. It's ALWAYS 
and eye opening experience. ;)

Rules are actually pretty simple. The left hand side is a qualifier, when it 
matches, it sets the key specified on the right hand side with the value 
derived through the Assignment object. Documenting 'the rules' does little 
good, because the moment you enhance or change one of the items above, the 
range of possible rules change.

Learn your templates, the available property level components, and the 
assignment objects. Once you understand those, parsing the rules becomes much 
easier, and creating your own rules to leverage the potential becomes clearer.

And as you learn, enhancements to the documentation is always welcome ;)

D

--
David LeBer
Codeferous Software

On 2013-09-28, at 11:52 AM, Theodore Petrosky tedp...@yahoo.com wrote:

 what did I learn in my d2w sojourn?
 
 make sure you use the full package name when adding a queryDataSourceDelegate 
 (that one bit me until I read the email about 16 times).
 
 you can create a Query page and specify in the rules what the entity is.
 
 there are so many possible rules with settings that I feel there is no way to 
 learn them all. so there must be a logic to their organization that when you 
 learn it, it is all clear.
 
 I am reminded of a story told by Gurdjieff.
 
 He was studying at a Tibetan Monastery. One of the 'rules' was that to be 
 considered 'enlightened' one had to perform a very intricate dance. It took 
 on the average 3 years of study to master all the movements and pass the 
 test. But if you studied hard (ate your wheaties) and listened to your 
 master, you would eventually learn this complete dance.
 
 One day he was eating his lunch watching two new supplicants begin the 
 process of learning the dance. Whilst eating and in the midst of a reverie, 
 he looked up and noticed that in the room, there was a bas-relief that 
 depicted all the steps of the dance. Unfortunately, when doing the dance, you 
 can not just look up as, depending on your angle you can or can not make out 
 the images. And that's when the images became clear to him.
 
 In each step of the dance, the dancer is forming a character of the alphabet 
 (picture Village People YMCA), and the supplicant is spelling out the names 
 of the 20 men that founded the Monastery. Once you learned this fact, it was 
 easy.
 
 Where is the D2W key? It's there somewhere!!!
 
 
 
 On Sep 26, 2013, at 5:52 PM, David Holt programming...@mac.com wrote:
 
 Your method calling this query page should actually be:
 
   public WOComponent queryBillboarAction() {
 return D2W.factory().pageForConfigurationNamed(QueryBillboard, 
 session());
   }
 
 pageConfiguration = QueryBillboard = entity = Grid 
 [com.webobjects.directtoweb.EntityAssignment], 
 
 task is in the configurationName
 
 On 2013-09-26, at 2:45 PM, David Holt programming...@mac.com wrote:
 
 Yes! You're coming to the crux of D2W power. Congratulations :-)
 
 All you need to do is set some rules for task and entity of the custom 
 configuration you need. Typed into Mail:
 
 pageConfiguration = RowsAndRowsOfMyAwesomeBillboards = task = 'list' 
 [com.webobjects.directtoweb.Assignment]
 pageConfiguration = RowsAndRowsOfMyAwesomeBillboards = entity  Grid 
 [com.webobjects.directtoweb.EntityAssignment], 
 
 
   public WOComponent queryBillboardAction() {
 QueryPageInterface qpi = (QueryPageInterface) 
 D2W.factory().queryPageForEntityNamed(Grid, session());
 return (WOComponent) qpi; 
   }
 
 pageConfiguration = 'QueryBillboard' = navigationState = 'Tab2' 
 [com.webobjects.directtoweb.Assignment]
 pageConfiguration = RowsAndRowsOfMyAwesomeBillboards = navigationState = 
 'Tab2' [com.webobjects.directtoweb.Assignment]
 
 rule to return the custom page configuration:
 
 pageConfiguration = QueryBillboard = listConfigurationName =   
 RowsAndRowsOfMyAwesomeBillboards [com.webobjects.directtoweb.Assignment], 
 
 you can return the list in the same page like so:
 
 pageConfiguration = QueryBillboard = showListInSamePage = true 
 [com.webobjects.directtoweb.BooleanAssignment]
 
 and don't forget the rule to set your query delegate to the QueryBillboard 
 page.
 
 Of course you could be more reasonable and call your custom page 
 configuration something like ListBillboardGrid and your task and entity 
 should be picked up by the default assignment rules 

Re: d2w query question

2013-09-26 Thread Fabian Peters
Hi Ted,

Am 26.09.2013 um 01:51 schrieb Theodore Petrosky:

 yea sometimes the original answer to a post was over my head and I didn't 
 understand something, so I gave up.
 
 I have your solution working beautifully. I hope this helps me to understand 
 the delegates more.
 
 but here is an issue.
 
 here is the method that returns the QueryPage:
 
  public WOComponent queryBillboardAction() {
QueryPageInterface qpi = (QueryPageInterface) 
 D2W.factory().queryPageForEntityNamed(Grid, session());
 
((D2WComponent) qpi).d2wContext().takeValueForKey(ListBillboard, 
 navigationState);
((D2WComponent) qpi).d2wContext().takeValueForKey(QueryBillboard, 
 pageConfiguration);
 
return (WOComponent) qpi;
 
  }
 
 of course this is a 'subselect' of the entity 'Grid'. so the page that 
 returns is a ListGrid page.
 
 How can I control this? It needs to be a ListBillboard page.

If your query page should return a list of billboards, then I guess the query 
page should be one for billboards. If a billboard has some relation to grid, 
you can still query for grid attributes by specifying key-paths from billboard. 
Something like billboard.grids.id.

Fabian

 Thank you for your patience.  When I first read your solution over a year ago 
 I felt it was too complex as I didn't have the knowledge to understand it. 
 Funny what another year looking at this stuff can do.
 
 Ted
 
 
 On Sep 25, 2013, at 4:26 PM, David Holt programming...@mac.com wrote:
 
 Nothing like a little deja vu, including the original poster.
 
 :-)
 
 
 On 2013-09-25, at 12:40 PM, Johnny Miller jlmil...@kahalawai.com wrote:
 
 Like this?
 
 http://lists.apple.com/archives/webobjects-dev/2012/Apr/msg00260.html
 
 
 On Sep 25, 2013, at 9:23 AM, Theodore Petrosky tedp...@yahoo.com wrote:
 
 I have an entity 'Grid' that has an attribute 'isBillboard'. I created the 
 list billboard tab with:
 
 public WOComponent listBillboardAction() {
 
 EOEditingContext ec = ERXEC.newEditingContext();
 ListPageInterface lpi = (ListPageInterface) 
 D2W.factory().pageForConfigurationNamed(ListGrid, session());
 
 EODatabaseDataSource ds = new EODatabaseDataSource(ec, Grid);
 
 ERXFetchSpecificationGrid fs =  new 
 ERXFetchSpecificationGrid(Grid.ENTITY_NAME, 
 Grid.IS_COMPLETE.eq(false).and(Grid.IS_BILLBOARD.eq(true)), null);
 
 ds.setFetchSpecification(fs);
 
 lpi.setDataSource(ds);
 
 ((D2WComponent) lpi).d2wContext().takeValueForKey(ListBillboard, 
 navigationState);
 
 return (D2WPage) lpi;
 }
 
 
 How can I apply the same limit to a Query page? I don't want to put a 
 control on the page to select 'isBillboard', i want isBillboard to be true
 
 
 public WOComponent queryBillboardAction() {
 QueryPageInterface qpi = (QueryPageInterface) 
 D2W.factory().queryPageForEntityNamed(Grid, session());
 
 ((D2WComponent) qpi).d2wContext().takeValueForKey(ListBillboard, 
 navigationState);
 
 return (WOComponent) qpi;
 
 }
 ___
 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/jlmiller%40kahalawai.com
 
 This email sent to jlmil...@kahalawai.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/programmingosx%40mac.com
 
 This email sent to programming...@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/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 query question

2013-09-26 Thread Theodore Petrosky

On Sep 26, 2013, at 4:41 AM, Fabian Peters lists.fab...@e-lumo.com wrote:

 Hi Ted,
 
 Am 26.09.2013 um 01:51 schrieb Theodore Petrosky:
 
 yea sometimes the original answer to a post was over my head and I didn't 
 understand something, so I gave up.
 
 I have your solution working beautifully. I hope this helps me to understand 
 the delegates more.
 
 but here is an issue.
 
 here is the method that returns the QueryPage:
 
 public WOComponent queryBillboardAction() {
   QueryPageInterface qpi = (QueryPageInterface) 
 D2W.factory().queryPageForEntityNamed(Grid, session());
 
   ((D2WComponent) qpi).d2wContext().takeValueForKey(ListBillboard, 
 navigationState);
   ((D2WComponent) qpi).d2wContext().takeValueForKey(QueryBillboard, 
 pageConfiguration);
 
   return (WOComponent) qpi;
 
 }
 
 of course this is a 'subselect' of the entity 'Grid'. so the page that 
 returns is a ListGrid page.
 
 How can I control this? It needs to be a ListBillboard page.
 
 If your query page should return a list of billboards, then I guess the query 
 page should be one for billboards. If a billboard has some relation to grid, 
 you can still query for grid attributes by specifying key-paths from 
 billboard. Something like billboard.grids.id.

it's the other way around. I have an entity 'Grid'. this entity has a boolean 
attribute isBillboard. I have created a tab that gives a listing of a subset of 
Grid where isBillboard is true.
In the action method that returns the ListGrid page, I set the navigationState:

 ((D2WComponent) lpi).d2wContext().takeValueForKey(ListBillboard, 
 navigationState);

I have a search button that I set the delegate to return Grid entities where 
isBillboard is true.

Unfortunately, when you do a query, the returning page is a 'ListGrid' page (As 
the entity is Grid). I am looking for a way such that when this ListGrid page 
is returned, I can set the navigationState to 'ListBillboard'.

I could make this easy on myself and create a view on the backend called 
Billboard. (CREATE VIEW billboard AS SELECT * FROM t_grid WHERE isbillboard = 
true). I could even set up some rules and triggers on the backend that would 
make it updatable. Then I could just treat it as a separate entity and be done.

But I thought I would just stay on the WO side of things.


 
 Fabian
 
 Thank you for your patience.  When I first read your solution over a year 
 ago I felt it was too complex as I didn't have the knowledge to understand 
 it. Funny what another year looking at this stuff can do.
 
 Ted
 
 
 On Sep 25, 2013, at 4:26 PM, David Holt programming...@mac.com wrote:
 
 Nothing like a little deja vu, including the original poster.
 
 :-)
 
 
 On 2013-09-25, at 12:40 PM, Johnny Miller jlmil...@kahalawai.com wrote:
 
 Like this?
 
 http://lists.apple.com/archives/webobjects-dev/2012/Apr/msg00260.html
 
 
 On Sep 25, 2013, at 9:23 AM, Theodore Petrosky tedp...@yahoo.com wrote:
 
 I have an entity 'Grid' that has an attribute 'isBillboard'. I created 
 the list billboard tab with:
 
 public WOComponent listBillboardAction() {
 
 EOEditingContext ec = ERXEC.newEditingContext();
 ListPageInterface lpi = (ListPageInterface) 
 D2W.factory().pageForConfigurationNamed(ListGrid, session());
 
 EODatabaseDataSource ds = new EODatabaseDataSource(ec, Grid);
 
 ERXFetchSpecificationGrid fs =  new 
 ERXFetchSpecificationGrid(Grid.ENTITY_NAME, 
 Grid.IS_COMPLETE.eq(false).and(Grid.IS_BILLBOARD.eq(true)), null);
 
 ds.setFetchSpecification(fs);
 
 lpi.setDataSource(ds);
 
 ((D2WComponent) lpi).d2wContext().takeValueForKey(ListBillboard, 
 navigationState);
 
 return (D2WPage) lpi;
 }
 
 
 How can I apply the same limit to a Query page? I don't want to put a 
 control on the page to select 'isBillboard', i want isBillboard to be true
 
 
 public WOComponent queryBillboardAction() {
 QueryPageInterface qpi = (QueryPageInterface) 
 D2W.factory().queryPageForEntityNamed(Grid, session());
 
 ((D2WComponent) qpi).d2wContext().takeValueForKey(ListBillboard, 
 navigationState);
 
 return (WOComponent) qpi;
 
 }
 ___
 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/jlmiller%40kahalawai.com
 
 This email sent to jlmil...@kahalawai.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/programmingosx%40mac.com
 
 This email sent to programming...@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:
 

Re: d2w query question

2013-09-26 Thread David Holt
Are you using Localizable.strings?


On 2013-09-26, at 7:24 AM, Theodore Petrosky tedp...@yahoo.com wrote:

 
 On Sep 26, 2013, at 4:41 AM, Fabian Peters lists.fab...@e-lumo.com wrote:
 
 Hi Ted,
 
 Am 26.09.2013 um 01:51 schrieb Theodore Petrosky:
 
 yea sometimes the original answer to a post was over my head and I didn't 
 understand something, so I gave up.
 
 I have your solution working beautifully. I hope this helps me to 
 understand the delegates more.
 
 but here is an issue.
 
 here is the method that returns the QueryPage:
 
 public WOComponent queryBillboardAction() {
  QueryPageInterface qpi = (QueryPageInterface) 
 D2W.factory().queryPageForEntityNamed(Grid, session());
 
  ((D2WComponent) qpi).d2wContext().takeValueForKey(ListBillboard, 
 navigationState);
  ((D2WComponent) qpi).d2wContext().takeValueForKey(QueryBillboard, 
 pageConfiguration);
 
  return (WOComponent) qpi;
 
 }
 
 of course this is a 'subselect' of the entity 'Grid'. so the page that 
 returns is a ListGrid page.
 
 How can I control this? It needs to be a ListBillboard page.
 
 If your query page should return a list of billboards, then I guess the 
 query page should be one for billboards. If a billboard has some relation to 
 grid, you can still query for grid attributes by specifying key-paths from 
 billboard. Something like billboard.grids.id.
 
 it's the other way around. I have an entity 'Grid'. this entity has a boolean 
 attribute isBillboard. I have created a tab that gives a listing of a subset 
 of Grid where isBillboard is true.
 In the action method that returns the ListGrid page, I set the 
 navigationState:
 
 ((D2WComponent) lpi).d2wContext().takeValueForKey(ListBillboard, 
 navigationState);
 
 I have a search button that I set the delegate to return Grid entities where 
 isBillboard is true.
 
 Unfortunately, when you do a query, the returning page is a 'ListGrid' page 
 (As the entity is Grid). I am looking for a way such that when this ListGrid 
 page is returned, I can set the navigationState to 'ListBillboard'.
 
 I could make this easy on myself and create a view on the backend called 
 Billboard. (CREATE VIEW billboard AS SELECT * FROM t_grid WHERE isbillboard = 
 true). I could even set up some rules and triggers on the backend that would 
 make it updatable. Then I could just treat it as a separate entity and be 
 done.
 
 But I thought I would just stay on the WO side of things.
 
 
 
 Fabian
 
 Thank you for your patience.  When I first read your solution over a year 
 ago I felt it was too complex as I didn't have the knowledge to understand 
 it. Funny what another year looking at this stuff can do.
 
 Ted
 
 
 On Sep 25, 2013, at 4:26 PM, David Holt programming...@mac.com wrote:
 
 Nothing like a little deja vu, including the original poster.
 
 :-)
 
 
 On 2013-09-25, at 12:40 PM, Johnny Miller jlmil...@kahalawai.com wrote:
 
 Like this?
 
 http://lists.apple.com/archives/webobjects-dev/2012/Apr/msg00260.html
 
 
 On Sep 25, 2013, at 9:23 AM, Theodore Petrosky tedp...@yahoo.com wrote:
 
 I have an entity 'Grid' that has an attribute 'isBillboard'. I created 
 the list billboard tab with:
 
 public WOComponent listBillboardAction() {
 
 EOEditingContext ec = ERXEC.newEditingContext();
 ListPageInterface lpi = (ListPageInterface) 
 D2W.factory().pageForConfigurationNamed(ListGrid, session());
 
 EODatabaseDataSource ds = new EODatabaseDataSource(ec, Grid);
 
 ERXFetchSpecificationGrid fs =  new 
 ERXFetchSpecificationGrid(Grid.ENTITY_NAME, 
 Grid.IS_COMPLETE.eq(false).and(Grid.IS_BILLBOARD.eq(true)), null);
 
 ds.setFetchSpecification(fs);
 
 lpi.setDataSource(ds);
 
 ((D2WComponent) lpi).d2wContext().takeValueForKey(ListBillboard, 
 navigationState);
 
 return (D2WPage) lpi;
 }
 
 
 How can I apply the same limit to a Query page? I don't want to put a 
 control on the page to select 'isBillboard', i want isBillboard to be 
 true
 
 
 public WOComponent queryBillboardAction() {
 QueryPageInterface qpi = (QueryPageInterface) 
 D2W.factory().queryPageForEntityNamed(Grid, session());
 
 ((D2WComponent) qpi).d2wContext().takeValueForKey(ListBillboard, 
 navigationState);
 
 return (WOComponent) qpi;
 
 }
 ___
 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/jlmiller%40kahalawai.com
 
 This email sent to jlmil...@kahalawai.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/programmingosx%40mac.com
 
 This email sent to programming...@mac.com
 
 
 ___
 Do not post admin requests to the list. They will 

Re: d2w query question

2013-09-26 Thread Theodore Petrosky
yes, I use the Localizable.strings. I don't see how this would help?  I thought 
I wanted to change the context pageConfiguration.

What did I miss?




On Sep 26, 2013, at 12:12 PM, David Holt programming...@mac.com wrote:

 Are you using Localizable.strings?
 
 
 On 2013-09-26, at 7:24 AM, Theodore Petrosky tedp...@yahoo.com wrote:
 
 
 On Sep 26, 2013, at 4:41 AM, Fabian Peters lists.fab...@e-lumo.com wrote:
 
 Hi Ted,
 
 Am 26.09.2013 um 01:51 schrieb Theodore Petrosky:
 
 yea sometimes the original answer to a post was over my head and I didn't 
 understand something, so I gave up.
 
 I have your solution working beautifully. I hope this helps me to 
 understand the delegates more.
 
 but here is an issue.
 
 here is the method that returns the QueryPage:
 
 public WOComponent queryBillboardAction() {
 QueryPageInterface qpi = (QueryPageInterface) 
 D2W.factory().queryPageForEntityNamed(Grid, session());
 
 ((D2WComponent) qpi).d2wContext().takeValueForKey(ListBillboard, 
 navigationState);
 ((D2WComponent) qpi).d2wContext().takeValueForKey(QueryBillboard, 
 pageConfiguration);
 
 return (WOComponent) qpi;
 
 }
 
 of course this is a 'subselect' of the entity 'Grid'. so the page that 
 returns is a ListGrid page.
 
 How can I control this? It needs to be a ListBillboard page.
 
 If your query page should return a list of billboards, then I guess the 
 query page should be one for billboards. If a billboard has some relation 
 to grid, you can still query for grid attributes by specifying key-paths 
 from billboard. Something like billboard.grids.id.
 
 it's the other way around. I have an entity 'Grid'. this entity has a 
 boolean attribute isBillboard. I have created a tab that gives a listing of 
 a subset of Grid where isBillboard is true.
 In the action method that returns the ListGrid page, I set the 
 navigationState:
 
 ((D2WComponent) lpi).d2wContext().takeValueForKey(ListBillboard, 
 navigationState);
 
 I have a search button that I set the delegate to return Grid entities where 
 isBillboard is true.
 
 Unfortunately, when you do a query, the returning page is a 'ListGrid' page 
 (As the entity is Grid). I am looking for a way such that when this ListGrid 
 page is returned, I can set the navigationState to 'ListBillboard'.
 
 I could make this easy on myself and create a view on the backend called 
 Billboard. (CREATE VIEW billboard AS SELECT * FROM t_grid WHERE isbillboard 
 = true). I could even set up some rules and triggers on the backend that 
 would make it updatable. Then I could just treat it as a separate entity and 
 be done.
 
 But I thought I would just stay on the WO side of things.
 
 
 
 Fabian
 
 Thank you for your patience.  When I first read your solution over a year 
 ago I felt it was too complex as I didn't have the knowledge to understand 
 it. Funny what another year looking at this stuff can do.
 
 Ted
 
 
 On Sep 25, 2013, at 4:26 PM, David Holt programming...@mac.com wrote:
 
 Nothing like a little deja vu, including the original poster.
 
 :-)
 
 
 On 2013-09-25, at 12:40 PM, Johnny Miller jlmil...@kahalawai.com wrote:
 
 Like this?
 
 http://lists.apple.com/archives/webobjects-dev/2012/Apr/msg00260.html
 
 
 On Sep 25, 2013, at 9:23 AM, Theodore Petrosky tedp...@yahoo.com wrote:
 
 I have an entity 'Grid' that has an attribute 'isBillboard'. I created 
 the list billboard tab with:
 
 public WOComponent listBillboardAction() {
 
 EOEditingContext ec = ERXEC.newEditingContext();
 ListPageInterface lpi = (ListPageInterface) 
 D2W.factory().pageForConfigurationNamed(ListGrid, session());
 
 EODatabaseDataSource ds = new EODatabaseDataSource(ec, Grid);
 
 ERXFetchSpecificationGrid fs =  new 
 ERXFetchSpecificationGrid(Grid.ENTITY_NAME, 
 Grid.IS_COMPLETE.eq(false).and(Grid.IS_BILLBOARD.eq(true)), null);
 
 ds.setFetchSpecification(fs);
 
 lpi.setDataSource(ds);
 
 ((D2WComponent) lpi).d2wContext().takeValueForKey(ListBillboard, 
 navigationState);
 
 return (D2WPage) lpi;
 }
 
 
 How can I apply the same limit to a Query page? I don't want to put a 
 control on the page to select 'isBillboard', i want isBillboard to be 
 true
 
 
 public WOComponent queryBillboardAction() {
 QueryPageInterface qpi = (QueryPageInterface) 
 D2W.factory().queryPageForEntityNamed(Grid, session());
 
 ((D2WComponent) qpi).d2wContext().takeValueForKey(ListBillboard, 
 navigationState);
 
 return (WOComponent) qpi;
 
 }
 ___
 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/jlmiller%40kahalawai.com
 
 This email sent to jlmil...@kahalawai.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:
 

Re: d2w query question

2013-09-26 Thread David Holt
Hi Ted,

well Grid is the entity, but you only want to display those grids that are 
billboards?

Pages.ListGrid = List Billboards
Nav.ListGrid = List Billboards

 ((D2WComponent) qpi).d2wContext().takeValueForKey(ListBillboard, 
 navigationState);
 ((D2WComponent) qpi).d2wContext().takeValueForKey(QueryBillboard, 
 pageConfiguration);

I'm not sure these two rules make any sense (at least this is not how I do it). 
You probably should be setting navigation state in the rules. And if you want 
to use a custom pageConfiguration for your list page then you need to set it in 
your query page rules (either inline or as your listConfigurationName).

If you actually NEED a ListGrid page as well as Billboard, you'll have to 
create a custom pageConfiguration for Billboards and assign the usual task and 
entity to it.


On 2013-09-26, at 12:21 PM, Theodore Petrosky tedp...@yahoo.com wrote:

 yes, I use the Localizable.strings. I don't see how this would help?  I 
 thought I wanted to change the context pageConfiguration.
 
 What did I miss?
 
 
 
 
 On Sep 26, 2013, at 12:12 PM, David Holt programming...@mac.com wrote:
 
 Are you using Localizable.strings?
 
 
 On 2013-09-26, at 7:24 AM, Theodore Petrosky tedp...@yahoo.com wrote:
 
 
 On Sep 26, 2013, at 4:41 AM, Fabian Peters lists.fab...@e-lumo.com wrote:
 
 Hi Ted,
 
 Am 26.09.2013 um 01:51 schrieb Theodore Petrosky:
 
 yea sometimes the original answer to a post was over my head and I didn't 
 understand something, so I gave up.
 
 I have your solution working beautifully. I hope this helps me to 
 understand the delegates more.
 
 but here is an issue.
 
 here is the method that returns the QueryPage:
 
 public WOComponent queryBillboardAction() {
 QueryPageInterface qpi = (QueryPageInterface) 
 D2W.factory().queryPageForEntityNamed(Grid, session());
 
 ((D2WComponent) qpi).d2wContext().takeValueForKey(ListBillboard, 
 navigationState);
 ((D2WComponent) qpi).d2wContext().takeValueForKey(QueryBillboard, 
 pageConfiguration);
 
 return (WOComponent) qpi;
 
 }
 
 of course this is a 'subselect' of the entity 'Grid'. so the page that 
 returns is a ListGrid page.
 
 How can I control this? It needs to be a ListBillboard page.
 
 If your query page should return a list of billboards, then I guess the 
 query page should be one for billboards. If a billboard has some relation 
 to grid, you can still query for grid attributes by specifying key-paths 
 from billboard. Something like billboard.grids.id.
 
 it's the other way around. I have an entity 'Grid'. this entity has a 
 boolean attribute isBillboard. I have created a tab that gives a listing of 
 a subset of Grid where isBillboard is true.
 In the action method that returns the ListGrid page, I set the 
 navigationState:
 
 ((D2WComponent) lpi).d2wContext().takeValueForKey(ListBillboard, 
 navigationState);
 
 I have a search button that I set the delegate to return Grid entities 
 where isBillboard is true.
 
 Unfortunately, when you do a query, the returning page is a 'ListGrid' page 
 (As the entity is Grid). I am looking for a way such that when this 
 ListGrid page is returned, I can set the navigationState to 'ListBillboard'.
 
 I could make this easy on myself and create a view on the backend called 
 Billboard. (CREATE VIEW billboard AS SELECT * FROM t_grid WHERE isbillboard 
 = true). I could even set up some rules and triggers on the backend that 
 would make it updatable. Then I could just treat it as a separate entity 
 and be done.
 
 But I thought I would just stay on the WO side of things.
 
 
 
 Fabian
 
 Thank you for your patience.  When I first read your solution over a year 
 ago I felt it was too complex as I didn't have the knowledge to 
 understand it. Funny what another year looking at this stuff can do.
 
 Ted
 
 
 On Sep 25, 2013, at 4:26 PM, David Holt programming...@mac.com wrote:
 
 Nothing like a little deja vu, including the original poster.
 
 :-)
 
 
 On 2013-09-25, at 12:40 PM, Johnny Miller jlmil...@kahalawai.com wrote:
 
 Like this?
 
 http://lists.apple.com/archives/webobjects-dev/2012/Apr/msg00260.html
 
 
 On Sep 25, 2013, at 9:23 AM, Theodore Petrosky tedp...@yahoo.com 
 wrote:
 
 I have an entity 'Grid' that has an attribute 'isBillboard'. I created 
 the list billboard tab with:
 
 public WOComponent listBillboardAction() {
 
 EOEditingContext ec = ERXEC.newEditingContext();
 ListPageInterface lpi = (ListPageInterface) 
 D2W.factory().pageForConfigurationNamed(ListGrid, session());
 
 EODatabaseDataSource ds = new EODatabaseDataSource(ec, Grid);
 
 ERXFetchSpecificationGrid fs =  new 
 ERXFetchSpecificationGrid(Grid.ENTITY_NAME, 
 Grid.IS_COMPLETE.eq(false).and(Grid.IS_BILLBOARD.eq(true)), null);
 
 ds.setFetchSpecification(fs);
 
 lpi.setDataSource(ds);
 
 ((D2WComponent) lpi).d2wContext().takeValueForKey(ListBillboard, 
 navigationState);
 
 return (D2WPage) lpi;
 }
 
 
 How can I apply the same limit to a Query page? I don't want to put a 
 control on the page to 

Re: d2w query question

2013-09-26 Thread Theodore Petrosky

On Sep 26, 2013, at 5:07 PM, David Holt programming...@mac.com wrote:

 Hi Ted,
 
 well Grid is the entity, but you only want to display those grids that are 
 billboards?
 
 Pages.ListGrid = List Billboards
 Nav.ListGrid = List Billboards
 
 ((D2WComponent) qpi).d2wContext().takeValueForKey(ListBillboard, 
 navigationState);
 ((D2WComponent) qpi).d2wContext().takeValueForKey(QueryBillboard, 
 pageConfiguration);
 
 I'm not sure these two rules make any sense (at least this is not how I do 
 it). You probably should be setting navigation state in the rules. And if you 
 want to use a custom pageConfiguration for your list page then you need to 
 set it in your query page rules (either inline or as your 
 listConfigurationName).
 
 If you actually NEED a ListGrid page as well as Billboard, you'll have to 
 create a custom pageConfiguration for Billboards and assign the usual task 
 and entity to it.

and this is my issue. I NEED both the ListGrid and ListBillboard where the 
underlying entity is Grid. (Tab1 is the ListGrid tab, Tab2 is the ListBillboard 
tab) Are you suggesting here that I can do this with a custom 
pageConfiguration? Is there some example of this that I can examine? Keep in 
mind I have no problem when I enter the ListBillboard tab. My problem is when I 
click the query button on a Query Billboard. the resultant page is a ListGrid 
page that I want to call a List Billboard page.

Ted

 On 2013-09-26, at 12:21 PM, Theodore Petrosky tedp...@yahoo.com wrote:
 
 yes, I use the Localizable.strings. I don't see how this would help?  I 
 thought I wanted to change the context pageConfiguration.
 
 What did I miss?
 
 
 
 
 On Sep 26, 2013, at 12:12 PM, David Holt programming...@mac.com wrote:
 
 Are you using Localizable.strings?
 
 
 On 2013-09-26, at 7:24 AM, Theodore Petrosky tedp...@yahoo.com wrote:
 
 
 On Sep 26, 2013, at 4:41 AM, Fabian Peters lists.fab...@e-lumo.com wrote:
 
 Hi Ted,
 
 Am 26.09.2013 um 01:51 schrieb Theodore Petrosky:
 
 yea sometimes the original answer to a post was over my head and I 
 didn't understand something, so I gave up.
 
 I have your solution working beautifully. I hope this helps me to 
 understand the delegates more.
 
 but here is an issue.
 
 here is the method that returns the QueryPage:
 
 public WOComponent queryBillboardAction() {
 QueryPageInterface qpi = (QueryPageInterface) 
 D2W.factory().queryPageForEntityNamed(Grid, session());
 
 ((D2WComponent) qpi).d2wContext().takeValueForKey(ListBillboard, 
 navigationState);
 ((D2WComponent) qpi).d2wContext().takeValueForKey(QueryBillboard, 
 pageConfiguration);
 
 return (WOComponent) qpi;
 
 }
 
 of course this is a 'subselect' of the entity 'Grid'. so the page that 
 returns is a ListGrid page.
 
 How can I control this? It needs to be a ListBillboard page.
 
 If your query page should return a list of billboards, then I guess the 
 query page should be one for billboards. If a billboard has some relation 
 to grid, you can still query for grid attributes by specifying key-paths 
 from billboard. Something like billboard.grids.id.
 
 it's the other way around. I have an entity 'Grid'. this entity has a 
 boolean attribute isBillboard. I have created a tab that gives a listing 
 of a subset of Grid where isBillboard is true.
 In the action method that returns the ListGrid page, I set the 
 navigationState:
 
 ((D2WComponent) lpi).d2wContext().takeValueForKey(ListBillboard, 
 navigationState);
 
 I have a search button that I set the delegate to return Grid entities 
 where isBillboard is true.
 
 Unfortunately, when you do a query, the returning page is a 'ListGrid' 
 page (As the entity is Grid). I am looking for a way such that when this 
 ListGrid page is returned, I can set the navigationState to 
 'ListBillboard'.
 
 I could make this easy on myself and create a view on the backend called 
 Billboard. (CREATE VIEW billboard AS SELECT * FROM t_grid WHERE 
 isbillboard = true). I could even set up some rules and triggers on the 
 backend that would make it updatable. Then I could just treat it as a 
 separate entity and be done.
 
 But I thought I would just stay on the WO side of things.
 
 
 
 Fabian
 
 Thank you for your patience.  When I first read your solution over a 
 year ago I felt it was too complex as I didn't have the knowledge to 
 understand it. Funny what another year looking at this stuff can do.
 
 Ted
 
 
 On Sep 25, 2013, at 4:26 PM, David Holt programming...@mac.com wrote:
 
 Nothing like a little deja vu, including the original poster.
 
 :-)
 
 
 On 2013-09-25, at 12:40 PM, Johnny Miller jlmil...@kahalawai.com 
 wrote:
 
 Like this?
 
 http://lists.apple.com/archives/webobjects-dev/2012/Apr/msg00260.html
 
 
 On Sep 25, 2013, at 9:23 AM, Theodore Petrosky tedp...@yahoo.com 
 wrote:
 
 I have an entity 'Grid' that has an attribute 'isBillboard'. I 
 created the list billboard tab with:
 
 public WOComponent listBillboardAction() {
 
 EOEditingContext ec = 

  1   2   3   4   5   6   7   8   >