Re: Custom converter as tag with attributes?

2015-02-15 Thread Karl Kildén
This is a bug in the Deltaspike and the Myfaces way of making @Inject work for a Converter. The wrapper thingy breaks it. If I remove my injection points it works. I will create a sample and then issues for both projects Cheers On 13 February 2015 at 10:50, Karl Kildén karl.kil...@gmail.com

Custom converter as tag with attributes?

2015-02-13 Thread Karl Kildén
Hello, I want to create a converter and instead of having f:attributes (need many) I want to create my own tag. Using myfaces 2.2.x I did this: @FacesConverter(myconverter) public class MyConverter extends ConverterHandler implements Converter { public MyConverter(ConverterConfig config) {

Re: Custom converter as tag with attributes?

2015-02-13 Thread Karl Kildén
Seems like a bug that I need to implement TagHandler. If I omit it this is the exception I get: https://gist.github.com/anonymous/5b7204de5e9cc9f65c02 On 13 February 2015 at 10:50, Karl Kildén karl.kil...@gmail.com wrote: Hello, I want to create a converter and instead of having f:attributes

ContextNotActive for @Model Predestroy trying to interact with @ViewScoped?

2015-01-27 Thread Karl Kildén
Hello, Basically I was trying to get a hack in when I noticed that not all my state was ViewScoped but rather RequestScoped. So I Created a new @Model and injected my ViewScoped and in the predestroy i cleaned it... This is not pretty but it would have served well as a temp fix. I must ping my

catch faces message with js?

2014-10-21 Thread Karl Kildén
Hello, I want to implement my faces messages with http://codeseven.github.io/toastr/ How can I best do this? can I listen to some js event or server side event? cheers

Re: catch faces message with js?

2014-10-21 Thread Karl Kildén
but it's out of my reach to decide that this time ;) thanks / Karl On 21 October 2014 20:39, Kito Mann kito.m...@virtua.com wrote: Hello Karl, As Thomas said, it's just a rendering issue, and writing a Renderer is pretty simple (at least for Messages). PimeFaces is open source so you can

Re: catch faces message with js?

2014-10-21 Thread Karl Kildén
with the performance of PrimeFaces (5.x) Mobile. very very fast, much faster than PrimeFaces HTML_BASIC Renderer. that's just my opinion. On Tue, Oct 21, 2014 at 2:47 PM, Howard W. Smith, Jr. smithh032...@gmail.com wrote: On Tue, Oct 21, 2014 at 2:44 PM, Karl Kildén karl.kil...@gmail.com

Re: Decide what to rerender on server side?

2014-09-05 Thread Karl Kildén
to be to dependent on frameworks as hinted in my first email. On 5 September 2014 00:33, Howard W. Smith, Jr. smithh032...@gmail.com wrote: Karl, you could look at PrimeFaces requestContext implementation (source code). also, you can maybe ask for something like this to be added as a feature request

Re: Decide what to rerender on server side?

2014-09-05 Thread Karl Kildén
) { Ajax.updateColumn(table, index); } } On Sep 5, 2014 2:35 AM, Karl Kildén karl.kil...@gmail.com wrote: Hi Howard, Well they use custom ajax so not sure it would be very easy to understand but eventually I will look at it yes :-) Still interested in hearing some pro input

Decide what to rerender on server side?

2014-09-04 Thread Karl Kildén
Primefaces offers several ways to do client side stuff from the server. For examples see here: http://www.primefaces.org/showcase/ui/misc/requestContext.xhtml While I use primefaces I prefer to keep my hands out of the cookie jar with stuff like this. I mean a datepicker can be replaced with a js

Re: BeanManager lookup returing null !

2014-06-12 Thread Karl Kildén
Felipe, As a side note I recommend you try Deltaspike core [1] for retrieving beans. Alternatively you can retrieve with Omnifaces [2] too all though since Deltaspike is composed by the makers of Weld / OWB that would be my first bet. [1] http://deltaspike.apache.org/core.html#beanprovider [2]

Re: 2.2 stability

2014-06-12 Thread Karl Kildén
I can confirm that I used c:forEach erroneously. Myfaces 2.2.3 running great for me now cheers On 13 March 2014 16:27, Leonardo Uribe lu4...@gmail.com wrote: Hi @Karl I think your problem should be something different. I closed MYFACES-3869, since we have positive confirmation

Re: Submit form after disabling an input element via javascript?

2014-06-11 Thread Karl Kildén
Thanks Leo interesting points. Imo if you have a security issue with a field being disabled then you have a really weird app imo. If JSF was used to define disabled then javascript hacks needs to be prevented but if disabled was never set then I can't think of a use case where it would be a risk

Re: Submit form after disabling an input element via javascript?

2014-06-10 Thread Karl Kildén
been more hesitant to use the server side for such a simple operation. On 10 June 2014 21:51, Howard W. Smith, Jr. smithh032...@gmail.com wrote: Leonardo, what are your thoughts on this thread? thanks. On Wed, Jun 4, 2014 at 11:43 AM, Karl Kildén karl.kil...@gmail.com wrote: Howard

Submit form after disabling an input element via javascript?

2014-06-04 Thread Karl Kildén
Hi, my app recently upgraded from JSF 1.2 had a broken page with this in the log: WARNING: There should always be a submitted value for an input if it is rendered, its form is submitted, and it was not originally rendered disabled or read-only. You cannot submit a form after disab ling an input

Re: Submit form after disabling an input element via javascript?

2014-06-04 Thread Karl Kildén
Howard, To do that one would need a purpose. I fail to see the benefit other than bending the knee to a JSF limitation. On 4 June 2014 16:48, Howard W. Smith, Jr. smithh032...@gmail.com wrote: Karl, if Javascript was written to enable field, why is there not Javascript to disable before

Problem with clientWindow id and Deltaspike 0.7

2014-05-21 Thread Karl Kildén
Hi, In my sandbox app Deltaspike fails with a TomEE that has been upgraded to 2.2.3. Error: WebBeans context with scope type annotation @WindowScoped does not exist within current thread When I debug it is because Deltaspike asks ServletExternalContextImpl for the ClientWindow. It get's null

Re: Problem with clientWindow id and Deltaspike 0.7

2014-05-21 Thread Karl Kildén
window handling? I never faced any issues with JSF 2.0/2.1 and DeltaSpike. Maybe it's some incompatibly between JSF 2.2 and DS in some cases. Maybe we should ask Gerhard, he developed the bridge for JSF 2.2. Regards, Thomas 2014-05-21 20:21 GMT+02:00 Karl Kildén karl.kil

Re: How to disable label warnings?

2014-03-27 Thread Karl Kildén
Hrmm this is the debug logging from development mode right? You are supposed to fix the problems and not change the logging properties. The logging is very useful for development. Paste web.xml contents. On 27 March 2014 22:04, Felipe Jaekel fkjae...@gmail.com wrote: I'd like to disable

Re: 2.2 stability

2014-03-13 Thread Karl Kildén
Hi all, Tried 2.2.2-20140313.024403-5 Duplicate id problems are still present. I have tried for a while now to create a simple sample but I am unsuccessful so far. On 12 March 2014 15:48, Karl Kildén karl.kil...@gmail.com wrote: Hi Howard, Leo found and fixed the enctype=multipart/form

Re: 2.2 stability

2014-03-12 Thread Karl Kildén
:-) Thanks for your interest, Karl On 12 March 2014 15:11, Howard W. Smith, Jr. smithh032...@gmail.com wrote: Following up, Karl, are you still waiting on Leonardo to trigger a snapshot build? With all that has been discussed here, is it likely that tomee + myfaces 2.2.x (snapshot) is a 'go

Re: 2.2 stability

2014-03-11 Thread Karl Kildén
, Leonardo Uribe lu4...@gmail.com wrote: Hi Karl 2014-03-10 15:15 GMT-05:00 Karl Kildén karl.kil...@gmail.com: Hi Leo, Upgraded to 2.2.1 today (or was it yesterday?) and had problems. Removed org.apache.myfaces.STRICT_JSF_2_FACELETS_COMPATIBILITY and many problems went away. Much later

Re: 2.2 stability

2014-03-10 Thread Karl Kildén
2014 18:24, Howard W. Smith, Jr. smithh032...@gmail.com wrote: Karl, does this fix your issue and or meet your requirements? Looking forward to your response. I'm sure others are, too. :-) Can you refactor your code, so it is not dependent on c:forEach? Maybe Leonardo can advise on that, too

Re: 2.2 stability

2014-03-10 Thread Karl Kildén
is skimping on some validation here and there. On 10 March 2014 20:13, Howard W. Smith, Jr. smithh032...@gmail.com wrote: response inline, On Mon, Mar 10, 2014 at 2:43 PM, Karl Kildén karl.kil...@gmail.com wrote: Hi Howard, If someone proposed a fix for me I must have missed it, so

Re: 2.2 stability

2014-03-10 Thread Karl Kildén
did not work, that's when I created a jira. But at one point that form did have a fileupload too with no difference in the result. On 10 March 2014 21:01, Leonardo Uribe lu4...@gmail.com wrote: 2014-03-10 14:56 GMT-05:00 Karl Kildén karl.kil...@gmail.com: Ah the new release, yes I tried

Re: 2.2.0 and multipart

2014-03-10 Thread Karl Kildén
Yes, Also https://issues.apache.org/jira/browse/MYFACES-3865 On 10 March 2014 21:35, Howard W. Smith, Jr. smithh032...@gmail.com wrote: Leonardo Uribe, see below. I think this is the thread where Karl discussed his fileUpload issue, and shared a test case (below), too. On Tue, Mar 4

Re: 2.2.0 and multipart

2014-03-10 Thread Karl Kildén
Howard, No that sample does not work for me. The details are in the jira. On 10 March 2014 21:47, Howard W. Smith, Jr. smithh032...@gmail.com wrote: Karl, did you see the email below, and did you try that sample, and did that work for you? On Tue, Mar 4, 2014 at 10:30 AM, Howard W. Smith

Re: 2.2 stability

2014-03-09 Thread Karl Kildén
Hi, Im sure others know better but here's my story as early adopter. I am -1 against adoption if you use c:forEach because it's been rewritten or greatly improved upon somehow. As a consequence I was blocked by MYFACES-3853 https://issues.apache.org/jira/browse/MYFACES-3853 for a while. As a fix

Re: 2.2.0 and multipart

2014-03-04 Thread Karl Kildén
Well for me it breaks the form completely. Even if I have only a single component h:commandButton/ it's broke. Adding the primefaces parameter has no effect. I will try to put a test application together On 4 March 2014 14:17, Leonardo K. Shikida shik...@gmail.com wrote: Karl I haven't

Re: 2.2.0 and multipart

2014-03-04 Thread Karl Kildén
. Deltaspike and Myfaces is what's in common with my normal stack. No Primefaces needed for reproduce cheers On 4 March 2014 14:58, Karl Kildén karl.kil...@gmail.com wrote: Well for me it breaks the form completely. Even if I have only a single component h:commandButton/ it's broke. Adding

Re: 2.2.0 and multipart

2014-03-04 Thread Karl Kildén
latest email). When I press the submit nothing happens. It's as if I wrote onclick=return false; cheers On 4 March 2014 15:23, Howard W. Smith, Jr. smithh032...@gmail.com wrote: On Tue, Mar 4, 2014 at 8:58 AM, Karl Kildén karl.kil...@gmail.com wrote: Well for me it breaks the form completely

Re: 2.2.0 and multipart

2014-03-04 Thread Karl Kildén
Nice spot, In my production environment I changed it but I will test that aspect in the template project On 4 March 2014 15:50, Howard W. Smith, Jr. smithh032...@gmail.com wrote: On Tue, Mar 4, 2014 at 9:18 AM, Karl Kildén karl.kil...@gmail.com wrote: Everyone, this is how I reproduced

Re: 2.2.0 and multipart

2014-03-04 Thread Karl Kildén
It made no difference for me / Karl On 4 March 2014 15:52, Karl Kildén karl.kil...@gmail.com wrote: Nice spot, In my production environment I changed it but I will test that aspect in the template project On 4 March 2014 15:50, Howard W. Smith, Jr. smithh032...@gmail.comwrote: On Tue

Re: 2.2.0 and multipart

2014-03-04 Thread Karl Kildén
Removing deltaspike has no effect. / Karl On 4 March 2014 16:23, Howard W. Smith, Jr. smithh032...@gmail.com wrote: Have you reported this to Deltaspike? I wonder what happens when you 'remove' delta spike from the equation/mix, and see if stuff/stack starts working. :) On Tue, Mar 4

Re: 2.2.0 and multipart

2014-03-03 Thread Karl Kildén
Leo, I have the same problem, What's your status? cheers On 22 February 2014 02:58, Leonardo K. Shikida shik...@gmail.com wrote: Hi Just noticed this thread about tomee, myfacs 2.2.0 and multipart request

Re: Re: Re: Re: Problems with a custom component when migrating from Glassfish(mojarra) to TomEE

2014-02-14 Thread Karl Kildén
MenuRenderer, but it's final). I barely know about com.sun.faces and i've never used MyFaces before, so it's really hard for me to figure out the equivalents here Gesendet: Freitag, 14. Februar 2014 um 08:49 Uhr Von: Karl Kildén karl.kil...@gmail.com An: MyFaces Discussion users@myfaces.apache.org

Re: How to survive viewscoped beans/viewmap after session destroy (using client side saving)?

2014-02-13 Thread Karl Kildén
Good suggestion Thomas, For myself I would need this: 1 Hour: Keep session alive with p:poll 1 Hour: Render p:idleMonitor instead and warn for activity and session destroy in x minutes. The switch to a idleMonitor would require that you check the submitted request parameters and this way

Re: How to survive viewscoped beans/viewmap after session destroy (using client side saving)?

2014-02-13 Thread Karl Kildén
: Karl, p:poll introduces security concerns? Please elaborate/clarify. Thanks. On Feb 13, 2014 3:39 AM, Karl Kildén karl.kil...@gmail.com wrote: Good suggestion Thomas, For myself I would need this: 1 Hour: Keep session alive with p:poll 1 Hour: Render p:idleMonitor instead and warn

Re: Problems with a custom component when migrating from Glassfish(mojarra) to TomEE

2014-02-13 Thread Karl Kildén
Have you considered a custom tagHandler / composite component instead? I took a quick look but I don't recognize much sorry. On 13 February 2014 14:09, Howard W. Smith, Jr. smithh032...@gmail.comwrote: I think Leonardo, Gerhard, or one of the other committers may provide her some good help,

Re: Re: Re: Problems with a custom component when migrating from Glassfish(mojarra) to TomEE

2014-02-13 Thread Karl Kildén
...@gmx.net wrote: I don't think a TagHandler or a custom component can do what that code does. It's used to display a Select in a very specific way. Gesendet: Donnerstag, 13. Februar 2014 um 14:29 Uhr Von: Karl Kildén karl.kil...@gmail.com An: MyFaces Discussion users@myfaces.apache.org

Re: @FlowScoped, @Named and @ManagedBean

2014-02-12 Thread Karl Kildén
/jsf.html cheers On 12 February 2014 11:33, Howard W. Smith, Jr. smithh032...@gmail.comwrote: On Feb 12, 2014 1:40 AM, Karl Kildén karl.kil...@gmail.com wrote: Deltaspike modules have consistently been usable off the shelf and would be a far better solution then doing tricks to make CODI

Re: myfaces 2.2 foe replace myfaces 2.1 into tomee

2014-02-12 Thread Karl Kildén
myfaces-impl myfaces-api Remove old jars in /lib and place replacements there On 12 February 2014 14:50, maurojava mauro2java2...@gmail.com wrote: What version of myfaces 2.2 i have to dowload for replace myfaces2.1 jars into tomee ? From download page of myfaces2.2 i have view many

Re: myfaces 2.2 foe replace myfaces 2.1 into tomee

2014-02-12 Thread Karl Kildén
Try starting it outside of your IDE. If that works remove and reconnect IDE to a fresh TomEE on another path with the desired changes under /lib On 12 February 2014 18:48, maurojava mauro2java2...@gmail.com wrote: my jsk is : jdk1.7.0_25 my tomee :tomee 1.6.0 plus i have added

Re: @FlowScoped, @Named and @ManagedBean

2014-02-11 Thread Karl Kildén
Deltaspike modules have consistently been usable off the shelf and would be a far better solution then doing tricks to make CODI work. However using JSF stuff would require you to use 0.6-SNAPSHOT. I would actually just use @SessionScoped, write a TODO and wait for 0.6 release if I could.

JSF 2.3

2014-01-14 Thread Karl Kildén
Hello, Any opinions on this https://weblogs.java.net/blog/mriem/archive/2014/01/13/jsf-tip-56-using-action-based-prototype-mojarra Basically it's regarding the common opinon that JavaEE should have a action based framework or support a action based style in JSF. cheers

Re: JSF 2.3

2014-01-14 Thread Karl Kildén
, then it should also be possible to declare request params as method params. e.g. @RequestMapping(...) public void doSomething(@RequestParameter(name=..) private String test) And of course conversion/validation of the request parameters. 2014/1/14 Karl Kildén karl.kil...@gmail.com Hello, Any

Re: Problems with ajax-requests after server restart

2013-11-13 Thread Karl Kildén
I think you got a ViewExpiredException. This component might do it: http://showcase.omnifaces.org/taghandlers/enableRestorableView Or you might want to use the

Re: Apache CODI x JEE7 Glassfish4

2013-10-31 Thread Karl Kildén
Circular Injection A-B-A is well supported and is one of the charms with proxies, right? I remember having that when using JSF beans though but it's not something I've seen in CDI cheers On 31 October 2013 14:53, Howard W. Smith, Jr. smithh032...@gmail.comwrote: I think you called it

Re: Apache CODI x JEE7 Glassfish4

2013-10-31 Thread Karl Kildén
In some clear cases it's not supported and this has not changed in CDI 1.1. However it's never been a limiting factor for me at least since i normally don't really use dependent beans or any other non normalscoped. From the CDI 1.1 spec: the container is required to support circularities in the

Re: [OT but still JSF]: Clustering, session replication, and database, too

2013-10-20 Thread Karl Kildén
Hello! I am also very interested in having more i.e. docs, examples and stuff for clustering across the tomee stack. The discussion came up on a jira some time ago and after that I asked Thomas to write a new post about it (First part was great!). For example this is something that sounds really

Re: %20 instead of space with passthrough

2013-10-09 Thread Karl Kildén
/MYFACES-3801 regards, Leonardo Uribe 2013/9/30 Karl Kildén karl.kil...@gmail.com Hello, If we assume that a) It's reproducible for others and b) it works in Mojarra it should probably be changed per your suggestion. This however is a little beyond what I can really comment

Re: %20 instead of space with passthrough

2013-09-30 Thread Karl Kildén
Hello, If we assume that a) It's reproducible for others and b) it works in Mojarra it should probably be changed per your suggestion. This however is a little beyond what I can really comment on for now but if it helps I can test a b / Karl On 30 September 2013 09:00, Leonardo Uribe lu4

%20 instead of space with passthrough

2013-09-29 Thread Karl Kildén
Hello, I tried the snapshot: myfaces-bundle-2.2.0-20130927.112420-1540 I got this simple snippet to work except spaces show as %20 html xmlns=http://www.w3.org/1999/xhtml; xmlns:h=http://xmlns.jcp.org/jsf/html; xmlns:pt=http://xmlns.jcp.org/jsf/passthrough;

Re: %20 instead of space with passthrough

2013-09-29 Thread Karl Kildén
not found the encoding, so in that case it escape the space. regards, Leonardo Uribe 2013/9/29 Karl Kildén karl.kil...@gmail.com Hello, I tried the snapshot: myfaces-bundle-2.2.0-20130927.112420-1540 I got this simple snippet to work except spaces show as %20 html xmlns=http

Re: JSF 2.2 status snapshot usage

2013-09-27 Thread Karl Kildén
://repository.apache.org/content/repositories/snapshots/org/apache/myfaces/core/myfaces-bundle/2.2.0-SNAPSHOT/myfaces-bundle-2.2.0-20130926.083155-1528.jar regards, Leonardo Uribe 2013/9/26 Thomas Andraschko andraschko.tho...@gmail.com Hi Karl, AFAICS in JIRA, 2.2 should be feature complete. Maybe

JSF 2.2 status snapshot usage

2013-09-26 Thread Karl Kildén
Hello, First off what's the recommended way to get a hold of a current myfaces snapshot, preferably with maven? I am eager to try parts of JSF 2.2. I've been snooping around in jira to get a sense of the completeness level of JSF 2.2 but I felt I might as well ask... - HTML Friendly Markup? -

Re: JSF 2.2 status snapshot usage

2013-09-26 Thread Karl Kildén
/myfaces-bundle-2.2.0-20130926.083155-1528.jar regards, Leonardo Uribe 2013/9/26 Thomas Andraschko andraschko.tho...@gmail.com Hi Karl, AFAICS in JIRA, 2.2 should be feature complete. Maybe Leo can give a small update about the status :) Regards, Thomas 2013/9/26 Karl

Re: java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config

2013-05-21 Thread Karl Kildén
Add JSTL to the classpath. First google hit on your error: http://www.mkyong.com/jsf2/java-lang-classnotfoundexception-javax-servlet-jsp-jstl-core-config/ 2013/5/21 Kempff, Malte malte.kem...@de.equens.com Hi to all, The sample JFS using MyFaces Core 2.0.2 seems o work. Now I wanted to try

Re: webapp with spring3 and MyFaces2

2013-04-28 Thread Karl Kildén
Hi, the formatting on the code and stacktrace looks very poor and it's not readable. Please use for example https://gist.github.com/ Best regards / Karl 2013/4/27 brahim tarnaoui tarnaou...@hotmail.fr Hello all, i developp an application tha integrate JSF MyFaces 2 with Spring 3

Re: Problem converting custom components from mojarra to myfaces

2013-02-15 Thread Karl Kildén
obvious first choice. I am even willing to spend weeks on these components if need be. Best regards / Karl 2013/2/14 Karl Kildén karl.kil...@gmail.com Hello! We have decided to upgrade to myfaces. Problem: We have about 30 or so in house components and a lot of things stopped working

Problem converting custom components from mojarra to myfaces

2013-02-14 Thread Karl Kildén
but Nothing works :-) best regards / Karl

[Trinidad] Cannot get selectOneChoice with partialTriggers working

2008-03-26 Thread Karl Meyer
Hi, I have trouble getting the partialTriggers to work, here is my code: tr:form tr:outputFormatted value=#{RollenBean.errorMessage }/tr:outputFormatted tr:panelGroupLayout layout=horizontal tr:outputLabel value=Rolle/tr:outputLabel tr:selectOneChoice id=selectRole

Re: [Trinidad] Cannot get selectOneChoice with partialTriggers working

2008-03-26 Thread Karl Meyer
:48 PM, Karl Meyer [EMAIL PROTECTED] wrote: Hi Karl, Hi, I have trouble getting the partialTriggers to work, here is my code: tr:form tr:outputFormatted value=#{RollenBean.errorMessage}/tr:outputFormatted tr:panelGroupLayout layout=horizontal tr:outputLabel value=Rolle

Myfaces 1.1.3 compatibility with WebSphere v5.1.2

2006-07-05 Thread Karl
:-( Is this reliance on JSP 2.0 new with 1.1.3? Cheers, Karl.