[jboss-user] [JBoss Portal] - Re: Good framework to use in JBoss Portal?

2009-04-07 Thread psevestre
I was quite successful using AndroMDA as a basic tool to develop a set of portlets for a project of mine. The only caveat is that the code generator assumes a liferay portal out of the box, but this can be easily changed thanks to the extensive customization hooks that this tool provides. The

[jboss-user] [JBoss Portal] - Re: Custom navigation region

2008-12-05 Thread psevestre
Hi, I've faced a similar problem: A main menu with top-level pages and an accordion-style sidebar menu. My solution: 1. In tabs.jsp, I always render both menus (ul/li structures) 2. In layout pages, I have two instances of the "navigation" region, using distinct "regionID" values. 3. In the t

[jboss-user] [JBoss Portal] - Re: Page restricted to unauthenticated users ?

2008-12-02 Thread psevestre
Just a sidenote: using "conditional regions" as I did also supports content management via the admin portal. All you have to do is create multiple regions and, in your layout pages, add the appropriate logic. The end-user will see all regions, and will be able to add content to them at will. Us

[jboss-user] [JBoss Portal] - Re: Page restricted to unauthenticated users ?

2008-12-01 Thread psevestre
I had a similar problem, but I've used a different approach. In my case, I want to keep the page (it's the default page) but some elements should not appear to logged users. To achieve this, I've used some logic in my layout pages, rendering a given region - or not - based on the return value

[jboss-user] [JBoss Portal] - Re: How to implement BreadCrumb

2008-11-13 Thread psevestre
I did it creating a custom tabs.jsp which gets injected into your pages when you use the "navigation" region in your layout. Beginning with the current node, a while loop goes back to the root PortalNode, adding all intermediate nodes into a list. After that I reverse the list and use it to bu

[jboss-user] [JBoss Portal] - Re: Reading/Updating JBoss CMS Files via Java Batch Program

2008-10-30 Thread psevestre
I can think in two ways in order to accomplish wat you want: 1) Elegant way: Write a small web app that exposes the CMS API as set of WebServices. You would then write a client app that would call those services. 2) Hacky way Use HTMLUnit, Selenium or some other web testing framework to autom

[jboss-user] [JBoss Portal] - Re: Reading/Updating JBoss CMS Files via Java Batch Program

2008-10-28 Thread psevestre
Well, you can use the "upload archive" feature of the CMS admin portlet. All you have to do is to create a zip file with static content (images,html, pdf, etc) and upload it to a given location within the CMS content tree. View the original post : http://www.jboss.com/index.html?module=bb&op

[jboss-user] [JBoss Portal] - Re: Apache fronting Portal (SSO issues)

2008-10-07 Thread psevestre
Just guesswork, but did you check the domain/path used by your SSO solution ? Also, you may need to enable cross-context authentication in tomcat, despite the tomcatAuthentication setting. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4180881#4180881 Reply

[jboss-user] [JBoss Portal] - Re: JBoss Portal and mobile devices?

2008-09-16 Thread psevestre
Troy, Maybe a mod-rewrite + some logic would work: 1. Use mod_rewrite to handle the redirect based on user agent 2. In your layout, you can define content areas which would be enabled or not based on the supported device features, as informed by WURFL. For instance, you can have a "generic" a

[jboss-user] [JBoss Portal] - Re: JBoss Portal and mobile devices?

2008-09-12 Thread psevestre
I think on two different ways to accomplish this: 1. mod_rewrite magic If you use Apache in front of JBoss, you can use mod_rewrite in order to redirect the user to different portals depending on user agent. You have more customization, but keeping the content in sync for both portals can be c

[jboss-user] [JBoss Portal] - Creating portal users programmatically

2008-08-28 Thread psevestre
Hi, I'd like to create a set of portal users based on information that I'll receive in a simple CSV-format file, containing some data. I've read the docs and source-code and, in a first incarnation of this batch import, I'm using the IdentityUserManagementService (which in not documented, btw