[jboss-user] [JBoss Seam] - ouject a non seam bean
Hello :-) I've got two bean seam Seam1, Seam2. I ouject Seam1 in the context and I can get it in Seam2. It works well. In Seam1, I've got a getter/setter method on a non seam object Object1. When I try to get Object1 in my Seam2, I've got a nullPointerException. When I display attributes of my object1 in my JSF it works but I need to do some stuff before displaying. Could you please help me ? thank you View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4038746#4038746 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4038746 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: ouject a non seam bean
ok | @Name(seam1) | @Scope(ScopeType.CONVERSATION) | public class Seam1Action { | | private Model model; | | private String updateModel{ // method called on an actionCommand in JSF |// |setModel(model); | } | } | @Name(seam2) | @Scope(ScopeType.CONVERSATION) | public class Seam2Action { | @In | private Seam1Action seam1; | | public Seam2Action() { | sysout(seam1.getModel().toString()); | } | | ... | } | This code returns a null pointerException. When I comment the sysout and put h:outputText value=#{seam2.seam1.model.attribute} / | it works ??? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4038768#4038768 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4038768 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: ouject a non seam bean
Ok, sorry. I can't get my object Model in the constructor. My Model has not yet been created by seam... When I get in a getAttribute, it works very well. Thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4038781#4038781 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4038781 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - questions about navigation and injection
Hello !! I need some explanation from you. I have two JSF with two seam bean. No problem with that. I want to get information about the first bean in my second JSF. I tried to use the annotation @In in a conversation scope but my injected bean is null. How can I do to put my bean 1 into my bean 2 without reconstruct it ? I hope I'm clear. Thank you for your help View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4037465#4037465 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4037465 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: questions about navigation and injection
In addition, I use POJOs : @Name(bean1) | @Scope(ScopeType.CONVERSATION) | public class Bean1... @Name(bean2) | @Scope(ScopeType.CONVERSATION) | public class Bean2 { | @In | private Bean1 bean1; View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4037486#4037486 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4037486 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Tomcat, HTTPD, Servlets JSP] - problem of value binding
Hi, I don't understand. I have this message : | Value binding '#{ben.allItems}'of UISelectItems with component-path {Component-Path : [Class: org.ajax4jsf.framework.ajax.AjaxViewRoot,ViewId: /page.xhtml][Class: javax.faces.component.html.HtmlForm,Id: codeProduitForm][Class: javax.faces.component.html.HtmlSelectOneMenu,Id: ids][Class: javax.faces.component.UISelectItems,Id: _id33]} does not reference an Object of type SelectItem, SelectItem[], Collection or Map but of type : null here is my page.xhtml | ... | h:selectOneMenu id=selectProduit value=#{bean.code} | f:selectItems value=#{bean.allItems}/ | /h:selectOneMenu | ... and my bean | private String code; | private SelectItem item1 = new SelectItem(code1, produit1); | private SelectItem item2 = new SelectItem(code2, produit2); | private SelectItem allProduits[] = new SelectItem[]{item1,item2}; | ... getter/setter... | Does anyone can help me please ? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4036644#4036644 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4036644 ___ jboss-user mailing list [EMAIL PROTECTED] https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: problem of value binding
maybe it's not the good section of the forum for this question, I'm sorry View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4036653#4036653 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4036653 ___ jboss-user mailing list [EMAIL PROTECTED] https://lists.jboss.org/mailman/listinfo/jboss-user