[jboss-user] [JBoss Seam] - seam gen - which one?

2007-03-05 Thread buddy1974
As far as I can see, the seam-gen that comes with seam is different than the 
one that is available via the wiki. Is there a reason for this? Which one is 
the one, one should take? 

The packed one provides the following targets:


  | clean
  | delete-project
  | deploy
  | explode
  | generate-entities
  | new-action
  | new-entity
  | new-form
  | new-project
  | reset
  | restart
  | settings
  | setup
  | test
  | undeploy
  | unexplode
  | update-project
  | 
  | 
  | and the one available via the wiki provides
  | 
  | create-folders
  |   | create-folders-wtp
  |   | delete-project
  |   | deploy-project
  |   | exploded-ear-copy
  |   | exploded-jar-copy
  |   | exploded-war-copy
  |   | file-copy
  |   | file-copy-wtp
  |   | help
  |   | new-action
  |   | new-action-page
  |   | new-bpm-action
  |   | new-conversation
  |   | new-entity
  |   | new-mdb
  |   | new-page
  |   | new-project
  |   | new-sfsb-action
  |   | new-slsb-action
  |   | new-testcase
  |   | new-wtp-project
  |   | scaffold-copy
  |   | scaffold-copy-wtp
  |   | update-project
  |   | Default target: new-project
  |   | 
  | 
  | Any Help is highly appreciated
  | 
  | Kind regards
  | 
  | Juergen
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4025040#4025040

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4025040
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: seam gen - which one?

2007-03-05 Thread buddy1974
does it support wtp?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4025081#4025081

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4025081
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: seam gen - which one?

2007-03-05 Thread buddy1974
is support for the WTP planned?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4025114#4025114

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4025114
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Question about request/response lifecycle

2007-01-30 Thread buddy1974
Hi All,

I have stumbled upon this article: 
http://today.java.net/pub/a/today/2006/02/09/file-uploads-with-ajax-and-jsf.html
 and I am trying to get this work with seam. The ProgressBar Component does not 
work. I think I know why, but I am not sure.

I noticed that the Author wrote inside his FileUploadRenderer Component

if(parameterMap.containsKey(PROGRESS_REQUEST_PARAM_NAME))
  | {
  | // This is a request to get the progress on the file request.
  | // Get the progress and render it as XML
  | 
  | HttpServletResponse response = (HttpServletResponse) 
context.getExternalContext().getResponse();
  | 
  | // set the header information for the response
  | response.setContentType(text/xml);
  | response.setHeader(Cache-Control, no-cache);
  | 
  | try
  | {
  | ResponseWriter writer = 
FacesUtils.setupResponseWriter(context);
  | writer.startElement(progress, input);
  | writer.startElement(percentage, input);
  | // writer.writeText(result, null);
  | // Get the current progress percentage from the session (as 
set
  | // by the filter).
  | Double progressCount = (Double) 
extContext.getSessionMap().get(
  | FileUpload.Progress. + 
input.getClientId(context));
  | 
  | if(progressCount != null)
  | {
  | writer.writeText(progressCount, null);
  | }
  | else
  | {
  | // We havn't received the upload yet.
  | writer.writeText(1, null);
  | }
  | 
  | writer.endElement(percentage);
  | writer.startElement(clientId, input);
  | writer.writeText(input.getClientId(context), null);
  | writer.endElement(clientId);
  | writer.endElement(progress);
  | 
  | }
  | catch (Exception e)
  | {
  | // Do some sot of error logging...
  | throw new RuntimeException(e);
  | }
  | 
  | }
  | else
  | {
  | // Normal decoding request.
  | if(requestMap.get(clientId).toString().equals(file))
  | {
  | try
  | {
  | HttpServletRequest request = (HttpServletRequest) 
extContext.getRequest();
  | FileItem fileData = (FileItem) 
request.getAttribute(clientId);
  | if(fileData != null)
  | input.setSubmittedValue(fileData);
  | 
  | // Now we need to clear any progress associated with 
this
  | // item.
  | extContext.getSessionMap()
  | .put(FileUpload.Progress. + 
input.getClientId(context), new Double(100));
  | 
  | }
  | catch (Exception e)
  | {
  | throw new RuntimeException(
  | Could not handle file upload - please 
ensure that you have correctly configured the filter.,
  | e);
  | }
  | }
  | }
  | }
  | 

It seems as if the author is trying to itercept the response sent back to the 
client, by sending a response.setContentType(text/xml);. Is this really 
possible? 

I rather think, that this has to go inside a PhaseListener, and output the XML 
from there, or am I wrong?

Any Help is highly appreciated

Kind regards 

Juergen

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4008202#4008202

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4008202
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Question about request/response lifecycle

2007-01-30 Thread buddy1974
so is it possible to short-circuit the response inside a tag? This seems not 
right, correct?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4008639#4008639

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4008639
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - looking for the right way to display images

2007-01-24 Thread buddy1974
Hi all,

I am developing an Application which has to server images. Now my question is, 
what is the right way to do it in seam? Should I write my own servlet or my own 
UI Component (Totally inexperienced with this)?

What is the right way?

Kind regards

Juergen

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4005745#4005745

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4005745
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: looking for the right way to display images

2007-01-24 Thread buddy1974
Hi Pete,

I think it is a bit more complicated. Here is what I have to provide.

Users can upload images to the application. They are then provided a link, 
which they can use within their E-Mails, or other Forums, to post references to 
the images. 

The things users can upload do not necessarily need to be images. It could be 
zip files, or videos as well. Do you know what I mean?

So my question is really how would I direct the user on a certain screen, and 
then decide upon that screen, what Item the user wants, then set the content 
type, and deliver the content.

Kind regards

Juergen

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4005789#4005789

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4005789
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: iceFaces inputFile component

2007-01-19 Thread buddy1974
Hi all, 

tried the icefaces upload component in conjunction with the new seam 1.1.1 
release, and icefaces 1.5.2 and I still have no luck.

I am getting the following Exception:

anonymous wrote : 
  | 16:52:50,353 ERROR [PhaseListenerManager] Exception in PhaseListener 
RENDER_RESPONSE(6) beforePhase.
  | java.lang.IllegalStateException: No page context active
  | at org.jboss.seam.core.FacesPage.instance(FacesPage.java:87)
  | at 
org.jboss.seam.jsf.AbstractSeamPhaseListener.beforeRender(AbstractSeamPhaseListener.java:219)
  | at 
org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:51)
  | at 
org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersBefore(PhaseListenerManager.java:70)
  | at 
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:373)
  | at 
com.icesoft.faces.webapp.xmlhttp.PersistentFacesState.render(PersistentFacesState.java:180)
  | at de.ellumination.share.sb.UploadBean.progress(UploadBean.java:109)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:597)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
  | at 
org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
  | at 
org.jboss.seam.intercept.EJBInvocationContext.proceed(EJBInvocationContext.java:37)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55)
  | at 
org.jboss.seam.interceptors.BijectionInterceptor.bijectTargetComponent(BijectionInterceptor.java:51)
  | at sun.reflect.GeneratedMethodAccessor118.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:597)
  | at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
  | at 
org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
  | at 
org.jboss.seam.interceptors.OutcomeInterceptor.interceptOutcome(OutcomeInterceptor.java:23)
  | at sun.reflect.GeneratedMethodAccessor117.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:597)
  | at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
  | at 
org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
  | at 
org.jboss.seam.interceptors.ConversationInterceptor.endOrBeginLongRunningConversation(ConversationInterceptor.java:51)
  | at sun.reflect.GeneratedMethodAccessor116.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:597)
  | at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
  | at 
org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
  | at 
org.jboss.seam.intercept.RootInterceptor.createSeamInvocationContext(RootInterceptor.java:144)
  | at 
org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:129)
  | at 
org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:102)
  | at 
org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:49)
  | at sun.reflect.GeneratedMethodAccessor115.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:597)
  | at 
org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
  | at 
org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor.invoke(ExtendedPersistenceContextPropagationInterceptor.java:57)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 

[jboss-user] [JBoss Seam] - Re: iceFaces inputFile component

2007-01-19 Thread buddy1974
http://jira.jboss.org/jira/browse/JBSEAM-676

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4004067#4004067

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4004067
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Eclipse IDE (users)] - Re: JBoss IDE 2.0.0Beta2 problems starting JBoss-4.0.5.GA

2007-01-17 Thread buddy1974
Hi,

I can confirm, that starting of jboss 4.0.5 inside jboss works again, after 
commenting the lines mentioned in the wiki.

Kind regards

Juergen

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4002799#4002799

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4002799
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - What does this exception mean

2007-01-04 Thread buddy1974
and how can I work around it?


  | 11:57:20,898 ERROR [PhaseListenerManager] Exception in PhaseListener 
RENDER_RESPONSE(6) beforePhase.
  | 
  | java.lang.IllegalStateException: No page context active
  | at org.jboss.seam.core.FacesPage.instance(FacesPage.java:87)
  | at 
org.jboss.seam.jsf.AbstractSeamPhaseListener.beforeRender(AbstractSeamPhaseListener.java:
  | 219)
  | at 
org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:51)
  | at 
org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersBefore(PhaseListene
  | rManager.java:70)
  | at 
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:373)
  | at 
com.icesoft.faces.webapp.xmlhttp.PersistentFacesState.render(PersistentFacesState.java:18
  | 0)
  | at 
de.ellumination.share.sb.RenderManagerBean.renderRequest(RenderManagerBean.java:37)
  | at 
de.ellumination.share.sb.RenderManagerBean$$FastClassByCGLIB$$e05d1045.invoke(generated)
  | at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
  | at 
org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55)
  | at 
org.jboss.seam.interceptors.OutcomeInterceptor.interceptOutcome(OutcomeInterceptor.java:2
  | 

this is the exception i am getting whilst integrating the icefaces inputfile 
component...

Kind regards

Juergen

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3998036#3998036

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3998036
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Classloading Questions

2007-01-02 Thread buddy1974
What is the recommended way to package 3rd party libraries, which have to be 
used inside the bean classes, and the Web Application?

The beans are packaged inside a jar archive and the webapp inside a war 
archive. Bothe are then packaged together inside in an ear archive.

For the webapp i have put everything in the WEB-INF/lib archive. For the beans 
I have put everything in JBOSS_HOME/server/default/lib this seems to be wrong 
because I cannot use the classes which are put into some transfer event by the 
webapp.

So my question is, how is the recommended way to package 3rd party libraries 
for my beans?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3997240#3997240

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3997240
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: iceFaces inputFile component

2007-01-02 Thread buddy1974
Hi,

finally, thanks to norman richards i have edited my application.xml and put my 
3rd party libraries to my ear root. That way the ClassCastExceptions are gone, 
but now I am getting a different error...

00:07:31,017 ERROR [PhaseListenerManager] Exception in PhaseListener 
RENDER_RESPONSE(6) beforePhase.
  | java.lang.IllegalStateException: No page context active
  | at org.jboss.seam.core.FacesPage.instance(FacesPage.java:87)
  | at 
org.jboss.seam.jsf.AbstractSeamPhaseListener.beforeRender(AbstractSeamPhaseListener.java:219)
  | at 
org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:51)
  | at 
org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersBefore(PhaseListenerManager.java:70)
  | at 
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:373)
  | at 
com.icesoft.faces.webapp.xmlhttp.PersistentFacesState.render(PersistentFacesState.java:180)
  | at de.ellumination.share.sb.UploadBean.progress(UploadBean.java:109)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:597)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
  | at 
org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
  | at 
org.jboss.seam.intercept.EJBInvocationContext.proceed(EJBInvocationContext.java:37)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55)
  | at 
org.jboss.seam.interceptors.BijectionInterceptor.bijectTargetComponent(BijectionInterceptor.java:51)
  | at sun.reflect.GeneratedMethodAccessor118.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:597)
  | at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
  | at 
org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
  | at 
org.jboss.seam.interceptors.OutcomeInterceptor.interceptOutcome(OutcomeInterceptor.java:23)
  | at sun.reflect.GeneratedMethodAccessor117.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:597)
  | at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
  | at 
org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
  | at 
org.jboss.seam.interceptors.ConversationInterceptor.endOrBeginLongRunningConversation(ConversationInterceptor.java:51)
  | at sun.reflect.GeneratedMethodAccessor116.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:597)
  | at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
  | at 
org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
  | at 
org.jboss.seam.intercept.RootInterceptor.createSeamInvocationContext(RootInterceptor.java:144)
  | at 
org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:129)
  | at 
org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:102)
  | at 
org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:49)
  | at sun.reflect.GeneratedMethodAccessor115.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:597)
  | at 
org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
  | at 
org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor.invoke(ExtendedPersistenceContextPropagationInterceptor.java:57)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 

[jboss-user] [JBoss Seam] - Re: Classloading Questions

2007-01-02 Thread buddy1974
Hi Norman, that did the trick

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3997386#3997386

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3997386
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Question about Classloading

2007-01-01 Thread buddy1974
Hi Folks,

the afore mentioned application is packaged inside an EAR by seam-gen. I have 
my beans inside a JAR and my Web Application inside my WAR. 

With my Icefaces inputfile component it seems that there are events triggered 
inside the webapp forwarded to the beans, where they are then evaluated. 

To solve this, I have the icefaces jars inside the WEB-INF/lib folder of my 
WAR. To make the beans being able to access icefaces classes, I have added the 
icefaces jar files to my JBOSS_HOME/server/default/lib folder. Maybe this is 
wrong and this is why I am getting the strange exception...


  | java.lang.ClassCastException: com.icesoft.faces.context.BridgeFacesContext 
cannot be cast to com.icesoft.faces.context.BridgeFacesContext
  |  at 
com.icesoft.faces.context.BridgeExternalContext.getRequestMap(BridgeExternalContext.java:365)
  |  at 
com.icesoft.faces.context.BridgeExternalContext.resetRequestMap(BridgeExternalContext.java:402)
  |  at 
com.icesoft.faces.context.BridgeFacesContext.release(BridgeFacesContext.java:325)
  |  at 
com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet.service(PersistentFacesServlet.java:440)
  |  at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  |  at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  |  at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  |  at 
org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:46)
  |  at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  |  at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  |  at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  |  at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  |  at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  |  at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  |  at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  |  at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
  |  at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
  |  at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  |  at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  |  at 
org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
  |  at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  |  at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  |  at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
  |  at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
  |  at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  |  at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
  |  at java.lang.Thread.run(Thread.java:619)
  | 

Dis I package my application correctly, or should I do this in a different way?

Kind regards

Juergen

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3997143#3997143

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3997143
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: iceFaces inputFile component

2006-12-30 Thread buddy1974
Hi Folks,

I have received the following reply over at the 
http://www.icefaces.org/JForum/posts/list/3270.page#15506... 

Kind regards

Juergen

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3996993#3996993

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996993
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - iceFaces inputFile component

2006-12-29 Thread buddy1974
Hi all,

has anyone successfully integrated the ice:inputFile/ Component? I am trying 
to get this to work, but I keep getting an 404 inside the genrated iframe.

I am new to seam and icefaces. 

So any help is highly appreciated.

Here is my setup:

I am using the web.xml from the seam 1.1.GA examples/icefaces example booking 
application. I also copied the icefaces jars into my lib folder. That made most 
errors disappear. But this error stays. Any help is highly appreciated.

this is how my current page looks like:


  | h:form id=upload
  | div
  | ice:inputFile style=border:none; width:400px; 
height:70px; progressListener=#{inputFile.progress} 
actionListener=#{inputFile.action}/
  | ice:outputProgress id=pro value=#{inputFile.percent}/ 

  | h:commandButton id=uploadPicture 
value=upload Picture! action=#{upload.uploadPicture}/  
  
  | /div
  | /h:form
  | 

The commandButton was generated by seam-gen new-action i don't know if I have 
to provide a inputFile bean. Plus I don't know how to get the thing with the 
events working, since (as for my understanding) the icefaces component showcase 
schos bean examples when one uses icefaces framework standalone. 

Kind regards

Juergen Hoffmann

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3996874#3996874

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996874
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: iceFaces inputFile component

2006-12-29 Thread buddy1974
Hi Folks,

I found, that I was missing entries in my web.xml


  | servlet
  |  servlet-nameuploadServlet/servlet-name
  |  
servlet-classcom.icesoft.faces.component.inputfile.FileUploadServlet/servlet-class
  |  load-on-startup 1 /load-on-startup
  | /servlet
  | servlet-mapping
  |  servlet-nameuploadServlet/servlet-name
  |  url-pattern/uploadHtml/url-pattern
  | /servlet-mapping
  | 

I inserted them. Now the upload Component renders fine.

No when uploading a file, I get the following Error(s):

anonymous wrote : 
  | 21:54:56,458 ERROR [STDERR] java.lang.reflect.InvocationTargetException
  | 21:54:56,458 ERROR [STDERR] at 
sun.reflect.GeneratedMethodAccessor115.invoke(Unknown Source)
  | 21:54:56,458 ERROR [STDERR] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 21:54:56,458 ERROR [STDERR] at 
java.lang.reflect.Method.invoke(Method.java:597)
  | 21:54:56,458 ERROR [STDERR] at 
com.icesoft.faces.component.inputfile.InputFile.fireEvent(InputFile.java:305)
  | 21:54:56,458 ERROR [STDERR] at 
com.icesoft.faces.component.inputfile.ProgressOutputStream.setSaved(ProgressOutputStream.java:80)
  | 21:54:56,458 ERROR [STDERR] at 
com.icesoft.faces.component.inputfile.DiskFileUpload.parseRequest(DiskFileUpload.java:256)
  | 21:54:56,458 ERROR [STDERR] at 
com.icesoft.faces.component.inputfile.FileUploadServlet.processMultipartContent(FileUploadServlet.java:160)
  | 21:54:56,458 ERROR [STDERR] at 
com.icesoft.faces.component.inputfile.FileUploadServlet.doPost(FileUploadServlet.java:146)
  | 21:54:56,458 ERROR [STDERR] at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  | 21:54:56,458 ERROR [STDERR] at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | 21:54:56,458 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | 21:54:56,458 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | 21:54:56,458 ERROR [STDERR] at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | 21:54:56,458 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | 21:54:56,458 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | 21:54:56,458 ERROR [STDERR] at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  | 21:54:56,458 ERROR [STDERR] at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  | 21:54:56,458 ERROR [STDERR] at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
  | 21:54:56,498 ERROR [STDERR] at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
  | 21:54:56,498 ERROR [STDERR] at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  | 21:54:56,498 ERROR [STDERR] at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  | 21:54:56,498 ERROR [STDERR] at 
org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
  | 21:54:56,498 ERROR [STDERR] at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  | 21:54:56,498 ERROR [STDERR] at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  | 21:54:56,498 ERROR [STDERR] at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
  | 21:54:56,498 ERROR [STDERR] at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
  | 21:54:56,498 ERROR [STDERR] at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  | 21:54:56,498 ERROR [STDERR] at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
  | 21:54:56,498 ERROR [STDERR] at java.lang.Thread.run(Thread.java:619)
  | 21:54:56,498 ERROR [STDERR] Caused by: javax.ejb.EJBNoSuchObjectException: 
Could not find Stateful bean: 5c4o07-npi3ii-ewb32xv5-1-ewb33p7c-d
  | 21:54:56,498 ERROR [STDERR] at 
org.jboss.ejb3.cache.simple.SimpleStatefulCache.get(SimpleStatefulCache.java:268)
  | 21:54:56,498 ERROR [STDERR] at 
org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:61)
  | 21:54:56,498 ERROR [STDERR] at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | 21:54:56,498 ERROR [STDERR] at 
org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
  | 21:54:56,498 ERROR [STDERR] at 

[jboss-user] [JBoss Seam] - Re: iceFaces inputFile component

2006-12-29 Thread buddy1974
Ok, I have come a bit closer.

I have created my own Stateful SessionBean, which exposes all the necessary 
methods...


  | package de.ellumination.share.sb;
  | 
  | import java.util.EventObject;
  | 
  | import javax.ejb.Remove;
  | import javax.ejb.Stateful;
  | import javax.ejb.Stateless;
  | import javax.faces.application.FacesMessage;
  | import javax.faces.event.ActionEvent;
  | 
  | import org.jboss.seam.annotations.Destroy;
  | import org.jboss.seam.annotations.Name;
  | import org.jboss.seam.annotations.In;
  | import org.jboss.seam.annotations.Logger;
  | import org.jboss.seam.log.Log;
  | import org.jboss.seam.core.FacesMessages;
  | 
  | import com.icesoft.faces.component.inputfile.InputFile;
  | import com.icesoft.faces.webapp.xmlhttp.PersistentFacesState;
  | import com.icesoft.faces.webapp.xmlhttp.RenderingException;
  | 
  | @Stateful
  | @Name(upload)
  | public class UploadBean implements UploadHome
  | {
  | 
  | @Logger
  | private Log log;
  | 
  | private PersistentFacesState state = null;
  | 
  | @In
  | FacesMessages facesMessages;
  | 
  | private int percent = -1;
  | 
  | public UploadBean()
  | {
  | state = PersistentFacesState.getInstance();
  | }
  | 
  | // seam-gen method
  | public String uploadPicture()
  | {
  | // implement your business logic here
  | log.info(upload.uploadPicture() action called);
  | facesMessages.add(uploadPicture);
  | return success;
  | }
  | 
  | public void action(ActionEvent event)
  | {
  | InputFile inputFile = (InputFile) event.getSource();
  | // file has been saved
  | if(inputFile.getStatus() == InputFile.SAVED)
  | {
  | String fileName = inputFile.getFileInfo().getFileName();
  | String contentType = inputFile.getFileInfo().getContentType();
  | FacesMessages.createFacesMessage(FacesMessage.SEVERITY_FATAL,
  | File uploaded successfully name: #0 
content/type: #1, fileName, contentType);
  | }
  | 
  | // invalid file, happens when clicking on upload without selecting a
  | // file, or a file with no contents.
  | if(inputFile.getStatus() == InputFile.INVALID)
  | {
  | inputFile.getFileInfo().getException().printStackTrace();
  | FacesMessages.createFacesMessage(FacesMessage.SEVERITY_FATAL, 
Please select a File);
  | }
  | 
  | // file size exceeded the limit
  | if(inputFile.getStatus() == InputFile.SIZE_LIMIT_EXCEEDED)
  | {
  | inputFile.getFileInfo().getException().printStackTrace();
  | FacesMessages.createFacesMessage(FacesMessage.SEVERITY_FATAL, 
File too big);
  | }
  | 
  | // indicate that the request size is not specified.
  | if(inputFile.getStatus() == InputFile.UNKNOWN_SIZE)
  | {
  | inputFile.getFileInfo().getException().printStackTrace();
  | FacesMessages.createFacesMessage(FacesMessage.SEVERITY_FATAL, 
Filesize unknown);
  | 
  | }
  | }
  | 
  | @Destroy
  | @Remove
  | public void destroy()
  | {
  | }
  | 
  | public String getPercent()
  | {
  | return Integer.toString(percent);
  | }
  | 
  | public void progress(EventObject event)
  | {
  | InputFile file = (InputFile) event.getSource();
  | percent = file.getFileInfo().getPercent();
  | try
  | {
  | if(state != null)
  | {
  | state.render();
  | }
  | }
  | catch (RenderingException e)
  | {
  | log.error(Unable to render progress, e);
  | }
  | }
  | 
  | // add additional action methods
  | 
  | }
  | 

and configuring my facelet page like so:


  | h:form
  | table border=5 cellpadding=15
  | tr
  | td
  | ice:inputFile style=border:none; width:400px; 
height:70px; progressListener=#{upload.progress} 
actionListener=#{upload.action} label=lads hoch/
  | /td
  | /tr
  | tr
  | td
  | ice:inputFile/
  | /td
  | /tr
  | tr
  | td
  | ice:outputProgress id=pro 
value=#{upload.percent}/
  | /td
  | /tr
  | /table
  | /h:form
  | 

the second input item, and the borders ar just fpr debugging purposes. But the 
problem is, that the inputfile component tries 

[jboss-user] [JBoss Seam] - newbie question format a date

2006-09-14 Thread buddy1974
Hi all,

I have just started with seam, and now I have a Problem converting dates to the 
correct form. I have tried:


  | td
  | h:inputText 
value=#{specification.creation}
  | 
f:convertDateTime pattern=dd.MM.yy hh:mm /
  | /h:inputText
  | input name= 
type=text value=#{specification.creation} readonly=true 
jsfc=h:inputText/
  | /td
  | 

but they both render the date as

Thu Sep 14 12:56:43 CEST 2006

Can anyone please help?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3971526#3971526

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971526
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user