Re: How to running cocoon after lenya installed on my server??

2006-01-10 Thread Antonio Gallardo

zulhisham abu nawar wrote:


tq..my cocoon and lenya are running..
 


Great! :-)

Best Regards,

Antonio Gallardo.


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



Re: How to running cocoon after lenya installed on my server??

2006-01-10 Thread zulhisham abu nawar
On 1/9/06, Antonio Gallardo <[EMAIL PROTECTED]> wrote:
> zulhisham abu nawar wrote:
>
> >i
> >On 1/7/06, Antonio Gallardo <[EMAIL PROTECTED]> wrote:
> >
> >
> >>zulhisham abu nawar wrote:
> >>
> >>
> >>
> >>>How to running cocoon after i already running lenya
> >>>
> >>>
> >>>
> >>>
> >>Can you explain more want you want to do?
> >>
> >>
> >i already installed lenya 1.2.4 with cocoon 2.1.7 and jakarta tomcat
> >5.0.28. So now what should i do to install cocoon and at the same time
> >my lenya can run too.
> >
> >
> Hi,
>
> Please note, that Lenya is developed using Cocoon. Hence, when you run
> Lenya, you have a Cocoon instance running.
> Anyhow the former seems to not be the answer are you expecting, then I
> will suppose you want to have a second cocoon instance running in tomcat.
>
> Then please try to build cocoon as a war file and deploy it into the
> webapp directory of your tomcat installation. To build a cocoon war
> file, run:
>
> ./build.sh war

tq..my cocoon and lenya are running..
>
> More info about deploying cocoon can be found here:
> http://wiki.apache.org/cocoon/BeginnerInstallTomcatUnix
>
> Best Regards,
>
> Antonio Gallardo.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
::)- mister ijoi

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



Re: SQLtransformer gives -1 with ROWCOUNT

2006-01-10 Thread Andrew MacDonald
I realize this reply is over a year late, but I was
having similar problems and believe I've discovered
the reason why.

Around line 1057 of the SQLTransformer is the
following check:

if (query.length() > 6 &&
!query.substring(0,6).equalsIgnoreCase("SELECT")) {
  isupdate = true;
}

Since your query starts with SET ROWCOUNT 200, and not
SELECT, the transformer assumes it's an update. Later
on, around line 1269 is the following:

} else if ( isupdate && !isstoredprocedure ) {
transformer.start( "returncode", attr );
this.serializeData(manager, String.valueOf( rv )
);
transformer.end( "returncode" );
rv = -1; // we only want the return code shown
once.
}

Since isupdate is now true this match is returning all
your 's.  In order to avoid this you'll
have to modify the first check to be more general.

Andrew

>My problem is still there:
>beginning with SET ROWCOUNT 200, the request works on
Sybase >Jsql, but it is failing in the  Cocoon
application, and >returning as many times
-1
>
>I didn't find anything on  the Web nor in the
archives to solve >this.
>Is it a Cocoon request decoding problem?
>
>Please help me!
>
>Matt



__ 
Yahoo! DSL – Something to write home about. 
Just $16.99/mo. or less. 
dsl.yahoo.com 


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



Cocoon hosting

2006-01-10 Thread Goetzmann Bertrand
Title: Cocoon hosting






In order to help someone who seeks a Cocoon web hosting, I can recommand the french web hosting "Althosting" (http://www.althosting.fr/).

As a client I'm running a Cocoon 2.1.8 instance (http://www.object-everywhere.com/) 


Bertrand Goetzmann





Re: AW: AW: Why doesn't this XSL work??

2006-01-10 Thread Geert Josten
Your for-each loops all start with //, which mean that descendants are searched for through the 
entire document for each iteration in each loop. This is not only slow, but most likely explains 
your duplicates.


Make the expressions relative by removing the // and adding some sub-path if necessary, or by adding 
a period in front of the //, e.g. './/etc'.


Cheers

Christian Barth wrote:

Ok, thanks. I got a step further. I mean, I get a result and no error. 




-Ursprüngliche Nachricht-
Von: Geert Josten [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 10. Januar 2006 16:02

An: users@cocoon.apache.org
Betreff: Re: AW: Why doesn't this XSL work??

>

Are you sure this expression results only one wand_id?



This one returns several wand_ids, but I only want to test one of these.
Isn't this correct this way?






You could use: string(.) = string($wand_ID) to be clearer. 
This also takes the first wand_id element from the $want_ID variable..


> data-type="text"/>

Put the sort just below the xsl:for-each open tag. I think 
this error is masking other ones.







Variable names are case sensitive: use $wand_ID instead of $wand_id.



Ok, I didn't see this one.


Cheers,
Geert




The problem now is, that I see the resulting "Trennwand" three times instead
of one time. Mysterious! Maybe a problem with the DB. Or can you find
another mistake?


Barthi


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



AW: AW: Why doesn't this XSL work??

2006-01-10 Thread Christian Barth
Ok, thanks. I got a step further. I mean, I get a result and no error. 

> -Ursprüngliche Nachricht-
> Von: Geert Josten [mailto:[EMAIL PROTECTED] 
> Gesendet: Dienstag, 10. Januar 2006 16:02
> An: users@cocoon.apache.org
> Betreff: Re: AW: Why doesn't this XSL work??
> 
>  >
> 
> Are you sure this expression results only one wand_id?

This one returns several wand_ids, but I only want to test one of these.
Isn't this correct this way?

> 
> > 
> 
> You could use: string(.) = string($wand_ID) to be clearer. 
> This also takes the first wand_id element from the $want_ID variable..
> 
>  >  > data-type="text"/>
> 
> Put the sort just below the xsl:for-each open tag. I think 
> this error is masking other ones.
> 
> >  > select="//[EMAIL PROTECTED]/Wand/Oeffnungs_Liste/Oeffnung">
> 
> Variable names are case sensitive: use $wand_ID instead of $wand_id.

Ok, I didn't see this one.
> 
> Cheers,
> Geert
> 

The problem now is, that I see the resulting "Trennwand" three times instead
of one time. Mysterious! Maybe a problem with the DB. Or can you find
another mistake?


Barthi
> -
> 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: Why doesn't this XSL work??

2006-01-10 Thread Geert Josten

>

Are you sure this expression results only one wand_id?





You could use: string(.) = string($wand_ID) to be clearer. This also takes the first wand_id element 
from the $want_ID variable..


> data-type="text"/>

Put the sort just below the xsl:for-each open tag. I think this error is 
masking other ones.





Variable names are case sensitive: use $wand_ID instead of $wand_id.

Cheers,
Geert

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



AW: Why doesn't this XSL work??

2006-01-10 Thread Christian Barth
> -Ursprüngliche Nachricht-
> Von: Sylvain Wallez [mailto:[EMAIL PROTECTED] 
> Gesendet: Dienstag, 10. Januar 2006 15:08
> An: users@cocoon.apache.org
> Betreff: Re: Why doesn't this XSL work??
> 
> Christian Barth wrote:
> > Hi!
> >
> >
> > I wrote the following XSL-File:
> >  
> > ...
> >  > 
> select="//Bs_Bauteil_Liste/Brandwand_Liste/Brandwand[funktion='Trennwa
> > nd']">   > name="bez" select="bezeichnung" />  > select="Wand_id_Liste/wand_id"/>  > 
> select="//[EMAIL PROTECTED]/Stockwerk_Liste/[EMAIL PROTECTED]
> > ]//bau
> > teil_id">
> > 
> > nTrennwand=nNodeIdx;
> > nNodeIdx++;
> > Note(nTrennwand,nTrennwaende,' > select="$bez"/>','javascript:select(\'wand\', 
> > \'Trennwand\',, > select="$stock_ID"/>)','wand')
> >  
> >  > select="//[EMAIL PROTECTED]/Wand/Oeffnungs_Liste/Oeffnung">
> > ...
> >
> > It's just a part of the file. But the rest is working. My 
> Problem is 
> > the . Is there anything wrong with it? It's always true.
> > When I write  and  select="$wand_ID"
> > />, the values are correct. I don't understand this.
> >   
> 
> This because this tests compares the string values of 
> elements. So if they happen to have the same content or be 
> both empty, the test will be true. If you want to test these 
> are the same nodes, you can use
>   
> 

I want to compare the string values. So the test should be correct, right?


> > Another problem is that when I remove the -Tag I get an 
> > "Unable to get transformer handler"-error.
> > I thought the sort-Tag is optional, isn't it?
> >   
> 
> Yep. Now I can't see a closing . Is it somewhere 
> down the XSL?
> 

Here is the complete for-each-code:







nTrennwand=nNodeIdx;
nNodeIdx++;
Note(nTrennwand,nTrennwaende,'','javascript:select(\'wand\', 
\'Trennwand\',,)','wand')



nNodeIdx++;
nOeffnung=nNodeIdx;
Note(nOeffnung,nTrennwand,'Tuer
','javascript:select(\'oeffnung\', 
\'Tuer\',)','tuer')
nNodeIdx++;


nNodeIdx++;
nOeffnung=nNodeIdx;
Note(nOeffnung,nTrennwand,'Fenster
','javascript:select(\'oeffnung\', 
\'Fenster\',)','fenster')
nNodeIdx++;


   




I hope this helps. This is the working code. When I remove the sort-tag I
get the error I mensioned before


Barthi


> Sylvain
> 
> -- 
> Sylvain WallezAnyware Technologies
> http://bluxte.net http://www.anyware-tech.com
> Apache Software Foundation Member Research & Technology Director
> 
> 
> -
> 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: error : setState is not a function

2006-01-10 Thread Sylvain Wallez

Myriam Delperier wrote:

| | but I receive an error :
| | at (resource://org/apache/cocoon/forms/flow/javascript/Form.js, Line
| | 165):
| |
| | TypeError: setState is not a function
| |
| | does somebody know where my problem is?

ok my pb was that i'm working with cocoon 2.1.5.
Is there a way to make a widget become "ouput", once a value has 
already been given, with cocoon 2.1.5 ?


IIRC, the widget state feature was added in Cocoon 2.1.6. So the only 
option is to upgrade your Cocoon...


Sylvain

--
Sylvain WallezAnyware Technologies
http://bluxte.net http://www.anyware-tech.com
Apache Software Foundation Member Research & Technology Director


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



Re: form datatype locale formatting

2006-01-10 Thread Sylvain Wallez

christian bindeballe wrote:

hello,

I would appreciate any hints as to how to enhance this form definition 
file. right now it reads the date from a file where it is formatted 
01/09/06 (as for january the 9th 2006) and displays it as 09.01.06


the widget definiton file reads likes this (excerpt)


  

  dd.MM. 


  


I would like to have it formatted in the form as 09.01.2006, how do I 
accomplish that? this concerns only the way the date is displayed in 
the form. the data can later be written to the file as 01/09/06.


when displaying the file using xslt I would like it to be shown as 
09.01.2006 again... difficult?


You can (and should) specify different formats in the definition file 
and in the template file. This is probably what you're looking for.


Sylvain

--
Sylvain WallezAnyware Technologies
http://bluxte.net http://www.anyware-tech.com
Apache Software Foundation Member Research & Technology Director


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



Re: Check if sitemap will match.

2006-01-10 Thread Sylvain Wallez

Felix Röthenbacher wrote:

Hi

Is it possible to check programmatically if a request will be matched in
a sitemap, e.g. "cocoon://test/test.html"? I tried to use the
SourceResolver but resolving a URL for a non-existing pipeline
returns a source and calling source.exists() returns true.


This is unfortunately a known bug. There's an exception raised if you 
try to access the source's inputstream though.


Sylvain

--
Sylvain WallezAnyware Technologies
http://bluxte.net http://www.anyware-tech.com
Apache Software Foundation Member Research & Technology Director


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



Re: Why doesn't this XSL work??

2006-01-10 Thread Irv Salisbury
There is something wrong here.  When I look at your code, it is
hard to figure out because there are no ending tags for your for-each
statements.  So, it is hard to know if you are in a nested
for-each or not.  Also, the xsl:sort only works when it is the
first child of an apply-templates or for-each.  Your xsl:sort is
in a place that should give an error.  Did you just type in this
snippet, or is this really what your file looks like?  If you can
resend with appropriate end tags, etc it would be easier to figure
out.  

IrvOn 1/10/06, Christian Barth <[EMAIL PROTECTED]> wrote:
Hi!I wrote the following XSL-File:...select="//Bs_Bauteil_Liste/Brandwand_Liste/Brandwand[funktion='Trennwand']">
select="//[EMAIL PROTECTED]/Stockwerk_Liste/[EMAIL PROTECTED]//bau
teil_id">nTrennwand=nNodeIdx;nNodeIdx++;Note(nTrennwand,nTrennwaende,'select="$bez"/>','_javascript_:select(\'wand\',
\'Trennwand\',,select="$stock_ID"/>)','wand')
select="//[EMAIL PROTECTED]/Wand/Oeffnungs_Liste/Oeffnung">...It's just a part of the file. But the rest is working. My Problem is the. Is there anything wrong with it? It's always true.
When I write  and />, the values are correct. I don't understand this.Another problem is that when I remove the -Tag I get an "Unable to
get transformer handler"-error.I thought the sort-Tag is optional, isn't it?Greets,Barthi-To unsubscribe, e-mail: 
[EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]



Re: Why doesn't this XSL work??

2006-01-10 Thread Sylvain Wallez

Christian Barth wrote:

Hi!


I wrote the following XSL-File:
 
...







nTrennwand=nNodeIdx;
nNodeIdx++;
Note(nTrennwand,nTrennwaende,'select="$bez"/>','javascript:select(\'wand\', 
	\'Trennwand\',,
select="$stock_ID"/>)','wand')


...

It's just a part of the file. But the rest is working. My Problem is the
. Is there anything wrong with it? It's always true.
When I write  and , the values are correct. I don't understand this.
  


This because this tests compares the string values of elements. So if 
they happen to have the same content or be both empty, the test will be 
true. If you want to test these are the same nodes, you can use

 


Another problem is that when I remove the -Tag I get an "Unable to
get transformer handler"-error.
I thought the sort-Tag is optional, isn't it?
  


Yep. Now I can't see a closing . Is it somewhere down the XSL?

Sylvain

--
Sylvain WallezAnyware Technologies
http://bluxte.net http://www.anyware-tech.com
Apache Software Foundation Member Research & Technology Director


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



Re: [Cocoon-Users] Re: Hibernate in Cocoon

2006-01-10 Thread Irv Salisbury
>From what I have seen, the typical way people have used Hibernate is the following:

1. Javaflow or flowscript gets the initial call
2. All the request parameters, etc are all dealt with in flow
3. Hibernate is used from within flow to deal with the business request
4. When the request is processed, java objects representing the result are passed to the jxtemplate generator
5. Normal cocoon pipeline processing (jxtg, xsl, etc) are used to send final result

IrvOn 1/9/06, David Kavanagh <[EMAIL PROTECTED]> wrote:



  
  


FWIW, You can probably get more mileage out of a transformer. That way,
you can pass config information into it via the pipeline, which would
allow you to configure it via request params more easily. I've bene
this route with Excel input and ended up with a transformer because it
was a lot more flexible. Imagine, you can also throw it anyplace in
your pipeline and have it operate on just the namespace it uses. (I'm
sure others have said it better...)

However, in my case (and after looking at the cocoon-hibernate
tutorial), we've decided to bypass cocoon in favor of our own SQL
Transformer (which is quite a bit different and more advanced than the
stanard cocoon one). We just didn't need the caching and lazy loading
that hibernate would have provided. We need to drive an AJAX tree view
of a tree data structure.

David

Thus Spoke Beat De Martin:

  David Kavanagh wrote:  
  
Has anyone interfaced with Hibernate in a pipeline? Did you write a transformer, call JavaFlow or something else?I'm thinking of using the Hibernate XML export feature to load objects into my pipeline (inside a transformer). I'd certainly appreciate 
hearing about any existing work in this area.
  
  I'd like to do the same. I may do it with a generator.ByeBeat De Martin  







Why doesn't this XSL work??

2006-01-10 Thread Christian Barth
Hi!


I wrote the following XSL-File:
 
...






nTrennwand=nNodeIdx;
nNodeIdx++;
Note(nTrennwand,nTrennwaende,'','javascript:select(\'wand\', 
\'Trennwand\',,)','wand')


...

It's just a part of the file. But the rest is working. My Problem is the
. Is there anything wrong with it? It's always true.
When I write  and , the values are correct. I don't understand this.

Another problem is that when I remove the -Tag I get an "Unable to
get transformer handler"-error.
I thought the sort-Tag is optional, isn't it?

Greets,
Barthi


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



form, add elements

2006-01-10 Thread christian bindeballe

hello all,

I have this form which is saved to a file after data has been filled in.
there are dates filled in the form, which I would like to have 
internationalized. so in the XML-file that is saved, how do I get these 
tags inserted before saving?


locale="de-DE">


if I put them in the template I either get an EmptyStackException from 
within the jx-macros.xml or the tags are output in the form as well... 
which I don't want.


if any of you know a way, don't hesitate to answer ;)

thanks in advance

christian

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



Re: Loading Java Classes through FlowScript

2006-01-10 Thread Philippe Gassmann

mike rowse a écrit :

Hey. 


I am not a java programmer generally (although I understand enough
syntax to be able to get by). I am currently starting to learn how to
extend cocoon through additional java programming (as I'm going to have
to wrap some one elses java work to be used through cocoon).

With this in mind I have created a simple class that I wanted to load
through flowscript to get going. 


class TestKlazz {
  public TestKlazz(){
// Tried with this line and without
// System.out.println("initialized");
  }
}

This class has been compiled and placed in
$COCOON/build/webapp/WEB-INF/classes

In flowscript I've called this function 


function testj(){
var test_obj = Packages.TestKlazz();
cocoon.sendPage("/");
}

 


You need to instantiate your class by using

var test_obj = new Packages.TestKlazz();


Upon navigating to the pipeline that calls this function I get the
error.

org.mozilla.javascript.EvaluatorException:
"file:/home/sator/mike/work/hyperpo/trunk/hyperpo/controller/hyperpocontroller.js", line 84: 
Internal error: attempt to access private/protected field "Class org.mozilla.javascript.NativeJavaClass 
can not access a member of class TestKlazz with modifiers "public"".

I will post the stacktrace if this might help. The machine I'm using is
running cocoon 2.1.8 and the JVM is version 1.4.2 - 03

I have tried playing with the class loader setting in web.xml and I have
tried setting cocoon to run as a paranoid servlet. This is a very
bizarre error (for such a simple class) and I can't find any mention of
a similar problem on any of the mailing lists. The kind folks on IRC
were also baffled (since this is seems to be very frequently done). 


I'm guessing there is something conceptually missing on my part or a
dumb gotcha. Any help is greatly appreciated. 


Thanks,
Mike



As an aside. Originally I was trying to run this class from a location
outside of the usual locations (a need of the project). I was able to
get the same error adding another directory through setting a
 parameter in cocoon.xconf (for the flowscript).
I stumbled upon this way of adding classes to the flowscript classpath
through documentation for old versions of cocoon and there is no mention
as far as I can see in the current documentation. I thought I'd mention
this because it was the only way I extend the flowscript classpath but
it seems like a deprecated way of doing things. 




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

 




--
Philippe GASSMANN
Systèmes d'Information
ANYWARE TECHNOLOGIES
Tel : +33 (0)5 61 00 52 90
Fax : +33 (0)5 61 00 51 46
http://www.anyware-tech.com/


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