Re: [Tobago] ajax and navigation rules

2007-06-13 Thread David Steinkopff
Hello Volker, actual it doesnt work in my program really fine. I wright a test action and connect that. first click, reload the panel. second click change the page if I dont use the tomcat debugger, with tomcat debugger I reload the actual page complete BTW. The serious problem is that I get a

myfaces Too much locking?

2007-06-13 Thread Titi Wangsa
hello to all.. i'm using myfaces 1.1.5 and tomahawak 1.1.5 my application hang frequently here is a stack on one of my threads TP-Processor280 daemon prio=1 tid=0x0889b1e0 nid=0xab2 waiting for monitor entry [0x2c658000..0x2c659f30] at

Re: how to get ordered list to work? problems with dataList

2007-06-13 Thread SiSi'mon
The example I saw on the myfaces website had exactly what I entered below that I was having problems with. Is the documentation incorrect? Also does this mean that my strings must be defined/declared in the backing bean and not in the xhtml? Is there a way to have the messages in the XHTML?

Re: [Trinidad] repeated insertion of a js chunk during PPR

2007-06-13 Thread Renzo Tomaselli
Thanks Adam. Btw, I actually catch _pprIFrame loading to perform some inizialization scripts on pages needing it. I hope there willl be some alternative way to achieve the same result once XMLHttp will replace the iframe. -- Renzo Adam Winer wrote: ScriptEval is used to evaluate JS sent down

Sun Java Application Server 9

2007-06-13 Thread Juan Ignacio Sánchez Lara
Has anybody managed to make MyFaces 1.1.5 work on SJAS 9? When I try to load a jsf page it throws an exception: java.lang.UnsupportedOperationException javax.faces.application.Application.getELResolver(Application.java:443) ... It throws it even when I remove jsf-impl from server's lib

Re: Skinning tr:inputText

2007-06-13 Thread Petr Kotek
Hello, You must use in css: .myStyleClass label { font-weight: bold; } I check it in Firefox only, but I think in IE must be the same. Eventually refresh page in browser by Ctrl+F5. Beside class, You may use element ID as: #inputID label { ... Best regards, Peter Stéphane Molina wrote:

Re: myfaces Too much locking?

2007-06-13 Thread Werner Punz
Ok the synchronized collection is necessary, but my question goes towards along the lines of thinking around the box, could it be that you have something serious going on in one of the setter or getter methods of a bean which causes a hang or lock on the server side? Maybe a database related

RE: [Tobago] Database paging with Tobago

2007-06-13 Thread carsten.manshusen
Hi Bernd, a Tobago example would be very useful, because the wiki example works with a DataModel and not a List like the Tobago sheet. Best regards, Carsten -Original Message- From: Bernd Bohmann [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 12, 2007 9:16 PM To: MyFaces Discussion

Re: Leveraging other JSF open source libraries in MyFaces with new contribution projects?

2007-06-13 Thread Werner Punz
David Steinkopff schrieb: OK, and what way can LGPLv3 combine with ALv2? That its the license question about JBoss and MyFaces. Well I assume, as always, the Apache license is a bsdish license which means everyone can use the code as long as some rules are followed (keep the headers intact in

nested dataTables

2007-06-13 Thread syllepsa
Hi, I have JSF page with the following structure: JScookMenu parentTable childTable_1 childTable_2 childTable_n /parentTable The parent table serves as an iterator for internal dataTables. Unfortunatelly parent table takes some space on the screen thus there is a gap between

t:inputText and validation on empty value

2007-06-13 Thread Michael Obster
Hi, can somebody tell me how I get a validation on an empty value running? I use a t:inputText value=#{order.date} validator=#{order.validateDate} f:convertDateTime type=date pattern=dd.MM./ /t:inputText I have seen, that when no value is entered, the validator is not executed. But this

Re: t:inputText and validation on empty value

2007-06-13 Thread Cagatay Civici
Hi, Try setting showDetail to true on h:messages Cagatay On 6/13/07, Michael Obster [EMAIL PROTECTED] wrote: Hi, can somebody tell me how I get a validation on an empty value running? I use a t:inputText value=#{order.date} validator=#{order.validateDate} f:convertDateTime type=date

Re: [Tobago] Database paging with Tobago

2007-06-13 Thread Volker Weber
Hi David, possible values in sheet are the same as in plain jsf: java.lang.Object[], java.util.List, javax.faces.model.DataModel, java.sql.ResultSet resultSet, javax.servlet.jsp.jstl.sql.Result and java.lang.Object. DataModel is the best choice for implement paging and sorting. Regards,

Re: t:inputText and validation on empty value

2007-06-13 Thread Michael Obster
Hi, yes works ;-). But I think it will be difficult to give this to normal user. You know the OSI Layer 8 ;-). Tried my own converter where I return a new Date() instead of null on empty value, which is the default when you use convertDateTime. Then the validator is running where I can set

[ANNOUNCE] MyFaces Tomahawk v1.1.6 Security Update Release

2007-06-13 Thread Manfred Geiler
The Apache MyFaces team is pleased to announce the release of MyFaces Tomahawk 1.1.6. Please note: This release is a security update that fixes a severe cross-site scripting vulnerability when using the autoscroll feature (CVE-2007-3101). MyFaces Tomahawk provides a series of JavaServer Faces

Re: Validation errors when using h:selectManyCheckbox

2007-06-13 Thread Michael Obster
Hi Andrew and list, I've written a converter which converts ArticleGroup into a string and backwards. The ArticleGroup has 3 attribute id(long), description(String) and active(boolean). Converting in both directions are running. The resulting string looks like 1;ASAP PC;true. Using Strings

Re: Trinidad seems to be ignoring my old menuTabs styling

2007-06-13 Thread Simon Lessard
Hello Daniel, The following are the valid selectors for navigationPane: public static final String AF_NAVIGATION_LEVEL_TABS_ACTIVE_STYLE_CLASS = af|navigationPane::tabs-active; public static final String AF_NAVIGATION_LEVEL_TABS_BOTTOM_END_CONTENT_STYLE_CLASS =

Re: [Trinidad] panelTabbed style

2007-06-13 Thread Martin Ahrer
Meanwhile I have found a good workaround that I wanted to share... I'm using a navigationPane component bound to a custom class for controlling the active tab. The only problem that I still face is to make the first tab active when the navigationPane is displayed the first time? Maybe someone

RE: [Trinidad] Input Text Format That Uses A Mask

2007-06-13 Thread William Hoover
Thanks for the input Adam! I updated the code snippet below with some comments and updates that dynamically attach the keydown/blur events. Could you elaborate on how to implement the inline hook and where to look in the code to do this? I would like to convert the component into a

sitemesh MyFaces sandbox

2007-06-13 Thread binya
Hi our project works with jsf sitemesh, I'm trying to use a componenet of MyFaces sandbox: s:tableSuggestAjax (which gives a suggest list with Ajax to an input) When I insert a input nothing happens, and I get this warnning: WARN org.apache.myfaces.renderkit.html.util.DefaultAddResource -

RE: [Tobago] Database paging with Tobago

2007-06-13 Thread carsten.manshusen
Hi Volker, thanks for your advice. I'll try the DataModel as sheet source for DB paging in my Tobago app. Best regards, Carsten -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Volker Weber Sent: Wednesday, June 13, 2007 11:20 AM To: MyFaces Discussion

[REMINDER] This list is subscribers only!

2007-06-13 Thread Manfred Geiler
This mail is sent from time to time and is meant to remind you, that the users@myfaces.apache.org and [EMAIL PROTECTED] mailing lists - like most of the ASF lists - are subscribers only. This means that you MUST subscribe BEFORE you post to one of the lists. Please make sure, that you post your

RE: [Trinidad] RequestContext had not been properly released on earlier request.

2007-06-13 Thread Jongsma, Leon
My web.xml ?xml version = '1.0' encoding = 'ISO-8859-1'? 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

[Tobago] Using tc:command with client side JavaScript

2007-06-13 Thread Melnizky Dieter
I want to toggle the disabled attribute of input fields, depending on the selected value of a tc:selectBooleanCheckbox. The idea is to add a JavaScript function that enables the fields, which should be called when the selectBooleanCheckbox is clicked. Since the onchange-Attribute is not supported,

Re: [Tobago] Using tc:command with client side JavaScript

2007-06-13 Thread Helmut Swaczinna
Hi Dieter, the onclick attribue of tc:command does not work (is not implemented). I tried the same thing as you before. See http://issues.apache.org/jira/browse/TOBAGO-272 Maybe it will be implemented if there's more than one request for it. As a workaround you can do the disabling on the

Re: [Tobago] Using tc:command with client side JavaScript

2007-06-13 Thread David Steinkopff
Hi Dieter, maybe its the problem in f:facet name=change, please try f:facet name=click regards David 2007/6/13, Melnizky Dieter [EMAIL PROTECTED]: I want to toggle the disabled attribute of input fields, depending on the selected value of a tc:selectBooleanCheckbox. The idea is to add a

RE: [Trinidad] Problems with skinning tables

2007-06-13 Thread MOLINA Stéphane
Hi All, I just found the problem. In fact, I did not use tr:document in my jsf page. The CSS files are compiled in the HeadRenderer which is a child of document. This explains why cache/styles was empty. Bye, -- Stéphane Molina -Message d'origine- De : Petr Kotek [mailto:[EMAIL

Re: [Trinidad] Table with two rows per record?

2007-06-13 Thread Chris Hane
Matt - thanks for the help. I had not noticed the trh tags. Chris Matt Cooper wrote: Hi Chris, The tr:table component does not support column spanning. (Note, my original panelGroupLayout example is what I was imagining you'd put inside of each of your tr:column components.) If the

Re: sitemesh MyFaces sandbo

2007-06-13 Thread Titi Wangsa
On 6/13/07, binya [EMAIL PROTECTED] wrote: Hi our project works with jsf sitemesh, I'm trying to use a componenet of MyFaces sandbox: s:tableSuggestAjax (which gives a suggest list with Ajax to an input) When I insert a input nothing happens, and I get this warnning: WARN

Did the tomahawk sandbox get included completely in tomahawk JAR?

2007-06-13 Thread SOSELLA
Sorry if this sounds like a stupid question; however, did the tomahawk-sandbox get completely included into the tomahawk 1.1.6 JAR? If not, which tomahawk sandbox JAR can be used with the 1.1.6 JAR?

Re: Did the tomahawk sandbox get included completely in tomahawk JAR?

2007-06-13 Thread Matthias Wessendorf
should be usable w/ 116 and no, it's the case that the sanbox is part of tomhawk JAR On 6/13/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Sorry if this sounds like a stupid question; however, did the tomahawk-sandbox get completely included into the tomahawk 1.1.6 JAR? If not, which tomahawk

panelNavigation2

2007-06-13 Thread Koester, Ralf
Hi, i am using the Tomahawk(1.1.6 - before 1.1.5) panelNavigation2. My problem is that it looses its state when I navigate from one view to another. Best regards, Ralf

Re: how to get ordered list to work? problems with dataList

2007-06-13 Thread Andrew Robinson
The example I saw on the myfaces website had exactly what I entered below that I was having problems with. Is the documentation incorrect? Sounds like it may be Also does this mean that my strings must be defined/declared in the backing bean and not in the xhtml? Yes, the entire purpose of

Re: tr:inputDate and hour/minute oddity

2007-06-13 Thread Chris Hane
Adam Winer wrote: On 6/12/07, Chris Hane [EMAIL PROTECTED] wrote: When I select add an tr:inputDate tag with a converter that displays the hours/minutes also, the hours are not correct. For example, in the demo inputDate.jspx, change the last inputDate to be: tr:inputDate id=mdf5

Re: Validation errors when using h:selectManyCheckbox

2007-06-13 Thread Andrew Robinson
Do you have an equals method implemented on ArticleGroup? Since the values are converted, reference equals will always return false. convertedValueFromComponent.equals(valueFromSelectItemValue) must evaluate to true for one of the select items On 6/13/07, Michael Obster [EMAIL PROTECTED]

[Trinidad] how to reset a message area after PPR

2007-06-13 Thread Renzo Tomaselli
Hi, I noticed that PPR does not reset any h:messages contents located on a page. E.g., full page refreshing resets this message - provided that there are no news - while PPR (table paging or tree expansion) leaves message contents according to last page refresh. How do I cleanup the message (or

Re: [Trinidad] repeated insertion of a js chunk during PPR

2007-06-13 Thread Adam Winer
There's supported JS APIs to catch when we gofrom busy to idle or idle to busy. Don't know if that'll meet your needs, but we can definitely add other hooks as needed. It'll be much more predictable and less hacky now. -- Adam On 6/13/07, Renzo Tomaselli [EMAIL PROTECTED] wrote: Thanks

Re: tr:inputDate and hour/minute oddity

2007-06-13 Thread Adam Winer
The issue here (I'm guessing) is that the field is goingin and out of daylight savings time, and some bit of code isn't accounting for that. That's why when you pick a date back in January, you get a bump in time - because January is really one hour different from June. -- Adam On 6/13/07,

Re: [Trinidad] how to reset a message area after PPR

2007-06-13 Thread Adam Winer
I'll have to check, but my memory of h:messages is thatit always updates itself during PPR, so sounds like something may have changed here. -- Adam On 6/13/07, Renzo Tomaselli [EMAIL PROTECTED] wrote: Hi, I noticed that PPR does not reset any h:messages contents located on a page. E.g., full

Re: [Trinidad] Page flow scope and Back button

2007-06-13 Thread D. Cardon
Thanks for the tip! That makes a lot of sense to me, but I'm a little confused about implementation. Does it make a difference 'when' in the lifecycle I set the variables? For example, suppose the user enters the URL for my create page: */create.jsf Then, there will be no attributes stored on

[Trinidad] PPR scope and external fields

2007-06-13 Thread Renzo Tomaselli
Hi, I would appreciate a bit of enlightening about the overall handling of form fields when PPR enters this game. Assume we have a form containing a PPR component (say a tr: table) and a hidden field H external to this component, although within the form. I noticed (from debugging) than whenever

Re: Validation errors when using h:selectManyCheckbox

2007-06-13 Thread Michael Obster
Hi Andrew, hmm, looks like you are right. I've implemented this thing now with an unique id number each ArticleGroup has. Because I get the ArticleGroup from a Hibernate persistence layer I also couldn't use the object itself. Thanks for your help! Cheers, Michael Andrew Robinson schrieb:

How to Re-Initialize JSF Backing Bean on Form Submit

2007-06-13 Thread bansi
We have backing bean defined in session scope So whenever we do a submit on JSF Form, it holds onto same backing bean. This is not desirable as - The Form will have different set of values each time it does a submit - The Backing bean has variable defined to instantiate a POJO i.e.private

Re: How to Re-Initialize JSF Backing Bean on Form Submit

2007-06-13 Thread Andrew Robinson
That is the desired behavior of a session bean -- one instance for the user's session. If you want to use session, and have it be able to be cleared, then you will want to create a clear action or action listener method that clears all of the member variables when executed. I would instead

Re: How to Re-Initialize JSF Backing Bean on Form Submit

2007-06-13 Thread bansi
Andrew I totally agree with you on its the desired behavior of a session bean -- one instance for the user's session But is their a way to recreate the instance of backing bean in following situations 1) Whenever a new record is inserted into database. The reason i mention this is my backing

Re: How to Re-Initialize JSF Backing Bean on Form Submit

2007-06-13 Thread bansi
I figured out that i can do something like this ... In session scope, only one instance of the backing bean will be used during the whole browser session. When you want to recreate the managed bean inside the backing bean during session, then do FacesContext .getCurrentInstance()

Tomahawk Compatibility?

2007-06-13 Thread Andrew Robinson
Sorry for the simple question, but the compatibility matrix is not updated yet. Is tomahawk 1.1.6 compatible with core impl 1.1.5?

Re: How to Re-Initialize JSF Backing Bean on Form Submit

2007-06-13 Thread Andrew Robinson
I didn't mean to clear the form, but clear the backing bean properties. public class MyBean { private MyObject myObject; public String save() { // EntityManager or hibernate session save here // clear the properties: clearState(); } public void onCancel(ActionEvent evt) {

Re: Tomahawk Compatibility?

2007-06-13 Thread Mike Kienenberger
1.1.6 is 1.1.5 + a security patch. It should be 100% compatible (In an ideal world, it would have been released as 1.1.5.1, but we don't have processes in place to do that yet). On 6/13/07, Andrew Robinson [EMAIL PROTECTED] wrote: Sorry for the simple question, but the compatibility matrix is

Re: [Trinidad] PPR scope and external fields

2007-06-13 Thread Adam Winer
The only fields that are refreshed are those that are part of the PPR target, exactly. Arbitrary components can be added to PPR with RequestContext.addPartialTarget(), so you could (for instance) have a PhaseListener that made sure that certain bits of content did get replaced. There's some

Re: [Trinidad] Page flow scope and Back button

2007-06-13 Thread Adam Winer
On 6/13/07, D. Cardon [EMAIL PROTECTED] wrote: Thanks for the tip! That makes a lot of sense to me, but I'm a little confused about implementation. Does it make a difference 'when' in the lifecycle I set the variables? For example, suppose the user enters the URL for my create page:

Re: How to Re-Initialize JSF Backing Bean on Form Submit

2007-06-13 Thread bansi
Thanks Andrew. As very correctly suggested by you i already have the code in backing bean to clear the backing bean properties. But the problem is when i move back and forth (i.e. navigate) from Current page to Other pages and come back to Current page, i want the backing bean associated with

Re: How to Re-Initialize JSF Backing Bean on Form Submit

2007-06-13 Thread Iskandar Zaynutdinov
On 6/14/07, bansi [EMAIL PROTECTED] wrote: Thanks Andrew. As very correctly suggested by you i already have the code in backing bean to clear the backing bean properties. But the problem is when i move back and forth (i.e. navigate) from Current page to Other pages and come back to Current

Re: Is problem with myfaces ?

2007-06-13 Thread sandipp
Hi , Thanks for the response. Here I am registering my bean as, managed-bean managed-bean-nameloginFormBean/managed-bean-name managed-bean-classcom.LoginForm/managed-bean-class managed-bean-scoperequest/managed-bean-scope /managed-bean As you said keep only one jar out of jsf

Component nesting error with 1.0.1 from trunk

2007-06-13 Thread Laurie Harper
I just upgraded an application from a pre-release build of 1.0-incubating to a snapshot of 1.0.1 build from trunk a couple of days ago, and (after making a few changes to my templates to accommodate component name changes and such) am getting the following errors in my logs. Can anyone offer