[jboss-user] [JBoss Portal Users] - Re: convert liferay portlets to jboss portal portlets!

2009-12-02 Thread apemberton
I haven't looked at the details of the Liferay chat portlet, but if it's based on the portlet specifications JSR168 or JSR286, it should work. That said, I doubt it's completely standard; it most likely relies on Liferay proprietary APIs or external data sources, etc. View the original post :

[jboss-user] [JBoss Portal Users] - Re: JBOSS SSO supports IIS?

2009-11-17 Thread apemberton
I'm not sure if JBoss SSO supports IIS directly, but if you're using NTLM authentication w/IIS, the Portal can be configured for NTLM security as well. Hope this helps. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4266071#4266071 Reply to the post :

[jboss-user] [JBoss Portal Users] - Re: Beginer Porblem with a portlet deployment

2009-11-13 Thread apemberton
I'd check what version of portal the portlet you're trying to deploy was developed and tested on. I'm assuming it doesn't work with Portal 2.7.X. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4265635#4265635 Reply to the post :

[jboss-user] [JBoss Portal Users] - Re: Only GET supported?

2009-11-13 Thread apemberton
No, both the POST and GET http methods are supported. Have you had problems with POST? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4265636#4265636 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4265636

[jboss-user] [JBoss Portal Users] - Re: Pdf/xls file using in jboss portal issue.

2009-11-09 Thread apemberton
You should be able to use the new JSR286 method: serveResource to stream the PDF data. Pre-JSR286, you'd have to use a side servlet for this functionality. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4264725#4264725 Reply to the post :

[jboss-user] [JBoss Portal Users] - Re: Error in submit portlet page using javascript

2009-10-06 Thread apemberton
Does your javascript function send an HTTP get (ie: window.location) or an HTTP post (ie: dynamically set the action= in your form)? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4258947#4258947 Reply to the post :

[jboss-user] [JBoss Portal Users] - Re: Developing an automatic service

2009-10-05 Thread apemberton
This sounds more like a business component than a Portal component (ie: not a portlet) that the EJB3 timer service would be well-fit for: http://java-x.blogspot.com/2007/01/ejb-3-timer-service.html View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4258703#4258703

[jboss-user] [JBoss Portal Users] - Re: links from portlet content to another portal page

2009-10-05 Thread apemberton
The message you're getting may be resolved by configuring your jboss-portlet.xml with a transaction attribute, otherwise your two portlets won't be able to generate URLs to eachother: portlet-nameYourPortlet/portlet-name trans-attributeRequired/trans-attribute

[jboss-user] [JBoss Portal Users] - Re: Using Jboss Portal with Spring Portal MVC Spring Appli

2009-09-17 Thread apemberton
Agreed; I decided against using Spring Security in the Portal environment. Most of what Spring Security offers at least from an authentication/basic authorization (ie: not ACLs) perspective, JBoss Portal offers out of the box with appropriately used LoginModules, etc. View the original post :

[jboss-user] [JBoss Portal Users] - Re: Global logoff

2009-09-16 Thread apemberton
We've enabled Tomcat's SSO valve which is effectively very similar to what you're trying to do: http://www.andypemberton.com/jboss/securing-ajax-servlets-in-jboss-portal/ Though, can you further describe your apps and the four different containers they run in? Are the consumed with WSRP? How

[jboss-user] [JBoss Portal Users] - Re: Deleting pages permanently

2009-08-30 Thread apemberton
To your first question, there is a sample portlet WAR deployed that contains *-object.xml files that replaces those pages when the server starts. Simply remove the *-object.xml files or those portlets entirely and they should be gone. View the original post :

[jboss-user] [JBoss Portal Users] - Re: Public Render Parameters retain value even when not in U

2009-08-26 Thread apemberton
Public Render URLs are a special type of Render URL as defined by the JSR286 (Portlet 2) specification. They are retained through multiple renders (and re-renders) of a given portlet and other portlets setup to use the shared parameter. This is standard behavior for render parameters in the

[jboss-user] [JBoss Portal] - Re: Porting application from WebSphere to JBoss

2009-07-30 Thread apemberton
I don't have experience specifically migrating websphere apps to jboss, but I do have extensive experience with both websphere and jboss portal. The first place to start with this kind of task is to ensure you're not using any vendor proprietary APIs (IBM in this case). You'll want to use the

[jboss-user] [JBoss Portal] - Re: Packaging portlets for deployment

2009-07-30 Thread apemberton
Yes, this is no problem. You can package all of your portlets inside a single .war file. You'll just define each portlet in your (single) portlet.xml file: ?xml version=1.0 encoding=UTF-8? portlet-app ... display-namePortletOne/display-name

[jboss-user] [JBoss Portal] - Re: windowState not set on ActionRequest

2009-07-14 Thread apemberton
I think JSR168/286 define that the WindowState change won't be propagated until the subsequent RenderRequest (after your ActionRequest). From JSR286: anonymous wrote : The setWindowState method allows a portlet to change its current window state. The new window state will be effective in the

[jboss-user] [JBoss Portal] - Re: XML Escaping resourceURLs

2009-06-24 Thread apemberton
Agreed with Chris here. The default value for the javax.portlet.escapeXml runtime option should be true. See: http://www.andypemberton.com/portal/jsr286-tag-library-and-xml-escaping/ View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4239845#4239845 Reply to the

[jboss-user] [JBoss Portal] - Re: problem with spring mvc

2009-06-17 Thread apemberton
http://static.springframework.org/spring/docs/2.5.x/reference/portlet.html View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4238275#4238275 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4238275

[jboss-user] [JBoss Portal] - Re: How to access HttpSession Attributes in a portlet.

2009-05-26 Thread apemberton
Not sure if the original author achieved success, but one way to handle this would be to access the servlet's session from the portlet through the PortletSession scope. JSR168 and 286 allow sharing of a web-application's session with a portlet if they're pacakged together by accessing the

[jboss-user] [JBoss Portal] - Re: Interportlet Communication in JBoss Portal 2.6.x (JSR 16

2009-05-13 Thread apemberton
Sourav: correct - to my understanding the PortalNodeEvent mechanism can only swap events in and out of the event chain, and so is fairly limited in terms of IPC. What we've done to handle this limitation is, in a small set of cases, use the Navigation API to store some data in the global

[jboss-user] [JBoss Portal] - Re: Usage scenario of Resource Serving through resourceURL i

2009-05-12 Thread apemberton
In short, a call to ActionURL will return an entire portal page (with theme, renderers, and all), whereas a ResourceURL serves your markup raw but still provides access to the portal context. Pre-JSR286, this was accomplished with backing servlets, which did not have implicit access to the

[jboss-user] [JBoss Portal] - Re: JBoss Portal as a Portlet oriented Application

2009-05-12 Thread apemberton
Packaging a portlet is very similar to a standard JavaEE web app, except it includes a portlet.xml (in addition to the standard web.xml). Typically portlets are packaged as WAR files, the structure of which is defined by JSR168 / 286: http://jcp.org/en/jsr/detail?id=286 I recommend giving the

[jboss-user] [JBoss Portal] - Re: user role and several portals

2009-05-05 Thread apemberton
Let me try to restate your problem to see if I'm understanding: you can render your actual portlet, but on clicking the hyperlink in the JSP page, the hyperlink is not working? Unless the forum stripped your HTML there, I'm assuming it's because you don't have a protocol (http://) before your

[jboss-user] [JBoss Portal] - Re: how to get PortalRuntimeContext from portlets

2009-04-28 Thread apemberton
You should be able to access the PortalRuntimeContext using the Navigation class's static accessor: PortalRuntimeContext prc = Navigation.getPortalRuntimeContext(); See:

[jboss-user] [JBoss Portal] - Re: Referencing path outside of portlet

2009-04-23 Thread apemberton
If you're using a custom theme (or maybe even if you're not), I'd recommend adding jQuery to your theme directory. That way, you can maintain it there and reference it from all of your other portlets as necessary. View the original post :

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

2009-04-07 Thread apemberton
If the JBoss Portlet Bridge is still a bit too cutting edge for your shop, we've used Spring Portlet MVC successfully in several large scale JBoss Portlet projects. Though, it does come with the typical spring headaches (verbose xml, type safety issues). The answer here depends on a number of

[jboss-user] [JBoss Portal] - Re: Portlets doView() method Problem in portlets

2009-03-25 Thread apemberton
This is a standard part of the portlet lifecycle (portlet 2-phase, action/render lifecycle). Off the cuff, I can think of a few ways to help with your scenario: don't load data from the database in your render (doView) calls check out the out of the box ajax/partial-refresh features to see if

[jboss-user] [JBoss Portal] - Re: How to invalidate a special UserSession

2009-03-24 Thread apemberton
Not sure what version of Portal you're on, but you should check out the UserEvent API: http://docs.jboss.com/jbportal/v2.6.5/javadoc/org/jboss/portal/api/user/event/UserEvent.html There's an example (for 2.6.X) that describes building a user counter using the UserAuthenticatedEvent:

[jboss-user] [JBoss Portal] - Re: Session portlet to another portlet

2009-03-21 Thread apemberton
If your portlets are packaged in the same WAR, the sample code you provided will actually work. Otherwise, you'll have to employ interportlet-communication or use JBoss's proprietary APIs to achieve session sharing. View the original post :

[jboss-user] [JBoss Portal] - Re: struggling to get user family name and role into jsp fil

2009-03-19 Thread apemberton
What version of JBoss Portal are you using? In Portal 2.6, your PageCustomizerInterceptor stores the userProfile as a request attribute: Controller controller = controllerCtx.getController(); | Map userProfile = controllerCtx.getUserProfile(); |

[jboss-user] [JBoss Portal] - Re: Where is JBossPortlet.class

2009-03-19 Thread apemberton
Should be located at: PS_HOME/server/default/deploy/jboss-portal.sar/lib/jboss-portlet-api-lib.jar Also, you should check out the JBoss Tattletale project, which can help you locate classes in jars, etc: http://blog.hibernate.org/Bloggers/IntroducingJBossTattletale10BETA1 View the original

[jboss-user] [JBoss Portal] - Re: Session Problem

2009-03-17 Thread apemberton
No worry, fuchs - just trying to be helpful. =) View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4218854#4218854 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4218854 ___ jboss-user

[jboss-user] [JBoss Portal] - Re: Remove portlet Maximize button.

2009-03-13 Thread apemberton
One technique we've used in the past to do what you're describing is somewhat similar to fuchs recommendation. We extended our custom decoration renderers to look for a window property to disable certain mode/state links. Example property: property |

[jboss-user] [JBoss Portal] - Re: jQuery in jBoss portal - problem with a simple tabbed pa

2009-03-13 Thread apemberton
Sorry; hard to diagnose a fairly generic problem like that. I'd recommend using a JavaScript debugging tool (like FireBug for FireFox) to look at the details of the error your receiving. Are you using a custom theme? If so, you may want to just include the jQuery libraries in the theme

[jboss-user] [JBoss Portal] - Re: Session Problem

2009-03-13 Thread apemberton
First, as an FYI: it usually doesn't help get responses to your forum requests by explaining the urgency of your problem. If someone has time to help, they will. Second, the problem you're seeing is a result of setting a session attribute in the portal-server.war web application and trying

[jboss-user] [JBoss Portal] - Re: Session Problem

2009-03-13 Thread apemberton
Note that Fuchs's solution mentioned below enables session-replication for setting up JBoss Portal in a clustered environment; it does not solve the problem of attempting to access session attributes across web applications. View the original post :

[jboss-user] [JBoss Portal] - Re: Remove portlet Maximize button.

2009-03-13 Thread apemberton
I don't think you'd want to set overflow, you'd want to set either visibility, display, or use positioning to push the element off the screen: display:none; | visibility:hidden; | position:absolute;left:-em; This solution would still render the links in the markup, but use CSS to hide

[jboss-user] [JBoss Portal] - Re: Login goes to a special page

2009-03-11 Thread apemberton
Hm - not quite sure I understand your use case here, but off the cuff, one way you could accomplish this is with security. Example: - If User A (or User Role A) logs in and has access to Page A, they'll get that page - If User B (or User Role B) logs in and has access to Page B (and not Page

[jboss-user] [JBoss Portal] - Re: Accessing JBossPortletRequest/HTTPServletRequest in Port

2009-03-07 Thread apemberton
See the notes on upgrading from 2.6 to 2.7 on accessing the JBoss-specific portlet requests: http://docs.jboss.com/jbportal/v2.7.0/referenceGuide/html/changelog.html Relevant text: anonymous wrote : Usage of JBossActionRequest is not available directly anymore. From now on it is only

[jboss-user] [JBoss Portal] - Re: trim whitespace at jsp

2009-03-05 Thread apemberton
JBoss Portal 2.7 uses JBoss AS 4.2.3, which in turn uses Tomcat 5.5 under the covers as the servlet engine. Tomcat 5.5 is Servlet 2.4/JSP 2.0 compatible, so you can't use the JSP 2.1 trimDirectiveWhiteSpaces feature. You can, however, use the trimSpaces init-param per

[jboss-user] [JBoss Portal] - Re: trim whitespace at jsp

2009-03-05 Thread apemberton
Well, this would depend on your installation scenario a bit. For example, if you front your portal server with Apache web server, you can use mod_deflate to GZip your response: http://httpd.apache.org/docs/2.0/mod/mod_deflate.html. If you're hitting the portal server directly, you could

[jboss-user] [JBoss Portal] - Re: Regarding Portal session management

2009-02-27 Thread apemberton
JBoss Portal takes a very literal interpretation of JSR168 when it comes to managing user roles. So, any roles that you want to use from your JAAS security context, you'll have to define (at least a role-name, not necessarily role-link) in your portlet.xml: security-role-ref

[jboss-user] [JBoss Portal] - Re: Portal page name

2009-02-05 Thread apemberton
You can use the following in a tag extending SimpleTagSupport: PortalNode currentNode = (PortalNode) getJspContext().findAttribute(org.jboss.portal.api.PORTAL_NODE); | currentNode.getName(); | currentNode.getDisplayName(locale); Your PageCustomizerInterceptor stores the current PortalNode

[jboss-user] [JBoss Portal] - Re: IFrame cannot redirect to secure Intranet

2009-01-28 Thread apemberton
So, unless I misunderstood your problem, it sounds to me that there's a problem with your approach. The HTML iframe tag takes a URL in its src attribute, much like an img tag. Your web browser then downloads the src of the iframe just as it would an image. In other words, with iframes,

[jboss-user] [JBoss Portal] - Re: UserModule, Hibernate JTA transaction Ajax Request

2009-01-22 Thread apemberton
Understood. The classic http requests you're referring to would be PortletRequests, no? The difference being that your PortletRequests are routed through the PortletContainer's command stack where your ajax requests are handled by the servlet engine, so it would make sense that the servlet

[jboss-user] [JBoss Portal] - Re: UserModule, Hibernate JTA transaction Ajax Request

2009-01-21 Thread apemberton
As for the portlet, in order to have a portlet share in the portal's JTA transaction, you can add the following to your jboss-portlet.xml: portlet-app | portlet | portlet-nameYourPortlet/portlet-name | transaction |

[jboss-user] [JBoss Portal] - Re: Iphone MobileSafari error on render Portal layouts

2009-01-20 Thread apemberton
It sounds like you may be facing some other challenges, not necessarily related to those you describe. If you've been developing portlets with html, head, and body tags, that's a problem. Your layout should contain those tags, but as you point out - because portlets are aggregated onto a

[jboss-user] [JBoss Portal] - Re: Is jboss portal a good platform to develop a tracking pr

2009-01-19 Thread apemberton
This is a fairly nebulous question and would really depend on your requirements, but I'll toss in my two cents. First, to your comparison - Trac is a custom app written in Python. Second, you have to think about what a Portal platform and specifically what JSR168 and JSR286 buy you. The

[jboss-user] [JBoss Portal] - Re: Use Themes outside of actual portal.

2009-01-17 Thread apemberton
Sure; Portal themes run as (or inside) a typical Java EE WAR. There's no reason your custom Spring-based web apps can't directly reference your Portal's CSS files. You shouldn't have to copy the CSS selectors, you should be able to reference your Portal's theme CSS files directly: link

[jboss-user] [JBoss Portal] - Re: JBossRenderResponse createActionURL failed

2008-10-21 Thread apemberton
Anyone have an idea here? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4183700#4183700 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4183700 ___ jboss-user mailing list

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Issue with the JBoss HelloWorldIPC portlet

2008-09-05 Thread apemberton
Brian: Thanks for the dilligence; I'm having a similar issue on JBoss Portal 2.6.5. Basically, if I have two portlets on PageA: PortletA and PortletB, PortletA can only access its own portlet window on the given page. So, the following code can access any page below PageA and PortletA itself:

[jboss-user] [JBoss Portal] - NavigationPortlet Injection in JBoss Portal 2.6

2007-03-22 Thread apemberton
In JBoss Portal 2.4, the NavigationPortlet instance was added manually to each portal page. Has this changed for Portal 2.6? I don't see the NavigationPortlet instance in the page layout interface. It appears as though the navigation portlet is injected into the entire portal, but I am unable