Re: [Wonder-disc] new wolips and wonder --

2010-11-27 Thread David LeBer

On 2010-11-27, at 1:56 PM, ISHIMOTO Ken wrote:

> I have a few Cloud Server OS X now.
> 
> http://www.godaddy.com/hosting/mac-hosting.aspx?ci=18037
> 
> Is cheap, works great and it is OS X, easy to use and install.

Nice. 

Though since making the decision to move to commodity Linux as our deployment 
focus we've been pretty happy. It's cheap, ubiquitous, and importantly in a VPS 
setting, the core OS has a low memory footprint.

Of course your specific requirements and ranking of the tradeoffs involved will 
make this an individual choice.

> 
> 
> On 2010/11/27, at 17:36, David LeBer wrote:
> 
>> 
>> On 2010-11-26, at 11:12 PM, Jesse Tayler wrote:
>> 
>>> 
>>> On Nov 26, 2010, at 3:50 PM, David LeBer wrote:
>>> 
 Nothing to chip in on EC2.
 
 But we've are really enjoying working with linodes from Linode.com.
>>> 
>>> really? 
>>> 
>>> I'm of no particular preference, and certainly could switch, but I saw the 
>>> wolastic image and it just seemed reliable.
>>> 
>>> I can't imagine how anyone could complete a finished app deployment without 
>>> configuring the apache right? Am I to setup another OS image for apache and 
>>> website stuff? use wolastic image as just the app engine?
>>> 
>>> Or, maybe I should ask how one might one get a new server setup on 
>>> linode.com? If its easier, I'm up for it - now's the time, as I'm just 
>>> starting the new system!
>> 
>> Well with linode you get a vanilla Linux distribution of your choice (we use 
>> Ubuntu 10.4 LTS) so you are responsible for setting it up yourself.
>> 
>> Given that we deploy our apps with all frameworks embedded, the setup is 
>> really just getting Java, Apache, and whatever db we need installed. That's 
>> all documented, so I've not found it terribly arduous. Linode also offers a 
>> "StackScript" system that allows you to create (or chose from a selection of 
>> pre-existing) scripts that you can apply to your nodes when they are 
>> created. So once you know what you need to do to create a new WO app host 
>> node you can automate the process.
>> 
>> The one caveat for using any VPS service is that they are often anemic when 
>> it comes to RAM and storage.
>> 
>> The route we've adopted is to create dedicated nodes for our services (i:e: 
>> nodes that are sized for the app instances, another sized for the db, 
>> another to run JavaMonitor, etc). VPSs work well if you scale horizontally 
>> (add additional nodes to handle growth rather than expanding the individual 
>> node sizes).
>> 
>> In addition any apps that have a heavy requirement on resource vending 
>> (images, media files etc) we've re-engineered to outsource that to S3.
>> 
>> My recommendation is to analyze what you expect your app's resource and 
>> bandwidth usage is going to be, what you expect the growth curve to look 
>> like. Then use those numbers to calculate the costs based on EC2 + EBS, 
>> Linode/SliceHost, or colocation to determine which is going to fit your 
>> needs better. As always TANSTAAFL applies.

;david

--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site:   http://codeferous.com
blog:   http://davidleber.net
profile:http://www.linkedin.com/in/davidleber
twitter:http://twitter.com/rebeld
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org




 ___
Do not 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: [Wonder-disc] new wolips and wonder --

2010-11-27 Thread ISHIMOTO Ken
I have a few Cloud Server OS X now.

http://www.godaddy.com/hosting/mac-hosting.aspx?ci=18037

Is cheap, works great and it is OS X, easy to use and install.


On 2010/11/27, at 17:36, David LeBer wrote:

> 
> On 2010-11-26, at 11:12 PM, Jesse Tayler wrote:
> 
>> 
>> On Nov 26, 2010, at 3:50 PM, David LeBer wrote:
>> 
>>> Nothing to chip in on EC2.
>>> 
>>> But we've are really enjoying working with linodes from Linode.com.
>> 
>> really? 
>> 
>> I'm of no particular preference, and certainly could switch, but I saw the 
>> wolastic image and it just seemed reliable.
>> 
>> I can't imagine how anyone could complete a finished app deployment without 
>> configuring the apache right? Am I to setup another OS image for apache and 
>> website stuff? use wolastic image as just the app engine?
>> 
>> Or, maybe I should ask how one might one get a new server setup on 
>> linode.com? If its easier, I'm up for it - now's the time, as I'm just 
>> starting the new system!
> 
> Well with linode you get a vanilla Linux distribution of your choice (we use 
> Ubuntu 10.4 LTS) so you are responsible for setting it up yourself.
> 
> Given that we deploy our apps with all frameworks embedded, the setup is 
> really just getting Java, Apache, and whatever db we need installed. That's 
> all documented, so I've not found it terribly arduous. Linode also offers a 
> "StackScript" system that allows you to create (or chose from a selection of 
> pre-existing) scripts that you can apply to your nodes when they are created. 
> So once you know what you need to do to create a new WO app host node you can 
> automate the process.
> 
> The one caveat for using any VPS service is that they are often anemic when 
> it comes to RAM and storage.
> 
> The route we've adopted is to create dedicated nodes for our services (i:e: 
> nodes that are sized for the app instances, another sized for the db, another 
> to run JavaMonitor, etc). VPSs work well if you scale horizontally (add 
> additional nodes to handle growth rather than expanding the individual node 
> sizes).
> 
> In addition any apps that have a heavy requirement on resource vending 
> (images, media files etc) we've re-engineered to outsource that to S3.
> 
> My recommendation is to analyze what you expect your app's resource and 
> bandwidth usage is going to be, what you expect the growth curve to look 
> like. Then use those numbers to calculate the costs based on EC2 + EBS, 
> Linode/SliceHost, or colocation to determine which is going to fit your needs 
> better. As always TANSTAAFL applies.
> 
> ;david
> 
> --
> David LeBer
> Codeferous Software
> 'co-def-er-ous' adj. Literally 'code-bearing'
> site: http://codeferous.com
> blog: http://davidleber.net
> profile:  http://www.linkedin.com/in/davidleber
> twitter:  http://twitter.com/rebeld
> --
> Toronto Area Cocoa / WebObjects developers group:
> http://tacow.org
> 
> 
> 
> 
> ___
> Do not 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/ken%40ksroom.com
> 
> This email sent to k...@ksroom.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: [Wonder-disc] new wolips and wonder --

2010-11-27 Thread ISHIMOTO Ken
higment.org>  
<771d2e37-d65e-42f6-ac59-1db2b82f7...@oeinc.com> 

To: "Webobjects-dev@lists.apple.com Development" 

X-Mailer: Apple Mail (2.1082)

I have a few Cloud Server OS X now.

http://www.godaddy.com/hosting/mac-hosting.aspx?ci=18037

Is cheap, works great and it is OS X, easy to use and install.


On 2010/11/27, at 17:36, David LeBer wrote:

> 
> On 2010-11-26, at 11:12 PM, Jesse Tayler wrote:
> 
>> 
>> On Nov 26, 2010, at 3:50 PM, David LeBer wrote:
>> 
>>> Nothing to chip in on EC2.
>>> 
>>> But we've are really enjoying working with linodes from Linode.com.
>> 
>> really? 
>> 
>> I'm of no particular preference, and certainly could switch, but I saw the 
>> wolastic image and it just seemed reliable.
>> 
>> I can't imagine how anyone could complete a finished app deployment without 
>> configuring the apache right? Am I to setup another OS image for apache and 
>> website stuff? use wolastic image as just the app engine?
>> 
>> Or, maybe I should ask how one might one get a new server setup on 
>> linode.com? If its easier, I'm up for it - now's the time, as I'm just 
>> starting the new system!
> 
> Well with linode you get a vanilla Linux distribution of your choice (we use 
> Ubuntu 10.4 LTS) so you are responsible for setting it up yourself.
> 
> Given that we deploy our apps with all frameworks embedded, the setup is 
> really just getting Java, Apache, and whatever db we need installed. That's 
> all documented, so I've not found it terribly arduous. Linode also offers a 
> "StackScript" system that allows you to create (or chose from a selection of 
> pre-existing) scripts that you can apply to your nodes when they are created. 
> So once you know what you need to do to create a new WO app host node you can 
> automate the process.
> 
> The one caveat for using any VPS service is that they are often anemic when 
> it comes to RAM and storage.
> 
> The route we've adopted is to create dedicated nodes for our services (i:e: 
> nodes that are sized for the app instances, another sized for the db, another 
> to run JavaMonitor, etc). VPSs work well if you scale horizontally (add 
> additional nodes to handle growth rather than expanding the individual node 
> sizes).
> 
> In addition any apps that have a heavy requirement on resource vending 
> (images, media files etc) we've re-engineered to outsource that to S3.
> 
> My recommendation is to analyze what you expect your app's resource and 
> bandwidth usage is going to be, what you expect the growth curve to look 
> like. Then use those numbers to calculate the costs based on EC2 + EBS, 
> Linode/SliceHost, or colocation to determine which is going to fit your needs 
> better. As always TANSTAAFL applies.
> 
> ;david
> 
> --
> David LeBer
> Codeferous Software
> 'co-def-er-ous' adj. Literally 'code-bearing'
> site: http://codeferous.com
> blog: http://davidleber.net
> profile:  http://www.linkedin.com/in/davidleber
> twitter:  http://twitter.com/rebeld
> --
> Toronto Area Cocoa / WebObjects developers group:
> http://tacow.org
> 
> 
> 
> 
> ___
> Do not 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/ken%40ksroom.com
> 
> This email sent to k...@ksroom.com

Thank you


K's ROOM  (ISHIMOTO Ken)

[E-Mail]  
[iChat:]   
[HP]  http://www.ksroom.com/
_
This e-mail has not been scanned for viruses because it was written on an Mac,
and there are NO Viruses on an Apple Computer.
For further information visit http://www.apple.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: [Wonder-disc] new wolips and wonder --

2010-11-27 Thread David LeBer

On 2010-11-26, at 11:12 PM, Jesse Tayler wrote:

> 
> On Nov 26, 2010, at 3:50 PM, David LeBer wrote:
> 
>> Nothing to chip in on EC2.
>> 
>> But we've are really enjoying working with linodes from Linode.com.
> 
> really? 
> 
> I'm of no particular preference, and certainly could switch, but I saw the 
> wolastic image and it just seemed reliable.
> 
> I can't imagine how anyone could complete a finished app deployment without 
> configuring the apache right? Am I to setup another OS image for apache and 
> website stuff? use wolastic image as just the app engine?
> 
> Or, maybe I should ask how one might one get a new server setup on 
> linode.com? If its easier, I'm up for it - now's the time, as I'm just 
> starting the new system!

Well with linode you get a vanilla Linux distribution of your choice (we use 
Ubuntu 10.4 LTS) so you are responsible for setting it up yourself.

Given that we deploy our apps with all frameworks embedded, the setup is really 
just getting Java, Apache, and whatever db we need installed. That's all 
documented, so I've not found it terribly arduous. Linode also offers a 
"StackScript" system that allows you to create (or chose from a selection of 
pre-existing) scripts that you can apply to your nodes when they are created. 
So once you know what you need to do to create a new WO app host node you can 
automate the process.

The one caveat for using any VPS service is that they are often anemic when it 
comes to RAM and storage.

The route we've adopted is to create dedicated nodes for our services (i:e: 
nodes that are sized for the app instances, another sized for the db, another 
to run JavaMonitor, etc). VPSs work well if you scale horizontally (add 
additional nodes to handle growth rather than expanding the individual node 
sizes).

In addition any apps that have a heavy requirement on resource vending (images, 
media files etc) we've re-engineered to outsource that to S3.

My recommendation is to analyze what you expect your app's resource and 
bandwidth usage is going to be, what you expect the growth curve to look like. 
Then use those numbers to calculate the costs based on EC2 + EBS, 
Linode/SliceHost, or colocation to determine which is going to fit your needs 
better. As always TANSTAAFL applies.

;david

--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site:   http://codeferous.com
blog:   http://davidleber.net
profile:http://www.linkedin.com/in/davidleber
twitter:http://twitter.com/rebeld
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org




 ___
Do not 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: automatically session creation

2010-11-27 Thread Simon
looks good to me...

simon

On 27 November 2010 12:33, Francesco Romano  wrote:
> What I want to do is changing this code inside a direct action (which does
> not create a session but does not allow me to change its secure flag)
> nextPage = pageWithName(RegisterUser.class);
> nextPage.takeValueForKey(Boolean.TRUE, "success");
> return nextPage;
> to something equivalent where I can change the secure flag...
> If I understand correctly if I use ERXRedirect I have to use direct actions,
> so... I have to create a "dummy" direct action which simply redirect to the
> page I want, and than user ERXRedirect
> This is my code:
> ERXRedirect redirect = pageWithName(ERXRedirect.class);
> redirect.setUrl(context().directActionURLForActionNamed("UserAction/helpRedirect",
> new NSDictionary(new Object[] {Boolean.TRUE}, new String[]
> {"registration"}),
> false,
> true));
>
> return redirect;
> public WOActionResults helpRedirectAction() {
>
> WOComponent nextPage = pageWithName(UtilitiesPage.class);
> NSArray dict = request().formValueKeys();
> for (String key: dict)
> nextPage.takeValueForKey(request().formValueForKey(key), key);
> return nextPage;
>
> }
>
> and in my utilities page:
> public void setRegistration(Object value) {
> if (value != null) {
> if (value.getClass().equals(String.class))
> this._registration = new BooleanHolder(Boolean.parseBoolean((String)value));
> else if (value.getClass().equals(Boolean.class))
> this._registration = new BooleanHolder((Boolean)value);
> }
>
> else
> _registration = null;
> }
>
> It seems to work, but is this really necessary?
> Francesco
> On 27/nov/2010, at 11.08, Simon wrote:
>
> look at the source code to ERXRedirect, line 175:
>
> WOSession aSession = session();
>
> bingo. A session gets created.
>
> a quick scan through the code suggests that this only happens when
> handing a component to the redirect. Redirect to a DA or an explicit
> URL and you shouldn't get a session
>
> simon
>
> On 27 November 2010 08:17, Francesco Romano  wrote:
>
> I don't understand...
>
> Ok for Ajax.. I think that I'll keep the session.
>
> But.. what abut going from secure to non secure page?
>
> Francesco
>
> On 26/nov/2010, at 13.31, Henrique Gomes wrote:
>
> A session is always created if you use statefull components or form actions.
>
> The page needs to be all made with stateless components and the form must
> use direct actions.
>
> As for Ajax, well, you might have to rethink it:
>
> http://osdir.com/ml/webobjects-dev/2009-07/msg00319.html
>
>
> Henrique Gomes
>
>
> On Nov 26, 2010, at 11:05 AM, Francesco Romano wrote:
>
> Hi.
>
> The title is not clear, I know... that's because I've 2 question related to
> session, redirection and direct action.
>
> 1) I have two pages which are secure (login and registration page).
>
> What I want to do is, after a successful login (or registration), redirect
> to a non secure page (like the home page).
>
> The submit buttons link to two Direct Actions.
>
> I don't have problem with the login page, because I need a session, so I do
> something like:
>
>      nextPage = pageWithName(Main.class);
>
>      ERXRedirect redirect = pageWithName(ERXRedirect.class);
>
>      redirect.setSecure(false);
>
>      redirect.setComponent(nextPage);
>
>      return redirect;
>
> but.. for a registration page I  don't want to create a session.. what can i
> do?
>
> 2) Ajax components need session? Because I've a "ajax" list product page and
> a session is automatically created
>
> Thank you
>
> Francesco Romano
>
> ___
>
> Do not 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/lists%40farol.pt
>
> This email sent to li...@farol.pt
>
>
>  ___
>
> Do not post admin requests to the list. They will be ignored.
>
> Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
>
> Help/Unsubscribe/Update your Subscription:
>
> http://lists.apple.com/mailman/options/webobjects-dev/simon%40potwells.co.uk
>
> This email sent to si...@potwells.co.uk
>
>
>
>  ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/simon%40potwells.co.uk
>
> This email sent to si...@potwells.co.uk
>
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: automatically session creation

2010-11-27 Thread Francesco Romano
What I want to do is changing this code inside a direct action (which does not 
create a session but does not allow me to change its secure flag)

nextPage = pageWithName(RegisterUser.class);
nextPage.takeValueForKey(Boolean.TRUE, "success");
return nextPage;

to something equivalent where I can change the secure flag...
If I understand correctly if I use ERXRedirect I have to use direct actions, 
so... I have to create a "dummy" direct action which simply redirect to the 
page I want, and than user ERXRedirect 

This is my code:

ERXRedirect redirect = pageWithName(ERXRedirect.class);
redirect.setUrl(context().directActionURLForActionNamed("UserAction/helpRedirect",
new NSDictionary(new Object[] {Boolean.TRUE}, 
new String[] {"registration"}),
false,
true));

return redirect;

public WOActionResults helpRedirectAction() {

WOComponent nextPage = pageWithName(UtilitiesPage.class);
NSArray dict = request().formValueKeys();
for (String key: dict)
nextPage.takeValueForKey(request().formValueForKey(key), key);
return nextPage;
}

and in my utilities page:

public void setRegistration(Object value) {
if (value != null) {
if (value.getClass().equals(String.class))
this._registration = new 
BooleanHolder(Boolean.parseBoolean((String)value));
else if (value.getClass().equals(Boolean.class))
this._registration = new BooleanHolder((Boolean)value); 

}

else
_registration = null;
}


It seems to work, but is this really necessary?

Francesco

On 27/nov/2010, at 11.08, Simon wrote:

> look at the source code to ERXRedirect, line 175:
> 
> WOSession aSession = session();
> 
> bingo. A session gets created.
> 
> a quick scan through the code suggests that this only happens when
> handing a component to the redirect. Redirect to a DA or an explicit
> URL and you shouldn't get a session
> 
> simon
> 
> On 27 November 2010 08:17, Francesco Romano  wrote:
>> I don't understand...
>> Ok for Ajax.. I think that I'll keep the session.
>> 
>> But.. what abut going from secure to non secure page?
>> 
>> Francesco
>> 
>> On 26/nov/2010, at 13.31, Henrique Gomes wrote:
>> 
>>> A session is always created if you use statefull components or form actions.
>>> The page needs to be all made with stateless components and the form must 
>>> use direct actions.
>>> 
>>> As for Ajax, well, you might have to rethink it:
>>> 
>>> http://osdir.com/ml/webobjects-dev/2009-07/msg00319.html
>>> 
>>> 
>>> Henrique Gomes
>>> 
>>> 
>>> On Nov 26, 2010, at 11:05 AM, Francesco Romano wrote:
>>> 
 Hi.
 The title is not clear, I know... that's because I've 2 question related 
 to session, redirection and direct action.
 
 1) I have two pages which are secure (login and registration page).
 What I want to do is, after a successful login (or registration), redirect 
 to a non secure page (like the home page).
 The submit buttons link to two Direct Actions.
 
 I don't have problem with the login page, because I need a session, so I 
 do something like:
 
  nextPage = pageWithName(Main.class);
  ERXRedirect redirect = pageWithName(ERXRedirect.class);
  redirect.setSecure(false);
  redirect.setComponent(nextPage);
  return redirect;
 
 but.. for a registration page I  don't want to create a session.. what can 
 i do?
 
 2) Ajax components need session? Because I've a "ajax" list product page 
 and a session is automatically created
 
 Thank you
 
 Francesco Romano
 
 ___
 Do not 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/lists%40farol.pt
 
 This email sent to li...@farol.pt
>>> 
>> 
>>  ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>> Help/Unsubscribe/Update your Subscription:
>> http://lists.apple.com/mailman/options/webobjects-dev/simon%40potwells.co.uk
>> 
>> This email sent to si...@potwells.co.uk
>> 

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

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

Re: automatically session creation

2010-11-27 Thread Simon
look at the source code to ERXRedirect, line 175:

WOSession aSession = session();

bingo. A session gets created.

a quick scan through the code suggests that this only happens when
handing a component to the redirect. Redirect to a DA or an explicit
URL and you shouldn't get a session

simon

On 27 November 2010 08:17, Francesco Romano  wrote:
> I don't understand...
> Ok for Ajax.. I think that I'll keep the session.
>
> But.. what abut going from secure to non secure page?
>
> Francesco
>
> On 26/nov/2010, at 13.31, Henrique Gomes wrote:
>
>> A session is always created if you use statefull components or form actions.
>> The page needs to be all made with stateless components and the form must 
>> use direct actions.
>>
>> As for Ajax, well, you might have to rethink it:
>>
>> http://osdir.com/ml/webobjects-dev/2009-07/msg00319.html
>>
>>
>> Henrique Gomes
>>
>>
>> On Nov 26, 2010, at 11:05 AM, Francesco Romano wrote:
>>
>>> Hi.
>>> The title is not clear, I know... that's because I've 2 question related to 
>>> session, redirection and direct action.
>>>
>>> 1) I have two pages which are secure (login and registration page).
>>> What I want to do is, after a successful login (or registration), redirect 
>>> to a non secure page (like the home page).
>>> The submit buttons link to two Direct Actions.
>>>
>>> I don't have problem with the login page, because I need a session, so I do 
>>> something like:
>>>
>>>      nextPage = pageWithName(Main.class);
>>>      ERXRedirect redirect = pageWithName(ERXRedirect.class);
>>>      redirect.setSecure(false);
>>>      redirect.setComponent(nextPage);
>>>      return redirect;
>>>
>>> but.. for a registration page I  don't want to create a session.. what can 
>>> i do?
>>>
>>> 2) Ajax components need session? Because I've a "ajax" list product page 
>>> and a session is automatically created
>>>
>>> Thank you
>>>
>>> Francesco Romano
>>>
>>> ___
>>> Do not 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/lists%40farol.pt
>>>
>>> This email sent to li...@farol.pt
>>
>
>  ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/simon%40potwells.co.uk
>
> This email sent to si...@potwells.co.uk
>
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: automatically session creation

2010-11-27 Thread Francesco Romano
I don't understand...
Ok for Ajax.. I think that I'll keep the session.

But.. what abut going from secure to non secure page?

Francesco

On 26/nov/2010, at 13.31, Henrique Gomes wrote:

> A session is always created if you use statefull components or form actions.
> The page needs to be all made with stateless components and the form must use 
> direct actions.
> 
> As for Ajax, well, you might have to rethink it:
> 
> http://osdir.com/ml/webobjects-dev/2009-07/msg00319.html
> 
> 
> Henrique Gomes
> 
> 
> On Nov 26, 2010, at 11:05 AM, Francesco Romano wrote:
> 
>> Hi.
>> The title is not clear, I know... that's because I've 2 question related to 
>> session, redirection and direct action. 
>> 
>> 1) I have two pages which are secure (login and registration page).
>> What I want to do is, after a successful login (or registration), redirect 
>> to a non secure page (like the home page).
>> The submit buttons link to two Direct Actions.
>> 
>> I don't have problem with the login page, because I need a session, so I do 
>> something like:
>> 
>>  nextPage = pageWithName(Main.class);
>>  ERXRedirect redirect = pageWithName(ERXRedirect.class);
>>  redirect.setSecure(false);
>>  redirect.setComponent(nextPage);
>>  return redirect;
>> 
>> but.. for a registration page I  don't want to create a session.. what can i 
>> do?
>> 
>> 2) Ajax components need session? Because I've a "ajax" list product page and 
>> a session is automatically created
>> 
>> Thank you
>> 
>> Francesco Romano
>> 
>> ___
>> Do not 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/lists%40farol.pt
>> 
>> This email sent to li...@farol.pt
> 

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

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