"jaikiran" wrote : This looks like a Hibernate EntityManager problem
http://opensource.atlassian.com/projects/hibernate/browse/EJB-382. JBoss AS
5.1.0 GA ships with 3.4.0 GA version of Hibernate Entitymanager and the bug is
reported against that version. Seems to be fixed in 3.4.1
Yes you're ri
In fact, I'm using a manual flushing, that's the reason it was working in JBoss
4.2.3.
My service:
| @Stateless
| @Name("genericService")
| @AutoCreate
| public class GenericServiceBean implements GenericService {
|
|
| @In(value = "#{entityManager}")
| private EntityMa
Did you find some solution to this problem?
I had my application working pretty fine catching a EntityExistsException and
throwing my own @ApplicationException exception in JBoss 4.2.3.
Now that I upgraded to JBoss 5.1, the same code does not work anymore, I'm
unable to catch neither EntityExis
Try the following change:
|
|
| http://jboss.com/products/seam/pages";
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
| xsi:schemaLocation="http://jboss.com/products/seam/pages
http://jboss.com/products/seam/pages-2.0.xsd";
| login-required="false" actio
How your pages.xml login page is configured?
Does it have login-required="false"?
like:
|
|
|
|
|
|
|
|
BTW, you can invoke to any action you want when the page is loaded and then use
the rules in order to forwa
Define the "label" attribute in your input component.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094875#4094875
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094875
___
j
org.jboss.seam.annotations.FlushModeType
| @Begin(flushMode = FlushModeType.MANUAL)
| public String myaction() {
|
| }
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089308#4089308
Reply to the post :
http://www.jboss.com/i
EntryDuplicatedException is a custome exception I have:
|
| @ApplicationException(rollback = true)
| public class EntryDuplicatedException extends Exception {
|
| public EntryDuplicatedException() {
| }
|
| }
|
addDuplicatedMessage() is just a simple method to ad
"wise_guybg" wrote :
| I have been dealing with a similar problem in a previous project at work
where we used Hibernate. The solution was to create a backing session that will
help you recover gracefully in case of DBException/ContraintViolation.
|
| I was wondering if something similar c
I do use a Action + Service pattern in order to catch all EJB/JPA exceptions
and stay in the same page or display a pretty nice error messages. The action
is a simple POJO and the Service is an @EJB ,
@TransactionAttribute(REQUIRES_NEW) over the method makes me happy in this case.
IIRC, I've a
Have you tried the "label" attribute in your input component (JSF 1.2)?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084671#4084671
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084671
___
I think you should use a page action.
|
|
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4081724#4081724
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4081724
___
See all my comments here, this maybe can help you.
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=117469
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4081461#4081461
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=rep
AFAIK, you can't use @EJB in POJO components.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4081428#4081428
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4081428
___
jboss-use
Yes your'e right.
STATELESS @Factory means it will be called every time the name is referenced in
the page. In this case returning the already instantiated class.
And yes, the value change listener is invoked when the value is changed in the
selectbox, enabling the @Factory method to reload wit
Also take into account the last change I did regarding the reloading of the
user, because if a new instance of the same user is reloaded every time, then
you don't expect to have the same reference instance variable updated.
View the original post :
http://www.jboss.com/index.html?module=bb&op=
Did you try it? Because I have the same case (I wrote) working in my
application.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080489#4080489
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080489
__
Yes, you're right, "user" is stateless, but take a look what return initUser
method. It returns the reference to the instance variable "user".
So, this should work:
| private User user;
| public void saveCurrentUser() {
| userDao.update(user);
| }
|
BTW, I improved a bit my las
I will be great to have this in Seam UI. Thanks.
JIRA issue added: http://jira.jboss.com/jira/browse/JBSEAM-1893
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080335#4080335
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply
I would use a @Factory.
Java:
|
| @Stateful
| @Name("userRegister")
| @Scope(ScopeType.SESSION)
| public class UserRegisterAction implements UserRegister {
|
| private Log logger = LogFactory.getLog(UserRegisterAction.class);
|
| private User user;
| private
BTW, if you want to know the causes check the following link out:
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=107897&postdays=0&postorder=asc&start=20#4051281
The problem is currently solved in RichFaces 3.1.0
http://jira.jboss.com/jira/browse/RF-401
View the original post :
http:/
So, it seems something related with some properties' modifiers.
I saw something related here:
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=114028
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4079415#4079415
Reply to the post :
http://www.jboss
Do you have defined such method in the business interface?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4079362#4079362
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4079362
__
I have somethig like this:
|
|
| 5
| whateverpath
|
|
|
|
| @In
| SystemConfig sysConfig;
|
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4079221#4079221
Reply to the post :
http://www.jboss.com/inde
try this:
|
| if(!entityManager.contains(exam))
| entityManager.merge(exam)
|
|
HTH.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4079219#4079219
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=
Yes, magoicochea is absolutely right.
By instance, my application is using ACTION + DAO layers. Actions are Seam
POJOs and DAOs are Session Beans (EJB).
BTW, you can take a look to wiki example in the Seam distribution, it uses
action + DAO on POJO components (maybe you want something like that
If you're trying to execute an SQL (not JPA QL), just try with this:
| int rowCnt= (Integer) em.createNativeQuery("SELECT count(1) FROM
TableA").getSingleResult();
|
HTH.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4074625#4074625
Reply to
If you are using a conversation you can start it using manual flush mode.
| @Begin(flushMode = FlushModeType.MANUAL)
| public String select(User instance) {
|user = em.find
|return result;
| }
|
|
| @End
| public String create() {
|
How your JPA QL for batch update looks like? (post code)
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4073525#4073525
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4073525
__
"[EMAIL PROTECTED]" wrote : no, there is no JIRA issue for this
Now there's one: http://jira.jboss.org/jira/browse/JBSEAM-1786
Thanks.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4073382#4073382
Reply to the post :
http://www.jboss.com/index.html?module=b
I see three options:
A) To catch the Exception in your code and then show the respective message.
| public void create(Object entity) throws MyDuplicatedException {
| try {
| em.persist(entity);
| em.flush();
| } catch (EntityExistsException e) {
User @Transient on your property.
| @Transient
| private String situation;
|
or:
|
| private transient String situation;
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072600#4072600
Reply to the post :
http://www.jboss.com/index.html?modu
Done: http://jira.jboss.org/jira/browse/JBSEAM-1771
Thanks.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4071641#4071641
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4071641
__
Try Pressing Ctrl+F5 in your browser.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067952#4067952
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067952
___
jboss-user maili
Can anyone point me out? Please.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059776#4059776
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059776
___
jboss-user mailing lis
Seems related to this:
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=49
HTH.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059610#4059610
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059610
_
I just migrated my application from Seam 1.2 to Seam 2.0.0.BETA1 using Tomcat 6
and Embedded Jboss, it works like a charm.
But, when I tried to execute the test suites I got the following exceptions:
| uildfile: D:\Fer\srcEjemplos\Seam\seam2gen\build.xml
| compiletest:
| copytestclasses
That's great!
Sure, I just vote for it.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058917#4058917
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058917
___
jboss-user mai
Ok, thanks.
I also encourage people of this forum who is using Ajax4JSF to make a crowd and
help to improve this small but critical issue for production systems.
Thanks.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058803#4058803
Reply to the post :
htt
First, this is a Ajax4JSF issue.
You can see in the following link my intents to try A4J guys take this into
account, but it seems I'm one in a million, and they don't care about this.
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=107897&postdays=0&postorder=asc&start=20#4051281
May
Remove your browser cache: Ctrl+F5 or F5
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058498#4058498
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058498
___
jboss-user mai
Hi.
I have page parameter registered with a converter which encrypts and decrypts
the value, something like this:
|
|
|
|
I also have registered the following in components.xml:
|
|
|
|
|
|
|
I have the following scenario:
I dealt with this time ago.
Here you can find a topic related (whether it's of your interest):
http://forum.hibernate.org/viewtopic.php?t=969898
After several tries I figured out that the only way (at least for me) to have
this working is to have a POJO action and a SFSB DAO.
POJO action and SF
Have you tried a page action to reset the "componentLayoutList" when the page
is load?
Something like this:
|
|
|
|
|
HTH
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055040#4055040
Reply to the post :
http://www.jboss.com/index.html?modu
I lost a lot of time trying to find out the reason for the problem I described
here:
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=110611
(Problem of UnsupportedOperationException when using @ManyToMany and
)
I tried a lot of things (debug, simplify my code, with EJB, with POJO) but I
Yes, it was I meant. You are right if @PersistenceContext is working fine, it
seems the problem is with some configuration (components.xml) or component
declaration.
Could I see your components.xml configuration and also the whole class
(component) where you are trying to inject the the EntityM
Have you configured your name of your persistence.xml in the
jboss-beans.xml?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054852#4054852
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054852
___
+1
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054767#4054767
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054767
___
jboss-user mailing list
jboss-user@lists.jboss.org
h
Actually I have a Seam application running on Tomcat using Ajax4JSF and
RichFaces.
So, what I recomend you to start is to go into "booking" seam example folder,
open an console and type "ant deploy.tomcat" (you need to have configured your
build.properties for tomcat home).
View the original p
Typo in the second option I mentioned, it should be:
|@In(value="#{LoginAccount}")
| @Out(value="#{LoginAccount}")
| public LoginAccount account;
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053648#4053648
Reply to the post :
http:
At first glance I can see one wrong thing, your entity component name is
"LoginAccount", so if you want to biject it, you should declare it as follows:
| @In @Out
| public LoginAccount LoginAccount;
|
or
| @In(value="#{LoginAccount}") @Out(value="#{LoginAccount}")
| public L
I don't understand you very well, nevertheless I avoided the
LazyInitializationException using SMPC and this in my faces-config:
|
|
|
org.jboss.seam.jsf.SeamExtendedManagedPersistencePhaseListener
|
|
|
|
|
View the original post :
http://www.jboss.com/
You can use a page action to refresh your list (when using SESSION scope).
Like this:
| Stateful
| @Scope(ScopeType.SESSION)
| @Name("partsListFinder")
| public class PartsListFinderBean implements PartsListFinder {
| @In(required=false)
| private String plNam
Actually, it is not a seam issue, it is a Facelets behaviour, you can avoid it
adding below configuration in your web.xml
|
| facelets.SKIP_COMMENTS
| true
|
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053302#4053302
Re
"[EMAIL PROTECTED]" wrote : What is the class of the List that throws UOE? Use
your debugger to find out.
|
After debugging I saw that the UOE is thrown by the class
org.hibernate.type.CollectionType, in the method replaceElements.
| ...
| java.util.Collection result = ( java.util.Collec
Hi,
Using Seam 1.2.1 I had a relationship like:
| //User Entity.
| @ManyToMany(fetch = FetchType.LAZY)
| @JoinTable(
| name = "userrole",
| joinColumns = @JoinColumn(name = "userid"),
| inverseJoinColumns = @JoinColumn(name = "roleid")
|
- You should update the XML namespace for your configuration files to 1.3.
- Your web.xml pointed to web-app_2_5.xsd
- If you are suing Ajax4JSF you must change the VIEW_HANDLER as follows:
|
| org.ajax4jsf.VIEW_HANDLERS
| com.sun.facelets.FaceletViewHandler
|
|
A
"trouby" wrote : anonymous wrote :
| | Remove the expression language factory thing in faces-config.xml
| |
|
| Remove what? I don't think I have anything related to EL factory,
|
| I only have seam's el-resolved and the phase-listener life cycle,
|
|
| Thanks
Remove th
Hi.
I've updated to latest SEAM CVS (20070602), the improvements are good.
Nevertheless I have some questions/doubts:
A) The method isNextExists() always returns false. I made some debug and I
found that isNextExits() method is called before than getResultList() (I'm
sure it is related with s
AFAIK, since Tomahawk 1.1.3 you can use it in any JSF implementation. So I
think you can use it with JSF RI. The only thing you need to care about is that
Tomahawk 1.1.3 is for JSF 1.1, and Seam 1.3 will use JSF 1.2, this means you
could also need to have a Tomahawk version which is compliant w
You have declared SMPC as "entityManager", then you should use as follows:
| @In
| EntityManager entityManager;
|
or (if you prefer):
| @In("#{entityManager}")
| EntityManager em;
|
or:
| @In(value="#{entityManager}")
| EntityManager em;
|
HTH.
View the original post :
"mnrz" wrote : Hi
|
| When I log in using seam Authenticator, a message "Welcome user_name" will
be displayed
|
| I can't find that message in any resource bundle. I want to display another
message with related language that user specified how can I remove that message
:))
|
| I
"torsty" wrote : forgot to say: when I used fluh mode manual I flushed before
persisting.
Don't you think this is the cause of your problem?
You should call em.flush() explicitly after all interactions with EM are
performed. I have a same scenario with User->Role (ManyToMany) relationship
usin
If you are using Facelets (.xhtml as default)
|
|
|
| File size is above allowable
maximum
|
|
|
if you are using another view technology than Facelets then write the
corresponding view-id.
View the original post :
http://www.j
Hi.
anonymous wrote :
| But in some weird case where my validation require some kind of twisted
logic using some properties from the Person entity and all the other entities
already persisted, is there a clean way to add this logic in the model? Or this
is conceptually wrong?
|
For me,
I don't know what exactly you mean with "without mapping that to the database",
but anyway I have solved something similar as follows:
| @Entity
| @Table(name = "person", uniqueConstraints = @UniqueConstraint(columnNames =
{"firstname", "lastname"}))
| public class Person {
| @Id
In my last post in point 2) I meant pages.xml not pages.html
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048761#4048761
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048761
__
In order to avoid to have basically the same page twice, I think you can
improve that in two ways:
1) Use a page composition for Edit form and pass the component instance as
ui:param.
2) Declare in your pages.html alias view-id for each case but render only one
page. Something like this:
|
Surrond SeamFilter to your Servlet.
|
| Seam Filter
| org.jboss.seam.web.SeamFilter
|
|
|
|
| Seam Filter
| /*
|
|
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047346#4047346
See
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045495
HTH.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047310#4047310
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047310
__
Seam distribution has a hibernate-all.jar which I am currently using to deploy
in Tomcat.
I don't know how hibernate is distributed on JBoss AS, but I guess is not
something like hibernate-all.jar. Anyway in this case it would be nice to do
the upgrading also (if is not done yet)
View the ori
I make a mistake in my last post, the code shoul be:
| public class XYZ {
| ...
| @Embedded
| private ABC abc = new ABC();
|
| ...
| getters/setters
| }
|
|
And your ABC must have @Embeddable at type level.
do you have it in this way?
View the original post :
http://www
I will really appreciate if the next release of Seam has bundled the latest
Hibernate libraries (Core, EM, Validator...). There are some bugs corrected in
such versions currently I'm waiting for.
Thanks in advance.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic
anonymous wrote :
| You must be logged in to perform this action
|
That message tell that the HTTP Session has been timed out (session time out
destroys any active conversation).
How long are your http session defined?
View the original post :
http://www.jboss.com/index.html?module=bb&o
Have you declared the ABC as follows?:
| public class XYZ {
| ...
| private ABC abc = new ABC();
|
| ...
| getters/setters
| }
|
|
In this case "abc" should be referenced in the view, not ABC.
HTH.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewt
|
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047023#4047023
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047023
___
jboss-user mailing list
jboss-user@lists.jbo
Forget this post. It was my fault (I was using @PersistenceContext instead SMPC
by accident), now it is working fine.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046999#4046999
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=
Hi.
Somebody knows how to deal with LazyInitializationException when using Seam
integration test?
I got this exception: org.hibernate.LazyInitializationException.
The simple test:
| public class LoginTest extends SeamTest {
|
| @Test
| public void testLogin() throws Excepti
Yes, you are in the right track. Seam provides a way you can do unit and
integration (functional) tests.
See: http://docs.jboss.com/seam/latest/reference/en/html/testing.html
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046908#4046908
Reply to the post :
But you can do this:
| ...
| @In private Map res;
|
| String label = res.get("enum.typeA.label");
|
or this:
| ...
| @In("#{res['enum.typeA.label']}")
| private String label;
|
|
HTH.
View the original post :
http://www.jboss.com/index.html?module=bb&op=view
Yes, you can. See @Role and @Roles in the seam reference documentation.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046505#4046505
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046505
_
Use a page action.
Something like:
|
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046141#4046141
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046141
___
jbo
The reason you got that error resides here:
| entity-manager-factory="#{entityManager}"
|
Just change your second persistence context as follows:
|
|
|#{hubFilteredChannels}
|
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p
I have this in my web.xml:
|
| facelets.LIBRARIES
|
| /WEB-INF/facelets/myapp.taglib.xml
|
|
|
myapp.taglib.xml
|
| http://java.sun.com/dtd/facelet-taglib_1_0.dtd";>
|
|
| http://my.com/jsf/
|
| dataScr
And, also tell us where is located your field.xhtml?
webapp/ ?
webapp/WEB-INF?
...etc.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045839#4045839
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045839
__
You should use the CONVERSATION scope and use flushMode = FlushModeType.MANUAL
in the @Begin annotation, then you can explicitly call entityManager.flush() if
you want yo save the data, otherwise you can do anything with the data you want
to edit while you conversation is active.
Regarding your
Post the page where you are setting the currentHub in the session (where you
are using @Out). And also post the code where you are trying to use the
entityManager you have configured in components.xml.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045841#40
Post the page where you are using the composition tag.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045836#4045836
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045836
___
Post some code in order to see how currently is.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045832#4045832
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045832
___
jboss-
The name initialize does not matter. You can mane as you want, the most
important thing here is the @Create annotation, which tells Seam to execute
such method just after the component is successfuly initialized (all Seam
components are available, ready to be injected).
View the original post :
I will suggest you the following:
(The reasons I do this are in the Seam reference documentation)
| @Name("balance")
| @Scope(EVENT)
| public class Balance implements Serializable
| {
|private double totalMarketValue;
|private double cash;
|private double margin;
|
AFAIK, Wiki example is in the CVS only.
Regarding class type parameter, I don't have any example and I don't know much
about it. Looks like Hibernate specific stuff, so see Hibernate for this (but I
guess you already did it).
View the original post :
http://www.jboss.com/index.html?module
1.- Define the Filter in your Entity.
|
| @Entity
| @Table(name="NODE")
| @org.hibernate.annotations.FilterDef(
| name = "accessLevelFilter",
| parameters = [EMAIL PROTECTED](name = "currentAccessLevel",
type="integer")}
| )
| @org.hibernate.annotations.Filter(
|
Have you tried surrounding your input-checkbox with ?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045043#4045043
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045043
___
Have you tried this?:
|
|
HTH.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044515#4044515
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044515
___
jboss-user ma
Not yet. I'm tested with max-results defined. But I din't test with no
max-result (not paged) defined. And also I'm thinking about to contribute some
improvements, like total pages, current page, and some other minus bugs I
found. When I will have this ok, I will report the errors and suggest th
Thanks Pete.
I also thought in that solution. But I was afraid to loose the namespace stuff
for entity-query. Now, I think this is my only chance (or define my own
namespace).
Only by curiosity. Do you know what is the purpose of the "class" attribute in
the stuff? I looked for it in the sea
Thanks Pete, for your suggestion, nevertheless that was something I did
previously.
To be specific, in the extended EntityQuery I added some generic (for all
lists) methods like the total pages and the current page (among others). These
changes should be used for all entity-queries in my app. N
I was using entity-query, now I need to make some extensions to EntityQuery
provided by Seam. I assumed that using the class atribute for the
framework:entity-query I can define a subclass of the EntityQuery. Is my
assumption correct?
| public class MyEntityQuery extends org.jboss.seam.fra
If you are using the query with max-results defined, then you must to extend
the EntityQuery class and override the following methods as follows:
| @Override
| @Transactional
| public long getLastFirstResult() {
|
| long page = (getResultCount() / getMaxResults()) *
1 - 100 of 209 matches
Mail list logo