[jboss-user] [JBoss Seam] - @DataModel vs. EL

2008-02-02 Thread mykey
I am displaying a list of entities (Student) with a @DataModel on a JSF Page with two links: one for editing and one for delting. For some reason the injection by DataModelSelection does not work correctly. My my status-EL messages for these two functions aren't shown correctly. Deletin entities

[jboss-user] [JBoss Seam] - DataModel changes not reflected in view [possible newbie ign

2008-01-11 Thread giannidoe
I'm using a session-scope stateful session bean to hold search results in a DataModel - in a similar manner to the booking example. I first populate the DataModel by performing an entity query, if I then modify and persist one of the entities from the search results, return to the search page a

[jboss-user] [JBoss Seam] - @DataModel makes me go nuts or it's a bug ?

2007-12-28 Thread dexjam
Either this is a bug, or possibly i don't get it, why is this working: --- BEGIN DOES work (TM) --- | @Stateful | @Name("admin") | public class AdminUserBean implements Serializable, AdminUser { | | @PersistenceContext() | private EntityManager entityManager; | | //

[jboss-user] [JBoss Seam] - DataModel and method binding with scope different from SESSI

2007-12-07 Thread seampatic
I have a class with a DataModel and a method that must receive the selected item with the following signature public void selectItem(Item item) When the action class is has SESSION @scope the method receives the selected item but other scope like PAGE doesn't work. How can I resolve this prob

[jboss-user] [JBoss Seam] - @DataModel s:link h:commandButton h:dataTable

2007-12-06 Thread djfjboss
I'm very puzzled regarding the behaviour and interaction of the above components. I have used them successfully in some contexts, but am having problems with them in other contexts but can't see any pattern. My understanding was that s:link is to be preferred over the non-Seam h:commandButton

[jboss-user] [JBoss Seam] - @DataModel problem

2007-11-27 Thread lsabin
Hi. I have the following component which retrieves a list of courses done by a employee. This works fine but when I included some code to get a list of courses that match a certain input the list of courses is not retrieved (actually the method listCoursesEmployee() is not invoked at all).

[jboss-user] [JBoss Seam] - DataModel annotation and empty EL operator

2007-11-26 Thread chawax
In a Seam component, I have an array attribute with @DataModel annotation and an associated @Factory metod. @org.jboss.seam.annotations.datamodel.DataModel | protected myPackage.VOProcessus[] listeProcessus; @javax.ejb.TransactionAttribute(javax.ejb.TransactionAttributeType.REQUIRES_NEW) | @

[jboss-user] [JBoss Seam] - DataModel bug in Seam 2

2007-11-08 Thread andreigh.ts
Hello we have migrated from Seam 1.2.1 to Seam 2.0 and there is an annoing behavior of DataModel - if the DatgaModel is on a long running conversation and holds a list of database entities, the values of the entities are null after the first display of the page. To be more concrete: The bean (a

[jboss-user] [JBoss Seam] - dataModel dataModelSelection first row

2007-10-31 Thread hager
hello, I'm using datamodel and dataModelSelection. I always have the first row selected! this is my code : bean.java: | @DataModel(value = "listeChargesRegies") | private List listeChargesRegies; | | @DataModelSelection(value = "listeChargesRegies") | @Out(required = fals

[jboss-user] [JBoss Seam] - @DataModel outjection called before @Create

2007-10-16 Thread atalaat
This isn't the behavior I would have expected. (I'm using 2.0 CR2.) Is there a document that describes the order in which annotations are "executed". Both during environment initialization and during request processing. Anyone else think this would be a useful document to have? View the origina

[jboss-user] [JBoss Seam] - @DataModel not working with scrollableDataGrid

2007-10-15 Thread IGx89
| | | | | |

[jboss-user] [JBoss Seam] - DataModel and DataModelSelection question

2007-10-11 Thread w17chm4n
First of all, the code.. | @Stateless | @Name("QuestionCategoryController") | public class QuestionCategoryControllerBean implements QuestionCategoryController { | | @Logger | private Log log; | | @In(create = true) | private QuestionCategoryManager que

[jboss-user] [JBoss Seam] - DataModel in two SFSB issues (regression)

2007-10-11 Thread 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

[jboss-user] [JBoss Seam] - DataModel/dataTable for rendering 2 tables

2007-10-08 Thread mpw
I am trying to develope a Real Estate System with Sellers and their listings. I have one-to-many Sellers to Listings. I am having a problem rendering in via JSF/Facelets a DataTable that display fields from both tables ie Seller and Listings. I am using a Join Fetch to join all sellers that have l

[jboss-user] [JBoss Seam] - DataModel and DataModelSelection

2007-09-03 Thread wschwendt
One thing that I don't understand is why a @DataModelSelection annotation can ONLY be used in a component when there is also a @DataModel annotation placed on a field or getter method of this component ( Component.getDataModelSelectionName() enforces this). What are the reasons for this requ

[jboss-user] [JBoss Seam] - DataModel edit issue

2007-08-28 Thread rvkishore
I am using the DataModel & DataModelSelection annotations to manage a datalist. The add and delete are working fine but the edit has a problem. The new values are not being submitted from the edit page into the Managers edit action. Below is my code | | @Stateful | @Scope(SESSION) |

[jboss-user] [JBoss Seam] - DataModel and controls other than h:dataTable

2007-08-22 Thread dkane
Dera Seam profies , does DataModel / DataModelSelection work with multi-item controls other than h:dataTable ? I need a horizontal set of links based on List of entities. For that, I am using ui:repeat referring to DataModel values. Values are being displayed well. But clicking on particular

[jboss-user] [JBoss Seam] - DataModel from components.xml

2007-08-07 Thread fhh
Is it possible to create a data model from components.xml the same way a factory can be used? I have an entity managed by a home object that has a list of related entities. I would like to loop over these and select them without adding getter and setters for these to the home object or some oth

[jboss-user] [JBoss Seam] - @DataModel to dataTable problem/question

2007-08-02 Thread mpw
Hello all: i need some help with an error rendering my DataModel to the JSF datatable component the page takes textinput "card_id" passes it to the Action method for a query that joins 2 tables and ouputs the results into a List. the problem is that the Page does not resolve my @DataModel List

[jboss-user] [JBoss Seam] - DataModel selection gives wrong value in multiuser/concurren

2007-07-31 Thread [EMAIL PROTECTED]
Hi, My DataModel or DataModelSelection is not behaving properly in multiuser operations. Lets say I have populated a DataModel with 5 entities. Now, I render this list with JSF DataTable on UI (for user 1) At the same time, user 2 starts the application and views the same list with 5 entiti

[jboss-user] [JBoss Seam] - @DataModel on Stateful beans (broken?)

2007-07-27 Thread sannegrinovero
I'll post a simple case confirming the problem but I think the stacktrace below, from our complete application, could be more helpfull. Having a bean method returning a List annotated as @DataModel in a stateless bean is working as before (used before Seam 1.2.1) @Name("brokenList") //@Stateful

[jboss-user] [JBoss Seam] - @DataModel(scope=CONVERSATION) banned, why?

2007-07-15 Thread ellenzhao
I attempted to write @DataModel(scope=CONVERSATION) but was banned when building, only UNSPECIFIED and PAGE are allowed. Why cannot @DataModel be conversation scoped? Thanks in advance! Regards Ellen View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064373#40

[jboss-user] [JBoss Seam] - DataModel PersistentSet problem from rich subtable

2007-07-09 Thread amitdk
Hello I have a situation that requires me to use the DataModel and DataModelSelection tags in a rich subtable tag. Here's the xhtml code: | | | | | | | | |

[jboss-user] [JBoss Seam] - @DataModel problem

2007-07-04 Thread Jump
I have a simple bean with DataModel and DataModelSelection | @Stateful | @Name("toolbar") | @Scope(ScopeType.SESSION) | public class ToolbarImpl implements Toolbar { | |... | | @DataModel | public List getProcessDefinitions() { |

[jboss-user] [JBoss Seam] - DataModel with or Error

2007-07-02 Thread Jason.Qin
the link: http://jira.jboss.org/jira/browse/JBSEAM-1582 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059515#4059515 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059515 __

[jboss-user] [JBoss Seam] - DataModel wrapped data is set to null by ManagedEntityIdenti

2007-06-30 Thread sergeypk
I'm using Seam from CVS (checked out today, June 30th). I have a component that has a property of type DataModel. I'm not using @DataModel annotation. The problem is that the contents of my DataModel are not being shown on a page. The culprit seems to be ManagedEntityIdentityInterceptor which se

[jboss-user] [JBoss Seam] - DataModel and Row Unavailable

2007-06-28 Thread ssc_ch
I have some problems in using the datamodel. I have two Tables on my page and i add entries from one table to the 2nd, which works fine. After adding i should have the possibility to remove entries again from the 2nd table, which works, but only with the first entry.. If i alway delete the first

[jboss-user] [JBoss Seam] - DataModel from EntityQuery problem?

2007-06-22 Thread Phantom
Good day, I have the following code: template.xhtml: | http://www.w3.org/1999/xhtml"; |xmlns:ui="http://java.sun.com/jsf/facelets"; |xmlns:f="http://java.sun.com/jsf/core"; |xmlns:h="http://java.sun.com/jsf/html"; |xmlns:t="http://myface

[jboss-user] [JBoss Seam] - DataModel refresh

2007-06-17 Thread miloslav.vlach
Hi all, I have problem with this scenario. I have a list action which load the entities and display it in dataTable. The backing bean looks like this: | @Name("componentLayoutListAction") | public class ComponentLayoutListAction { | @In | Session ses; | | @In(creat

[jboss-user] [JBoss Seam] - DataModel using Set does not work

2007-06-13 Thread andreigh.ts
Hi, I am trying to use java.util.Set as a @DataModel but it throws an exception (javax.faces.el.PropertyNotFoundException Bean: org.hibernate.collection.PersistentSet) when trying to display the xhtml. Replacing Set with List or array works very well. Here is the code: The Hibernate En

[jboss-user] [JBoss Seam] - @DataModel annotation + HTTP session replication

2007-06-07 Thread radim.tlusty
I have question about usage of @DataModel annotation on attributes of session/conversation scoped Seam components (I use scoped Spring bean). The code looks like following: | @Name("component") | @Scope(ScopeType.CONVERSATION) | public class MyComponent { | | @DataModel

[jboss-user] [JBoss Seam] - DataModel entries appearing twice

2007-05-16 Thread enrico256
I'm writing simple CRUD application that handles I'm writing simple CRUD application that handles "folders" and associated "items". The list of all folders is displayed on the home page as following: | | | Id | | | | Title |

[jboss-user] [JBoss Seam] - Datamodel question

2007-05-14 Thread koriel
I have a list that I want to expose using the Datamodel annotation | @DataModel | List listUsers; | also Users entity contains a list of names like | public class Users { | | .. | List names | .. | } | in my xhtml page i have this code | | | | | |

[jboss-user] [JBoss Seam] - DataModel in two SFSB issues

2007-04-17 Thread lcoetzee
Hi, I have an interesting issue with DataModels. Any suggestions would be appreciated. The setup: I have Bean "A" which has a list ("sections") annotated as DataModel. "sections" is available in my current conversation. When invoking a method from my JSF page (which calls a method in my secon

[jboss-user] [JBoss Seam] - DataModel: Row is not available

2007-04-11 Thread fabricio.lemos
I had this DataModel bound to the conversation scope | @DataModel | public List getStepList(){ | return useCase.getSteps(); | } | All worked just fine until I changed the association type from List to Set and updated the code to: | @DataModel | p

[jboss-user] [JBoss Seam] - @DataModel modifications

2007-04-05 Thread georgesberscheid
Hi, I have a @DataModel (HashSet myEntries) in a SESSION-scoped JAVABEAN Seam component with a @Factory method that retrieves initial data from the database and I display it in myList.xhtml. I also have an action method addEntry() that does em.persist(newEntry) and myEntries.add(newEntry) and r

[jboss-user] [JBoss Seam] - @DataModel does not create a component

2007-04-01 Thread laksu
Hi, I have a SFSB: | /* | package datassist.gop.action; | | import datassist.gop.domain.Istek; | import datassist.gop.domain.Uzman; | import java.io.Serializable; | import java.util.List; | import javax.ejb.Remove; | import javax.ejb.Stateful; | import javax.persistence.Entity

[jboss-user] [JBoss Seam] - @DataModel problems

2007-03-30 Thread smithbstl
I keep getting this returned via the debug page under my datamodel component. Why is the row unavailable? The wrapped data is some of the data returned via my query but the data model is not being displayed on the page. No exception is thrown. class class org.jboss.seam.jsf.ListDa

[jboss-user] [JBoss Seam] - DataModel

2007-03-19 Thread KoniKoni
How can i implement the delete function of a element that contains by herst_bearb in a list, there are support by Framework ? | | | | | |

[jboss-user] [JBoss Seam] - @DataModel == ListDataModel ???

2007-03-09 Thread dajevtic
Hello everyone, I have a question regarding the @DataModel annotation regarding large result sets (> 100.000): When I do a getResultList on the entityManager and I annotate the List with @DataModel, are all records fetched at once? I am playing with the datascroller tag of richfaces and it looks

[jboss-user] [JBoss Seam] - DataModel, Factory and Stale Data

2007-03-06 Thread smutchler
Is it possible to use a SSB with a DataModel. It's funny that the examples in the books and the JBoss web site use a SFSB and then say it's not a good idea to use SFSB with Seam. The problem I have with SSB is that the data is often stale. If you modify it in another SB (or even the same SB)

[jboss-user] [JBoss Seam] - DataModel selection not getting outjected

2007-02-23 Thread [EMAIL PROTECTED]
Hi, I am using Seam 1.0.0 I have a seam managed session bean in which I have declared a datamodel and its factory method. @Out(required = false) | @DataModel | private List analysisSummaryReadingsUIList; | | @Out(required = false) | @DataModelSelection(value = "analysisSummaryReadi

[jboss-user] [JBoss Seam] - @DataModel doesn't load the first time

2007-02-16 Thread [EMAIL PROTECTED]
Hey guys, I have an interesting issue with @DataModel. I don't believe I have changed anything after I had this working when I moved to Seam 1.1.6 What I have is a search page that takes some data on page a, enters an action listener, runs a query against the database and outjects the value thr

[jboss-user] [JBoss Seam] - DataModel

2007-02-10 Thread lightbulb432
I'm removing an entity from a DataModel, so I do an em.remove(selectedEntity), where selectedEntity is the value of the DataModelSelection. There's a problem: the entity gets removed and the page gets refreshed with the correct FacesMessage. However, the entity still shows up in the dataTable. O

[jboss-user] [JBoss Seam] - @DataModel confused over name...

2007-02-05 Thread henrik.lindberg
I am using a @DataModel annotation for a variable like this: | @DataModel("availableCars") | private List m_availableCars; | and I have a factory model | @Factory("availableCars") | public void findCars() | //... | When I use this combination, the picks up the value ok, but wh

[jboss-user] [JBoss Seam] - @DataModel and @DataModelSelection in separate components?

2007-01-31 Thread prange
Is it possible to have one component outject a list with @DataModel, and let another component receive the @DataModelSelection injection? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4009131#4009131 Reply to the post : http://www.jboss.com/index.html?module

[jboss-user] [JBoss Seam] - @Datamodel ?

2007-01-17 Thread KoniKoni
How can i solve follow problem: I have a list of event and for each event exist more games. How can i implement a kind of nested loop. I wont to output events and all games for each event. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4003049#4003049 Reply

[jboss-user] [JBoss Seam] - @DataModel without dataTable

2006-12-19 Thread bluetrade
Hi, I would like to use the @DM annotation without having a table - i.e. in a Select Box - how can this be done? Thanks joey View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995153#3995153 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posti

[jboss-user] [JBoss Seam] - @DataModel outjection problem

2006-12-15 Thread cavani
I have one field outjected by @DataModel annotation on SFSB on a long conversation. This field is a List of Entity Beans (query populated). When user click to add, I put a new instance on list and outject this instance for editing. On save action, I persist this instance and query again, but th

[jboss-user] [JBoss Seam] - DataModel - DataModelSelection

2006-12-05 Thread koatto
Is there a way to wire together a Datamodel and a datamodelselection programmatically, without using any annotation I've collections persisted through hibernate i'd like to use in h:datatable in conjunction with row selection listeners. Guidelines and patterns widely accepted. Thanks. View the or

[jboss-user] [JBoss Seam] - @DataModel and @In attribute

2006-10-30 Thread sherkan777
Hi! I I've application based on Seam + Facelets and my problem is, how to reload page and reload collection content? I've menu component (Statefull bean @DataModel), and content page, also @DataModel collection and global variable selectedCategory; Example: Menu: (Treees, Buildings, ...) When i

[jboss-user] [JBoss Seam] - DataModel and DataModelSelection and

2006-08-29 Thread ZeddMaxim
I've seen a few posts out there regarding this, and no one ever seems to come up with a solid answer, so I thought I'd post this in hopes someone will find it useful. I have a simple data table set up such as in the Message List example, with a clickable link in each row (to edit that object).

[jboss-user] [JBoss Seam] - @DataModel enhancement suggestion

2006-08-28 Thread texan
Are there any examples or explanations for the @DataBinderClass and @DataSelectorClass annotations? I'm curious whether they could be used to insert a different DataModel implementation class (for example, a data model with extra functionality for sorting and paging). View the original post :

[jboss-user] [JBoss Seam] - DataModel not made available as a context variable

2006-08-09 Thread zzzz8
Hi, I'm a newbie with Seam, but I've been having trouble with the DataModel annotation. I'm not sure if it's a configuration problem, but I've used the messages example in JBoss Seam 1.0.1 GA as a baseline for my configuration (took many of the configuration values and jars from there). I'm t

[jboss-user] [JBoss Seam] - DataModel sincronization issue...

2006-08-04 Thread angelogalvao
I have 2 variables thats points to 1 Set... One from a Entity from a OneToMany relashionship e another from my SFSB whit @DataModel anotation, just beacuse i cant have @DataModel from a Entity (the data model selection dont work's)... @DataModelSelection(value="rolesFromRoleGroup") | private R

[jboss-user] [JBoss Seam] - @DataModel for a component problem

2006-07-14 Thread petekol
as my first seam sample appl i would like to create a CRUD component with parent/child (or many configurable children) functionality. If i use @DataModel in component the annotated property is not available on the page. I can access methods and other props of the component thought. It does wor