Best way to remove a component?

2011-12-02 Thread Kevin Spake
I made an error when I created a new component, and I'd like to delete it. However, I've noticed that "Delete" in eclipse rarely does the trick. It will delete the chosen item,, but not the associated .java files, or code references to it, etc. Eclipse has a "history" feature, but apparently, th

D2W WizardPage with Save button on all pages?

2011-12-02 Thread James Cicenia
Is there a rule or something I need to subclass to make a save button appear on each page of a ERD2WWizardCreationPage? I am using modernlook. Thanks James smime.p7s Description: S/MIME cryptographic signature ___ Do not post admin requests to the l

Re: Restoring session after timeout.

2011-12-02 Thread Chuck Hill
On 2011-12-02, at 10:21 AM, Ramsey Gurley wrote: > > On Dec 2, 2011, at 11:07 AM, Chuck Hill wrote: > >> >> On 2011-12-02, at 7:32 AM, Ramsey Gurley wrote: >> >>> I have a framework that is designed to serialize the session automatically, >>> save it to the database, and use distributed sess

Re: Restoring session after timeout.

2011-12-02 Thread Ramsey Gurley
On Dec 2, 2011, at 11:07 AM, Chuck Hill wrote: > > On 2011-12-02, at 7:32 AM, Ramsey Gurley wrote: > >> I have a framework that is designed to serialize the session automatically, >> save it to the database, and use distributed session storage. Theoretically, >> you could set the session to a

Re: Restoring session after timeout.

2011-12-02 Thread Chuck Hill
On 2011-12-02, at 7:32 AM, Ramsey Gurley wrote: > I have a framework that is designed to serialize the session automatically, > save it to the database, and use distributed session storage. Theoretically, > you could set the session to almost never expire, allowing an almost > permanent login

Re: configuring tiny_mce.. solution

2011-12-02 Thread David LeBer
James, The canonical Wonder API reference is here: Specific documentation for EREditHTML is lacking I admit (feel free to enhance the Java dock header and issue a pull request). There are two example text modes provided in the ERDir

Re: configuring tiny_mce.. solution

2011-12-02 Thread David Holt
There's an example included with SimpleBlog (might be the same as David's below). https://github.com/daveeed/SimpleBlog/blob/master/SimpleBlog/Resources/user.d2wmodel.txt On 2011-12-02, at 9:35 AM, James Cicenia wrote: > FWIW > > I could only find some reference to richTexMode here: > > http

Re: Restoring session after timeout.

2011-12-02 Thread Pascal Robert
REST/DirectActions is not perfect, personally I use them for "public" stuff, where we only need basic state and we can assume most people will use the back button and that they might fill a form in four hours. I wouldn't use any D2W or "regular stateful" for a public app that is mostly read-only

Re: Restoring session after timeout.

2011-12-02 Thread Mahdi Mankai
Thanks Guys for the helpful comments. I think I was a bit misunderstood, I got my answer though :). Actually, my application has a public website that is session less and relies on cookies to identify users using direct actions only. In this case, it's easy to keep users logged in. However, wh

Re: configuring tiny_mce.. solution

2011-12-02 Thread James Cicenia
FWIW I could only find some reference to richTexMode here: http://aurealis.de/webobjects/wonder/api/html/classer_1_1directtoweb_1_1components_1_1strings_1_1_e_r_d_edit_h_t_m_l.html and it was private. So I lucked out by making your rule/key point to richTextMode/key. And it worked! However, w

Re: Restoring session after timeout.

2011-12-02 Thread Ramsey Gurley
I can see how this could work for simple CRUD stuff. It seems this would break down when it comes to complex backtracking/flow though. Let's say I query -> list -> edit list object -> confirm -> save -> return to list... that's a lot of backtrack state to maintain in the url/submitted form.

Re: configuring tiny_mce

2011-12-02 Thread James Cicenia
Perfect Thanks James On Dec 2, 2011, at 11:08 AM, David LeBer wrote: > Yeah, > > Take a look at the rules defining: > > richTextMode > simpleRichTextMode > complexRichTextMode > > In ERDirectToWeb > > Here is another example: > > 0 : *true* => cmsRichTextMode = "mode : 't

Re: configuring tiny_mce

2011-12-02 Thread David LeBer
Yeah, Take a look at the rules defining: richTextMode simpleRichTextMode complexRichTextMode In ERDirectToWeb Here is another example: 0 : *true* => cmsRichTextMode = "mode : 'textareas', theme: 'advanced', plugins: 'paste', theme_advanced_buttons1: 'pastetext,pastewo

configuring tiny_mce

2011-12-02 Thread James Cicenia
Can I add more things to tiny_mce? Font color , size? I am using wonder and have this set in my properties er.directtoweb.ERDEditHTML.tinyMceSourceFileName = tiny_mce/tiny_mce.js do I do it in a rule? Thanks James smime.p7s Description: S/MIME cryptographic signature ___

Re: Restoring session after timeout.

2011-12-02 Thread Pascal Robert
Le 2011-12-02 à 11:03, Jean-Francois Veillette a écrit : >> I've seen this before ! >> >> What you have to do is make sure every significant state can somewhat get >> back to the server on the next request. >> For user-login you have the cookie. >> For specific editing context information, you

Re: Restoring session after timeout.

2011-12-02 Thread Jean-Francois Veillette
> I've seen this before ! > > What you have to do is make sure every significant state can somewhat get > back to the server on the next request. > For user-login you have the cookie. > For specific editing context information, you can get some back in having > eo-id encoded within the form. Li

Re: Restoring session after timeout.

2011-12-02 Thread Jean-Francois Veillette
I've seen this before ! What you have to do is make sure every significant state can somewhat get back to the server on the next request. For user-login you have the cookie. For specific editing context information, you can get some back in having eo-id encoded within the form. Like having a te

Re: Restoring session after timeout.

2011-12-02 Thread Ramsey Gurley
I have a framework that is designed to serialize the session automatically, save it to the database, and use distributed session storage. Theoretically, you could set the session to almost never expire, allowing an almost permanent login like this. It just doesn't work in practice, because seri

Re: Restoring session after timeout.

2011-12-02 Thread arosenzweig
Hi Mahdi, The session is not just a cookie. It is a reference to many objects stored in RAM for one user. It's what allows a web application to "remember" what a user is doing. It can eat up a lot of resources but is very convenient. That thing you are currently storing in a cookie is just a "k

Re: Question on WebObjects, WOLips and Wonder Tutorial, part 2

2011-12-02 Thread Ramsey Gurley
I would think Eclipse should be showing you a compiler error if you don't import user in this case. You may want to restore defaults in your preferences in Java > Compiler > Errors & Warnings panel and then clean the project. If I recall correctly, the only way you could use User in your sessio

Re: Restoring session after timeout.

2011-12-02 Thread Pascal Robert
I never saw a web app that do that, unless you go stateless. > Hi, > > Thanks for the reply. > > I don't really care about the timed out session. I am more looking for > restoring my whole context even with a new session. > > Ajax won't be helpful for me, because I want to plug such a behaviou

Re: Restoring session after timeout.

2011-12-02 Thread Mahdi Mankai
Hi, Thanks for the reply. I don't really care about the timed out session. I am more looking for restoring my whole context even with a new session. Ajax won't be helpful for me, because I want to plug such a behaviour to an existing complex application. It won't be very convenient to review a

Re: Restoring session after timeout.

2011-12-02 Thread Jérémy DE ROYER
I dont think its possible, timeout is timeout May be you could auto save the form with ajax and restore it in the new session ? Jeremy DE ROYER Le 2 déc. 2011 à 12:11, Mahdi Mankai a écrit : > Hi, > > I'd like to do something but I am not sure whether it's possible. > > I have a WO applica

Restoring session after timeout.

2011-12-02 Thread Mahdi Mankai
Hi, I'd like to do something but I am not sure whether it's possible. I have a WO application that requires users to login. I am storing the user credentials in cookies to avoid having to login each time. I'd like to handle the situation where a user tries to continue working on the applicatio

Re: Question on WebObjects, WOLips and Wonder Tutorial, part 2

2011-12-02 Thread Paul D Yu
Of course you need to import the User class into your component. The eomodel is a model not a java class. P Sent from my iPad On Dec 1, 2011, at 11:39 PM, Kevin Spake wrote: > The error I am getting is "User cannot be resolved to a type." It is > occurring in Main.WO, and also shows up mul