New Article about Jetspeed2 second part (migration jet1 - jet2)

2005-02-16 Thread Massimiliano Dessì
It's a second part (In italian):

http://www.jugsardegna.org/vqwiki/jsp/Wiki?Jetspeed2_I

or:

http://www.mokabyte.it/2005/02/jetspeed2-2.htm

The example of migration, it's a portlet based on 
Spring, MX4J and a three type of persistence,
JdbcClassic, JdbcTemplate(Spring) and JDO (JPOX with
JDO 2.0 features).

The third part of article are available at the end of
february, and contains the part with MX4J, and the
portlet for Jetspeed2 build with plutoeclipse, and a
complete source of the example (Apache license
naturally).

Massimiliano




___ 
Nuovo Yahoo! Messenger: E' molto più divertente: Audibles, Avatar, Webcam, 
Giochi, Rubrica… Scaricalo ora! 
http://it.messenger.yahoo.it

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



cvs commit: jakarta-jetspeed/webapp/WEB-INF/conf JetspeedResources.properties

2005-02-16 Thread taylor
taylor  2005/02/16 08:43:14

  Modified:webapp/WEB-INF/conf JetspeedResources.properties
  Log:
  change web service location
  
  Revision  ChangesPath
  1.132 +2 -2  
jakarta-jetspeed/webapp/WEB-INF/conf/JetspeedResources.properties
  
  Index: JetspeedResources.properties
  ===
  RCS file: 
/home/cvs/jakarta-jetspeed/webapp/WEB-INF/conf/JetspeedResources.properties,v
  retrieving revision 1.131
  retrieving revision 1.132
  diff -u -r1.131 -r1.132
  --- JetspeedResources.properties  21 Jan 2005 23:50:33 -  1.131
  +++ JetspeedResources.properties  16 Feb 2005 16:43:14 -  1.132
  @@ -555,7 +555,7 @@
   #
   # The Template Locator is implemented as a Turbine service.
   
services.StockQuoteService.classname=org.apache.jetspeed.webservices.finance.stockmarket.JetspeedStockQuoteService
  -services.StockQuoteService.endpoint = 
http://www.bluesunrise.com/webservices/container/BlueSunriseFinance/BlueSunriseFinanceService/BlueSunriseFinancePort/
  +services.StockQuoteService.endpoint = 
http://64.105.95.101/webservices/container/BlueSunriseFinance/BlueSunriseFinanceService/BlueSunriseFinancePort/
   
   #
   # Persistence Manager Service   #
  
  
  

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



cvs commit: jakarta-jetspeed/xdocs resources.xml

2005-02-16 Thread taylor
taylor  2005/02/16 08:50:59

  Modified:xdocsresources.xml
  Log:
  M Dessi's latest article
  
  Revision  ChangesPath
  1.22  +4 -1  jakarta-jetspeed/xdocs/resources.xml
  
  Index: resources.xml
  ===
  RCS file: /home/cvs/jakarta-jetspeed/xdocs/resources.xml,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- resources.xml 1 Dec 2004 17:39:49 -   1.21
  +++ resources.xml 16 Feb 2005 16:50:59 -  1.22
  @@ -97,7 +97,10 @@
/li
li
a 
href=http://community.java.net/portlet/;Portlets Community Goes Live at 
java.net - November 2004/a
  - /li   
  + /li
  + li
  + a 
href=http://www.mokabyte.it/2005/02/jetspeed2-2.htm;Jetspeed article in 
MokaByte (in Italian), Massimiliano Dessi, February 2005/a
  + /li
li
a 
href=http://www.mokabyte.it/2003/09/jportlet-3.htm;Jetspeed article in 
MokaByte (in Italian), Massimiliano Dessi, September 2003/a
/li
  
  
  

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



cvs commit: jakarta-jetspeed/docs/site resources.html

2005-02-16 Thread taylor
taylor  2005/02/16 08:53:03

  Modified:docs/site resources.html
  Log:
  M Dessi's latest article
  
  Revision  ChangesPath
  1.47  +112 -370  jakarta-jetspeed/docs/site/resources.html
  
  Index: resources.html
  ===
  RCS file: /home/cvs/jakarta-jetspeed/docs/site/resources.html,v
  retrieving revision 1.46
  retrieving revision 1.47
  diff -u -r1.46 -r1.47
  --- resources.html4 Jan 2005 17:01:01 -   1.46
  +++ resources.html16 Feb 2005 16:53:03 -  1.47
  @@ -1,370 +1,112 @@
  -!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN 
http://www.w3.org/TR/html4/loose.dtd;
  -
  -!--
  -Copyright 1999-2005 The Apache Software Foundation
  -Licensed under the Apache License, Version 2.0 (the License);
  -you may not use this file except in compliance with the License.
  -You may obtain a copy of the License at
  -
  -http://www.apache.org/licenses/LICENSE-2.0
  -
  -Unless required by applicable law or agreed to in writing, software
  -distributed under the License is distributed on an AS IS BASIS,
  -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  -See the License for the specific language governing permissions and
  -limitations under the License.
  ---
  -
  -
  -!-- Content Stylesheet for Site --
  -
  -
  -!-- start the processing --
  -!-- 
== --
  -!-- GENERATED FILE, DO NOT EDIT, EDIT THE XML FILE IN xdocs INSTEAD! --
  -!-- Main Page Section --
  -!-- 
== --
  -html
  -head
  -meta http-equiv=Content-Type content=text/html; 
charset=iso-8859-1/
  -
  -
  -   
  -
  -
  -titleJetspeed - Resources/title
  -/head
  -
  -body bgcolor=#ff text=#00 link=#525D76
  -table border=0 width=100% cellspacing=0
  -!-- TOP IMAGE --
  -tr
  -td align=left
  -a href=http://jakarta.apache.org;img 
src=http://jakarta.apache.org/images/jakarta-logo.gif; border=0//a
  -/td
  -td align=right
  -a href=http://portals.apache.org/jetspeed-1;img src=./images/logo.gif 
alt=Jetspeed border=0//a
  -/td
  -/tr
  -/table
  -table border=0 width=100% cellspacing=4
  -trtd colspan=2
  -hr noshade= size=1/
  -/td/tr
  -
  -tr
  -!-- LEFT SIDE NAVIGATION --
  -td width=20% valign=top nowrap=true
  -
  -!--  --
  -
  -pstrongEssentials/strong/p
  -ul
  -lia href=./index.htmlOverview/a
  -/li
  -lia href=./features.htmlFeatures/a
  -/li
  -lia href=./license.htmlLicense/a
  -/li
  -lia href=./install.htmlInstallation/a
  -/li
  -lia href=./faq.htmlFAQ/a
  -/li
  -lia href=./usejetspeed.htmlSample Sites/a
  -/li
  -lia href=./resources.htmlResources/a
  -/li
  -lia href=./todo.htmlTodo/a
  -/li
  -lia href=./changes.htmlChanges/a
  -/li
  -/ul
  -pstrongDownload/strong/p
  -ul
  -lia 
href=http://jakarta.apache.org/site/binindex.html;Binaries/a
  -/li
  -lia 
href=http://jakarta.apache.org/site/sourceindex.html;Source Code/a
  -/li
  -lia href=./supporting-projects.htmlSupporting 
Projects/a
  -/li
  -lia href=./community-portlets.htmlCommunity 
Portlets/a
  -/li
  -/ul
  -pstrongDocumentation/strong/p
  -ul
  -lia href=./config_guide.htmlConfiguration 
Guide/a
  -/li
  -lia 
href=http://portals.apache.org/jetspeed-1/apidocs/index.html;Javadocs/a
  -/li
  -lia 
href=./application-development.htmlDevelopment/a
  -/li
  -lia 
href=http://portals.apache.org/jetspeed-1/tutorial/;Jetspeed Tutorial/a
  -/li
  -lia 
href=http://portals.apache.org/jetspeed-1/plugin/;Jetspeed Plugin/a
  -/li
  -lia href=./catalog.htmlPortlet Catalog/a
  -/li
  -/ul
  -pstrongComponents/strong/p
  -ul
  -lia href=./registry.htmlRegistry/a
  -/li
  -lia href=./security.htmlSecurity/a
  -/li
  -lia 
href=./content-syndication.htmlSyndication/a
  -/li
  - 

cvs commit: jakarta-jetspeed maven.xml

2005-02-16 Thread taylor
taylor  2005/02/16 09:04:06

  Modified:.maven.xml
  Log:
  allow jdbc driver in classpath for import
  
  Revision  ChangesPath
  1.38  +3 -0  jakarta-jetspeed/maven.xml
  
  Index: maven.xml
  ===
  RCS file: /home/cvs/jakarta-jetspeed/maven.xml,v
  retrieving revision 1.37
  retrieving revision 1.38
  diff -u -r1.37 -r1.38
  --- maven.xml 17 Aug 2004 04:53:56 -  1.37
  +++ maven.xml 16 Feb 2005 17:04:05 -  1.38
  @@ -450,6 +450,9 @@
 classpath
   path refid=maven.dependency.classpath/
   pathelement path=${maven.build.dest}/
  +pathelement 
path=${org.apache.jetspeed.test.jdbc.j1.drivers.path}/
  +pathelement 
path=${org.apache.jetspeed.test.jdbc.j1.drivers.path2}/
  +pathelement 
path=${org.apache.jetspeed.test.jdbc.j1.drivers.path3}/
 /classpath
   /java
   /goal
  
  
  

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



Re: Problem with J2 build and HSQLDB drop table command syntax

2005-02-16 Thread David Sean Taylor
Bob Fleischman wrote:
When I run the maven allClean allBuild I get the following error:
[sql] [ERROR] Failed to execute: drop table if exists OJB_HL_SEQ
BUILD FAILED
File.. D:\eclipseworkspace\jakarta-jetspeed-2\maven.xml
Element... sql
Line.. 355
Column 39
java.sql.SQLException: Table not found: IF in statement [drop table if
exists OJB_HL_SEQ]
I traced this back to a syntax problem in
target\src\sql\hsql\phase3ojb-schema.sql.
This file is using
drop table if exists OJB_HL_SEQ
HSQLDB Syntax should be
drop table OJB_HL_SEQ if exists.
Strange, my generated HSQL phase3ojb-schema.sql file has:
drop table OJB_HL_SEQ if exists;
looks like you have MySQL syntax. I don't know why that is...
(im working from cvs head)
--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
[office] +01 707 773-4646
[mobile] +01 707 529 9194
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


J2 - Menu Navigation - Root Folder

2005-02-16 Thread Shah Amit
Hi David,
Reposing my question on the developer thread.
The problem is org.apache.jetspeed.profiler.ProfiledPageContext interface 
and all the other related interfaces are very convinient to navigate child 
elements. But it is tough to reach the root folder, or to traverse up the 
tree.

Now the reason I need to traverse up the tree is because I need to display a 
tabbed menu interface which goes 3 levels deep. Something similar to 
amazon.com. Now all the samples included in J2 display all the child folders 
and sub-elements, but there is no example that basically displays 
everything under pages directory in like a tree format and let user choose 
where he wants to go.

Would really appreciate any help.
For now the I am thinking of workaround where I will go 5 levels down. I 
dont think I need to worry for more than that. Also to reach the root 
folder, I am using following macro -

#macro(createTree $folder)
   #set($parent = $folder.getParent())
   #if($parent != /)
   #createTree($parent)
   #else
   #set($folder=$parent)
   #end
#end
Thanks for all your helps,
Amit

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


Re: J2 - Menu Navigation - Root Folder

2005-02-16 Thread Randy Watler
Shah,
Right the problem is that the API is not designed to allow arbitrary 
use of the getParent() method because the profiler does not construct a 
complete view of the site on each page request. The reason is that it 
can be costly generate views of the site that are not necessarily going 
to be visited by the user.

Instead, we would expect this to be done using document sets. Perhaps it 
is easy, perhaps not. Can you please generate an example set of folders 
and pages you'd like to add to your layout and I'd be glad to assist.

Thanks,
Randy
Shah Amit wrote:
Hi David,
Reposing my question on the developer thread.
The problem is org.apache.jetspeed.profiler.ProfiledPageContext 
interface and all the other related interfaces are very convinient to 
navigate child elements. But it is tough to reach the root folder, 
or to traverse up the tree.

Now the reason I need to traverse up the tree is because I need to 
display a tabbed menu interface which goes 3 levels deep. Something 
similar to amazon.com. Now all the samples included in J2 display all 
the child folders and sub-elements, but there is no example that 
basically displays everything under pages directory in like a tree 
format and let user choose where he wants to go.

Would really appreciate any help.
For now the I am thinking of workaround where I will go 5 levels down. 
I dont think I need to worry for more than that. Also to reach the 
root folder, I am using following macro -

#macro(createTree $folder)
   #set($parent = $folder.getParent())
   #if($parent != /)
   #createTree($parent)
   #else
   #set($folder=$parent)
   #end
#end
Thanks for all your helps,
Amit

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


cvs commit: jakarta-jetspeed-2/applications/demo/src/webapp/WEB-INF/view database-view.vm

2005-02-16 Thread taylor
taylor  2005/02/16 10:32:31

  Modified:applications/demo/src/webapp/WEB-INF/view database-view.vm
  Log:
  adjust style, still not happy with it but looks a bit clearer
  
  Revision  ChangesPath
  1.5   +2 -2  
jakarta-jetspeed-2/applications/demo/src/webapp/WEB-INF/view/database-view.vm
  
  Index: database-view.vm
  ===
  RCS file: 
/home/cvs/jakarta-jetspeed-2/applications/demo/src/webapp/WEB-INF/view/database-view.vm,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- database-view.vm  20 Jan 2005 21:14:44 -  1.4
  +++ database-view.vm  16 Feb 2005 18:32:31 -  1.5
  @@ -54,8 +54,8 @@
 #if ($velocityCount == 1)

   #set ($rowid = $entry)

 #end

  -  td class=$rowstyle nowrap width=23

  -div align=center$entry/div

  +  td nowrap class=$rowstyle width=23

  +div class=$rowstyle align=center$entry/div

 /td

   #end

   #if ($rowLinks)

  
  
  

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



cvs commit: jakarta-jetspeed-2/portal/src/webapp/WEB-INF/decorations/layout/html/tigris/css styles.css

2005-02-16 Thread taylor
taylor  2005/02/16 10:32:47

  Modified:portal/src/webapp/WEB-INF/decorations/layout/html/tigris/css
styles.css
  Log:
  adjust style, still not happy with it but looks a bit clearer
  
  Revision  ChangesPath
  1.5   +2 -0  
jakarta-jetspeed-2/portal/src/webapp/WEB-INF/decorations/layout/html/tigris/css/styles.css
  
  Index: styles.css
  ===
  RCS file: 
/home/cvs/jakarta-jetspeed-2/portal/src/webapp/WEB-INF/decorations/layout/html/tigris/css/styles.css,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- styles.css3 Jan 2005 08:14:32 -   1.4
  +++ styles.css16 Feb 2005 18:32:47 -  1.5
  @@ -302,12 +302,14 @@
 background-color:#CC;
 FONT-SIZE:7pt;
 FONT-WEIGHT:normal;
  +  color:black;  
   }
   .jetdbEven
   {
 background-color:#99;
 FONT-SIZE:7pt;
 FONT-WEIGHT:normal;
  +  color:white;  
   }
   
   .jetdbLight
  
  
  

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



Re: J2 - Menu Navigation - Root Folder

2005-02-16 Thread Shah Amit
Hi Randy,
Here is the tree that I want to create for my website -
- Home (psml)
- Contact Us (psml)
- About Us (psml)
- Products (SubMenu)
   - Product 1 (psml)
   - Product 2 (psml)
   - Product 3 (psml)
- Customer Area (SubMenu)
   - Download Reports (SubMenu)
 - Report 1 (psml)
 - Report 2 (psml)
   - Comparision tools (SubMenu)
 - Tool 1 (psml)
 - Tool 2 (psml)

How should I lay it out and how should I write my decorator so that I can 
display this tree on the left as my navigation menu ...

Thanks,
Amit
Original Message Follows
From: Randy Watler [EMAIL PROTECTED]
Reply-To: Jetspeed Developers List jetspeed-dev@jakarta.apache.org
To: Jetspeed Developers List jetspeed-dev@jakarta.apache.org
Subject: Re: J2 - Menu Navigation - Root Folder
Date: Wed, 16 Feb 2005 10:54:52 -0700
Shah,
Right the problem is that the API is not designed to allow arbitrary use 
of the getParent() method because the profiler does not construct a complete 
view of the site on each page request. The reason is that it can be costly 
generate views of the site that are not necessarily going to be visited by 
the user.

Instead, we would expect this to be done using document sets. Perhaps it is 
easy, perhaps not. Can you please generate an example set of folders and 
pages you'd like to add to your layout and I'd be glad to assist.

Thanks,
Randy
Shah Amit wrote:
Hi David,
Reposing my question on the developer thread.
The problem is org.apache.jetspeed.profiler.ProfiledPageContext interface 
and all the other related interfaces are very convinient to navigate child 
elements. But it is tough to reach the root folder, or to traverse up the 
tree.

Now the reason I need to traverse up the tree is because I need to display 
a tabbed menu interface which goes 3 levels deep. Something similar to 
amazon.com. Now all the samples included in J2 display all the child 
folders and sub-elements, but there is no example that basically displays 
everything under pages directory in like a tree format and let user 
choose where he wants to go.

Would really appreciate any help.
For now the I am thinking of workaround where I will go 5 levels down. I 
dont think I need to worry for more than that. Also to reach the root 
folder, I am using following macro -

#macro(createTree $folder)
   #set($parent = $folder.getParent())
   #if($parent != /)
   #createTree($parent)
   #else
   #set($folder=$parent)
   #end
#end
Thanks for all your helps,
Amit

-
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: J2 - Menu Navigation - Root Folder

2005-02-16 Thread Randy Watler
Shah,
Ok does not look too difficult at this point.
How do you want to arrange the psml pages physically in your file system?
Do you have other profiling requirements... other views based on 
user/role/group or authentication?

Randy
Shah Amit wrote:
Hi Randy,
Here is the tree that I want to create for my website -
- Home (psml)
- Contact Us (psml)
- About Us (psml)
- Products (SubMenu)
   - Product 1 (psml)
   - Product 2 (psml)
   - Product 3 (psml)
- Customer Area (SubMenu)
   - Download Reports (SubMenu)
 - Report 1 (psml)
 - Report 2 (psml)
   - Comparision tools (SubMenu)
 - Tool 1 (psml)
 - Tool 2 (psml)

How should I lay it out and how should I write my decorator so that I 
can display this tree on the left as my navigation menu ...

Thanks,
Amit
Original Message Follows
From: Randy Watler [EMAIL PROTECTED]
Reply-To: Jetspeed Developers List jetspeed-dev@jakarta.apache.org
To: Jetspeed Developers List jetspeed-dev@jakarta.apache.org
Subject: Re: J2 - Menu Navigation - Root Folder
Date: Wed, 16 Feb 2005 10:54:52 -0700
Shah,
Right the problem is that the API is not designed to allow 
arbitrary use of the getParent() method because the profiler does not 
construct a complete view of the site on each page request. The reason 
is that it can be costly generate views of the site that are not 
necessarily going to be visited by the user.

Instead, we would expect this to be done using document sets. Perhaps 
it is easy, perhaps not. Can you please generate an example set of 
folders and pages you'd like to add to your layout and I'd be glad to 
assist.

Thanks,
Randy
Shah Amit wrote:
Hi David,
Reposing my question on the developer thread.
The problem is org.apache.jetspeed.profiler.ProfiledPageContext 
interface and all the other related interfaces are very convinient to 
navigate child elements. But it is tough to reach the root folder, 
or to traverse up the tree.

Now the reason I need to traverse up the tree is because I need to 
display a tabbed menu interface which goes 3 levels deep. Something 
similar to amazon.com. Now all the samples included in J2 display all 
the child folders and sub-elements, but there is no example that 
basically displays everything under pages directory in like a tree 
format and let user choose where he wants to go.

Would really appreciate any help.
For now the I am thinking of workaround where I will go 5 levels 
down. I dont think I need to worry for more than that. Also to reach 
the root folder, I am using following macro -

#macro(createTree $folder)
   #set($parent = $folder.getParent())
   #if($parent != /)
   #createTree($parent)
   #else
   #set($folder=$parent)
   #end
#end
Thanks for all your helps,
Amit

-
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: J2 - Menu Navigation - Root Folder

2005-02-16 Thread Shah Amit
Security requirements are very simple. Untill a user is not logged on, he 
should not able to see the Customer Area Sub Menu. Once he logs on, he can 
access that area too.

Besides, I am thinking of having permissions say P1. If user doesnot have 
P1, he gets different view to Comparision Tool submenu. Instead of seeing 
the normal Tool 1 and Tool 2, he would probably get another psml file saying 
that are not subscribed to Tool1 and Tool 2.

In terms of how I layout my files, I have no preferences. Please suggest me 
the best way to lay them out for the above requirements.

I really appreciate your help.
Please let me know if you need any more info.
Thanks,
Amit
Original Message Follows
From: Randy Watler [EMAIL PROTECTED]
Reply-To: Jetspeed Developers List jetspeed-dev@jakarta.apache.org
To: Jetspeed Developers List jetspeed-dev@jakarta.apache.org
Subject: Re: J2 - Menu Navigation - Root Folder
Date: Wed, 16 Feb 2005 12:10:52 -0700
Shah,
Ok does not look too difficult at this point.
How do you want to arrange the psml pages physically in your file system?
Do you have other profiling requirements... other views based on 
user/role/group or authentication?

Randy
Shah Amit wrote:
Hi Randy,
Here is the tree that I want to create for my website -
- Home (psml)
- Contact Us (psml)
- About Us (psml)
- Products (SubMenu)
   - Product 1 (psml)
   - Product 2 (psml)
   - Product 3 (psml)
- Customer Area (SubMenu)
   - Download Reports (SubMenu)
 - Report 1 (psml)
 - Report 2 (psml)
   - Comparision tools (SubMenu)
 - Tool 1 (psml)
 - Tool 2 (psml)

How should I lay it out and how should I write my decorator so that I can 
display this tree on the left as my navigation menu ...

Thanks,
Amit
Original Message Follows
From: Randy Watler [EMAIL PROTECTED]
Reply-To: Jetspeed Developers List jetspeed-dev@jakarta.apache.org
To: Jetspeed Developers List jetspeed-dev@jakarta.apache.org
Subject: Re: J2 - Menu Navigation - Root Folder
Date: Wed, 16 Feb 2005 10:54:52 -0700
Shah,
Right the problem is that the API is not designed to allow arbitrary 
use of the getParent() method because the profiler does not construct a 
complete view of the site on each page request. The reason is that it can 
be costly generate views of the site that are not necessarily going to be 
visited by the user.

Instead, we would expect this to be done using document sets. Perhaps it is 
easy, perhaps not. Can you please generate an example set of folders and 
pages you'd like to add to your layout and I'd be glad to assist.

Thanks,
Randy
Shah Amit wrote:
Hi David,
Reposing my question on the developer thread.
The problem is org.apache.jetspeed.profiler.ProfiledPageContext interface 
and all the other related interfaces are very convinient to navigate child 
elements. But it is tough to reach the root folder, or to traverse up 
the tree.

Now the reason I need to traverse up the tree is because I need to display 
a tabbed menu interface which goes 3 levels deep. Something similar to 
amazon.com. Now all the samples included in J2 display all the child 
folders and sub-elements, but there is no example that basically displays 
everything under pages directory in like a tree format and let user 
choose where he wants to go.

Would really appreciate any help.
For now the I am thinking of workaround where I will go 5 levels down. I 
dont think I need to worry for more than that. Also to reach the root 
folder, I am using following macro -

#macro(createTree $folder)
   #set($parent = $folder.getParent())
   #if($parent != /)
   #createTree($parent)
   #else
   #set($folder=$parent)
   #end
#end
Thanks for all your helps,
Amit

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


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

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


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

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


RE: Problem with J2 build and HSQLDB drop table command syntax

2005-02-16 Thread Bob Fleischman
I did a checkout from CVS, in eclipse, just a few weeks ago and then an
update last night.

I also tried this at a client with a fresh check out and got the same error.

-Original Message-
From: David Sean Taylor [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 16, 2005 12:20 PM
To: Jetspeed Developers List
Subject: Re: Problem with J2 build and HSQLDB drop table command syntax

Bob Fleischman wrote:
 When I run the maven allClean allBuild I get the following error:
 
 [sql] [ERROR] Failed to execute: drop table if exists OJB_HL_SEQ
 BUILD FAILED
 File.. D:\eclipseworkspace\jakarta-jetspeed-2\maven.xml
 Element... sql
 Line.. 355
 Column 39
 java.sql.SQLException: Table not found: IF in statement [drop table if
 exists OJB_HL_SEQ]
 
 I traced this back to a syntax problem in
 target\src\sql\hsql\phase3ojb-schema.sql.
 
 This file is using
 
 drop table if exists OJB_HL_SEQ
 
 HSQLDB Syntax should be
 drop table OJB_HL_SEQ if exists.

Strange, my generated HSQL phase3ojb-schema.sql file has:

drop table OJB_HL_SEQ if exists;

looks like you have MySQL syntax. I don't know why that is...

(im working from cvs head)


-- 
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
[office] +01 707 773-4646
[mobile] +01 707 529 9194

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



[jira] Commented: (JS2-207) Login portlet not working with jboss 3.2.3

2005-02-16 Thread clinton turnbull (JIRA)
 [ http://issues.apache.org/jira/browse/JS2-207?page=comments#action_59293 ]
 
clinton turnbull commented on JS2-207:
--

the same problem seems to exsist for jboss 4.0.1

 Login portlet not working with jboss 3.2.3
 --

  Key: JS2-207
  URL: http://issues.apache.org/jira/browse/JS2-207
  Project: Jetspeed 2
 Type: Bug
   Components: Admin Portlets
 Versions: 2.0-M1
  Environment: windows 2000 professional
 Reporter: pradeep


 I have configured jetspeed 2 and jboss 3.2.3, but I am not able to login from 
 the jetspeed home page, I have added the users.properites and 
 roles.properties and added the users but still I am not able to login, if I 
 try to login same page get refreshed,
 Kindly let me know the way out.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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



RE: Problem with J2 build and HSQLDB drop table command syntax

2005-02-16 Thread Bob Fleischman
I solved the problem. It seems I had maven-torque-plugin-3.1.1-dev.jar. I
replaced that with maven-torque-plugin-3.1.1.jar and everything else worked
ok.

It was a coincidence that I had the same wrong plugin at my client's site.

-Original Message-
From: Bob Fleischman [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 16, 2005 4:58 PM
To: 'Jetspeed Developers List'
Subject: RE: Problem with J2 build and HSQLDB drop table command syntax


I did a checkout from CVS, in eclipse, just a few weeks ago and then an
update last night.

I also tried this at a client with a fresh check out and got the same error.

-Original Message-
From: David Sean Taylor [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 16, 2005 12:20 PM
To: Jetspeed Developers List
Subject: Re: Problem with J2 build and HSQLDB drop table command syntax

Bob Fleischman wrote:
 When I run the maven allClean allBuild I get the following error:

 [sql] [ERROR] Failed to execute: drop table if exists OJB_HL_SEQ
 BUILD FAILED
 File.. D:\eclipseworkspace\jakarta-jetspeed-2\maven.xml
 Element... sql
 Line.. 355
 Column 39
 java.sql.SQLException: Table not found: IF in statement [drop table if
 exists OJB_HL_SEQ]

 I traced this back to a syntax problem in
 target\src\sql\hsql\phase3ojb-schema.sql.

 This file is using

 drop table if exists OJB_HL_SEQ

 HSQLDB Syntax should be
 drop table OJB_HL_SEQ if exists.

Strange, my generated HSQL phase3ojb-schema.sql file has:

drop table OJB_HL_SEQ if exists;

looks like you have MySQL syntax. I don't know why that is...

(im working from cvs head)


--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
[office] +01 707 773-4646
[mobile] +01 707 529 9194

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



cvs commit: jakarta-jetspeed-2/portal/src/webapp/WEB-INF/decorations/layout/html/jetspeed decorator-macros.vm

2005-02-16 Thread taylor
taylor  2005/02/16 23:21:00

  Modified:portal/src/webapp/WEB-INF/decorations/layout/html/tigris
decorator-macros.vm
   portal/src/webapp/WEB-INF/decorations/layout/html/jetspeed
decorator-macros.vm
  Log:
  2 new macros to
  - put folders in the tabs
  - put docs in the leftside
  
  Revision  ChangesPath
  1.4   +45 -0 
jakarta-jetspeed-2/portal/src/webapp/WEB-INF/decorations/layout/html/tigris/decorator-macros.vm
  
  Index: decorator-macros.vm
  ===
  RCS file: 
/home/cvs/jakarta-jetspeed-2/portal/src/webapp/WEB-INF/decorations/layout/html/tigris/decorator-macros.vm,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- decorator-macros.vm   3 Dec 2004 09:10:18 -   1.3
  +++ decorator-macros.vm   17 Feb 2005 07:21:00 -  1.4
  @@ -89,3 +89,48 @@
   /tr
 /table
   #end
  +
  +#* include tabs navigation component *#
  +#macro (includeFolderTabsNavigation $_nodeSet $_orientation)
  +  table border=0 cellpadding=0 cellspacing=0
  +tr
  +#foreach($childFolder in $_nodeSet.iterator())
  +  #set($tabTitle = $childFolder.getTitle($preferedLocale))
  +  #set($tabName = $childFolder.getShortTitle($preferedLocale))
  +
  +  #if($_orientation == $LEFT_TO_RIGHT)
  +#if($site.folder.id == $childFolder.id)
  +  td class=LTabLeft nowrap=truenbsp;/td
  +  td class=LTab align=center valign=middle nowrap=true 
title=$tabTitle${tabName}/td
  +  td class=LTabRight  nowrap=truenbsp;/td
  +#else
  +  td class=LTabLeftLow  nowrap=truenbsp;/td
  +  td class=LTabLow align=center valign=middle nowrap=true 
title=$tabTitlea 
href=$jetspeed.getAbsoluteUrl($childFolder.url)${tabName}/a/td
  +  td class=LTabRightLow  nowrap=truenbsp;/td
  +#end
  +  #end
  +#end   
  +
  +/tr
  +  /table
  +#end
  +
  +#macro (includePagesNavigation $_nodeSet $_orientation)
  +  div class=FolderList
  +  #foreach($childPage in $_nodeSet.iterator())
  +#if($_orientation == $LEFT_TO_RIGHT)
  +  span
  +#elseif($_orientation == $TOP_TO_BOTTOM)
  +  div
  +#end
  +
  +a href=$jetspeed.getAbsoluteUrl($childPage.url) class=FolderLink 
title=$childPage.getTitle($preferedLocale)$childPage.getShortTitle($preferedLocale)/a
 
  +
  +#if($_orientation == $LEFT_TO_RIGHT)
  +  /span
  +#elseif($_orientation == $TOP_TO_BOTTOM)
  +  /div
  +#end
  +  #end
  +  /div
  +#end
  
  
  
  1.4   +45 -0 
jakarta-jetspeed-2/portal/src/webapp/WEB-INF/decorations/layout/html/jetspeed/decorator-macros.vm
  
  Index: decorator-macros.vm
  ===
  RCS file: 
/home/cvs/jakarta-jetspeed-2/portal/src/webapp/WEB-INF/decorations/layout/html/jetspeed/decorator-macros.vm,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- decorator-macros.vm   3 Dec 2004 09:10:18 -   1.3
  +++ decorator-macros.vm   17 Feb 2005 07:21:00 -  1.4
  @@ -52,3 +52,48 @@
   /tr
 /table
   #end
  +
  +#* include tabs navigation component *#
  +#macro (includeFolderTabsNavigation $_nodeSet $_orientation)
  +  table border=0 cellpadding=0 cellspacing=0
  +tr
  +#foreach($childFolder in $_nodeSet.iterator())
  +  #set($tabTitle = $childFolder.getTitle($preferedLocale))
  +  #set($tabName = $childFolder.getShortTitle($preferedLocale))
  +
  +  #if($_orientation == $LEFT_TO_RIGHT)
  +#if($site.folder.id == $childFolder.id)
  +  td class=LTabLeft nowrap=truenbsp;/td
  +  td class=LTab align=center valign=middle nowrap=true 
title=$tabTitle${tabName}/td
  +  td class=LTabRight  nowrap=truenbsp;/td
  +#else
  +  td class=LTabLeftLow  nowrap=truenbsp;/td
  +  td class=LTabLow align=center valign=middle nowrap=true 
title=$tabTitlea 
href=$jetspeed.getAbsoluteUrl($childFolder.url)${tabName}/a/td
  +  td class=LTabRightLow  nowrap=truenbsp;/td
  +#end
  +  #end
  +#end   
  +
  +/tr
  +  /table
  +#end
  +
  +#macro (includePagesNavigation $_nodeSet $_orientation)
  +  div class=FolderList
  +  #foreach($childPage in $_nodeSet.iterator())
  +#if($_orientation == $LEFT_TO_RIGHT)
  +  span
  +#elseif($_orientation == $TOP_TO_BOTTOM)
  +  div
  +#end
  +
  +a href=$jetspeed.getAbsoluteUrl($childPage.url) class=FolderLink 
title=$childPage.getTitle($preferedLocale)$childPage.getShortTitle($preferedLocale)/a
 
  +
  +#if($_orientation == $LEFT_TO_RIGHT)
  +  /span
  +#elseif($_orientation == $TOP_TO_BOTTOM)
  +  /div
  +#end
  +  #end
  +  /div
  +#end
  
  
  

-
To unsubscribe, 

[jira] Commented: (JS2-207) Login portlet not working with jboss 3.2.3

2005-02-16 Thread Jabouille Jean Charles (JIRA)
 [ http://issues.apache.org/jira/browse/JS2-207?page=comments#action_59306 ]
 
Jabouille Jean Charles commented on JS2-207:


I have the same error on Jonas 4.1.4 too.

 Login portlet not working with jboss 3.2.3
 --

  Key: JS2-207
  URL: http://issues.apache.org/jira/browse/JS2-207
  Project: Jetspeed 2
 Type: Bug
   Components: Admin Portlets
 Versions: 2.0-M1
  Environment: windows 2000 professional
 Reporter: pradeep


 I have configured jetspeed 2 and jboss 3.2.3, but I am not able to login from 
 the jetspeed home page, I have added the users.properites and 
 roles.properties and added the users but still I am not able to login, if I 
 try to login same page get refreshed,
 Kindly let me know the way out.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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