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
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
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
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
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 :
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
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 :
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,
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 :
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:
|
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()}
|
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,
12 matches
Mail list logo