[jboss-user] [JBoss Seam] - Transaction Timeout

2007-07-16 Thread straubp
Hi all, I have an action (a button on my page) that starts a long database transaction. The action create entities. After an entity is created I always flush and clear the EntityManager. Everything works great for a little more than 3 minutes. Then everything gets really slow and then I get

[jboss-user] [JBoss Seam] - Re: Transaction Timeout

2007-07-16 Thread straubp
Unfortunately I can't switch to Seam 2 yet (But I'm really looking forward to). The other approach doesn't have any effect. Here is what I do: | @Stateless | @TransactionManagement(TransactionManagementType.BEAN) | @Name(fillDatabase) | public class FillDatabaseAction implements

[jboss-user] [JBoss Seam] - Can't use generics for abtract methods

2007-06-17 Thread straubp
Hi all! | public abstract class AbstractClassE { | | public ListE doSomething(E e) { | | return doInConcreteClass(e); | } | | public abstract ListE doInConcreteClass(E e); | } | | @Name(concreteClass) | public class ConcreteClass extends AbstractClassString

[jboss-user] [JBoss Seam] - Getting ALL Components of a given name in ALL contexts

2007-05-21 Thread straubp
Hi all, how can I get all components with name x in all contexts? Here my scenario: On a page I am showing a list (dataTable) of persons, with options to add a new person or delete an existing one. The table is backed by a PersonListController (name=personListController), which caches the

[jboss-user] [JBoss Seam] - Re: Question on rendering a @Datamodel

2007-05-21 Thread straubp
Maybe like this: | h:dataTable value=#{...} var=row rowClasses=#{row.special ? 'special' : ''} | ... | /h:dataTable | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4047140#4047140 Reply to the post :

[jboss-user] [JBoss Seam] - s:link/s:button in RichFaces or Trinidad

2007-05-01 Thread straubp
Hi all, I have a table with a button in each row to open the details. | t:dataTable value=#{listManager.dataModel} var=item rowIndexVar=idx | ... | h:column | f:facet name=header | h:outputText value=Details / | /f:facet | s:button

[jboss-user] [JBoss Seam] - Re: s:link/s:button in RichFaces or Trinidad

2007-05-01 Thread straubp
Oh, and I had specially added columns to my tables (#{idx+1}) to check if rowIndexVar worked, but didn't notice that every row was 1. Thanks for helping a blind man ;-) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4042054#4042054 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Disable event-based validation

2007-03-05 Thread straubp
Now I know! For anyone who is interested: You can overwrite the default use of org.hibernate.secure.JACCPreInsertEventListener and org.hibernate.valitator.event.ValidateEventListener for the pre-insert event and org.hibernate.secure.JACCPreUpdateEventListener,

[jboss-user] [JBoss Seam] - Disable event-based validation

2007-02-17 Thread straubp
Hi, I'd like to use Hibernate validation only at application level (i.e. in code and with s:validateAll). Is there a way to disable the ValidateEventListener, i.e. event-based validation? If so, how can I do this? Thanks! View the original post :

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

2007-02-12 Thread straubp
Hi, I'm having an entity like person with a sub entity like an address. On a page I'm showing information about the person: | h:outputText value=#{person.id} / | h:outputText value=#{person.address.street} / | Now I'm pressing a next-button to show the infos about the next person: |

[jboss-user] [JBoss Seam] - Re: refresh view

2007-02-12 Thread straubp
Hi petemuir, thanks for your quick reply! But I just figured it out: I use the RedirectFilter but haven't defined a redirect in pages.xml for the page when the outcome is null (I thought this wouldn't be necessary). Now I have: | navigation from-action=#{personListManager.nextPerson()} |

[jboss-user] [JBoss Seam] - Passing a requested scoped bean into a conversation scoped b

2007-01-28 Thread straubp
Hi all, I have a page showing a list (datatable) of objects, lets say different countries. The table is backed by a CountryListManager. Every row has a link to a details page. The details page has some data and a list of the country's biggest cities. This list is backed by a CityListManager,