[JBoss-user] [EJB 3.0] - Returning generated primary key value using GenerationType.A

2006-03-20 Thread vmarco
I'm using EJB 3.0 RC5 on JBoss 4.0.3SP1 with MySQL 5.0. I'm trying to retrieve a primary key value following a merge() of a new entity. The row gets created fine, but I don't get the primary key value back. It returns 0L (long, BIGINT). Is there a way to return the generated primary key value

[JBoss-user] [JBoss Portal] - Re: Internal error: Query did not return a unique result: 2

2006-03-15 Thread vmarco
The seriousness of this issue it critical to portal developers. Out of the blue my portal starts blowing up. The only clue hinted at by the exception is that something, probably from my config, which is now in the portal DB is in error and I have no clue how to fix it. I did deploy to a diffe

[JBoss-user] [JBoss Portal] - Where is the download?

2006-03-15 Thread vmarco
I only see 2.2.1RC2 at the download site. Have they been revoked or are they on the way? Cheers, Vince View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3930500#3930500 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=393

[JBoss-user] [JBoss Portal] - Internal error: Query did not return a unique result: 2

2006-03-15 Thread vmarco
I am developing on JBoss 4.0.1sp3 + JBoss Portal 2.2.1rc2 on OSX 10.4.5, and I'm getting an error on display of a portal page. The exception indicates a hibernate.NonUniqueResultException, but I really can't detect what I did to cause this, as I haven't hooked up my own persistence layer yet.

[JBoss-user] [JBoss Portal] - Re: what is the best IDE to develop portlets?

2006-03-13 Thread vmarco
In addition to JSF, you can also use Tapestry 4.0 to effectively build portlets. This provides the same benefits as JSF, in terms of deploying a project both as a web application and as a portlet. One benefit of Tapestry is its non-JSP view structure. This can also be achieved with JSF by usi

[JBoss-user] [JBoss Portal] - JBoss Forums - Categories and Forums by Role?

2006-03-08 Thread vmarco
Is it possible to limit access to specific categories and/or forums by role? It seems that the forum functions are assigned by role, but I don't see any place to allow/deny viewing and posting per category and/or forum. Is this on the horizon? This is essential for me to use JBoss Forums, as I

[JBoss-user] [JBoss Portal] - Found it: layoutStrategy

2006-03-08 Thread vmarco
As much as I dislike answering my own questions, I feel it is good to share. This was fairly easy, just a bit allusive. I had my layoutStrategyId set to "default" instead of "maximizedRegion". I guess I'm wondering why maximizedRegion isn't the default. It seems that portlet minimize and maxi

[JBoss-user] [JBoss Portal] - Authentication API

2006-03-07 Thread vmarco
Is there a Java authentication API in JBoss? I'm creating a custom LoginPortlet using Tapestry and would like to authenticate the user from a Java class. I have disected the UserPortlet and see it routes a request through JAAS to a maximized portlet. But I'd like to enable a "login in place"

[JBoss-user] [JBoss Portal] - Hiding/Displaying a page based upon role

2006-02-16 Thread vmarco
Is it possible to hide / display a page (tab) based upon a user's role? Do I add some tags to the *-objects.xml file? Which ones? Also, is it there a role for the user before they log in? Such as an anonymous role? View the original post : http://www.jboss.com/index.html?module=bb&op=viewt

[JBoss-user] [JBoss Portal] - Re: ForumsPortlet disappears when maximized...

2006-02-15 Thread vmarco
Ok, this is definately something I'm doing wrong in my portal configuration (myportal-objects.xml). None of my portlets show up when maximized. Any suggestions? BTW - I must say that I do have a Tapestry-based portlet working very well, and it is nice. I want to also get a JSF-facelet based p

[JBoss-user] [JBoss Portal] - ForumsPortlet disappears when maximized...

2006-02-15 Thread vmarco
I've got the ForumsPortlet 2.2.1RC2 installed in the JBoss Portal 2.2.1RC2 + 4.0.3SP1 bundle. I've got both the default portal and also my own portal deployed. When I maximize the ForumsPortlet in my portal, the window dissappears. However, it works in the default portal. It seems that when

[JBoss-user] [JBoss Portal] - Re: CMS editor problems...

2006-02-09 Thread vmarco
Tried uploading. Same result. Any other ideas for getting content into CMS that's usable? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3922724#3922724 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3922724

[JBoss-user] [JBoss Portal] - CMS editor problems...

2006-02-07 Thread vmarco
I'm using the JBossPortal 2.2.0 / JBoss 4.0.3sp1 bundle on MacOSX 10.4.4, and I'm having a problem using the CMSAdmin portlet HTML editor. Every time I submit an entry I either get a hostname which removes the colon between the host and port of image urls, or I get URLs with a "../.." replacing

[JBoss-user] [JBoss Portal] - Re: Customize Navigation Portlet

2006-01-24 Thread vmarco
Beat me to it. Here is a segment from my *-objects.xml file related to my version of the NavbarPortlet and the code. | | default | | | navbar.DisplayName | Home | | |

[JBoss-user] [JBoss Portal] - Re: Customize Navigation Portlet

2006-01-24 Thread vmarco
"[EMAIL PROTECTED]" wrote : a better suggestion than roy's one is : | | contribute to the portlet and add a portlet preference for it that says how to display nodes. | | My question then is how do you decide on a design for things like this, or are they just thrown together by whomeve

[JBoss-user] [JBoss Portal] - How do I display tabs for subpages?

2006-01-06 Thread vmarco
I have a page with sub-pages. How do I display the sub tabs for the sub-pages? The way that NavigationPortlet is bound to the css in the samples, doesn't appear to leave any room for displaying the sub-tabs, which commonly are rendered with a separate style. Drop-downs via Javascript would be

[JBoss-user] [JBoss Portal] - Re: Define CMS default page at instance level

2006-01-06 Thread vmarco
Yes, I've run into this too. I use multiple windows throughout my portal each looking to display from CMS using the CMSPorlet, but different queries (locations). I don't see any ability to associate properties to content in the CMS, nor to query content based upon properties. Is this supporte

[JBoss-user] [JBoss Portal] - Re: Changing Page name and Portlet title

2006-01-04 Thread vmarco
"mholzner" wrote : | I agree that this isn't at a level where it should be at the moment, but it should be rather simple to write a jsp tag that allows the layout to set the title via a JSTL expression (that can use the current page's title or whatever to create the title string); Once we hav

[JBoss-user] [JBoss Portal] - Re: Changing Page name and Portlet title

2006-01-03 Thread vmarco
"mholzner" wrote : The title that is shown in the browser is set by the layout. | In the portal core war look for layouts/generic/index.jsp , and there for the title tag. Doesn't this prevent me from controlling the title per page? Doesn't it also means to control the title of my site I am

[JBoss-user] [JBoss Portal] - Re: Changing Page name and Portlet title

2006-01-03 Thread vmarco
Martin, I had this same problem. I found the page names, however, the docs indicate there must be a page named "default". I would like my default page to be named "Home". Can I do this in configuration? I did code around it with a new NavigationPortlet, but if it can be done in configuratio

[JBoss-user] [JBoss Portal] - NavigationPortlet enhancements

2006-01-03 Thread vmarco
I was not satisfied with the NavigationPortlet for displaying my tabs, so I wrote a new one. It allows users to specify two properties on pages named, "navbar.DisplayName" and "navbar.SortOrder". These are not required, but if included will override the name displayed on the tab and allow cont

[JBoss-user] [JBoss Portal] - Re: Portal URLs

2005-12-29 Thread vmarco
Found it. For some odd reason I hadn't run across where the sample portal was located at. I can see how to do the tabs. Cheers, Vince View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3914781#3914781 Reply to the post : http://www.jboss.com/index.html?modul

[JBoss-user] [JBoss Portal] - Re: Portal URLs

2005-12-28 Thread vmarco
Ok, so it seems I need a NavigationPortlet to provide the tabs. How do I add this. I tried inside a window, but that doesn't look right. Can I add it at the portal level of the descriptor? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3914667#3914667 Repl

[JBoss-user] [JBoss Portal] - Can portlets be put in header?

2005-12-28 Thread vmarco
Is it possible to position a portlet window at the portal level so that it is positioned in the header instead of on a specific page? This is often done with a login portlet, so that users can login/logout regardless of which page they are on, and can have feedback as to their login status. Th

[JBoss-user] [JBoss Portal] - Portal URLs

2005-12-28 Thread vmarco
I am new to JBoss Portal, but am very fluent with Weblogic Portal and JSR-168. I am using JBoss Portal 2.2 and JBoss 4.0.3 (the jboss portal 2.2 bundle), along with MySQL 5. I deploy demoportal.ear (which I created through descriptors), which contains the HelloWorldPortlet, along with 5 pages