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
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
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;
|
| //
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
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
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).
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)
| @
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
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
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
|
|
|
|
|
|
First of all, the code..
| @Stateless
| @Name("QuestionCategoryController")
| public class QuestionCategoryControllerBean implements
QuestionCategoryController {
|
| @Logger
| private Log log;
|
| @In(create = true)
| private QuestionCategoryManager que
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
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
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
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)
|
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
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
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
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
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
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
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:
|
|
|
|
|
|
|
|
|
I have a simple bean with DataModel and DataModelSelection
| @Stateful
| @Name("toolbar")
| @Scope(ScopeType.SESSION)
| public class ToolbarImpl implements Toolbar {
|
|...
|
| @DataModel
| public List getProcessDefinitions() {
|
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
__
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
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
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
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
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
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
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
|
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
|
|
|
|
|
|
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
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
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
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
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
How can i implement the delete function of a element that contains by
herst_bearb in a list,
there are support by Framework ?
|
|
|
|
|
|
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
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)
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
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
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
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
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
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
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
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
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
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
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).
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 :
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
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
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
56 matches
Mail list logo