Re: [Tobago] how I can speed up popup?

2007-03-30 Thread David Steinkopff
Tobago 1.0.10 MyFaces 1.1.5 Facelets 1.1.11 Tomcat 5.5.17 Netbeans 5.5 the problem is, in a stripped example ajax works, but if I put this code in the complete gui the value doesnt works. I used the firebug extension from firefox and watch the reload javascript function. two times popup open

Re: [Tobago] how I can speed up popup?

2007-03-30 Thread David Steinkopff
Now is my project unable to start in tomcat. and it doesnt help to setting on tobago 1.0.10 :-( that is a bad day ... HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception

Re: [Tobago] how I can speed up popup?

2007-03-30 Thread Volker Weber
Hi David, please check the librarys in you war. Seems that you have mixed up different versions. AjaxUtils.getAjaxComponents() is new in 1.0.11-SNAPSHOT. Regards, Volker 2007/3/30, David Steinkopff [EMAIL PROTECTED]: Now is my project unable to start in tomcat. and it doesnt help to setting

Re: [Tobago] how I can speed up popup?

2007-03-30 Thread Volker Weber
Hi again, i don't know the firebug extension, is it possible to examine the object type of the container from the statement LOG.warn(Illegal Container for reload: + (typeof container));? This should never occur, there is a object registered as ajaxReloadable, but not string(sould be the id of a

[Tobago] jsp:forward in Tobago pages

2007-03-30 Thread madan chowdary
Hi All, I need to forward to a page based upon a condition that i need to check. I was doing some thing like this, tc:panel rendered=#{!shoppingCart.cartContainsItems} f:verbatim jsp:forward page=%=request.getContextPath()%/jsp/checkout.faces/ /f:verbatim /tc:panel But this

Re: [Tobago] how I can speed up popup?

2007-03-30 Thread David Steinkopff
Complex: container: div#pageid:tabgroup.tobago-panel-default Stripped: container: div#pageid:tabgroup.tobago-panel-default I believe firebug have a strange behavior. here line number to line number 641-644,647-648,664,668. ?-( There is no different for me between 1.0.10 and 1.0.11nightly So I

[Tobago] tc:button and tc:popup, prevent opening

2007-03-30 Thread Michał 'Gandalf' Stawicki
Hi, I thought that if I return null from button's action method, this would be equal to validation faild, and would prevent the popup from opening. Unfortunately, it doesn't work this way. Is the only way to achieve this behavior to use the rendered attribute od popup? regards, michael --

Re: [Tobago] Problem with ActionListener for tc:tree/

2007-03-30 Thread Cyrill Zadra
Hi all, I'm just confronted with the same problem at the moment. Has anybody a solution? my jsf tobago code: tc:tree value=#{demo.tree} id=tree idReference=userObject.id nameReference=userObject.name showIcons=true showJunctions=true showRootJunction=true

Re: Faces context not found

2007-03-30 Thread Eugine F
From: Simon Kitching [EMAIL PROTECTED] Reply-To: MyFaces Discussion users@myfaces.apache.org To: MyFaces Discussion users@myfaces.apache.org Subject: Re: Faces context not found Date: Fri, 30 Mar 2007 07:57:46 +1200 Eugine Fosah wrote: Hi everyone out there I am developing an application

Re: [Tobago] Problem with ActionListener for tc:tree/

2007-03-30 Thread madan chowdary
Hi Cyrill, place the following code(with respect to urs) in between tc:tree and /tc:tree f:facet name=treeNodeCommand tc:command actionListener=#{inventorySearch.browseCategories} action=#{inventorySearch.showSearchResults} / /f:facet Regards, Madan - Original Message

Re: Submit form, validate input, open response in new window?

2007-03-30 Thread Marko Asplund
Simon Kitching wrote: The solution I ended up with was for a page to use t:outputLink to render a list of links to available documents. Each link looks like: h:outputLink value=/showDoc target=document f:param name=docId value=#{row.id}/ t:outputText value=#{row.docName}/ /h:ouputLink

JSf Error messages and bean values not displayed

2007-03-30 Thread Eugine F
Hello To all, I am developing an application with JSF and facelets. I have a form with some fileds.I am having the follwing problem. I do not have any error messages displayed on my page when I click the submit button even though required attribute was set. The beans have all been defined

Re: JSf Error messages and bean values not displayed

2007-03-30 Thread David Delbecq
Use h:messages/ to see validation messages in your form. En l'instant précis du 30/03/07 14:53, Eugine F s'exprimait en ces termes: Hello To all, I am developing an application with JSF and facelets. I have a form with some fileds.I am having the follwing problem. I do not have any error

RE: escaping in EL?

2007-03-30 Thread Michael Heinen
This does not work. The ? must be part of the EL expression, or ? What I want is that if MyBean.checkA is true, then doJS('staticvalue','#{beanA.value}'); should be printed into the attribute value. This expression has to be in single quotes. The problem is that the JavaScript parameters in

RE: escaping in EL?

2007-03-30 Thread Michael Heinen
A simpler sample: attribute=#{ MyBean.checkA ? 'alert('aaa');':'alert ('bbb');'} results in org.apache.commons.el.parser.ParseException: Encountered ? \'alert (\' aaa at line 1, column 52. Michael -Original Message- From: Michael Heinen [mailto:[EMAIL PROTECTED] Sent: Freitag, 30.

Re: escaping in EL?

2007-03-30 Thread Mike Kienenberger
So what you really want is #{MyBean.checkA ? 'doJS('staticvalue',' + beanA.value + ');' : 'alert('hello'));' Some of the issues I see - You need to somehow escape the single quotes in the javascript - You need to be able to concat the doJS expression. I've solved the second issue by

Re: escaping in EL?

2007-03-30 Thread Michał 'Gandalf' Stawicki
Perhaps escape quotes? \' ? michał On 30/03/07, Michael Heinen [EMAIL PROTECTED] wrote: A simpler sample: attribute=#{ MyBean.checkA ? 'alert('aaa');':'alert ('bbb');'} results in org.apache.commons.el.parser.ParseException: Encountered ? \'alert (\' aaa at line 1, column 52. Michael

Re: c:forEach bug?

2007-03-30 Thread Stefan Frank
yes, I also had this bug: It does not appear in development, only after a certain runtime and nobody seems to know why this is happening. Apart from replacing ui:repeat with t:dataList, I found that adding a size=n to the ui:repeat, where n is greater than what you expect your result-set to be,

Making sure no user input is allowed whilst server is processing...[ajax for jsf]

2007-03-30 Thread Julien Martin
Hello all, I am wondering if it is possible to make sure that no user input is possible/allowed whilst the server is processing in other words when the startText of the a4j:status is displayed. Do I need some sort of a modal component? Any best practice one of you could advise? How can I disable

RE: escaping in EL?

2007-03-30 Thread Michael Heinen
Unfortunatedly I am still using jsps instead of facelets. Escaping with slashes or backslashes does not work. EL really sucks. I do now the following: attribute=#{MyBean.checkA?'realJsFunction':'dummyJsFunction'}('staticvalue','#{beanA.value}'); Where dummyJS is an empty javascript function. A

Re: [Tobago] tc:button and tc:popup, prevent opening

2007-03-30 Thread Mike Kienenberger
Null is not equal to a validation failure. It means that the view doesn't need to be recreated from the navigation rules, just reuse the old one. No idea what you're detecting for validation failure, but you could always set a create a FacesMessage from your action if you needed to do so. I

Re: Making sure no user input is allowed whilst server is processing...[ajax for jsf]

2007-03-30 Thread CD
One thought... You can use divs with z-index layering to accomplish this task. This will allow you to use a transparent div on top of page (essentially functioning as the glass pane in a Swing application). On 3/30/07, Julien Martin [EMAIL PROTECTED] wrote: Hello all, I am wondering if it

Re: [Tobago] tc:button and tc:popup, prevent opening

2007-03-30 Thread Michał 'Gandalf' Stawicki
Thanks for clarification

Re: Making sure no user input is allowed whilst server is processing...[ajax for jsf]

2007-03-30 Thread Gerald Müllan
Hi, i take the following approach in order to get a freeze-screen during a (native, non-ajax) request-response-cycle: add the attribute onclick=waitDuringRequestDialogVar.show(); to your command component which raises the submit. s:modalDialog dialogId=waitDuringRequestDialog

Re: Making sure no user input is allowed whilst server is processing...[ajax for jsf]

2007-03-30 Thread Stefan Frank
A fancy way for doing modal windows and disabling other userinput are either thickbox (http://jquery.com/demo/thickbox/) or greybox (http://orangoo.com/labs/GreyBox/) - they both allow you to show arbitrary content while users are waiting for background processing. Just make sure you don't

Re: Making sure no user input is allowed whilst server is processing...[ajax for jsf]

2007-03-30 Thread Julien Martin
thanks for your input I am going to have a look at all this. J. 2007/3/30, Stefan Frank [EMAIL PROTECTED]: A fancy way for doing modal windows and disabling other userinput are either thickbox (http://jquery.com/demo/thickbox/) or greybox (http://orangoo.com/labs/GreyBox/) - they both allow

Re: s:inputSuggestAjax problems with onchange

2007-03-30 Thread Edney Imme
Hello I already have this problem. I do how is mike example s:inputSuggestAjax id=pointOfConsumptionFilter suggestedItemsMethod=#{ pagedDeliveryScheduleSort.findPointOfConsumptions } value=#{

Re: s:inputSuggestAjax problems with onchange

2007-03-30 Thread Mike Kienenberger
Edney, The only thing I can suggest is that you try it with the latest MyFaces/Tomahawk/Sandbox. This code works. I don't know if the t:dojoInitializer part matters -- I've never used it for other components. f:view h:form id=form t:dojoInitializer bindEncoding=utf-8/

[Tomahawk] showing disabled jscookMenu items with different style

2007-03-30 Thread Renzo Tomaselli
Hi, jscookMenu works well and I can prepare a tree of NavigationMenuItems where a few of them are disabled. However I'm not able to show them through a different style, such as grayed. NavigationMenuItem offers a setDisabledStyleClass() setter - but this seems ignored by rendering - since on

Drop-down menu value not updating consistently in backing bean

2007-03-30 Thread raindogs
Here's one that really has me scratching my head. I have two drop-down menus on my page pulling values from a database. When one changes, an a4j:support event should populate the other with appropriate values. It seems to work fine except that the value in the backing been attached to the first

Re: ERROR: Value is not a valid option

2007-03-30 Thread fastbob
Mike Kienenberger wrote: Yes, that's how I would do it. If you specify an itemValue, then that value must be of the correct type. Ie, is not a containerType (Srinivas) and 0 is not a region (Carl). Ouch. The assumption is that there is a one-one correspondence between the list items

Re: ERROR: Value is not a valid option

2007-03-30 Thread Mike Kienenberger
Here's how the tomahawk examples do it: h:selectOneMenu id=selone_menu_colors value=#{carconf.color} styleClass=selectOneMenu converter=#{carconf.colorConverter} f:selectItem itemValue= itemLabel=#{example_messages['empty_selitem']} / public Object

Re: ERROR: Value is not a valid option

2007-03-30 Thread fastbob
Hmmm. I must be missing something. Other than parameterization, including your use of disable and null values, I don't see any significant differences (I also tried moving the converter into the h:selectOneMenu - no effect). In fact, the Tomahawk example uses as a nothing -selected value, just

Re: ERROR: Value is not a valid option

2007-03-30 Thread Mike Kienenberger
Post the getAsObject method from ProjectTypeConverter. On 3/30/07, fastbob [EMAIL PROTECTED] wrote: Hmmm. I must be missing something. Other than parameterization, including your use of disable and null values, I don't see any significant differences (I also tried moving the converter into the

Re: ERROR: Value is not a valid option

2007-03-30 Thread fastbob
Sure. See below. But before you check that, we're making it through the apply values phase. If the user does not select a value from the list, they get an error due to required=true (oops - when I edited for posting I deleted the required). If they do select a value, the converter is called with

Re: ERROR: Value is not a valid option

2007-03-30 Thread Mike Kienenberger
Yes, I think you're right. It's not the form String - Object that's causing the issue. It looks like it's the contents of the selectItem values. What are you initializing the selectItem value fields with? What's the contents of selectItem.value when it's of type String? On 3/30/07, fastbob

Re: [Tobago] jsp:forward in Tobago pages

2007-03-30 Thread madan chowdary
Hi All, Is there any way to do such kind of thing...? Madan - Original Message From: madan chowdary [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Friday, 30 March, 2007 2:57:27 PM Subject: [Tobago] jsp:forward in Tobago pages Hi All, I need to forward to a