Best Practice Woody + Database ?
Is anybody can tell me more about best practices in associating Woody and Database create/updates ? Seems that the choice is between : 1. ModDB actions + Woody without flowscript but actions 2. XSP/ESQL + Woody with flowscript Sorry for inconvenience if this is trivial, associating these 2 blocks is so useful and not much discussed here. Any example welcomed! Thanks -- Phil
Sample JDO with Woody Binding + autoincrementation
Hi, I tried to adapt the sample OJB/JDO/Woody to my auto-incrementation needs for inserts, but i've got no idea how to proceed. I think both bean and form should not have any id for employee then ojbEmployee.insert function should call a class that ask the next id for next row to insert,but i'm a newbie... So if somebody's got an idea or did it before... Thanks (also for my last request!) Phil What i did, still : 1.Added auto-increment in repository.xml for EMPLOYEE table : 2.Calling ojbEmployee.insert instead of ojbEmployee.update in employee.js 3nd. Then i should modify ojbEmployee.insert with some AutoIncJdbcKeyGenerator Class, if Sun jdo supports it? Sure if i remove the employee id from form, bean and java functions, employee object is not persistence capable anymore :-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: cocoon authentication and database access
JD and Flavio, I found interesting these lines you sent to generate a user XML file for the auth-handler.I tested XSP generation in a separate sample to guaranty i have the right result needed by the auth handler (i suggest Flavio to do this cause i think your code doesn't render exactly this) : any_value guest But i still have a big problem : i'm still really bad with parameters and the data entered in the login is not passed to my XSP/ESQL. Can you tell me how you wrote your sitemap or tell me what is wrong in mine ? May Tanks ! Phil - This is mine, the sunrise part : And this is my XSP esql.xsp : --- http://apache.org/xsp"; xmlns:esql="http://apache.org/cocoon/SQL/v2";> xmlns:xsp-request="http://apache.org/xsp/request/2.0"; xmlns:util="http://apache.org/xsp/util/2.0"; > goother select id,email from member where email= guest and this is my sql2html.xsl - http://www.w3.org/1999/XSL/Transform"; xmlns:sql="http://apache.org/cocoon/SQL/2.0";> On Wed, 2004-02-04 at 06:22, JD Daniels wrote: > I believe the list frowns upon attachments :-) > > It doesn't matter what you use to generate your user xml. As long as it has > the required and elements, the auth-fw can use it. The > sample uses xsl transformations, and i use a simple xsp with esql. > This makes a bunch of assumptions... ie i have a table for users, and a > table for roles. you need a connection pool set up in cocoon.xconf, and you > have some method of adding users and roles to your database. The write > source at the end is just how i log people logging in. > > > xmlns:xsp="http://apache.org/xsp"; > xmlns:esql="http://apache.org/cocoon/SQL/v2"; > xmlns:xsp-request="http://apache.org/xsp/request/2.0"; > xmlns:xsp-session="http://apache.org/xsp/session/2.0"; > create-session="true" > xmlns:source="http://apache.org/cocoon/source/1.0"; > xmlns:util="http://apache.org/xsp/util/2.0"; > > > > > dtmanager > > > SELECT > users.id, > users.firstName, > users.lastName, > users.emailAddress, > roles.id AS roleid, > roles.name AS role > FROM users > LEFT JOIN roles ON (users.role=roles.id) > WHERE > userName='' > AND > password='' > AND active='Yes' > LIMIT 1 > > > > > > > name="userId"> > name="userRole"> > name="userFirstName"> column="firstName"/> > name="userLastName"> column="lastName"/> > name="userEmail"> column="emailAddress"/> > > > column="firstName"/> > column="lastName"/> > > > > > context://module-files/auth/stats/ format="/MM/dd"/>.xml > /log > > > > > name="user-agent"/> > > > > > name="userFirstName"/> > name="userLastName"/> > > > Error > Results > > > > > context://module-files/auth/stats/ format="/MM/dd"/>.xml > /log > > > > > name="user-agent"/> > > > > > name="userFirstName"/> > name="username"/> > > > > > > > > > > > > -Original Message- > From: Flavio Palumbo [mailto:[EMAIL PROTECTED] > Sent: 2004-02-03 12:52 AM > To: [EMAIL PROTECTED] > Subject: RE: cocoon authentication and database access > > > Hi JD, > > could you please send the same samples to me (or maybe to the list) ? > > I have just depeloped something like this founding some problems not > completely > solved ; i'd like to compare my code with yours. > > Thanks a lot > > Flavio > > > > I know exactly what you mean :-) > > I'll send you a sample xsp file
Re: cocoon authentication and database access
Many thanks JD & Flavio, Actually i've been on this for 2 days! I tried all combinations in the esql : and and i removed the xsl transformation that i added before. The point is that my DB doesn't receive the request, but is connected (the access in DB is made if i hard code a real login like this "where email='toto'"). My inputs are named name and password cause i use the original login page.Should i? So i definitly think i don't pass the paramter name to the generator in the sitemap : I used original auth-fw components, since i work on the Portal samples of 2.1.3 and 2.1 cvs without changes. (In 2.1.4 sample my work interferes maybe with anonymous authentication since the portal now shows a part without login and i have a popup alert like this when i launch the portal : " Redirection limit for this URL exceeded. Unable to load the requested page.This maybe caused by cookies that are blocked"). Thanks for help! Phil On Fri, 2004-02-06 at 16:33, JD Daniels wrote: > I would not try to pass the xsp through an xsl transformation.. it is > not needed. just serialize the xsp as xml... > > > > > > > If you have no database results, the empty is all thats > needed to fail a login attempt. > > That said, I use woody and flow, but here is the relevant snippet: > > > > > > > > > value="{request:username}"/> > value="{request:password}"/> > > > > > > > > This assumes your form inputs are named username and password. > > Also, I notice you are using the sunrise components. I do not how many > changes have been made, but this may be a factor. I use the auth-fw > components from the current 2.1 cvs head. > > JD > > Philippe Guillard wrote: > > JD and Flavio, > > > > I found interesting these lines you sent to generate a user XML file for > > the auth-handler.I tested XSP generation in a separate sample to > > guaranty i have the right result needed by the auth handler (i suggest > > Flavio to do this cause i think your code doesn't render exactly this) : > > > > > > any_value > > guest > > > > > > > > But i still have a big problem : i'm still really bad with parameters > > and the data entered in the login is not passed to my XSP/ESQL. Can you > > tell me how you wrote your sitemap or tell me what is wrong in mine ? > > > > May Tanks ! > > > > Phil > > > > > > - > > > > This is mine, the sunrise part : > > > > > > > > > > > > > > > > > > > > > > > > > > > value="{request:servletPath}"/> > > > value="{request:sitemapURI}"/> > > > value="{request:contextPath}"/> > > > > > > > > > > > > > > > > And this is my XSP esql.xsp : > > --- > > > > > > > > > > > > > xmlns:xsp="http://apache.org/xsp"; > > xmlns:esql="http://apache.org/cocoon/SQL/v2";> > >xmlns:xsp-request="http://apache.org/xsp/request/2.0"; > >xmlns:util="http://apache.org/xsp/util/2.0"; > > > > > > > > > > > goother > > > > select id,email from member where > > email= > > > > > > > > guest > > > > > > > > > > > > > > > > > > > > > > > > and this is my sql2html.xsl > > - > > > > > > > > > xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; > > > > xmlns:sql="http://apache.org/cocoon/SQL/2.0";> > > > > > > > > > > > > > > > > > > > > > >
Sendmail logicsheet & internationalization
Hi, I've got a problem to internationalize my sendmail : I use a Woody form, then XSP logicsheet as in the sendmail sample, where i get the values entered by woody and add some text that i need to be internationalized to compose the body of the mail. I can't use i18n transformer as the mail seems to be sent during the XSP generation. Then i planned to do some logic with if statements on the locale. Below is what i plan to do but i can't get the locale value...I'm thinking also about doing this in flow. Any suggestion or method is welcomed ! Phil -- // (THIS IS NOT CORRECT) getLocale(locale); if (locale = "en_US") { String bodymessage = "Message.in any language"; } } else { String bodymessage = "Message in English"; } bodymessage - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Woody and database
Bert, I'm a newbie, but for what i checked myself with my mysql: -Woody+ModDB Actions are easy to implement but not so robust -Woody+JDO+Flow more complicated but more robust. Advantage you can have flow. - I use ESQL to read So i plan to use the 3 ! Phil On Sat, 2004-02-14 at 06:24, Bert Van Kets wrote: > Hi all, > I'm using mySQL and Cocoon 2.1.4 and have to start creating a bunchload of > web forms. > What is the best way to connect a database to Woody? I checked out the OJB > block, but find it a bit cumbersome for complex forms. > Any suggestions? > > Bert > > > > - > 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]
Woody in portal engine coplet
Hi all, Is anybody can link me to some doc or tell how to integrate Woody in a Coplet/Portlet? I could say generally any sitemap with actions, flow... I use the Portal engine (should i use portal framework?), and globally i only manage to run correctly full XSP samples, for actions like woody-handle-form-submit or anything with actions and flow i have the first view and the rest of my sitemap is not processed. Should i define a pipeline coplet type instead of uri in portal/profiles/copletdata/portal.xml? Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Woody in portal engine coplet Help!
Hi all, I was confused in my last mail... I succeeded to plug quite any sample from r 2.1.4 in a portal engine coplet (type uri), except Woody (with or without flow). It seems to come from the design of the sitemap used. Is anybody can tell me how to integrate woody in a coplet or send me a sitemap example? Phil On Sat, 2004-02-14 at 21:41, Philippe Guillard wrote: > Hi all, > > Is anybody can link me to some doc or tell how to integrate Woody in a > Coplet/Portlet? I could say generally any sitemap with actions, flow... > > I use the Portal engine (should i use portal framework?), and globally i > only manage to run correctly full XSP samples, for actions like > woody-handle-form-submit or anything with actions and flow i have the > first view and the rest of my sitemap is not processed. > > Should i define a pipeline coplet type instead of uri in > portal/profiles/copletdata/portal.xml? > > > Phil > > > - > 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]
OpenOfficeGeneration
Hi all, Help about wiki page on OpenOfficeGeneration made by Yves Vindevogel. My trouble is that cocoon renders my sxw files in plain text without styling. My question is: Where is made the link to the DTDs in /resources/entities ? Don't find any in xsl stylesheets and pipeline presented and i suppose this is what i'm missing. Note1: i copied the oo DTDs from windows since i was not able to find them on my linux, and compared to what is said in the wiki page, i don't have any catalog file :-( Note2: i tried html.oowriter.xsl and standard oo transformation. Thanks Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OpenOfficeGeneration
Thanks all. On Fri, 2004-02-27 at 21:44, Zamek wrote: > Hello All, > > I am new in Cocoon, but I have a working OO solving. > > my sitemap.xmap snippet is: > > > > > > > > > > > > > value="zip://[EMAIL PROTECTED]"/> > > > > > > > my ooo2html.xsl is: > > > xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; > xmlns:fo="http://www.w3.org/1999/XSL/Format"; > xmlns:xlink="http://www.w3.org/1999/xlink"; > xmlns:svg="http://www.w3.org/2000/svg"; > xmlns:office="http://openoffice.org/2000/office"; > xmlns:style="http://openoffice.org/2000/style"; > xmlns:text="http://openoffice.org/2000/text"; > xmlns:table="http://openoffice.org/2000/table"; > xmlns:draw="http://openoffice.org/2000/drawing";> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >select="@xlink:href" /> > > select="@office:target-frame-name" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >src="{$doc_name}/{substring-after(@xlink:href,'#Pictures/')}"/> > > > > > > > > > select="//style:[EMAIL PROTECTED]:name=$style-name]/style:properties/@*" > mode="style" /> > > > > > > > > : select="." />; > > > > text-align:left; > text-align:center; > text-align:right; > text-align:justify; > > > > > > font-family: select="local-name()" />; > > > > text-decoration:underline; > > > > text-decoration:line-through; > > > > text-decoration:blink; > > > > background-color: select="." />; > > > > border-width:; > > > > > border-top-width: select="." />; > > > > border-bottom-width: select="." />; > > > > border-left-width: select="." />; > > > > border-right-width: select="." />; > > > > > > > > > > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Coplets in cocoon
I had the same problem on tuesday, and the problem was solved when i used this http://wiki.cocoondev.org/Wiki.jsp?page=WoodyCopletForPortalEngine check new "New way". Use temporary:application-uri instead of uri. Works perfectly except javascript in the woody form like showPopup function or ctyselector sample stuff not launched from the coplet, so in case you or somebody nows how to manage that let me know! Phil On Tue, 2004-03-02 at 23:50, [EMAIL PROTECTED] wrote: > Hi Anna, > It's right, that both forms get executed. If you study the example I > sent, you see that the decision which form would be executed, is made > by a parameter that sits in the session (and is written to the session > by the script). > So it's the same with your forms. Both will be executed. But you will > need one parameter - could be a hidden field - which you check in the > coresponding xsp. Than you know if the xsp needs to be executed. > > So the conclusion is, you have to care for it on your own, that the > right form (and coresponding script) get executed. > I hope this helps. > > regards, > Nicole - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
esql:get-string and java String
Hi, I found in [EMAIL PROTECTED] archives somebody having the same problem that i have today, and i don't understand the response given here (Do not know how to replace "CDATA" and "cd_formula"). Can anybody help me? Regards, Phil esql:get-string and java String Gabor Bartha [EMAIL PROTECTED] Tue, 01 Oct 2002 11:13:52 +0200 * Previous message: Sitemap returning blank html page * Next message: esql:get-string and java String * Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] Hi, the java code: String formula = xspAttr.addAttribute( "", "column", "column", "CDATA", "cd_formula" ); this.contentHandler.startElement( "http://apache.org/cocoon/SQL/v2";, "get-string", "esql:get-string", xspAttr ); xspAttr.clear(); this.contentHandler.endElement( "http://apache.org/cocoon/SQL/v2";, "get-string", "esql:get-string" ); ; If I try to use double () like this: String formula = ((String)); I got ')' expected error, the source in this case: String formula = ((String) xspAttr.addAttribute( "", "column", "column", "CDATA", "cd_formula" ); this.contentHandler.startElement( "http://apache.org/cocoon/SQL/v2";, "get-string", "esql:get-string", xspAttr ); xspAttr.clear(); this.contentHandler.endElement( "http://apache.org/cocoon/SQL/v2";, "get-string", "esql:get-string" ); ); Regards, Gabor Christian Haul wrote: >On 30.Sep.2002 -- 05:12 PM, Gabor Bartha wrote: > > >>Hi,>> >>I want to use the esql:get-string method to initialize a java String >>object like this:>> >> >> String formula = ; >> >> >>But I got incompatible types exception. If I tried to use casting: >> >> >> String formula = (String); >> >> >>I got inconvertible types Exception.>> >>How can I use that variable as a java String object? >> >> >>I'm puzzled. Could you please post the lines from the resulting java>code generated >>by the XSP?>> Chris.>-->C h r i s t i a n H a u l>[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OpenOfficeGeneration
Hi Zamek, Sorry to bother you, can you tell me or send what is nomenu.xml mentioned in your response below ? Your xsl looks good and i become lazy! Thanks. Phil On Fri, 2004-02-27 at 21:44, Zamek wrote: > Hello All, > > I am new in Cocoon, but I have a working OO solving. > > my sitemap.xmap snippet is: > > > > > > > > > > > > > value="zip://[EMAIL PROTECTED]"/> > > > > > > > my ooo2html.xsl is: > > > xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; > xmlns:fo="http://www.w3.org/1999/XSL/Format"; > xmlns:xlink="http://www.w3.org/1999/xlink"; > xmlns:svg="http://www.w3.org/2000/svg"; > xmlns:office="http://openoffice.org/2000/office"; > xmlns:style="http://openoffice.org/2000/style"; > xmlns:text="http://openoffice.org/2000/text"; > xmlns:table="http://openoffice.org/2000/table"; > xmlns:draw="http://openoffice.org/2000/drawing";> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >select="@xlink:href" /> > > select="@office:target-frame-name" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >src="{$doc_name}/{substring-after(@xlink:href,'#Pictures/')}"/> > > > > > > > > > select="//style:[EMAIL PROTECTED]:name=$style-name]/style:properties/@*" > mode="style" /> > > > > > > > > : select="." />; > > > > text-align:left; > text-align:center; > text-align:right; > text-align:justify; > > > > > > font-family: select="local-name()" />; > > > > text-decoration:underline; > > > > text-decoration:line-through; > > > > text-decoration:blink; > > > > background-color: select="." />; > > > > border-width:; > > > > > border-top-width: select="." />; > > > > border-bottom-width: select="." />; > > > > border-left-width: select="." />; > > > > border-right-width: select="." />; > > > > > > > > > > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Javascript in Woody in Coplets
Hi all, Since i put my Woody forms in portal coplets, i discovered the Javascripts included in my forms are not processed. Example: this is the case of the showPopup for the Woody wi:help or javascript on used in selection-lists (carselector sample). Is anybody has an idea to generate the right event for the portal? Regards, Phil PS : endProcessing method should be ok, but my javascript is not runned.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Javascript in Woody in Coplets
Thanks all! On Wed, 2004-03-10 at 18:52, Reinhard PÃtz wrote: > Nacho Jimenez wrote: > > > Jan Hoskens wrote: > > > >> I'm not sure you mean this, but I'll give it anyway: > >> > >> If you're using woody and thus the woody stylesheet, there are several > >> javascripts that are added (eg the popup window). These javascripts > >> are to > >> be added in your html header and thus the woody stylesheet looks for > >> that > >> tag .. to put the script tags there and more. (there > >> might > >> also be some div function as for the calendar popup that needs to be > >> in boy > >> tag, same there) If your woody page is included in another page or > >> you don't > >> have the html tags yet, those script inclusions may be skipped. Look for > >> these includes in the woody stylesheet and make sure you have them in > >> your > >> result html. > >> > >>> Since i put my Woody forms in portal coplets, i discovered the > >>> Javascripts included in my forms are not processed. Example: this is > >>> the > >>> case of the showPopup for the Woody wi:help or javascript on > >>> used in selection-lists (carselector sample). > >>> > >>> PS : endProcessing method should be ok, but my javascript is not > >>> runned.. > >>> > >> > > I've been working on this also... The woody stylesheets that come with > > cocoon 2.1.4 (woody) and 2.1.5snapshots (forms) seem to take for > > granted that woody displays pages as a whole, and believe there's > > gonna be and tags, and use them for insertion of several > > elements (scripts, CSSs in the head tag and cocoon_onload() action on > > the body tag). > > > >I use woody to create parts of my pages for later inclusion in a > > page (think of home made copletoids), so i had to work arround the > > problem. I put a > > arround all my woody templates and then clean up the pipeline before > > serializing it to HTML, using a woody-cleanup.xsl for stripping those > > tags and putting the content where appropiate. It's really disgusting, > > but it works, and I'm in a real hurry with this project.. > > > >I hope someone developing woody (or forms, the name has changed in > > the CVS) thinks about this "not whole pages" matter for future > > releases. Cocoon is so modular that's you can use it in zillion of > > ways, and taking for granted a head & body tags seems to me a step in > > the wrong direction. > > > >Greeting to all, > > Nacho. > > > Thanks guy's for spotting this. I'm going to file a Bugzilla entry > because this has to be solved until CcooonForms reaches 1.0. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
changes woody --> cocoon forms
Hi, As woody changed to cocoon forms, somebody has a global view of what has been changed ? For what i know now : - Tags wt, wi, wd have changed to ft, fi, fd - function woody changed to form and the file changed from //org/apahe/cocoon/woody/flow/javascipt/woody2.js to //org/apahe/cocoon/forms/flow/javascipt/flow/Form.js Something else? Regards, Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: changes woody --> cocoon forms
Oops, didn't find this precisous wiki. Thanks. Phil On Wed, 2004-03-17 at 14:26, Reinhard PÃtz wrote: > Philippe Guillard wrote: > > >Hi, > >As woody changed to cocoon forms, somebody has a global view of what has > >been changed ? > > > >For what i know now : > >- Tags wt, wi, wd have changed to ft, fi, fd > >- function woody changed to form and the file changed from > >//org/apahe/cocoon/woody/flow/javascipt/woody2.js to > >//org/apahe/cocoon/forms/flow/javascipt/flow/Form.js > > > >Something else? > > > >Regards, > >Phil > > > > > >- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > See http://wiki.cocoondev.org/Wiki.jsp?page=Woody2CocoonForms for > details and also have a look at the named upgrade script because it > contains the most recent changes. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ESQL result pushed in sendmail in same XSP page?
Hi all, I make the serverpage generator treat ESQL and sendmail in the same .xsp, and i'd like to pass the parameter i get from my ESQL statement in the sendmail generation. Question : - I'd like to know if this is possible? - If not, what solution could avoid this situation (XSP Action for ESQL before sendmail generation?) Regards, Phil My Sample : below i get the user's password first with ESQL then sendmail it to the user, here the error is "yourpassword cannot be resolved": http://apache.org/xsp"; xmlns:xsp-request="http://apache.org/xsp/request/2.0"; xmlns:esql="http://apache.org/cocoon/SQL/v2"; xmlns:sendmail="http://apache.org/cocoon/sendmail/1.0";> title mypool , select password from USER where email= String yourpassword = new String(); localhost [EMAIL PROTECTED] subject yourpassword - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ESQL result pushed in sendmail in same XSP page?
Thanks a lot. I tried this before without success, but it works now. Phil On Wed, 2004-03-17 at 16:36, julien bloit wrote: > Hi Phil, > > I have the same kind of action to perform, I do it by including the sendmail > section inside the esql:row-results. Maybe there're other ways to do it, but > here's a snippet that works for me : > > > > dvdadmin > > SELECT * FROM users WHERE > email='' > > > > > > String smtphost = ; > String msg ="Voici votre login : \n"; > String userId = ; > String pass = ; > String email = ; > String msg2 ="\n Voici votre password : \n"; > > > ISO-8859-1 > smtphost > [EMAIL PROTECTED] > email > Votre profil DVD Ã la carte > > msguserIdmsg2 > pass > > > > > >Cette adresse n'est pas enregistrÃe. > > > > > > HTH, > Julien > > - Original Message - > From: "Philippe Guillard" <[EMAIL PROTECTED]> > To: "users cocoon" <[EMAIL PROTECTED]> > Sent: Wednesday, March 17, 2004 9:21 AM > Subject: ESQL result pushed in sendmail in same XSP page? > > > > Hi all, > > I make the serverpage generator treat ESQL and sendmail in the same > > .xsp, and i'd like to pass the parameter i get from my ESQL statement in > > the sendmail generation. > > > > Question : > > - I'd like to know if this is possible? > > - If not, what solution could avoid this situation > > (XSP Action for ESQL before sendmail generation?) > > > > Regards, > > > > Phil > > > > My Sample : below i get the user's password first with ESQL then > > sendmail it to the user, here the error is "yourpassword cannot be > > resolved": > > > > > > > xmlns:xsp="http://apache.org/xsp"; > > xmlns:xsp-request="http://apache.org/xsp/request/2.0"; > > xmlns:esql="http://apache.org/cocoon/SQL/v2"; > > > > xmlns:sendmail="http://apache.org/cocoon/sendmail/1.0";> > > > > title > > > > mypool > >, > > select password from USER where > > email= > name="email"/> > > > > > > > > String yourpassword = new String( > column="password"/>); > > > > > > > > > > > > > > > > > > localhost > > [EMAIL PROTECTED] > >> name="email"/> > > subject > > > > yourpassword > > > > > > > > > > > > > > > > > > - > > 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]
JDO XSP sample
I'd like to transform the JDO XSP sample to make updates instead of inserts, but lost in JDO i don't find where this is defined. Regards, Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
& bookmarks
Hi all, 2 questions : (i basically want to change tab after a user click on a link in a coplet of the Portal engine) - When i put in my xsl file, i get error : The prefix "cl" for element "cl:links" is not bound. Can't find why ! - I red in that mailist that bookmarks were designed for links external to the portal. Is it possible to use them inside ? Then i can't get a way to write them in, say in a XSP page inside a coplet : http://localhost:/samples/portal/bookmark?tab1=1&tab2=1 or My Link I think i missed the point there since my bookmarks work from outside. Best regards, Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: & bookmarks
Thanks Jean-Christophe, Fine with cl:link. I still have trouble with bookmarks when i put them inside a coplet, i get trouble with redirection and uri prefix of the coplet.("/portal/bookmark doesn't start with given prefix (portal)").. Regards Phil On Thu, 2004-04-01 at 19:57, Jean-Christophe Kermagoret wrote: > Hi Philippe, > 1 - your root element must declare the following > cl:namespace > > xmlns:cl="http://apache.org/cocoon/portal/coplet/1.0"; > > 2 - Do you apply a tranformer like portal-html-eventlink ? It transforms > links in action and event > Moreover, I had to restart my server to take into account modifications > I made in my bookmarks. Did you ? > > Jean-Christophe > > Philippe Guillard wrote: > > >Hi all, > > > >2 questions : > >(i basically want to change tab after a user click on a link in a coplet > >of the Portal engine) > >- When i put in my xsl file, i get error : The prefix "cl" > >for element "cl:links" is not bound. Can't find why ! > > > >- I red in that mailist that bookmarks were designed for links external > >to the portal. Is it possible to use them inside ? > >Then i can't get a way to write them in, say in a XSP page inside a > >coplet : > >http://localhost:/samples/portal/bookmark?tab1=1&tab2=1 > >or My Link > >I think i missed the point there since my bookmarks work from outside. > > > >Best regards, > > > >Phil > > > > > >- > >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]
coplet attributes
Hi all, My need is to use cl:link to send a request parameter to another coplet that contains a XSP page, and XSP page to use it.. I found great the mail below. Problem is there "Be careful, to access to the MyCoplet-1 attributes this transformer (portal-coplet transformer) need to be call by the MyCoplet itself and with the cocoon protocol. If it's not the case use the portal action to 'load' it in memory." I can't make serverpage take a source with cocoon protocol neither nor put a action before the generator in a pipeline... Maybe cl:link can just send parameter for use in XSL and there is another way? Thanks by advance! Phil On Mon, 2004-01-19 at 23:23, Laurent Trillaud wrote: > Alex > Yes, but it's a bad idea, because you haven't insurance about coplets > synchronization, and you will not have the benefit of the history record of > the portal. > The good design is to use coplet attributes. > 1. Declare an attributes in copletinstancedata/portal.xml > > MyCoplet > > MyAttribute > MyDefaultValue > > > 2. Use the portal-coplet transformer to set the attribute > > > > My News Page > > It will produce another event on the href > > > > * here > 3. use it > Read value from the coplet input module. For example to use it with an xsl > > > > > > > > > Laurent Trillaud > > > > -Message d'origine- > > De : Alex Romayev [mailto:[EMAIL PROTECTED] > > Envoyà : lundi 19 janvier 2004 15:31 > > à : [EMAIL PROTECTED] > > Objet : RE: [portal] Linking to portal pages > > > > Thanks Laurent -- that works great! > > > > Another question, is there a way to pass a request > > parameter with it, so that the anchor is something > > like: > > > > > href="portal?portal-action=n&portal-event=m&news-id=x>My> > > News Page > > > > Thanks, > > -Alex > > > > --- Laurent Trillaud <[EMAIL PROTECTED]> wrote: > > > Hi, > > > Events in the new portal engine are very powerful > > > but totally misdocumented. > > > If you want a link to switch to a News tab in your > > > portal you need to create > > > an event to say to the maintab composite layout to > > > switch to is second > > > layout (0 based index) and send it to the portal. > > > Hoppefully, the portal-coplet transformer will do it > > > for you > > > > > > > > path="aspectDatas/tab"/> > > > My News Page > > > > > > will be replace by > > > > > > by an anchor > > > http://myserver/myproject/portal/bookmark?showtab=1";> > > > My News Page and it will do the same thing. > > > > > > Laurent Trillaud > > > > > > > -Message d'origine- > > > > De : Alex Romayev [mailto:[EMAIL PROTECTED] > > > > Envoyi : vendredi 16 janvier 2004 23:20 > > > > @ : [EMAIL PROTECTED] > > > > Objet : [portal] Linking to portal pages > > > > > > > > Hi, > > > > > > > > I am porting my site from old portal-fw to the new > > > > portal engine. I was able to port all the coplets > > > and > > > > pages with any problems, however, I got really > > > stuck > > > > on events. I am clearly missing the point here, > > > so > > > > could someone at least point me in the right > > > direction > > > > (an example would be great!)? > > > > > > > > I need to create a links to my portal pages from > > > > within coplet content. For example, I used to > > > have > > > > News page, so I could use the following: > > > > > > > > News > > > > > > > > Now my News page is represented as a tab. How > > > would I > > > > generate the right link to this page? > > > > > > > > Thanks, > > > > -Alex > > > > > > > > > > > > > > > > > - > > > > 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] > > > > > > > > > = > > Alex Romayev > > Software Architect > > http://www.romayev.com > > [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]
CachingURI Coplet problem with ?
Hi all, I have a XSP page in a CachingURI Coplet, as soon as i add a (simpleform) i get the exception below. Somebody an idea ? (Same page works fine when i call it form outside the portal or in URI coplet, i don't use flow and validation) Regards, Phil 17:27:46.016 EVENT WARN(2004-04-16) 17:27.46:010 [portal ] (/portal/portal) PoolThread-4/AbstractCopletAdapter: Unable to get content of coplet: tabletalk-1 org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): java.lang.RuntimeException: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.NullPointerException at org.apache.cocoon.portal.coplet.adapter.impl.URICopletAdapter.streamContent(URICopletAdapter.java:150) at org.apache.cocoon.portal.coplet.adapter.impl.CachingURICopletAdapter.streamContent(CachingURICopletAdapter.java:139) at org.apache.cocoon.portal.coplet.adapter.impl.CachingURICopletAdapter.streamContent(CachingURICopletAdapter.java:124) at org.apache.cocoon.portal.coplet.adapter.impl.AbstractCopletAdapter.toSAX(AbstractCopletAdapter.java:146) at org.apache.cocoon.portal.source.CopletSource.toSAX(CopletSource.java:190) at org.apache.cocoon.components.source.SourceUtil.toSAX(SourceUtil.java:164) at org.apache.cocoon.components.source.SourceUtil.toSAX(SourceUtil.java:144) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Coplets, cl:link - problems with sending and receiving parameters
Hi Mario, I'm on the same thing without success, looking for a solution two... I think you need more configuration to pass the data from cl:link to the other coplet, suggest to have a look here : http://www.mail-archive.com/[EMAIL PROTECTED]/msg08500.html To get the request param in your XSP page i suggest declare xmlns:util="http://apache.org/xsp/util/2.0 namespace then use a Hope it helps ! Phil On Mon, 2004-04-19 at 04:31, Mariusz Wojcik wrote: > Hi I'm using new Cocoon Portal Engine (C. 2.1.4), and I have to send > parameters between coplets (their context is generated by xsp pages). > > I have set coplet attribute in my copletdata portal.xml file: > > (coplet data) portal.xml > > > . > > id > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>Hello > > > > > > > In the first xsp file I'm using cl:links commands to reload content, > and setting "id" attribute value: > > first xsp file > > . > > value="New_Value"/> > > path="copletData/attributes/uri" > value="cocoon:/coplets/xsp/the_other_file.xsp"/> > My Link Content > > > > > > What I should write in the the_other_file.xsp file to get the id > parameter value? > > > The other xsp file > > > ??? > > > Thanks for help > Mario > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Coplets, cl:link - problems with sending and receivingparameters
Mario, Really? I don't think this is with my advice :-) Can you tell me how you did this? Specially the sitemap of the 2 coplets. Did you use util in the XSP ? I'm still blocked. Regards, Phil On Mon, 2004-04-19 at 16:58, Mariusz WÃjcik wrote: > Thanks it works : > > > > > - Original Message - > From: "Philippe Guillard" <[EMAIL PROTECTED]> > To: "users cocoon" <[EMAIL PROTECTED]> > Sent: Monday, April 19, 2004 6:00 AM > Subject: Re: Coplets, cl:link - problems with sending and > receivingparameters > > > > Hi Mario, > > > > I'm on the same thing without success, looking for a solution two... > > > > I think you need more configuration to pass the data from cl:link to the > > other coplet, suggest to have a look here : > > http://www.mail-archive.com/[EMAIL PROTECTED]/msg08500.html > > > > To get the request param in your XSP page i suggest declare > > xmlns:util="http://apache.org/xsp/util/2.0 namespace then use a > > > > > > Hope it helps ! > > > > Phil > > > > > > On Mon, 2004-04-19 at 04:31, Mariusz Wojcik wrote: > > > Hi I'm using new Cocoon Portal Engine (C. 2.1.4), and I have to send > > > parameters between coplets (their context is generated by xsp pages). > > > > > > I have set coplet attribute in my copletdata portal.xml file: > > > > > > (coplet data) portal.xml > > > > > > > > > . > > > > > > id > > > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>Hello > > > > > > > > > > > > > > > > > > > > > In the first xsp file I'm using cl:links commands to reload content, > > > and setting "id" attribute value: > > > > > > first xsp file > > > > > > . > > > > > > > > value="New_Value"/> > > > > > >> > path="copletData/attributes/uri" > > > value="cocoon:/coplets/xsp/the_other_file.xsp"/> > > > My Link Content > > > > > > > > > > > > > > > > > > What I should write in the the_other_file.xsp file to get the id > > > parameter value? > > > > > > > > > The other xsp file > > > > > > > > > ??? > > > > > > > > > Thanks for help > > > Mario > > > > > > > > > > > > - > > 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: Coplets, cl:link - problems with sending and receivingparameters
Thanks Jean-Christophe, Actually my problem was resolved using URI coplets instead of CachingURI coplets. Don't know why, except that CachingURI uses portal-html-eventlink transformer. Regards, Phil On Wed, 2004-04-21 at 17:06, Jean-Christophe Kermagoret wrote: > Hi, > > You can just use the > {coplet:attributes/name_of_attribute_defined_for_your_coplet} in a > parameter in your sitemap like usual : > > This way, you can get it in your stylesheet or xsp (I think because I > don't use xsp) > > Jean-Christophe > > Philippe Guillard wrote: > > >Mario, > > > >Really? I don't think this is with my advice :-) Can you tell me how you > >did this? Specially the sitemap of the 2 coplets. Did you use util in > >the XSP ? I'm still blocked. > > > >Regards, > > > >Phil > > > > > >On Mon, 2004-04-19 at 16:58, Mariusz WÃjcik wrote: > > > > > >>Thanks it works : > >> > >> > >> > >> > >>- Original Message - > >>From: "Philippe Guillard" <[EMAIL PROTECTED]> > >>To: "users cocoon" <[EMAIL PROTECTED]> > >>Sent: Monday, April 19, 2004 6:00 AM > >>Subject: Re: Coplets, cl:link - problems with sending and > >>receivingparameters > >> > >> > >> > >> > >>>Hi Mario, > >>> > >>>I'm on the same thing without success, looking for a solution two... > >>> > >>>I think you need more configuration to pass the data from cl:link to the > >>>other coplet, suggest to have a look here : > >>>http://www.mail-archive.com/[EMAIL PROTECTED]/msg08500.html > >>> > >>>To get the request param in your XSP page i suggest declare > >>>xmlns:util="http://apache.org/xsp/util/2.0 namespace then use a > >>> > >>> > >>>Hope it helps ! > >>> > >>>Phil > >>> > >>> > >>>On Mon, 2004-04-19 at 04:31, Mariusz Wojcik wrote: > >>> > >>> > >>>>Hi I'm using new Cocoon Portal Engine (C. 2.1.4), and I have to send > >>>>parameters between coplets (their context is generated by xsp pages). > >>>> > >>>>I have set coplet attribute in my copletdata portal.xml file: > >>>> > >>>>(coplet data) portal.xml > >>>> > >>>> > >>>>. > >>>> > >>>>id > >>>> >>>>xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>Hello > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>>In the first xsp file I'm using cl:links commands to reload content, > >>>>and setting "id" attribute value: > >>>> > >>>>first xsp file > >>>> > >>>>. > >>>> > >>>> >>>>value="New_Value"/> > >>>> > >>>> >>>> path="copletData/attributes/uri" > >>>>value="cocoon:/coplets/xsp/the_other_file.xsp"/> > >>>> My Link Content > >>>> > >>>> > >>>> > >>>> > >>>> > >>>>What I should write in the the_other_file.xsp file to get the id > >>>>parameter value? > >>>> > >>>> > >>>>The other xsp file > >>>> > >>>> > >>>>??? > >>>> > >>>> > >>>>Thanks for help > >>>>Mario > >>>> > >>>> > >>>> > >>>> > >>>- > >>>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]
Sendmail question
Hi all, Question1: I'm using Sendmail logicsheet, works good exept serverpage generator takes 5/10 seconds for it. I don't have hosting and mail is sent from [EMAIL PROTECTED] like the samples from my Linux. I'd like to hear from people who have this in real environment with configured mail server. Question2: I plan to send sometimes hundreds of mail in a XSP Action launched by scheduler, i wonder how i should proceed to pool them. Best Regards, Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [FLOW] Bug in cookie handling?
Hi Markus, Ya, it's the same for getValue, instead cocoon.request.getCookies()[0].value() works. Phil On Fri, 2004-04-23 at 03:38, Markus Heussen wrote: > Hi! > > Is there a known bug in the Cocoon cookie handling within a flowscript? > > I created a cookie using > > cocoon.response.addCookie(cocoon.response.createCookie("test", "test")); > > and tried to get it from the request doing the following: > > 1. cocoon.log.debug(cocoon.request.getCookies()); > --> > Lorg.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon$FOM_Cookie;@187 > 6e5d > > 2. cocoon.log.debug(cocoon.request.getCookies()[0].name); > --> test > > 3. cocoon.log.debug(cocoon.request.getCookies()[0].getName()); > --> org.apache.avalon.framework.CascadingRuntimeException: getName is not a > function > > > The docs under > http://cocoon.apache.org/2.1/userdocs/flow/api.html#Cookie+Object says that > there is a method getName(). Or am I missunderstanding something? > > I'm using a few weeks old CVS Head under Tomcat 4.1 and Java 1.4.2. > > Greetings, > > Markus > > > - > 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: Generating XML - Design decisions
Hi, I agree with all that has been said here, and as a newbie i can tell XSP+SQL for reading is really easy and OJB not so hard if like me you use 10% of its incredible capabilities. But!!: speaking about full XML website, i'm surprised to see nobody mentioned native XML databases and XML:DB? Phil On Fri, 2004-04-23 at 20:01, Leon Widdershoven wrote: > You could try an Object/Relational bridge, like OJB or Hibernate, > and combine it with Flowscript. > You can use the JX generator to write bean information in the pages > dynamically (using, of course, flowscript and cocoon.sendPage) > > There are tutorials and introductions on the WIKI on that subject. > > It is, of course, strongly recommended that you have some knowledge > about java if you're going to build a O/R bridge. But not that much. > > Javascript (flowscript) is, as I understand, at present the recommended > way to write apps. It is also not hard to learn and Java classes > containing business logic can be called from withing the Javascript > interpreter (Mozilla Rhino). > > OJB and Hibertnate do require some investment in time to get to know it. > I think a day full time playing is not too much, and will give you a > feeling for it. > > Please visit the cocoon wiki and look at the howto's for more info. > > Hope that helped a bit. > > Leon > > Hildebrandt, Ole wrote: > > Hi, > > > > I am fairly new to cocoon and I am planning to use it for a quite big > > website. I keep thinking what the best way is to genrate XML from a > > database. > > > > - XSP seems too complicated and limited and there is no knowledge in the > > developer-team available > > - JSP seems okay, many developers are familiar with it, but are there any > > drawbacks regarding performance (I think JSP-Generator is not cachable, is > > it?) or other things? > > - Writing a new Generator seems to be a too much, and not very practical in > > development since you have to recompile it all the time and cannot make > > changes at runtime > > - Doing it with SQL- and XSLT-Transformers? Not so nice, since IMO the code > > for implementing the logic is spread over too many files (Correct me if i am > > wrong) > > > > It would be really helpful if someone had a pice of advise or any experience > > what approach pays off best > > > > Regards > > > > Ole > > > > > > > > - > > 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: using Cocoon: chinese government agencies
Hi all, Just to tell you that Labor day = important holidays here and there should be really few Chinese people connected to give you answers, i can't be counted in that list as a stranger :-) Seriously, i'd like to take this opportunity to ask if there is other cocooners around Beijing or Shanghai, would be great to meet! Phil On Mon, 2004-05-03 at 23:11, Antonio Gallardo wrote: > If you prefer a "bad link" from the english site: > > http://english.mofcom.gov.cn/ > > Try this one: > > http://english.mofcom.gov.cn/error_demo.xml > > 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]
Re: Javascript in Woody in Coplets
Hi, I come back on the problem i post weeks ago: i still not manage to include the javascript from Woody(sorry now passed to CForms!)to the head of my portal pages. I understand i should include javascripts in th header of my pages in portal-page.xsl to have Cforms working fully. But as the renderer in cocoon.xconf is telling that the window part is designed by window.xsl and head is designed in portal-page.xsl and as i have a few coplets there i don't have any idea how i could reference to my woody heads templates with XSL. Hope somebody can show me ! Regards, Phil On Wed, 2004-03-10 at 19:56, Philippe Guillard wrote: > Thanks all! > > On Wed, 2004-03-10 at 18:52, Reinhard PÃtz wrote: > > Nacho Jimenez wrote: > > > > > Jan Hoskens wrote: > > > > > >> I'm not sure you mean this, but I'll give it anyway: > > >> > > >> If you're using woody and thus the woody stylesheet, there are several > > >> javascripts that are added (eg the popup window). These javascripts > > >> are to > > >> be added in your html header and thus the woody stylesheet looks for > > >> that > > >> tag .. to put the script tags there and more. (there > > >> might > > >> also be some div function as for the calendar popup that needs to be > > >> in boy > > >> tag, same there) If your woody page is included in another page or > > >> you don't > > >> have the html tags yet, those script inclusions may be skipped. Look for > > >> these includes in the woody stylesheet and make sure you have them in > > >> your > > >> result html. > > >> > > >>> Since i put my Woody forms in portal coplets, i discovered the > > >>> Javascripts included in my forms are not processed. Example: this is > > >>> the > > >>> case of the showPopup for the Woody wi:help or javascript on > > >>> used in selection-lists (carselector sample). > > >>> > > >>> PS : endProcessing method should be ok, but my javascript is not > > >>> runned.. > > >>> > > >> > > > I've been working on this also... The woody stylesheets that come with > > > cocoon 2.1.4 (woody) and 2.1.5snapshots (forms) seem to take for > > > granted that woody displays pages as a whole, and believe there's > > > gonna be and tags, and use them for insertion of several > > > elements (scripts, CSSs in the head tag and cocoon_onload() action on > > > the body tag). > > > > > >I use woody to create parts of my pages for later inclusion in a > > > page (think of home made copletoids), so i had to work arround the > > > problem. I put a > > > arround all my woody templates and then clean up the pipeline before > > > serializing it to HTML, using a woody-cleanup.xsl for stripping those > > > tags and putting the content where appropiate. It's really disgusting, > > > but it works, and I'm in a real hurry with this project.. > > > > > >I hope someone developing woody (or forms, the name has changed in > > > the CVS) thinks about this "not whole pages" matter for future > > > releases. Cocoon is so modular that's you can use it in zillion of > > > ways, and taking for granted a head & body tags seems to me a step in > > > the wrong direction. > > > > > >Greeting to all, > > > Nacho. > > > > > > Thanks guy's for spotting this. I'm going to file a Bugzilla entry > > because this has to be solved until CcooonForms reaches 1.0. > > > - > 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]
Some Struts in Cocoon?
Hi, I'd like to integrate some already developed Struts portlets in my cocoon application/ portal engine. Somebody knows the way, or can give me some advice ? For what i know at the moment : - These portlets are JSR168 compliant and idem the portal engine coplets - I red about Cocoon Plugin for Struts, seems more logic to add some cocoon on top of Struts for XML contents. - Keel Meta-Framework would be great if i configure Struts and Cocoon as clients but i'm worried i should break all my OJB stuff. Regards, Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Some Struts in Cocoon?
Hi, Sorry if i was confusing, in short i need some advice to run JSR168 compliant portlets that i found developed on Struts in my Cocoon Portal Engine. Phil On Tue, 2004-05-18 at 04:16, Joerg Heinicke wrote: > On 17.05.2004 13:01, Philippe Guillard wrote: > > > Hi, > > > > I'd like to integrate some already developed Struts portlets in my > > cocoon application/ portal engine. > > > > Somebody knows the way, or can give me some advice ? > > I don't know much about portlets, so please be patient with me :) > > > For what i know at the moment : > > - These portlets are JSR168 compliant and idem the portal engine coplets > > Why do you need Struts at all? JSR 168 compliant coplets should be > usable in Cocoon directly. > > - I red about Cocoon Plugin for Struts, seems more logic to add some > > cocoon on top of Struts for XML contents. > > - Keel Meta-Framework would be great if i configure Struts and Cocoon as > > clients but i'm worried i should break all my OJB stuff. > > How shall OJB be related here? > 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]
JSR168 portlet samples in Portal engine?
Hi, I can't make the JSR168 portlet-test work in Portal Engine.I have "The coplet TestPortlet-1 is currently not available" on the top window and nothing inside the 2 testsuite portlets. I have : - today cvs Pluto builded and working well with testsuite samples - today cvs cocoon 2.1.5 - tomcat 4.1.30 - expanded cocoon.war in my webapp (tomcat 4.1) and removed cocoon/WEB-INF/pluto*.jar and portlet-api*.jar as mentioned in the Portal main page - It says also "remove the Pluto webapp". Means delete pluto folder in webapp and pluto.xml? I think pluto has been integrated in cocoon portal block right ? If i remove the weapps/pluto + pluto.xml : no errors in tomcat If i remove webapps/pluto, sure tomcat says webapps/pluto does not exist Somebody any idea ? Regards, Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSR168 portlet samples in Portal engine?
I try again cause i had no success : > Hi, > > I can't make the JSR168 portlet-test work in Portal Engine.I have "The > coplet TestPortlet-1 is currently not available" on the top window and > nothing inside the 2 testsuite portlets. > > I have : > - today cvs Pluto builded and working well with testsuite samples > - today cvs cocoon 2.1.5 > - tomcat 4.1.30 > - expanded cocoon.war in my webapp (tomcat 4.1) and removed > cocoon/WEB-INF/pluto*.jar and portlet-api*.jar as mentioned in the > Portal main page > - It says also "remove the Pluto webapp". Means delete pluto folder in > webapp and pluto.xml? I think pluto has been integrated in cocoon portal > block right ? > If i remove the weapps/pluto + pluto.xml : no errors in tomcat > If i remove webapps/pluto, sure tomcat says webapps/pluto does not exist > > > Somebody any idea ? > > Regards, > > Phil > > > > > - > 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]
Integrating other webapp in cocoon ?
Hi, I'd like to re-use existing software (say a forum) in my cocoon Portal, and need some suggestions/ideas from people more experienced ! What i've found now : - PortletsJSR168 applications would fit the best to integrate fully in Cocoon Portal, but only a few applications are available at the moment. - I found some PHP Applications : there is a PHP block in cocoon but i suppose this would be not clean, maybe slow - I found some JSP-Struts applications, for this i could reuse the view in cocoon (JSP or XSP), and redevelop the Model+Control, but hard work i think. - Other solution maybe running the other webapp separately in Tomcat, not integrated in the portal, could be ok for me, then the issue is login once for both applications... Any suggestion how to proceed ? Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Discussion Forum App based on Cocoon
Hi all, We are working on adapting MVNForum inside cocoon! We proceeded like this : - View: we used the user JSP pages with JSPGenerator with a few modifications it works. - Model: We used the MVN beans as is - Control: That's the main thing, we need to adapt everything here, mostly adapt the initializations made on MVN servlet, rewrite URL mappings in a sitemap, adapt request parameters & attributes stuff. Any question ... and also any suggestion wecomed ! Specially : - I wonder if JSP Generator is robust? - If you guys are developing a Forum with better Cocoon tools : Flow, OJB etc.. can you tell the functionalities you plan to implement, then it would be preferable for us to wait for you committers :-) Regards, Phil On Fri, 2004-06-04 at 22:23, Bertrand Delacretaz wrote: > Le 4 juin 04, Ã 15:04, Upayavira a Ãcrit : > > > > ...The thing I'm most keen to see is integration with a mailserver > > backend, giving access to a discussion via both mail and web > > interfaces > > What I'm thinking of implementing ATM is only the business object used > to store and retrieve forum messages, that's all. Won't be very > sophisticated, but it could be a starting point for what you envision. > > -Bertrand > > > -- > 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]
portal-html-eventlink question
Hi, I took 2.1.5-dev in CVS in march, and portal-html-eventlink was transforming all my ... into events (portal?cocoon-portal-action=0&cocoon-portal-event=13) to show another page in the same CachingURI coplet, and i reserved use of cl:link for links between coplets. Now i have 2.1.5 rls, it seems that it doesn't transform that way. Anybody any idea ? Should i use cl:links ? Regards, Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cl:links in cachingURI coplet ?
Hi, I'm using cl:links OK with URI coplet but can't make cl:links work with cachingURI coplet in rls 2.1.5. Should i change something ? I think the point is that cachingURI Coplet uses portal-html-eventlink transformer. Error: org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.RuntimeException: org.xml.sax.SAXException: copletId must be passed as parameter or in the object model within the parent context. It seems that portal-html-eventlink needs copletId, i tried to give or , no success Any idea? Regards, Phil -- Here details : Coplet_data ___ topics CachingURICoplet .. parameter1 http://www.w3.org/2001/XMLSchema-instance";>0 The appication pipeline __ The "temporary-application" pipeline my cl:link in xsl __ link - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
get-sitemap-parameter in JSP ?
Is there a way to get a sitemap parameter from a JSP page(JSP block), equivalent of the XSP with xmlns:util="http://apache.org/xsp/util/2.0"; ? Regards, Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Coplet link : alternative to cl:link or bookmark ?
Hi, Is there another way to write links in a coplet other than cl:link or bookmark since i stay in the same coplet? This is to get the request-params the normal way, instaed of the "{coplet:attributes/param}" stuff in the sitemap. My coplet would be for example an XSP page with links to other XSP pages to show and a parameter href="page1?param=1" and "page2?param=2". For the moment i have to use this crazy thing: Regards, Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: get-sitemap-parameter in JSP ?
Thanks a lot! In my case is use JSP in portal (cachingURI coplet), links like page2 is transformed in action=x&event=y, so the query-string is: a=1?copletid=app-test-1&cocoon-portal-action=1&cocoon-portal-event=21 and if i rely on the servlet from JSP: - ParamUtil.getParameterInt(request, "cocoon-portal-action") is ok - ParamUtil.getParameterInt(request, "a) gives a java exception BUT STRANGE ! in sitemap or in XSP using request.getParameter("a") i get the right request-param. So new question : is there a way to get the original request params from the servlet ? Regards, Phil On Sat, 2004-06-26 at 19:22, Joerg Heinicke wrote: > On 22.06.2004 17:43, Philippe Guillard wrote: > > > Is there a way to get a sitemap parameter from a JSP page(JSP block), > > equivalent of the XSP with > > xmlns:util="http://apache.org/xsp/util/2.0"; ? > > I guess not as JSP is to loosely coupled. You probably can only rely on > the servlet API objects like request. > > 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: cl:links in cachingURI coplet ?
Hi Roy, Outside the portal maybe means calling a pipeline from a sitemap that is not mounted by the portal sitemap, or child of portal sitemap, but not sure. I personnally passed to bookmarks! However, i made a quick try for you, Chris was right, you need to add the copletId in the cl:link like this : I didn't check the link but i don't have the exception below (using head cvs, that could be another reason since event-link-transformer has changed too). Phil On Wed, 2004-06-30 at 10:40, roy huang wrote: > Hi Chris, > I meet the similar situation.I don't understand "calling your pipeline from > outside the portal".How to define a pipeline called in a portal ? And what need to > do if I call a pipeline outside a portal? Can you describe it more in detail? >Thanks > >Roy Huang > - Original Message - > From: "Christian Mayrhuber" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, June 22, 2004 5:07 PM > Subject: Re: cl:links in cachingURI coplet ? > > > > On Monday 21 June 2004 19:01, Philippe Guillard wrote: > > > Hi, > > > > > > I'm using cl:links OK with URI coplet but can't make cl:links work with > > > cachingURI coplet in rls 2.1.5. Should i change something ? > > > > > > I think the point is that cachingURI Coplet uses portal-html-eventlink > > > transformer. > > > > > > Error: > > > org.apache.cocoon.ProcessingException: Failed to execute pipeline.: > > > java.lang.RuntimeException: org.xml.sax.SAXException: copletId must be > > > passed as parameter or in the object model within the parent context. > > > > > > It seems that portal-html-eventlink needs copletId, i tried to give > > > > > > or , no success > > > > > > Any idea? > > > > I guess you are calling your pipeline from outside the portal, if you do this > > the {coplet:#} and any other coplet data is unknown, so you have to > > specifiy the "copletId" as string. The coplet transformer is in no > > way different in this regard. > > > > -- > > lg, Chris > > > > - > > 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: cl:links in cachingURI coplet ?
Roy, - I don't have time now to check cl:link, it seems that you don't have the error anymore (=copletId must be passed as parameter or in the object model within the parent context.) right? So i think you are almost there. But if you added coplet="test-coplet" like here : in the gallery coplet then.. i don't know. - If you want to try bookmarks, which does the same for me, i think the best way is to connect you to this wiki as it is best explained: http://wiki.cocoondev.org/Wiki.jsp?page=PortalEngineBookmarks. I know it disturbs to change and try again, so good luck. Phil On Wed, 2004-06-30 at 19:17, roy huang wrote: > Hi,Phil: > How to add copletID in cl:link?If you mean coplet="test-coplet" I already added it > in the beginning.So the error is not appear but the data like "attributes/param" > still not passed. > I try this in samples of current cvs version,steps below: > 1.edit portal.xml in profiles\copletdata ,change GalleryViewer from URICoplet to > CachingURICoplet > 2.add attributes: > >buffer > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>true > > >handleParameters > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>true > > >uri > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>cocoon:/coplets/html/application > > >temporary:application-uri > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>cocoon://samples/blocks/portal/coplets/gallery/viewer > > 3.start jetty and then the Gallary Viewer did't work. > What can I do to make this work again? Or is it a bug? > > If you were me ,how to solve this problem by using CachingURICoplet with bookmark? > WDYT? > > Roy Huang > > > - Original Message - > From: "Philippe Guillard" <[EMAIL PROTECTED]> > To: "users cocoon" <[EMAIL PROTECTED]> > Sent: Wednesday, June 30, 2004 3:46 PM > Subject: Re: cl:links in cachingURI coplet ? > > > > Hi Roy, > > > > Outside the portal maybe means calling a pipeline from a sitemap that is > > not mounted by the portal sitemap, or child of portal sitemap, but not > > sure. > > > > I personnally passed to bookmarks! > > However, i made a quick try for you, Chris was right, you need to add > > the copletId in the cl:link like this : > > > > > value="tets"> > > > > I didn't check the link but i don't have the exception below (using head > > cvs, that could be another reason since event-link-transformer has > > changed too). > > > > > > Phil > > > > > > On Wed, 2004-06-30 at 10:40, roy huang wrote: > > > Hi Chris, > > > I meet the similar situation.I don't understand "calling your pipeline from > > > outside the portal".How to define a pipeline called in a portal ? And what need > > > to do if I call a pipeline outside a portal? Can you describe it more in detail? > > >Thanks > > > > > >Roy Huang > > > - Original Message - > > > From: "Christian Mayrhuber" <[EMAIL PROTECTED]> > > > To: <[EMAIL PROTECTED]> > > > Sent: Tuesday, June 22, 2004 5:07 PM > > > Subject: Re: cl:links in cachingURI coplet ? > > > > > > > > > > On Monday 21 June 2004 19:01, Philippe Guillard wrote: > > > > > Hi, > > > > > > > > > > I'm using cl:links OK with URI coplet but can't make cl:links work with > > > > > cachingURI coplet in rls 2.1.5. Should i change something ? > > > > > > > > > > I think the point is that cachingURI Coplet uses portal-html-eventlink > > > > > transformer. > > > > > > > > > > Error: > > > > > org.apache.cocoon.ProcessingException: Failed to execute pipeline.: > > > > > java.lang.RuntimeException: org.xml.sax.SAXException: copletId must be > > > > > passed as parameter or in the object model within the parent context. > > > > > > > > > > It seems that portal-html-eventlink needs copletId, i tried to give > > > > > > > > > > or , no success > > > > > > > > > > Any idea? > > > > > > > > I guess you are calling your pipeline from outside the portal, if you do this > > > > the {coplet:#} and any other coplet data is unknown, so you have to > > > > specifiy the "copletId" as string. The coplet transformer is in no > > > > way different in this regard. > > > > > > > > -- > > > > lg, Chris > > > > > > > > - > > > > 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: unescaping xml in XSP-page
Hi In can't unescape XML in my XSP page, even after looking this mail response. for me gives this error org.xml.sax.SAXParseException: Content is not allowed in prolog. _xml contains actually 'hello' I use xmlns:util="http://apache.org/xsp/util/2.0"; Somebody any idea ? Regards, Phil On Wed, 2004-03-10 at 03:44, Rob Gregory wrote: > I was also having a similar problem and like most trawled Google and the > news lists looking for an answer. Most topics suggested using > include-expr which I tried in the following format > > _xml > > As suggested in the posts which didn't work... > > Also tried > _xml > & loads of other routes... > > Eventually I had a look at the util XSLT and found that the string you > want included should be specified as an expr attribute as follows:- > > String _xml = xmlUtil.getXML(_text); > > > This worked great for me so might be worth a try if like myself you have > been misled from some posting on the net. > > Hope this helps > Rob > > > > > I seem to be having a very simular issue. > > I have a method which returns generated dhtml, and all of the > > '<' and '>' > > are also replaced with '<' and '>'. Any ideas? > > -Mel > > > > > > On 11.02.2004 09:45, Erik Hofstra wrote: > > > > > Hi all, > > > > > > I have a problem with my xml-string. From a XSP-page i call > > a JavaClass > > > which makes a SOAP-call. The JavaClass returns a XML document in > > > String type. > > > When i place this string in my page with the '<' > > and '>' of the > > > XML string are replaced with '<' and '>'. Because of this > > replacement > > > the transformer doesn't 'recognize' the tags. > > > I tried , unescapeXml, unescapeHtml and even the > > > string.replaceAll() method (:S) but nothing helps. > > > > > > Does anyone knows how to solve this problem or has an idea? > > > > > > Thanks! > > > Erik > > > > > > btw, here is a piece of my XSP code: > > > > > > String xmlString = soapCall.doSOAPCall(); > > > > > > > > > xmlString > > > > There are get-xml or getxml elements somewhere. Somebody else can > > probably tell you how to use them exactly, I never used them. > > > > 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: AW: unescaping xml in XSP-page
Sorry for my last email. works fine,the String passed was not well formed XML, that is, there was no root element... Phil On Tue, 2004-07-13 at 18:38, Philippe Guillard wrote: > Hi > > In can't unescape XML in my XSP page, even after looking this mail > response. > for me gives this error > org.xml.sax.SAXParseException: Content is not allowed in prolog. > _xml contains actually 'hello' > I use xmlns:util="http://apache.org/xsp/util/2.0"; > > Somebody any idea ? > > Regards, > > Phil > > On Wed, 2004-03-10 at 03:44, Rob Gregory wrote: > > I was also having a similar problem and like most trawled Google and the > > news lists looking for an answer. Most topics suggested using > > include-expr which I tried in the following format > > > > _xml > > > > As suggested in the posts which didn't work... > > > > Also tried > > _xml > > & loads of other routes... > > > > Eventually I had a look at the util XSLT and found that the string you > > want included should be specified as an expr attribute as follows:- > > > > String _xml = xmlUtil.getXML(_text); > > > > > > This worked great for me so might be worth a try if like myself you have > > been misled from some posting on the net. > > > > Hope this helps > > Rob > > > > > > > > I seem to be having a very simular issue. > > > I have a method which returns generated dhtml, and all of the > > > '<' and '>' > > > are also replaced with '<' and '>'. Any ideas? > > > -Mel > > > > > > > > > On 11.02.2004 09:45, Erik Hofstra wrote: > > > > > > > Hi all, > > > > > > > > I have a problem with my xml-string. From a XSP-page i call > > > a JavaClass > > > > which makes a SOAP-call. The JavaClass returns a XML document in > > > > String type. > > > > When i place this string in my page with the '<' > > > and '>' of the > > > > XML string are replaced with '<' and '>'. Because of this > > > replacement > > > > the transformer doesn't 'recognize' the tags. > > > > I tried , unescapeXml, unescapeHtml and even the > > > > string.replaceAll() method (:S) but nothing helps. > > > > > > > > Does anyone knows how to solve this problem or has an idea? > > > > > > > > Thanks! > > > > Erik > > > > > > > > btw, here is a piece of my XSP code: > > > > > > > > String xmlString = soapCall.doSOAPCall(); > > > > > > > > > > > > xmlString > > > > > > There are get-xml or getxml elements somewhere. Somebody else can > > > probably tell you how to use them exactly, I never used them. > > > > > > 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] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Portal : 2 Global Profiles depending on URI?
Hi all, I'd like to use the same portal with 2 Global Profiles depending on URI requested. Lets say i have www.mysite.net and category.mysite.net, after URLrewriting i could have www.mysite.net/potal/portal/1 and www.mysite.net/portal/portal/2 that i'd like to render with profile/layout1 and layout2. I think about replacing portal pipeline with , then use the parameter in but don't know how to do this. Anybody idea or other suggestion welcomed !! Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Pass a parameter to Portal
Hi all, I need to pass a paramter from URI to the portal and somehow access it from my coplets. More clearly URI could be : samples/blocks/portal/portal?my_param="foo" or : samples/blocks/portal/foo I tried this : works fine for the anonymous page coplets, but as soon as the user logs in, a new session object is created and my paramter is lost. I tried also to use a global sitemap parameter, but don't know how to pass it to mounted subsitemaps where my coplets are... Any idea ? Regards, Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Pass a parameter to Portal
Thanks Dirk, Unfortunately i think global parameter is more a constant, i mean i didn't find a way to change its value dynamically. Right? Regards, Phil On Mon, 2004-07-26 at 22:01, Dirk Gronert wrote: > Philippe Guillard wrote: > > Hi all, > > > > I need to pass a paramter from URI to the portal and somehow access it > > from my coplets. > > More clearly URI could be : samples/blocks/portal/portal?my_param="foo" > > or : samples/blocks/portal/foo > > > > I tried this : > > > > > > > > > > > > > > works fine for the anonymous page coplets, but as soon as the user logs > > in, a new session object is created and my paramter is lost. > > > > I tried also to use a global sitemap parameter, but don't know how to > > pass it to mounted subsitemaps where my coplets are... > if you set the global sitemap parameter in the rootsitemap you can use > it in alle subsitemaps. e.g.: {global:name}, so you donn't have to pass it! > > Dirk > > > > Any idea ? > > > > Regards, > > > > Phil > > > - > 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: Pass a parameter to Portal
This is what i did, thanks a lot Dirk. I put this param in the login page as hidden field, so i can put it again in the session during authentication. Regards, Phil On Wed, 2004-07-28 at 04:37, Dirk Gronert wrote: > Philippe Guillard wrote: > > Thanks Dirk, > > > > Unfortunately i think global parameter is more a constant, i mean i > > didn't find a way to change its value dynamically. Right? > > > > > > Regards, > > > > Phil > > > > > > On Mon, 2004-07-26 at 22:01, Dirk Gronert wrote: > > > >>Philippe Guillard wrote: > >> > >>>Hi all, > >>> > >>>I need to pass a paramter from URI to the portal and somehow access it > >>>from my coplets. > >>>More clearly URI could be : samples/blocks/portal/portal?my_param="foo" > >>>or : samples/blocks/portal/foo > >>> > >>>I tried this : > >>> > >>> > >>> > >>> > >>> > >>> > >>>works fine for the anonymous page coplets, but as soon as the user logs > >>>in, a new session object is created and my paramter is lost. > > because as an anonymous user you are logged in as an anonymous that > means you have a session-object! if you try to login with a other name > the old session of the anonymous-user is terminated (with all contexts) > and a new will be created. So you have to store the parameter in the > session after the login is procceed! that is possible becaus the request > object is in all components available! !!! > > I hope that hepls you! > > Dirk > >>> > >>>I tried also to use a global sitemap parameter, but don't know how to > >>>pass it to mounted subsitemaps where my coplets are... > >> > >>if you set the global sitemap parameter in the rootsitemap you can use > >>it in alle subsitemaps. e.g.: {global:name}, so you donn't have to pass it! > >> > >>Dirk > >> > >>>Any idea ? > >>> > >>>Regards, > >>> > >>>Phil > >> > >> > >>- > >>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]
portal-many subdomains-vhosts
Hi all, Hope somebody can give me hints/suggestions on this : I plan to have many categories as subdomains, i need: (abstracting all the virtual hosting or apache http mod_rewrite stuff) http://myhost.mydomain.com/category1/portal http://myhost.mydomain.com/category2/portal ... http://myhost.mydomain.com/categoryN/portal I use portal engine, coplets/profiles/users/roles are similar, but with data relevant to the right category, say like Yahoo groups. I've found 2 ways to render this : - use automount to mount as many sitemaps/folders as i have categories and implement maybe as many portals in cocoon.xconf...I think this will be far too heavy. - from now i used redirects : in samples/blocks/portal/stemap.xmap: and use session parameter "cat" to feed my coplets with relevant data That way i can launch http://localhost:/samples/blocks/portal/cat/category1/portal http://localhost:/samples/blocks/portal/cat/category2/portal and stay artificially in the respective folder. Not clean isn't it? Problems are : - Performance, not optimal for caching, i have many redirections... - I can't pass from category1 to category2 from URI part of the browser, since cachingURI coplets need an event to refresh - When the user logs in, i have new session object, i bypassed this by putting the session parameter as hidden field in the login form and then put it again in the session...I plan an action extracting the category from requestURI and making it available to the pipeline. Any idea how to do this better? Regards, Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xlink:href inside svg stylesheet not finding file
Hi, I've found this in the mailist with no response. Somebody an idea ? Regards, Phil On Mon, 2004-03-15 at 08:59, Joel McConaughy wrote: > I am trying to render some dynamic text data into a jpg using svg2jpeg. > Inside the stylesheet I have added the svg tags, one of which is an > image tag that references a background image: xlink:href="image.jpg">. If I put a fully-qualified URL there like > http://www.me.com/image.jpg, it works fine. But if I try to reference > the pipeline ora simple relative url, it doesn't find the image. I've > tried the following: > > xlink:href="image.jpg" with the image in the cocoon application directory > xlink:href="cocoon:/image.jpg" with a pipeline that does return the > image with the URL http://cocoonapp/image.jpg > xlink:href="context://image.pg" > > Does anyone have some sage advice for how I can make this URL relative > to the current cocoon app directory? Thanks . > > Joel > > > - > 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: xlink:href inside svg stylesheet not finding file
Thanks Derek! On Fri, 2004-08-06 at 21:48, Derek Hohls wrote: > I am not sure image references *can* be made relative... > there have been a number of posts on this issue before! > Best way is to pass the context to the stylesheet resp. > for creating the image link, thereby avoiding this problem > altogether. > > Simple and it works. > > >>> [EMAIL PROTECTED] 2004/08/06 02:20:15 PM >>> > Hi, > > I've found this in the mailist with no response. Somebody an idea ? > > Regards, > Phil > > On Mon, 2004-03-15 at 08:59, Joel McConaughy wrote: > > I am trying to render some dynamic text data into a jpg using > svg2jpeg. > > Inside the stylesheet I have added the svg tags, one of which is an > > image tag that references a background image: > xlink:href="image.jpg">. If I put a fully-qualified URL there like > > http://www.me.com/image.jpg, it works fine. But if I try to > reference > > the pipeline ora simple relative url, it doesn't find the image. > I've > > tried the following: > > > > xlink:href="image.jpg" with the image in the cocoon application > directory > > xlink:href="cocoon:/image.jpg" with a pipeline that does return the > > image with the URL http://cocoonapp/image.jpg > > xlink:href="context://image.pg" > > > > Does anyone have some sage advice for how I can make this URL > relative > > to the current cocoon app directory? Thanks . > > > > Joel > > > > > > > - > > 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]
login to portal from a redirectTo
Hi all, Is it possible to login automatically to portal from an uri (or redirect), let's say like cocoon.redirectTo( "cocoon:auth-login?name=guest&password=guest",true)... Regards, Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: load data in CForm
Hi, Easy if you use flowscript. You set manually: se samples/blocks/forms/form1.flow Or from database : see OJB sample with cforms and bind :samples/blocks/ojb/jdo/forms/employee Phil On Sun, 2004-08-08 at 16:06, Dmitry Tatarkin wrote: > Hello, > > I am trying to use CFrom for form handling and faced with a problem. How > I can to set some data(from database or GET,POST) to the form when it's > rendered through form.showForm()? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
set cookie path
Hi, I need to set cookie path to something easy to get back like "/". I use cookie stylesheet in XSP (xmlns:xsp-cookie="http://apache.org/xsp/cookie/2.0";) I didn't find something like Hoe could i do this ? Regards, Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
CachingURICoplet versus URICoplet and Refresh
Hi, Question1: I'd like to know if there is another way to refresh CachingURICoplet than setting bookmarks or cl:link evrywhere, or even invalidate the cache. Maybe for that purpose i should use URICoplets ? Question2: Until now i adopted this rule : if i need CForms + Flow (continuation) or internal links that need to be transformed by portal-html-eventlink transformer i use CachingURI Coplets, otherwise i use URI Coplets. Is this a right idea ? Regards, Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: CachingURICoplet versus URICoplet and Refresh
Thanks Carsten, I profit you are here for a last question, same subject : In CachingURI i develop coplets without trouble outside portal and know my links will be transfomed to events. In URI coplets i find the only solution is to set copletData/attributes via cl:link or bookmark and use them in generator/transformer etc... Is this right or there is some other way? Regards, Phil On Thu, 2004-08-19 at 21:47, Carsten Ziegeler wrote: > > > > Question1: > > I'd like to know if there is another way to refresh > > CachingURICoplet than setting bookmarks or cl:link evrywhere, > > or even invalidate the cache. Maybe for that purpose i should > > use URICoplets ? > > > You can invalidate the cache "manually" from within flow or > any component using Java. > > > Question2: > > Until now i adopted this rule : if i need CForms + Flow > > (continuation) or internal links that need to be transformed > > by portal-html-eventlink transformer i use CachingURI > > Coplets, otherwise i use URI Coplets. Is this a right idea ? > > > This depends, but basically: yes. The caching uri coplet is a > must for cforms + flow (or for just flow). It caches the content > (or the view) of the coplet until an action is performed in this > coplet. > The uri coplet does not cache, so each time the page is displayed > the content is fetched from the source again. If this is a heavy > operation it might be wise to cache this content as well either > using the cachinguricoplet or using a usual cocoon pipeline that > uses the cocoon caching mechanism. > > HTH > Carsten > > > - > 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: CachingURICoplet versus URICoplet and Refresh
Thanks a lot! On Fri, 2004-08-20 at 17:58, Carsten Ziegeler wrote: > Philippe Guillard wrote: > > > > Thanks Carsten, > > > > I profit you are here for a last question, same subject : > ;) > > > > > In CachingURI i develop coplets without trouble outside > > portal and know my links will be transfomed to events. > Yepp. > > > > > In URI coplets i find the only solution is to set > > copletData/attributes via cl:link or bookmark and use them in > > generator/transformer etc... Is this right or there is some other way? > > > Yes, this is basically right. So, you have more work to do in your > coplet and it's then tied to the portal. This is ok for simple coplets, > but if you have complex coplets with logic etc. I would prefer > the caching uri coplet as it takes care of everything; and you're > implementation is not tied to the portal. > > Carsten > > Regards, > > > > Phil > > > > On Thu, 2004-08-19 at 21:47, Carsten Ziegeler wrote: > > > > > > > > Question1: > > > > I'd like to know if there is another way to refresh > > CachingURICoplet > > > > than setting bookmarks or cl:link evrywhere, or even > > invalidate the > > > > cache. Maybe for that purpose i should use URICoplets ? > > > > > > > You can invalidate the cache "manually" from within flow or any > > > component using Java. > > > > > > > Question2: > > > > Until now i adopted this rule : if i need CForms + Flow > > > > (continuation) or internal links that need to be transformed by > > > > portal-html-eventlink transformer i use CachingURI Coplets, > > > > otherwise i use URI Coplets. Is this a right idea ? > > > > > > > This depends, but basically: yes. The caching uri coplet is > > a must for > > > cforms + flow (or for just flow). It caches the content (or > > the view) > > > of the coplet until an action is performed in this coplet. > > > The uri coplet does not cache, so each time the page is > > displayed the > > > content is fetched from the source again. If this is a > > heavy operation > > > it might be wise to cache this content as well either using the > > > cachinguricoplet or using a usual cocoon pipeline that uses > > the cocoon > > > caching mechanism. > > > > > > HTH > > > Carsten > > > > > > > > > > > - > > > 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: portal-html-eventlink transformer
Try Then it does not transform links. Phil On Tue, 2004-09-07 at 04:04, Hans Thomas Nordeck wrote: > Hi, > > I'm using the portal-html-eventlink transformer for some application > coplets. > > When I've got a link with 'mailto:' inside the href attribute, the > transformer makes a portal Link out of it. That's of corse leading to > 'The coplet content is currently not available.'. > > How can I avoid that? Is it a bug ? > > Tfh, > > Hans Thomas Nordeck > (Executive IT Manager) > > Juwi MacMillan Group GmbH > Bockhorn Nr. 1 > D - 29664 Walsrode > > T. +49 5162 98 15 85 > F. +49 5162 98 15 61 85 > E. [EMAIL PROTECTED] > www.juwimm.com > > > > - > 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]
Portal coplet maximize
Hi all, I'd like to be able to maximize a coplet but still see my tabs (tab.xsl) to navigate. Is there a renderer for this and/or globally is there a way? Regards, Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Show/Hide Widgets
Hi, I'm looking also for a simple example of union/struct other than form_gui, as it is not so easy to understand, i followed this thread (with that name) catched in July. Would be please to take a look at that sample! Thanks, Phil On Mon, 2004-07-05 at 18:35, Vilya Harvey wrote: > Joerg Heinicke wrote: > > The good news: It is not an error in the implementation, but in your form > > definition. But it's still a "not so intuitive" implementation then. > > Thanks so much for this! With your alterations it works like a charm. > > > The solution (hoping that Tim also reads it): > > The implicite cases are really hard to understand, especially as there is > > fb:case and ft:case, but no fd:case. The fd:struct I use also has effect on the > > template and binding (I have to add them there too to get the same tree) and > > complicates them unnecessarily. Why don't we simply introduce explicite fd:case > > - until we have masks ;-) > > > > WDYT? > > If we had fd:case, wouldn't that imply that we'd have to duplicate widget > declarations when the same widget appears in more than one case? > > > To Vilya: That's a very nice sample of using union. As I was searching for a > > simpler sample than the Form Model GUI do you want to provide it to the project? > > Maybe with the "real" functionality of editing a row as for the moment one can > > only cancel the editing. Would be really cool - and I have less work to do ;-) > > Sure thing, I'm happy to contribute it. I don't quite have the editing part > working yet, but will submit it as soon as I do. How do I go about > submitting it? > > BTW I also have an extension of the repeater widget which handles > pagination, that I'd like to submit. > > Cheers, > Vil. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: read partial an xml file in xsp
Hi, If you want to insert all the file and the file is static (no XSP tags) --> cinclude transformer (http://cocoon.apache.org/2.1/userdocs/transformers/cinclude-transformer.html) or As you say "just some nodes" and/or the file you include contains XSP tags, i think you need some XSL, i suggest you make your owm XSP logicsheet that you call from your XSP. Phil Stefan Geelen wrote: Hi, I could not find how I can manage to read some nodes of an xml file in an xsp page. Can someone give an example or more information ? Regards, Stefan _ Free mail? MSN Hotmail ! http://www.msn.be/hotmail - 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]
Portal stylesheets and sitemap parameters
Hi all, I can get a sitemap parameter in portal-page.xsl, but can't find a way to get it in other stylesheets like linktab.xsl. Any idea? In the main portal sitemap i have : In portal-page.xsl: i get my parameter sucessfully But in linktab.xsl: then gives nothing. I don't understand how stylesheets are imbricated? Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Portal stylesheets and sitemap parameters
I'll check, thanks. Ralph Goers wrote: portal-page.xsl is invoked in the portal pipeline, so passing sitemap parameters is easy. The "tab" stylesheets are configured in cocoon.xconf and are invoked via the XSLTAspect during portal processing. The sitemap is not involved in that. However, you can pass parameters to these stylesheets. They can be configured into the XSLTAspect definition or in the portal layout as layout parameters. Both can contain references to input modules. HTH Ralph Philippe Guillard said: Hi all, I can get a sitemap parameter in portal-page.xsl, but can't find a way to get it in other stylesheets like linktab.xsl. Any idea? In the main portal sitemap i have : In portal-page.xsl: i get my parameter sucessfully But in linktab.xsl: then gives nothing. I don't understand how stylesheets are imbricated? Phil - 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: Portal stylesheets and sitemap parameters
I get my response there so in case somebody need this too : http://archives.real-time.com/pipermail/cocoon-devel/2004-October/037227.html Philippe Guillard wrote: Hi all, I can get a sitemap parameter in portal-page.xsl, but can't find a way to get it in other stylesheets like linktab.xsl. Any idea? In the main portal sitemap i have : In portal-page.xsl: i get my parameter sucessfully But in linktab.xsl: then gives nothing. I don't understand how stylesheets are imbricated? Phil - 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 portal tabs
The most important thing (just a suggestion because you didn't show it here), is that you have "quotehistory" as a tab name in your layout, not the name of the coplet : quotehistory-1 Phil Anna Bikkina wrote: I am using pageLabels. Here is my sitemap . I tried id and pageLabel=quotehistory in the redirect-to uri none of them worked. value="portalhandler"/> value="{session-attr:traderid}"/> value="{session-attr:sessionid}"/> value="{session-attr:project}"/> uri="portal?pageLabel=quotehistory"/> Here is part of portal.xml in profiles/copletdata directory. Security Quote History: URICoplet uri xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>cocoon:/coplets/search/quotehistory.xsp In portal.xml in copletinstancedata here is the part of quotehistory quotehistory Am I doing something wrong here. Thank you for replying Anna. On Fri, 2004-12-10 at 22:40, Ralph Goers wrote: Anna, I can't tell if you are using page labels or bookmarks. If you are not using either one then this just won't work. If you are using bookmarks then I guess we'd also need to see the configuraiton for that. If you are using page labels I'd expect the url to be portal?pageLabel=quotehistory unless you changed the request parameter name in the configuration. Ralph Anna Bikkina wrote: Here is my sitemap. I am using redirect-to uri portal?id=quotehistory quotehistory is the name of second tab in the portal page. I want that to be selected when user opens the portal page. value="{session-attr:traderid}"/> value="{session-attr:sessionid}"/> value="{session-attr:project}"/> In portal.xml in profiles/copletdata directory I have the this information along with the other tabs Security Quote History: URICoplet uri xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>cocoon:/coplets/search/quotehistory.xsp Not sure where it is going wrong but it doesnt go to tab2. I goes to tab1 as it does by default. On Thu, 2004-12-09 at 16:14, Ralph Goers wrote: Please post the relevant portions of your sitemap. Ralph Anna Bikkina said: I was doing exactly the same. It didnt work. Is there any other way I can try. Thank you for answering. Anna. - 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: jCaptcha & Cocoon
Jonothan Stribling wrote: Hello, I'm wondering if anyone has integrated jCaptcha (http://jcaptcha.sourceforge.net/) into Cocoon, and have some tips. Alternatively are there any Cocoon Captcha's? Cheers Jonothan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] We did it and discovered there is a cocoon sample! See samples/blocks/scratchpad/image-auth/ Otherwise you create a reader inspired from jcaptcha. Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Reduce image size in databasereader?
Hi all, I discovered imagereader is able to reduce the image size in terms of kb for light image display with paramters width and height. I'd like to do the same with the databasereader. I'd like to know if somebody did it and if that makes sense. Regards, Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Reduce image size in databasereader?
Grzegorz Tañczyk wrote: Hello Philippe, I can send You source of my custom reader(database and image readers connection). It takes three parameters: width, height and quality. It is not very professional, so I think that I shouldn't add it to any repository :)) Monday, January 10, 2005, 6:20:54 PM, you wrote: PG> Hi all, PG> I discovered imagereader is able to reduce the image size in terms of kb PG> for light image display with paramters width and height. I'd like to do PG> the same with the databasereader. I'd like to know if somebody did it PG> and if that makes sense. PG> Regards, PG> Phil PG> - PG> To unsubscribe, e-mail: [EMAIL PROTECTED] PG> For additional commands, e-mail: [EMAIL PROTECTED] Would be great! i'm not good in java, sure i will not criticize :-) Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
OJB WithJCS in cocoon
Hi all, Somebody did a try using OJB WithJCS described here ? : wiki http://wiki.apache.org/cocoon/UsingOJBWithJCS My configuration is Cocoon2.1.6 + default Jetty and Ojb stuff very similar to 2.1.6 ojb samples (SunOJB jars) and i get the exception below. Regards, Phil org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): org.apache.ojb.broker.PersistenceBrokerException: java.lang.NullPointerException . . Caused by: java.lang.NullPointerException at org.apache.jcs.config.OptionConverter.findAndSubst(OptionConverter.java:257) at org.apache.jcs.config.OptionConverter.instantiateByKey(OptionConverter.java:148) at org.apache.jcs.engine.control.CompositeCacheConfigurator.parseElementAttributes(CompositeCacheConfigurator.java:332) at org.apache.jcs.engine.control.CompositeCacheConfigurator.parseRegion(CompositeCacheConfigurator.java:223) at org.apache.jcs.engine.control.CompositeCacheConfigurator.parseRegion(CompositeCacheConfigurator.java:205) at org.apache.jcs.engine.control.CompositeCacheManager.getCache(CompositeCacheManager.java:319) at org.apache.jcs.engine.control.CompositeCacheManager.getCache(CompositeCacheManager.java:278) at org.apache.jcs.engine.control.CompositeCacheManager.getCache(CompositeCacheManager.java:271) at org.apache.jcs.JCS.getInstance(JCS.java:65) at org.apache.ojb.broker.cache.JCSHelper.newInstance(Unknown Source) at org.apache.ojb.broker.cache.ObjectCacheJCSImpl.(Unknown Source) at org.apache.ojb.broker.cache.ObjectCacheJCSPerClassImpl.getCachePerClass(Unknown Source) at org.apache.ojb.broker.cache.ObjectCacheJCSPerClassImpl.getCache(Unknown Source) at org.apache.ojb.broker.cache.AbstractMetaCache.cache(Unknown Source) at org.apache.ojb.broker.cache.AbstractMetaCache.cache(Unknown Source) at org.apache.ojb.broker.cache.InternalCache.pushToRealCache(Unknown Source) at org.apache.ojb.broker.cache.InternalCache.disableMaterializationCache(Unknown Source) at org.apache.ojb.broker.accesslayer.RsIterator.getObjectFromResultSet(Unknown Source) at org.apache.ojb.broker.accesslayer.RsIterator.next(Unknown Source) at org.apache.ojb.broker.core.QueryReferenceBroker.getCollectionByQuery(Unknown Source) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jCaptcha & Cocoon
Marc-Antoine Garrigue wrote: Hi, I would be honored to help you to implement such a JCatpcha reader for cocoon. Best regards. Marc-Antoine Garrigue Jonothan Stribling wrote: Hello, I'm wondering if anyone has integrated jCaptcha (http://jcaptcha.sourceforge.net/) into Cocoon, and have some tips. Alternatively are there any Cocoon Captcha's? Cheers Jonothan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] We did it and discovered there is a cocoon sample! See samples/blocks/scratchpad/image-auth/ Otherwise you create a reader inspired from jcaptcha. Phil Something wrong with the captcha in the Scratchpad? Anyway i was not clear in my previous mail, i have jcaptcha as a Reader component. it is maybe not top-pro, but if you want to check it... Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Portal] menus and i18n
Hi all, Does anybody has a plan for making the portal menus /tabs i18n? I understand they are prepared at beginning of portal creation by the respective renderers tab/linktab etc... As the profile/layout/portal.xml file is prepared once i see 4 solutions: 1- a portal instance for each language (I think i loose the flexibiulity of i18n support) 2- as many layouts as languages and a profile for each language (I'm worried about the anonymous case) 3- do an i18n transformation on the main portal pipeline after the portal-page.xsl XSL transformation (I'm worried it would slow down performance to parse all portal pages again) 4- do the menus myself inside coplets (then i think i can't access the parameters made disponible by the renderer and disponible in tab.xsl/limktab.xsl, for instance "named-item" , and i have to do by myself something less flexible than the one already done in the portal. One positive thing : in cachingURI coplets, i would have cache) And i wonder about page-labels. Anybody any idea? Regards, Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Portal] coplet transformer links
David Duhme wrote: Are you using CachingURICoplet or URICoplet ? I'm using the CachingURICoplet David. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Hi David, Just a hint: i keep cl:links for URI coplets, with cachingURI coplets i usually use cl:links and bookmarks to transfer some data to another coplet or pass something about its layout. If the targeted pipeline is still the same- say temporaryAttributes/application-uri is the same-, i think it is much easier to use a usual Next, the portal-eventlink-transformer coming wth CachingURI will let your coplet pipeline know about the new req-params by events way . Then you can style it too. I guess the cachingURI coplets have been designed to do this. You develop your app and then put it in the portal as it is. If you still want the cl:link, no idea, but just try replace $copletid by its actual value and add the temporaryAttributes/application-uri value. Hope it helps, Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Portal] menus and i18n
David Duhme wrote: Hi Philippe, I also have the requirement for my portal prototype to do i18n. 3- do an i18n transformation on the main portal pipeline after the portal-page.xsl XSL transformation (I'm worried it would slow down performance to parse all portal pages again) Thats what I've implemented at the moment and I didn't recognize any big problems concerning the performance. What seams to be a bit more difficult is the translation of the more dynamic contents of the portal. So if anyone has a good concept for portal internationalization, I would be interested in that. Regards, David. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Thanks David, Ok to me. I don't know what you mean by "more dynamic contents", you mean page-labels in the uri ? Otherwise it is still possible to pass a parameter to the main portal-page.xsl or even have one by language. Regards, Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Portal] coplet transformer links
David Duhme wrote: Hi, Are you using CachingURICoplet or URICoplet ? I'm using the CachingURICoplet David. Hi David, Just a hint: i keep cl:links for URI coplets, with cachingURI coplets i usually use cl:links and bookmarks to transfer some data to another coplet or pass something about its layout. If the targeted pipeline is still the same- say temporaryAttributes/application-uri is the same-, i think it is much easier to use a usual hred"uri?req-param1&req-param2">Next, the portal-eventlink-transformer coming wth CachingURI will let your coplet pipeline know about the new req-params by events way . Then you can style it too. I guess the cachingURI coplets have been designed to do this. You develop your app and then put it in the portal as it is. If you still want the cl:link, no idea, but just try replace $copletid by its actual value and add the temporaryAttributes/application-uri value. Hope it helps, Phil Thanks Phil. I think I will try it again with request parameters because it didn't work with , wether with the cachingURI coplet nor with the URI coplet. With the URIcoplet the pipeline is called again when I hit a link but the parameter doesn't change and the old one from copletinstancedata/portal.xml is used. But I need to execute a diiferent query in my generator, so somehow I have to pass the changed parameters to the generator. Maybe me pipeline is still wrong and I'm fetching the old parameters all the time. Here again the part of my stylesheet: Perhaps you could tell me the difference between 'temporaryAttributes' and 'attributes' and what's the difference in definig attributes in 'copletdata/portal.xml' or 'copletinstancedata/portal.xml'. Regards, David. Hum, CL:links are working anyway, maybe you should try with an easier/simplier exemple with just 1 parameter and simple string value, i suggest to use XSP and log the values you get. Looking at your samples i feel you can also use {request-param:query} in your sitemap for request parameters if it's the only thing missing!! From my notes : - {copletData/attributes/query} to change an attribute initialized in file copletData/portal.xml - {copletinstanceData/attributes/query} to change an attribute you initialized in file copletinstancedata/portal.xml - {attributes/query} to set/change attribute never initialized - {temporaryAttributes/application-uri} is the key point of cachingURI, best way to study it is looking at portal/coplets/html/sitemap.xmap Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JAVA or PHP
Antonio Gallardo wrote: On Lun, 7 de Febrero de 2005, 9:35, fadi qutaishat dijo: Hi all, My name is Fadi, I have newly subscribed to the list ! My problem is that I have learnt Cocoon’s basics and my current research project requires the system that I am working on to have more advanced features. Before answering this question, please explain us more about your background. Best Regards, Antonio Gallardo I have read that one way to extends the Cocoon’s capabilities is to write XPS files which requires a knowledge in Java. Unfortunately, I don’t have the Java skills. I have been told that I can do the advanced things through using the PHP (which also I know nothing about PHP!) and then incorporate that in Cocoon. I have searching for stuff on the internet that shows how use the PHP inside Cocoon but I have not fully understood their ideas due to the lack of knowledge in PHP. I am in the position that I have to decide to learn Java to write XSP or to learn the PHP!. Please could any one advise me ? even on learning something different. Kind Regards, Fadi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] I f you are totally new for developement, and want to make a website quickly, sure you should go to PHP. If you have time and you are curious, i suggest Java and Cocoon, will be hard work at beginning but fun afterwards, that's my case! Developping in XSP or something else with cocoon will not require so deep knowledge in Java anyway, this is why it is a framework. Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: portal and cform integration
Johnson wrote: Hi! I'm trying to use cform in a portal,It work fine except image src location and client side script. the image src location must use the portal's relation location, not the orignal one ex. cal.gif and help.gif must put to the portal sub directory. the client side script define in head tag disappeared,so the cform can't run it's own client side script. if i put the calendar.js and others to portal-page.xsl,the portal only show the main page,click other tab just show the main page. is there anyone integrating them successfully. Best regards Johnson Hi Johnson, I think you already discovered it. The reason is that with portal, your form is in a coplet, and the window.xsl stylesheet for the coplet only copies , not the headers, and your uri stays /samples/blocks/portal. So that's it, your have to put what you need in the portal-page.xsl header for css/js accessing something likee portal/skins/common/css-or-js or anywhere. Then you say you can't go to other tabs? Do you use cachingUri coplet? Do you use pageLabel? Maybe you should tell what link you see on the tab, something like portal?pageLabel=tab1.tab2 or portal?cocoon-portal-event=X? You don't have this when you remove the css/js? (Xin Nian hao:-) ) Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: portal and portal integration
Johnson wrote: >Hi Phil, happy new year. > >1.I change the sample portal.xml in copletdata from >cocoon://samples/flow/jxcalc/ to cocoon://samples/blocks/forms/form1.flow yes >it's a CachingURICoplet >2.I add the javascript where the forms-calendar-styling.xsl had to >portal-page.xsl >3.I can login to portal,the main tag page is ok,I see the source of this >page,javascript ok,but when I click news weblogs ... apps tab,it always show >the main tab page > >Best Regards > >Johnson At ShenZhen > > Hum, i'll try anyway the calendar before the end of week and let you know, i don't think you need it for today :-). Maybe try replace in forms-calendar-styling.xsl :
Re: portal and cform integrate
Johnson wrote: Hi phil! I solve most problem,except anchor position is wrong. it'll show the calendar at the top of the page I'll try to solve it later. or may you can teach me,tks. The step I said before just need to add some lines to pipeline before and copy all javascript to the location to Reinhard it a problem to have two instance in a page, not only the id but also div so it's not a good idea to have two same cform instances in one page I think ,if you want to,try use frame to sep them best regards johnson Good. Sure in portal you need a pipeline to get js, css, gif, jpeg etc... For anchor position i remember i put on top of my coplet or in the CForm template, next to the date field: Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[portal] html head for CForms
Hi all, Since i put some CForms in Portal coplets i added references to js/css resources directly in portal-page.xsl. Today i'd like to clean my pages = having js references only when needed and mostly reuse CForms stylesheets. After a check in samples/blocks i've found these XSL transformations: 1. portal-page.xsl Then cinclude is applying the coplet contents, so we have only inside the coplet page : 1. simple-page2html.xsl 2. forms-samples-styling.xsl I see only one solution to apply the heads dynamically : - Put the head stuff in the body in forms-samples-styling.xsl in tag - Then add a stylsheet after cinclude like this : Complicated. Somebody did it before? Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cform fi:styling
Hi all, It seems that the usual way to add some attributes to a field in CForms is to use fi:styling tags. I tried this on a fd:field without success : , it seems that i can only add one attribute, in that case list-type or onChange, but not the two. I checked forms-field-styling.xsl and added : No result the onChange attribute is not copied. Any idea? Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cform fi:styling
Thanks Chris. Christian Könitzer wrote: Hi You define your field's in a file called e.g. "forms.xml": (this is an example of a dropeDown List) bookmarkCoplet.availableBookmarks list-path="availableBookmarks" label-path="." value-path="."> But your styling-information doesn't belong inside it. For that you have an other file called e.g. "template.xml" (it's like yout HTML-file): You see, for each styling information you can make an own entry. So, if you like to make a radio-botton, but this example in your "forms.xml": OBJEKTART STRASSE ANDERE_ANGABEN and this example in your "template.xml": [as much more styling as you like to have] I hope you understand :) Regards Chris Philippe Guillard wrote: Hi all, It seems that the usual way to add some attributes to a field in CForms is to use fi:styling tags. I tried this on a fd:field without success : , it seems that i can only add one attribute, in that case list-type or onChange, but not the two. I checked forms-field-styling.xsl and added : No result the onChange attribute is not copied. Any idea? Phil - 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: Cocoon 2.1.6 - CForms multipart request
Hi Nicole, Can you provide more informations on what you did? In which file? As i didn't see your message I started this thread : http://www.mail-archive.com/dev@cocoon.apache.org/msg28677.html in devlist explaining the same problem. Thanks Phil Nicole wrote: Additional information: I use the forms within a portal and use the CopletTransformer. By stepping through the code I found out that the CopletTransformer different depending on the enctype. There are some lines in "protected void output(...)" like: [...] if ( enctype== null || "application/x-www-form-urlencoded".equals(enctype)) { [...] which made my forms behave different. When I add "|| "multipart/form-data".equals(enctype)" in the if-clause it works fine for me. Is there another way (without canging the code) to get that result or has the code really have to change? Nicole - 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]
[AuthFW] authentication/ID from Java code
Hi all, I found this wiki: http://wiki.apache.org/cocoon/AuthFWWithFlow, tried this in an action to get thie ID of the user in the Portal, added the import statements that seem to be needed : .. import org.apache.cocoon.webapps.session.SessionManager; import org.apache.cocoon.components.*; public class auth extends ServiceableAction implements ThreadSafe { public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String src, Parameters par) throws Exception { org.apache.avalon.framework.component.ComponentManager componentManager = CocoonComponentManager.getSitemapComponentManager(); SessionManager sessionManager = (SessionManager)componentManager.lookup(org.apache.cocoon.webapps.session.SessionManager.ROLE); String user = sessionManager.getContextFragment( "authentication", "/authentication/ID").getFirstChild().getNodeValue(); Eclipse says : "CocoonComponentManager cannot be resolved". I can't find why. My knowledge in Java is still poor...(cocoon 2.1.6rls) Somebody can help ? Another related question : I use Portal so it uses Authentication Framwork anyway, but until now i was adding some attributes with Java Session object, just because it is easier for mee to get that parameters in java actions. Is there something wrong with this practice ? It looks like this in authentication part: userName guest
Re: sendmail action problem
Just suggestion cause i don't use this action, but docs say the name of the parameter for body is "body" and not "src"? Phil Arsen A. Gutsal wrote: Forgot to mention that I'm using Cocoon 2.1.6 On Thu, 2005-03-24 at 16:18 +0200, Arsen A. Gutsal wrote: I use in sendmail action. And cocoon:/registration_email.jx returns correct HTML file. But sendmail action adds it as ATACHMENT to the email, but not as the BODY. This is a problem. Can someone help me? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: [AuthFW] authentication/ID from Java code
Hi Claus, thanks for the response. I think i lack some understanding of the AuthenticationFw/ SessionContext, and that makes my questions not really clear. Now i can read/get any fragment with InputModule/Java(my 1st question was stupid java question sorry)/Flow /XspSessionFw logicsheet and set them at login. But what if i need to apply some changes? Example: Say i put nickname in the data section, toto and i want to afford the possibility for the user to change it's Nickname via a form, then change it in DB and session without having to login again. Should i re-process the internal-only pipeline (sunrise-authuser) with the new parameters? Or try to use some methods like org.apache.cocoon.webapps.session.setContextFragment() or appendContextFragment()? This is why i was meaning it seems to me complicated to manipulate compare to session.setAttribute("nickname"). Regards, Phil Claus Straube wrote: Hello Phil, pherhaps I don't understand the second question right, but you can add any element under the data element. For example bar... If you use an action you can give the content 'foo' to your action with the parameter element: __ Claus Straube Francéstrasse 31 80997 München +49 (089) 14 16 682 => -Ursprüngliche Nachricht- => Von: Philippe Guillard [mailto:[EMAIL PROTECTED] => Gesendet: Freitag, 25. März 2005 06:01 => An: users@cocoon.apache.org => Betreff: [AuthFW] authentication/ID from Java code => => Hi all, => => I found this wiki: http://wiki.apache.org/cocoon/AuthFWWithFlow, tried => this in an action to get thie ID of the user in the Portal, added the => import statements that seem to be needed : => => .. => import org.apache.cocoon.webapps.session.SessionManager; => import org.apache.cocoon.components.*; => => public class auth extends ServiceableAction implements ThreadSafe { => => public Map act(Redirector redirector, SourceResolver resolver, => Map objectModel, String src, Parameters par) throws Exception => { => => org.apache.avalon.framework.component.ComponentManager => componentManager = CocoonComponentManager.getSitemapComponentManager(); => SessionManager sessionManager = => (SessionManager)componentManager.lookup(org.apache.cocoon.webapps.session => .SessionManager.ROLE); => String user = sessionManager.getContextFragment( => "authentication", "/authentication/ID").getFirstChild().getNodeValue(); => => Eclipse says : "CocoonComponentManager cannot be resolved". I can't => find why. My knowledge in Java is still poor...(cocoon 2.1.6rls) => => Somebody can help ? => => Another related question : I use Portal so it uses Authentication => Framwork anyway, but until now i was adding some attributes with Java => Session object, just because it is easier for mee to get that parameters => in java actions. Is there something wrong with this practice ? => It looks like this in authentication part: => userName => guest =>
[Auth-FW] Edit authentication/data nodes
Hi, I use Portal, so i use Auth-Fw, and want to change the data part for a user without asking him to sign-in again. Lest's say i put nickname in the data section, foo_id foo_nickname and i want to afford the possibility for the user to change it's Nickname. Is there a simple way? Today i can get the nickname from Sitemap (InputModule), Flow, Java, XspSessionFw logicsheet, but i don't know a simple way to use the set functions. AuthenticationFw/ SessionContext seems to be there to make session attributes manipulation easier, so i think i lack some understanding on it. For the moment i just use the "normal" Session object doing this after the node made in XSP: foo_id session.setAttribute("nickname", "foo_nickname"); (i'm sad to mix these 2 things and i do not use the framework provided...) Regards, Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Auth-FW] Edit authentication/data nodes
Thanks a lot Jan, Good idea to use another session context and not the one used by authentication framwork for the elements i need to save. I also thought none of the set functions you shown here where available, i'll try. Just one question reminds: doc says session framwork provides the session context that is XML data storage in the session, as i need to store a few parameters without hierarchy, i still wonder what is the advantage of using it instead of simply use sesion attributes (session.setAttribute("nickname", "foo")) ? Regards, Phil Jan Hoskens wrote: Hi, When I first used cocoon, I had xsp's all around. If I remember correctly, I did something like this to get the value from the authentication session: http://apache.org/xsp"; xmlns:xsp-session-fw="http://apache.org/xsp/session-fw/1.0";> String email = ; String login = ; email: email user: login I never changed the value though and looking at the session-fw.xsl stylesheet, it seems that there isn't a way to set values. You may Nowadays, I don't use xsp anymore. I now use flowscript to access the authenticationsession and pass it in my bizdata: var bizdata = new Object(); var contextMan = null; try { contextMan =cocoon.getComponent(Packages.org.apache.cocoon.webapps.session.ContextManager.ROLE); var sessionContext = contextMan.getContext("authentication"); var id = documentFragment2String(sessionContext.getXML("/authentication/ID")); var userEmail = documentFragment2String(sessionContext.getXML("/authentication/data/UserEmail")); bizdata["id"] = id; bizdata["email"] = userEmail; cocoon.sendPage("mypage", bizdata); } finally { cocoon.releaseComponent(contextMan); } Pay attention to some restrictions on the authenticationsession, there are some functions that are not available although the session interface does define them. Look at the api's to see what you can do with the authenticationsession: http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/webapps/authentication/context/AuthenticationContext.html If you need to alter a lot of data in the session, you may want to consider adding a session context for this specific task alone (so not touching the authentication session): contextManager =cocoon.getComponent(Packages.org.apache.cocoon.webapps.session.ContextManager.ROLE); if (!contextManager.existsContext("Information")) { contextManager.createContext("Information", null, null); } var sessionContext = contextManager.getContext("Information"); // showing how to set a result of a pipeline as xml in a sessioncontext var pipelineUtil = cocoon.createObject(Packages.org.apache.cocoon.components.flow.util.PipelineUtil); var document = pipelineUtil.processToDOM("mySessionSettingsToChange", null); var documentFragment = document.createDocumentFragment(); documentFragment.appendChild(document.getDocumentElement().cloneNode(true)); sessionContext.setXML("Bestuur", documentFragment); ... sessionContext.removeXML("..."); sessionContext.setAttribute("...", null); ... If you don't want to use flowscript, the same can be done with the session tags: myDynamicFormedPipelinePath There are probably some more ways to do the same so you may want to look around a bit longer. Kind regards, Jan Philippe Guillard wrote: Hi, I use Portal, so i use Auth-Fw, and want to change the data part for a user without asking him to sign-in again. Lest's say i put nickname in the data section, foo_id foo_nickname and i want to afford the possibility for the user to change it's Nickname. Is there a simple way? Today i can get the nickname from Sitemap (InputModule), Flow, Java, XspSessionFw logicsheet, but i don't know a simple way to use the set functions. AuthenticationFw/ SessionContext seems to be there to make session attributes manipulation easier, so i think i lack some understanding on it. For the moment i just use the "normal" Session object doing this after the node made in XSP: foo_id session.setAttribute("nickname", "foo_nickname"); (i'm sad to mix these 2 things and i do not use the framework provided...) Regards, Phil - 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: [Auth-FW] Edit authentication/data nodes
Thanks a lot Yan, Good idea to use another session context and not the one used by authentication framwork for the elements i need to save. I also thought none of the set functions you shown here where available, i'll try. Just one question reminds: doc says session framwork provides the session context that is XML data storage in the session, as i need to store a few parameters without hierarchy, i still wonder what is the advantage of using it instead of simply use sesion attributes (session.setAttribute("nickname", "foo")) ? Regards, Phil Jan Hoskens wrote: Hi, When I first used cocoon, I had xsp's all around. If I remember correctly, I did something like this to get the value from the authentication session: http://apache.org/xsp"; xmlns:xsp-session-fw="http://apache.org/xsp/session-fw/1.0";> String email = ; String login = ; email: email user: login I never changed the value though and looking at the session-fw.xsl stylesheet, it seems that there isn't a way to set values. You may Nowadays, I don't use xsp anymore. I now use flowscript to access the authenticationsession and pass it in my bizdata: var bizdata = new Object(); var contextMan = null; try { contextMan =cocoon.getComponent(Packages.org.apache.cocoon.webapps.session.ContextManager.ROLE); var sessionContext = contextMan.getContext("authentication"); var id = documentFragment2String(sessionContext.getXML("/authentication/ID")); var userEmail = documentFragment2String(sessionContext.getXML("/authentication/data/UserEmail")); bizdata["id"] = id; bizdata["email"] = userEmail; cocoon.sendPage("mypage", bizdata); } finally { cocoon.releaseComponent(contextMan); } Pay attention to some restrictions on the authenticationsession, there are some functions that are not available although the session interface does define them. Look at the api's to see what you can do with the authenticationsession: http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/webapps/authentication/context/AuthenticationContext.html If you need to alter a lot of data in the session, you may want to consider adding a session context for this specific task alone (so not touching the authentication session): contextManager =cocoon.getComponent(Packages.org.apache.cocoon.webapps.session.ContextManager.ROLE); if (!contextManager.existsContext("Information")) { contextManager.createContext("Information", null, null); } var sessionContext = contextManager.getContext("Information"); // showing how to set a result of a pipeline as xml in a sessioncontext var pipelineUtil = cocoon.createObject(Packages.org.apache.cocoon.components.flow.util.PipelineUtil); var document = pipelineUtil.processToDOM("mySessionSettingsToChange", null); var documentFragment = document.createDocumentFragment(); documentFragment.appendChild(document.getDocumentElement().cloneNode(true)); sessionContext.setXML("Bestuur", documentFragment); ... sessionContext.removeXML("..."); sessionContext.setAttribute("...", null); ... If you don't want to use flowscript, the same can be done with the session tags: myDynamicFormedPipelinePath There are probably some more ways to do the same so you may want to look around a bit longer. Kind regards, Jan Philippe Guillard wrote: Hi, I use Portal, so i use Auth-Fw, and want to change the data part for a user without asking him to sign-in again. Lest's say i put nickname in the data section, foo_id foo_nickname and i want to afford the possibility for the user to change it's Nickname. Is there a simple way? Today i can get the nickname from Sitemap (InputModule), Flow, Java, XspSessionFw logicsheet, but i don't know a simple way to use the set functions. AuthenticationFw/ SessionContext seems to be there to make session attributes manipulation easier, so i think i lack some understanding on it. For the moment i just use the "normal" Session object doing this after the node made in XSP: foo_id session.setAttribute("nickname", "foo_nickname"); (i'm sad to mix these 2 things and i do not use the framework provided...) Regards, Phil - 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: [Auth-FW] Edit authentication/data nodes
Thanks! Jan Hoskens wrote: Philippe Guillard wrote: Thanks a lot Jan, Good idea to use another session context and not the one used by authentication framwork for the elements i need to save. I also thought none of the set functions you shown here where available, i'll try. Just one question reminds: doc says session framwork provides the session context that is XML data storage in the session, as i need to store a few parameters without hierarchy, i still wonder what is the advantage of using it instead of simply use sesion attributes (session.setAttribute("nickname", "foo")) ? As far as I know a sessioncontext is like a container in your session. Every application can have it's own 'private' space in the session to store it's objects. This way the authentication framework reserves the context 'authentication' for its needs. If you only need to store some global attributes, the user session will be enough. If you need xml storage or want to have separate spaces for different goals/apps you might want to use contexts. Well that's my point of view of course, ;-) Kind regards, Jan Regards, Phil Jan Hoskens wrote: Hi, When I first used cocoon, I had xsp's all around. If I remember correctly, I did something like this to get the value from the authentication session: http://apache.org/xsp"; xmlns:xsp-session-fw="http://apache.org/xsp/session-fw/1.0";> String email = ; String login = ; email: email user: login I never changed the value though and looking at the session-fw.xsl stylesheet, it seems that there isn't a way to set values. You may Nowadays, I don't use xsp anymore. I now use flowscript to access the authenticationsession and pass it in my bizdata: var bizdata = new Object(); var contextMan = null; try { contextMan =cocoon.getComponent(Packages.org.apache.cocoon.webapps.session.ContextManager.ROLE); var sessionContext = contextMan.getContext("authentication"); var id = documentFragment2String(sessionContext.getXML("/authentication/ID")); var userEmail = documentFragment2String(sessionContext.getXML("/authentication/data/UserEmail")); bizdata["id"] = id; bizdata["email"] = userEmail; cocoon.sendPage("mypage", bizdata); } finally { cocoon.releaseComponent(contextMan); } Pay attention to some restrictions on the authenticationsession, there are some functions that are not available although the session interface does define them. Look at the api's to see what you can do with the authenticationsession: http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/webapps/authentication/context/AuthenticationContext.html If you need to alter a lot of data in the session, you may want to consider adding a session context for this specific task alone (so not touching the authentication session): contextManager =cocoon.getComponent(Packages.org.apache.cocoon.webapps.session.ContextManager.ROLE); if (!contextManager.existsContext("Information")) { contextManager.createContext("Information", null, null); } var sessionContext = contextManager.getContext("Information"); // showing how to set a result of a pipeline as xml in a sessioncontext var pipelineUtil = cocoon.createObject(Packages.org.apache.cocoon.components.flow.util.PipelineUtil); var document = pipelineUtil.processToDOM("mySessionSettingsToChange", null); var documentFragment = document.createDocumentFragment(); documentFragment.appendChild(document.getDocumentElement().cloneNode(true)); sessionContext.setXML("Bestuur", documentFragment); ... sessionContext.removeXML("..."); sessionContext.setAttribute("...", null); ... If you don't want to use flowscript, the same can be done with the session tags: myDynamicFormedPipelinePath There are probably some more ways to do the same so you may want to look around a bit longer. Kind regards, Jan Philippe Guillard wrote: Hi, I use Portal, so i use Auth-Fw, and want to change the data part for a user without asking him to sign-in again. Lest's say i put nickname in the data section, foo_id foo_nickname and i want to afford the possibility for the user to change it's Nickname. Is there a simple way? Today i can get the nickname from Sitemap (InputModule), Flow, Java, XspSessionFw logicsheet, but i don't know a simple way to use the set functions. AuthenticationFw/ SessionContext seems to be there to make session attributes manipulation easier, so i think i lack some understanding on it. For the moment i just use the "normal" Session object doing this after the node made in XSP: foo_id session.setAttribute("nickname", "foo_nickname"); (i'm sad to mix these 2 things and i do not use the framework p
Re: Could some help in this!
Hum, Maybe using redirection. But it seems you want to show a login page and then put user info in the session : you maybe should use Authantication framework? Phil fadi qutaishat wrote: Hi all, I have the following situation : The second match pattern builds a session context and loads its data from the first match pattern. How can I tell cocoon to automatically execute the second match pattern (i.e. without explicitly requesting it via the Internet explorer). is it possible to do this ? Many thanks, Fadi __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Email Capability
Hi, It seems that support of Java Mail API in sendmail Action/XSP logicsheet/Transformer is quite equivalent. (I thing Reply-To and SMTP auth is disponible for action and logicsheet) To my opinion the starting point should be : what technology you use for other things? I personnally use CForms and JX, so i'm in flow, and it seems not logical to use Flow and Actions, so i use directly Java Mail API inside flow. For i18n support i would suggest action or transformation to be able to pass i18n transformation before in the pipeline. Cheers, Phil Adam Ratcliffe wrote: Hi, I need to add email support to a cocoon application and am wondering what the preferred way of doing this is these days. The sendmail action seems to support all of the features of the Java Mail API that I need to use, would this be my best option? Cheers Adam - 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: Flows & Continuation
Hi, I had something a bit similar but can't know if it is the same situation, i don't know what error message you get. But i'll suggest not calling via a pipeline form.sendPageAndWait("editChild.html"); but do a editChild() call. You still have separation with 2 methods, but one flow. Hope it helps, Phil stefan pickschneider wrote: Hello everybody, we have a problem using continuations... we have two forms: editParent and editChild - both use flowscript. in the editparent form is a repeater that shows the assigned child. if the user adds an child the editChild form is opened. so far we couldn't figure out how one can return to the continuation-state of the flowscript editParent.js after finishing flow editChild.js. both forms are opened in the same window. editParent.js looks like ... while (true) { ... form.showform("editParent-showform"); ... if (addChild) { form.sendPageAndWait("editChild.html"); // >>> continue here after editChild is done // add child to repeater } if (save) { break; } } editChild.js ... form.showform("editChild-showform"); ... // return to parent continuation // HOW? We have tried to submit the current continuation id of the parent to the editChild flow /*{"continuationId":cocoon.continuation.id}*/ and after the child form is saved redirecting back to this id, but only an empty editParent form is shown - the continuation doesn't seem to be resumed. Any ideas? Thanks a lot! stefan. - 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: Can I use both types of "jx" and "serverpages" in one generator
I think if you really need XSP you use XSP and pass your value from your flow via sitemap parameters or request attributes. Phil Ben Pope wrote: Jarry Liu wrote: Hi, everyone, In my sitemap, I have I need some value from javascript, and at the same time, I need use xsp to handle this value, so I needtoo. Now I can solve this problem in two steps with two seperate generator. Is there any solution to put this two ( "jx and serverpages" ) together in the same generate? Or any idea to solve this problem? CInclude http://cocoon.apache.org/2.1/userdocs/transformers/cinclude-transformer.html XInclude http://cocoon.apache.org/2.1/userdocs/transformers/xinclude-transformer.html map:aggregate http://cocoon.apache.org/2.1/userdocs/concepts/sitemap.html#Aggregating Should get you started :-) Ben - 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]
Error handling / external resource
Hi, Is it possible to handle error when an external resource is not available? This is what i tried for now without success: http://www.foo.org"/> http://www.foo.org";> . Regards, Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Javascript and xsp
Hi, Probably your .js file is not red by Cocoon. Did you attach flowscript to your sitemap with a entry? Phil Xoan wrote: Hi all, I'm trying to write a xsp with some javascript code. This code uses functions defined in a .js file. When I try the html part in a browser all works fine, but when I try to use the same html code in a xsp seems that the following instruction is not recognized: http://localhost:8080/exist/examples/Editor/library.js";> as when I try to load it the following error appears: Error function_defined_in_library.js is not defined. = http://apache.org/xsp";> http://www.w3.org/1999/xhtml";> http://localhost:8080/exist/examples/Editor/library.js";> a_call_to_a function_defined_in_library.js(param1', param2); = It is possible to call external javascript code in xsp's? Any idea on what is happening? Regards, Xoan - 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 and xsp
Apologize is for flowscript. In your case you just add a pipeline anywhere in your sitemap containing pipeline for XSP like this : and i would put this in the XSP with relative path Phil Xoan wrote: Hi Phil, No, I'm a newbie in Cocoon and I don't have too clear all the process. Where I have to put this entry? Before the map:generate for the xsp?? Thanks a lot Xoan 2005/4/28, Philippe Guillard <[EMAIL PROTECTED]>: Hi, Probably your .js file is not red by Cocoon. Did you attach flowscript to your sitemap with a entry? Phil Xoan wrote: Hi all, I'm trying to write a xsp with some javascript code. This code uses functions defined in a .js file. When I try the html part in a browser all works fine, but when I try to use the same html code in a xsp seems that the following instruction is not recognized: http://localhost:8080/exist/examples/Editor/library.js"</a>;> as when I try to load it the following error appears: Error function_defined_in_library.js is not defined. = http://apache.org/xsp";> http://www.w3.org/1999/xhtml";> http://localhost:8080/exist/examples/Editor/library.js"</a>;> a_call_to_a function_defined_in_library.js(param1', param2); = It is possible to call external javascript code in xsp's? Any idea on what is happening? Regards, Xoan - 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]
Flow isDebugEnabled()
Hi I've found this in Advanced Control Flow documentation: /Function/ [Boolean] isDebugEnabled() --> Returns whether debug message logging is enabled. I'd like to know if it's to speed performance? Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]