[jboss-user] [JBoss Tools (users)] - Re: Nightly: NPE DocTypeUtil.getDoctype(DocTypeUtil.java:137
Hi, anonymous wrote : Yes, please report bugs in jira with steps on how to reproduce - otherwise we can't really give you news :) I was not sure that this is a bug, it could be programming mistake or misconfiguration. There are no Null Pointer exceptions on Windows workstations, only on a Linux one. After some research I've discovered that the problem occurs if our XHTML files start with html xmlns=..., e.g.: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; | html xmlns=http://www.w3.org/1999/xhtml; | xmlns:ui=http://java.sun.com/jsf/facelets; | xmlns:h=http://java.sun.com/jsf/html; | xmlns:f=http://java.sun.com/jsf/core; | xmlns:s=http://jboss.com/products/seam/taglib; | xmlns:a=https://ajax4jsf.dev.java.net/ajax; | xmlns:rich=http://richfaces.ajax4jsf.org/rich; | ui:composition template=/layout/template.xhtml And there is no problem when XHTML files start with ui:composition..., e.g.: !DOCTYPE composition PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN | http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; | ui:composition xmlns=http://www.w3.org/1999/xhtml; | xmlns:s=http://jboss.com/products/seam/taglib; | xmlns:ui=http://java.sun.com/jsf/facelets; | xmlns:f=http://java.sun.com/jsf/core; | xmlns:h=http://java.sun.com/jsf/html; | xmlns:a=https://ajax4jsf.dev.java.net/ajax; | xmlns:rich=http://richfaces.ajax4jsf.org/rich; | template=layout/template.xhtml | Now after migration to the 2nd style there are no null pointer exceptions any more during opening XHTML files, but Visual Editor is still not working on my Linux workstation :-( The following link didn't help: http://wiki.jboss.org/wiki/JBosstoolsVisualEditorFAQ There is already compat-libstdc++-5.0.7-22.2 installed and symbolic link libstdc++.so.5 pointing to it already exists. But hope that this will help... https://jira.jboss.org/jira/browse/JBDS-170 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4173558#4173558 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4173558 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: Nightly: NPE DocTypeUtil.getDoctype(DocTypeUtil.java:137
Hi, I've the same problem in Eclipse 3.4 with JBoss Tools 3.0.0 Alpha1 installed via Eclipse Update java.lang.NullPointerException | at org.jboss.tools.vpe.editor.util.DocTypeUtil.getDoctype(DocTypeUtil.java:153) | at org.jboss.tools.vpe.editor.util.DocTypeUtil.getDoctype(DocTypeUtil.java:71) | at org.jboss.tools.vpe.editor.mozilla.MozillaEditor.createPartControl(MozillaEditor.java:281) aret there any news? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4173357#4173357 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4173357 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: WARN TwoPhaseCoordinator.afterCompletion
nwray wrote : Hi, I'm seeing the same issue with the recurring WARN message. I get the following warning from TwoPhaseCoordinator.afterCompletion with each iteration of an async task. Nothing obvious is failing, the warning might be in error or could be due to some misconfiguration on my part. It's been annoying during development but it would be nice to resolve it before deployment. | | 10:45:24,468 WARN [arjLoggerI18N] [com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator_4] TwoPhaseCoordinator.afterCo | mpletion - returned failure for [EMAIL PROTECTED] | | I've added a comment to the open JIRA below with more details, please let me know if I can add anything else. | http://jira.jboss.com/jira/browse/EJBTHREE-898 | I'm getting the same warning after each run of a scheduled job, although the job succeeds. By the way, I've set EJBTimerService datasource in $JBOSS_HOME/server/default/deploy/ejb-deployer.xml to the same as my application is using in order to have better control over my batch jobs and to avoid multiple non-XA datasources, but the warning is still generated. My environment: JBoss 4.2.2.GA Seam 2.0.0.GA JDK 1.5.0_14 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4126491#4126491 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4126491 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Pageflow hides stacktrace
Kruno wrote : When runtime exception originates from method inside SFSB, which is called by pageflow it is not possible to see origin of exception just that pageflow can't call that method. So to actually debug one needs to bypass pageflow to see the real exception. | Is there any way to configure seam so that pageflow would not hide origin of stacktrace. | | Thanks in advance Kruno. I have the same problem when simulating a Hibernate syntax error in a SFSB method marked with @End. And what is worse, ERROR [SeamPhaseListener] uncaught exception java.lang.IllegalStateException: pageflow has not yet started exception is rethrown in an endless loop :-( Seam 2.0.0.GA JBoss 4.2.2 GA JDK 1.5.0.14 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4122145#4122145 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4122145 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Page Navigation Problem
grdzeli_kaci wrote : hi all, | i have page navigation from login page.xhtml to /inbox/maillist.xhtml but it does not working, because i have maillist.xhtml into inbox folder, if i move this page into root directory it works,, is there any specific configuration ? | | my example code : | 1. login.page.xml | | | page | |navigation from-action=#{identity.login} | | rule if=#{identity.loggedIn} | | redirect view-id=/inbox/maillist.xhtml/ | | /rule | |/navigation | | /page | | | | if i change maillist path it works :( , i want create pages into different folders, but it does not working :( | I suppose maillist.xhtml uses a template, something like ui:composition template=layout/template.xhtml You have to change it so: ui:composition template=/layout/template.xhtml View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4121226#4121226 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121226 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: approach using seam tests
mhinten wrote : | - JDK 1.5 !! JDK 1.6 won't work !! | It works with JDK 1.6 too: http://in.relation.to/Bloggers/EmbeddedJBossUpdate For me it was enough only to set the following VM argument in the test run configuration: -Dsun.lang.ClassLoader.allowArraySyntax=true Eclipse TestNG plugin has been configured according to readme.txt in the project src/test directory My environment: - JBDS 1.0.0.GA - Seam 2.0.0.GA - Project generated with seam-gen - JDK 1.6.0 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4117953#4117953 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4117953 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: [STDERR] com.sun.facelets.compiler.TagLibraryConfig load
[EMAIL PROTECTED] wrote : Those error messages are normal. This is not normal ;-) http://shrubbery.mynetgear.net/wiki/Facelets_'loadImplicit'_error In production environments it would be handy to send all errors to admins by email using SMTP appender, but this error would generate a lot of inane emails. Here my workaround that works for me in JBoss AS 4.2.2: category name=STDERR | priority value=FATAL/ | /category Setting priority value to ERROR enables the logging again (can be usefull in development environments). View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4116978#4116978 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4116978 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: web:character-encoding-filter
dd_la_frime wrote : I can't override the character encoding of the client and the fact that I can't get my well formed html params in GET action. | According to the reference http://docs.jboss.com/seam/1.2.1.GA/reference/en/html_single/ character encoding filter anonymous wrote : Sets the character encoding of submitted form data. I suppose that this means POST requests and explanes why this filter doesn't work for the POST requests, am I right? If yes how is it possible to override the character encoding for GET requests? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4078859#4078859 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4078859 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - EntityController not testable?
It seems that testing of classes derived from EntityController is impossible if a logger or faces messages are in use. Good news: EntityController has method setEntityManager Bad news: similar methods for logger and faces messages are missing. For example calling this.addFacesMessage(some text) throws the following: java.lang.IllegalStateException: No active conversation context | at org.jboss.seam.core.FacesMessages.instance(FacesMessages.java:417) | at org.jboss.seam.framework.Controller.getFacesMessages(Controller.java:76) | at org.jboss.seam.framework.Controller.addFacesMessage(Controller.java:98) For example calling this.info(some text) throws the following: java.lang.NullPointerException | at org.jboss.seam.framework.Controller.info(Controller.java:213) Is there any solution or workaround? I'm using Seam 1.2.1 GA View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4066576#4066576 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4066576 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: EntityController not testable?
[EMAIL PROTECTED] wrote : Run it inside a SeamTest. | Does your answer mean that EntityController subclasses can be tested in an integration test, but not in a unit test if they rely on a logger or faces messages? public class MyEntityControllerTest extends SeamTest | { | | @Test | public void testEntityController() | { | try | { | new FacesRequest() | { | @Override | protected void invokeApplication() | { | assert invokeMethod(#{myEntityController.save}).equals(OK); | } | }.run(); | } catch (Exception e) | { | Logging.getLog(MyEntityControllerTest.class).error(e.getMessage()); | } | } | } View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4066623#4066623 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4066623 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Can the EJBs be on a remote server ?
femski1 wrote : | I would like to move EJB tier to a remote server located behind a firewall away from Tomcat container on the web server. I thought this was pretty standard configuration for 3-tier applications. Actually a firewall is not an adequate motivation for deploying web- and EJB containers on different servers. A firewall between a web server (Apache, IIS etc.) and JBoss Application server (Web- and EJB container) would be more appropriate. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4066502#4066502 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4066502 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Do file upload component support jpeg and png only?
We'd need GIF images upload functionality. Here http://www.jboss.org/index.html?module=bbop=viewtopict=100433postdays=0postorder=ascstart=0 I found a statement that anonymous wrote : seamspace only supports jpeg and png Question: does this mean that the file upload component does not support GIF format? Another problem that we were able to solve ourselves: PNG and JPEG upload doesn't work properly in IE7, because IE7 recognizes content types in another way than e.g. FireFox 2.x and Opera 9.x do. Surprisingly IE7 cannot show images of these content types itself! The following workaround allowed us to solve this problem: public void setPictureContentType(String contentType) |{ |// fix for IE7 |ontentType = contentType.replaceAll(image/x-png, image/png); |contentType = contentType.replaceAll(image/pjpeg, image/jpeg); |// | this.pictureContentType = contentType; |} Any comments? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4054372#4054372 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4054372 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Do file upload component support jpeg and png only?
shakenbrain wrote : You can upload any kind of file with the file upload component. Yes, I can upload any content and I can see binary data of the gif image in the database with contentType field set to image/gif But the problem is that web browsers (e.g. IE7, Firefox 2.x, Opera 9.x) don't show uploaded gif images. shakenbrain wrote : | The seamspace example, however, accepts only certain types of image files. I believe it looks at the content-type of the uploaded file and rejects it when not one of the accepted types. s:fileUpload id=picture data=#{register.picture} accept=image/gif | contentType=#{register.pictureContentType} / But if you mean accept attribute, it was intended for file filtering by web browsers and is ignored. http://htmlhelp.com/reference/html40/forms/input.html anonymous wrote : The file input type creates a field through which users can upload files from their local computer or network. The VALUE attribute specifies the name of the initial file, but it is typically ignored by browsers as a security precaution. The ACCEPT attribute gives a comma-separated list of media types accepted, allowing the browser to filter out inappropriate files. Current browsers generally ignore the ACCEPT attribute. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4054489#4054489 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4054489 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Do file upload component support jpeg and png only?
shakenbrain wrote : I guess I'm not following you. Where is this uploaded image supposed to be shown? How are you storing it? seamspace example, JBoss AS 4.0.5 GA, Seam 1.2.1 GA Images are stored in the database and shown on the start page or in the user's profile. It works for JPEG and PNG (with a workaround for IE7 mentioned earlier in this thread), but not for GIF. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4054517#4054517 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4054517 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Do file upload component support jpeg and png only?
petemuir wrote : in fact its because Java2D doesn't support writing to a gif, probably because of licensing issues It was my first suspicion... Good news is that it is nevertheless possible and even animated: shakenbrain wrote : | You'd have to update this to allow for gif format types, but that assumes that ImageIO supports writing GIFS. Based on http://www.gif4j.com/java-gif4j-pro-gif-image-encode-save.htm; you'll need an extra library. | | petemuir wrote : png is a superior format to gif The same said our web design pro. But he said also that older web browsers may have trouble with PNG format. Mail clients consuming HTML emails is another case. I'll ask him to post a question in according forum(s) Thank you both for your prompt and professional assistance :-) More critical is requirement to have animated images. PNG does not support this. Hopefully one of animation extensions (MNG or APNG or ANG or ... ) somtime will be widely adopted http://www.xs4all.nl/~collin/png-eng.html anonymous wrote : | * A new controversy has arissen: Unisys now wants to charge every website that uses GIFs that were made with suspect software (i.e. software that has no Unisys license for LZW compression) 5000 US Dollar. | * The PNG group has started developing an animation format to help replace animated GIFs. This format is called MNG. http://en.wikipedia.org/wiki/PNG anonymous wrote : PNG gained some additional popularity in August 1999, after Unisys terminated its royalty-free patent licenses to developers of free software and non-commercial software. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4054548#4054548 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4054548 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: JSF Composition Components with Seam
fernando_jmt wrote : And, also tell us where is located your field.xhtml? | | webapp/ ? | webapp/WEB-INF? | ...etc. | Thank you for the prompt reply. This is exactly the reason. I've placed taglib file and the component source into /WEB-INF/facelets/tags/my.taglib.xml (as you can see from my web.xml), but Seam deployment script ignores subdirectories in WEB-INF. I've moved both into WEB-INF and it works :-) Composition Components is a very powerfull feature I missed e.g. with Turbine + Velocity, not saying about PHP Co. Now I can present our decision makers another strong argument for migration to Seam + JSF + Facelets. anonymous wrote : Post the page where you are using the composition tag. Before: ... | ui:composition xmlns=http://www.w3.org/1999/xhtml; | xmlns:s=http://jboss.com/products/seam/taglib; | xmlns:ui=http://java.sun.com/jsf/facelets; | xmlns:f=http://java.sun.com/jsf/core; | xmlns:h=http://java.sun.com/jsf/html; | xmlns:rich=http://richfaces.ajax4jsf.org/rich; | xmlns:my=http://my.com/jsf; | template=layout/template.xhtml | ... | h:outputLabel for=usernameUsername/h:outputLabel | h:inputText id=username | value=#{identity.username}/ | h:outputLabel for=passwordPassword/h:outputLabel | h:inputSecret id=password | value=#{identity.password}/ | ... After: ... | ui:composition xmlns=http://www.w3.org/1999/xhtml; | xmlns:s=http://jboss.com/products/seam/taglib; | xmlns:ui=http://java.sun.com/jsf/facelets; | xmlns:f=http://java.sun.com/jsf/core; | xmlns:h=http://java.sun.com/jsf/html; | xmlns:rich=http://richfaces.ajax4jsf.org/rich; | xmlns:my=http://my.com/jsf; | template=layout/template.xhtml | ... | my:field label=Username fieldName=username entity=#{identity} / | my:field label=Password fieldName=password entity=#{identity} secret=true / | ... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4046043#4046043 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4046043 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - JSF Composition Components with Seam
I read this article http://www-128.ibm.com/developerworks/java/library/j-facelets/index.html and was excited about the possibility to compose quickly simple JSF components from source files: web.xml context-param | param-namefacelets.LIBRARIES/param-name | param-value | /WEB-INF/facelets/tags/my.taglib.xml | /param-value | /context-param my.taglib.xml facelet-taglib | namespacehttp://my.com/jsf/namespace | tag | tag-namefield/tag-name | sourcefield.xhtml/source | /tag | /facelet-taglib But it seems that the field component is simply ignored - it is not rendered. Web application (generated with seam-gen) is working. No errors in server.log Before I invest a lot of time into investigation, I'd like to ask Seam gurus whether it is possible in principle with all these ajax4jsf and/or seam view handlers? Thank you in advance View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4045831#4045831 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4045831 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Creating PDFs Programmatically
jgilbert wrote : I have the seam-pdf functionality working in my application. Now I want to have a background process create PDFs periodically. Currently I am using commons-httpclient to call out and back into my app and handle the redirect to create a PDF. | | It works but does anyone have a better way to do this? I'd like to know it too. But if you are simply sending PDFs by email here is a very elegant solution: http://docs.jboss.com/seam/1.2.1.GA/reference/en/html_single/#d0e8925 anonymous wrote : And it gets even better, you can attach a Seam generated PDF, or any standard JSF view, just by wrapping a m:attachment around the normal tags you would use: | | m:attachment fileName=tiny.pdf | | p:document | | A very tiny PDF | | /p:document | | /m:attachment I must say that I didn't try it myself yet. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4038249#4038249 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4038249 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: Error consuption web service
And I had this error when running JBoss ESB trialblazer example with JDK 1.6 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4032053#4032053 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4032053 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Any experiences with the Tomahawk components?
anonymous wrote : java.lang.NoSuchMethodError: org.apache.myfaces.renderkit.html.util.DummyFormUtils.isWriteDummyForm( As far as I remember I had the same error when running Tomahawk with myfaces from the JBoss distribution. Then I've replaced myfaces with the version 1.1.3 from http://www.myfaces.org. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3975597#3975597 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3975597 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: seam messages
carojas wrote : Hi, | | I can change the messages. one link to according place in JSF docs or a couple of words about the solution would be more informative for people who are reading this thread ;-) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3974796#3974796 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3974796 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: how can i control seam for stopping RENEW the tables in
texan wrote : There's an entry in persistence.xml that causes the database tables to be dropped and recreated. Just remove that. Why remove? property name=hibernate.hbm2ddl.auto value=x / create, update and none are the possible options here. See Hibernate documentation for details View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3972495#3972495 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3972495 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Please help: cannot integrate ICEfaces into Seam applica
After receiving no clues in Seam and ICEsoft forums and after reading this interview http://www.jsfcentral.com/articles/katz-06-16-06.html I will better take a look at ajax4jsf https://ajax4jsf.dev.java.net/nonav/ajax/ajax-jsf/ It looks so, that integrating ICEfaces with any other component library is too adventurous. And I wouldn't like to limit myself to the only component library. Comments from Seam makers are welcome... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3972229#3972229 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3972229 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Step-by-step localization guide
nhpvti wrote : | I've tried custom navigation handler for adding language suffix at the end of an action, for example: register_en, register_de | My custom view handler works seamless with JSF navigation and Seam pageflow and forces templates names in the form of name_loc.xhtml, for example register_en.xhtml, register_de.xhtml Etc. Hope that this won't cause any complications in future versions of Faces or Seam. Here the details: 1) In faces-config.xml (for example): application | view-handlercom.sun.facelets.FaceletViewHandler/view-handler | view-handlercom.mycompany.util.LocaleViewHandler/view-handler | message-bundlemessages/message-bundle | locale-config | default-localeen/default-locale | supported-localeen/supported-locale | supported-localede/supported-locale | supported-localeru/supported-locale | /locale-config | /application 2) Implement LocaleViewHandler class (some additional methods have to be implemented, but they should simply wrap the base class functionality) import javax.faces.application.ViewHandler; | ... | public class LocaleViewHandler extends ViewHandler | { | private ViewHandler base; | private static final String separator = _; | private static final String actionExtension = .seam; | | public LocaleViewHandler(ViewHandler base) | { | super(); | this.base = base; | } | | public String getActionURL(FacesContext context, String viewId) | { | StringBuilder newActionURL = null; | String actionURL = this.base.getActionURL(context, viewId); | StringBuilder localeSuffix = new StringBuilder(separator); | localeSuffix.append(LocaleSelector.instance().getLocaleString()); | StringBuilder localizedEnd = new StringBuilder(localeSuffix); | localizedEnd.append(actionExtension); | int pointPosition = actionURL.indexOf(actionExtension); | if (pointPosition != -1 actionURL.indexOf(localizedEnd.toString()) == -1) | { | newActionURL = new StringBuilder(actionURL.substring(0, pointPosition)); | newActionURL.append(localizedEnd); | return newActionURL.toString(); | } else | { | return actionURL; | } | } | ... | } View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971869#3971869 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971869 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: UTF-8 problem within JSF
db__ wrote : Basically viewing my test.jsf shows me two byte UTF-8 character in plain text. encoded as #195; Where do you mean exactly: in static text or in an input field? Check this thread for a workaround: http://www.jboss.com/index.html?module=bbop=viewtopict=89832 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971542#3971542 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971542 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Please help: cannot integrate ICEfaces into Seam application
I succeeded to deploy ICEfaces tutorial samples in JBoss 4.0.4 (can share details if somebody is interested) Now I'm trying to integrate ICEfaces into a Seam scaffold application generated by seam-gen. Threads that I found in this forum und by icesoft gave some ideas, but too little information to succeed (see refs at the bottom). What I've done: 1) Copied all libraries from WEB-INF\lib of the icesoft's timezone7 sample application into sample.war\WEB-INF\lib 2) In order to avoid conflict with libraries deployed in \jbossweb-tomcat55.sar\jsf-libs removed jsf-api.jar , jsf-impl.jar and replaced icefaces.jar with just-ice.jar that has minimum dependecies included in it 4) In WEB-INF\faces-config.xml replaced view handler and added Seam variable resolver application | !--view-handlercom.sun.facelets.FaceletViewHandler/view-handler-- | view-handlercom.icesoft.faces.facelets.D2DFaceletViewHandler/view-handler | variable-resolverorg.jboss.seam.jsf.SeamVariableResolver/variable-resolver | /application 5) Merged web.xml files ?xml version=1.0 ? | web-app xmlns=http://java.sun.com/xml/ns/j2ee; | xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; | xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; | version=2.4 | | listener | listener-classorg.jboss.seam.servlet.SeamListener/listener-class | /listener | | listener | listener-classorg.apache.myfaces.webapp.StartupServletContextListener/listener-class | /listener | | listener | listener-classcom.icesoft.faces.util.event.servlet.ContextEventRepeater/listener-class | /listener | | context-param | param-namejavax.faces.STATE_SAVING_METHOD/param-name | param-valueclient/param-value | /context-param | | context-param | param-namefacelets.DEVELOPMENT/param-name | param-valuetrue/param-value | /context-param | | context-param | param-namejavax.faces.DEFAULT_SUFFIX/param-name | param-value.xhtml/param-value | /context-param | | !--- ice -- | context-param | param-namecom.sun.faces.validateXml/param-name | param-valuetrue/param-value | description | Set this flag to true if you want the JavaServer Faces | Reference Implementation to validate the XML in your | faces-config.xml resources against the DTD. Default | value is false. | /description | /context-param | | context-param | param-namecom.sun.faces.verifyObjects/param-name | param-valuetrue/param-value | description | Set this flag to true if you want the JavaServer Faces | Reference Implementation to verify that all of the application | objects you have configured (components, converters, | renderers, and validators) can be successfully created. | Default value is false. | /description | /context-param | | context-param | param-namecom.icesoft.faces.concurrentDOMViews/param-name | param-valuetrue/param-value | /context-param | | !--- ice -- | | | filter | filter-nameSeam Exception Filter/filter-name | filter-classorg.jboss.seam.servlet.SeamExceptionFilter/filter-class | /filter | | filter | filter-nameSeam Redirect Filter/filter-name | filter-classorg.jboss.seam.servlet.SeamRedirectFilter/filter-class | /filter | | filter-mapping | filter-nameSeam Exception Filter/filter-name | url-pattern/*/url-pattern | /filter-mapping | | filter-mapping | filter-nameSeam Redirect Filter/filter-name | url-pattern*.seam/url-pattern | /filter-mapping | | servlet | servlet-nameFaces Servlet/servlet-name | servlet-classjavax.faces.webapp.FacesServlet/servlet-class | load-on-startup1/load-on-startup | /servlet | | servlet-mapping | servlet-nameFaces Servlet/servlet-name | url-pattern*.seam/url-pattern | /servlet-mapping | | | !-- Persistent Faces Servlet -- | servlet | servlet-namePersistent Faces Servlet/servlet-name | servlet-classcom.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet/servlet-class | load-on-startup 1 /load-on-startup | /servlet | | !-- Blocking Servlet -- | servlet | servlet-nameBlocking Servlet/servlet-name | servlet-classcom.icesoft.faces.webapp.xmlhttp.BlockingServlet/servlet-class | load-on-startup 1 /load-on-startup | /servlet | | !-- Persistent Faces Servlet Mappings -- | servlet-mapping | servlet-namePersistent Faces Servlet/servlet-name |
[jboss-user] [JBoss Seam] - Re: Integrating Seam and Icefaces
jerome_082006 wrote : Hello, | I shall post a step-by-step howto as soon as I am sure it really works as it should. | Thank you in advance. Tried yesterday and today myself, still without success, and distraught posted my question in a new topic where I described all accomplished steps http://www.jboss.com/index.html?module=bbop=viewtopicp=3969787#3969787 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3969790#3969790 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3969790 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Step-by-step localization guide
perwik wrote : | but why do this at all when you can have register.xhtml include the locale specific parts instead? In order to reduce number of templates to be generated and supported. Besides CMS contributors should get a big picture in preview mode, ideally the whole content part in order to get approximate idea how it could look at runtime. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3969793#3969793 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3969793 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Step-by-step localization guide
perwik wrote : Oh, whith object and connections etc. I was thinking of a database. | I have concerns about retrieving static information at runtime from a database, even using some kind of caching. Why not to use some standard CMS to produce templates and this way avoid overhead at runtime? A standard CMS product can afford fine-grained access management via user roles, mature GUI, some kind of preview mode, version control Etc. I've tried custom navigation handler for adding language suffix at the end of an action, for example: register_en, register_de It works, but in this case I have to duplicate navigation rules :-( navigation-rule | navigation-case | from-outcomeregister_en/from-outcome | to-view-id/register_en.xhtml/to-view-id | redirect / | /navigation-case | navigation-case | from-outcomeregister_de/from-outcome | to-view-id/register_de.xhtml/to-view-id | redirect / | /navigation-case | /navigation-rule I still have to check whether Seam page flow can be used easier for supporting my approach. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3969446#3969446 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3969446 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Step-by-step localization guide
You know, most of us in the world are natively speaking not English. So I think that it would make sense to pre-configure Seam samples and seam-gen to produce ready-to-localize applications. I spent last Friday by figuring out how to fill this gap. Here is my step-by-step localization guide compiled from different sources on net: 1) add new supported locale in .../WEB-INF/faces-config.xml for example: locale-config | default-localeen/default-locale | supported-localeen/supported-locale | supported-localede/supported-locale | supported-localeru/supported-locale | /locale-config | 2) Create new messages files, in my example messages_de.properties and messages_ru.properties The 1st obstacle that should be considered here: property files should be UTF-8 encoded and transformed into ASCII by escaping UTF-8 characters (mix of ISO char sets is not advisable in a multi-language web application). Built-in Eclipse properties editor cannot handle this, so I've installed Resource Bundle editor from http://sourceforge.net/projects/eclipse-rbe/ (thank you guys for excellent work!) Alternatively you can use utility from JDK, e.g.: native2ascii.exe -encoding utf-8 messages_ru.txt messages_ru.properties 3) Configure your code editors to use UTF-8. For example in Eclipse 3.2 check settings under i. Window-Preferences-General-Workspace-Text and ii. Window-Preferences-Web and XML-CSS Files, HTML Files, JSP Files, XML Files 4) In order to enable UTF-8 in input fields (the 2nd big obstacle) you will need a phase listener (compensating bug in myfaces and(or) JSF components?) that re-sets request char set to UTF-8. To do this follow instructions found in https://facelets.dev.java.net/servlets/ReadMsg?list=usersmsgNo=1403 (see also discussion here http://www.jboss.com/?module=bbop=viewtopict=73369) and activate the listener in the .../WEB-INF/faces-config.xml file, e.g.: lifecycle | phase-listenerorg.jboss.seam.jsf.SeamExtendedManagedPersistencePhaseListener/phase-listener | phase-listenercom.xxx.yyy.zzz.util.UTF8PhaseListener/phase-listener | /lifecycle 5) Set char set in template(s) to UTF-8: meta http-equiv=Content-Type content=text/html; charset=UTF-8 pageEncoding=UTF-8 / 6) The last, MySQL specific, obstacle eaten much time to find out a solution: force JDBC driver to use UTF-8, otherwise only ? characters will be saved in the database. So extend JDBC url in a data source file, e.g.: jndi-namemyDatasource/jndi-name | connection-urljdbc:mysql://localhost:3306/mydb?useUnicode=truecharacterEncoding=utf8charactetrResultSets=utf8/connection-url | driver-classcom.mysql.jdbc.Driver/driver-class 7) Create database with default UTF-8 support, for example for MySQL: CREATE DATABASE mydb DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; | Note: probably you have to change default tables type to InnoDB for transactions support. You can do this by adding start parameter (or via MySQL configuration file). On SuSE 9.2 this can look so: in /etc/init.d/mysql.server: $bindir/mysqld_safe --datadir=$datadir --default-table-type=innodb --pid-file=$pid_file /dev/null 21 Ready, now you have your native language as static text, data input and database output. I hope this small contribution will save you a couple of hours. And I hope that others in this forum will follow my example and share their experience in more detail, not simply stating: I've solved the problem XYZ! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3969180#3969180 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3969180 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Internationalized hibernate validator messages JBSEAM-86
nhpvti wrote : Hi, | | JBSEAM-86 issue states that the issue has been fixed. Bu it doesn't work for me in JBoss-Seam 1.0.1.GA | | My error was placing ValidatorMessages properties files in WEB-INF/classes directory. They shoul be placed at the root of the EAR file. See discussion on the same topic in the following thread http://www.jboss.com/index.html?module=bbop=viewtopict=88798 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3969246#3969246 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3969246 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Step-by-step localization guide
perwik wrote : One option would be to see each static content item as one object and then connect a number of translations to it. Then you show the translation corresponding to the current locale using the same rules as the properties files (i.e showing the default locale when the selected locale is not in the list of supported locales). Thank you for the idea, but maintenance question is still open in this case. Or how are you going to populate this object with content: from a data base? Then a custom-made CMS would be necessary to maintain texts in the database... By the way content can require for example html to be included. Properties files don't allow entering html according to my quick test. So I would prefer simple ui:include tag: div class=headerui:include src=/WEB-INF/layout/header#{messages['application.fileSuffix']}.xhtml //div Any concerns? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3969271#3969271 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3969271 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam integration with ICEfaces
end of thread, according to the following discussion it should be possible http://www.jboss.com/index.html?module=bbop=viewtopict=89513 I'll try myself tomorrow. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3969291#3969291 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3969291 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: unicode escaping problem
lcoetzee wrote : Hi | | I havent tried the filter solution above. The following | https://facelets.dev.java.net/servlets/ReadMsg?list=usersmsgNo=1403 | has helped me! In short it uses a JSF Phase listerner. | | Regards | | Louis(now in multiple languages ;-) | | | | nice eclipse resource bundle editor makes your happiness complete http://sourceforge.net/projects/eclipse-rbe/ View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3968939#3968939 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3968939 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Integrating Seam and Icefaces
jerome_082006 wrote : Problem solved, thank you. | | Regards, | Jerome. Would you be so kind to share step-by-step set up instructions for using IceFaces with Seam? If they really can work together nothing can stop triumphal procession of the Seam !!! :-) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3968945#3968945 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3968945 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Any experiences with the Tomahawk components?
SmokingAPipe wrote : ... I'll post exactly what I did, and maybe a framework with all the jars, web.xml, etc, ready to use. That's the hardest part: just getting the build env ready for use. | for the beginning we would appreciate exact description how to alter the jars, web.xml etc. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3968425#3968425 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3968425 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Seam integration with ICEfaces
Hi, I have found this thread in some ICEsoft forum: http://support.icesoft.com/jive/thread.jspa?messageID=8991 Is it generally possible to integrate ICEfaces with Seam? Here online-demo: http://component-showcase.icesoft.com/component-showcase/ View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3967503#3967503 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3967503 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Internationalized hibernate validator messages JBSEAM-86
Hi, JBSEAM-86 issue states that the issue has been fixed. Bu it doesn't work for me in JBoss-Seam 1.0.1.GA server.log has e.g. such lines: DEBUG [org.hibernate.validator.ClassValidator] ResourceBundle ValidatorMessages not found in Validator classloader. Delegate to org.hibernate.validator.resources.DefaultValidatorMessages Application shows for the booking example e.g. #creditCard: Eingabe erforderlich#. But DefaultValidatorMessages_de.properties in \jboss-4.0.4.GA\server\default\lib\hibernate-annotations.jar\org\hibernate\validator\resources\ has the following entry: validator.notNull=kann nicht leer sein Where does the text #creditCard: Eingabe erforderlich# comes from and how it can be replaced by a customized one? Thank you in advance for any tip View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3967281#3967281 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3967281 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Internationalized hibernate validator messages
Additional info: I've placed validator.properties validator_en.properties validator_de.properties into \jboss-seam-1.0.1.GA\examples\booking\resources\WEB-INF\classes But they are ignored View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3967283#3967283 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3967283 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user