[JBoss Seam] - DataModel in two SFSB issues (regression)
by lcoetzee
Hi,
some time ago I ran into this problem (which was fixed in CVS), but seems to have re-appeared with Seam 2.0 CR2
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=106625
Briefly...
I have a SFSB (questionnaireManagementBean) where I create/populate a datamodel ("sections"), which is outjected and used on my xhtml page. From that page (in the same conversation) I execute a method in another SFSB (sectionManagementBean)(where I use the previously outjected datamodel). At this point the datamodel is not available in sectionManagementBean anymore (in previous CVS builds this variable was available (but I dont know when this stopped working again)).
The source code:
| @Stateful
| @Name("questionnaireManagementBean")
| public class QuestionnaireManagementBean implements QuestionnaireManagement {
|
| @DataModel
| private List<Section> sections;
|
| .
| .
| .
| }
|
| @Stateful
| @Name("sectionManagementBean")
| public class SectionManagementBean implements SectionManagement {
| @DataModel(value="sections")
| private List<Section> sections;
|
| @DataModelSelectionIndex(value = "sections")
| private int selectedSectionNr;
| .
| .
| }
When I look at the variables in the conversation context injected into the sectionManagementBean I see the "sections" in the conversation context as:
| INFO[csir.questionnaire.management.seam.SectionManagementBean] questionnaireManagementBean.sections
and not as just a normal "sections". Thus the variable is null (which results in all sorts of nasty things.)
Any suggestions ?
Thanks
Louis
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094145#4094145
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094145
18Â years, 9Â months
[JBoss Seam] - Re: Problems with <t:dataList>
by francisco.noguera
@Stateful
public abstract class SitiosWebBaseAction extends ReelAction implements ISitiosWebBaseAction {
@Logger
protected Log log;
@EJB
protected ISitiosWebFacade sitiosWebFacade;
@In("facesMessages")
protected FacesMessages msg;
@DataModelSelection("marcadores")
@Out(value="marcador",required=false)
protected Marcador marcador;
@DataModelSelection("documentos")
@Out(value="documento",required=false)
protected Documento documento;
@DataModelSelection("noticias")
@Out(value="noticia",required=false)
protected Noticia noticia;
@DataModel
protected List marcadores;
/** Creates a new instance of SitiosWebBaseAction */
public SitiosWebBaseAction() {
}
@Create
public void create() {
sesion = Contexts.getSessionContext();
iniciar();
}
public Marcador getMarcador() {
return marcador;
}
public void setMarcador(Marcador marcador) {
this.marcador = marcador;
}
public List getMarcadores() {
return marcadores;
}
public void setMarcadores(List marcadores) {
this.marcadores = marcadores;
}
}
----------------------------------------------
srry this is the another part
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094144#4094144
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094144
18Â years, 9Â months