[JBoss Portal] - Re: JSF Portlet tutorial out of date?
by desropolis
Darn.
I was successful only in getting the JSF tutorial to run, not Seam.
This stinks. I was hoping to select the JBoss stack for my next implementation. Maybe I still can. It seems as though things are really in flux, here. I think it is a good kind of flux, but it is still flux.
I noticed the same thing back when I tried JBossIDE actually. There was a lot of "no, you'll need this jar now," and "download the latest version of this."
Maybe it's a JBoss thing. The people I'll be working with won't have limitless patience with it. I guess its the price of being on the cutting edge?
Dean
PS Honestly I don't know what you can do now. You need features/bugfixes of 2.6.1? Maybe you can wait until they sort this Seam/Portlet thing out.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070355#4070355
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070355
18Â years, 8Â months
[JBoss Seam] - Help with passing data back to the backing bean using Seam's
by tonylmai
Hello all,
Can someone help me to look through this piece of code in which I can't seem to pass a data back to the backing bean using Seam's EL. Perhaps the error is in my data model for the DataModelSelection.
I have a page that display quotes that belong to an account which belongs to a customer. A customer however may have many accounts.
Customer 1----* Account 1----*Quote
On my page, I have
<c:forEach var="acct" items="#{acctQuotes}">
| <rich:dataTable value="#{acct.quotes}" var="quote">
| <rich:column>
| <s:link value="ABC" action="#{wcQuotesMgr.viewNews(quote)}" />
wcQuotesMgr is
@Name("wcQuotesMgr")
| public class QuotesManagerBean implements QuotesManager {
| @DataModel("acctQuotes")
| private List<PortfolioQuote> acctQuotes;
|
| @DataModelSelection("acctQuotes")
| @Out(required = false)
| private PortfolioQuote portfolioQuote;
|
| public String viewNews(Quote quote) {
| // quote is not passed correctly. It is always null here
| }
And finally PortfolioQuote is as followed:
public class PortfolioQuote implements Serializable {
| private static final long serialVersionUID = 1L;
| private Account account = null;
|
| @DataModel("quotes")
| private List<Quote> quotes = null;
|
| @DataModelSelection("quotes")
| @Out(required = false)
| private Quote quote;
| ...
| }
Everytime the user clicked on the link to view news, wcQuotesMgr.viewNews is invoked with null passed in for parameter quote. How do I model this DataModel and/or DataModelSelection so that quote is passed accordingly?
Thanks for your help
-tony
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070348#4070348
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070348
18Â years, 8Â months
[JBoss Seam] - Re: @DataModel on Stateful beans (broken?)
by sannegrinovero
I made a three-line patch on the booking example, still a trivial change; here is the patch:
--- booking/src/org/jboss/seam/example/booking/HotelSearchingAction.java 2007-06-27 08:37:23.000000000 +0200
| +++ booking-broken/src/org/jboss/seam/example/booking/HotelSearchingAction.java 2007-08-03 01:26:12.000000000 +0200
| @@ -30,6 +30,7 @@
| private int page;
|
| @DataModel
| + public List<Hotel> getHotels(){ return hotels; }
| private List<Hotel> hotels;
|
| public void find()
| diff -ur booking/src/org/jboss/seam/example/booking/HotelSearching.java booking-broken/src/org/jboss/seam/example/booking/HotelSearching.java
| --- booking/src/org/jboss/seam/example/booking/HotelSearching.java 2007-06-27 08:37:19.000000000 +0200
| +++ booking-broken/src/org/jboss/seam/example/booking/HotelSearching.java 2007-08-03 01:28:01.000000000 +0200
| @@ -1,7 +1,8 @@
| //$Id: HotelSearching.java,v 1.12 2007/06/27 00:06:49 gavin Exp $
| package org.jboss.seam.example.booking;
|
| -import javax.ejb.Local;
| +import javax.ejb.Local;
| +import java.util.List;
|
| @Local
| public interface HotelSearching
| @@ -19,5 +20,7 @@
| public boolean isNextPageAvailable();
|
| public void destroy();
| +
| + public List<Hotel> getHotels();
|
| }
(I just moved the annotation from the field to a new getter with the same name, and declared the getter in the interface)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070347#4070347
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070347
18Â years, 8Â months
[Management, JMX/JBoss] - Re: Managing JBoss programmatically?
by BogusException
PeterJ,
Firstly, thanks for all your help (to at least me) over the past year. It has made things easier for me.
I'm still looking for the same thing, even after all these months. I'm still trying to deploy files in arbitrary locations to the JBoss server. They may be services or JAR, EAR or SAR, but I need to pass the class the filename & location, and ask that file be copied to the ./deploy dir.
I've been wrestling with outbound JCA, which would call a program on the outside running as the AS user, but outbound JCA seems extremely difficult. I've even read that it may be overkill.
What might hold promise is JMX. The key here, though, seems to be overcoming JBoss' inherent security which prevents a deployed app from deploying/controlling apps via JMX.
Not a problem, as I can change the server to suit.
Any thoughts?
TIA!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070339#4070339
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070339
18Â years, 8Â months