Re: [OT?] - XUL

2003-10-29 Thread Chris Wilkes
On Wed, Oct 29, 2003 at 11:47:51PM -0500, Brent L Johnson wrote:
>
> I'd like to check it out - that login/pass that's in
> the mailing list thread does not work.  Does anyone
> have any XUL examples I could check out?  I like
> the idea of outputting XUL format using Cocoon
> to build a webapp frontend.

You can download the example from the article
  http://www-106.ibm.com/developerworks/web/library/wa-appmozx/
You can try out the Xul Tutorial at the xulplanet site:
  http://www.xulplanet.com/tutorials/xultu/
Another good place to look at the Mozilla Development site
  http://mozdev.org/

I tried to use 
  http://xulmaker.mozdev.org/
but it crashed my Mozilla 1.5.  Looks interesting though.

There's another competing package out there called Luxor Xul
  http://luxor-xul.sourceforge.net/

You'll have to brush up on your javascript as that's used to make it
more stand alone GUI like.  Now if there was just an easy javascript
creator and/or GUI ...

Chris

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT?] - XUL

2003-10-29 Thread Brent L Johnson
Wow I've never even heard of this - I guess using IE too
much will do that to ya.  I assume XUL is the XML format
the browser frontend is written in to allow for different
skins in Mozilla?  I've heard the GUI is all in XML,
but didnt realize you could utilize this for building
web app gui's.

I'd like to check it out - that login/pass that's in
the mailing list thread does not work.  Does anyone
have any XUL examples I could check out?  I like
the idea of outputting XUL format using Cocoon
to build a webapp frontend.

Thanks,

- Brent

> -Original Message-
> From: Joerg Heinicke [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, October 29, 2003 8:38 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [OT?] - XUL
> 
> 
> On 30.10.2003 02:09, Antonio Gallardo wrote:
> > Hi:
> > 
> > I found this interesting article:
> > 
> > http://linuxtoday.com/developer/2003102900426OSHLDV
> > 
> > I am wondering if we can provide support for this in Cocoon. As 
> > always, comments are very welcomed. :-)
> 
> It's not that difficult, it's "just another markup language".
> 
> Not long ago I announced our ConWeb application based on XUL: 
> http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=10644899352
4514&w=2. 
As you can read this is already based on Cocoon.

Furthermore I would like to add XUL support to Woody. I only don't know 
if I have the time to do it in the next weeks while I'm preparing my 
diploma thesis.

Joerg


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



SQLTransformer support column aliases?

2003-10-29 Thread Steve Schwarz
Hi
I have a select query containing joins across tables which have the same 
column names. I'd like to be able to differentiate the similarly named 
columns in the  elements by explicitly naming them.

I've tried changing my query to include aliases for the selected columns but 
the output is always named with the actual table's column name. Is there a 
config for SQLTransformer to use the alias name?

If possible I'd rather not have my stylesheet use XPath to index by position 
in to each sql:row in case column order is changed in the query.

Thanks,
Steve
_
See when your friends are online with MSN Messenger 6.0. Download it now 
FREE! http://msnmessenger-download.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: How to process a form, but be able to use browser back button?

2003-10-29 Thread Andrzej Jan Taramina
Joern:

> so your call to the preview page is some kind of submit but you can't use a
> replace=all cause this would end the form session. so i would try a submit
> replace=none and a following load action to show the preview page. hitting
> back then should bring you back to your session. - at least in theory ;)

I'm not sure what you mean by "a following load action to show the preview 
page"?

How would you implement this?  As a cocoon redirect?  Or using an 
xforms:action?

If the latter, I'm not clear on how to specify that?

Thanks!


Andrzej Jan Taramina
Chaeron Corporation: Enterprise System Solutions
http://www.chaeron.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT?] - XUL

2003-10-29 Thread Antonio Gallardo
Joerg Heinicke dijo:
> It's not that difficult, it's "just another markup language".
>
> Not long ago I announced our ConWeb application based on XUL:
> http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=106448993524514&w=2.
> As you can read this is already based on Cocoon

BTW, can you recommend any XUL book? I will like to go a little in depth
with XUL.

Best Regards,

Antonio Gallardo



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT?] - XUL

2003-10-29 Thread Antonio Gallardo
Joerg Heinicke dijo:
> On 30.10.2003 02:09, Antonio Gallardo wrote:
>> Hi:
>>
>> I found this interesting article:
>>
>> http://linuxtoday.com/developer/2003102900426OSHLDV
>>
>> I am wondering if we can provide support for this in Cocoon. As
>> always, comments are very welcomed. :-)
>
> It's not that difficult, it's "just another markup language".
>
> Not long ago I announced our ConWeb application based on XUL:
> http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=106448993524514&w=2.
> As you can read this is already based on Cocoon.
>
> Furthermore I would like to add XUL support to Woody.

This was the idea when I saw the article.

> I only don't know  if I have the time to do it in the next weeks while
I'm preparing my  diploma thesis.

:-D Good luck and Congrats!

Best Regards,

Antonio Gallardo



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT?] - XUL

2003-10-29 Thread Joerg Heinicke
On 30.10.2003 02:09, Antonio Gallardo wrote:
Hi:

I found this interesting article:

http://linuxtoday.com/developer/2003102900426OSHLDV

I am wondering if we can provide support for this in Cocoon. As always,
comments are very welcomed. :-)
It's not that difficult, it's "just another markup language".

Not long ago I announced our ConWeb application based on XUL: 
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=106448993524514&w=2. 
As you can read this is already based on Cocoon.

Furthermore I would like to add XUL support to Woody. I only don't know 
if I have the time to do it in the next weeks while I'm preparing my 
diploma thesis.

Joerg

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [OT?] - XUL

2003-10-29 Thread Antonio Gallardo
Some older post about XUL in our maillist:

user list:
http://marc.theaimsgroup.com/?l=xml-cocoon-users&w=2&r=1&s=xul&q=b

dev-list:
http://marc.theaimsgroup.com/?l=xml-cocoon-dev&w=2&r=1&s=xul&q=b

Best Regards,

Antonio Gallardo




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[OT?] - XUL

2003-10-29 Thread Antonio Gallardo
Hi:

I found this interesting article:

http://linuxtoday.com/developer/2003102900426OSHLDV

I am wondering if we can provide support for this in Cocoon. As always,
comments are very welcomed. :-)

Best Regards,

Antonio Gallardo



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Passing objects as parameters

2003-10-29 Thread Steve Schwarz
Hi Ralph
For an example of storing and retrieving objects in the Request take a look 
at AbstractValidatorAction and SimpleFormTransformer.
The action fills a map with the validation information (for both success and 
failure of the action)
and pushes it into the request. The transformer then extracts the map from 
the request and uses it.
They each know of the name of the request attribute through a shared 
constant string...

Request#setAttribute(key,object) and Object Request#getAttribute(key) are 
what you want.

Sorry I don't know how to communicate this info via input modules :^(
HTH
Steve
I'm not using flowscript, just the sitemap.  Even so, how would the object
be passed to the generator?  The only thing I can think of is that it has 
to
be store in the request or the temporary context, in which case the input
module would have to return the name the value is stored as. The generator
would then need to know to retrieve it. Quite ugly.

Ralph
_
Want to check if your PC is virus-infected?  Get a FREE computer virus scan 
online from McAfee.
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Woody Template Transformer

2003-10-29 Thread Joe Latty



Sorry too many coffees, not enough sleep. 

 
Of course it was in my 
woody-field-styling.xsl
 
Joe

  - Original Message - 
  From: 
  Joe 
  Latty 
  To: [EMAIL PROTECTED] 
  Sent: Thursday, October 30, 2003 9:41 
  AM
  Subject: Woody Template Transformer
  
  When using the required="true" attribute on a 
  field widget (specifically within a repeater-widget) I do not 
  want to have the "*" appear next to the field (conforming to our existing 
  standards).
   
  Can anyone tell me where this is added and how I 
  can override it?
   
  Joe


Re: Cannot serve static binary files - Solved

2003-10-29 Thread phung.ano
I found out why the files were corrupted.
It is due to the cocoon building process.
When the files are copied from src/ to build/
they are filtered based on there extension.
image files for example are copied as if,
all the others files are filtered (text format
conversion).
I modified the src/targets/samples_build.xml
(i forgot the exact name, i have no access
to my dev machine at this moment)
so as to exclude all files under a special 
download directory from being filtered.
And just to be sure, i added the jar mime type
in the web.xml file.

Now the zip download and applet execution work !!

Thanks for yours previous answers

Phou Ung


J.Pietschmann wrote:
> phung.ano wrote:
> 
>> - In the sitemap i tried other mime types:
>> application/octet-stream, application/zip (for zip files), aso.
> 
> 
> Not implemented yet. Any value in the sitemat (pipeline
definition)
> is silently ignored.
> 
> Register *.jar as application/octet-stream with your servlet
> engine, for example by putting it into Cocoons web.xml or
> into the the system web.xml.

I wonder why it works in our ConWeb application:


   
 
   


I can change the mime-type to text/plain and don't get the XUL
file 
displayed any longer but the source code in text mode.

It's Cocoon 2.0.4.

Joerg

-- 
System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Accédez au courrier électronique de La Poste : www.laposte.net ; 
3615 LAPOSTENET (0,34€/mn) ; tél : 08 92 68 13 50 (0,34€/mn)




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Logging broken in 2.1.2?

2003-10-29 Thread Sonny Sukumar
[Hey all, I sent this yesterday but didn't get any response.  I really 
haven't been able to figure it out.]

Hi guys,

Ever since I upgraded to 2.1.2 (release version) my application's logging 
hasn't been working at all.  It's set to work with LogFactor5 and worked 
perfectly before I upgraded.  I'm outputting my logging messages using the 
"debug" log level, but I tried all other log levels and nothing seems to get 
logged.  This is making it very difficult for me to test my app.

Can anybody help?

Thanks,

Sonny

_
Concerned that messages may bounce because your Hotmail account has exceeded 
its 2MB storage limit? Get Hotmail Extra Storage! 
http://join.msn.com/?PAGE=features/es

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Forcing pipeline caching?

2003-10-29 Thread Andrzej Jan Taramina
Is there any way to force a pipeline result to be cached?

My application reads some xml documents from a database, and though they are 
dynamically read from the DBMS, their content is static.  That is, the dbms 
is just a convenient replacement for a filesystem for storing these 
documents.

So for performance reasons, it would be great if there was a way for me to 
force the output of such a database-sourced pipeline to be cached?

Any way to do this?

Thx!

Andrzej Jan Taramina
Chaeron Corporation: Enterprise System Solutions
http://www.chaeron.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Writing plain text files?

2003-10-29 Thread Martin Holz
"Alten, Jelle Paul (sds-sp)" <[EMAIL PROTECTED]> writes:

> Nice one, Kieran.
> 
> One more last addition in the xsl, start with:
> 
> 
> 
> That's all for now.

The xsl:output element has no effect when the stylesheet is used by
the xsl transformer in cocoon. To control theses output properties, configure
the serializer in the sitemap.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Woody Template Transformer

2003-10-29 Thread Joe Latty



When using the required="true" attribute on a field 
widget (specifically within a repeater-widget) I do not want to 
have the "*" appear next to the field (conforming to our existing 
standards).
 
Can anyone tell me where this is added and how I 
can override it?
 
Joe


RE: dynamic pdf generation

2003-10-29 Thread Kieran Kirwan
1.  Modify the XSP page generating XML as follows


http://apache.org/xsp"; xmlns:esql="http://apache.org/cocoon/SQL/v2";
  xmlns:xsp-session="http://apache.org/xsp/session/2.0"; 
xmlns:xsp-request="http://apache.org/xsp/request/2.0";>

mydatabasequery


mydatabase
select * from mytable

..









2.  Modify the sitemaps to call pass the XML output to the default cocoon 
transforms








The output won't be great - you'll have to learn how to modify simple-page2fo.xsl to 
improve that.


_
Kieran Kirwan
Executive Transportation Planner
Transportation Modelling Department
 
Dublin Transportation Office
Hainault House,
69/71 St. Stephen's Green,
Dublin 2,
Ireland.
Tel: +353 (0)1 4778113
Fax: +353 (0) 1 478 5935
website: www.dto.ie   
 



-Original Message-
From: Ashish Kumar [mailto:[EMAIL PROTECTED]
Sent: 29 October 2003 18:39
To: [EMAIL PROTECTED]
Subject: RE: dynamic pdf generation


hi there,
   great!, it was really good help.. i m able to generate the xml
& access it on the browser. but the next thing is, how do i pass this xml
file for xsl & fo tranformation using an xsl file & wat parameteres
should it contain? i can separetly convert an xml to pdf using a seperate
xsl. 

thankin again for ur wondrful help   
ashish

  
On Wed, 29 Oct 2003, Kieran Kirwan wrote:

> Assuming you have a database up and running (I'm using MYSQL).
> say called mydatabase.with a table called mytable.with 2 
> fields.myfield1 and myfield2
> 
> 1 Edit COCOON.XCONF as follows
> 
> 
> 
> false
> jdbc:mysql://localhost:3306/mydatabase
> root
> 
> 
> 
> -
> 2 Create an XSP page such as below [mydatabasequery.xsp]
> 
> 
>xmlns:xsp="http://apache.org/xsp"; xmlns:esql="http://apache.org/cocoon/SQL/v2";
>   xmlns:xsp-session="http://apache.org/xsp/session/2.0"; 
> xmlns:xsp-request="http://apache.org/xsp/request/2.0";>
> 
> mydatabasequery
> 
> 
> 
> mydatabase
> select * from mytable
>   
>   
>   
>   
> 
> 
> 
> 
> 
> 
> 
> 
> -
> 3 Call from the sitemap
> 
> 
>   
>   
> 
> 
> 
> 
> 
> 
> _
> Kieran Kirwan
> Executive Transportation Planner
> Transportation Modelling Department
>  
> Dublin Transportation Office
> Hainault House,
> 69/71 St. Stephen's Green,
> Dublin 2,
> Ireland.
> Tel: +353 (0)1 4778113
> Fax: +353 (0) 1 478 5935
> website: www.dto.ie   
>  
> 
> 
> 
> -Original Message-
> From: Ashish Kumar [mailto:[EMAIL PROTECTED]
> Sent: 29 October 2003 13:58
> To: [EMAIL PROTECTED]
> Subject: Re: dynamic pdf generation
> 
> 
> hi there,
>   thanx for ur prompt reply, i basically need help in first step, i.e.
> xml output of the database query, i have worked quite a bit
> for later two steps & i know how to do them in cocoon. 
>   there must be heaps of documentation regarding it but actually i
> have messed up with them and can't find proper info.!
> 
> ashish
> 
> On Wed, 29 Oct 2003, Derek Hohls wrote:
> 
> > ashish
> >  
> > Its not clear what you need help with - using various
> > Cocoon and related components you will need to:
> >  
> > 1. query the database and return the results as XML (various options)
> > 2. transform the XML to FO (using XSL)
> > 3. serialize the result as PDF (using FOP)
> >  
> > All of these steps will need to be sequenced in a pipeline (in the
> > sitemap)
> >  
> > Which of the above do you need help with?
> >  
> > Derek
> > 
> > >>> [EMAIL PROTECTED] 29/10/2003 02:49:09 >>> 
> > hi all, 
> > 
> > where can i find help/documentation for dynamic pdf generation (by 
> > quering database)? i m a newbie & can't get much help regarding this 
> > thing. 
> > 
> > ashish 
> > 
> > 
> > - 
> > To unsubscribe, e-mail: [EMAIL PROTECTED] 
> > For additional commands, e-mail: [EMAIL PROTECTED] 
> > 
> > 
> > 
> > -- 
> > This message has been scanned for viruses and
> > dangerous content by MailScanner, and is
> > believed to be clean.
> > Mailscanner thanks transtec Computers for their support.
> > 
> > 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> the system manager.
> 
> This footnote also confirms that this email message has been swept by
> 

Re: shopping cart : creating a new context

2003-10-29 Thread gounis
i'm interesting too about this cart

if u use setxml then you re-create the content in session's context
(correct me if i'm wring)

so that we need is a mechanism tha wil determine if the "shoping-cart" 
exist if not will create it (setxml) otherwhise will just add items 
(mergexml) is it possible inside xslt? or the solution is an action?

i have work on your example an i have a shoping-cart where i can add-item 
(for first time) so the cart is created and then merge more items
but i have 2 different .xsl and to differen urls to call
/add-cart/
/mrg-cart/

-- stavros



On Wed, 29 Oct 2003, Matthew Langham wrote:

> If you store the "goods" in the "cart" - why don't you just then add 
> and remove items as needed using setxml and removexml. There is no need 
> to copy the cart each time - it just stays in the session context.
> 
> Matthew
> 
> 
> On Mittwoch, Oktober 29, 2003, at 06:38 PM, julien bloit wrote:
> 
> > That's right.
> > In fact, I try to solve one problem after the other, doing little 
> > steps, I
> > first tried to work out the basic fonctionnality. Now that I got it 
> > working,
> > I'm working on the issue you just mentionned. I think maybe an xsl
> > stylesheet mixed with the  tag could do the trick. I 
> > have
> > no results yet (started working on it a few minutes ago).
> >
> > The global algorithm for adding would be something like :
> >
> > - copy actual cart (using "xsl:copy-of")
> > - select item list (xpath)
> > - merge new item to the list.
> >
> > Your thoughts/help are very welcome!
> >
> > Julien
> >
> >
> > - Original Message -
> > From: <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> > Cc: "julien bloit" <[EMAIL PROTECTED]>
> > Sent: Wednesday, October 29, 2003 6:15 PM
> > Subject: RE: shopping cart : creating a new context
> >
> >
> >>
> >> hi julien
> >>
> >> i like very much your very clean shoping-cart approach
> >>
> >> and i consider to replace a javascripr based simple shoping cart with
> >> something like yours but
> >>
> >> as i see you set your cart (in session) at once, you are not able to 
> >> add
> >> or remove items thats right or is something i missed?
> >>
> >> thnx in adv
> >>
> >> --stavros
> >>
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: resources in parent sitemap

2003-10-29 Thread Mathias Wiegard
Thanks Joerg,
I didn't see your posting...
Mat
-- 

Mathias Wiegard
Sedanstraße 67
89077 Ulm
GERMANY

Fon: +49 (0731) 6031938

Email: [EMAIL PROTECTED]

> Von: Joerg Heinicke <[EMAIL PROTECTED]>
> Antworten an: [EMAIL PROTECTED]
> Datum: Tue, 28 Oct 2003 17:41:41 +0100
> An: [EMAIL PROTECTED]
> Betreff: Re: resources in parent sitemap
> 
> On 28.10.2003 16:27, Antonio Gallardo wrote:
> 
>>> Hi,
>>> how can i address the parent sitemap's resources?
>> 
>> 
>> Use the context protocol. Sample:
>> 
>> context://stylesheets/mystylesheet.xslt
> 
> Twice wrong :-)
> 
> 1.  are not accessible from outside the sitemap they are
> declared.
> 
> 2. cocoon:// to access pipelines in root sitemap. Parent sitemap
> directly is not possible. context:// points to webapp's context
> directory and is so file system based and no longer sitemap/cocoon based.
> 
> Joerg
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Cannot serve static binary files

2003-10-29 Thread J.Pietschmann
Joerg Heinicke wrote:
I wonder why it works in our ConWeb application:
It works under certain circumstances. See
 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10277
for a complete discussion.
J.Pietschmann

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: shopping cart : creating a new context

2003-10-29 Thread Matthew Langham
If you store the "goods" in the "cart" - why don't you just then add 
and remove items as needed using setxml and removexml. There is no need 
to copy the cart each time - it just stays in the session context.

Matthew

On Mittwoch, Oktober 29, 2003, at 06:38 PM, julien bloit wrote:

That's right.
In fact, I try to solve one problem after the other, doing little 
steps, I
first tried to work out the basic fonctionnality. Now that I got it 
working,
I'm working on the issue you just mentionned. I think maybe an xsl
stylesheet mixed with the  tag could do the trick. I 
have
no results yet (started working on it a few minutes ago).

The global algorithm for adding would be something like :

- copy actual cart (using "xsl:copy-of")
- select item list (xpath)
- merge new item to the list.
Your thoughts/help are very welcome!

Julien

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Cc: "julien bloit" <[EMAIL PROTECTED]>
Sent: Wednesday, October 29, 2003 6:15 PM
Subject: RE: shopping cart : creating a new context

hi julien

i like very much your very clean shoping-cart approach

and i consider to replace a javascripr based simple shoping cart with
something like yours but
as i see you set your cart (in session) at once, you are not able to 
add
or remove items thats right or is something i missed?

thnx in adv

--stavros



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: dynamic pdf generation

2003-10-29 Thread Ashish Kumar
hi there,
   great!, it was really good help.. i m able to generate the xml
& access it on the browser. but the next thing is, how do i pass this xml
file for xsl & fo tranformation using an xsl file & wat parameteres
should it contain? i can separetly convert an xml to pdf using a seperate
xsl. 

thankin again for ur wondrful help   
ashish

  
On Wed, 29 Oct 2003, Kieran Kirwan wrote:

> Assuming you have a database up and running (I'm using MYSQL).
> say called mydatabase.with a table called mytable.with 2 
> fields.myfield1 and myfield2
> 
> 1 Edit COCOON.XCONF as follows
> 
> 
> 
> false
> jdbc:mysql://localhost:3306/mydatabase
> root
> 
> 
> 
> -
> 2 Create an XSP page such as below [mydatabasequery.xsp]
> 
> 
>xmlns:xsp="http://apache.org/xsp"; xmlns:esql="http://apache.org/cocoon/SQL/v2";
>   xmlns:xsp-session="http://apache.org/xsp/session/2.0"; 
> xmlns:xsp-request="http://apache.org/xsp/request/2.0";>
> 
> mydatabasequery
> 
> 
> 
> mydatabase
> select * from mytable
>   
>   
>   
>   
> 
> 
> 
> 
> 
> 
> 
> 
> -
> 3 Call from the sitemap
> 
> 
>   
>   
> 
> 
> 
> 
> 
> 
> _
> Kieran Kirwan
> Executive Transportation Planner
> Transportation Modelling Department
>  
> Dublin Transportation Office
> Hainault House,
> 69/71 St. Stephen's Green,
> Dublin 2,
> Ireland.
> Tel: +353 (0)1 4778113
> Fax: +353 (0) 1 478 5935
> website: www.dto.ie   
>  
> 
> 
> 
> -Original Message-
> From: Ashish Kumar [mailto:[EMAIL PROTECTED]
> Sent: 29 October 2003 13:58
> To: [EMAIL PROTECTED]
> Subject: Re: dynamic pdf generation
> 
> 
> hi there,
>   thanx for ur prompt reply, i basically need help in first step, i.e.
> xml output of the database query, i have worked quite a bit
> for later two steps & i know how to do them in cocoon. 
>   there must be heaps of documentation regarding it but actually i
> have messed up with them and can't find proper info.!
> 
> ashish
> 
> On Wed, 29 Oct 2003, Derek Hohls wrote:
> 
> > ashish
> >  
> > Its not clear what you need help with - using various
> > Cocoon and related components you will need to:
> >  
> > 1. query the database and return the results as XML (various options)
> > 2. transform the XML to FO (using XSL)
> > 3. serialize the result as PDF (using FOP)
> >  
> > All of these steps will need to be sequenced in a pipeline (in the
> > sitemap)
> >  
> > Which of the above do you need help with?
> >  
> > Derek
> > 
> > >>> [EMAIL PROTECTED] 29/10/2003 02:49:09 >>> 
> > hi all, 
> > 
> > where can i find help/documentation for dynamic pdf generation (by 
> > quering database)? i m a newbie & can't get much help regarding this 
> > thing. 
> > 
> > ashish 
> > 
> > 
> > - 
> > To unsubscribe, e-mail: [EMAIL PROTECTED] 
> > For additional commands, e-mail: [EMAIL PROTECTED] 
> > 
> > 
> > 
> > -- 
> > This message has been scanned for viruses and
> > dangerous content by MailScanner, and is
> > believed to be clean.
> > Mailscanner thanks transtec Computers for their support.
> > 
> > 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> the system manager.
> 
> This footnote also confirms that this email message has been swept by
> Mail Marshal for the presence of computer viruses.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: shopping cart : creating a new context

2003-10-29 Thread julien bloit
That's right.
In fact, I try to solve one problem after the other, doing little steps, I
first tried to work out the basic fonctionnality. Now that I got it working,
I'm working on the issue you just mentionned. I think maybe an xsl
stylesheet mixed with the  tag could do the trick. I have
no results yet (started working on it a few minutes ago).

The global algorithm for adding would be something like :

- copy actual cart (using "xsl:copy-of")
- select item list (xpath)
- merge new item to the list.

Your thoughts/help are very welcome!

Julien


- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Cc: "julien bloit" <[EMAIL PROTECTED]>
Sent: Wednesday, October 29, 2003 6:15 PM
Subject: RE: shopping cart : creating a new context


>
> hi julien
>
> i like very much your very clean shoping-cart approach
>
> and i consider to replace a javascripr based simple shoping cart with
> something like yours but
>
> as i see you set your cart (in session) at once, you are not able to add
> or remove items thats right or is something i missed?
>
> thnx in adv
>
> --stavros
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Passing objects as parameters

2003-10-29 Thread Ralph Goers
I'm not using flowscript, just the sitemap.  Even so, how would the object
be passed to the generator?  The only thing I can think of is that it has to
be store in the request or the temporary context, in which case the input
module would have to return the name the value is stored as. The generator
would then need to know to retrieve it. Quite ugly.

Ralph

> -Original Message-
> From: Markus Heussen [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 29, 2003 9:32 AM
> To: [EMAIL PROTECTED]
> Subject: AW: Passing objects as parameters
> 
> 
> Hi Ralph,
> 
> you can use flowscript with sendPage() or sendPageAndWait() 
> functions to
> pass any java or javascript object to your sitemap.
> 
> Greetings, Markus
> 
> 
> 
> I was hoping to use an input module to create an object to pass as a
> parameter to my generator. However, Parameters only accepts 
> Strings.  Is
> there another easy way to do this?
> 
> Ralph Goers
> Sr. Software Engineer, Software Architecture
> Digital Insight Corporation
> web: www.digitalinsight.com
> voice: 818-878-6020 fax: 818-878-7555
> The fine print: this email may contain confidential and privileged
> material for the sole use of the intended recipient. Any review or
> distribution by others is strictly prohibited. If you are not 
> the intended
> recipient please contact the sender and delete all copies.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: Passing objects as parameters

2003-10-29 Thread Markus Heussen
Hi Ralph,

you can use flowscript with sendPage() or sendPageAndWait() functions to
pass any java or javascript object to your sitemap.

Greetings, Markus



I was hoping to use an input module to create an object to pass as a
parameter to my generator. However, Parameters only accepts Strings.  Is
there another easy way to do this?

Ralph Goers
Sr. Software Engineer, Software Architecture
Digital Insight Corporation
web: www.digitalinsight.com
voice: 818-878-6020 fax: 818-878-7555
The fine print: this email may contain confidential and privileged
material for the sole use of the intended recipient. Any review or
distribution by others is strictly prohibited. If you are not the intended
recipient please contact the sender and delete all copies.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Passing objects as parameters

2003-10-29 Thread Ralph Goers
I was hoping to use an input module to create an object to pass as a
parameter to my generator. However, Parameters only accepts Strings.  Is
there another easy way to do this?

Ralph Goers
Sr. Software Engineer, Software Architecture
Digital Insight Corporation
web: www.digitalinsight.com
voice: 818-878-6020 fax: 818-878-7555
The fine print: this email may contain confidential and privileged
material for the sole use of the intended recipient. Any review or 
distribution by others is strictly prohibited. If you are not the intended 
recipient please contact the sender and delete all copies.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: shopping cart : creating a new context

2003-10-29 Thread gounis

hi julien

i like very much your very clean shoping-cart approach

and i consider to replace a javascripr based simple shoping cart with 
something like yours but 

as i see you set your cart (in session) at once, you are not able to add 
or remove items thats right or is something i missed?

thnx in adv

--stavros
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Error Handling

2003-10-29 Thread Ralph Goers
http://cocoon.apache.org/2.1/userdocs/concepts/sitemap.html#Handling+Errors
still documents 2.0 error handling. It also states that generators are not
allowed.  However,
http://cocoon.apache.org/2.1/userdocs/concepts/errorhandling.html documents
the new error handling and mentions that generators are allowed.  I am
presuming that the second page is correct.  Can the first section be removed
and replaced with a link to the second page?

Ralph Goers



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Minimal Cocoon Webapp

2003-10-29 Thread Joerg Heinicke
Hello Brent,

have a look into install.txt and blocks.properties for building a minimal 
Cocoon webapp. It's much easier than for Cocoon 2.0.

Joerg

Brent L Johnson wrote:
I based my current Cocoon 2.1 webapp on the samples.  I just zipped up
my webapp for backup purposes and noticed that the file zipped was 30MB.
I saw on the Wiki someone has directions for creating a minimal cocoon
install - but the directions are for Cocoon 2.0.
Is there an ant task "minimal" or something similar I can use to only
build what I absolutely need?  Or 2.1 directions?  Or will the 2.0
directions work for 2.1?
Thanks,

- Brent
--
System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Minimal Cocoon Webapp

2003-10-29 Thread Brent L Johnson
I based my current Cocoon 2.1 webapp on the samples.  I just zipped up
my webapp for backup purposes and noticed that the file zipped was 30MB.
I saw on the Wiki someone has directions for creating a minimal cocoon
install - but the directions are for Cocoon 2.0.

Is there an ant task "minimal" or something similar I can use to only
build what I absolutely need?  Or 2.1 directions?  Or will the 2.0
directions work for 2.1?

Thanks,

- Brent


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: minor url redirection

2003-10-29 Thread gounis

try something like this 





but if you put this in a sub sitemap i think tha you have to modify and 
your parent sitemap



-- stavros


On Wed, 29 Oct 2003, James Cummings wrote:

> Hiya,
> 
> 
> Quick, and I hope relatively simply question:
> 
> If I have a file under cocoon at say:
> 
> http://domain.name/foo/blort
> 
> and in the auto-mounted sitemap for blort I have:
> 
> 
> 
> 
> 
> because when MSIE bookmarks things it leaves off the / on 
> http://domain.name/foo/blort/wibble/ 
> 
> and I have another match saying what happens to wibble/ I 
> run into a problem if a referenced file in wibble/  say 
> something like wibble/index.html has relative url 
> references.  
>  
> i.e. 
> 
> if someone goes to 
> http://domain.name/foo/blort/wibble/ which loads index.html
> 
> a link like bar
> is http://domain.name/foo/blort/wibble/wibblesubdirectory/bar.html
> and is found fine.  
>  
> But, if someone goes to http://domain.name/foo/blort/wibble 
> (which is redirected as above and then loads index.html) 
> a link like bar
> is http://domain.name/foo/blort/wibblesubdirectory/bar.html
> and wibble, itself, is missing, and so of course the file 
> isn't found.
>  
> Is there a way to say in my blort/sitemap.xmap that if 
> I get /* redirect it to /*/ or similar, without this 
> problem?  I'm assuming there is just a better way to do 
> this in the sitemap, and plead my newbie ignorance.
>  
> It isn't a problem for most of the site which uses url's 
> such as http://domain.name/foo/bar?param=value but is 
> in these few cases.  Very bad design I know, but I'm just 
> trying to minimise the number of errors users using 
> MSIE (or silly enough to type in the address wrong) might see.
> 
> Many Thanks,
> -James
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



minor url redirection

2003-10-29 Thread James Cummings
Hiya,


Quick, and I hope relatively simply question:

If I have a file under cocoon at say:

http://domain.name/foo/blort

and in the auto-mounted sitemap for blort I have:





because when MSIE bookmarks things it leaves off the / on 
http://domain.name/foo/blort/wibble/ 

and I have another match saying what happens to wibble/ I 
run into a problem if a referenced file in wibble/  say 
something like wibble/index.html has relative url 
references.  
 
i.e. 

if someone goes to 
http://domain.name/foo/blort/wibble/ which loads index.html

a link like bar
is http://domain.name/foo/blort/wibble/wibblesubdirectory/bar.html
and is found fine.  
 
But, if someone goes to http://domain.name/foo/blort/wibble 
(which is redirected as above and then loads index.html) 
a link like bar
is http://domain.name/foo/blort/wibblesubdirectory/bar.html
and wibble, itself, is missing, and so of course the file 
isn't found.
 
Is there a way to say in my blort/sitemap.xmap that if 
I get /* redirect it to /*/ or similar, without this 
problem?  I'm assuming there is just a better way to do 
this in the sitemap, and plead my newbie ignorance.
 
It isn't a problem for most of the site which uses url's 
such as http://domain.name/foo/bar?param=value but is 
in these few cases.  Very bad design I know, but I'm just 
trying to minimise the number of errors users using 
MSIE (or silly enough to type in the address wrong) might see.

Many Thanks,
-James

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: RT: Re: Uploading fiiles: flow function

2003-10-29 Thread Steve Schwarz
Josep
I think the problem is that your sitemap doesn't return a page in the 
failure case; you just end up with a serializer on no data. Your upload is 
probably failing and then cocoon can't process the request. I'm surprised 
you don't get a warning/error on startup.

So I'd do the following:
1. Create some sort of page for your failure case and add it to your 
sitemap:
  
  
  


	
  
  
 
 
 

2. set your logging level to DEBUG for everything
3. grep the logs for the debugging information logged with 
sitemap.action.fileupload

HTH
Steve
When I compile the action, I put it into a package, named
edu.uoc.riudavets, under /WEB-INF/classes directory...
I have applied next code into sitemap.xmap:




I have modified the pipeline in order to match  my system requirements

My web page includes next form:


 
 
 

but when I choose the file to upload, the server breaks down, and
show next error:
"The requested URL /cocoon/do-upload was not found on this server"

What am I doing wrong??? Is the action well-placed under
/WEB-INF/classes directory???
Thanks a lot ...
_
Enjoy MSN 8 patented spam control and more with MSN 8 Dial-up Internet 
Service.  Try it FREE for one month!   http://join.msn.com/?page=dept/dialup

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RT: Re: Uploading fiiles: flow function

2003-10-29 Thread Josep Riudavets Aguilo

Hi Steve ... thanks for your help ... I have some doubts.

When I compile the action, I put it into a package, named
edu.uoc.riudavets, under /WEB-INF/classes directory...

I have applied next code into sitemap.xmap:





  
  
  


 
  

 
 

I have modified the pipeline in order to match  my system requirements

My web page includes next form:



 
 
 


but when I choose the file to upload, the server breaks down, and
show next error:

"The requested URL /cocoon/do-upload was not found on this server"

What am I doing wrong??? Is the action well-placed under
/WEB-INF/classes directory???

Thanks a lot ...




--> Missatge original de Steve Schwarz  per a
[EMAIL PROTECTED] enviat el 27/10/2003 18:14:21

Josep,
Here is the Action I use. It is based on the example in the Cocoon 
Developer's Handbook.
Hopefully I copied and pasted it w/o error.

The sitemap would be:

in map:components section with the other actions:
  

in your pipeline section
  

  
  

  
 
  



  

HTH
Steve

/**
* Upload a file into the directory specified in the upload-dir 
parameter.
* Based on code by Jeremy Aston from the Cocoon Developer's Handbook.
*/

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Collections;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Map;

import org.apache.avalon.framework.parameters.Parameters;
import org.apache.avalon.framework.thread.ThreadSafe;
import org.apache.cocoon.acting.AbstractConfigurableAction;
import org.apache.cocoon.environment.Context;
import org.apache.cocoon.environment.ObjectModelHelper;
import org.apache.cocoon.environment.Redirector;
import org.apache.cocoon.environment.Request;
import org.apache.cocoon.environment.SourceResolver;
import org.apache.cocoon.servlet.multipart.Part;
import org.apache.cocoon.servlet.multipart.PartOnDisk;
import org.apache.cocoon.util.IOUtils;

public class FileUploadAction
extends AbstractConfigurableAction
implements ThreadSafe {
/** Name of the parameter that holds the upload directory
name to 
use **/
private static final String UPLOAD_FOLDER_PARAMETER =
"upload-dir";

/**
 * Put an upload file into directory specified as a parameter to
 * the action called upload-dir
 */
public Map act(
Redirector redirector,
SourceResolver resolver,
Map objectModel,
String source,
Parameters parameters)
throws Exception {
Request request =
ObjectModelHelper.getRequest(objectModel);
Context context =
ObjectModelHelper.getContext(objectModel);

HashMap results = new HashMap();

if (request != null) {
// Loop through the parameter names to find
any file 
upload stuff
getLogger().debug("Request Parameters");
for (Enumeration e =
request.getParameterNames();
e.hasMoreElements();) {
String param = (String)e.nextElement();

Object value = request.get(param);

getLogger().debug("["+ param + "] ["
+
value.getClass().getName() 
+ "] : " + value);

if (value instanceof Part) {
// Have got a Part object
(or sub 
class - hence the casting )
// Now get the filename and
the real 
path to form the file route.

String filename = 
((Part)value).getFileName();
String uploadFolder =

(String)parameters.getParameter(

UPLOAD_FOLDER_PARAMETER);
String realPath = 
context.getRealPath("/");

// Do a sanity check on the
upload 
folder

if (uploadFolder == null || 
uploadFolder.length() == 0) {
   
getLogger().error("Missing "
+ 
UPLOAD_FOLDER_PARAMETER
+ " 
parameter or no upload folder specified in the "
+ 
UPLOAD_FOLDER_PARAMETER
+ " 
parameter");
return null;
  

Re: shopping cart : creating a new context

2003-10-29 Thread julien bloit
Thank you, that was the answer to my problem.

- Original Message - 
From: "Matthew Langham" <[EMAIL PROTECTED]>
To: "julien bloit" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, October 29, 2003 4:21 PM
Subject: RE: shopping cart : creating a new context


> > http://cocoon.apache.org/session/1.0";>
>
> The namespace should read: http://apache.org/cocoon/session/1.0
>
> See also this post:
> http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=106674388619634&w=2
>
> Matthew
>
>
> > -Original Message-
> > From: julien bloit [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, October 29, 2003 4:02 PM
> > To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> > Subject: Re: shopping cart : creating a new context
> >
> >
> > Ok, the session creation seems to work with the session action,
> > however, it
> > seems I can't get the session transformer to work in my pipeline :
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > where new_panier.xml is :
> >
> > 
> >  http://cocoon.apache.org/session/1.0";>
> >
> >
> >
> >first item
> >second item
> >
> >
> >   
> > 
> >
> > I always get the following output (obviously, no transformation
> > happening...) :
> >
> > 
> > http://cocoon.apache.org/session/1.0";>
> >
> >
> >
> >first item
> >second item
> >
> >
> >   
> > 
> >
> > What am I missing ?? feel like a dummy...
> >
> > > Hi Julien,
> > >
> > > I missed the beginning of this thread (just read it in the archive).
> > Before
> > > creating a context to store data in you must create a session for the
> > user.
> > > Check this page for details on the Session action:
> > > http://cocoon.apache.org/2.1/userdocs/actions/session-action.html
> > >
> > > You don't need any authentication for this.
> > >
> > > HTH
> > >
> > > Matthew
> > >
> > > > -Original Message-
> > > > From: julien bloit [mailto:[EMAIL PROTECTED]
> > > > Sent: Wednesday, October 29, 2003 1:04 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Re: shopping cart : creating a new context
> > > >
> > > >
> > > > Thanks Peter,
> > > > Before I dig into the problem a little more, can you tell me
> > if you were
> > > > able to create a session context without any user identification
> > process?
> > > >
> > > > thanks for your help
> > > > Julien
> > > >
> > > > - Original Message -
> > > > From: "Peter Dietz" <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Wednesday, October 29, 2003 1:00 PM
> > > > Subject: RE: shopping cart : creating a new context
> > > >
> > > >
> > > > > Hi,
> > > > >
> > > > > I also had problems creating and accessing session
> > contexts. I solved
> > > > > them using the "session logicsheet". You can find the doc here
> > > > > http://cocoon.apache.org/2.1/userdocs/xsp/session.html
> > > > >
> > > > > Have fun,
> > > > > Peter
> > > > >
> > > > > -Original Message-
> > > > > From: julien bloit [mailto:[EMAIL PROTECTED]
> > > > > Sent: Mittwoch, 29. Oktober 2003 11:59
> > > > > To: [EMAIL PROTECTED]
> > > > > Subject: Re: shopping cart : creating a new context
> > > > >
> > > > > Alright, I'll try it.
> > > > > What do you mean by "experimental"? It's not wise to
> > implement it in a
> > > > > production project for the moment ?
> > > > >
> > > > > - Original Message -
> > > > > From: "leo leonid" <[EMAIL PROTECTED]>
> > > > > To: <[EMAIL PROTECTED]>
> > > > > Sent: Tuesday, October 28, 2003 10:22 PM
> > > > > Subject: Re: shopping cart : creating a new context
> > > > >
> > > > >
> > > > >
> > > > > On Oct 28, 2003, at 4:52 PM, julien bloit wrote:
> > > > >
> > > > > > Hi all,
> > > > > >
> > > > > > I want to implement a rather classical type of webapp
> > where the user
> > > > > > browses a catalog, adds items to its shopping cart, and logs in
or
> > > > > > registers when he's ready to buy the items from his cart.
> > > > > >
> > > > > > I browsed through the mailing list archive and it seems I could
> > > > > > proceed using the session transformer.
> > > > > >
> > > > > > Here's a snippet of my sitemap :
> > > > > >
> > > > > >
> > > > >
> > > > > 
> > > > >
> > > > >
> > > > > >
> > > > > > Aside from knowing where the error might come from, I'd
> > like to know
> > > > > > if this seems a correct way to proceed to store user data
> > while he's
> > > > > > not logged yet.
> > > > > >
> > > > >
> > > > > If you want to see another (experimental) approach, look at the
> > > > > PetStore Sample. It uses flow script to achieve this
> > functionality. At
> > > > > the moment I'm implementing the missing parts of the sample, using
> > > > > woody as form framework. Expect a patch in the next days.
> > > > >
> > > > > /leo
> > > > >
> > > > >
> > > > >
> > > > > > many many thanks for your thoughts!
> > > > > > Cheers,
> > > > > > Julien
> > > > >
> > > > >
> > > > >
> > -

RE: shopping cart : creating a new context

2003-10-29 Thread Matthew Langham
> http://cocoon.apache.org/session/1.0";>

The namespace should read: http://apache.org/cocoon/session/1.0

See also this post:
http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=106674388619634&w=2

Matthew


> -Original Message-
> From: julien bloit [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 29, 2003 4:02 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: shopping cart : creating a new context
>
>
> Ok, the session creation seems to work with the session action,
> however, it
> seems I can't get the session transformer to work in my pipeline :
>
> 
> 
> 
> 
> 
> 
> 
> 
>
> where new_panier.xml is :
>
> 
>  http://cocoon.apache.org/session/1.0";>
>
>
>
>first item
>second item
>
>
>   
> 
>
> I always get the following output (obviously, no transformation
> happening...) :
>
> 
> http://cocoon.apache.org/session/1.0";>
>
>
>
>first item
>second item
>
>
>   
> 
>
> What am I missing ?? feel like a dummy...
>
> > Hi Julien,
> >
> > I missed the beginning of this thread (just read it in the archive).
> Before
> > creating a context to store data in you must create a session for the
> user.
> > Check this page for details on the Session action:
> > http://cocoon.apache.org/2.1/userdocs/actions/session-action.html
> >
> > You don't need any authentication for this.
> >
> > HTH
> >
> > Matthew
> >
> > > -Original Message-
> > > From: julien bloit [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, October 29, 2003 1:04 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: shopping cart : creating a new context
> > >
> > >
> > > Thanks Peter,
> > > Before I dig into the problem a little more, can you tell me
> if you were
> > > able to create a session context without any user identification
> process?
> > >
> > > thanks for your help
> > > Julien
> > >
> > > - Original Message -
> > > From: "Peter Dietz" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Wednesday, October 29, 2003 1:00 PM
> > > Subject: RE: shopping cart : creating a new context
> > >
> > >
> > > > Hi,
> > > >
> > > > I also had problems creating and accessing session
> contexts. I solved
> > > > them using the "session logicsheet". You can find the doc here
> > > > http://cocoon.apache.org/2.1/userdocs/xsp/session.html
> > > >
> > > > Have fun,
> > > > Peter
> > > >
> > > > -Original Message-
> > > > From: julien bloit [mailto:[EMAIL PROTECTED]
> > > > Sent: Mittwoch, 29. Oktober 2003 11:59
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Re: shopping cart : creating a new context
> > > >
> > > > Alright, I'll try it.
> > > > What do you mean by "experimental"? It's not wise to
> implement it in a
> > > > production project for the moment ?
> > > >
> > > > - Original Message -
> > > > From: "leo leonid" <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Tuesday, October 28, 2003 10:22 PM
> > > > Subject: Re: shopping cart : creating a new context
> > > >
> > > >
> > > >
> > > > On Oct 28, 2003, at 4:52 PM, julien bloit wrote:
> > > >
> > > > > Hi all,
> > > > >
> > > > > I want to implement a rather classical type of webapp
> where the user
> > > > > browses a catalog, adds items to its shopping cart, and logs in or
> > > > > registers when he's ready to buy the items from his cart.
> > > > >
> > > > > I browsed through the mailing list archive and it seems I could
> > > > > proceed using the session transformer.
> > > > >
> > > > > Here's a snippet of my sitemap :
> > > > >
> > > > >
> > > >
> > > > 
> > > >
> > > >
> > > > >
> > > > > Aside from knowing where the error might come from, I'd
> like to know
> > > > > if this seems a correct way to proceed to store user data
> while he's
> > > > > not logged yet.
> > > > >
> > > >
> > > > If you want to see another (experimental) approach, look at the
> > > > PetStore Sample. It uses flow script to achieve this
> functionality. At
> > > > the moment I'm implementing the missing parts of the sample, using
> > > > woody as form framework. Expect a patch in the next days.
> > > >
> > > > /leo
> > > >
> > > >
> > > >
> > > > > many many thanks for your thoughts!
> > > > > Cheers,
> > > > > Julien
> > > >
> > > >
> > > >
> -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > > >
> > > >
> -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > > >
> > > >
> -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > >
> > > --

RE: AW: Cocoon & Design Patterns & EJB

2003-10-29 Thread Ralph Goers
Cocoon definitely implements the following patterns:
1. Front Controller
2. Application Controller
3. View Helper (Functional Approach)
4. Composite View (Transformer View Management Strategy)
5. Service to Worker (via actions and generators)

Cocoon does not provide any J2EE Business Tier patterns. It is primarily an
implementation of the View and Controller, leaving the Model (i.e. the
Business Tier patterns) up to you.

FYI, I was looking at the Keel framework the other day. It is also Avalon
based and provides more Business Tier frameworks. However, it does not
appear to support J2EE - although one could argue that it implements the
J2EE patterns.

Ralph


> -Original Message-
> From: Leandro Rosa [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 29, 2003 5:31 AM
> To: [EMAIL PROTECTED]
> Subject: Re: AW: Cocoon & Design Patterns & EJB
> 
> 
> Tks Canavaggio!!
> 
> I know all these books and papers, however I wish to
> know if Cocoon (or Avalon) implements the EJB design
> patterns (facade, etc)...
> 
> Leandro Rosa
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: shopping cart : creating a new context

2003-10-29 Thread julien bloit
Ok, the session creation seems to work with the session action, however, it
seems I can't get the session transformer to work in my pipeline :










where new_panier.xml is :


 http://cocoon.apache.org/session/1.0";>
   
   
   
   first item
   second item
   
   
  


I always get the following output (obviously, no transformation
happening...) :


http://cocoon.apache.org/session/1.0";>
   
   
   
   first item
   second item
   
   
  


What am I missing ?? feel like a dummy...

> Hi Julien,
>
> I missed the beginning of this thread (just read it in the archive).
Before
> creating a context to store data in you must create a session for the
user.
> Check this page for details on the Session action:
> http://cocoon.apache.org/2.1/userdocs/actions/session-action.html
>
> You don't need any authentication for this.
>
> HTH
>
> Matthew
>
> > -Original Message-
> > From: julien bloit [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, October 29, 2003 1:04 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: shopping cart : creating a new context
> >
> >
> > Thanks Peter,
> > Before I dig into the problem a little more, can you tell me if you were
> > able to create a session context without any user identification
process?
> >
> > thanks for your help
> > Julien
> >
> > - Original Message -
> > From: "Peter Dietz" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, October 29, 2003 1:00 PM
> > Subject: RE: shopping cart : creating a new context
> >
> >
> > > Hi,
> > >
> > > I also had problems creating and accessing session contexts. I solved
> > > them using the "session logicsheet". You can find the doc here
> > > http://cocoon.apache.org/2.1/userdocs/xsp/session.html
> > >
> > > Have fun,
> > > Peter
> > >
> > > -Original Message-
> > > From: julien bloit [mailto:[EMAIL PROTECTED]
> > > Sent: Mittwoch, 29. Oktober 2003 11:59
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: shopping cart : creating a new context
> > >
> > > Alright, I'll try it.
> > > What do you mean by "experimental"? It's not wise to implement it in a
> > > production project for the moment ?
> > >
> > > - Original Message -
> > > From: "leo leonid" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Tuesday, October 28, 2003 10:22 PM
> > > Subject: Re: shopping cart : creating a new context
> > >
> > >
> > >
> > > On Oct 28, 2003, at 4:52 PM, julien bloit wrote:
> > >
> > > > Hi all,
> > > >
> > > > I want to implement a rather classical type of webapp where the user
> > > > browses a catalog, adds items to its shopping cart, and logs in or
> > > > registers when he's ready to buy the items from his cart.
> > > >
> > > > I browsed through the mailing list archive and it seems I could
> > > > proceed using the session transformer.
> > > >
> > > > Here's a snippet of my sitemap :
> > > >
> > > >
> > >
> > > 
> > >
> > >
> > > >
> > > > Aside from knowing where the error might come from, I'd like to know
> > > > if this seems a correct way to proceed to store user data while he's
> > > > not logged yet.
> > > >
> > >
> > > If you want to see another (experimental) approach, look at the
> > > PetStore Sample. It uses flow script to achieve this functionality. At
> > > the moment I'm implementing the missing parts of the sample, using
> > > woody as form framework. Expect a patch in the next days.
> > >
> > > /leo
> > >
> > >
> > >
> > > > many many thanks for your thoughts!
> > > > Cheers,
> > > > Julien
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: AW: MS Access with cocoon

2003-10-29 Thread Mustafa Ali, Halgurt
Many many thanks, that was a great help form me.

Thanks again,
Halgurt

-UrsprÃngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 29. Oktober 2003 14:54
An: [EMAIL PROTECTED]
Betreff: Re: AW: MS Access with cocoon

ms access through odbc

cocoon.xconf





jdbc:odbc:ldb
secret



web.xml

   
 sun.jdbc.odbc.JdbcOdbcDriver



-- stavros


On Wed, 29 Oct 2003, Mustafa Ali, Halgurt wrote:

> Can you send me please your configuration code? It will be very nice.
> 
> Thanks,
> Halgurt
> 
> -UrsprÏngliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Gesendet: Dienstag, 28. Oktober 2003 23:05
> An: [EMAIL PROTECTED]
> Betreff: Re: MS Access with cocoon
> 
> 
> through ODBC?
> 
> i use odbc: 
>  sun.jdbc.odbc.JdbcOdbcDriver
> 
> On Tue, 28 Oct 2003, Mustafa Ali, Halgurt wrote:
> 
> > Hallo,
> >  
> > I want to bind ms access with cocoon, can someone tell me please which
> > jdbc version do I have to use? Is ms sql = ms access?
> >  
> > Thanks for help,
> > Halgurt
> > 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: javascript serializer?

2003-10-29 Thread Tsui, Alban
Title: RE: javascript serializer?





I am trying to setup a full pipeline... so the script is generated depending on some values from database.


Anyway I have just done a quick test to use text serialization and it seems to work.


Thanks for your help.



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 29 October 2003 14:32
To: [EMAIL PROTECTED]
Subject: Re: _javascript_ serializer?




what' your needs ?
1. to read _javascript_ from a source .js 
2. to produce your _javascript_ through a pipeline (generation,  transformation, serialization


if you want jsut to read a .js use map:read


-- stavros


On Wed, 29 Oct 2003, Tsui, Alban wrote:


> Hi
> 
> I am trying to set up a pipeline to generate a _javascript_ file.
> 
> What serializer do I use? Text? I am using cocoon 2.0.3.
> 
> Cheers
> Alban
>


Join us at Cognos' biggest event of the year Enterprise 2003, The Cognos Business Forum.  Taking place in over 25 cities around the world, it's an opportunity for Business and IT leaders to learn about strategies for driving performance. Visit http://www.cognos.com/enterprise03 for more details. 

This message may contain privileged and/or confidential information.  If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so.  Thank you.




Re: javascript serializer?

2003-10-29 Thread gounis

what' your needs ?
1. to read javascript from a source .js 
2. to produce your javascript through a pipeline (generation,  transformation, 
serialization

if you want jsut to read a .js use map:read

-- stavros

On Wed, 29 Oct 2003, Tsui, Alban wrote:

> Hi
> 
> I am trying to set up a pipeline to generate a javascript file.
> 
> What serializer do I use? Text? I am using cocoon 2.0.3.
> 
> Cheers
> Alban
> 
> Join us at Cognos' biggest event of the year Enterprise 2003, The Cognos
> Business Forum.  Taking place in over 25 cities around the world, it's an
> opportunity for Business and IT leaders to learn about strategies for
> driving performance. Visit http://www.cognos.com/enterprise03 for more
> details. 
> 
> This message may contain privileged and/or confidential information.  If you
> have received this e-mail in error or are not the intended recipient, you
> may not use, copy, disseminate or distribute it; do not open any
> attachments, delete it immediately from your system and notify the sender
> promptly by e-mail that you have done so.  Thank you.
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: javascript serializer?

2003-10-29 Thread Carmona Perez, David
Title: javascript serializer?









_javascript_ is plain text, just a
TextSerializer or even a custom Reader like I've done if for its generation you
don´t need any XML data.

 





David

 

-Mensaje
original-
De: Tsui, Alban
[mailto:[EMAIL PROTECTED]
Enviado el: miércoles, 29 de
octubre de 2003 15:17
Para: [EMAIL PROTECTED]
Asunto: _javascript_ serializer?

 

Hi 

I am trying to set up a pipeline to generate a _javascript_ file. 

What serializer do I use? Text? I am using cocoon 2.0.3. 

Cheers 
Alban 

Join us at Cognos' biggest event of the year Enterprise 2003, The Cognos Business Forum.  Taking
place in over 25 cities around the world, it's an opportunity for Business and
IT leaders to learn about strategies for driving performance. Visit http://www.cognos.com/enterprise03 for more details. 

This message may contain privileged and/or confidential
information.  If you have received this e-mail in error or are not the
intended recipient, you may not use, copy, disseminate or distribute it; do not
open any attachments, delete it immediately from your system and notify the
sender promptly by e-mail that you have done so.  Thank you.








javascript serializer?

2003-10-29 Thread Tsui, Alban
Title: javascript serializer?





Hi


I am trying to set up a pipeline to generate a _javascript_ file.


What serializer do I use? Text? I am using cocoon 2.0.3.


Cheers
Alban


Join us at Cognos' biggest event of the year Enterprise 2003, The Cognos Business Forum.  Taking place in over 25 cities around the world, it's an opportunity for Business and IT leaders to learn about strategies for driving performance. Visit http://www.cognos.com/enterprise03 for more details. 

This message may contain privileged and/or confidential information.  If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so.  Thank you.




Re: custom generator.

2003-10-29 Thread Rui Alberto L.
Thanks Joerg,
it's now working pefectly! :) Many thanks again...
Rui


On Tue, 2003-10-28 at 21:22, Joerg Heinicke wrote:
> Take a look into an existing generator as base, e.g. the JSPGenerator.
> 
> There you have code like
> 
> SAXParser parser = null;
> try {
>byte[] bytes = ;
> 
>InputSource input = new InputSource(new ByteArrayInputStream(bytes));
> 
>// pipe the results into the parser
>parser = (SAXParser)this.manager.lookup(SAXParser.ROLE);
>parser.parse(input, this.xmlConsumer);
> } finally {
>this.manager.release((Component)parser);
> }
> 
> It's important to avoid instantiation directly, but to use the factories 
> provided by Cocoon. Also the components should be released at the end.
> 
> Joerg
> 
> On 28.10.2003 21:36, Rui Alberto L. GonÃalves wrote:
> 
> > Hi all,
> > I'm having some difficulties writing a custom generator.
> > Somewhere in the generate() method I have a String that
> > contains valid XML! I want to send it to the pipeline!
> > Does anyone know how to do this?
> > 
> > I tryed
> > --
> > public class MyRequestGenerator
> >   extends ServiceableGenerator
> > 
> > ...
> > org.xml.sax.helpers.XMLReaderAdapter
> >   reader_adpter = new org.xml.sax.helpers.XMLReaderAdapter();
> > 
> > super.setContentHandler((org.xml.sax.ContentHandler)reader_adpter);
> > 
> > reader_adpter.parse(new org.xml.sax.InputSource(
> > new java.io.CharArrayReader(str.toCharArray()));
> > 
> > but without success! Any help will be appreciated. Thanks.
> > 
> > Rui
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
-- 
Rui Alberto L. GonÃalves <[EMAIL PROTECTED]>
PT InovaÃÃo


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: AW: MS Access with cocoon

2003-10-29 Thread gounis
ms access through odbc

cocoon.xconf





jdbc:odbc:ldb
secret



web.xml

   
 sun.jdbc.odbc.JdbcOdbcDriver



-- stavros


On Wed, 29 Oct 2003, Mustafa Ali, Halgurt wrote:

> Can you send me please your configuration code? It will be very nice.
> 
> Thanks,
> Halgurt
> 
> -Ursprόngliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Gesendet: Dienstag, 28. Oktober 2003 23:05
> An: [EMAIL PROTECTED]
> Betreff: Re: MS Access with cocoon
> 
> 
> through ODBC?
> 
> i use odbc: 
>  sun.jdbc.odbc.JdbcOdbcDriver
> 
> On Tue, 28 Oct 2003, Mustafa Ali, Halgurt wrote:
> 
> > Hallo,
> >  
> > I want to bind ms access with cocoon, can someone tell me please which
> > jdbc version do I have to use? Is ms sql = ms access?
> >  
> > Thanks for help,
> > Halgurt
> > 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: dynamic pdf generation

2003-10-29 Thread Kieran Kirwan
Assuming you have a database up and running (I'm using MYSQL).
.say called mydatabase.with a table called mytable.with 2 
fields.myfield1 and myfield2

1   Edit COCOON.XCONF as follows



false
jdbc:mysql://localhost:3306/mydatabase
root



-
2   Create an XSP page such as below [mydatabasequery.xsp]


http://apache.org/xsp"; xmlns:esql="http://apache.org/cocoon/SQL/v2";
  xmlns:xsp-session="http://apache.org/xsp/session/2.0"; 
xmlns:xsp-request="http://apache.org/xsp/request/2.0";>

mydatabasequery



mydatabase
select * from mytable












-
3   Call from the sitemap










_
Kieran Kirwan
Executive Transportation Planner
Transportation Modelling Department
 
Dublin Transportation Office
Hainault House,
69/71 St. Stephen's Green,
Dublin 2,
Ireland.
Tel: +353 (0)1 4778113
Fax: +353 (0) 1 478 5935
website: www.dto.ie   
 



-Original Message-
From: Ashish Kumar [mailto:[EMAIL PROTECTED]
Sent: 29 October 2003 13:58
To: [EMAIL PROTECTED]
Subject: Re: dynamic pdf generation


hi there,
  thanx for ur prompt reply, i basically need help in first step, i.e.
xml output of the database query, i have worked quite a bit
for later two steps & i know how to do them in cocoon. 
  there must be heaps of documentation regarding it but actually i
have messed up with them and can't find proper info.!

ashish

On Wed, 29 Oct 2003, Derek Hohls wrote:

> ashish
>  
> Its not clear what you need help with - using various
> Cocoon and related components you will need to:
>  
> 1. query the database and return the results as XML (various options)
> 2. transform the XML to FO (using XSL)
> 3. serialize the result as PDF (using FOP)
>  
> All of these steps will need to be sequenced in a pipeline (in the
> sitemap)
>  
> Which of the above do you need help with?
>  
> Derek
> 
> >>> [EMAIL PROTECTED] 29/10/2003 02:49:09 >>> 
> hi all, 
> 
> where can i find help/documentation for dynamic pdf generation (by 
> quering database)? i m a newbie & can't get much help regarding this 
> thing. 
> 
> ashish 
> 
> 
> - 
> To unsubscribe, e-mail: [EMAIL PROTECTED] 
> For additional commands, e-mail: [EMAIL PROTECTED] 
> 
> 
> 
> -- 
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
> Mailscanner thanks transtec Computers for their support.
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
Mail Marshal for the presence of computer viruses.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: MS Access with cocoon

2003-10-29 Thread Mustafa Ali, Halgurt
Can you send me please your configuration code? It will be very nice.

Thanks,
Halgurt

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 28. Oktober 2003 23:05
An: [EMAIL PROTECTED]
Betreff: Re: MS Access with cocoon


through ODBC?

i use odbc: 
 sun.jdbc.odbc.JdbcOdbcDriver

On Tue, 28 Oct 2003, Mustafa Ali, Halgurt wrote:

> Hallo,
>  
> I want to bind ms access with cocoon, can someone tell me please which
> jdbc version do I have to use? Is ms sql = ms access?
>  
> Thanks for help,
> Halgurt
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: MS Access with cocoon

2003-10-29 Thread Mustafa Ali, Halgurt
Many thanks for you all, I will try it today and tell you if I experience 
difficulties, thanks again.

Halgurt

-Ursprüngliche Nachricht-
Von: Markus Heussen [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 28. Oktober 2003 16:41
An: [EMAIL PROTECTED]
Betreff: AW: MS Access with cocoon

Try



true
jdbc:odbc:{nameOfSystemDSN}
{user}
{password}


{nameOfSystemDSN} has to be configured in you windows datasource management
under system properties pointing to your access database.

Markus

-Ursprüngliche Nachricht-
Von: Antonio Gallardo [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 28. Oktober 2003 16:33
An: [EMAIL PROTECTED]
Betreff: Re: MS Access with cocoon


Mustafa Ali, Halgurt dijo:
> Hallo,
>
> I want to bind ms access with cocoon, can someone tell me please which
> jdbc version do I have to use? Is ms sql = ms access?

Nope. MS SQL and MS Access are 2 diferent beasts, but with the same parent
:-D


For info about how connect a database see:

http://wiki.cocoondev.org/Wiki.jsp?page=SpecificDatabaseConnection

I noted there is no info for MS Access, but I guess you can use the
JDBC-ODBC connector that is shipped with J2SDK.

Best Regards,

Antonio Gallardo




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: dynamic pdf generation

2003-10-29 Thread Derek Hohls



ashish
 
Couple of places to start:
 
Get your database connection configured:
http://wiki.cocoondev.org/Wiki.jsp?page=DatabaseConnectionOverview
 
Recommend you read/try the tutorials from IBM
(you may have to register, but they have some really professional
quality material on their Developerworks site)
http://www-106.ibm.com/developerworks/xml/edu/x-dw-xdbc2-i.html
 
ESQL: http://cocoon.apache.org/2.0/userdocs/xsp/esql.html
 
 
HTH
Derek>>> [EMAIL PROTECTED] 29/10/2003 03:58:12 
>>> hi there, thanx for ur prompt reply, i basically need help 
in first step, i.e. xml output of the database query, i have worked quite a 
bit for later two steps & i know how to do them in cocoon. there 
must be heaps of documentation regarding it but actually i have messed up 
with them and can't find proper info.! ashish On Wed, 29 Oct 
2003, Derek Hohls wrote: > ashish > > Its not clear 
what you need help with - using various > Cocoon and related components 
you will need to: > > 1. query the database and return the results 
as XML (various options) > 2. transform the XML to FO (using XSL) 
> 3. serialize the result as PDF (using FOP) > > All of 
these steps will need to be sequenced in a pipeline (in the > sitemap) 
> > Which of the above do you need help with? > > 
Derek > > >>> [EMAIL PROTECTED] 29/10/2003 
02:49:09 >>> > hi all, > > where can i find 
help/documentation for dynamic pdf generation (by > quering database)? i 
m a newbie & can't get much help regarding this > thing. > 
> ashish > > > 
- > 
To unsubscribe, e-mail: [EMAIL PROTECTED] 
> For additional commands, e-mail: [EMAIL PROTECTED] 
> > > > -- > This message has been scanned 
for viruses and > dangerous content by MailScanner, and is > 
believed to be clean. > Mailscanner thanks transtec Computers for their 
support. > > 
- 
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 
-- 
This message has been scanned for viruses and
dangerous content by
MailScanner, and is
believed to be clean.
Mailscanner thanks transtec Computers for their support.



Re: AW: Cocoon & Design Patterns & EJB

2003-10-29 Thread Leandro Rosa
Tks Canavaggio!!

I know all these books and papers, however I wish to
know if Cocoon (or Avalon) implements the EJB design
patterns (facade, etc)...

Leandro Rosa

 --- Canavaggio Guillaume ZFF PA-K
<[EMAIL PROTECTED]> escreveu: > Hi,
> 
> Article about Cocoon 2.1
>
http://www.developer.com/java/ent/article.php/10933_3098661_1
> 
> Cocoon is implementing:
> - Modell-View-Controller pattern,
> - Separation Of Concern pattern, and many others
> 
> More about Frameworks, Components, Design Patterns:
>
---
> 
> Books about frameworks:
> ---
> Java Frameworks and Components -- Michael Nash --
> Cambridge University Press
> -- ISBN 0-521-52059-2
> Art of Java Web Development: Frameworks and Best
> Practices -- Neal Ford --
> Manning Publications
> 
> Books about Design Patterns:
> 
> Design Patterns, Elements of Reusable
> Object-Oriented Software -- Erich
> Gamma, Richard Helm, Ralph Johnson, and John
> Vlissides (The Gang of Four) --
> Addison-Wesley -- ISBN 0-201-63361-2
> 
> 
> Regards,
> 
> Guillaume Canavaggio
> 
> -Ursprüngliche Nachricht-
> Von: Leandro Rosa [mailto:[EMAIL PROTECTED] 
> Gesendet: Mittwoch, 29. Oktober 2003 13:09
> An: [EMAIL PROTECTED]
> Betreff: Cocoon & Design Patterns & EJB
> 
> 
> Hi All,
> 
> I am investigating Cocoon, but I don't obtain
> answers
> to following questions:
> 
> 1) Does Cocoon implement any Design Pattern? Is this
> feature transparent to user?
> 2) I desire to develop an application with Cocoon
> and
> EJB. Will I have to implement EJB Design Patterns 
> by
> myself? Or, are there Components (Avalon or other)
> that make this integration?
> 3) Anybody knows papers/articles about these
> questions?
> 
> Thanks in advanced,
> 
> Leandro Rosa
> 
> Yahoo! Mail - o melhor webmail do Brasil
> http://mail.yahoo.com.br
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>  

Yahoo! Mail - o melhor webmail do Brasil
http://mail.yahoo.com.br

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: dynamic pdf generation

2003-10-29 Thread Ashish Kumar
hi there,
  thanx for ur prompt reply, i basically need help in first step, i.e.
xml output of the database query, i have worked quite a bit
for later two steps & i know how to do them in cocoon. 
  there must be heaps of documentation regarding it but actually i
have messed up with them and can't find proper info.!

ashish

On Wed, 29 Oct 2003, Derek Hohls wrote:

> ashish
>  
> Its not clear what you need help with - using various
> Cocoon and related components you will need to:
>  
> 1. query the database and return the results as XML (various options)
> 2. transform the XML to FO (using XSL)
> 3. serialize the result as PDF (using FOP)
>  
> All of these steps will need to be sequenced in a pipeline (in the
> sitemap)
>  
> Which of the above do you need help with?
>  
> Derek
> 
> >>> [EMAIL PROTECTED] 29/10/2003 02:49:09 >>> 
> hi all, 
> 
> where can i find help/documentation for dynamic pdf generation (by 
> quering database)? i m a newbie & can't get much help regarding this 
> thing. 
> 
> ashish 
> 
> 
> - 
> To unsubscribe, e-mail: [EMAIL PROTECTED] 
> For additional commands, e-mail: [EMAIL PROTECTED] 
> 
> 
> 
> -- 
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
> Mailscanner thanks transtec Computers for their support.
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Cocoon & Design Patterns & EJB

2003-10-29 Thread Leandro Rosa
Tks David for your shiny answer.

 --- "Carmona Perez, David" <[EMAIL PROTECTED]>
escreveu: > Yes, e.g. the Separation of Concerns
design pattern.
> 
> 
> 
> David
> 
> -Mensaje original-
> De: Leandro Rosa [mailto:[EMAIL PROTECTED]
> Enviado el: miércoles, 29 de octubre de 2003 13:09
> Para: [EMAIL PROTECTED]
> Asunto: Cocoon & Design Patterns & EJB
> 
> Hi All,
> 
> I am investigating Cocoon, but I don't obtain
> answers
> to following questions:
> 
> 1) Does Cocoon implement any Design Pattern? Is this
> feature transparent to user?
> 2) I desire to develop an application with Cocoon
> and
> EJB. Will I have to implement EJB Design Patterns 
> by
> myself? Or, are there Components (Avalon or other)
> that make this integration?
> 3) Anybody knows papers/articles about these
> questions?
> 
> Thanks in advanced,
> 
> Leandro Rosa
> 
> Yahoo! Mail - o melhor webmail do Brasil
> http://mail.yahoo.com.br
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>  

Yahoo! Mail - o melhor webmail do Brasil
http://mail.yahoo.com.br

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Skins in the new Portal Engine

2003-10-29 Thread JACOB, ERIC

Hi all,

What I understand, when you want to create a new skin, you have to write
many XSL files and switch the skin in the portal sitemap with the global
variable:

  
skins/common/
  

But my problem is that I use CSS files to customize my portal with only one
HTML page... So, I don't want to create different XSL for each skin.
Instead, I want to use only one set of XSL files with many CSS. How I can
use the skin mechanism in Cocoon to achieve that?

See the Zen Garden to know what I mean, a demonstration of what can be
accomplished visually through CSS–based design.
http://www.csszengarden.com/

Thank,

Eric Jacob

PS: Sorry, my english is not very good...
 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: dynamic pdf generation

2003-10-29 Thread Kieran Kirwan
Try this



http://cocoon.apache.org/2.1/howto/howto-html-pdf-publishing.html


_
Kieran Kirwan
Executive Transportation Planner
Transportation Modelling Department
 
Dublin Transportation Office
Hainault House,
69/71 St. Stephen's Green,
Dublin 2,
Ireland.
Tel: +353 (0)1 4778113
Fax: +353 (0) 1 478 5935
website: www.dto.ie   
 



-Original Message-
From: Ashish Kumar [mailto:[EMAIL PROTECTED]
Sent: 29 October 2003 12:49
To: [EMAIL PROTECTED]
Subject: dynamic pdf generation


hi all,

where can i find help/documentation for dynamic pdf generation (by
quering database)? i m a newbie & can't get much help regarding this
thing. 

ashish


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
Mail Marshal for the presence of computer viruses.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: dynamic pdf generation

2003-10-29 Thread Derek Hohls



ashish
 
Its not clear what you need help with - using various
Cocoon and related components you will need to:
 
1. query the database and return the results as XML (various options)
2. transform the XML to FO (using XSL)
3. serialize the result as PDF (using FOP)
 
All of these steps will need to be sequenced in a pipeline (in the 
sitemap)
 
Which of the above do you need help with?
 
Derek>>> [EMAIL PROTECTED] 29/10/2003 02:49:09 
>>> hi all, where can i find help/documentation for dynamic 
pdf generation (by quering database)? i m a newbie & can't get much help 
regarding this thing. ashish 
- 
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 
-- 
This message has been scanned for viruses and
dangerous content by
MailScanner, and is
believed to be clean.
Mailscanner thanks transtec Computers for their support.



AW: Cocoon & Design Patterns & EJB

2003-10-29 Thread Canavaggio Guillaume ZFF PA-K
Hi,

Article about Cocoon 2.1
http://www.developer.com/java/ent/article.php/10933_3098661_1

Cocoon is implementing:
- Modell-View-Controller pattern,
- Separation Of Concern pattern, and many others

More about Frameworks, Components, Design Patterns:
---

Books about frameworks:
---
Java Frameworks and Components -- Michael Nash -- Cambridge University Press
-- ISBN 0-521-52059-2
Art of Java Web Development: Frameworks and Best Practices -- Neal Ford --
Manning Publications

Books about Design Patterns:

Design Patterns, Elements of Reusable Object-Oriented Software -- Erich
Gamma, Richard Helm, Ralph Johnson, and John Vlissides (The Gang of Four) --
Addison-Wesley -- ISBN 0-201-63361-2


Regards,

Guillaume Canavaggio

-Ursprüngliche Nachricht-
Von: Leandro Rosa [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 29. Oktober 2003 13:09
An: [EMAIL PROTECTED]
Betreff: Cocoon & Design Patterns & EJB


Hi All,

I am investigating Cocoon, but I don't obtain answers
to following questions:

1) Does Cocoon implement any Design Pattern? Is this
feature transparent to user?
2) I desire to develop an application with Cocoon and
EJB. Will I have to implement EJB Design Patterns  by
myself? Or, are there Components (Avalon or other)
that make this integration?
3) Anybody knows papers/articles about these
questions?

Thanks in advanced,

Leandro Rosa

Yahoo! Mail - o melhor webmail do Brasil http://mail.yahoo.com.br

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Cocoon & Design Patterns & EJB

2003-10-29 Thread Carmona Perez, David
Yes, e.g. the Separation of Concerns design pattern.



David

-Mensaje original-
De: Leandro Rosa [mailto:[EMAIL PROTECTED]
Enviado el: miércoles, 29 de octubre de 2003 13:09
Para: [EMAIL PROTECTED]
Asunto: Cocoon & Design Patterns & EJB

Hi All,

I am investigating Cocoon, but I don't obtain answers
to following questions:

1) Does Cocoon implement any Design Pattern? Is this
feature transparent to user?
2) I desire to develop an application with Cocoon and
EJB. Will I have to implement EJB Design Patterns  by
myself? Or, are there Components (Avalon or other)
that make this integration?
3) Anybody knows papers/articles about these
questions?

Thanks in advanced,

Leandro Rosa

Yahoo! Mail - o melhor webmail do Brasil
http://mail.yahoo.com.br

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: shopping cart : creating a new context

2003-10-29 Thread Matthew Langham
Hi Julien,

I missed the beginning of this thread (just read it in the archive). Before
creating a context to store data in you must create a session for the user.
Check this page for details on the Session action:
http://cocoon.apache.org/2.1/userdocs/actions/session-action.html

You don't need any authentication for this.

HTH

Matthew

> -Original Message-
> From: julien bloit [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 29, 2003 1:04 PM
> To: [EMAIL PROTECTED]
> Subject: Re: shopping cart : creating a new context
>
>
> Thanks Peter,
> Before I dig into the problem a little more, can you tell me if you were
> able to create a session context without any user identification process?
>
> thanks for your help
> Julien
>
> - Original Message -
> From: "Peter Dietz" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, October 29, 2003 1:00 PM
> Subject: RE: shopping cart : creating a new context
>
>
> > Hi,
> >
> > I also had problems creating and accessing session contexts. I solved
> > them using the "session logicsheet". You can find the doc here
> > http://cocoon.apache.org/2.1/userdocs/xsp/session.html
> >
> > Have fun,
> > Peter
> >
> > -Original Message-
> > From: julien bloit [mailto:[EMAIL PROTECTED]
> > Sent: Mittwoch, 29. Oktober 2003 11:59
> > To: [EMAIL PROTECTED]
> > Subject: Re: shopping cart : creating a new context
> >
> > Alright, I'll try it.
> > What do you mean by "experimental"? It's not wise to implement it in a
> > production project for the moment ?
> >
> > - Original Message -
> > From: "leo leonid" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, October 28, 2003 10:22 PM
> > Subject: Re: shopping cart : creating a new context
> >
> >
> >
> > On Oct 28, 2003, at 4:52 PM, julien bloit wrote:
> >
> > > Hi all,
> > >
> > > I want to implement a rather classical type of webapp where the user
> > > browses a catalog, adds items to its shopping cart, and logs in or
> > > registers when he's ready to buy the items from his cart.
> > >
> > > I browsed through the mailing list archive and it seems I could
> > > proceed using the session transformer.
> > >
> > > Here's a snippet of my sitemap :
> > >
> > >
> >
> > 
> >
> >
> > >
> > > Aside from knowing where the error might come from, I'd like to know
> > > if this seems a correct way to proceed to store user data while he's
> > > not logged yet.
> > >
> >
> > If you want to see another (experimental) approach, look at the
> > PetStore Sample. It uses flow script to achieve this functionality. At
> > the moment I'm implementing the missing parts of the sample, using
> > woody as form framework. Expect a patch in the next days.
> >
> > /leo
> >
> >
> >
> > > many many thanks for your thoughts!
> > > Cheers,
> > > Julien
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



dynamic pdf generation

2003-10-29 Thread Ashish Kumar
hi all,

where can i find help/documentation for dynamic pdf generation (by
quering database)? i m a newbie & can't get much help regarding this
thing. 

ashish


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Cocoon & Design Patterns & EJB

2003-10-29 Thread Leandro Rosa
Hi All,

I am investigating Cocoon, but I don't obtain answers
to following questions:

1) Does Cocoon implement any Design Pattern? Is this
feature transparent to user?
2) I desire to develop an application with Cocoon and
EJB. Will I have to implement EJB Design Patterns  by
myself? Or, are there Components (Avalon or other)
that make this integration?
3) Anybody knows papers/articles about these
questions?

Thanks in advanced,

Leandro Rosa

Yahoo! Mail - o melhor webmail do Brasil
http://mail.yahoo.com.br

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: shopping cart : creating a new context

2003-10-29 Thread julien bloit
Thanks Peter,
Before I dig into the problem a little more, can you tell me if you were
able to create a session context without any user identification process?

thanks for your help
Julien

- Original Message - 
From: "Peter Dietz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 29, 2003 1:00 PM
Subject: RE: shopping cart : creating a new context


> Hi,
>
> I also had problems creating and accessing session contexts. I solved
> them using the "session logicsheet". You can find the doc here
> http://cocoon.apache.org/2.1/userdocs/xsp/session.html
>
> Have fun,
> Peter
>
> -Original Message-
> From: julien bloit [mailto:[EMAIL PROTECTED]
> Sent: Mittwoch, 29. Oktober 2003 11:59
> To: [EMAIL PROTECTED]
> Subject: Re: shopping cart : creating a new context
>
> Alright, I'll try it.
> What do you mean by "experimental"? It's not wise to implement it in a
> production project for the moment ?
>
> - Original Message - 
> From: "leo leonid" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, October 28, 2003 10:22 PM
> Subject: Re: shopping cart : creating a new context
>
>
>
> On Oct 28, 2003, at 4:52 PM, julien bloit wrote:
>
> > Hi all,
> >
> > I want to implement a rather classical type of webapp where the user
> > browses a catalog, adds items to its shopping cart, and logs in or
> > registers when he's ready to buy the items from his cart.
> >
> > I browsed through the mailing list archive and it seems I could
> > proceed using the session transformer.
> >
> > Here's a snippet of my sitemap :
> >
> >
>
> 
>
>
> >
> > Aside from knowing where the error might come from, I'd like to know
> > if this seems a correct way to proceed to store user data while he's
> > not logged yet.
> >
>
> If you want to see another (experimental) approach, look at the
> PetStore Sample. It uses flow script to achieve this functionality. At
> the moment I'm implementing the missing parts of the sample, using
> woody as form framework. Expect a patch in the next days.
>
> /leo
>
>
>
> > many many thanks for your thoughts!
> > Cheers,
> > Julien
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: shopping cart : creating a new context

2003-10-29 Thread Peter Dietz
Hi,

I also had problems creating and accessing session contexts. I solved
them using the "session logicsheet". You can find the doc here
http://cocoon.apache.org/2.1/userdocs/xsp/session.html

Have fun,
Peter

-Original Message-
From: julien bloit [mailto:[EMAIL PROTECTED] 
Sent: Mittwoch, 29. Oktober 2003 11:59
To: [EMAIL PROTECTED]
Subject: Re: shopping cart : creating a new context

Alright, I'll try it.
What do you mean by "experimental"? It's not wise to implement it in a
production project for the moment ?

- Original Message - 
From: "leo leonid" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 28, 2003 10:22 PM
Subject: Re: shopping cart : creating a new context



On Oct 28, 2003, at 4:52 PM, julien bloit wrote:

> Hi all,
>
> I want to implement a rather classical type of webapp where the user
> browses a catalog, adds items to its shopping cart, and logs in or
> registers when he's ready to buy the items from his cart.
>
> I browsed through the mailing list archive and it seems I could
> proceed using the session transformer.
>
> Here's a snippet of my sitemap :
>
>




>
> Aside from knowing where the error might come from, I'd like to know
> if this seems a correct way to proceed to store user data while he's
> not logged yet.
>

If you want to see another (experimental) approach, look at the
PetStore Sample. It uses flow script to achieve this functionality. At
the moment I'm implementing the missing parts of the sample, using
woody as form framework. Expect a patch in the next days.

/leo



> many many thanks for your thoughts!
> Cheers,
> Julien


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: i18n problem - doesn't react for directory changes.

2003-10-29 Thread Konstantin Piroumian
From: "Marcin Okraszewski" <[EMAIL PROTECTED]>

> Hi,
> When I change content of i18n catalogue, the page doesn't react for this
> unless I reload webapp. Is there any way to avoid this or to reload i18n
> buffers without reloading webapp?

No, currently it's not implemented.

This can be implemented in XMLResourceBundleFactory and XMLResourceBundle
classes by using the Cocoon standart components caching interfaces. If you
submit a patch then I'll take care of reviewing it and committing it to CVS.

Regards,
  Konstantin Piroumian

>
> Regards,
> Marcin Okraszewski
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



i18n problem - doesn't react for directory changes.

2003-10-29 Thread Marcin Okraszewski
Hi,
When I change content of i18n catalogue, the page doesn't react for this 
unless I reload webapp. Is there any way to avoid this or to reload i18n 
buffers without reloading webapp?

Regards,
Marcin Okraszewski
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: shopping cart : creating a new context

2003-10-29 Thread julien bloit
Alright, I'll try it.
What do you mean by "experimental"? It's not wise to implement it in a
production project for the moment ?

- Original Message - 
From: "leo leonid" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 28, 2003 10:22 PM
Subject: Re: shopping cart : creating a new context



On Oct 28, 2003, at 4:52 PM, julien bloit wrote:

> Hi all,
>
> I want to implement a rather classical type of webapp where the user
> browses a catalog, adds items to its shopping cart, and logs in or
> registers when he's ready to buy the items from his cart.
>
> I browsed through the mailing list archive and it seems I could
> proceed using the session transformer.
>
> Here's a snippet of my sitemap :
>
>




>
> Aside from knowing where the error might come from, I'd like to know
> if this seems a correct way to proceed to store user data while he's
> not logged yet.
>

If you want to see another (experimental) approach, look at the
PetStore Sample. It uses flow script to achieve this functionality. At
the moment I'm implementing the missing parts of the sample, using
woody as form framework. Expect a patch in the next days.

/leo



> many many thanks for your thoughts!
> Cheers,
> Julien


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [HELP]No pipeline matched request:double asterisk does not work ?

2003-10-29 Thread Joerg Heinicke
[EMAIL PROTECTED] wrote:
Hello

Using the double asterisk in a sub sitemap doesn't seem to work:

example:

root sitemap define sub sitemap 'demo'




Must be demo/**, otherwise your URL is not matched by the above match pattern.

Joerg


in sitemap demo define following pipeline:





If I now try to resolve the url
http://localhost:/demo/test/xmldir/test.xml   I get a no pipeline
matched request error.
However define the above pipe in the root sitemap and then resolving the URL
http://localhost:/test/xmldir/test.xml  does work !!
Is this a bug ?  Can I not use the double asteriks pattern in my sub sitemap
?
Any help is welcome.

I'm using cocoon 2.1 / Jetty4.2.9
--
System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [HELP]No pipeline matched request:double asterisk does not work ?

2003-10-29 Thread Gunter D'Hondt

I don't see any use of your first matcher demo/*
Cocoon automatically uses the correct sitemap

The second matcher should be test/*/*.xml
and your generator src becomes {1}/{2}.xml or wherever your input is located

Gunter D'Hondt.



> Hello
> 
> Using the double asterisk in a sub sitemap doesn't seem to work:
> 
> example:
> 
> root sitemap define sub sitemap 'demo'
> 
> 
>src="demo/sitemap.xmap"/>
> 
> 
> in sitemap demo define following pipeline:
> 
> 
>   
>   
> 
> 
> 
> If I now try to resolve the url
> http://localhost:/demo/test/xmldir/test.xml   I get a no pipeline
> matched request error.
> 
> 
> However define the above pipe in the root sitemap and then resolving the URL
> http://localhost:/test/xmldir/test.xml  does work !!
> 
> Is this a bug ?  Can I not use the double asteriks pattern in my sub sitemap
> ?
> 
> Any help is welcome.
> 
> I'm using cocoon 2.1 / Jetty4.2.9
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [HELP]No pipeline matched request:double asterisk does not wo rk ?

2003-10-29 Thread Alten, Jelle Paul (sds-sp)
Wouter,

You have to use the double asterisk in the root sitemap as well, otherwise
it will never get to the subsitemap.

for example, in the root sitemap: 
pattern="demo/*" 
won't match demo/test/xmldir/test.xml, but will match demo/test.xml
So it will never get to the mount, and never enter your subsitemap.

Greetz

Jelle

-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Verzonden: woensdag 29 oktober 2003 11:10
Aan: [EMAIL PROTECTED]
Onderwerp: [HELP]No pipeline matched request:double asterisk does not
work ?


Hello

Using the double asterisk in a sub sitemap doesn't seem to work:

example:

root sitemap define sub sitemap 'demo'





in sitemap demo define following pipeline:







If I now try to resolve the url
http://localhost:/demo/test/xmldir/test.xml   I get a no pipeline
matched request error.


However define the above pipe in the root sitemap and then resolving the URL
http://localhost:/test/xmldir/test.xml  does work !!

Is this a bug ?  Can I not use the double asteriks pattern in my sub sitemap
?

Any help is welcome.

I'm using cocoon 2.1 / Jetty4.2.9




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[HELP]No pipeline matched request:double asterisk does not work ?

2003-10-29 Thread Wouter . DERUYCK
Hello

Using the double asterisk in a sub sitemap doesn't seem to work:

example:

root sitemap define sub sitemap 'demo'





in sitemap demo define following pipeline:







If I now try to resolve the url
http://localhost:/demo/test/xmldir/test.xml   I get a no pipeline
matched request error.


However define the above pipe in the root sitemap and then resolving the URL
http://localhost:/test/xmldir/test.xml  does work !!

Is this a bug ?  Can I not use the double asteriks pattern in my sub sitemap
?

Any help is welcome.

I'm using cocoon 2.1 / Jetty4.2.9




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Cannot serve static binary files

2003-10-29 Thread Joerg Heinicke
J.Pietschmann wrote:
phung.ano wrote:

- In the sitemap i tried other mime types:
application/octet-stream, application/zip (for zip files), aso.


Not implemented yet. Any value in the sitemat (pipeline definition)
is silently ignored.
Register *.jar as application/octet-stream with your servlet
engine, for example by putting it into Cocoons web.xml or
into the the system web.xml.
I wonder why it works in our ConWeb application:


  

  

I can change the mime-type to text/plain and don't get the XUL file 
displayed any longer but the source code in text mode.

It's Cocoon 2.0.4.

Joerg

--
System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: JspGenerator bug?

2003-10-29 Thread Joerg Heinicke
Stefan Kostopoulos wrote:
Hi!

I think the JspGenerator is broken in that it cannot
resolve cocoon:/... type urls in the src attribute.
That's true. You might already have read the following comment in the 
JspGenerator:

// TODO (KP): Should we exclude not supported protocols, say 'context'?

I have looked in the JspGenerator src code and it passes the
path to the jsp to the (tomcat) JSPEngine as a string and since
JSPEngine does not know anything about cocoon:/ it is no
wonder that it won't work, but I am hesitant about hacking the
tomact jsp engine just to make this work.
Not quite correct. It's our JSPEngine. If you used the default configuration 
org.apache.cocoon.components.jsp.JSPEngineImpl is used. But this one can 
also not resolve cocoon:/ or context:// paths. It's also in the JSP block.

What I need to do is to execute a JSP that has dynamically
generated by a XSLT transformation. My idea was to
do the transformation in one pipeline (lets say transformed.jsp)and than
use the JspGenerator like:


Anyone got an idea how to fix JspGenerator or make this work differently?
There were already several threads about fixing source resolving in the 
JspGenerator (resp. JSPReader). The best hints were given by Konstantin in 
this thread: http://marc.theaimsgroup.com/?t=10596731923&r=1&w=2.

I would like to commit any patch you send :-)

Joerg

--
System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: [IMP] Performance problems with TraxTransformer

2003-10-29 Thread Unico Hommes
 

Sylvain Wallez wrote:
> 
> We must refactor the XSLTProcessor so that:
> - it returns a MultiSourceValidity if needed (see in 
> o.a.c.c.source.impl in scratchpad).

I moved it out into repository block in case anybody was wondering where
it went. I moved it with *TraversableGenerator stuff because it looked
like it that was the only place it was being used.

-- Unico

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: session tracking without cookies [NO-SOLUTION?]

2003-10-29 Thread Joose Vettenranta
ke, 2003-10-29 kello 10:21, Joose Vettenranta kirjoitti:
> ti, 2003-10-28 kello 19:08, Joose Vettenranta kirjoitti:
> 
> Hi,
> 
> that solution does work, but ONLY if browser won't use cookies. So, I
> can't use http://host/directory/"; /> If browser
> won't have cookies.

Seems like I can't make it to work how I try it.

Seems like I have to make a new way of thinking of sessions. Maybe
generetion that directory with same id and auth string that I used with
authentication.. Like this:

http://host/{id}.{auth}/

Seems like that is only way to do it with absolute certainly.

- Joose

> And I have like this now:
> 
> > I have like this:
> > 
> >
> > 
> > 
> >  
> >  
> >   > uri="http://host/{session-attr:dir}/";
> > session="true" />
> > 
> > http://host/access-denied.html"; />
> >
> 
> and I have like:
> 
>   
> 
> 
> - Joose
-- 
Joose Vettenranta, Intertechnika Oy
E-Mail: [EMAIL PROTECTED]
WWW: http://www.intertechnika.com/
GSM: 044 561 0270


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Link Livesites: Cocoon 2.1

2003-10-29 Thread Joerg Heinicke
On 29.10.2003 09:57, Hassan Abolhassani wrote:

> Hi Joerg,
> 
> Thanks for the reply. Actually on our staging server we already moved to
> Cocoo 2.1, but the change is not reflecte to our live server. I
> understand that I need to send the change request when we update the
> live site. Am I right?

This would be the easiest thing. It will be updated on our website then.

Joerg

>>Hi
>>
>>Could you please add the following site:
>>
>>Url: Http://www.razorfish.co.jp
>>Cocoon version: 2.1
>>Short description: 
>>  Razorfish Japan provides web services 
>>  that help organizations generate competitive 
>>  advantage by leveraging the power of technology 
>>  and strategy.
>>
>>Regards,
>>Hassan
> 
> 
> Hello Hassan,
> 
> your URL is already added to the live sites list. But not to 2.1 as you
> may expect it, but to 2.0.4
> (http://cocoon.apache.org/link/livesites-2.0.html), because the header
> says that.
> 
> Regards,
> 
> Joerg


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



JspGenerator bug?

2003-10-29 Thread Stefan Kostopoulos
Hi!

I think the JspGenerator is broken in that it cannot
resolve cocoon:/... type urls in the src attribute.
I have looked in the JspGenerator src code and it passes the
path to the jsp to the (tomcat) JSPEngine as a string and since
JSPEngine does not know anything about cocoon:/ it is no
wonder that it won't work, but I am hesitant about hacking the
tomact jsp engine just to make this work.
What I need to do is to execute a JSP that has dynamically
generated by a XSLT transformation. My idea was to
do the transformation in one pipeline (lets say transformed.jsp)and than
use the JspGenerator like:


Anyone got an idea how to fix JspGenerator or make this work 
differently?

Stefan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Link Livesites: Cocoon 2.1

2003-10-29 Thread Hassan Abolhassani
Hi Joerg,
(B
(BThanks for the reply. Actually on our staging server we already moved to
(BCocoo 2.1, but the change is not reflecte to our live server. I
(Bunderstand that I need to send the change request when we update the
(Blive site. Am I right?
(B
(BRegards,
(BHassan
(B
(B
(B> Hi
(B> 
(B> Could you please add the following site:
(B> 
(B> Url: Http://www.razorfish.co.jp
(B> Cocoon version: 2.1
(B> Short description: 
(B>   Razorfish Japan provides web services 
(B>   that help organizations generate competitive 
(B>   advantage by leveraging the power of technology 
(B>   and strategy.
(B> 
(B> Regards,
(B> Hassan
(B
(BHello Hassan,
(B
(Byour URL is already added to the live sites list. But not to 2.1 as you
(Bmay expect it, but to 2.0.4
(B(http://cocoon.apache.org/link/livesites-2.0.html), because the header
(Bsays that.
(B
(BRegards,
(B
(BJoerg
(B
(B___
(B
(BRazorfish Japan, Inc.
(B
$B%"%\%k%O%C%5%K!!%O%C%5%s(B   Hassan Abolhassani  [Technology network]
$B3t<02q

Re: [IMP] Performance problems with TraxTransformer

2003-10-29 Thread Sylvain Wallez
Carsten Ziegeler wrote:

While debugging/profiling a very big application for our customer I found out that the current implementation of the TraxTransformer is slowing down caching!

Why? Well, the caching algorithm asks every sitemap component if the cached content is still valid. The TraxTransformer answers this question by looking if the stylesheet has changed since the last use (time stamp comparison).
So far so good, but you can have imports/includes in your xslt, so the TraxTransformer checks them as well - and this is done by "parsing" the xslt and looking at all includes/imports. This parsing is done, even when the content is fetched out of the cache. 

Due to this mechanism, each stylesheet is parsed on every request (if cached content is used or not) which is in most cases unnecessary. As we didn't use the "use-store" parameter of the xslt transformer this is a real performance problem!
 

Is the reparsing always occuring, even if when "use-store" is "true"? I 
guess not.

This was discussed a while ago, and we have here the combination of two 
bug/deficiencies:

use-store
-
why in hell is use-store to false??? IIRC, it was fist set to true 
because the transient store was actually not transient and tried to 
serialize compiled XSLTs in the persistant store, which failed because 
these objects are not serializable.

Let's switch it to true an ensure the transient store is really transient.

XSLTProcessor
-
This component's design is intrinsically bad from a cache perspective: 
the only way to access validity is through 
getTransformerHandlerAndValidity which always creates the 
TransformerHandler even if we don't use it. Combine this with 
use-store=false, and we end up reparsing the XSL at each call.

As the parsing is very time consuming, delivering a cached content is still "slow". We had figures, where a cached content took 1.5 sec (and producing it from scratch took 1.8 sec).

With the recent changes we are down below 100ms for delivering the cached content! I added a "check-includes" configuration to the TraxTransformer. If you set it to "false" imported stylesheet are not checked for changes for the caching, but you really feel the performance difference.

So, you loose a little bit comfort but gain a lot of performance improvements. And if you use it only for production, it shouldn't be a problem anyway. (The default is "as-is")
 

This way of solving the problem is hacky as it forces to choose between 
speed and auto-reload and will often lead people to either not 
understand why their changes are not taken into account or lead them to 
choose the "secure" way by setting auto-releoad to false.

We must refactor the XSLTProcessor so that:
- it returns a MultiSourceValidity if needed (see in o.a.c.c.source.impl 
in scratchpad).
- getting the validity in the transient store is clearly separated from 
getting the TransformerHandler.

PS: The new feature will be released with 2.1.3 in approx. two weeks.
 

-1.
If you need the optimisation quickly for your customer, please make a 
different class or keep it private until we do the clean refactoring.

Sylvain

--
Sylvain Wallez  Anyware Technologies
http://www.apache.org/~sylvain   http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }
Orixo, the opensource XML business alliance  -  http://www.orixo.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Link Livesites: Cocoon 2.1

2003-10-29 Thread Joerg Heinicke
On 29.10.2003 05:36, Hassan Abolhassani wrote:
> Hi
> 
> Could you please add the following site:
> 
> Url: Http://www.razorfish.co.jp
> Cocoon version: 2.1
> Short description: 
>   Razorfish Japan provides web services 
>   that help organizations generate competitive 
>   advantage by leveraging the power of technology 
>   and strategy.
> 
> Regards,
> Hassan

Hello Hassan,

your URL is already added to the live sites list. But not to 2.1 as you
may expect it, but to 2.0.4
(http://cocoon.apache.org/link/livesites-2.0.html), because the header
says that.

Regards,

Joerg


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Woody question

2003-10-29 Thread Bruno Dumon
On Wed, 2003-10-29 at 02:09, Jim Wu wrote:
> Hi everyone, I have hit on a problem with Woody that I hope you can 
> help with...what I need is to have a widget be required only based on 
> the value of another widget.  Is there anyway to do that within the 
> Woody framework?  Thanks.

It is not possible using the required attribute, since its value is
currently fixed (maybe in the future this will be extended so that you
can put a formula in there). The solution is to make it not-required and
do the necessary checks in custom validation code.

-- 
Bruno Dumon http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
[EMAIL PROTECTED]  [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: session tracking without cookies [NO-SOLUTION?]

2003-10-29 Thread Joose Vettenranta
ti, 2003-10-28 kello 19:08, Joose Vettenranta kirjoitti:

Hi,

that solution does work, but ONLY if browser won't use cookies. So, I
can't use http://host/directory/"; /> If browser
won't have cookies.

And I have like this now:

> I have like this:
> 
>
> 
> 
>  
>  
>   uri="http://host/{session-attr:dir}/";
> session="true" />
> 
> http://host/access-denied.html"; />
>

and I have like:




- Joose
-- 
Joose Vettenranta <[EMAIL PROTECTED]>  GSM: 044 561 0270
* Always remember that you are unique.
  Just like everyone else.*


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: WoodyBinding and form2xml.flow-example question

2003-10-29 Thread Bruno Dumon
On Mon, 2003-10-27 at 19:52, Johannes Becker wrote:
> Hi,
> 
> I wanted to try out and customize the WoodyBinding 
> (http://localhost:/samples/woody/form2xml.flow) example.
> 
> Because I want to write some xml in an existing xml-file I customized this 
> line in the code:
> old: 
> new: 
> 
> What I understood from the wiki-documentation that src="existing external 
> source" and xpath="where to write it in the tree of the external source".

I think you're confused here: the wb:insert-node doesn't modify the file
referenced in the src attribute, and hence the xpath attribute also
doesn't specify where to write it in the external source (what would you
expect it to write there anyway?).

The purpose of wb:insert-node is to insert a new node in the DOM-tree
passed to the form.save(...) method, when a new row is added to a
repeater. The src attribute refers to a file to be used as a template
for what XML should be inserted. The xpath attribute can be used if you
only need a part of that file. Alternatively, you can also specify the
XML directly inline (as in the form2_bind_xml.xml sample).

After the wb:insert-node is executed, the wb:on-bind will also be
executed so that the inserted template XML can be updated with the
necessary values.

-- 
Bruno Dumon http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
[EMAIL PROTECTED]  [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: flowscript access to a widget in a repeater

2003-10-29 Thread Olivier Billard


On 29/10/2003 09:07, Bruno Dumon wrote:

On Tue, 2003-10-28 at 15:28, Olivier Billard wrote:

Hi Nicolas !

The following code should work, to browse your

Repeater transform = (Repeater)form.getWidget().getWidget("transform");
for (var i=0 ; i

the above looks like a mix of Java and Javascript code (var in Java?
typecasts in Javascript?).
It was for flowscript access. You're right, this code was quickly wrote and needed a 
review, (Field -> var, Repeater -> var), but it was to give an overview on how to do this.
I think Nicolas translated it by himself :).

--
Olivier

On 28/10/2003 14:42, Nicolas Maisonneuve wrote:


hy,
my model is :

   Index :
   
   
   
   
   var value = event.source.value;
/* var searchwidget= something to access to my searchwidget in 
the repeater  */

searchwidget.setSelectionList("cocoon:/list?list=search&index=" + 
value);
  
   





 
 Search field:
 
 
  

how acess to my searchfield ?


--

--
Olivier BILLARD


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: flowscript access to a widget in a repeater

2003-10-29 Thread Bruno Dumon
On Tue, 2003-10-28 at 15:28, Olivier Billard wrote:
> Hi Nicolas !
> 
> The following code should work, to browse your
> 
> Repeater transform = (Repeater)form.getWidget().getWidget("transform");
> for (var i=0 ; i  Field searchField = (Field) transform.getWidget(i, "search");
> ... do something with your widget...
> }

the above looks like a mix of Java and Javascript code (var in Java?
typecasts in Javascript?).

If it's flowscript you're using, have a look at woody_flow_example.js
for a more Javascript-like way of doing it:

var model = form.getModel();
var value = model.transform[0].search;

> 
> --
> Olivier Billard
> 
> On 28/10/2003 14:42, Nicolas Maisonneuve wrote:
> 
> > hy,
> > my model is :
> > 
> > Index :
> > 
> > 
> > 
> > 
> > var value = event.source.value;
> >  /* var searchwidget= something to access to my searchwidget in 
> > the repeater  */
> >  
> > searchwidget.setSelectionList("cocoon:/list?list=search&index=" + 
> > value);
> >
> > 
> >  
> >  
> >  
> >  
> >  
> >   
> >   Search field:
> >   
> >   
> >
> >  
> >  
> > how acess to my searchfield ?
> 

-- 
Bruno Dumon http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
[EMAIL PROTECTED]  [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Writing plain text files?

2003-10-29 Thread Stephan Michels


Take a look at "Controlling Whitespace, Part One-Three"

http://www.xml.com/pub/a/2001/11/07/whitespace.html
http://www.xml.com/pub/a/2001/12/05/whitespace.html
http://www.xml.com/pub/a/2002/01/02/whitespace.html

Stephan.

On Tue, 28 Oct 2003, McDonald, Bruce wrote:

> For excellent examples of doing this with XSLT, look at the OReilly XSLT Cookbook.
>
> -Original Message-
> From: Joerg Heinicke [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 28, 2003 12:19 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Writing plain text files?
>
>
> On 28.10.2003 15:44, Jorg Heymans wrote:
>
> > why not write your own transformer ?
>
> At the end it's only a simple stylesheet.
>
> Joerg
>
> > Stephanie Zohner wrote:
> >
> >> Hi,
> >>
> >> I want to write plain text files with Cocoon, What's the best way to do
> >> this?
> >>
> >> The task sounds simple, but for me, it turned out to be quite tricky.
> >>
> >> So far I have tried with the SourceWriteTransformer. However, it still
> >> requires at least a root tag for its output.
> >> Another problem ist, that I need line breaks in my output text file and I
> >> don't know, how to tell the XSLT Processor to do this.
> >>
> >> To make myself a bit clearer:
> >> I would like to turn an XML-fragment like this,
> >>
> >> 
> >>  bla bla bla bla bla bla 
> >>  murmel murmel murmel 
> >> 
> >>
> >> into:
> >>
> >> #-Beginning of text file
> >>
> >> bla bla bla bla bla bla murmel murmel murmel
> >> #-End of text file---
> >>
> >> Does anybody have an idea?
> >>
> >> Thanks,
> >>
> >> Stephanie
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



handle-errors with aggregation

2003-10-29 Thread Justin Makeig
Within a map:handle-errors is it possible to aggregate the ErrorGenerator
document with another document before passing it to a Transformer? I can't
seem to be able to get at the error document except through the
transformation step. Each page that I build (even the error notification)
needs access to a static table of contents document in order to build stuff
like navigation etc.

Thanks,

Justin


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]