[jboss-user] [JBoss Seam] - Re: Restrict file upload size individually

2007-06-27 Thread tazman
Is there a way to make s:fileUpload throw FileUploadException on a per case 
basis before reading the whole stream? I don't want uploading a file happens if 
I'll discard it anyway.

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

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


[jboss-user] [JBoss Seam] - Re: Restrict file upload size individually

2007-06-27 Thread tazman
If I have this in my components.xml

component class=org.jboss.seam.web.MultipartFilter
  |   property name=maxRequestSize100/property
  | /component

then the filter just checks the Content-Length of the HTTP request and throws 
the exception before reading the HTTP content if the length is bigger that the 
maxRequestSize. So the file is not really uploaded to the server and doesn't 
consume any memory resources.

Whereas, with 

s:fileUpload ... fileSize=#{foo.fixedSize} /

the filter reads the content and gives my backing bean the control to decide. 
I'd like to have the maxRequestSize behavior in this case as well. Is it 
doable? Is my understanding correct?

tazman

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

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


[jboss-user] [JBossCache] - NoClassDefFoundError with TreeCache on JBoss 4.2

2007-06-25 Thread tazman
Hi,

when I click on service=TreeCache-Cluster link under jboss.cache in JMX 
console, I get a NoClassDefFoundError.

I just copied my whole JBoss 4.2 installation from my windows dev machine to 
the linux server. Everything works perfectly, even TreeCache itself. The only 
difference is that on the server machine I get the exception whereas dev 
machine does work.

This is the exception:

java.lang.NoClassDefFoundError: org/jgroups/MembershipListener
  | java.lang.ClassLoader.defineClass1(Native Method)
  | java.lang.ClassLoader.defineClass(ClassLoader.java:620)
  | java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
  | java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
  | java.net.URLClassLoader.access$100(URLClassLoader.java:56)
  | java.net.URLClassLoader$1.run(URLClassLoader.java:195)
  | java.security.AccessController.doPrivileged(Native Method)
  | java.net.URLClassLoader.findClass(URLClassLoader.java:188)
  | 
org.jboss.mx.loading.RepositoryClassLoader.findClassLocally(RepositoryClassLoader.java:675)
  | 
org.jboss.mx.loading.RepositoryClassLoader.findClass(RepositoryClassLoader.java:655)
  | java.lang.ClassLoader.loadClass(ClassLoader.java:306)
  | 
org.jboss.mx.loading.RepositoryClassLoader.loadClassLocally(RepositoryClassLoader.java:193)
  | 
org.jboss.mx.loading.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:131)
  | org.jboss.mx.loading.LoadMgr3.nextTask(LoadMgr3.java:399)
  | 
org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:520)
  | 
org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:408)
  | java.lang.ClassLoader.loadClass(ClassLoader.java:299)
  | java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:580)
  | java.lang.ClassLoader.loadClass(ClassLoader.java:251)
  | 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1345)
  | 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
  | 
org.jboss.jmx.adaptor.control.Server.getMBeanAttributeResultInfo(Server.java:156)
  | org.apache.jsp.inspectMBean_jsp._jspService(inspectMBean_jsp.java:185)
  | org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
  | javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
  | 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:387)
  | org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
  | org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
  | javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
  | 
org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.inspectMBean(HtmlAdaptorServlet.java:204)
  | 
org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:96)
  | 
org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doGet(HtmlAdaptorServlet.java:77)
  | javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
  | javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
  | 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | 
  | 

Any ideas?

tazman

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

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


[jboss-user] [JBoss Seam] - Re: Seam Email Formatting w/CSS

2007-06-12 Thread tazman
Note that if you don't have Thunderbird as your mail reader, you'll have 
difficulties getting CSS work.

See the following blog article:

A Guide to CSS Support in Email
http://www.campaignmonitor.com/blog/archives/2007/04/a_guide_to_css_support_in_emai_2.html

tazman

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

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


[jboss-user] [JBoss Seam] - Re: jboss el and jstl functions issue

2007-06-08 Thread tazman
Another solution is to use  parameterized value bindings feature of the new 
JBoss EL. For example, the following expression returns the string length:

#{testFromType.length()}

You can also use other string methods like substring(). See the new Expression 
language enhancements documentation in CVS.

I don't need to use JSTL functions anymore.

tazman

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

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


[jboss-user] [JBoss Seam] - Re: @In (create=true)

2007-06-07 Thread tazman
Use @In(create=true, value=contextVariableName)

tazman

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

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


[jboss-user] [JBoss Seam] - Re: seam 1.2.1 - 1.3 (CVS.20070531) causes wrong content en

2007-06-07 Thread tazman
I had the same problem and could solve the issue by replacing the following 
filter mapping in web.xml

filter-mapping
  | filter-nameSeam Filter/filter-name
  | url-pattern/*/url-pattern
  | /filter-mapping

with this one

filter-mapping
  | filter-nameSeam Filter/filter-name
  | url-pattern*.seam/url-pattern
  | /filter-mapping


tazman

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

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


[jboss-user] [JBoss Seam] - Re: EntityQuery.nextExists not working correctly?

2007-05-30 Thread tazman
Check this:
http://www.jboss.com/index.html?module=bbop=viewtopict=108188

There is still one bug, see the last message.

tazman

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

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


[jboss-user] [JBoss Seam] - Re: can't get it working: exception redirection

2007-05-29 Thread tazman
I have this in my web.xml:

!-- Seam --
  | listener
  |   listener-classorg.jboss.seam.servlet.SeamListener/listener-class
  | /listener
  | 
  | filter
  |   filter-nameSeam Filter/filter-name
  |   filter-classorg.jboss.seam.web.SeamFilter/filter-class
  | /filter
  | 
  | filter-mapping
  |   filter-nameSeam Filter/filter-name
  |   url-pattern*.seam/url-pattern
  | /filter-mapping

I thought, all other filters are installed by the main filter. Do I have to 
include some more filters in my web.xml?

tazman


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

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


[jboss-user] [JBoss Seam] - Re: can't get it working: exception redirection

2007-05-29 Thread tazman
I think we have quite different configurations. You seem to be using pre jboss 
4.2 with myfaces. I ported my application to jboss 4.2 (jsf ri) and am using 
seam cvs latest. 

The Seam reference document says (chapter 21.1.3 Seam servlet filters):

anonymous wrote : The Seam master filter must be the first filter specified in 
web.xml. This ensures it is run first.
  | Adding the master filter enables the following built-in filters.

and it lists the following filters (including the exception-filter):
exception-filter, redirect-filter, multipart-filter, character-encoding-filter, 
and ajax4jsf-filter

Nevertheless, I'll give it a try and explicitly configure the filters in 
web.xml.

tazman 

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

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


[jboss-user] [JBoss Seam] - can't get it working: exception redirection

2007-05-28 Thread tazman
Hi all,

I'm trying to redirect a FileUploadException to an error page. I turned off 
both  seam debug mode and facelets development mode. Login redirection to the 
login page and back to the original page works without any problem.

I added this to the pages.xml:

exception class=org.jboss.seam.web.FileUploadException
  | end-conversation/
  | redirect view-id=/errors/fue.seam
  | message severity=errorFile size is above allowable 
maximum/message
  | /redirect
  | /exception

However, I'm still seeing the exception both in the console and browser (as 
part of HTTP Status 500), and there is no redirection to my error page.

My application runs on jboss 4.2 with seam cvs.

What am I missing?

tazman

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

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


[jboss-user] [JBoss Seam] - Re: can't get it working: exception redirection

2007-05-28 Thread tazman
Hi fernando,

thanks for your reply. You were right about the view-id. However, it didn't 
make any difference. The exception is still thrown, and shown by tomcat, 
instead of being redirected to the error page.

tazman

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

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


[jboss-user] [JBoss Seam] - jboss el and jstl functions issue

2007-05-27 Thread tazman
Hi all,

I'm using jstl's fn:length() function in several places in my application. It 
was working with the combination of jJboss 4.0.5, ajax4jsf 1.1, faceletes 
1.1.12, jsf ri 1.2, and seam 1.2.1. I started getting ClassNotFoundExceptions 
after I upgraded to seam cvs, ajax4jsf latest snapshot, and jboss 4.2.

This is the exception I'm getting:

java.lang.ClassNotFoundException: No ClassLoaders found for: com.sun.
  | facelets.tag.jstl.fn.JstlFunction
  | at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212)
  | at 
org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryCl
  | assLoader.java:514)
  | at 
org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassL
  | oader.java:408)
  | at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
  | at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
  | at java.lang.Class.forName0(Native Method)
  | at java.lang.Class.forName(Class.java:164)
  | at 
org.jboss.el.lang.FunctionMapperImpl$Function.getMethod(FunctionMappe
  | rImpl.java:147)

My jsf-facelets.jar is under web-inf/lib and I can use all other facelets 
features without any problem, so I don't understand why jstl functions cannot 
be loaded. Any ideas?

tazman


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

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


[jboss-user] [EJB 3.0] - EJB3 timer service configuration in JBoss 4.2.0.GA

2007-05-21 Thread tazman
Hi,

while using JBoss 4.0.5 I was able to change EJB3 timer persistence policy by 
editing ejb-timer-service.xml in the deploy directory. I cannot find this file 
in JBoss 4.2.0.GA any more. How can I change EJB3 timer service configuration 
in JBoss 4.2.0.GA? Specifically, I want to use the persistence policy that does 
not persist the timer.

tazman

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

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


[jboss-user] [EJB 3.0] - Re: EJB3 timer service configuration in JBoss 4.2.0.GA

2007-05-21 Thread tazman
Thanks wolfc!

tazman

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

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


[jboss-user] [Installation, Configuration Deployment] - EJB3 timer service configuration in JBoss 4.2.0.GA

2007-05-18 Thread tazman
Hi,

while using JBoss 4.0.5 I was able to change EJB3 timer persistence policy by 
editing ejb-timer-service.xml in the deploy directory. I cannot find this file 
in JBoss 4.2.0.GA any more. How can I change EJB3 timer service configuration 
in JBoss 4.2.0.GA? Specifically, I want to use the persistence policy that does 
not persist the timer.

tazman

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

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


[jboss-user] [JBoss Seam] - Re: org.jboss.seam.core.timeZoneSelector not found

2007-04-13 Thread tazman
I think, it is not installed by default. You should install it using 
components.xml.

tazman

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

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


[jboss-user] [JBoss Seam] - Re: Email and internationalization

2007-04-13 Thread tazman
Thanks Pete! With your latest CVS commits I now have all the email 
functionality I need. I can send sync/async mails, and the subject and body 
parts are correctly encoded in utf-8.

Thanks again!

tazman

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

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


[jboss-user] [JBoss Seam] - Re: Email and internationalization

2007-04-10 Thread tazman
try to apply these changes to your template:

?xml version=1.0 encoding=utf-8 ?
  | m:message xmlns=http://www.w3.org/1999/xhtml;
  | xmlns:m=http://jboss.com/products/seam/mail;
  | xmlns:h=http://java.sun.com/jsf/html;
  | xmlns:f=http://java.sun.com/jsf/core;
  | importance=normal 
  | requestReadReceipt=false
  | charset=utf-8

tazman

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

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


[jboss-user] [JBoss Seam] - Re: Email and internationalization

2007-04-06 Thread tazman
I can confirm that now my email subjects too are utf-8 encoded.

However, I cannot send asynchronous mails anymore. I'm getting this:

14:49:00,875 ERROR [TimerImpl] Error invoking ejbTimeout: javax.ejb.EJBException
  | : java.lang.RuntimeException: exception invoking: newMessage

If I remove the @Asynchronous annotation from the method newMessage(), sending 
works again.

I'm using JSF RI 1.2 with Seam 1.2.1 (latest from CVS).

tazman

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

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


[jboss-user] [JBoss Seam] - Re: Seam and Ajax4jsf combination throws IllegalStateExcepti

2007-03-27 Thread tazman
Hi,

I had similar problems with Seam 1.2. Yesterday I upgraded to the CVS version 
of Seam and the problems are gone.

tazman

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

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


[jboss-user] [JBoss Seam] - Re: Is it possible to send mail from asynchronous method

2007-03-21 Thread tazman
) 
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation. 
  | java:101) 
  | at 
org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsI 
  | nterceptor.java:47) 
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation. 
  | java:101) 
  | at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79) 
  | at 
org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java 
  | :197) 
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation. 
  | java:101) 
  | at 
org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInt 
  | erceptor.java:76) 
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation. 
  | java:101) 
  | at 
org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(Stateles 
  | sInstanceInterceptor.java:62) 
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation. 
  | java:101) 
  | at 
org.jboss.aspects.security.AuthenticationInterceptor.invoke(Authentic 
  | ationInterceptor.java:77) 
  | at 
org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3Auth 
  | enticationInterceptor.java:131) 
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation. 
  | java:101) 
  | at 
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterce 
  | ptor.java:47) 
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation. 
  | java:101) 
  | at 
org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(Asynchrono 
  | usInterceptor.java:106) 
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation. 
  | java:101) 
  | at 
org.jboss.ejb3.stateless.StatelessContainer.callTimeout(StatelessCont 
  | ainer.java:150) 
  | at 
org.jboss.ejb.txtimer.TimerImpl$TimerTaskImpl.run(TimerImpl.java:524) 
  |  
  | at java.util.TimerThread.mainLoop(Timer.java:512) 
  | at java.util.TimerThread.run(Timer.java:462) 
  | 


tazman



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

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


[jboss-user] [JBoss Seam] - Re: s:fileUpload throws MissingResourceException

2007-03-16 Thread tazman
Hey guys!

Seam 1.2 works perfectly here with JSF-RI 1.2, Facelets, Ajax4JSF 1.0.7, and 
JBoss AS 4.0.5. My only problem currently is the MissingResourceException and 
ExceptionInInitializerError I'm getting.

My form has only one input field, which is an s:fileUpload 

h:form id=register_form enctype=multipart/form-data
  | s:fileUpload id=photo data=#{photo.data} fileName=#{photo.name} 
accept=image/gif,image/jpeg,image/png/
  | h:commandButton value=save action=#{photoManager.save} /
  | /h:form

The faces-config.xml has this

application   
  | message-bundlemessages/message-bundle
  | el-resolverorg.jboss.seam.jsf.SeamELResolver/el-resolver
  | 
  | locale-config
  | default-localeen/default-locale
  | supported-localeen/supported-locale
  | supported-localeen_US/supported-locale
  | /locale-config
  | /application

My messages.properties file works for all other cases in my application. Again, 
the problem is only with s:fileUpload.

tazman


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

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


[jboss-user] [JBoss Seam] - Re: JSF ValueChangeListener ???

2007-03-16 Thread tazman
Try this:

http://java-server-faces.blogspot.com/2006/04/valuechangelisteners-what-you-need-to.html

tazman

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

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


[jboss-user] [JBoss Seam] - s:fileUpload throws MissingResourceException

2007-03-15 Thread tazman
)
  | at 
com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestV
  | aluesPhase.java:101)
  | at 
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:244)
  | at 
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:113)
  | 
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
  | icationFilterChain.java:252)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
  | ilterChain.java:173)
  | at net.benim.core.util.UTF8Filter.doFilter(UTF8Filter.java:40)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
  | icationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
  | ilterChain.java:173)
  | at 
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.jav
  | a:63)
  | at 
org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
  | at 
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.jav
  | a:49)
  | at 
org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
  | at 
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.jav
  | a:49)
  | at 
org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:74)
  | at 
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.jav
  | a:49)
  | at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
  | icationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
  | ilterChain.java:173)
  | at 
org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseX
  | MLFilter.java:75)
  | at 
org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.
  | java:213)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
  | icationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
  | ilterChain.java:173)
  | at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
  | lter.java:96)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
  | icationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
  | ilterChain.java:173)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
  | alve.java:213)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
  | alve.java:178)
  | at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
  | yAssociationValve.java:175)
  | at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
  | e.java:74)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
  | ava:126)
  | at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
  | ava:105)
  | at 
org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConne
  | ctionValve.java:156)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
  | ve.java:107)
  | at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
  | a:148)
  | at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
  | :869)
  | at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
  | rocessConnection(Http11BaseProtocol.java:664)
  | at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
  | int.java:527)
  | at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWor
  | kerThread.java:112)
  | at java.lang.Thread.run(Thread.java:595)
  | Caused by: java.util.MissingResourceException: Can't find bundle for base 
name c
  | om.sun.el.Messages, locale de_CH
  | at 
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle
  | .java:836)
  | at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:805)
  | at java.util.ResourceBundle.getBundle(ResourceBundle.java:549)
  | at com.sun.el.util.MessageFactory.clinit(Unknown Source)
  | ... 51 more
  | 

My operating system's default locale is de_CH but I have this in my 
faces-config.xml that works for me:


  | locale-config
  | default-localeen/default-locale
  | supported-localeen/supported-locale
  | supported-localeen_US/supported-locale
  | /locale-config
  | 

I just copied my messages.properties to a new file: messages_ch_DE.properties 
but I'm still getting the same exception.


I'm using JSF-RI 1.2 with Facelets and Seam 1.2 on top of JBoss 4.0.5

tazman

View

[jboss-user] [JBoss Seam] - Re: Is it possible to send mail from asynchronous method

2007-03-05 Thread tazman
Hi Peter!

anonymous wrote : The fix won't work with JSF 1.2

Any idea when it'll work with JSF 1.2 RI? Seam mail with facelets templating 
looks so promising but it's pretty much useless for me at this time because I 
always send mails asynchronously. 


tazman

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

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


[jboss-user] [JBoss Seam] - Re: Redirect to error-page for AuthorizationException with @

2007-03-05 Thread tazman
I have also a similar problem with login redirection. 

If I set login-required to true for a page in pages.xml, everything works as 
expected. However, when I programmatically throw NotLoggedInException I get the 
debug page:

if (!Identity.instance().isLoggedIn())
  | throw new NotLoggedInException();

tazman

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

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


[jboss-user] [JBoss Seam] - Pagination With Query Objects Bug?

2007-03-01 Thread tazman
Hi all!

I think I discovered a bug with the pagination logic of Query objects.

I have a query object comments defined in my components.xml. max-results param 
is set to 5 and I know that I have 10 comments in the DB. I can use the 
following code for the rendering of a next page link:

s:link view=/comments.xhtml rendered=#{comments.nextExists} value=Next 
Page
  | f:param name=firstResult value=#{comments.nextFirstResult}/
  | /s:link

Now, when I'm already browsing the second and last page, i.e. with firstResult 
param set to 5, a next page link is still there. When I click on next page, 
firstResult is set to 10 and the query object returns an empty list.

I went through the Query.java code and found this implementation for 
isNextExists():

public boolean isNextExists()
  | {
  | return getResultList()!=null  
  | getResultList().size() == getMaxResults();
  | 
  | }

I think this code should consider the resultCount as well, so that 
getNextFirstResult() doesn't return a value equal or greater than the 
resultCount.

Isnt't this the expected behavior for you guys?

tazman


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

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


[jboss-user] [JBoss Seam] - pages.xml issues after upgrade to seam 1.2

2007-02-28 Thread tazman
Hi all!

I upgraded today to Seam 1.2 and many functionalities of pages.xml have stopped 
working since then. Namely, page parameters and login redirection don't work 
anymore.

I have an ArticleHome like this:


  | @Name(articleHome)
  | public class ArticleHome extends EntityHomeArticle {
  | @In(create = true)
  | EntityManager entityManager;
  | 
  | @In(required = false)
  | Integer articleId;
  | 
  | @Factory(article)
  | public Article initArticle() { return getInstance(); }
  | 
  | public Object getId() {
  | return articleId;
  | }
  | 
  | @Override
  | public EntityManager getEntityManager() {
  | return entityManager;
  | }
  |...
  | 
  | }
  | 
  | 

And I have this in pages.xml for the articleId param:


  |page view-id=/article.seam
  | param name=id value=#{articleHome.articleId} /
  | /page
  | 

The articleId is always null when the factory method is invoked. However, a 
query that returns comments for the article gets somehow the article's id. So 
in the article.seam page, I can see the article's comments but an empty article:



  |framework:entity-query name=commentsQuery ejbql=select c from 
Comment c max-results=10
  | framework:restrictions
  | valuearticle_id = #{article.id}/value
  | /framework:restrictions
  | /framework:entity-query
  | 

When I try to paginate through the comments, I always get the first page back 
because firstResult page parameter is not set either.

If I use @RequestParameter(value=id) Integer articleId instead of page 
parameter, everything work but pagination.


My other problem is that login redirection doesn't work anymore.

All of these were working yesterday with Seam CVS version from Feb 26th. When I 
downgrade back to that version, they start working again. I cannot figure out 
what the issue is. I checked the seam examples and adapted my config files to 
1.2 schemas.

I'm using JSF 1.2 RI, Ajax4JSF 1.0.5, and Facelets 1.1.11 on top of JBoss 4.0.5.

Does somebody have any idea?

tazman


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

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


[jboss-user] [JBoss Seam] - Re: pages.xml issues after upgrade to seam 1.2

2007-02-28 Thread tazman
Hi Gavin!

Thanks for the reply. It was a problem with JSF RI 1.2_03. This version doesn't 
work with Seam 1.2. Restoring JSF RI 1.2_02 solved my problems.

tazman

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

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