Re: JFreeChart/Wonder liftoff success

2009-12-17 Thread Michael Sharp
On 18/12/2009, at 11:14 AM, Baiss Eric Magnusson wrote:
> 
> How does the BigDecimal get absorbed by the attribute 
>  of ?


ERPlot will accumulate Number values for matching name keys by adding their 
doubleValue()'s


> I haven't utilized color yet, default was pink!

Pink pie, sounds like trivial pursuit!


Cheers,

Sharpy


-- 

Michael Sharp ___
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: JFreeChart/Wonder liftoff success

2009-12-17 Thread Baiss Eric Magnusson
Awesome magic, I got a chart to draw, see below:


public class TotalOfMonth  {// inner class
public BigDecimal   _total;
public String   _name;
public Color_color;

TotalOfMonth( BigDecimal total, String name, Color color )  {
_total = total;
_name = name;
_color = color;
mTotalsGraph += total.doubleValue();
}
} 

public NSMutableArray generateGraphPie()  {
...
  totals.addObject( new TotalOfMonth( thisMonth.fixedMonthlyExpense(), "Fixed 
Expense", fixedExpColor ));
  return totals;
}


PieGraph : ERPPieChart {
name = "Monthly_Totals";
items = generateGraphPie;
nameKey = "_name";
valueKey = "_total";
chartType = "PieChart";
}

How does the BigDecimal get absorbed by the attribute  
of ?
I haven't utilized color yet, default was pink!

On Dec 15, 2009, at 8:20 PM, Michael Sharp wrote:

> Hi Baiss,
> 
> All you should have to do is just add a ERPPieChart component to your 
> WOComponent, eg

> ...
> You can gain a fair bit of flexibility with the "configuration" binding, and 
> also you can use the "chart" binding on it's own if you already have a 
> JFreeChart and just want a nice way to include it in your component.
> 
> Cheers,
> Sharpy

> I was wondering if anyone can help with the use of ERPPieChart from ERPlot as 
> I replace the various plots in the WO project I'm converting, it's also an 
> introduction to Wonder for me.
>> 


Baiss Eric Magnusson
http://www.CascadeWebDesign.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: ERXWOFileUpload / AjaxSubmitButton - filePath and data bindings empty

2009-12-17 Thread Sergio Sánchez Maffet

Thank you Timo and Mike,
I have to turn ajax off while submitting a file... no other solution  
in this case for now...
A future solution would need to post the data to an iframe and then  
send the data to the server... sounds complicated, but should work.


Thank you again for your fast responses.
--
Sergio


Am 17.12.2009 um 23:34 schrieb Mike Schrag:


it posts into an iframe

On Dec 17, 2009, at 5:21 PM, Sergio Sánchez Maffet wrote:


Timo, list,

I can't believe it... ;-)
Is there any solution known?
How does the AjaxFileUpload do the trick?

Thank you,
Sergio

Am 17.12.2009 um 23:07 schrieb Timo Hoepfner:


Hi Sergio,

a file upload is technically not possible with an Ajax request.  
JavaScript cannot access the files on the file system, this is a  
security restriction.


Timo

Am 17.12.2009 um 23:00 schrieb Sergio Sánchez Maffet:


Dear list,

I'm using the latest WONDER build (from yesterday) and WO54.

Submitting a form using an AjaxSubmitButton with a WOFileUpload  
element (ERXWOFileUpload) ends up
with empty filePath and data bindings after  
super.takeValuesFromRequest in the corresponding component.

All other inputs and bindings are ok.
Using a WOSubmitButton as a test does work as expected.
Does the default form serializer handle file uploads correctly?
The input file element does have a name assigned (default context  
id).

Do I miss something here? Any ideas?

Regards,
Sergio
___
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/th-dev%40onlinehome.de

This email sent to th-...@onlinehome.de





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

This email sent to msch...@mdimension.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: ERXWOFileUpload / AjaxSubmitButton - filePath and data bindings empty

2009-12-17 Thread Mike Schrag
it posts into an iframe

On Dec 17, 2009, at 5:21 PM, Sergio Sánchez Maffet wrote:

> Timo, list,
> 
> I can't believe it... ;-)
> Is there any solution known?
> How does the AjaxFileUpload do the trick?
> 
> Thank you,
> Sergio
> 
> Am 17.12.2009 um 23:07 schrieb Timo Hoepfner:
> 
>> Hi Sergio,
>> 
>> a file upload is technically not possible with an Ajax request. JavaScript 
>> cannot access the files on the file system, this is a security restriction.
>> 
>> Timo
>> 
>> Am 17.12.2009 um 23:00 schrieb Sergio Sánchez Maffet:
>> 
>>> Dear list,
>>> 
>>> I'm using the latest WONDER build (from yesterday) and WO54.
>>> 
>>> Submitting a form using an AjaxSubmitButton with a WOFileUpload element 
>>> (ERXWOFileUpload) ends up
>>> with empty filePath and data bindings after super.takeValuesFromRequest in 
>>> the corresponding component.
>>> All other inputs and bindings are ok.
>>> Using a WOSubmitButton as a test does work as expected.
>>> Does the default form serializer handle file uploads correctly?
>>> The input file element does have a name assigned (default context id).
>>> Do I miss something here? Any ideas?
>>> 
>>> Regards,
>>> Sergio
>>> ___
>>> 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/th-dev%40onlinehome.de
>>> 
>>> This email sent to th-...@onlinehome.de
>> 
>> 
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40mdimension.com
> 
> This email sent to msch...@mdimension.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: ERXWOFileUpload / AjaxSubmitButton - filePath and data bindings empty

2009-12-17 Thread Sergio Sánchez Maffet

Timo, list,

I can't believe it... ;-)
Is there any solution known?
How does the AjaxFileUpload do the trick?

Thank you,
Sergio

Am 17.12.2009 um 23:07 schrieb Timo Hoepfner:


Hi Sergio,

a file upload is technically not possible with an Ajax request.  
JavaScript cannot access the files on the file system, this is a  
security restriction.


Timo

Am 17.12.2009 um 23:00 schrieb Sergio Sánchez Maffet:


Dear list,

I'm using the latest WONDER build (from yesterday) and WO54.

Submitting a form using an AjaxSubmitButton with a WOFileUpload  
element (ERXWOFileUpload) ends up
with empty filePath and data bindings after  
super.takeValuesFromRequest in the corresponding component.

All other inputs and bindings are ok.
Using a WOSubmitButton as a test does work as expected.
Does the default form serializer handle file uploads correctly?
The input file element does have a name assigned (default context  
id).

Do I miss something here? Any ideas?

Regards,
Sergio
___
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/th-dev%40onlinehome.de

This email sent to th-...@onlinehome.de





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

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


Re: ERXWOFileUpload / AjaxSubmitButton - filePath and data bindings empty

2009-12-17 Thread Timo Hoepfner
Hi Sergio,

a file upload is technically not possible with an Ajax request. JavaScript 
cannot access the files on the file system, this is a security restriction.

Timo

Am 17.12.2009 um 23:00 schrieb Sergio Sánchez Maffet:

> Dear list,
> 
> I'm using the latest WONDER build (from yesterday) and WO54.
> 
> Submitting a form using an AjaxSubmitButton with a WOFileUpload element 
> (ERXWOFileUpload) ends up
> with empty filePath and data bindings after super.takeValuesFromRequest in 
> the corresponding component.
> All other inputs and bindings are ok.
> Using a WOSubmitButton as a test does work as expected.
> Does the default form serializer handle file uploads correctly?
> The input file element does have a name assigned (default context id).
> Do I miss something here? Any ideas?
> 
> Regards,
> Sergio
> ___
> 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/th-dev%40onlinehome.de
> 
> This email sent to th-...@onlinehome.de

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

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


ERXWOFileUpload / AjaxSubmitButton - filePath and data bindings empty

2009-12-17 Thread Sergio Sánchez Maffet

Dear list,

I'm using the latest WONDER build (from yesterday) and WO54.

Submitting a form using an AjaxSubmitButton with a WOFileUpload  
element (ERXWOFileUpload) ends up
with empty filePath and data bindings after  
super.takeValuesFromRequest in the corresponding component.

All other inputs and bindings are ok.
Using a WOSubmitButton as a test does work as expected.
Does the default form serializer handle file uploads correctly?
The input file element does have a name assigned (default context id).
Do I miss something here? Any ideas?

Regards,
Sergio
___
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


Dynamic construction of Framesets and Frames using Ajax updates/submit

2009-12-17 Thread Raghavender

Hi,

	I am working on WebObjects application, using  
AjaxUpdateContainers(ProjectWonder).  I have a web page that has the  
following structure:


	I have three different layouts(framesets) designed in a web page.   
There are four to five pages are displayed in different frames laid  
out in different framesets.  In every request there will be one set of  
pages will be displayed in one layout of frameset.  There are Ajax  
Update areas defined in these different pages and based on the  
condition I have to change the layout of the framesets and display  
these pages in that layout.  In every Ajax submit the condition can  
change and based on this condition the frameset layout construction  
should also change.  As I am using Ajax updates so the entire page is  
not constructing based on the conditionals in every request, so this I  
have to do it within the Ajax updates which doesn't submits the enitre  
page and change the frames construction.


 Any help would be appreciated.
-










			WEBOBJECT>
			NAME=CopyrightPage>











































-
Regards,
Raghavender.

 ___
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: Email WOes

2009-12-17 Thread Don Lindsay

Hello Calven;

It sounds like you have a jar file missing on your classpath.Does  
this error occur when you start your application or is it later when  
you try to use mail functionality in your code.


Thanks,

Don
On Dec 16, 2009, at 10:11 AM, Calven Eggert wrote:


Hi All,

Since moving to a new Snow Leopard from Tiger I've not been able to  
create an install version of my WO applications that can send  
email.  I CAN send email from eclipse but after I do WOlips Ant  
Tools->Install and run the app from the command line I get the error:


er/javamail/ERMailAttachment:java.lang.NoClassDefFoundError: er/ 
javamail/ERMailAttachment


I've tried everything that I can think of to make sure I have all  
the necessary files (ERJavaMail, mail.jar, ERExtensions,  
activation-1.1.1, ERJars) but no luck.


I'm running java 1.5.0 and Wonder 5.3.3.

Can someone please put me out of my misery? :-) What am I missing?

Thanks,
Calven




___
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/pccdonl 
%40mac.com


This email sent to pccd...@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:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: setting default request handler in a wonder app

2009-12-17 Thread Johann Werner
Hi Jerald,

Am 16.12.2009 um 21:12 schrieb Jerald Dawson:

> Hi All
> 
> Is there anything I need to be aware of when I change the default request 
> handler to a direct action request handler in a wonder based app?
> 
> Currently I'm just calling:
> 
> setDefaultRequestHandler (requestHandlerForKey( 
> directActionRequestHandlerKey() ));

that's perfectly fine and sufficient. As the constructor of ERXApplication you 
are subclassing with your Application class is called prior to yours, all 
Wonder magic is done already at that moment ;-)
This is (from ERXApplication)

registerRequestHandler(new ERXDirectActionRequestHandler(), 
directActionRequestHandlerKey());

replaces the 'normal' request handler with the Wonder version. So if you use 
directActionRequestHandlerKey you already get the patched one.

jw

> 
> the my Application objects constructor and I'm wondering if there is anything 
> else I need to be doing.  I'm not having any trouble, just want to make sure 
> I'm doing it correctly still. its been a while since I touched this code (pre 
> wonder integration).
> 
> thx
> 
> -j ___
> 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/jw%40oyosys.de
> 
> This email sent to j...@oyosys.de
> 




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

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