Re: Joda Time Prototypes [was Re: Patched MySQL plugin]

2011-01-16 Thread Johann Werner
Hi Ramsey,

any news on the status of the patch? Currently I have a project where those 
prototypes would fit marvelously. I was really astonished to see that there is 
no prototype at all for time only attributes in Wonder so this patch is an 
important addition to Wonder.

jw


Am 22.10.2010 um 04:39 schrieb Ramsey Lee Gurley:

> Oh, and I forgot to mention, 5.4 branch only.
> 
> Ramsey
> 
> On Oct 21, 2010, at 10:36 PM, Ramsey Lee Gurley wrote:
> 
>> Ok guys,
>> 
>> I've done some work on this and now have working Joda LocalTime, LocalDate, 
>> and LocalDateTime prototypes.  For any of you who are 
>> interested/adventurous, I've put patches to enable this up on JIRA. Feel 
>> free to give it a try and see if it works for you. Let me know if you find 
>> any bugs or have any suggestions.
>> 
>> http://issues.objectstyle.org/jira/browse/WONDER-611
>> 
>> Ramsey
>> 
>> On Oct 6, 2010, at 2:25 PM, Ramsey Gurley wrote:
>> 
>>> Ok, I see it.
>>> 
>>> Thanks,
>>> 
>>> Ramsey
>>> 
>>> On Oct 6, 2010, at 2:00 PM, Mike Schrag wrote:
>>> 
 i THINK it happens in EOAttribute it's like 
 adaptorValueByConvertingSomething..Value?
 
 On Oct 6, 2010, at 1:46 PM, Ramsey Gurley wrote:
 
> 
> On Oct 6, 2010, at 11:57 AM, John Huss wrote:
> 
>> 
>> didn't 5.4 add adaptorValueConversionClassName in addition to the 
>> adaptorValueConversionMethodName that lets you get around that 
>> limitation?
>> 
>> ms
>> 
>> You can add this to the list of things that don't work in 5.4.  When 
>> using the adaptorValueConversionClassName "converts" the value by 
>> assigning it to the java.lang.reflect.Method object represented by the 
>> conversion method; it doesn't ever invoke the method.  And it doesn't 
>> even find the correct method because it looks for one with no arguments, 
>> which is useless.  I guess no one ever tried to actually run that code 
>> after writing it.
>> 
>> I'll file a radar.
>> 
>> John 
> 
> Out of curiosity, where does it do that?  What class or classes do the 
> conversion?
> 
> Ramsey

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

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

who's killing my poor instance --

2011-01-16 Thread Jesse Tayler
I first noticed a few 'deaths' in monitor -

Then, I watch monitor and see my two instances being killed (or gracefully 
shutdown somehow) and restarted on the hour, like, clockwork, as it were.

Nothing in the app's output log, I hadn't noticed any 'death' reports before 
maybe a day ago, and I don't see any reason to think it is due to session death 
or something---

I even checked scheduling in monitor and it's off, but set to every day at 3

Does that remind anyone of anything?

It seems so peculiar, being hourly and all.


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

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


Re: ajaxtabbedpanel ??

2011-01-16 Thread Theodore Petrosky
Sharpy,

I don't know if you saw my later post for my 'solution'. 

For each TabPanel:


 Sees Employee Management: 
 
  


I added a isSelected to the WOD:

Tab2: AjaxTabbedPanelTab {
id="Tab2";
name = "Menus";
isSelected = Tab2Selected;
}

Then I added accessors to the Java and it works. I still have only the one form 
wrapping the ATP. I can only hope that I am not actually breaking something 
else.

Thanks for looking at it.

Ted

--- On Sun, 1/16/11, Michael Sharp  wrote:

> From: Michael Sharp 
> Subject: Re: ajaxtabbedpanel ??
> To: "Theodore Petrosky" 
> Cc: webobjects-dev@lists.apple.com
> Date: Sunday, January 16, 2011, 10:51 PM
> I think you're going to have to have
> a form per tab.
> 
> With a form wrapping the entire ATP, when tabs are selected
> form values are sent for the rendered form fields  only
> and not the hidden/not in the DOM fields.  The app
> seems to interpret this as nulls being provided for the
> missing fields, or in this case a default value of false.
> 
> If you override validateTakeValueForKeyPath you should see
> keypaths for non rendered fields showing up with null/false
> values when you select tabs..
> 
> Sharpy.
> 
> 
> On 14/01/2011, at 9:56 PM, Theodore Petrosky wrote:
> 
> > 
> > 
> > --- On Fri, 1/14/11, Michael Sharp 
> wrote:
> > 
> > 
> >> I do use TabbedPanel in an AMD so
> >> I'll try.
> >> 
> >> Any errors in eclipse console or javascript errors
> in the
> >> browser?
> > 
> > No errors
> > 
> > WOD and java for AMD
> > 
> > EditUserModalDialog : AjaxModalDialog {
> >     id = "editUserDialog";
> >     showOpener = false;
> >     locked = true;
> >     slideDownDuration = "0.2";
> >     slideUpDuration = "0.2";
> >     action = editUserMeta;
> >     onClose = refreshUserList;
> >     closeUpdateContainerID
> ="tableBody";
> >     transitions=true;
> > }
> > 
> > AMD is called from an opener:
> > 
> > EditUserOpener: AjaxModalDialogOpener {
> >     label = current.fullNameString; 
> >     dialogId = "editUserDialog";
> >     action = selectUserToEdit;
> >     title = EditUserMDTitle;
> > }
> > 
> > public WOActionResults editUserMeta() {
> >     TWTUser_EditMetaComponent nextPage
> =
> (TWTUser_EditMetaComponent)pageWithName(TWTUser_EditMetaComponent.class.getName());
> >     nextPage.setTheUser(aUserToEdit);
> >         
> >     return nextPage;
> > }
> > 
> > 
> >> 
> >> Is it a problem with Tab2 or with any tab after
> the initial
> >> tab is displayed. If you give Tab2 the binding of
> >> "isSelected = true;" does it display the correct
> behaviour?
> >> 
> >>> the tabpanel is on an AjaxModalDialog, when I
> create
> >> the modal dialog, I pass in a user object. user
> has a to one
> >> relationship with securitySettings.
> >> 
> >> So when you say pass in an object, you mean
> supplied as a
> >> binding to the component where the AMD is
> declared?
> >> 
> >> I can't reproduce the problem, maybe the contents
> of your
> >> .wod for TabbedPanel, Tab1 & Tab2 might
> help..
> > 
> > Here is all the code:
> > 
> > 
> > 
> >  .ajaxTabbedPanel {
> >    width: auto;
> >    border-bottom: 1px solid #c0c0c0;
> >    padding: 10px 0 0 20px;
> >  }
> > 
> >  .ajaxTabbedPanelTab-selected {
> >    display: inline;
> >    padding: 3px 7px 1px 7px;
> >    background: #ff;
> >    border: 1px solid #c0c0c0;
> >    border-bottom: 0;
> >  }
> > 
> >  .ajaxTabbedPanelTab-unselected {
> >    display: inline;
> >    padding: 2px 7px 0 7px;
> >    background: #f0f0f0;
> >    border: 1px solid #c0c0c0;
> >    border-bottom: 0;
> >    color: #c0c0c0;
> >  }
> > 
> >  .ajaxTabbedPanelTab-selected a {
> >    font-weight: bold;
> >    font-size: 12pt;
> >    color: #0066CC;
> >    padding: 6px;
> >  }
> > 
> >  .ajaxTabbedPanelTab-unselected a {
> >    font-size: 10pt;
> >    padding: 6px;
> >    color: #a0a0a0;
> >  }
> > 
> >  .ajaxTabbedPanelPanes {
> >    width:97%;
> >    padding-left: 0px;
> >    margin: 2%;
> >    min-height: 300px;
> >    overflow: auto;
> >  }
> > 
> >  .ajaxTabbedPanelPane-selected {
> >    list-style-type: none;
> >    display: block;
> >    padding: 10px;
> >  }
> > 
> >  .ajaxTabbedPanelPane-unselected {
> >    list-style-type: none;
> >    display: none;
> >  }
> > 
> >  .tabBox {
> >    border: 1px solid #c0c0c0;
> >    height: 400px;
> >    width: 620px;
> >    overflow: auto;
> >  }
> > 
> >  tr.meta1 {
> >  height:30px
> >  }
> > 
> > 
> >  
> >    
> >      
> >         "tableDefs" width = "550">
> >           "meta1">
> >             = "110">First Name
> >           
>  size = "65" />
> >          
> >            class = "meta1">
> >             width="35%">Last Name
> >           
>  size = "65" />
> >          
> >            class = "meta1">
> >           
> Title
> >           
>  />
> >          
> >        
> > 
> >      
> >      
> > 
> > 
> >          
> >            
> >             
> Sees Employee Management: 
> >               
>  "$theSecuritySettings.seesUserManagement" />
> >               

Re: ajaxtabbedpanel ??

2011-01-16 Thread Michael Sharp
I think you're going to have to have a form per tab.

With a form wrapping the entire ATP, when tabs are selected form values are 
sent for the rendered form fields  only and not the hidden/not in the DOM 
fields.  The app seems to interpret this as nulls being provided for the 
missing fields, or in this case a default value of false.

If you override validateTakeValueForKeyPath you should see keypaths for non 
rendered fields showing up with null/false values when you select tabs..

Sharpy.


On 14/01/2011, at 9:56 PM, Theodore Petrosky wrote:

> 
> 
> --- On Fri, 1/14/11, Michael Sharp  wrote:
> 
> 
>> I do use TabbedPanel in an AMD so
>> I'll try.
>> 
>> Any errors in eclipse console or javascript errors in the
>> browser?
> 
> No errors
> 
> WOD and java for AMD
> 
> EditUserModalDialog : AjaxModalDialog {
>   id = "editUserDialog";
>   showOpener = false;
>   locked = true;
>   slideDownDuration = "0.2";
>   slideUpDuration = "0.2";
>   action = editUserMeta;
>   onClose = refreshUserList;
>   closeUpdateContainerID ="tableBody";
>   transitions=true;
> }
> 
> AMD is called from an opener:
> 
> EditUserOpener: AjaxModalDialogOpener {
>   label = current.fullNameString; 
>   dialogId = "editUserDialog";
>   action = selectUserToEdit;
>   title = EditUserMDTitle;
> }
> 
> public WOActionResults editUserMeta() {
>   TWTUser_EditMetaComponent nextPage = 
> (TWTUser_EditMetaComponent)pageWithName(TWTUser_EditMetaComponent.class.getName());
>   nextPage.setTheUser(aUserToEdit);
>   
>   return nextPage;
> }
> 
> 
>> 
>> Is it a problem with Tab2 or with any tab after the initial
>> tab is displayed. If you give Tab2 the binding of
>> "isSelected = true;" does it display the correct behaviour?
>> 
>>> the tabpanel is on an AjaxModalDialog, when I create
>> the modal dialog, I pass in a user object. user has a to one
>> relationship with securitySettings.
>> 
>> So when you say pass in an object, you mean supplied as a
>> binding to the component where the AMD is declared?
>> 
>> I can't reproduce the problem, maybe the contents of your
>> .wod for TabbedPanel, Tab1 & Tab2 might help..
> 
> Here is all the code:
> 
> 
> 
>  .ajaxTabbedPanel {
>width: auto;
>border-bottom: 1px solid #c0c0c0;
>padding: 10px 0 0 20px;
>  }
> 
>  .ajaxTabbedPanelTab-selected {
>display: inline;
>padding: 3px 7px 1px 7px;
>background: #ff;
>border: 1px solid #c0c0c0;
>border-bottom: 0;
>  }
> 
>  .ajaxTabbedPanelTab-unselected {
>display: inline;
>padding: 2px 7px 0 7px;
>background: #f0f0f0;
>border: 1px solid #c0c0c0;
>border-bottom: 0;
>color: #c0c0c0;
>  }
> 
>  .ajaxTabbedPanelTab-selected a {
>font-weight: bold;
>font-size: 12pt;
>color: #0066CC;
>padding: 6px;
>  }
> 
>  .ajaxTabbedPanelTab-unselected a {
>font-size: 10pt;
>padding: 6px;
>color: #a0a0a0;
>  }
> 
>  .ajaxTabbedPanelPanes {
>width:97%;
>padding-left: 0px;
>margin: 2%;
>min-height: 300px;
>overflow: auto;
>  }
> 
>  .ajaxTabbedPanelPane-selected {
>list-style-type: none;
>display: block;
>padding: 10px;
>  }
> 
>  .ajaxTabbedPanelPane-unselected {
>list-style-type: none;
>display: none;
>  }
> 
>  .tabBox {
>border: 1px solid #c0c0c0;
>height: 400px;
>width: 620px;
>overflow: auto;
>  }
> 
>  tr.meta1 {
>  height:30px
>  }
> 
> 
>  
>
>  
>
>  
>First Name
> />
>  
>   
>Last Name
>
>  
>   
>Title
>
>  
>
> 
>  
>  
> 
> 
>  
>
>  Sees Employee Management: 
> "$theSecuritySettings.seesUserManagement" />
>
>
>Sees Client Management: 
> "$theSecuritySettings.seesClientManagement" />
>
>
>Sees Settings Management: 
> "$theUser.securitySettings.seesSettingsManagement" />
>
>
>Sees Work Management: 
> "$theUser.securitySettings.seesWorkManagement" />
>
>
>Sees Billing Management: 
> "$theUser.securitySettings.seesBillingManagement" />
>
>
>Sees Time Management: 
> "$theUser.securitySettings.seesTimeManagement" />
>
>
>Sees Task Management: 
> "$theUser.securitySettings.seesTaskManagement" />
>  
>  
>
>  
>
> 
> 
>
>  
>  
>   action = "$cancelEdits" value = "Cancel" />
> 
>   /> Loading... 
>  
> 
> WOD
> 
> 
> TabbedPanel: AjaxTabbedPanel {
>   id = "tabbedPanel";
>   busyDiv = "busydiv";
> }
> 
> Tab1: AjaxTa

Re: AjaxTabbedPanel ??? V2

2011-01-16 Thread Theodore Petrosky
ok here is what I did to get it to work.

in the WOD I added a isSelected binding:

Tab2: AjaxTabbedPanelTab {
id="Tab2";
name = "Menus";
isSelected = Tab2Selected; 
}


and in the Java:


public boolean Tab2Selected() {
return tab2Selected;
}

/**
 * @param tab2Selected the tab2Selected to set
 */
public void setTab2Selected(boolean tab2Selected) {
NSLog.out.appendln("setTab2Selected = " + tab2Selected);

this.tab2Selected = tab2Selected;
}

That's all I did and it is working as expected.

I don't know if that is what you were suggesting. But it works.

Ted



--- On Sun, 1/16/11, Chuck Hill  wrote:

> From: Chuck Hill 
> Subject: Re: AjaxTabbedPanel ??? V2
> To: "Theodore Petrosky" 
> Cc: "webobjects-dev@lists.apple.com List List" 
> 
> Date: Sunday, January 16, 2011, 4:39 PM
> 
> On Jan 16, 2011, at 12:58 PM, Theodore Petrosky wrote:
> 
> > yes if I make Tab2 the default tab then the problem
> reverses.
> 
> Then the problem is in your code and use of bindings, not
> the tabbed panel.
> 
> 
> > here is the code that is called to pass the User into
> the AMD
> > 
> > 
> > public WOActionResults editUserMeta() {
> > 
> >     EditUserMeta nextPage =
> (EditUserMeta)pageWithName(EditUserMeta.class.getName());
> >     nextPage.setTheUser(aUserToEdit);
> >         
> >     return nextPage;
> > }
> > 
> > in EditUserMeta.java I have:
> > 
> > public void setTheUser(User theUser) {
> >     this.theUser = theUser;
> >        
>         
> >     NSLog.out.appendln("theUser = "
> +    theUser.valueForKey("fullNameString"));
> >     NSLog.out.appendln("theUser
> seesUserManagement = " +   
> theUser.securitySettings().seesClientManagement());
> > 
> > }
> > 
> > When I access the AMD here is my log info:
> > 
> > Jan 16 13:12:40 TheWorkTracker[50828] INFO 
> NSLog  - theUser = Admin  
> > Jan 16 13:12:40 TheWorkTracker[50828] INFO 
> NSLog  - theUser seesUserManagement = true
> > 
> > Interesting that
> theUser.securitySettings().seesClientManagement() is true
> however the checkbox never is set.
> 
> theUser() should get called again when you select another
> tab.  Try logging this.theUser from that method.
> 
> 
> Chuck
> 
> 
> 
> 
> > --- On Sun, 1/16/11, Chuck Hill 
> wrote:
> > 
> >> From: Chuck Hill 
> >> Subject: Re: AjaxTabbedPanel ??? V2
> >> To: "Theodore Petrosky" 
> >> Cc: "webobjects-dev@lists.apple.com
> List List" 
> >> Date: Sunday, January 16, 2011, 3:52 PM
> >> The only other thing that I can
> >> think  of is that something in your
> code/bindings is
> >> setting theUser to null before you click on the
> second
> >> tab.  Remember that the tabs are not rendered
> nor the
> >> binding values transferred until the tab is
> selected. 
> >> Try making the second tab the default selected
> tab. 
> >> Does that reverse the problem?
> >> 
> >> 
> >> Chuck
> >> 
> >> 
> >> On Jan 16, 2011, at 12:45 PM, Farrukh Ijaz wrote:
> >> 
> >>> Apparently nothing is wrong with your code.
> Try using
> >> ERXOptionalForm instead of WOForm. Also try moving
> the form
> >> inside the tabbed panel.
> >>> 
> >>> I think you may need AjaxObserveField too
> around your
> >> fields inside the form.
> >>> 
> >>>  "$true">
> >>> 
>     >> fullSubmit="$true" action="$dummy">
> >>>     
> >>> 
>    
> >>> 
> >>> 
> >>> Farrukh
> >>> 
> >>> On 2011-01-16, at 9:13 PM, Theodore Petrosky
> wrote:
> >>> 
>  I have one form:
>  
>  
>  
>      >> "TabbedPanel">
>        >> "Tab1">
>          =
> >> "tableDefs" width = "550">
>  
>        
>     >> "meta1">
>         
> >>    First
> >> Name
>         
> >>     >> "$theUser.firstName" size = "65" />
>          
> 
>  
>        
>     >> "meta1">
>         
> >>    Last
> >> Name
>         
> >>     >> "$theUser.lastName" size = "65" />
>          
> 
>  
>        
>     >> "meta1">
>         
> >>    Title
>         
> >>     >> "EmployeeTitlePopUp" />
>          
> 
>  
>     
> >>     
>    
>    
>     >> "Tab1">
>  
>        >> "Tab2">
>  
>  
>          
> 
>         
> >>    
>           
> >>    Sees
> Employee
> >> Management: 
>             
> >>     >> "$theSecuritySettings.seesUserManagement" />
>             
> >>    
>             
> >>    
>             
> >>    Sees Client Management: 
>             
> >>     >> "$theSecuritySettings.seesClientManagement" />
>             
> >>    
>             
> >>    
>             
> >>    Sees Settings Management: 
>             
> >>     >> "$theUser.securitySettings.seesSettingsManagement"
> />
>           
> >>    
>           
> >>    
>         
> >>    
>          
> 
>         
>  
>  
>  
>  
>  
>  
>  
>   value =
> >> "Save" /> "$cancelEdits"
> >> value = "Cancel" />
>  
>  
>  
>  
>  --- On Sun, 1/16/11, Farrukh Ijaz 
> >> wrote:

Re: AjaxTabbedPanel ??? V2

2011-01-16 Thread Chuck Hill

On Jan 16, 2011, at 12:58 PM, Theodore Petrosky wrote:

> yes if I make Tab2 the default tab then the problem reverses.

Then the problem is in your code and use of bindings, not the tabbed panel.


> here is the code that is called to pass the User into the AMD
> 
> 
> public WOActionResults editUserMeta() {
> 
>   EditUserMeta nextPage = 
> (EditUserMeta)pageWithName(EditUserMeta.class.getName());
>   nextPage.setTheUser(aUserToEdit);
>   
>   return nextPage;
> }
> 
> in EditUserMeta.java I have:
> 
> public void setTheUser(User theUser) {
>   this.theUser = theUser;
>   
>   NSLog.out.appendln("theUser = " +   
> theUser.valueForKey("fullNameString"));
>   NSLog.out.appendln("theUser seesUserManagement = " +
> theUser.securitySettings().seesClientManagement());
> 
> }
> 
> When I access the AMD here is my log info:
> 
> Jan 16 13:12:40 TheWorkTracker[50828] INFO  NSLog  - theUser = Admin  
> Jan 16 13:12:40 TheWorkTracker[50828] INFO  NSLog  - theUser 
> seesUserManagement = true
> 
> Interesting that theUser.securitySettings().seesClientManagement() is true 
> however the checkbox never is set.

theUser() should get called again when you select another tab.  Try logging 
this.theUser from that method.


Chuck




> --- On Sun, 1/16/11, Chuck Hill  wrote:
> 
>> From: Chuck Hill 
>> Subject: Re: AjaxTabbedPanel ??? V2
>> To: "Theodore Petrosky" 
>> Cc: "webobjects-dev@lists.apple.com List List" 
>> 
>> Date: Sunday, January 16, 2011, 3:52 PM
>> The only other thing that I can
>> think  of is that something in your code/bindings is
>> setting theUser to null before you click on the second
>> tab.  Remember that the tabs are not rendered nor the
>> binding values transferred until the tab is selected. 
>> Try making the second tab the default selected tab. 
>> Does that reverse the problem?
>> 
>> 
>> Chuck
>> 
>> 
>> On Jan 16, 2011, at 12:45 PM, Farrukh Ijaz wrote:
>> 
>>> Apparently nothing is wrong with your code. Try using
>> ERXOptionalForm instead of WOForm. Also try moving the form
>> inside the tabbed panel.
>>> 
>>> I think you may need AjaxObserveField too around your
>> fields inside the form.
>>> 
>>> 
>>> > fullSubmit="$true" action="$dummy">
>>> 
>>> 
>>> 
>>> 
>>> Farrukh
>>> 
>>> On 2011-01-16, at 9:13 PM, Theodore Petrosky wrote:
>>> 
 I have one form:
 
 
 
> "TabbedPanel">
  > "Tab1">
> "tableDefs" width = "550">
 
   > "meta1">

>>First
>> Name

>>> "$theUser.firstName" size = "65" />
  
 
   > "meta1">

>>Last
>> Name

>>> "$theUser.lastName" size = "65" />
  
 
   > "meta1">

>>Title

>>> "EmployeeTitlePopUp" />
  
 

>> 
   > "Tab1">
 
  > "Tab2">
 
 
  

>>
  
>>Sees Employee
>> Management: 

>>> "$theSecuritySettings.seesUserManagement" />

>>

>>

>>Sees Client Management: 

>>> "$theSecuritySettings.seesClientManagement" />

>>

>>

>>Sees Settings Management: 

>>> "$theUser.securitySettings.seesSettingsManagement" />
  
>>
  
>>

>>
  

 
 
 
 
 
 
 
 > "Save" />> value = "Cancel" />
 
 
 
 
 --- On Sun, 1/16/11, Farrukh Ijaz 
>> wrote:
 
> From: Farrukh Ijaz 
> Subject: Re: AjaxTabbedPanel ??? V2
> To: "Theodore Petrosky" 
> Cc: webobjects-dev@lists.apple.com
> Date: Sunday, January 16, 2011, 12:24 PM
> Are you using a separate WOForm for
> each tab? If yes, then you should revise your
>> code and use 1
> form for all your fields no matter they span
>> across multiple
> tabs.
> 
> Farrukh
> 
> On 2011-01-16, at 5:32 PM, Theodore Petrosky
>> wrote:
> 
>> I am copying from the ajaxexample. 
>> 
>> in a nutshell I have:
>> 
>> Tab1 displays and edits
>> "$theUser.firstName" and
> various other fields.
>> Tab2 displays checkboxes for various
>> fields like:
>> 
>>  "$theUser.securitySettings.seesUserManagement"
>> />
>> 
>> Tab1 is set as isSelected = true;
>> 
>> when i display the AMD, Tab1 looks
>> beautiful however,
> when I display Tab2 all the securitySettings
>> are unchecked
> (this user should have them all checked
>> (true)).
>> 
>> If I make a change on Tab1, and save the
>> EC, all the
> securitySettings are set to false and
>> overwritten. If I go
> to Tab2 and check the settings to make them
>> true, saving
> saves these settings. 

Qualifier help with ERXToManyQualifier (? or an alternative)

2011-01-16 Thread Mark Wardle
Hi there.

I'm defining some export stuff within a property list and wish to
include an arbitrary qualifier during the export of arbitrary entities
(* see below)

I usually generate qualifiers in code and so am not particularly
familiar with generating qualifiers from a qualifierFormat string and
some bindings.

For instance, I wish to qualifier a fetch specification based on
user's membership of certain projects. Patients are also member of
particular projects.

NSArray projects = currentUser().projects()   // defined
elsewhere as the list of projects that this user is a member of
EOQualifier qual = Patient.ENTITY_NAME, new
ERXToManyQualifier(Patient.PROJECTS.key(), projects, 1));

How would I represent this as text... ?

"projects containsAny %@"

I note ERXToManyQualifier doesn't implement qualifierWithBindings().

I was even considering looking at a selector although I can't find
much documentation on this...

Many thanks,

Mark


(*) this is an example property list for these exporters:

(
{
entityName = "Patient";
qualifier = "projects contains %@";
keyPaths = (
{   keyPath = "id"; },
{   keyPath = "patientIdentifier"; },
{   keyPath = "status"; },
{   keyPath = "currentAge"; },
{   keyPath = "sex"; },
{   keyPath = "mother"; },
{   keyPath = "father"; },
{   keyPath = "dateDeath"; },
{
keyPath = "currentAddress.postcode.localHealthBoard.name";
columnName = "localHealthBoard";
}
   }
)
--
Dr. Mark Wardle
Specialist registrar, Neurology
Cardiff, UK
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: AjaxTabbedPanel ??? V2

2011-01-16 Thread Theodore Petrosky
yes if I make Tab2 the default tab then the problem reverses.

here is the code that is called to pass the User into the AMD


public WOActionResults editUserMeta() {

EditUserMeta nextPage = 
(EditUserMeta)pageWithName(EditUserMeta.class.getName());
nextPage.setTheUser(aUserToEdit);

return nextPage;
}

in EditUserMeta.java I have:

public void setTheUser(User theUser) {
this.theUser = theUser;

NSLog.out.appendln("theUser = " +   
theUser.valueForKey("fullNameString"));
NSLog.out.appendln("theUser seesUserManagement = " +
theUser.securitySettings().seesClientManagement());

}

When I access the AMD here is my log info:

Jan 16 13:12:40 TheWorkTracker[50828] INFO  NSLog  - theUser = Admin  
Jan 16 13:12:40 TheWorkTracker[50828] INFO  NSLog  - theUser seesUserManagement 
= true

Interesting that theUser.securitySettings().seesClientManagement() is true 
however the checkbox never is set.


Ted



--- On Sun, 1/16/11, Chuck Hill  wrote:

> From: Chuck Hill 
> Subject: Re: AjaxTabbedPanel ??? V2
> To: "Theodore Petrosky" 
> Cc: "webobjects-dev@lists.apple.com List List" 
> 
> Date: Sunday, January 16, 2011, 3:52 PM
> The only other thing that I can
> think  of is that something in your code/bindings is
> setting theUser to null before you click on the second
> tab.  Remember that the tabs are not rendered nor the
> binding values transferred until the tab is selected. 
> Try making the second tab the default selected tab. 
> Does that reverse the problem?
> 
> 
> Chuck
> 
> 
> On Jan 16, 2011, at 12:45 PM, Farrukh Ijaz wrote:
> 
> > Apparently nothing is wrong with your code. Try using
> ERXOptionalForm instead of WOForm. Also try moving the form
> inside the tabbed panel.
> > 
> > I think you may need AjaxObserveField too around your
> fields inside the form.
> > 
> > 
> >      fullSubmit="$true" action="$dummy">
> >     
> >     
> > 
> > 
> > Farrukh
> > 
> > On 2011-01-16, at 9:13 PM, Theodore Petrosky wrote:
> > 
> >> I have one form:
> >> 
> >> 
> >> 
> >>    "TabbedPanel">
> >>      "Tab1">
> >>        "tableDefs" width = "550">
> >> 
> >>           "meta1">
> >>       
>    First
> Name
> >>       
>     "$theUser.firstName" size = "65" />
> >>         
> >> 
> >>           "meta1">
> >>       
>    Last
> Name
> >>       
>     "$theUser.lastName" size = "65" />
> >>         
> >> 
> >>           "meta1">
> >>       
>    Title
> >>       
>     "EmployeeTitlePopUp" />
> >>         
> >> 
> >>   
>     
> >>       "Tab1">
> >> 
> >>      "Tab2">
> >> 
> >> 
> >>         
> >>       
>    
> >>         
>    Sees Employee
> Management: 
> >>           
>     "$theSecuritySettings.seesUserManagement" />
> >>           
>    
> >>           
>    
> >>           
>    Sees Client Management: 
> >>           
>     "$theSecuritySettings.seesClientManagement" />
> >>           
>    
> >>           
>    
> >>           
>    Sees Settings Management: 
> >>           
>     "$theUser.securitySettings.seesSettingsManagement" />
> >>         
>    
> >>         
>    
> >>       
>    
> >>         
> >>       
> >> 
> >> 
> >> 
> >> 
> >> 
> >> 
> >> 
> >>  "Save" /> value = "Cancel" />
> >> 
> >> 
> >> 
> >> 
> >> --- On Sun, 1/16/11, Farrukh Ijaz 
> wrote:
> >> 
> >>> From: Farrukh Ijaz 
> >>> Subject: Re: AjaxTabbedPanel ??? V2
> >>> To: "Theodore Petrosky" 
> >>> Cc: webobjects-dev@lists.apple.com
> >>> Date: Sunday, January 16, 2011, 12:24 PM
> >>> Are you using a separate WOForm for
> >>> each tab? If yes, then you should revise your
> code and use 1
> >>> form for all your fields no matter they span
> across multiple
> >>> tabs.
> >>> 
> >>> Farrukh
> >>> 
> >>> On 2011-01-16, at 5:32 PM, Theodore Petrosky
> wrote:
> >>> 
>  I am copying from the ajaxexample. 
>  
>  in a nutshell I have:
>  
>  Tab1 displays and edits
> "$theUser.firstName" and
> >>> various other fields.
>  Tab2 displays checkboxes for various
> fields like:
>  
>   >>> "$theUser.securitySettings.seesUserManagement"
> />
>  
>  Tab1 is set as isSelected = true;
>  
>  when i display the AMD, Tab1 looks
> beautiful however,
> >>> when I display Tab2 all the securitySettings
> are unchecked
> >>> (this user should have them all checked
> (true)).
>  
>  If I make a change on Tab1, and save the
> EC, all the
> >>> securitySettings are set to false and
> overwritten. If I go
> >>> to Tab2 and check the settings to make them
> true, saving
> >>> saves these settings. 
>  
>  So although I can set the values from
> Tab2, it doesn't
> >>> display the current settings.
>  
>  If you understand better the workings of
> the
> >>> AjaxTabbedPanel, maybe you could look at my
> code from last
> >>> week and see if my error is obvious.
>  
>  
>  You did say, 
>  
>  "> I think you need to specify the name
> property
> >>> for you
> > 

Re: AjaxTabbedPanel ??? V2

2011-01-16 Thread Chuck Hill
The only other thing that I can think  of is that something in your 
code/bindings is setting theUser to null before you click on the second tab.  
Remember that the tabs are not rendered nor the binding values transferred 
until the tab is selected.  Try making the second tab the default selected tab. 
 Does that reverse the problem?


Chuck


On Jan 16, 2011, at 12:45 PM, Farrukh Ijaz wrote:

> Apparently nothing is wrong with your code. Try using ERXOptionalForm instead 
> of WOForm. Also try moving the form inside the tabbed panel.
> 
> I think you may need AjaxObserveField too around your fields inside the form.
> 
> 
>   
>   
>   
> 
> 
> Farrukh
> 
> On 2011-01-16, at 9:13 PM, Theodore Petrosky wrote:
> 
>> I have one form:
>> 
>> 
>> 
>>   
>> 
>>   
>> 
>>  
>>   First Name
>>   > />
>> 
>> 
>>  
>>   Last Name
>>   
>> 
>> 
>>  
>>   Title
>>   
>> 
>> 
>>
>>  
>> 
>> 
>> 
>> 
>> 
>>   
>> Sees Employee Management: 
>>   > "$theSecuritySettings.seesUserManagement" />
>>   
>>   
>>   Sees Client Management: 
>>   > "$theSecuritySettings.seesClientManagement" />
>>   
>>   
>>   Sees Settings Management: 
>>   > "$theUser.securitySettings.seesSettingsManagement" />
>> 
>> 
>>   
>> 
>>   
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> > action = "$cancelEdits" value = "Cancel" />
>> 
>> 
>> 
>> 
>> --- On Sun, 1/16/11, Farrukh Ijaz  wrote:
>> 
>>> From: Farrukh Ijaz 
>>> Subject: Re: AjaxTabbedPanel ??? V2
>>> To: "Theodore Petrosky" 
>>> Cc: webobjects-dev@lists.apple.com
>>> Date: Sunday, January 16, 2011, 12:24 PM
>>> Are you using a separate WOForm for
>>> each tab? If yes, then you should revise your code and use 1
>>> form for all your fields no matter they span across multiple
>>> tabs.
>>> 
>>> Farrukh
>>> 
>>> On 2011-01-16, at 5:32 PM, Theodore Petrosky wrote:
>>> 
 I am copying from the ajaxexample. 
 
 in a nutshell I have:
 
 Tab1 displays and edits "$theUser.firstName" and
>>> various other fields.
 Tab2 displays checkboxes for various fields like:
 
 >> "$theUser.securitySettings.seesUserManagement" />
 
 Tab1 is set as isSelected = true;
 
 when i display the AMD, Tab1 looks beautiful however,
>>> when I display Tab2 all the securitySettings are unchecked
>>> (this user should have them all checked (true)).
 
 If I make a change on Tab1, and save the EC, all the
>>> securitySettings are set to false and overwritten. If I go
>>> to Tab2 and check the settings to make them true, saving
>>> saves these settings. 
 
 So although I can set the values from Tab2, it doesn't
>>> display the current settings.
 
 If you understand better the workings of the
>>> AjaxTabbedPanel, maybe you could look at my code from last
>>> week and see if my error is obvious.
 
 
 You did say, 
 
 "> I think you need to specify the name property
>>> for you
> tabbed panel."
 
 What does this mean?
 
 
 Thanks,
 
 Ted
 
 
 
 
 --- On Sun, 1/16/11, Farrukh Ijaz 
>>> wrote:
 
> From: Farrukh Ijaz 
> Subject: Re: AjaxTabbedPanel ??? V2
> To: "Theodore Petrosky" 
> Cc: webobjects-dev@lists.apple.com
> Date: Sunday, January 16, 2011, 8:24 AM
> Hi Ted,
> 
> I think you need to specify the name property for
>>> you
> tabbed panel. Anyhow, working with AjaxTabbedPanel
>>> is a bit
> tricking. The easiest way is to copy the code from
>>> the Ajax
> examples and tweak it for your need.
> 
> Farrukh
> 
> On 2011-01-16, at 4:20 PM, Theodore Petrosky
>>> wrote:
> 
>> Is there some secret that I am missing about
>>> using the
> AjaxTabbedPanel?
>> 
>> Nothing I do seems to allow it to display the
>>> data I
> need. I posted earlier in the week my problem, if
>>> anyone has
> an idea what I can do to learn this feature.
>> 
>> I posted what I thought was an appropriate
>>> amount of
> detail (including my code) last week. I could
>>> repost it. 
>> 
>> Help, I really like what this looks like if
>>> only I
> could get it 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:
>> http://lists.apple.com/mailman/options/webobjects-dev/farrukh.ijaz%40fuegodigitalmedia.com
>> 
>> This email sent to farrukh.i...@fuegodigitalmedia.com
> 
> ___
> Do not post admin requests to th

Re: AjaxTabbedPanel ??? V2

2011-01-16 Thread Farrukh Ijaz
Apparently nothing is wrong with your code. Try using ERXOptionalForm instead 
of WOForm. Also try moving the form inside the tabbed panel.

I think you may need AjaxObserveField too around your fields inside the form.







Farrukh

On 2011-01-16, at 9:13 PM, Theodore Petrosky wrote:

> I have one form:
> 
> 
>  
>
>  
>
> 
>   
>First Name
> />
>  
> 
>   
>Last Name
>
>  
> 
>   
>Title
>
>  
> 
> 
>   
> 
>  
> 
> 
>  
>
>  Sees Employee Management: 
> "$theSecuritySettings.seesUserManagement" />
>
>
>Sees Client Management: 
> "$theSecuritySettings.seesClientManagement" />
>
>
>Sees Settings Management: 
> "$theUser.securitySettings.seesSettingsManagement" />
>  
>  
>
>  
>
> 
> 
> 
> 
> 
> 
> 
>   action = "$cancelEdits" value = "Cancel" />
> 
> 
> 
> 
> --- On Sun, 1/16/11, Farrukh Ijaz  wrote:
> 
>> From: Farrukh Ijaz 
>> Subject: Re: AjaxTabbedPanel ??? V2
>> To: "Theodore Petrosky" 
>> Cc: webobjects-dev@lists.apple.com
>> Date: Sunday, January 16, 2011, 12:24 PM
>> Are you using a separate WOForm for
>> each tab? If yes, then you should revise your code and use 1
>> form for all your fields no matter they span across multiple
>> tabs.
>> 
>> Farrukh
>> 
>> On 2011-01-16, at 5:32 PM, Theodore Petrosky wrote:
>> 
>>> I am copying from the ajaxexample. 
>>> 
>>> in a nutshell I have:
>>> 
>>> Tab1 displays and edits "$theUser.firstName" and
>> various other fields.
>>> Tab2 displays checkboxes for various fields like:
>>> 
>>> > "$theUser.securitySettings.seesUserManagement" />
>>> 
>>> Tab1 is set as isSelected = true;
>>> 
>>> when i display the AMD, Tab1 looks beautiful however,
>> when I display Tab2 all the securitySettings are unchecked
>> (this user should have them all checked (true)).
>>> 
>>> If I make a change on Tab1, and save the EC, all the
>> securitySettings are set to false and overwritten. If I go
>> to Tab2 and check the settings to make them true, saving
>> saves these settings. 
>>> 
>>> So although I can set the values from Tab2, it doesn't
>> display the current settings.
>>> 
>>> If you understand better the workings of the
>> AjaxTabbedPanel, maybe you could look at my code from last
>> week and see if my error is obvious.
>>> 
>>> 
>>> You did say, 
>>> 
>>> "> I think you need to specify the name property
>> for you
 tabbed panel."
>>> 
>>> What does this mean?
>>> 
>>> 
>>> Thanks,
>>> 
>>> Ted
>>> 
>>> 
>>> 
>>> 
>>> --- On Sun, 1/16/11, Farrukh Ijaz 
>> wrote:
>>> 
 From: Farrukh Ijaz 
 Subject: Re: AjaxTabbedPanel ??? V2
 To: "Theodore Petrosky" 
 Cc: webobjects-dev@lists.apple.com
 Date: Sunday, January 16, 2011, 8:24 AM
 Hi Ted,
 
 I think you need to specify the name property for
>> you
 tabbed panel. Anyhow, working with AjaxTabbedPanel
>> is a bit
 tricking. The easiest way is to copy the code from
>> the Ajax
 examples and tweak it for your need.
 
 Farrukh
 
 On 2011-01-16, at 4:20 PM, Theodore Petrosky
>> wrote:
 
> Is there some secret that I am missing about
>> using the
 AjaxTabbedPanel?
> 
> Nothing I do seems to allow it to display the
>> data I
 need. I posted earlier in the week my problem, if
>> anyone has
 an idea what I can do to learn this feature.
> 
> I posted what I thought was an appropriate
>> amount of
 detail (including my code) last week. I could
>> repost it. 
> 
> Help, I really like what this looks like if
>> only I
 could get it 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:
> http://lists.apple.com/mailman/options/webobjects-dev/farrukh.ijaz%40fuegodigitalmedia.com
> 
> This email sent to farrukh.i...@fuegodigitalmedia.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:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: AjaxTabbedPanel ??? V2

2011-01-16 Thread Theodore Petrosky
I have one form:


  

  

  
   
First Name

  

   
Last Name

  

   
Title

  

 
   
   
  


  

  Sees Employee Management: 



Sees Client Management: 



Sees Settings Management: 

  
  

  


 

 



  




--- On Sun, 1/16/11, Farrukh Ijaz  wrote:

> From: Farrukh Ijaz 
> Subject: Re: AjaxTabbedPanel ??? V2
> To: "Theodore Petrosky" 
> Cc: webobjects-dev@lists.apple.com
> Date: Sunday, January 16, 2011, 12:24 PM
> Are you using a separate WOForm for
> each tab? If yes, then you should revise your code and use 1
> form for all your fields no matter they span across multiple
> tabs.
> 
> Farrukh
> 
> On 2011-01-16, at 5:32 PM, Theodore Petrosky wrote:
> 
> > I am copying from the ajaxexample. 
> > 
> > in a nutshell I have:
> > 
> > Tab1 displays and edits "$theUser.firstName" and
> various other fields.
> > Tab2 displays checkboxes for various fields like:
> > 
> >  "$theUser.securitySettings.seesUserManagement" />
> > 
> > Tab1 is set as isSelected = true;
> > 
> > when i display the AMD, Tab1 looks beautiful however,
> when I display Tab2 all the securitySettings are unchecked
> (this user should have them all checked (true)).
> > 
> > If I make a change on Tab1, and save the EC, all the
> securitySettings are set to false and overwritten. If I go
> to Tab2 and check the settings to make them true, saving
> saves these settings. 
> > 
> > So although I can set the values from Tab2, it doesn't
> display the current settings.
> > 
> > If you understand better the workings of the
> AjaxTabbedPanel, maybe you could look at my code from last
> week and see if my error is obvious.
> > 
> > 
> > You did say, 
> > 
> > "> I think you need to specify the name property
> for you
> >> tabbed panel."
> > 
> > What does this mean?
> > 
> > 
> > Thanks,
> > 
> > Ted
> > 
> > 
> > 
> > 
> > --- On Sun, 1/16/11, Farrukh Ijaz 
> wrote:
> > 
> >> From: Farrukh Ijaz 
> >> Subject: Re: AjaxTabbedPanel ??? V2
> >> To: "Theodore Petrosky" 
> >> Cc: webobjects-dev@lists.apple.com
> >> Date: Sunday, January 16, 2011, 8:24 AM
> >> Hi Ted,
> >> 
> >> I think you need to specify the name property for
> you
> >> tabbed panel. Anyhow, working with AjaxTabbedPanel
> is a bit
> >> tricking. The easiest way is to copy the code from
> the Ajax
> >> examples and tweak it for your need.
> >> 
> >> Farrukh
> >> 
> >> On 2011-01-16, at 4:20 PM, Theodore Petrosky
> wrote:
> >> 
> >>> Is there some secret that I am missing about
> using the
> >> AjaxTabbedPanel?
> >>> 
> >>> Nothing I do seems to allow it to display the
> data I
> >> need. I posted earlier in the week my problem, if
> anyone has
> >> an idea what I can do to learn this feature.
> >>> 
> >>> I posted what I thought was an appropriate
> amount of
> >> detail (including my code) last week. I could
> repost it. 
> >>> 
> >>> Help, I really like what this looks like if
> only I
> >> could get it 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:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: AjaxTabbedPanel ??? V2

2011-01-16 Thread Farrukh Ijaz
Are you using a separate WOForm for each tab? If yes, then you should revise 
your code and use 1 form for all your fields no matter they span across 
multiple tabs.

Farrukh

On 2011-01-16, at 5:32 PM, Theodore Petrosky wrote:

> I am copying from the ajaxexample. 
> 
> in a nutshell I have:
> 
> Tab1 displays and edits "$theUser.firstName" and various other fields.
> Tab2 displays checkboxes for various fields like:
> 
> 
> 
> Tab1 is set as isSelected = true;
> 
> when i display the AMD, Tab1 looks beautiful however, when I display Tab2 all 
> the securitySettings are unchecked (this user should have them all checked 
> (true)).
> 
> If I make a change on Tab1, and save the EC, all the securitySettings are set 
> to false and overwritten. If I go to Tab2 and check the settings to make them 
> true, saving saves these settings. 
> 
> So although I can set the values from Tab2, it doesn't display the current 
> settings.
> 
> If you understand better the workings of the AjaxTabbedPanel, maybe you could 
> look at my code from last week and see if my error is obvious.
> 
> 
> You did say, 
> 
> "> I think you need to specify the name property for you
>> tabbed panel."
> 
> What does this mean?
> 
> 
> Thanks,
> 
> Ted
> 
> 
> 
> 
> --- On Sun, 1/16/11, Farrukh Ijaz  wrote:
> 
>> From: Farrukh Ijaz 
>> Subject: Re: AjaxTabbedPanel ??? V2
>> To: "Theodore Petrosky" 
>> Cc: webobjects-dev@lists.apple.com
>> Date: Sunday, January 16, 2011, 8:24 AM
>> Hi Ted,
>> 
>> I think you need to specify the name property for you
>> tabbed panel. Anyhow, working with AjaxTabbedPanel is a bit
>> tricking. The easiest way is to copy the code from the Ajax
>> examples and tweak it for your need.
>> 
>> Farrukh
>> 
>> On 2011-01-16, at 4:20 PM, Theodore Petrosky wrote:
>> 
>>> Is there some secret that I am missing about using the
>> AjaxTabbedPanel?
>>> 
>>> Nothing I do seems to allow it to display the data I
>> need. I posted earlier in the week my problem, if anyone has
>> an idea what I can do to learn this feature.
>>> 
>>> I posted what I thought was an appropriate amount of
>> detail (including my code) last week. I could repost it. 
>>> 
>>> Help, I really like what this looks like if only I
>> could get it 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:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: Plugins system?

2011-01-16 Thread Pascal Robert

Le 2011-01-16 à 11:00, Anjo Krank a écrit :

> - Use some scripting system like jruby. Presumably it can reload code.
> - Include everything beforehand an en-/disable based on properties.

That's a pretty neat idea!

> - create a new class loader, call App.main() and quit the current app 
> (probably tricky to do).

Yirk.

> And it would depend on what sort of functionality you actually want to add.

I was thinking of doing a small CMS as an WO/Wonder tutorial, and like most CMS 
it would be great to extend it with plugins. A sample plugin would be to 
Alfresco or CMIS integration, where you can get files from a CMIS repository 
(Alfresco being one of them) and link to those files in a CMS-built Web site. 
Somewhat like Confluence: you get a very good set of plugins by default but you 
can extend it by getting plugins from a central list of plugins made by 
Atlassian and others.

> Cheers, Anjo
> 
> 
> 
> Am 16.01.2011 um 15:44 schrieb Pascal Robert:
> 
>> I'm thinking about doing a plugins system so that a WO server-side app can 
>> add functionality based on what the customer select. So far, I think the 
>> only options are:
>> 
>> - Using ERXInlineTemplate for components that don't need new or modified 
>> Java code.
>> 
>> - When a new plugin is selected, trigger a new version of the app in Hudson, 
>> send back the new version to the customer, install it and restart the 
>> instances.
>> 
>> - When a new plugin is selected, send the plugin as a framework, modify the 
>> *ClassPath.txt file to include the new framework and restart the instances.
>> 
>> - Wait for LiveRebel.
>> 
>> Any other options? ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>> Help/Unsubscribe/Update your Subscription:
>> http://lists.apple.com/mailman/options/webobjects-dev/anjo%40krank.net
>> 
>> This email sent to a...@krank.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:
> http://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca
> 
> This email sent to prob...@macti.ca

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

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


Re: Plugins system?

2011-01-16 Thread Anjo Krank
- Use some scripting system like jruby. Presumably it can reload code.
- Include everything beforehand an en-/disable based on properties.
- create a new class loader, call App.main() and quit the current app (probably 
tricky to do).

And it would depend on what sort of functionality you actually want to add.

Cheers, Anjo



Am 16.01.2011 um 15:44 schrieb Pascal Robert:

> I'm thinking about doing a plugins system so that a WO server-side app can 
> add functionality based on what the customer select. So far, I think the only 
> options are:
> 
> - Using ERXInlineTemplate for components that don't need new or modified Java 
> code.
> 
> - When a new plugin is selected, trigger a new version of the app in Hudson, 
> send back the new version to the customer, install it and restart the 
> instances.
> 
> - When a new plugin is selected, send the plugin as a framework, modify the 
> *ClassPath.txt file to include the new framework and restart the instances.
> 
> - Wait for LiveRebel.
> 
> Any other options? ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/anjo%40krank.net
> 
> This email sent to a...@krank.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:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Plugins system?

2011-01-16 Thread Pascal Robert
I'm thinking about doing a plugins system so that a WO server-side app can add 
functionality based on what the customer select. So far, I think the only 
options are:

- Using ERXInlineTemplate for components that don't need new or modified Java 
code.

- When a new plugin is selected, trigger a new version of the app in Hudson, 
send back the new version to the customer, install it and restart the instances.

- When a new plugin is selected, send the plugin as a framework, modify the 
*ClassPath.txt file to include the new framework and restart the instances.

- Wait for LiveRebel.

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

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


Re: AjaxTabbedPanel ??? V2

2011-01-16 Thread Theodore Petrosky
I am copying from the ajaxexample. 

in a nutshell I have:

Tab1 displays and edits "$theUser.firstName" and various other fields.
Tab2 displays checkboxes for various fields like:



Tab1 is set as isSelected = true;

when i display the AMD, Tab1 looks beautiful however, when I display Tab2 all 
the securitySettings are unchecked (this user should have them all checked 
(true)).

If I make a change on Tab1, and save the EC, all the securitySettings are set 
to false and overwritten. If I go to Tab2 and check the settings to make them 
true, saving saves these settings. 

So although I can set the values from Tab2, it doesn't display the current 
settings.

If you understand better the workings of the AjaxTabbedPanel, maybe you could 
look at my code from last week and see if my error is obvious.


You did say, 

"> I think you need to specify the name property for you
> tabbed panel."

What does this mean?


Thanks,

Ted




--- On Sun, 1/16/11, Farrukh Ijaz  wrote:

> From: Farrukh Ijaz 
> Subject: Re: AjaxTabbedPanel ??? V2
> To: "Theodore Petrosky" 
> Cc: webobjects-dev@lists.apple.com
> Date: Sunday, January 16, 2011, 8:24 AM
> Hi Ted,
> 
> I think you need to specify the name property for you
> tabbed panel. Anyhow, working with AjaxTabbedPanel is a bit
> tricking. The easiest way is to copy the code from the Ajax
> examples and tweak it for your need.
> 
> Farrukh
> 
> On 2011-01-16, at 4:20 PM, Theodore Petrosky wrote:
> 
> > Is there some secret that I am missing about using the
> AjaxTabbedPanel?
> > 
> > Nothing I do seems to allow it to display the data I
> need. I posted earlier in the week my problem, if anyone has
> an idea what I can do to learn this feature.
> > 
> > I posted what I thought was an appropriate amount of
> detail (including my code) last week. I could repost it. 
> > 
> > Help, I really like what this looks like if only I
> could get it 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:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: AjaxTabbedPanel ??? V2

2011-01-16 Thread Farrukh Ijaz
Hi Ted,

I think you need to specify the name property for you tabbed panel. Anyhow, 
working with AjaxTabbedPanel is a bit tricking. The easiest way is to copy the 
code from the Ajax examples and tweak it for your need.

Farrukh

On 2011-01-16, at 4:20 PM, Theodore Petrosky wrote:

> Is there some secret that I am missing about using the AjaxTabbedPanel?
> 
> Nothing I do seems to allow it to display the data I need. I posted earlier 
> in the week my problem, if anyone has an idea what I can do to learn this 
> feature.
> 
> I posted what I thought was an appropriate amount of detail (including my 
> code) last week. I could repost it. 
> 
> Help, I really like what this looks like if only I could get it 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:
> http://lists.apple.com/mailman/options/webobjects-dev/farrukh.ijaz%40fuegodigitalmedia.com
> 
> This email sent to farrukh.i...@fuegodigitalmedia.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:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


AjaxTabbedPanel ??? V2

2011-01-16 Thread Theodore Petrosky
Is there some secret that I am missing about using the AjaxTabbedPanel?

Nothing I do seems to allow it to display the data I need. I posted earlier in 
the week my problem, if anyone has an idea what I can do to learn this feature.

I posted what I thought was an appropriate amount of detail (including my code) 
last week. I could repost it. 

Help, I really like what this looks like if only I could get it 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:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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