RE: Apache i18n problem

2008-10-23 Thread Jasha Joachimsthal
If you serialize it as xml just before the i18n transformation, do you
see a difference in the namespaces in your XML btween the working and
the non working pipeline? Typically the namespace prefix for i18n is
defined as xmlns:i18n="http://apache.org/cocoon/i18n/2.1";
 

Jasha Joachimsthal 
 
[EMAIL PROTECTED] - [EMAIL PROTECTED]
 
www.onehippo.com  
Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam +31(0)20-5224466 
San Francisco - Hippo USA Inc. 101 H Street, suite Q Petaluma CA
94952-3329 +1 (707) 773-4646





From: Mark Lundquist [mailto:[EMAIL PROTECTED] 
Sent: vrijdag 24 oktober 2008 1:53
To: users@cocoon.apache.org
Subject: Re: Apache i18n problem



On Oct 23, 2008, at 8:22 AM, Justice Utete wrote:


Hi,

I'm having a problem with cocoon i18n. I have a
Generator which does some processing then generates XML. I also have
some xls files which are basically for translation and the html styles.
Mt problem is: When i use the deafault file generator,
the pages are translated succesfully but when i use my Generator the
files are not translated at all...

This is what my sitemap looks like













 
   
 
 


This above does not work.

But it works when i change to the following:

 

  
  
  


 
 

   

  


I cant use the second method because I need the data
returned by MyGenerator.


You've tried with one generator where i18n translation doesn't
work, but if you use a different generator, then it does work... right?

So... you've looked at the output from the generator where it
works, and also from the generator where it doesn't work, and they are
different how? :-)


Does anyone know how I can get this to work?



Fix your generator? :-)

But seriously... the i18n transformer transforms XML, and if it
"works" here and "doesn't work" there, then it's probably because the
XML "there" is no good, and you'll really need to have a look at the XML
to find out what's no good about it.  And when you do, in all likelihood
that will point you right toward what you need to fix.

cheers,
-ml-




Re: Apache i18n problem

2008-10-23 Thread Mark Lundquist


On Oct 23, 2008, at 8:22 AM, Justice Utete wrote:


Hi,

I'm having a problem with cocoon i18n. I have a Generator which does  
some processing then generates XML. I also have some xls files which  
are basically for translation and the html styles.
Mt problem is: When i use the deafault file generator, the pages are  
translated succesfully but when i use my Generator the files are not  
translated at all...


This is what my sitemap looks like






value="true"/>






 
   
 
 


This above does not work.

But it works when i change to the following:



  value="true"/>
  value="600"/>
  value="true"/>





value="{locale}"/>


 
 

I cant use the second method because I need the data returned by  
MyGenerator.


You've tried with one generator where i18n translation doesn't work,  
but if you use a different generator, then it does work... right?


So... you've looked at the output from the generator where it works,  
and also from the generator where it doesn't work, and they are  
different how? :-)



Does anyone know how I can get this to work?


Fix your generator? :-)

But seriously... the i18n transformer transforms XML, and if it  
"works" here and "doesn't work" there, then it's probably because the  
XML "there" is no good, and you'll really need to have a look at the  
XML to find out what's no good about it.  And when you do, in all  
likelihood that will point you right toward what you need to fix.


cheers,
—ml—



Apache i18n problem

2008-10-23 Thread Justice Utete
Hi,

I'm having a problem with cocoon i18n. I have a Generator which does some
processing then generates XML. I also have some xls files which are
basically for translation and the html styles.
Mt problem is: When i use the deafault file generator, the pages are
translated succesfully but when i use my Generator the files are not
translated at all...

This is what my sitemap looks like












 
   
 
 


This above does not work.

But it works when i change to the following:



  
  
  






 
 

I cant use the second method because I need the data returned by
MyGenerator.

Does anyone know how I can get this to work?

Regards


Cocoon 2.2 tries to load saxon on Production-environment?

2008-10-23 Thread Edward Smit

Today I tried to deploy a Cocoon 2.2 app which is nothing more than a simple
transform-processor on top of an existing webservice. It has been running
fine on Tomcat on our Test-environment. Today I moved the app to an
identical Production-environment. It first performed poor, than gave me an
internal server error every other request and finally it refused to work at
all. It's the exact same war-file I'm deploying it's the same VM, same
version of Tomcat.
The log-file mentions faillure to load net.sf.saxon.TransformerFactoryImpl,
but I haven't configured my project to use Saxon anywhere. I thought it then
would use Xalan by default, right?
Does anybody have any clue what can be the problem?

TIA
http://www.nabble.com/file/p20134205/problem.log problem.log 
http://www.nabble.com/file/p20134205/sitemap.xmap sitemap.xmap 



-- 
View this message in context: 
http://www.nabble.com/Cocoon-2.2-tries-to-load-saxon-on-Production-environment--tp20134205p20134205.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.


Re: [C2.2] Display Block Information

2008-10-23 Thread Luca Morandini

Matthias Müller wrote:

Hi list,

does someone have an idea how to access block information from within
a xslt stylesheet / jx template / sitemap? my idea is to display the
current version and the blocks name, description, etc. on a special
"about" page. 


Been there, no way to do that (well, not directly):
http://www.mail-archive.com/users@cocoon.apache.org/msg41568.html

My best guess is that the antrun Maven plugin could be used to append at 
build-time block info to the settings (specified in properties files) 
used by Cocoon at run-time.


Regards,


   Luca Morandini
www.lucamorandini.it



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



[C2.2] Display Block Information

2008-10-23 Thread Matthias Müller
Hi list,

does someone have an idea how to access block information from within a xslt 
stylesheet / jx template / sitemap? 
my idea is to display the current version and the blocks name, description, 
etc. on a special "about" page. i know that there's the "mvn site" command, but 
for my concerns it's overloaded. any ideas?

regards, matthias





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



Re: How to get the session attribute in bean

2008-10-23 Thread asif_zzz

Hi Andre ,

Ya i know that.
Just i tried form attribute for a testing purpose only.

My aim is to get the value from session.

I cant understand what Johannes trying to say.

But if we come to know,how to get (FOM) object ,then it is easier to get the
session object.
Rite??

Regards,
Aashik.

-- 
View this message in context: 
http://www.nabble.com/How-to-get-the-session-attribute-in-bean-tp20089416p20128513.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.


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



Re: How to get the session attribute in bean

2008-10-23 Thread Andre Juffer
I am now getting somewhat confused (as Johannes), as to what you intend 
to accomplish. From you last email, I don't see anything like accessing 
your session attribute in your Java class. You now accessing the form 
widget, which is not the same as accessing the session object. You need 
to get to the Session (HttpSession) first to access the requested 
attribute, which is not what you do now.


asif_zzz wrote:

Hi Andre,

You are right.

I can able to get the session object in flow.js
like this

cocoon.session.getAttribute("key");

And i tried with form object,which i got in java bean class

final Form form=event.getSourceWidget().getForm();
String test=form.getAttribute("key").toString();

What is the life time of this form attribute??

Regards,
Aashik.
  



--
Andre H. Juffer  | Phone: +358-8-553 1161
The Biocenter and| Fax: +358-8-553-1141
   the Dep. of Biochemistry | Email: [EMAIL PROTECTED]
University of Oulu, Finland  | WWW: www.biochem.oulu.fi/Biocomputing/
NordProt | WWW: www.nordprot.org


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



Re: How to get the session attribute in bean

2008-10-23 Thread asif_zzz

Hi Andre,

You are right.

I can able to get the session object in flow.js
like this

cocoon.session.getAttribute("key");

And i tried with form object,which i got in java bean class

final Form form=event.getSourceWidget().getForm();
String test=form.getAttribute("key").toString();

What is the life time of this form attribute??

Regards,
Aashik.
-- 
View this message in context: 
http://www.nabble.com/How-to-get-the-session-attribute-in-bean-tp20089416p20128207.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.


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



Re: How to get the session attribute in bean

2008-10-23 Thread Andre Juffer

Johannes Hoechstaedter wrote:

See here:

http://cocoon.apache.org/2.1/userdocs/flow/api.html#session


I think what Aashik meant to ask is how to get to the session inside one 
his own java classes (bean), like:


cocoon.session.setAttribute("key",data);

Some bean (SomeBean.java):

public class SomeBean {
...
 public void someMethod(..)
 {
 Session session = .
 SomeObject someObject = (SomeObject)session.getAttribute("key");
 doSomethingWithSomeObject();
 }
}

I have been struggling with this as well (see previous posting under the 
same topic).


Thanks,
Andre


asif_zzz schrieb:

Hi Johannes,
Please dont mistake me if the query are basic

I'm setting a String value in session attribute

cocoon.session.setAttribute("key",data);
my scenario is get the above session value in bean class.how to get it??

Regards,
Aashik


Johannes Hoechstaedter wrote:
 

Hi Aashik ,

-reply to your mail from today.

I have to confess, that I don't know exactly whats the difficulty is 
in your case. Maybe you can give more details?


If you can get the request object you should be able to set and add 
attributes for your session (as you already do I think).


cheers
Johannes

Johannes Hoechstaedter schrieb:
   
Maybe you will find it already posted in the mailing list. Search 
here:

http://www.mail-archive.com/users@cocoon.apache.org/

Maybe this article is helpful as well:
http://wiki.apache.org/cocoon/InputModules

cheers,
Johannes

asif_zzz schrieb:
 

Hi,
im new to cocoon.
im using cocoon 2.1.10,spring ORM and hibernate.

im setting a session attribute in flowscript(flow.js)

cocoon.session.setAttribute("Instance",instance);


I need to get the above session attibute in bean.
Anyone please tell me how to get it??

Thanks in advance.

Regards,
Aashik

  

-
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]




--
Andre H. Juffer  | Phone: +358-8-553 1161
The Biocenter and| Fax: +358-8-553-1141
   the Dep. of Biochemistry | Email: [EMAIL PROTECTED]
University of Oulu, Finland  | WWW: www.biochem.oulu.fi/Biocomputing/
NordProt | WWW: www.nordprot.org


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



Re: How to get the session attribute in bean

2008-10-23 Thread Johannes Hoechstaedter

See here:

http://cocoon.apache.org/2.1/userdocs/flow/api.html#session

asif_zzz schrieb:

Hi Johannes,
Please dont mistake me if the query are basic

I'm setting a String value in session attribute

cocoon.session.setAttribute("key",data); 


my scenario is get the above session value in bean class.how to get it??

Regards,
Aashik


Johannes Hoechstaedter wrote:
  

Hi Aashik ,

-reply to your mail from today.

I have to confess, that I don't know exactly whats the difficulty is in 
your case. Maybe you can give more details?


If you can get the request object you should be able to set and add 
attributes for your session (as you already do I think).


cheers
Johannes

Johannes Hoechstaedter schrieb:


Maybe you will find it already posted in the mailing list. Search here:
http://www.mail-archive.com/users@cocoon.apache.org/

Maybe this article is helpful as well:
http://wiki.apache.org/cocoon/InputModules

cheers,
Johannes

asif_zzz schrieb:
  

Hi,
im new to cocoon.
im using cocoon 2.1.10,spring ORM and hibernate.

im setting a session attribute in flowscript(flow.js)

cocoon.session.setAttribute("Instance",instance);


I need to get the above session attibute in bean.
Anyone please tell me how to get it??

Thanks in advance.

Regards,
Aashik

  


-
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]