I have a portal with a two pages. On each page I have a window which shows a portlet. I want to use two different instances of the portlet for the windows (I have to identify each instance to populate it by specific data).
I could define these two instances in the portlet-instances.xml but I need to do this in runtime, programmatically with the Portal API. How can I create a new Instance? Eclipse tells me I cant instantiate instances of InstanceImpl.
Also, can I use this InstanceImpl instance's name as an attribute to setInstanceRef(String instance)?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037149#4037149
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037149
i'm ussing s:selectItems and s:convertEntity with seam 1.2.1
i get a list of entities converted perfectly but the selected entity does get not into the context or anything, is there anything else i'm missing.
by the way i'm also using facelets, ajax4fs and richfaces.
mi bean looks like this
@Name("typeHome")
| @Stateful
| @PerNestedConversation
| public class TypeHome extends EntityHome<Type> implements TypeHomeInterface {
|
| @In(required = false)
| @Out(required = false)
| private Type type;
and mi xhtml:
<h:selectOneMenu value="#{type.group}" >
| <s:selectItems value="#{groups}" var="group" label="#{group.name}" noSelectionLabel="Please Select..."/>
| <s:convertEntity />
| </h:selectOneMenu>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037146#4037146
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037146
This is sort of a dumb question but
The Booking and DVD apps both use Hypersonic DB as the datasource. These apps both bundle an import.sql file to set up the sample data to be used. Where in the configuration of the app does it tell Hypersonic to execute these scripts? Is it just the fact that the file is called "import.sql" and bundled in the EJB jar that triggers it or is there something I am missing that instructs Hypersonic/JBoss to execute these scripts when the app is deployed?
I am trying to get to where to can develop my apps using the Embedded Hypersonic Database and the Embeddable EJB Container instead of having to rely on having a connection to a test Oracle Database and having to fire up JBoss.
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037144#4037144
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037144
I have been able to get all of the bank running through chapter 4 of the getting started guide.
I then built and deployed the web server TellerBean according to chapter 5. But, when I navigate to the appropriate URL, I get a 404 error. The JBOSS Log does not not display any errors. The browser shows:
HTTP Status 404 - /bankws-ejb/TellerService
type Status report
message /bankws-ejb/TellerService
description The requested resource (/bankws-ejb/TellerService) is not available.
I can see several listings for the TellerBean in the MX console, but being new to this, I don't know if they are listed correctly.
I tried doing an ant clean, then starting over from scratch. That did not help.
I am using 4.0.4GA, JDK 1.5.0_11, WinXP
Any advice would be appreciated.
Thanks,
Jeff
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037142#4037142
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037142
Instead of creating a .spring archive, I am looking in to using the APPNAME-spring.xml file for spring deployment.
My current setup is like this
app.ear
|_ app.ejb (contains ejb3 and all java classes)
|_app-web.war (web application)
If I want my spring code inside app-ejb.jar to be deployed by the spring deployer, should I place my app-spring.xml inside
1) app.ear/app-spring.xml OR
2) app-ear/app.ejb/app-spring.xml OR
3) app-ear/app.ejb/META-INF/app-spring.xml ?
Also do I have to add anything to app.ear/META-INF/application.xml or app.ear/app.ejb/META-INF/ejb-jar.xml ?
Or will spring deployer will auto detect any -spring.xml file inside of a .ear or ejb-jar (app.ejb) ?
thanks guys
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037137#4037137
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037137