1.i had a application which is runing well when i am using the
faces-config.xml, for example the login page:
/pages/input/login.jsp
login_success
/pages/input/mainpage.jsp
Now i found that the wrong message can be displayed in the jsp pages, only
when i usedto get the global messages.
if i don't add this tag, it won't disply. does it mean that the tag
is not useful for seam?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&
1.I want to add my own login interceptor in my application,the following is my
interceptor class
public class LoggedInInterceptor {
@Logger
private Log log;
@AroundInvoke
public Object checkLoggedIn(InvocationContext invocation) throws Exception {
boolean isLoggedIn = C
1. i want to inject the hibernate session in seam,so i config the component.xml
as follows:
2. Inside managed Bean , i use @in to inject the Hibernate Session,
but when i am using DetachedCriteria in my application
DetachedCriteria criteria =
I forgot to tell that i was trying under the tomcat6 with embedded jboss, And i
also tried to deploy hibernate example in the Seam2 into tomcat6, but with the
same exceptions:
org.hibernate.HibernateException: Could not find datasource
at
org.hibernate.connection.DatasourceConnectionPro
My application is working very well until i decide to migrade from seam1.2 to
seam2, i am stuck by hibernate configuration problem in seam2, which always
sent the message "Can't find the data source" , I have to list the related
configuration files here, I also check your forum, it seems that th
I got the same exception with datasource can't find problem. i don't think this
is caused by wrong jdbc driver, because it can't be found in seam 1.2. this
exception only happened in seam2. Have anyone fixed this problem?
View the original post :
http://www.jboss.com/index.html?module=bb&op=vie
Well,I have put my -ds.xml file under WEB-INF and WEB-INF\classes and even
META_INF of my application directory, but it all doesn't work! I don't
understand why it is so hard for configuration.
But if i put the -ds.xml under the {tomcat}/lib/deploy directory , it at least
can find the datasour
Can someone share his experience for integrating seam2 with Hibernate
successfully?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109596#4109596
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109596
__
I got the problem by the following scenario:
1.Create the seam component in conversation scope
2.in this component , i initialized a list called parametersList
3.I used window.showModalDialog() open a popup window
but i can't access this parametersList in this child page, because it is null.
Thanks very much. You do me a really big favor. Now it works for me, and i got
the possibility to reduce the amout of session objects in memory now.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115638#4115638
Reply to the post :
http://www.jboss.com/index
HI,
I want to upgrade from seam 1.2 to seam2, but i found there is no
Lifecycle.getServletContext() API in seam2 any more, can someone tell me
where can i find this API ? thanks in advance.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108046#4108046
Re
i really need this API in the @Create annotation method, can someone help me
out of this ?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108279#4108279
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108279
___
I want to do some initializing job just after the seam component is created , I
can't put this kind of method in constructor because at that time, the
component is not created. So is there some annotation or method to do such a
kind of job in Seam ? i tried with @Create too, but it failed again
Thanks hstang for reply, i know where the problem is when using the @Create
annotation, i am using "private" for method decorator ,so actually
seam component can't access it. When i modifed to "public" , it works now.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewto
Soemtimes, when i run my seam application,it will throw the following exception:
Wrong type at constant pool index
Can someone tell me what is possible reason for this?
thanks in advance!
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061166#4061166
Reply t
The whole exception stack:
exception root cause
javax.faces.el.EvaluationException: Exception while invoking expression
#{tabularCalculationBean.left2RightAll}
at
org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:153)
at javax.faces.component.UICommand.broadcas
Can i someone give me a little tips ? I am very traped about this now.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061651#4061651
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061651
i am using @In to inject a seam component(A) into anther seam component
(B),then i save B into some sort of container like map, list...,but when i get
the component (B) back , i just found the injected component(A) is null, Can
someone tell me why @In has such a kind of activities? The scope of
Thanks for reply, then can i have another way to save the component?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064316#4064316
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4064316
__
Thanks for reply, then can i have another way to save the component?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064317#4064317
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4064317
__
i debug the memory and note that in ajax requests , the hibernate session is
the same .my configuration about hibernate session in component.xml is:
and in the hibernate.cfg.xml i have added the properties according the seam
manual:
true
after_statement
I am using seam 1.2.0 and integrate it with Ajax4Jsf in the project.
My question is when i modified calculation from 1 to 2 in the page , i need to
modify the paramters list (Annotated by DataModel) by ajax request.
my codes are as follows:
@DataModel
private List runParameters;
@Begin(join =
i want to get the seam component outside of the seam conext, i have tried to
use component.getInstance(), but it says that no active context, can someone
tell me how to get these components ?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052370#4052370
Repl
I have the same question for how to test actionlistener in Seam test, can
someone help me?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053779#4053779
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053779
___
i have solved this problem by using NonFacesRequest, i pasted the codes here,
hope it will be helpful for someone :
@Test
public void testChangeDataset() throws Exception {
new NonFacesRequest() {
@Override
protecte
26 matches
Mail list logo