[JBoss Seam] - Validation and selectOneMenu question
by Sammy8306
I have two questions:
1) It seems that my custom validator on a text input is not called when it is empty. Apparently this is a JSF issue (I'm using MyFaces 1.1.4), but maybe Seam offers a solution?
2) I'm using a selectOneMenu to add items to a list (the list is updated using Ajax4JSF, using the onSubmit hook). I'm rerendering the list (a ui:repeat) and the selectOneMenu every time a new element is selected in the selectOneMenu. Now, I would like the value of the menu to be reset to the noSelectionLabel. I tried setting the value binding to a property that always returns null, and even tried returning NoSelectionConvertor.NOSELECTIONVALUE (or something like that :). But, the last selected item always remains selected... what can I do about this?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067400#4067400
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067400
18Â years, 9Â months
[JBoss Seam] - Re: count(*) and group by
by wschwendt
"artur.chyzy" wrote : what about the native sql solution..
|
| override the count query methods and use native sql for it...
if you override Query.getCountEjbql() there's actually no real need to resort to native SQL queries, at least in most cases. JPA QL allows a COUNT expression in a query, even though it's not legal (or portable) to write COUNT(*). See BNF grammar above taken from the JPA spec. So you could easily provide a custom JPA QL count query.
The reason why in Seam the count query gets generated obviously has to do with the fact that the Seam framework supports the XML-based declaration of EntityQuery objects and query restriction fragments, without the developer being required to write any Java code.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067394#4067394
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067394
18Â years, 9Â months
[Installation, Configuration & DEPLOYMENT] - Unable to Shutdown JBoss-3.2.3
by gvreddy
Hi mates,
When I am trying to shutdown JBoss-3.2.3 on unix maching, I got the following exception.
Help required to resolve this issue.
I tried the following ways from jboss-3.2.3/bin directory.
1. shutdown.sh -S
2. shutdown.sh -s jnp://mysysip:1099
Exception in thread "main" javax.naming.NamingException: Could not dereference object. Root exception is javax.naming.NameNotFoundException: invoker not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java(Inlined Compiled Code))
at org.jnp.server.NamingServer.getBinding(NamingServer.java(Inlined Compiled Code))
at org.jnp.server.NamingServer.getObject(NamingServer.java(Inlined Compiled Code))
at org.jnp.server.NamingServer.lookup(NamingServer.java(Compiled Code))
at org.jnp.server.NamingServer.lookup(NamingServer.java(Compiled Code))
at sun.reflect.GeneratedMethodAccessor104.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java(Compiled Code))
at sun.rmi.transport.Transport$1.run(Transport.java:164)
at java.security.AccessController.doPrivileged1(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code))
at sun.rmi.transport.Transport.serviceCall(Transport.java(Compiled Code))
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java(Compiled Code))
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.handleRequest(TCPTransport.java:837)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:911)
at java.lang.Thread.run(Thread.java:568)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:264)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:240)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:149)
at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:528)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:507)
at javax.naming.InitialContext.lookup(InitialContext.java:361)
at org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:964)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:613)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:507)
at javax.naming.InitialContext.lookup(InitialContext.java:361)
at org.jboss.Shutdown.main(Shutdown.java:182)
Thanks in advance.
Venkat.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067392#4067392
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067392
18Â years, 9Â months