Re: [ Tobago ] [ Solved ]Help regarding Input Suggest
Hi Volker, Tested the suggestMethod in both FireFox and IE, its working fine now. The listbox thats gets displayed is expanded accordingly. But found a strange thing happening in IE. The list thats gets shown up contains a ' 0 ' at last.When scrolled the arrow up and down, only the items are selected but not the ' 0 '. This tailing ' 0 ' is not shown in FireFox, but it does in IE for what ever suggest i receive. Regards, Madan - Original Message From: Volker Weber <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Tuesday, 20 February, 2007 2:25:21 PM Subject: Re: [ Tobago ] [ Solved ]Help regarding Input Suggest Hi Madan, there was something like a timing issue when setting the size of suggested items, should be fixed in the last nightly (>= 20-Feb-2007 04:59). Please test this one, also on IE (i can't test on windows during the week (and i don't like it on weekend, but all my requests to remove the IE from the list of supported Browsers are regulary rejected ;-) )). Regards, Volker 2007/2/19, madan chowdary <[EMAIL PROTECTED]>: > > Hi Volker, > > Tried with y'days nightly build, but its failing again in IE. > > Was not able to see the the suggest in IE. > > I have one more request. When ever i click a key in textbox, i was getting > suggest words, but the dropdown in which they are shown are limited to the > width of the text box. > > The words i enter may be present in text which are more lengthier then the > width of > > So, the whole text is not being displayed in the suggest dropdown. > > Is there any possible way to increase the width of the dropdown even if the > text is small or big > > Thnx in Advance > > madan > > - Original Message > From: Volker Weber <[EMAIL PROTECTED]> > To: MyFaces Discussion > Sent: Monday, 19 February, 2007 3:54:54 AM > Subject: Re: [ Tobago ] [ Solved ]Help regarding Input Suggest > > Hi Madan, > > just fixed the IE issue with inputSuggest. > > The exception is another problem, but this don't break the inputSuggest. > > Regards, > Volker > > 2007/2/17, madan chowdary <[EMAIL PROTECTED]>: > > > > Hi Volker, > > > > Think u didn't go through my previous post. > > > > Does the inputSuggest work well with Internet Explorer ? > > > > And why does error occures( as posted in previous mail) when ever i type > in > > any thing in for both Firefox and IE. > > > > Is this a bug? > > > > Regards, > > Madan > > > > > > - Original Message > > From: madan chowdary <[EMAIL PROTECTED]> > > To: MyFaces Discussion > > Sent: Wednesday, 14 February, 2007 4:40:07 PM > > Subject: Re: [ Tobago ] [ Solved ]Help regarding Input Suggest > > > > > > Hi Volker, > > > > Solved the InputSuggest for > > > > used the below code as in JSP and Java > > > > > value="#{inventorySearch.searchCriteria}" > > suggestMethod = > > "#{inventorySearch.suggestSearchCriteria}" > > /> > > > > public List suggestSearchCriteria(String msg){ > > System.out.println("*** Inside getSuggestMethod *** " + msg); > > List suggestions = new ArrayList(); > > suggestions.add("Madan"); > > suggestions.add("Varma"); > > suggestions.add("Prasad"); > > return suggestions; > > } > > > > Am able to see the list of available items when i type any key in > . > > > > I am using both FireFox 2.0 and IE 7 for development. > > > > But the above code works only for Firefox but not IE. > > > > And was getting an error immediatly when i enter sometext in in > > both firefox and IE > > > > The log is as such, > > > > 2007-02-14 16:38:24,546 INFO [STDOUT] *** Inside getSuggestMethod *** a > > 2007-02-14 16:38:24,640 INFO [STDOUT] 16:38:24,609 ERROR [[FacesServlet]] > > Servlet.service() for servlet FacesServlet threw exception > > java.lang.NullPointerException > > at > > > org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.FormRenderer.decode(FormRenderer.java:40) > > at > > > javax.faces.component.UIComponentBase.decode(UIComponentBase.java:500) > > at > > > org.apache.myfaces.tobago.component.UIForm.processDecodes(UIForm.java:39) > > at > > > javax.faces.component.UIComponentBase.processDecodes(UIComponentBa
Re: [ Tobago ] [ Solved ]Help regarding Input Suggest
Hi All, I have a use case that does the same as yahoo email suggest . When ever a user enters some email he gets suggest, and when ever he type a ' , ' he will be getting another set of emails. When selected the second email, it will be appened to the previous email id . I was able to do the first task. But when ever i select the second text, the first text is being cleared and the secong text is shown. But i have to appened the second text with the first one seperated by a ' , ' . How can i achieve this ? Regards, Madan - Original Message From: madan chowdary <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Thursday, 22 February, 2007 10:24:11 AM Subject: Re: [ Tobago ] [ Solved ]Help regarding Input Suggest Hi Volker, Tested the suggestMethod in both FireFox and IE, its working fine now. The listbox thats gets displayed is expanded accordingly. But found a strange thing happening in IE. The list thats gets shown up contains a ' 0 ' at last.When scrolled the arrow up and down, only the items are selected but not the ' 0 '. This tailing ' 0 ' is not shown in FireFox, but it does in IE for what ever suggest i receive. Regards, Madan - Original Message From: Volker Weber <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Tuesday, 20 February, 2007 2:25:21 PM Subject: Re: [ Tobago ] [ Solved ]Help regarding Input Suggest Hi Madan, there was something like a timing issue when setting the size of suggested items, should be fixed in the last nightly (>= 20-Feb-2007 04:59). Please test this one, also on IE (i can't test on windows during the week (and i don't like it on weekend, but all my requests to remove the IE from the list of supported Browsers are regulary rejected ;-) )). Regards, Volker 2007/2/19, madan chowdary <[EMAIL PROTECTED]>: > > Hi Volker, > > Tried with y'days nightly build, but its failing again in IE. > > Was not able to see the the suggest in IE. > > I have one more request. When ever i click a key in textbox, i was getting > suggest words, but the dropdown in which they are shown are limited to the > width of the text box. > > The words i enter may be present in text which are more lengthier then the > width of > > So, the whole text is not being displayed in the suggest dropdown. > > Is there any possible way to increase the width of the dropdown even if the > text is small or big > > Thnx in Advance > > madan > > - Original Message > From: Volker Weber <[EMAIL PROTECTED]> > To: MyFaces Discussion > Sent: Monday, 19 February, 2007 3:54:54 AM > Subject: Re: [ Tobago ] [ Solved ]Help regarding Input Suggest > > Hi Madan, > > just fixed the IE issue with inputSuggest. > > The exception is another problem, but this don't break the inputSuggest. > > Regards, > Volker > > 2007/2/17, madan chowdary <[EMAIL PROTECTED]>: > > > > Hi Volker, > > > > Think u didn't go through my previous post. > > > > Does the inputSuggest work well with Internet Explorer ? > > > > And why does error occures( as posted in previous mail) when ever i type > in > > any thing in for both Firefox and IE. > > > > Is this a bug? > > > > Regards, > > Madan > > > > > > - Original Message > > From: madan chowdary <[EMAIL PROTECTED]> > > To: MyFaces Discussion > > Sent: Wednesday, 14 February, 2007 4:40:07 PM > > Subject: Re: [ Tobago ] [ Solved ]Help regarding Input Suggest > > > > > > Hi Volker, > > > > Solved the InputSuggest for > > > > used the below code as in JSP and Java > > > > > value="#{inventorySearch.searchCriteria}" > > suggestMethod = > > "#{inventorySearch.suggestSearchCriteria}" > > /> > > > > public List suggestSearchCriteria(String msg){ > > System.out.println("*** Inside getSuggestMethod *** " + msg); > > List suggestions = new ArrayList(); > > suggestions.add("Madan"); > > suggestions.add("Varma"); > > suggestions.add("Prasad"); > > return suggestions; > > } > > > > Am able to see the list of available items when i type any key in > . > > > > I am using both FireFox 2.0 and IE 7 for development. > > > > But the above code works only for Firefox but not IE. > > > > And was getting an error immediatly when i enter sometext in in > > both firefox and IE > > > > The log is as such, > > &
Re: [ Tobago ] [ Solved ]Help regarding Input Suggest
Any one here knowing regarding this ? Madan - Original Message From: madan chowdary <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Thursday, 22 February, 2007 3:35:55 PM Subject: Re: [ Tobago ] [ Solved ]Help regarding Input Suggest Hi All, I have a use case that does the same as yahoo email suggest . When ever a user enters some email he gets suggest, and when ever he type a ' , ' he will be getting another set of emails. When selected the second email, it will be appened to the previous email id . I was able to do the first task. But when ever i select the second text, the first text is being cleared and the secong text is shown. But i have to appened the second text with the first one seperated by a ' , ' . How can i achieve this ? Regards, Madan - Original Message From: madan chowdary <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Thursday, 22 February, 2007 10:24:11 AM Subject: Re: [ Tobago ] [ Solved ]Help regarding Input Suggest Hi Volker, Tested the suggestMethod in both FireFox and IE, its working fine now. The listbox thats gets displayed is expanded accordingly. But found a strange thing happening in IE. The list thats gets shown up contains a ' 0 ' at last.When scrolled the arrow up and down, only the items are selected but not the ' 0 '. This tailing ' 0 ' is not shown in FireFox, but it does in IE for what ever suggest i receive. Regards, Madan - Original Message From: Volker Weber <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Tuesday, 20 February, 2007 2:25:21 PM Subject: Re: [ Tobago ] [ Solved ]Help regarding Input Suggest Hi Madan, there was something like a timing issue when setting the size of suggested items, should be fixed in the last nightly (>= 20-Feb-2007 04:59). Please test this one, also on IE (i can't test on windows during the week (and i don't like it on weekend, but all my requests to remove the IE from the list of supported Browsers are regulary rejected ;-) )). Regards, Volker 2007/2/19, madan chowdary <[EMAIL PROTECTED]>: > > Hi Volker, > > Tried with y'days nightly build, but its failing again in IE. > > Was not able to see the the suggest in IE. > > I have one more request. When ever i click a key in textbox, i was getting > suggest words, but the dropdown in which they are shown are limited to the > width of the text box. > > The words i enter may be present in text which are more lengthier then the > width of > > So, the whole text is not being displayed in the suggest dropdown. > > Is there any possible way to increase the width of the dropdown even if the > text is small or big > > Thnx in Advance > > madan > > - Original Message > From: Volker Weber <[EMAIL PROTECTED]> > To: MyFaces Discussion > Sent: Monday, 19 February, 2007 3:54:54 AM > Subject: Re: [ Tobago ] [ Solved ]Help regarding Input Suggest > > Hi Madan, > > just fixed the IE issue with inputSuggest. > > The exception is another problem, but this don't break the inputSuggest. > > Regards, > Volker > > 2007/2/17, madan chowdary <[EMAIL PROTECTED]>: > > > > Hi Volker, > > > > Think u didn't go through my previous post. > > > > Does the inputSuggest work well with Internet Explorer ? > > > > And why does error occures( as posted in previous mail) when ever i type > in > > any thing in for both Firefox and IE. > > > > Is this a bug? > > > > Regards, > > Madan > > > > > > - Original Message > > From: madan chowdary <[EMAIL PROTECTED]> > > To: MyFaces Discussion > > Sent: Wednesday, 14 February, 2007 4:40:07 PM > > Subject: Re: [ Tobago ] [ Solved ]Help regarding Input Suggest > > > > > > Hi Volker, > > > > Solved the InputSuggest for > > > > used the below code as in JSP and Java > > > > > value="#{inventorySearch.searchCriteria}" > > suggestMethod = > > "#{inventorySearch.suggestSearchCriteria}" > > /> > > > > public List suggestSearchCriteria(String msg){ > > System.out.println("*** Inside getSuggestMethod *** " + msg); > > List suggestions = new ArrayList(); > > suggestions.add("Madan"); > > suggestions.add("Varma"); > > suggestions.add("Prasad"); > > return suggestions; > > } > > > > Am able to see the list of available items when i type any key in > . > > > > I am using both FireFox 2.0 and IE 7 f
Re: [ Tobago ] [ Solved ]Help regarding Input Suggest
Hi Volker, I placed the following code which u specified " this.options.tokens = [","]; " as follows in inputSuggest.js Tobago.Autocompleter = Class.create(); Tobago.Autocompleter.prototype = Object.extend(new Autocompleter.Base(), Object.extend(new Ajax.Base(), { initialize: function(element, page, options) { this.baseInitialize(element, $(element).id + Tobago.SUB_COMPONENT_SEP + "ajaxPopup", options); this.options.asynchronous = true; this.options.onComplete = this.onComplete.bind(this) this.options.method = 'post'; this.options.tokens = [","]; this.page = $(page); blah blah } I changed the inputSuggest.js under the jar file included in tobago-theme-standard.jar. Will this change reflect in my app ? Just tested to confirm but it didnt work... Am i required to place this particular js files in my own theme to reflect this change ? Regards, Madan So where - Original Message From: Volker Weber <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Friday, 23 February, 2007 5:00:28 PM Subject: Re: [ Tobago ] [ Solved ]Help regarding Input Suggest Hi Madan, this is currently not supported by tobago, but after a quick look into controlls.js, which is utilized by tobago for the imputSuggest, it should be possible. You need to overwrite the javascript Tobago.Autocompleter initialize function to add a additional value to the options object. add something like this.options.tokens = [","]; Regards, Volker 2007/2/22, madan chowdary <[EMAIL PROTECTED]>: > > Hi All, > > I have a use case that does the same as yahoo email suggest . > > When ever a user enters some email he gets suggest, and when ever he type a > ' , ' he will be getting another set of emails. > > When selected the second email, it will be appened to the previous email id > . > > I was able to do the first task. > > But when ever i select the second text, the first text is being cleared and > the secong text is shown. > But i have to appened the second text with the first one seperated by a ' , > ' . > > How can i achieve this ? > > Regards, > Madan > > - Original Message > From: madan chowdary <[EMAIL PROTECTED]> > To: MyFaces Discussion > Sent: Thursday, 22 February, 2007 10:24:11 AM > Subject: Re: [ Tobago ] [ Solved ]Help regarding Input Suggest > > > Hi Volker, > > Tested the suggestMethod in both FireFox and IE, its working fine now. > > The listbox thats gets displayed is expanded accordingly. > > But found a strange thing happening in IE. > > The list thats gets shown up contains a ' 0 ' at last.When scrolled the > arrow up and down, only the items are selected but not the ' 0 '. > > This tailing ' 0 ' is not shown in FireFox, but it does in IE for what ever > suggest i receive. > > Regards, > Madan > > - Original Message > From: Volker Weber <[EMAIL PROTECTED]> > To: MyFaces Discussion > Sent: Tuesday, 20 February, 2007 2:25:21 PM > Subject: Re: [ Tobago ] [ Solved ]Help regarding Input Suggest > > Hi Madan, > > there was something like a timing issue when setting the size of > suggested items, > should be fixed in the last nightly (>= 20-Feb-2007 04:59). > Please test this one, also on IE (i can't test on windows during the > week (and i don't like it on weekend, but all my requests to remove > the IE from the list of supported Browsers are regulary rejected ;-) > )). > > Regards, > > Volker > > 2007/2/19, madan chowdary <[EMAIL PROTECTED]>: > > > > Hi Volker, > > > > Tried with y'days nightly build, but its failing again in IE. > > > > Was not able to see the the suggest in IE. > > > > I have one more request. When ever i click a key in textbox, i was getting > > suggest words, but the dropdown in which they are shown are limited to the > > width of the text box. > > > > The words i enter may be present in text which are more lengthier then the > > width of > > > > So, the whole text is not being displayed in the suggest dropdown. > > > > Is there any possible way to increase the width of the dropdown even if > the > > text is small or big > > > > Thnx in Advance > > > > madan > > > > - Original Message > > From: Volker Weber <[EMAIL PROTECTED]> > > To: MyFaces Discussion > > Sent: Monday, 19 February, 2007 3:54:54 AM > > Subject: Re: [ Tobago ] [ Solved ]Help regarding Input Suggest > > > > Hi Madan, > > > > just fixed the IE issue with inputSuggest. > > &
[ Tobago ] Regarding Alignment Problems with gridLayout
Hi All, I have a gridLayout in which i display some data in ordered manner. Based upon some conditions, i need to show data. I use rendered for condition checking, so for a i place the rendered attribute. But when rendering the table is including this also. The rows i specified for this cell is aslo rendered , but this doesn't show anything as the condition is false. But the space is shown. This makes all my alignment look awkward , Any Suggestions regarding this, Think many would have faced this problem. I need to fix some UI Issues which includes these things also.. Thnx in Advance Regards, Madan __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Re: [ Tobago ] Regarding Alignment Problems with gridLayout
Hi Volker, Thnx for the reply... Gone through the code, hope this would help me... But can u suggest whats the best manner to write code with i need to display some textboxes and other components in a page. Right now i am using . But what does does ? where can i use and can i use a panel instead of ? Regards, Madan - Original Message From: Volker Weber <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Saturday, 24 February, 2007 12:06:36 AM Subject: Re: [ Tobago ] Regarding Alignment Problems with gridLayout Hi Madan, please see https://issues.apache.org/jira/browse/TOBAGO-295 hope it helps. Regards, Volker 2007/2/23, madan chowdary <[EMAIL PROTECTED]>: > > Hi All, > > I have a gridLayout in which i display some data in ordered manner. > > Based upon some conditions, i need to show data. > > I use rendered for condition checking, so for a i place the > rendered attribute. > > But when rendering the table is including this also. The rows i > specified for this cell is aslo rendered , but this doesn't show anything > as the condition is false. But the space is shown. > > This makes all my alignment look awkward , > > Any Suggestions regarding this, Think many would have faced this problem. > > I need to fix some UI Issues which includes these things also.. > > Thnx in Advance > > Regards, > Madan > > > > > Here's a new way to find what you're looking for - Yahoo! Answers __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
[ Tobago ] Regarding PopUp's
Hi All, I need to display a popup which is shown when a user places mouse over a link. My case is as such... There would be a link, which on clicked will navigate to a page which has the User Details. Now when he places his mouse over the link, i need to show a popup which has the same details as when shown when he clicks the link. according to wht i know, the popup will be shown only when we click on the link, but not on mouse over. Is this could be done with mouseover function ? Thnx in advance, Regards, Madan __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Re: [Tobago] Problem with PDF download and Ajax
Hi Helmut, As per ur code, u give the location of a PDF doc on the server. Which when referred then that would be downloaded. But what if a pdf doc is generated within a javacode, say with Jasper Reports. How can i pass that pdf doc generated in runtime to the jsp page and display that ? Thnx in Advance, Regards, Madan - Original Message From: Bernd Bohmann <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Tuesday, 27 February, 2007 4:25:31 AM Subject: Re: [Tobago] Problem with PDF download and Ajax Hello Helmut, just solved see: http://issues.apache.org/jira/browse/TOBAGO-303 Should be available with the next nightly build Regards Bernd H. Swaczinna wrote: > Hi, > > I've a page with a link to download a PDF file. The PDF download itself > works without a problem. But after a download Ajax requests don't work > anymore, for example a popup or a tabGroup with reloadTab. > > Here's a small testcase for this behavior. > > The page: > > <%@ taglib uri="http://myfaces.apache.org/tobago/component";; prefix="tc" > %><%@ taglib uri="http://java.sun.com/jsf/core";; prefix="f" > %><%@ page contentType="text/html;charset=UTF-8" language="java" > %><%@ page pageEncoding="UTF-8" > %> > > > >rows="fixed;fixed"/> > >label="PDF" > immediate="true" > transition="false" > actionListener="#{anlagenController.showPDFActionListener}"> > > >label="Ajax"> > > > >label="Close"> > > > > > > > > > > The java code for the PDF download: > > public void showPDFActionListener(ActionEvent e) { > String filename = (String)e.getComponent().getAttributes().get("file"); > sendFile(attachmentPath, filename, "application/pdf"); > } > > protected void sendFile(String filepath, String filename, String mimeType) { > File file = new File(filepath, filename); > if (file.exists() && file.isFile()) { > try { > InputStream in = new FileInputStream(file); > FacesContext facesContext = FacesContext.getCurrentInstance(); > HttpServletResponse response = > > (HttpServletResponse)facesContext.getExternalContext().getResponse(); > response.setContentType(mimeType); > response.setContentLength(in.available()); > response.setHeader("Content-disposition", > " attachment;filename=\"" + filename + "\""); > ServletOutputStream out = response.getOutputStream(); > byte[] buffer = new byte[0x1]; > while (in.read(buffer) > 0) { > out.write(buffer); > } > in.close(); > out.close(); > StateManager stateManager = > (StateManager)facesContext.getApplication().getStateManager(); > stateManager.saveSerializedView(facesContext); > facesContext.responseComplete(); > } catch (Exception x) { > getLog().error("Error writing output", x); > } > } else { > getLog().error("File " + file.getAbsolutePath() + " not found"); > } > } > > I think there's a problem with Ajax when a page submit has no result. > > Regards > Helmut > __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
[Tobago] Form submit using JavaScript
Hi All, I have a usecase which does as follows, -> User has to enter an orderID ->If orderId is already present in the database, then he should be asked to confirm with the same orderId or cange the orderId. ->This would be asked with a javascript confirm dialog . -> if 'Ok' is clicked, the form must be submitted. else if 'Cancel' does not do any thing. The first time he enters with the po number, it should go to the server process , if poNumber already exists, then it should come back to the same page , render all the text and then show the javascript confirm dialog asking to choose the above case. I was able to achieve this as under <%-- poNumberExists Confirmation --%> Just for testing i kept as follows to print true or false, when i click on buy button, was able to send a request with ajax and get back the value as true or false. But i was stuck how to proceed with "Java script confirm" and submitting the form. Plz suggest me with this, Thnx in Advance Regards, Madan __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Re: [ Tobago ] Regarding PopUp's
Hi All, Is there any means of doing this... I am in real need of this functionality. I tried using different JavaScript frameworks like Dojo, Yahoo UI framework. But there rendering is causing some script problems when tested in FireFox and IE, and even the Z-Index is differing for the DIV's . I tried with a popup with .when clicked it would display the popup. Buts that's not my case, the popup should be shown when we place mouse over if there is no mouseOver attribute for it would be helpful for these kind of situations . Plz suggest me how to proceed to my case. Thnx in Advance, Regards, Madan - Original Message ---- From: madan chowdary <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Tuesday, 27 February, 2007 11:57:38 AM Subject: [ Tobago ] Regarding PopUp's Hi All, I need to display a popup which is shown when a user places mouse over a link. My case is as such... There would be a link, which on clicked will navigate to a page which has the User Details. Now when he places his mouse over the link, i need to show a popup which has the same details as when shown when he clicks the link. according to wht i know, the popup will be shown only when we click on the link, but not on mouse over. Is this could be done with mouseover function ? Thnx in advance, Regards, Madan Heres a new way to find what you're looking for - Yahoo! Answers __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Re: [Tobago] for loop or each
Hi Wong, If u need a better view of table alignment then use the following code as such But this is not advisable to use html table code with Tobago U can do the same with gridLayout as follows where ${storeFront.imageContentBox} is an List object , and content is an refernce for that. So u can iterate as such with JSTL forEach tag. Regards, Madan - Original Message From: "Wong, Emmanuel (Sam)" <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Monday, 5 March, 2007 6:09:04 PM Subject: [Tobago] for loop or each [Tobago] for loop or each Hi: Is there a for loop or for each examples in Tobago or my faces? I have for records of information to print, but if I use tc:sheet, I was not able to put a nice html page format for all the records. Thanks. --> Sam Wong __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Re: [Tobago] Form submit using JavaScript
Hi All, Am bit in a urgency to complete my application as my project deadline is ahead. Am stuck with a few issues like this and the mouseOver functionality for Could anyone plz suggest me how to proceed with this case ? Regards, Madan - Original Message From: madan chowdary <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Friday, 2 March, 2007 5:27:56 PM Subject: [Tobago] Form submit using JavaScript Hi All, I have a usecase which does as follows, -> User has to enter an orderID ->If orderId is already present in the database, then he should be asked to confirm with the same orderId or cange the orderId. ->This would be asked with a javascript confirm dialog . -> if 'Ok' is clicked, the form must be submitted. else if 'Cancel' does not do any thing. The first time he enters with the po number, it should go to the server process , if poNumber already exists, then it should come back to the same page , render all the text and then show the javascript confirm dialog asking to choose the above case. I was able to achieve this as under <%-- poNumberExists Confirmation --%> Just for testing i kept as follows to print true or false, when i click on buy button, was able to send a request with ajax and get back the value as true or false. But i was stuck how to proceed with "Java script confirm" and submitting the form. Plz suggest me with this, Thnx in Advance Regards, Madan Heres a new way to find what you're looking for - Yahoo! Answers __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Re: [ Tobago ] Regarding PopUp's
Hi All, Was trying to debug the application for popup when placed mouse over a link with JavaScript, but its a bit tedious to go through the JavaScript Ajax frameworks and achieve this task. Can u guyz please suggest me how to proceed for this case... And i am desperately waiting for onMouseOver attribute in to display the popup that i had when clicked the link... Regards, Madan - Original Message From: madan chowdary <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Saturday, 3 March, 2007 12:33:20 PM Subject: Re: [ Tobago ] Regarding PopUp's Hi All, Is there any means of doing this... I am in real need of this functionality. I tried using different JavaScript frameworks like Dojo, Yahoo UI framework. But there rendering is causing some script problems when tested in FireFox and IE, and even the Z-Index is differing for the DIV's . I tried with a popup with .when clicked it would display the popup. Buts that's not my case, the popup should be shown when we place mouse over if there is no mouseOver attribute for it would be helpful for these kind of situations . Plz suggest me how to proceed to my case. Thnx in Advance, Regards, Madan - Original Message From: madan chowdary <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Tuesday, 27 February, 2007 11:57:38 AM Subject: [ Tobago ] Regarding PopUp's Hi All, I need to display a popup which is shown when a user places mouse over a link. My case is as such... There would be a link, which on clicked will navigate to a page which has the User Details. Now when he places his mouse over the link, i need to show a popup which has the same details as when shown when he clicks the link. according to wht i know, the popup will be shown only when we click on the link, but not on mouse over. Is this could be done with mouseover function ? Thnx in advance, Regards, Madan Heres a new way to find what you're looking for - Yahoo! Answers Heres a new way to find what you're looking for - Yahoo! Answers __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Re: [ Tobago ] Regarding PopUp's
Hi All, After debugging this thing , at last was able to get the popup on mouseover with the help of prototype.js. The code is as such Event.observe(window, 'load', initCartSummary); function initCartSummary(){ Event.observe($('page:cartSummary:viewCartContents'), 'mouseover', showCartContents); Event.observe($('page:cartSummary:viewCartContents'), 'mouseout', showCartContents_mouseOut); Event.observe($('page:cartSummary:viewCartContents'), 'click', viewCartContents); } var delayhide = null; function viewCartContents() { if (typeof delayhide!="undefined") clearTimeout(delayhide); } function showCartContents(){ delayhide = setTimeout("Tobago.openPopupWithAction('page:cartSummary:sheetConfigPopup', 'page:cartSummary:viewCartContents')",500); } function showCartContents_mouseOut(){ if (typeof delayhide!="undefined") clearTimeout(delayhide); } Used Event object in prototype.js to observe the id for , and when mouse over then fire this action " Tobago.openPopupWithAction('page:cartSummary:sheetConfigPopup', 'page:cartSummary:viewCartContents') " When clicked on the link, captured the event by "click" option. Both the ' popup when mouseover ' and ' page navigation when clicked on the link ' are working fine. But was facing an issue like as such -- When the mouse is placed on viewCartContents link, was able to get the popup. -- After closing the popup and click on any other link in the page( say top navigation links) the page is being refreshed , so i have to click again to go to my desired page which the link refers. -- This makes me to click twice on the link. -- when removed the action attribute in for viewCartContents, and place the mouse, close the popup and then click on the top links, then was able to navigate to page which it refers. Y does this page refresh occures after i close the popup and click on other links. how could i solve this issue ? Regards, Madan - Original Message From: madan chowdary <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Tuesday, 6 March, 2007 1:14:27 AM Subject: Re: [ Tobago ] Regarding PopUp's Hi All, Was trying to debug the application for popup when placed mouse over a link with JavaScript, but its a bit tedious to go through the JavaScript Ajax frameworks and achieve this task. Can u guyz please suggest me how to proceed for this case... And i am desperately waiting for onMouseOver attribute in to display the popup that i had when clicked the link... Regards, Madan - Original Message From: madan chowdary <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Saturday, 3 March, 2007 12:33:20 PM Subject: Re: [ Tobago ] Regarding PopUp's Hi All, Is there any means of doing this... I am in real need of this functionality. I tried using different JavaScript frameworks like Dojo, Yahoo UI framework. But there rendering is causing some script problems when tested in FireFox and IE, and even the Z-Index is differing for the DIV's . I tried with a popup with .when clicked it would display the popup. Buts that's not my case, the popup
Re: [ Tobago ] Regarding PopUp's
Hi All, Please help me over this I am in real need of this functionality and my project deadline is ahead. Thnx in adnvace, Madan - Original Message From: madan chowdary <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Wednesday, 7 March, 2007 1:01:50 PM Subject: Re: [ Tobago ] Regarding PopUp's Hi All, After debugging this thing , at last was able to get the popup on mouseover with the help of prototype.js. The code is as such Event.observe(window, 'load', initCartSummary); function initCartSummary(){ Event.observe($('page:cartSummary:viewCartContents'), 'mouseover', showCartContents); Event.observe($('page:cartSummary:viewCartContents'), 'mouseout', showCartContents_mouseOut); Event.observe($('page:cartSummary:viewCartContents'), 'click', viewCartContents); } var delayhide = null; function viewCartContents() { if (typeof delayhide!="undefined") clearTimeout(delayhide); } function showCartContents(){ delayhide = setTimeout("Tobago.openPopupWithAction('page:cartSummary:sheetConfigPopup', 'page:cartSummary:viewCartContents')",500); } function showCartContents_mouseOut(){ if (typeof delayhide!="undefined") clearTimeout(delayhide); } Used Event object in prototype.js to observe the id for , and when mouse over then fire this action " Tobago.openPopupWithAction('page:cartSummary:sheetConfigPopup', 'page:cartSummary:viewCartContents') " When clicked on the link, captured the event by "click" option. Both the ' popup when mouseover ' and ' page navigation when clicked on the link ' are working fine. But was facing an issue like as such -- When the mouse is placed on viewCartContents link, was able to get the popup. -- After closing the popup and click on any other link in the page( say top navigation links) the page is being refreshed , so i have to click again to go to my desired page which the link refers. -- This makes me to click twice on the link. -- when removed the action attribute in for viewCartContents, and place the mouse, close the popup and then click on the top links, then was able to navigate to page which it refers. Y does this page refresh occures after i close the popup and click on other links. how could i solve this issue ? Regards, Madan - Original Message From: madan chowdary <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Tuesday, 6 March, 2007 1:14:27 AM Subject: Re: [ Tobago ] Regarding PopUp's Hi All, Was trying to debug the application for popup when placed mouse over a link with JavaScript, but its a bit tedious to go through the JavaScript Ajax frameworks and achieve this task. Can u guyz please suggest me how to proceed for this case... And i am desperately waiting for onMouseOver attribute in to display the popup that i had when clicked the link... Regards, Madan - Original Message From: madan chowdary <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Saturday, 3 March, 2007 12:33:20 PM Subject: Re: [ Tobago ] Regarding PopUp's Hi All, Is there any means of doing this... I am in real need of this functionalit
Re: [ Tobago ] Regarding PopUp's
Hi Volker, Added MyFaces 1.1.5 and Tobago nightly build jars. But there was no change in the behavior what i explained in my previous mails. Can u explain me how can i go ahead with Tobago.addEventListener() or Tobago.bindAsEventListener() instead of prototype.js:Event.observe() ? Thnx Regards Madan - Original Message From: Volker Weber <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Thursday, 8 March, 2007 3:19:17 PM Subject: Re: [ Tobago ] Regarding PopUp's Hi Madan, which implementation/version of jsf did you use? afaik your last version should work with myfaces 1.1.5 and tobago 1.0.10[-SNAPSHOT]. But to be future proof i suggest to use Tobago.addEventListener() or Tobago.bindAsEventListener() instead of prototype.js:Event.observe() because we are going to remove prototype from tobago. Regards, Volker 2007/3/8, madan chowdary <[EMAIL PROTECTED]>: > > Hi All, > > Please help me over this I am in real need of this functionality and my > project deadline is ahead. > > Thnx in adnvace, > > Madan > > - Original Message > From: madan chowdary <[EMAIL PROTECTED]> > To: MyFaces Discussion > Sent: Wednesday, 7 March, 2007 1:01:50 PM > Subject: Re: [ Tobago ] Regarding PopUp's > > > Hi All, > > After debugging this thing , at last was able to get the popup on mouseover > with the help of prototype.js. > > The code is as such > > > action="viewCartContents"> > > id="sheetConfigPopup"> > > > > > > > label="X"> > name="popupClose" value="immediate"/> > > > > > > value="#{shoppingCart.items}" > > columns="60px;350px;80px;100px" > var="cartItem" > showHeader="true" > > showDirectLinks="center" > > directLinkCount="10" > first="0" > > selectable="none"> > label="#{bundle.quantity}" id="number" sortable="false" align="center"> > value="#{cartItem.quantity}" id="p_quantity" /> > > > label="#{bundle.productName}" id="prdName"> > value="#{cartItem.item.productCode}" id="p_code"/> > /> > value="#{cartItem.item.productName}" id="p_name"/> > > > label="#{bundle.unitPrice}" sortable="true" align="right"> > value="#{cartItem.listPriceForQuantity}" id="p_unitprice" > > converter="CurrencyConverter" /> > > > label="#{bundle.extTotal}" sortable="true" align="right" > > value="#{cartItem.quantity * cartItem.listPriceForQuantity}" id="Ex_Total" > > converter="CurrencyConverter" /> > > > > > > > > > > Event.observe(window, 'load', initCartSummary); > > function initCartSummary(){ > > Event.observe($('page:cartSummary:viewCartContents'), > 'mouseover', > showCartContents); > > > Event.observe($('page:cartSummary:viewCartContents'), > 'mouseout', > showCartContents_mouseOut); > > > Event.observe($('page:cartSummary:viewCartContents'), > 'click', > viewCartContents); > } > >
Re: [ Tobago ] Regarding PopUp's
Hi Volker, Am totally confused how to proceed, i need both the action part and the pop box. advice me how to go with this ? Thnx Madan - Original Message From: Volker Weber <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Thursday, 8 March, 2007 4:24:37 PM Subject: Re: [ Tobago ] Regarding PopUp's The problem is the action="viewCartContents". a ajax action MUST return null as outcome. Otherwise the uiComponentTree on server is replaced by a new one and the restore fails. Regards, Volker 2007/3/8, madan chowdary <[EMAIL PROTECTED]>: > > Hi Volker, > > Added MyFaces 1.1.5 and Tobago nightly build jars. > > But there was no change in the behavior what i explained in my previous > mails. > > Can u explain me how can i go ahead with Tobago.addEventListener() or > Tobago.bindAsEventListener() instead of prototype.js:Event.observe() ? > > Thnx > > Regards > Madan > > - Original Message > From: Volker Weber <[EMAIL PROTECTED]> > To: MyFaces Discussion > Sent: Thursday, 8 March, 2007 3:19:17 PM > Subject: Re: [ Tobago ] Regarding PopUp's > > Hi Madan, > > which implementation/version of jsf did you use? > > afaik your last version should work with myfaces 1.1.5 and tobago > 1.0.10[-SNAPSHOT]. > > But to be future proof i suggest to use Tobago.addEventListener() or > Tobago.bindAsEventListener() instead of prototype.js:Event.observe() > because we are going to remove prototype from tobago. > > Regards, > Volker > > 2007/3/8, madan chowdary <[EMAIL PROTECTED]>: > > > > Hi All, > > > > Please help me over this I am in real need of this functionality and > my > > project deadline is ahead. > > > > Thnx in adnvace, > > > > Madan > > > > - Original Message > > From: madan chowdary <[EMAIL PROTECTED]> > > To: MyFaces Discussion > > Sent: Wednesday, 7 March, 2007 1:01:50 PM > > Subject: Re: [ Tobago ] Regarding PopUp's > > > > > > Hi All, > > > > After debugging this thing , at last was able to get the popup on > mouseover > > with the help of prototype.js. > > > > The code is as such > > > > > > > action="viewCartContents"> > > > > > id="sheetConfigPopup"> > > > > > > > > > > > > > > > label="X"> > > > name="popupClose" value="immediate"/> > > > > > > > > > > id="checkOutSheetPopUp" > > > > value="#{shoppingCart.items}" > > > > columns="60px;350px;80px;100px" > > var="cartItem" > > > showHeader="true" > > > > showDirectLinks="center" > > > > directLinkCount="10" > > first="0" > > > > selectable="none"> > > > label="#{bundle.quantity}" id="number" sortable="false" align="center"> > > > value="#{cartItem.quantity}" id="p_quantity" /> > > > > > > > label="#{bundle.productName}" id="prdName"> > > > value="#{cartItem.item.productCode}" id="p_code"/> > > > /> > > > value="#{cartItem.item.productName}" id="p_name"/> > > > > > > > label="#{bundle.unitPrice}" sortable="true" align="right"> > > > value="#{cartItem.listPriceForQuantity}" id="p_unitprice" > > > > converter="CurrencyConverter" /> > > > > > &g
Re: [ Tobago ] Regarding PopUp's
No Volker, The which i used to display the popup with the help of prototype.js as specifed in my previous mail and the action part in navigates to another page are working fine. But whts my problem is , after i get a popup when placed my mosuse over the link and close the popup, I am not able to navigate with the other links in the page in first attempt . But if i click the second time, i am able to navigate. So i have to click twice on the links to go to my desired page. Think u understood my case ? Madan - Original Message From: Volker Weber <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Thursday, 8 March, 2007 5:06:29 PM Subject: Re: [ Tobago ] Regarding PopUp's If i understand this correct the action part navigates to another view, but did not open the popup? If so you should not put the popup into this link. you can add a invisible link for the popup action after this link. 2007/3/8, madan chowdary <[EMAIL PROTECTED]>: > > Hi Volker, > > Am totally confused how to proceed, i need both the action part and the pop > box. > > advice me how to go with this ? > > Thnx > > Madan > > - Original Message > From: Volker Weber <[EMAIL PROTECTED]> > To: MyFaces Discussion > Sent: Thursday, 8 March, 2007 4:24:37 PM > Subject: Re: [ Tobago ] Regarding PopUp's > > The problem is the action="viewCartContents". > > a ajax action MUST return null as outcome. Otherwise the > uiComponentTree on server is replaced by a new one and the restore > fails. > > Regards, > Volker > > 2007/3/8, madan chowdary <[EMAIL PROTECTED]>: > > > > Hi Volker, > > > > Added MyFaces 1.1.5 and Tobago nightly build jars. > > > > But there was no change in the behavior what i explained in my previous > > mails. > > > > Can u explain me how can i go ahead with Tobago.addEventListener() or > > Tobago.bindAsEventListener() instead of prototype.js:Event.observe() ? > > > > Thnx > > > > Regards > > Madan > > > > - Original Message > > From: Volker Weber <[EMAIL PROTECTED]> > > To: MyFaces Discussion > > Sent: Thursday, 8 March, 2007 3:19:17 PM > > Subject: Re: [ Tobago ] Regarding PopUp's > > > > Hi Madan, > > > > which implementation/version of jsf did you use? > > > > afaik your last version should work with myfaces 1.1.5 and tobago > > 1.0.10[-SNAPSHOT]. > > > > But to be future proof i suggest to use Tobago.addEventListener() or > > Tobago.bindAsEventListener() instead of prototype.js:Event.observe() > > because we are going to remove prototype from tobago. > > > > Regards, > > Volker > > > > 2007/3/8, madan chowdary <[EMAIL PROTECTED]>: > > > > > > Hi All, > > > > > > Please help me over this I am in real need of this functionality > and > > my > > > project deadline is ahead. > > > > > > Thnx in adnvace, > > > > > > Madan > > > > > > - Original Message > > > From: madan chowdary <[EMAIL PROTECTED]> > > > To: MyFaces Discussion > > > Sent: Wednesday, 7 March, 2007 1:01:50 PM > > > Subject: Re: [ Tobago ] Regarding PopUp's > > > > > > > > > Hi All, > > > > > > After debugging this thing , at last was able to get the popup on > > mouseover > > > with the help of prototype.js. > > > > > > The code is as such > > > > > > > > > > > action="viewCartContents"> > > > > > > > > id="sheetConfigPopup"> > > > > > > > > > > > > > > > > > > > > > > > label="X"> > > > > > name="popupClose" value="immediate"/> > > > > > > > > > > > > > > > > > id="checkOutSheetPopUp" > > > > > > value="#{shoppingCart.items}" > > > > > > columns="60px;350px;80px;100px" > > > > var="cartItem" > > >
Re: [ Tobago ] Regarding PopUp's
Hi Volker, Replaced Event.observe() with Tobago.addEventListener() and the popup displayed fine. But regarding the issue what i had, how can i proceed... Is there any means of archiving my task to open a popup and navigate to another page with the same link and no double clicks on other links. Tried with javascript frameworks like Dojo, YUI which resulted in DIV alignment issues in FireFox and IE. This issue is to be fixed very soon as my project deadline is very near. Suggest me how can i move ahead to accomplish this task. Thnx in advance, Regards, Madan - Original Message From: Volker Weber <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Thursday, 8 March, 2007 8:24:00 PM Subject: Re: [ Tobago ] Regarding PopUp's > Can u explain me how can i go ahead with Tobago.addEventListener() or > Tobago.bindAsEventListener() instead of prototype.js:Event.observe() ? I just took a look in the sources: you can replace Event.observe() with Tobago.addEventListener(). They take the same params. __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Re: [ Tobago ] Regarding PopUp's
Thnx volker, Will try that out and say u back if any issues occurred.. Regards Madan - Original Message From: Volker Weber <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Friday, 9 March, 2007 5:47:59 PM Subject: Re: [ Tobago ] Regarding PopUp's Hi Madan, Add the 'invisible' link as i wrote before, and change your script to submit this actionIs instead of the one where the hover event is observed. It's no problem to submit a links actionId in mouseover script of another one. Regards, Volker 2007/3/9, madan chowdary <[EMAIL PROTECTED]>: > > Hi Volker, > > Replaced Event.observe() with Tobago.addEventListener() and the popup > displayed fine. > > But regarding the issue what i had, how can i proceed... > > Is there any means of archiving my task to open a popup and navigate to > another page with the same link and no double clicks on other links. > > Tried with javascript frameworks like Dojo, YUI which resulted in DIV > alignment issues in FireFox and IE. > > This issue is to be fixed very soon as my project deadline is very near. > > Suggest me how can i move ahead to accomplish this task. > > Thnx in advance, > > Regards, > Madan > > > > > > - Original Message > From: Volker Weber <[EMAIL PROTECTED]> > To: MyFaces Discussion > Sent: Thursday, 8 March, 2007 8:24:00 PM > Subject: Re: [ Tobago ] Regarding PopUp's > > > > Can u explain me how can i go ahead with Tobago.addEventListener() or > > Tobago.bindAsEventListener() instead of prototype.js:Event.observe() ? > > I just took a look in the sources: you can replace Event.observe() > with Tobago.addEventListener(). They take the same params. > > > > Here's a new way to find what you're looking for - Yahoo! Answers __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Re: [ Tobago ] Regarding PopUp's
Hi Volker, Thnx for the suggestion regarding the invisible link. Now was able to see the popup and navigate to other pages without any issue. Regards, Madan - Original Message From: madan chowdary <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Friday, 9 March, 2007 5:53:01 PM Subject: Re: [ Tobago ] Regarding PopUp's Thnx volker, Will try that out and say u back if any issues occurred.. Regards Madan - Original Message From: Volker Weber <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Friday, 9 March, 2007 5:47:59 PM Subject: Re: [ Tobago ] Regarding PopUp's Hi Madan, Add the 'invisible' link as i wrote before, and change your script to submit this actionIs instead of the one where the hover event is observed. It's no problem to submit a links actionId in mouseover script of another one. Regards, Volker 2007/3/9, madan chowdary <[EMAIL PROTECTED]>: > > Hi Volker, > > Replaced Event.observe() with Tobago.addEventListener() and the popup > displayed fine. > > But regarding the issue what i had, how can i proceed... > > Is there any means of archiving my task to open a popup and navigate to > another page with the same link and no double clicks on other links. > > Tried with javascript frameworks like Dojo, YUI which resulted in DIV > alignment issues in FireFox and IE. > > This issue is to be fixed very soon as my project deadline is very near. > > Suggest me how can i move ahead to accomplish this task. > > Thnx in advance, > > Regards, > Madan > > > > > > - Original Message > From: Volker Weber <[EMAIL PROTECTED]> > To: MyFaces Discussion > Sent: Thursday, 8 March, 2007 8:24:00 PM > Subject: Re: [ Tobago ] Regarding PopUp's > > > > Can u explain me how can i go ahead with Tobago.addEventListener() or > > Tobago.bindAsEventListener() instead of prototype.js:Event.observe() ? > > I just took a look in the sources: you can replace Event.observe() > with Tobago.addEventListener(). They take the same params. > > > > Here's a new way to find what you're looking for - Yahoo! Answers Heres a new way to find what you're looking for - Yahoo! Answers __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
[ Tobago ] No Page Refresh while validation
Hi All, I have a form in which the user has to enter some data and then submit the form. If at all he misses anything , he should be informed that all fields are required. To do this , i used validator attribute in the form elements. But this validation does a page refresh and then shows the errors in or But i was asked to do the validation without page refresh, in a javascript alert message, and the message should be i18n format. I used the "onclick" attribute and called a javascript function which gives a alert if any field is empty. But how can i show the messages in i18n format. Validation error will differ based upon the validations i do. so the alert message should be shown to the user based upon his locale set. How can i achieve this ? thnx in advance Regards, Madan __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Re: [ Tobago ] No Page Refresh while validation
Hi Jorn, Can u please explain with a simple example . There are many validations i should be doing in the same form wihout refreshing my page. Some of the validations are as such, 1) All the fields are required. 2) Address Validation, which should be done using an Ajax call to NRGSoft, which is a paid service for address validation. 3) Have to check if the details entered by the user already exists in the DB, so have to use the renderPartially and get back the result. So i need to alert the user if any of these fails. and it should be done through JavaScript Alert. I tried to place the results which come back with Ajax request in . but based upon the conditions i need to set the value. As there's no " rendered " attribute i was not able to use this hidden. >> You'd have to somehow render that message into your JavaScript when >> rendering the view. Can u also explain me how can i do this ? Regards, Madan - Original Message From: Jörn Zaefferer <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Sunday, 11 March, 2007 3:05:05 PM Subject: Re: [ Tobago ] No Page Refresh while validation JavaScript based form-validation should always start with the submit event: When a user presses enter inside one form field, the form is submitted without triggering your onclick event. In your case it should be possible to use JSF's built-in localization features. You'd have to somehow render that message into your JavaScript when rendering the view. __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Re: [ Tobago ] No Page Refresh while validation
Hi Volker, Can u explain with an example. Regards, Madan - Original Message From: Volker Weber <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Monday, 12 March, 2007 2:50:22 PM Subject: Re: [ Tobago ] No Page Refresh while validation Hi Madan, i just commited the ability to add javascript functions for executing on submit https://issues.apache.org/jira/browse/TOBAGO-311 you can use this for your client-side validation. Regards, Volker 2007/3/11, madan chowdary <[EMAIL PROTECTED]>: > > Hi Jorn, > > Can u please explain with a simple example . > > There are many validations i should be doing in the same form wihout > refreshing my page. > > Some of the validations are as such, > 1) All the fields are required. > 2) Address Validation, which should be done using an Ajax call to NRGSoft, > which is a paid service for address validation. > 3) Have to check if the details entered by the user already exists in the > DB, so have to use the renderPartially and get back the result. > > So i need to alert the user if any of these fails. and it should be done > through JavaScript Alert. > > I tried to place the results which come back with Ajax request in > . but based upon the conditions i need to set the value. As > there's no " rendered " attribute i was not able to use this hidden. > > >> You'd have to somehow render that message into your JavaScript when > rendering the view. > > Can u also explain me how can i do this ? > > Regards, > Madan > > > > > > - Original Message > From: Jörn Zaefferer <[EMAIL PROTECTED]> > To: MyFaces Discussion > Sent: Sunday, 11 March, 2007 3:05:05 PM > Subject: Re: [ Tobago ] No Page Refresh while validation > > JavaScript based form-validation should always start with the submit event: > When a user presses enter inside one form field, the form is submitted > without triggering your onclick event. > > In your case it should be possible to use JSF's built-in localization > features. You'd have to somehow render that message into your JavaScript > when rendering the view. > > > > Here's a new way to find what you're looking for - Yahoo! Answers __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Re: [ Tobago ] No Page Refresh while validation
Hi Volker, I Tried the same with onclick attribute in function validateForm(){ var element = document.getElementById(); if(element.value == ""){ alert(" Value required "); ///---> Need Internationalization here (English , Spanish etc..) } else{ tobago.submitAction('page:buyAction',true); } } The above code worked fined, but the problem is the text in the alert message should be in i18n format. This is the problem i am facing. Regards, Madan - Original Message From: Volker Weber <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Monday, 12 March, 2007 3:25:40 PM Subject: Re: [ Tobago ] No Page Refresh while validation Hi, you need to wait for the next nightly build, or build tobago yourself from current sources. function doValidation() { // do your validation stuff here. e.g. var element = document.getElementById(); if (element.value == "" ) { alert("value is required for " + ); // return false for cancel submitting return false; } // return true for continue submitting return true; } Regards, Volker 2007/3/12, madan chowdary <[EMAIL PROTECTED]>: > > Hi Volker, > > Can u explain with an example. > > Regards, > Madan > > - Original Message > From: Volker Weber <[EMAIL PROTECTED]> > To: MyFaces Discussion > Sent: Monday, 12 March, 2007 2:50:22 PM > Subject: Re: [ Tobago ] No Page Refresh while validation > > Hi Madan, > > i just commited the ability to add javascript functions for executing on > submit > https://issues.apache.org/jira/browse/TOBAGO-311 > > you can use this for your client-side validation. > > Regards, > Volker > > 2007/3/11, madan chowdary <[EMAIL PROTECTED]>: > > > > Hi Jorn, > > > > Can u please explain with a simple example . > > > > There are many validations i should be doing in the same form wihout > > refreshing my page. > > > > Some of the validations are as such, > > 1) All the fields are required. > > 2) Address Validation, which should be done using an Ajax call to NRGSoft, > > which is a paid service for address validation. > > 3) Have to check if the details entered by the user already exists in the > > DB, so have to use the renderPartially and get back the result. > > > > So i need to alert the user if any of these fails. and it should be done > > through JavaScript Alert. > > > > I tried to place the results which come back with Ajax request in > > . but based upon the conditions i need to set the value. As > > there's no " rendered " attribute i was not able to use this hidden. > > > > >> You'd have to somehow render that message into your JavaScript when > > rendering the view. > > > > Can u also explain me how can i do this ? > > > > Regards, > > Madan > > > > > > > > > > > > - Original Message > > From: Jörn Zaefferer <[EMAIL PROTECTED]> > > To: MyFaces Discussion > > Sent: Sunday, 11 March, 2007 3:05:05 PM > > Subject: Re: [ Tobago ] No Page Refresh while validation > > > > JavaScript based form-validation should always start with the submit > event: > > When a user presses enter inside one form field, the form is submitted > > without triggering your onclick event. > > > > In your case it should be possible to use JSF's built-in localization > > features. You'd have to somehow render that message into your JavaScript > > when rendering the view. > > > > > > > > Here's a new way to find what you're looking for - Yahoo! Answers > > > > Here's a new way to find what you're looking for - Yahoo! Answers __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Re: JSF - New window to confirm delete
Hi Wong, I have the same case to do with the confirmation. But the confirmation will have to be displayed only when a particular set of variables are set in my backing bean. Is there anyway to render the facet based upon the boolean condition i get for the backing bean. The case is as such, --> If an order ID already exists in the DB, i set a variable in the bean with either true or false. Based upon this condition i need to show a confirmation to the user that " if he wishes to continue click ok, else click cancel to enter new orderID". Can u tell me how could i do this ? Regards, Madan - Original Message From: "Wong, Emmanuel (Sam)" <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Monday, 12 March, 2007 8:42:38 PM Subject: RE: JSF - New window to confirm delete From: Adrian Mitev [mailto:[EMAIL PROTECTED] Sent: Monday, March 12, 2007 9:15 AM To: MyFaces Discussion Subject: Re: JSF - New window to confirm delete try javascript confirm() ? 2007/3/12, edney imme <[EMAIL PROTECTED]>: Hallo, I have a windown, were I need to open another windown, like a popup windown. And in that windown, I will use to ask to the user if he wants to confirm delete the item, or cancel this operation. Detail: I can't use javascript popup window, it must be a new window, with 2 buttons: Ok and Cancel. Did anibody did something like that before ? Or has any idea of how I can do it ? I alredy do some similar using Struts, but never with JSF. Thanks for atention. __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Fw: [ Tobago ]Sheet gets Refreshed
- Forwarded Message From: madan chowdary <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Sent: Monday, 12 March, 2007 4:33:46 PM Subject: [ Tobago ]Sheet gets Refreshed Hi Volker, As i have some images attached with this mail, i am sending this mail directly to you instead to the group. I have a sheet which contain details of an order placed by the user. The order Qty entered by the user is available in the textfield in the sheet. But if at all the user refreshes the page , the sheet gets refreshed and the values in the Qty are being altered. This would be a blocker in my app if found by the testers. Please find the difference in the images i attached with this mail, u can see that the Qty is varied for the products. This values are changed when i refresh the page as in the images before.gif and after.gif. Regards, Madan Heres a new way to find what you're looking for - Yahoo! Answers __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/ before.gif Description: GIF image after.gif Description: GIF image
Re: [Tobago] opening a new broswer and the original IE broswer lost session
Hi Wong , think i faced the same problem but haven't raised that in the groups. I tried as such and thats working fine. Export to PDF function openPdfPopup(){ window.open('pdf/pdfOrder.jsp', 'PDF', 'menubar=no,status=no,toolbar=no,left=0,top=0,fullscreen=yes,resizable=yes'); } in pdfOrder.jsp, i used the bean refernce to generate the PDF doc. Hope this would help u .. Regards, Madan - Original Message From: "Wong, Emmanuel (Sam)" <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Tuesday, 13 March, 2007 6:24:36 PM Subject: [Tobago] opening a new broswer and the original IE broswer lost session [Tobago] opening a new broswer and the original IE broswer lost session Hi: I am using the IE browser. I create a print button to open a new browser to print, then I tried to submit a record form the original browser, but nothing got submitted. When I click on other tab, I got session timeout. It seems the FaceContext was lost. I would need to refresh the browser in order to get back the FaceContext object back. Could anyone tell me how to open a new browser and the FaceContext will not lost from the original browser? Or is this a bug for Tobago? Thanks. I am using this suggestion below: JSP ... // Everytime the page is loaded, check for an existing PDF file to display function showPrintResult(url) { if (url != null && url != "") { window.open(url, "Print"); } } ... ... PrintController public void printAction() { // Generate PDF file ... // Set PDF file printFile = "http://localhost:8080/gena/print/test.pdf";;; } public String getPrintFile() { // Return and reset PDF file String tmp = printFile; printFile = null; return tmp; } --> Sam Wong __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Re: [Tobago] opening a new broswer and the original IE broswer lost session
Hi Wong, reprint option in the same window.open() popup or you are opening another window.open() . - Original Message From: "Wong, Emmanuel (Sam)" <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Tuesday, 13 March, 2007 6:57:15 PM Subject: RE: [Tobago] opening a new broswer and the original IE broswer lost session [Tobago] opening a new broswer and the original IE broswer lost session I tried your suggestion below. It works only first print. If I reprint it again, the session got lost again. Thanks. From: madan chowdary [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 13, 2007 9:16 AM To: MyFaces Discussion Subject: Re: [ Tobago ] opening a new broswer and the original IE broswer lost session Hi Wong , think i faced the same problem but haven't raised that in the groups. I tried as such and thats working fine. Export to PDF function openPdfPopup(){ window.open('pdf/pdfOrder.jsp', 'PDF', 'menubar=no,status=no,toolbar=no,left=0,top=0,fullscreen=yes,resizable=yes'); } in pdfOrder.jsp, i used the bean refernce to generate the PDF doc. Hope this would help u .. Regards, Madan - Original Message From: "Wong, Emmanuel (Sam)" <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Tuesday, 13 March, 2007 6:24:36 PM Subject: [ Tobago ] opening a new broswer and the original IE broswer lost session Hi: I am using the IE browser. I create a print button to open a new browser to print, then I tried to submit a record form the original browser, but nothing got submitted. When I click on other tab, I got session timeout. It seems the FaceContext was lost. I would need to refresh the browser in order to get back the FaceContext object back. Could anyone tell me how to open a new browser and the FaceContext will not lost from the original browser? Or is this a bug for Tobago ? Thanks. I am using this suggestion below: JSP ... // Everytime the page is loaded, check for an existing PDF file to display function showPrintResult(url) { if (url != null && url != "") { window.open(url, "Print"); } } ... ... PrintController public void printAction() { // Generate PDF file ... // Set PDF file printFile = "http://localhost:8080/gena/print/test.pdf" } public String getPrintFile() { // Return and reset PDF file String tmp = printFile; printFile = null; return tmp; } --> Sam Wong Heres a new way to find what you're looking for - Yahoo! Answers __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Re: JSF - New window to confirm delete
Hello Wong, Can u tell me how could i do the previously said case for the confirmation.. Madan - Original Message From: madan chowdary <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Tuesday, 13 March, 2007 10:22:32 AM Subject: Re: JSF - New window to confirm delete Hi Wong, I have the same case to do with the confirmation. But the confirmation will have to be displayed only when a particular set of variables are set in my backing bean. Is there anyway to render the facet based upon the boolean condition i get for the backing bean. The case is as such, --> If an order ID already exists in the DB, i set a variable in the bean with either true or false. Based upon this condition i need to show a confirmation to the user that " if he wishes to continue click ok, else click cancel to enter new orderID". Can u tell me how could i do this ? Regards, Madan - Original Message From: "Wong, Emmanuel (Sam)" <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Monday, 12 March, 2007 8:42:38 PM Subject: RE: JSF - New window to confirm delete From: Adrian Mitev [mailto:[EMAIL PROTECTED] Sent: Monday, March 12, 2007 9:15 AM To: MyFaces Discussion Subject: Re: JSF - New window to confirm delete try javascript confirm() ? 2007/3/12, edney imme <[EMAIL PROTECTED]>: Hallo, I have a windown, were I need to open another windown, like a popup windown. And in that windown, I will use to ask to the user if he wants to confirm delete the item, or cancel this operation. Detail: I can't use javascript popup window, it must be a new window, with 2 buttons: Ok and Cancel. Did anibody did something like that before ? Or has any idea of how I can do it ? I alredy do some similar using Struts, but never with JSF. Thanks for atention. Heres a new way to find what you're looking for - Yahoo! Answers __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
[ Tobago ] defaultCommand in
Hi All, I have a link which is shown with an image. If at all i use a button for the action, i used ' defaultCommand ' attribute to achieve my task if i press enter. But now as i am using link, i was not able to complete the action when i press enter. I need to show an image in the form, but when used image in was getting a border which looks bad. Is there any means to achieve the defaultCommand action to a link ? Regards, Madan __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
[Tobago] Sheet gets Refreshed
Hi All, I have a sheet which contain details of an order placed by the user. The order Qty entered by the user is available in the textfield in the sheet. But if at all the user refreshes the page , the sheet gets refreshed and the values in the Qty are being altered. This would be a blocker in my app if found by the testers. Please find the difference in the images i attached with this mail, u can see that the Qty is varied for the products. This values are changed when i refresh the page as in the images before.gif and after.gif. Regards, Madan __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/ before.gif Description: GIF image after.gif Description: GIF image
Re: [Tobago] Sheet gets Refreshed
Hi All, Thnx for the reply, mistake was on my side... Values are being displayed randomly when getting them from the DB. Fixed that and now the sheet values are being displayed the same even after refresh or so. Regards, Madan - Original Message From: Volker Weber <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Wednesday, 14 March, 2007 10:50:21 PM Subject: Re: [Tobago] Sheet gets Refreshed Hi Madan, this looks like the model changes, at least the order, while the sheet is on the client. Make sure the list in the backing bean is not changed between rendering and restoring. Regards, Volker 2007/3/14, madan chowdary <[EMAIL PROTECTED]>: > > Hi All, > > I have a sheet which contain details of an order placed by the user. > > The order Qty entered by the user is available in the textfield in the > sheet. > > But if at all the user refreshes the page , the sheet gets refreshed and the > values in the Qty are being altered. > > This would be a blocker in my app if found by the testers. > > Please find the difference in the images i attached with this mail, u can > see that the Qty is varied for the products. > > This values are changed when i refresh the page as in the images before.gif > and after.gif. > > Regards, > Madan > > > > > > Here's a new way to find what you're looking for - Yahoo! Answers > __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
[ Tobago ] Change the Translation
Hi All, Is there anyway to change the moving squares while translation and simply display " Page being loaded...Please wait " How can i do this ? Madan __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Re: [ Tobago ] Change the Translation
Hi All, Thnx for the suggestion... I have one more question to ask regarding the translations , popup and date picker. My screen resolution is 1024 * 768 px. So if at all a translations occur,then the whole screen is being covered by it and that works fine. But what happens in my case is, a few of my application forms is of height 1000px, as usual the submit buttons will be at the end of the form. Now when i submit the button, the translation occurs, but only upto a height of the standard 768px. The rest of the screen looks as such...this may confuse the customer and he has to move upwards to see whts happening And even the date picker, i have that at the end of the form say @ 900px, but its being displayed in the middle of 768px, so the user has to scrollup and select the date and again scroll down to submit the form. These doesn't affect the application during development , but will have an effect for the customer when it goes into production. how can i rectify these things ? Regards, Madan - Original Message From: Volker Weber <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Thursday, 15 March, 2007 1:36:50 AM Subject: Re: [ Tobago ] Change the Translation Hi, you did not need to derive a own theme. You can replace this image by providing one with the same path, starting with the 'html' in a tobago-resource-path in your application. e.g. configure the resource-path in the tobago-config.xml of your app: tobago-resource and create this path in your webapp tobago-resource/html/scarborough/standard/image/ and put your replacement into this. Every tobago resource can be replaced this way. Regards, Volker 2007/3/14, Arvid Hülsebus <[EMAIL PROTECTED]>: > Hello, > > the easiest way would be to derive a theme from the one you are using > (if you are using one of the provided ones) and replace the image > > ...\src\main\resources\org\apache\myfaces\tobago\renderkit\html\scarborough\standard\image\tobago-overlay-wait.gif > > For a minimal derived theme see ...\example\tobago-theme-example > > HTH, > > Arvid > > madan chowdary wrote: > > Hi All, > > > > Is there anyway to change the moving squares while translation > > > > and simply display " Page being loaded...Please wait " > > > > How can i do this ? > > > > Madan > > > > > > Here's a new way to find what you're looking for - Yahoo! Answers > > <http://us.rd.yahoo.com/mail/in/yanswers/*http://in.answers.yahoo.com/> > __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Re: [ Tobago ] Change the Translation
ok sure Volker, will post a issue regarding this.. Regards, Madan - Original Message From: Volker Weber <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Thursday, 15 March, 2007 5:37:02 PM Subject: Re: [ Tobago ] Change the Translation Hi Madan, could you please add a jira entry for this. I'm not sure if this is are two problems or only one, but of cause the translation layer should hide the complete app, and the popup should open centered to the visible area and the layer should also hide the full app. Regards, Volker 2007/3/15, madan chowdary <[EMAIL PROTECTED]>: > > Hi All, > > Thnx for the suggestion... > > I have one more question to ask regarding the translations , popup and date > picker. > > My screen resolution is 1024 * 768 px. So if at all a translations > occur,then the whole screen is being covered by it and that works fine. > > But what happens in my case is, a few of my application forms is of height > 1000px, as usual the submit buttons will be at the end of the form. > > Now when i submit the button, the translation occurs, but only upto a height > of the standard 768px. > > The rest of the screen looks as such...this may confuse the customer and he > has to move upwards to see whts happening > > And even the date picker, i have that at the end of the form say @ 900px, > but its being displayed in the middle of 768px, so the user has to scrollup > and select the date and again scroll down to submit the form. > > These doesn't affect the application during development , but will have an > effect for the customer when it goes into production. > > how can i rectify these things ? > > Regards, > Madan > > > - Original Message > From: Volker Weber <[EMAIL PROTECTED]> > To: MyFaces Discussion > Sent: Thursday, 15 March, 2007 1:36:50 AM > Subject: Re: [ Tobago ] Change the Translation > > Hi, > > you did not need to derive a own theme. > > You can replace this image by providing one with the same path, > starting with the 'html' in a tobago-resource-path in your > application. > > e.g. > > configure the resource-path in the tobago-config.xml of your app: > tobago-resource > > and create this path in your webapp > tobago-resource/html/scarborough/standard/image/ > and put your replacement into this. > > Every tobago resource can be replaced this way. > > Regards, > Volker > > 2007/3/14, Arvid Hülsebus <[EMAIL PROTECTED]>: > > Hello, > > > > the easiest way would be to derive a theme from the one you are using > > (if you are using one of the provided ones) and replace the image > > > > > ...\src\main\resources\org\apache\myfaces\tobago\renderkit\html\scarborough\standard\image\tobago-overlay-wait.gif > > > > For a minimal derived theme see > ...\example\tobago-theme-example > > > > HTH, > > > > Arvid > > > > madan chowdary wrote: > > > Hi All, > > > > > > Is there anyway to change the moving squares while translation > > > > > > and simply display " Page being loaded...Please wait " > > > > > > How can i do this ? > > > > > > Madan > > > > > > > > > > Here's a new way to find what you're looking for - Yahoo! Answers > > > > <http://us.rd.yahoo.com/mail/in/yanswers/*http://in.answers.yahoo.com/> > > > > > > Here's a new way to find what you're looking for - Yahoo! Answers __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
[ Tobago ] Disable popup rendering based upon condition
Hi All, I have a popup to be displayed based upon a condition if it returns true. I placed the popup code as such in Just for testing purpose i wrote this code, placed ' rendered="false" ' in . But the popup is being displayed irespective of the rendered value. How can i display the popup when a button is clicked based upon the condition which returns true/false. And i have 2-3 popups written, so based upon the condition i set, am use to display only one of them to the customer. Thnx in advance Madan __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Re: [ Tobago ] Disable popup rendering based upon condition
Hello Bernd, Can u give an example, as i haven't worked on value binding till now.. Madan - Original Message From: Bernd Bohmann <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Saturday, 17 March, 2007 1:22:57 PM Subject: Re: [ Tobago ] Disable popup rendering based upon condition Hello Madan, this works only if the rendered attribute points to a value binding. Regards Bernd madan chowdary wrote: > Hi All, > > I have a popup to be displayed based upon a condition if it returns true. > > I placed the popup code as such in > > > > > > > > > > > > Just for testing purpose i wrote this code, placed ' rendered="false" ' in > . > > But the popup is being displayed irespective of the rendered value. > > How can i display the popup when a button is clicked based upon the condition > which returns true/false. > > And i have 2-3 popups written, so based upon the condition i set, am use to > display only one of them to the customer. > > Thnx in advance > > Madan > > > > > > > __ > Yahoo! India Answers: Share what you know. Learn something new > http://in.answers.yahoo.com/ __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Re: [ Tobago ] Disable popup rendering based upon condition
Hi Bernd, I replaced rendered="false/true" with rendered="#{dropshipCheckout.showPopup}" But if i place this in , as soon the page loads, the popup is displayed on the screen showPopup=true in the managed bean. And i need the popup to be displayed without page refresh.. how can i achieve these ? Madan - Original Message From: Bernd Bohmann <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Saturday, 17 March, 2007 2:39:20 PM Subject: Re: [ Tobago ] Disable popup rendering based upon condition For example: madan chowdary wrote: > Hello Bernd, > > Can u give an example, as i haven't worked on value binding till now.. > > Madan > > - Original Message > From: Bernd Bohmann <[EMAIL PROTECTED]> > To: MyFaces Discussion > Sent: Saturday, 17 March, 2007 1:22:57 PM > Subject: Re: [ Tobago ] Disable popup rendering based upon condition > > Hello Madan, > > this works only if the rendered attribute points to a value binding. > > Regards > > Bernd > > madan chowdary wrote: >> Hi All, >> >> I have a popup to be displayed based upon a condition if it returns true. >> >> I placed the popup code as such in >> >> >> >> > rendered="false"> >> >> >> >> >> >> >> >> Just for testing purpose i wrote this code, placed ' rendered="false" ' in >> . >> >> But the popup is being displayed irespective of the rendered value. >> >> How can i display the popup when a button is clicked based upon the >> condition which returns true/false. >> >> And i have 2-3 popups written, so based upon the condition i set, am use to >> display only one of them to the customer. >> >> Thnx in advance >> >> Madan >> >> >> >> >> >> >> __ >> Yahoo! India Answers: Share what you know. Learn something new >> http://in.answers.yahoo.com/ > > > > > > > > > __ > Yahoo! India Answers: Share what you know. Learn something new > http://in.answers.yahoo.com/ __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
[ Tobago ] help regarding binding attribute.
Hi All, I haven't used 'binding' attribute in the tags till now. I need to bind a in the backing bean. Can anyone send me an simple example which binds to a and a simple explanation on how to use binding. I need to set the value in that method and display that on the screen with the help of binding. Thnx in Advance Madan __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Re: [ Tobago ] Change the Translation
Hi All, Can anyone post comments or help me over the issue i raised https://issues.apache.org/jira/browse/TOBAGO-324 Regards, Madan - Original Message From: madan chowdary <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Thursday, 15 March, 2007 7:17:51 PM Subject: Re: [ Tobago ] Change the Translation ok sure Volker, will post a issue regarding this.. Regards, Madan - Original Message From: Volker Weber <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Thursday, 15 March, 2007 5:37:02 PM Subject: Re: [ Tobago ] Change the Translation Hi Madan, could you please add a jira entry for this. I'm not sure if this is are two problems or only one, but of cause the translation layer should hide the complete app, and the popup should open centered to the visible area and the layer should also hide the full app. Regards, Volker 2007/3/15, madan chowdary <[EMAIL PROTECTED]>: > > Hi All, > > Thnx for the suggestion... > > I have one more question to ask regarding the translations , popup and date > picker. > > My screen resolution is 1024 * 768 px. So if at all a translations > occur,then the whole screen is being covered by it and that works fine. > > But what happens in my case is, a few of my application forms is of height > 1000px, as usual the submit buttons will be at the end of the form. > > Now when i submit the button, the translation occurs, but only upto a height > of the standard 768px. > > The rest of the screen looks as such...this may confuse the customer and he > has to move upwards to see whts happening > > And even the date picker, i have that at the end of the form say @ 900px, > but its being displayed in the middle of 768px, so the user has to scrollup > and select the date and again scroll down to submit the form. > > These doesn't affect the application during development , but will have an > effect for the customer when it goes into production. > > how can i rectify these things ? > > Regards, > Madan > > > - Original Message > From: Volker Weber <[EMAIL PROTECTED]> > To: MyFaces Discussion > Sent: Thursday, 15 March, 2007 1:36:50 AM > Subject: Re: [ Tobago ] Change the Translation > > Hi, > > you did not need to derive a own theme. > > You can replace this image by providing one with the same path, > starting with the 'html' in a tobago-resource-path in your > application. > > e.g. > > configure the resource-path in the tobago-config.xml of your app: > tobago-resource > > and create this path in your webapp > tobago-resource/html/scarborough/standard/image/ > and put your replacement into this. > > Every tobago resource can be replaced this way. > > Regards, > Volker > > 2007/3/14, Arvid Hülsebus <[EMAIL PROTECTED]>: > > Hello, > > > > the easiest way would be to derive a theme from the one you are using > > (if you are using one of the provided ones) and replace the image > > > > > ...\src\main\resources\org\apache\myfaces\tobago\renderkit\html\scarborough\standard\image\tobago-overlay-wait.gif > > > > For a minimal derived theme see > ...\example\tobago-theme-example > > > > HTH, > > > > Arvid > > > > madan chowdary wrote: > > > Hi All, > > > > > > Is there anyway to change the moving squares while translation > > > > > > and simply display " Page being loaded...Please wait " > > > > > > How can i do this ? > > > > > > Madan > > > > > > > > > > Here's a new way to find what you're looking for - Yahoo! Answers > > > > <http://us.rd.yahoo.com/mail/in/yanswers/*http://in.answers.yahoo.com/> > > > > > > Here's a new way to find what you're looking for - Yahoo! Answers Here’s a new way to find what you're looking for - Yahoo! Answers __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
[ Tobago ] maxLength in and
Hi All, I have a constraint for inputfield to take only 4 numerics thai is to be entered by the user. To do this i need the maxLength attribute thats present in Html tags but not in the Tobago or tags. I dont want to use tag , as if at all this validation fails there would be a a page refresh and have to show an error message. So instead of that i can block the user to enter only 4 numerics. As per the docs this Attribute "maxLength" cannot be included in and . How can i achieve this task ? Madan __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Re: Tobago, how to do aligment?
Hi Boris, There is no top alignment with Instead you can create an empty cell after the box and specify the row size. This is the piece of code that is modified in the middle cell. So now the the box will be displayed with a row size of 30px and it will say at the top of the cell. As per my exp, i used to keep an empty cell always at the bottom of the gridLayout, so that there would be no alignment issues Madan - Original Message From: Boris Kovalenko <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Thursday, 22 March, 2007 4:06:58 PM Subject: Tobago, how to do aligment? Hello! How to do aligments with Tobago? With attached peace of code the tc:box is rendered in center of cell, but I want it be top aligned. Is this possible? Am I using layout wrong way? http://java.sun.com/jsf/core";; xmlns:ui="http://java.sun.com/jsf/facelets";; xmlns:tc="http://myfaces.apache.org/tobago/component";; xmlns:tx="http://myfaces.apache.org/tobago/facelet-extension";;> With respect, Boris __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Re: [ Tobago ] maxLength in and
Hi Helmut, Thnx for the response..its working.. Regards, Madan - Original Message From: H. Swaczinna <[EMAIL PROTECTED]> To: users@myfaces.apache.org Sent: Thursday, 22 March, 2007 4:55:50 PM Subject: RE: [ Tobago ] maxLength in and Hi Madan, generates a HTML maxlength="4", so the input length is restricted to 4 chars. Regards Helmut Hi All, I have a constraint for inputfield to take only 4 numerics thai is to be entered by the user. To do this i need the maxLength attribute thats present in Html tags but not in the Tobago or tags. I dont want to use tag , as if at all this validation fails there would be a a page refresh and have to show an error message. So instead of that i can block the user to enter only 4 numerics. As per the docs this Attribute "maxLength" cannot be included in and . How can i achieve this task ? Madan Here’s a new way to find what you're looking for - Yahoo! Answers __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
[ Tobago ] Regarding Object Ref in Server Side
Hi All, I have a sheet, which displays a set of items in a cart. The sheet has 5 columns, in which two are editable. One is the 'Delete' column which has checkboxes and other is 'Qty' which has textfields. I have a command button to recalculate the CartItems if any of these are changed, this is done when i click on that button. But now i am planning to do this with Ajax. When i click on the delete checkbox for a particular item in a row, then it should be deleted ( or ) when value changes in Qty field then other columns in that should change. using renderPartially, i was able to do an ajax call which can do the task. But i need to get hold of the object which is to be deleted. The checkbox name after rendering is " page:shoppingCart:checkOutSheet:0:p_code ". where shoppingCart is the page Id, checkOutSheet: is the Sheet ID, p_code is the tc:selectBooleanCheckbox ID. Now how can i refer this object in my controller, where i can delete the Item with an ajax call. Regards, Madan __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Re: [ Tobago ] Regarding Object Ref in Server Side
Hi Volker, I am using Eclipse, and its showing an error that " The method getUIComponent is undefined for ActionEvent " when i use the following code u send UIData sheet = (UIData) event.getUIComponent(); ActionEvent doesn't have getUIComponent(). I imported ActionEvent form this package "javax.faces.event.ActionEvent" am i missing anything ? Madan - Original Message From: Volker Weber <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Monday, 26 March, 2007 7:30:32 PM Subject: Re: [ Tobago ] Regarding Object Ref in Server Side Hi Madan, if you use a a actionListener method for deleting you can access the rowObject via event.getUIComponent().getRowData() see also here: http://www.nabble.com/-Tobago--Popup-inside-tc%3Asheet-tf3466547.html Regards, Volker 2007/3/26, madan chowdary <[EMAIL PROTECTED]>: > > Hi All, > > I have a sheet, which displays a set of items in a cart. > > The sheet has 5 columns, in which two are editable. > > One is the 'Delete' column which has checkboxes and other is 'Qty' which has > textfields. > > I have a command button to recalculate the CartItems if any of these are > changed, this is done when i click on that button. > > But now i am planning to do this with Ajax. When i click on the delete > checkbox for a particular item in a row, then it should be deleted ( or ) > when value changes in Qty field then other columns in that should change. > > using renderPartially, i was able to do an ajax call which can do the task. > > But i need to get hold of the object which is to be deleted. > > The checkbox name after rendering is " > page:shoppingCart:checkOutSheet:0:p_code ". > where > shoppingCart is the page Id, > checkOutSheet: is the Sheet ID, > p_code is the tc:selectBooleanCheckbox ID. > > Now how can i refer this object in my controller, where i can delete the > Item with an ajax call. > > Regards, > Madan > > > > > > > > > Here's a new way to find what you're looking for - Yahoo! Answers __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Re: [Tobago] how I can speed up popup?
Yeah, i too have the same problem with the popup. The popup contains a sheet which gets the records from the DB. I placed the popcode under a , so if i click the link i get a popup.. but this is taking a page refresh. I the demo app, the popup shows fine without any page refresh, used the same logic in mine, but its doing a page refresh. Is there any other mean to do the same as the shown in the demo app which gets records from the DB and render an sheet in the popup. Regards, Madan - Original Message From: David Steinkopff <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Thursday, 29 March, 2007 2:37:00 PM Subject: Re: [Tobago] how I can speed up popup? Maybe it doesnt work so fine. popup open and close is fine, but if I press my send-button the value from the selectone component doesnt store in the bean. this effect I have only when I combine with the button with only popupClose works, but I have a complete loading page :-( david 2007/3/28, David Steinkopff <[EMAIL PROTECTED]>: Thanks for the reference where I find the answer in the demo. Now its work fine in my application. david 2007/3/27, Volker Weber < [EMAIL PROTECTED] >:Hi David, the tobago demo [1] has a popup example with renderedPartially (config for table demo). the popupReference ins needed to open a popup from a command which is not parent of the popup(used in the toolbar example). Regards, Volker [1] lifedemo: http://tobago.atanion.net/tobago-example-demo/ sources: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/demo/ 2007/3/27, David Steinkopff < [EMAIL PROTECTED]>: > hello, > > I have a complex gui build up with tobago. I used renderedPartially > attribute to speed up the main window. now I build some popup as separate > window and every time I open a popup the complete page go reloading. > > my question: > how I can use renderedPartially with popup and popup reference components? > > david > __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
[ Tobago ] Help Regarding Customer Sort in Sheet
Hi All, I have a sheet which has a column to display the price of an item. Used a convertor to display the price which converts the price( BigDecimal ) to a string and append the users currency set for the user. Say ,if User currency set to US Dollar , then the price 245.06 (BigDecimal) would be displayed as such " US $245.06 ". This is being displayed as String in the Price Column in the sheet. If i use sortable="true" for this column, there is no sorting done according to the price as its sorting String wise but not in numerics. So i shud use a custom sort for this , if there is no other means. Can anyone explain me how can i do such sort capability in the sheet , with an example code. Regards, Madan __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Re: [Tobago] how I can speed up popup?
Hi Volker, Here is the code for the popup when the link is clicked. This shows the loading status bar in the browser and then showing up the popup. Regards, Madan - Original Message From: Volker Weber <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Thursday, 29 March, 2007 5:26:30 PM Subject: Re: [Tobago] how I can speed up popup? Hi Madan, is there a at the link? If so please post the page code. Regards, Volker 2007/3/29, madan chowdary <[EMAIL PROTECTED]>: > > Yeah, i too have the same problem with the popup. > > The popup contains a sheet which gets the records from the DB. > > I placed the popcode under a , so if i click the link i get a > popup.. > > but this is taking a page refresh. > > I the demo app, the popup shows fine without any page refresh, used the same > logic in mine, but its doing a page refresh. > > Is there any other mean to do the same as the shown in the demo app which > gets records from the DB and render an sheet in the popup. > > Regards, > Madan > > - Original Message > From: David Steinkopff <[EMAIL PROTECTED]> > To: MyFaces Discussion > Sent: Thursday, 29 March, 2007 2:37:00 PM > Subject: Re: [Tobago] how I can speed up popup? > > Maybe it doesnt work so fine. > popup open and close is fine, but if I press my send-button the value from > the selectone component doesnt store in the bean. this effect I have only > when I combine value=":pageid:tabgroup"/> with > > > > the button with only popupClose works, but I have a complete loading page > :-( > > david > > 2007/3/28, David Steinkopff <[EMAIL PROTECTED]>: > > Thanks for the reference where I find the answer in the demo. Now its work > fine in my application. > > > > david > > > > > > 2007/3/27, Volker Weber < [EMAIL PROTECTED] >: > > > > > Hi David, > > > > > > the tobago demo [1] has a popup example with renderedPartially (config > > > for table demo). > > > the popupReference ins needed to open a popup from a command which is > > > not parent of the popup(used in the toolbar example). > > > > > > Regards, > > > Volker > > > > > > [1] lifedemo: > http://tobago.atanion.net/tobago-example-demo/ > > > sources: > http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/demo/ > > > > > > > > > 2007/3/27, David Steinkopff < [EMAIL PROTECTED]>: > > > > hello, > > > > > > > > I have a complex gui build up with tobago. I used renderedPartially > > > > attribute to speed up the main window. now I build some popup as > separate > > > > window and every time I open a popup the complete page go reloading. > > > > > > > > my question: > > > > how I can use renderedPartially with popup and popup reference > components? > > > > > > > > david > > > > > > > > > > > > > > > > Here's a new way to find what you're looking for - Yahoo! Answers __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Re: [Tobago] how I can speed up popup?
Hi Volker, Ya this is my mistake , thnx for the response.. Popup is working now as the same in demo. Madan - Original Message From: Volker Weber <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Thursday, 29 March, 2007 6:00:20 PM Subject: Re: [Tobago] how I can speed up popup? Hi, typo : name="renderPartially" should be name="renderedPartially" ^^ Regards, Volker 2007/3/29, madan chowdary <[EMAIL PROTECTED]>: > > Hi Volker, > > Here is the code for the popup when the link is clicked. > > > > > > > > > > > > > > > value="#{shoppingCart.items}" > > columns="60px;*;80px;100px" > var="cartItem" > showHeader="true" > showRowRange="left" > showPageRange="right" > showDirectLinks="center" > first="0" > rows="10" > selectable="none"> > id="number" sortable="false" align="center" sortable="true"> > id="p_quantity" /> > > > id="prdName" sortable="true"> > id="p_code" markup="sheetTxt"/> > > id="p_name" markup="sheetTxt"/> > markup="tiptext" escape="false"/> > > > sortable="true" align="right" sortable="true"> > > rows="20px"/> > > value="#{cartItem.listPriceForQuantity}" id="p_unitprice" > converter="CurrencyConverter" markup="sheetTxt" /> > > > sortable="true" align="right" sortable="true"> > > rows="20px;20px"/> > > > converter="CurrencyConverter" markup="sheetTxt"/> > > > > > > > > > This shows the loading status bar in the browser and then showing up the > popup. > > Regards, > Madan > > - Original Message > From: Volker Weber <[EMAIL PROTECTED]> > To: MyFaces Discussion > Sent: Thursday, 29 March, 2007 5:26:30 PM > Subject: Re: [Tobago] how I can speed up popup? > > Hi Madan, > > is there a at the link? > If so please post the page code. > > Regards, > Volker > > 2007/3/29, madan chowdary <[EMAIL PROTECTED]>: > > > > Yeah, i too have the same problem with the popup. > > > > The popup contains a sheet which gets the records from the DB. > > > > I placed the popcode under a , so if i click the link i get a > > popup.. > > > > but this is taking a page refresh. > > > > I the demo app, the popup shows fine without any page refresh, used the > same > > logic in mine, but its doing a page refresh. > > > > Is there any other mean to do the same as the shown in the demo app which > > gets records from the DB and render an sheet in the popup. > > > > Regards, > > Madan > > > > - Original Message > > From: David Steinkopff <[EMAIL PROTECTED]> > > To: MyFaces Discussion > > Sent: Thursday, 29 March, 2007 2:37:00 PM > > Subject: Re: [Tobago] how I can speed up popup? > > > > Maybe it doesnt work so fine. > > popup open and close is fine, but if I press my send-button the value from > > the selectone component doesnt store in the bean. this effect I have only > > when I combine > value=":pageid:tabgroup"/> with > > > > > > > > the button with only popupClose works, but
Re: [ Tobago ] Regarding Object Ref in Server Side
Hi All, Am able to delete the row in the sheet, just updating the whole sheet when checkbox is clicked for deleting the row. But it's taking 5-8 sec to delete the row, update the panel which has the sheet. There is no intimation to the user that a delete operation is going on in the background. Is there anyway to show a translation or the ajax load images somewhere in the screen, to show that some process is going on when he checked the checkbox. Regards, Madan - Original Message From: Michał 'Gandalf' Stawicki <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Monday, 26 March, 2007 11:22:46 PM Subject: Re: [ Tobago ] Regarding Object Ref in Server Side Fear not, try event.getComponent(). Also check if the event comes directly from object you think it's comming, and not from it's children, ex: UIComponent o = event.getComponent(); while(!(o instanceof UIData)) o = o.getParent(); UIData data = (UIData)(o); regards, michael On 26/03/07, madan chowdary <[EMAIL PROTECTED]> wrote: > > Hi Volker, > > I am using Eclipse, and its showing an error that " The method > getUIComponent is undefined for ActionEvent " when i use the following code > u send > > UIData sheet = (UIData) event.getUIComponent(); > > ActionEvent doesn't have getUIComponent(). > > I imported ActionEvent form this package "javax.faces.event.ActionEvent" > > am i missing anything ? > > Madan > > > > - Original Message > From: Volker Weber <[EMAIL PROTECTED]> > To: MyFaces Discussion > Sent: Monday, 26 March, 2007 7:30:32 PM > Subject: Re: [ Tobago ] Regarding Object Ref in Server Side > > Hi Madan, > > if you use a a actionListener method for deleting you can access the > rowObject via > > event.getUIComponent().getRowData() > > see also here: > http://www.nabble.com/-Tobago--Popup-inside-tc%3Asheet-tf3466547.html > > Regards, > Volker > > > 2007/3/26, madan chowdary <[EMAIL PROTECTED]>: > > > > Hi All, > > > > I have a sheet, which displays a set of items in a cart. > > > > The sheet has 5 columns, in which two are editable. > > > > One is the 'Delete' column which has checkboxes and other is 'Qty' which > has > > textfields. > > > > I have a command button to recalculate the CartItems if any of these are > > changed, this is done when i click on that button. > > > > But now i am planning to do this with Ajax. When i click on the delete > > checkbox for a particular item in a row, then it should be deleted ( or ) > > when value changes in Qty field then other columns in that should change. > > > > using renderPartially, i was able to do an ajax call which can do the > task. > > > > But i need to get hold of the object which is to be deleted. > > > > The checkbox name after rendering is " > > page:shoppingCart:checkOutSheet:0:p_code ". > > where > > shoppingCart is the page Id, > > checkOutSheet: is the Sheet ID, > > p_code is the tc:selectBooleanCheckbox ID. > > > > Now how can i refer this object in my controller, where i can delete the > > Item with an ajax call. > > > > Regards, > > Madan > > > > > > > > > > > > > > > > > > Here's a new way to find what you're looking for - Yahoo! Answers > > > > Here's a new way to find what you're looking for - Yahoo! Answers -- [EMAIL PROTECTED] http://stawicki.jasliska.pl GG: 369 JID: [EMAIL PROTECTED] __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Re: [ Tobago ] Regarding Object Ref in Server Side
Hi Volker, No Even the cursorstyle wait is not being displayed on the sheet. Will add this in JIRA. Regards, Madan - Original Message From: Volker Weber <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Thursday, 29 March, 2007 6:31:34 PM Subject: Re: [ Tobago ] Regarding Object Ref in Server Side Hi, there is currently no way to show the translation animation on ajax requests. Feel free to add a improvement request in jira. During the reload the mouse should have cursorstyle wait over the relaoded area, the sheet in your case. Is this not the case? Regards, Volker 2007/3/29, madan chowdary <[EMAIL PROTECTED]>: > > Hi All, > > Am able to delete the row in the sheet, just updating the whole sheet when > checkbox is clicked for deleting the row. > > But it's taking 5-8 sec to delete the row, update the panel which has the > sheet. > > There is no intimation to the user that a delete operation is going on in > the background. > > Is there anyway to show a translation or the ajax load images somewhere in > the screen, to show that some process is going on when he checked the > checkbox. > > Regards, > Madan > > > - Original Message > From: Michał 'Gandalf' Stawicki <[EMAIL PROTECTED]> > To: MyFaces Discussion > Sent: Monday, 26 March, 2007 11:22:46 PM > Subject: Re: [ Tobago ] Regarding Object Ref in Server Side > > Fear not, try event.getComponent(). Also check if the event comes > directly from object you think it's comming, and not from it's > children, ex: > > UIComponent o = event.getComponent(); > > while(!(o instanceof UIData)) > o = o.getParent(); > > UIData data = (UIData)(o); > > regards, > michael > > On 26/03/07, madan chowdary <[EMAIL PROTECTED]> wrote: > > > > Hi Volker, > > > > I am using Eclipse, and its showing an error that " The method > > getUIComponent is undefined for ActionEvent " when i use the following > code > > u send > > > > UIData sheet = (UIData) event.getUIComponent(); > > > > ActionEvent doesn't have getUIComponent(). > > > > I imported ActionEvent form this package "javax.faces.event.ActionEvent" > > > > am i missing anything ? > > > > Madan > > > > > > > > - Original Message > > From: Volker Weber <[EMAIL PROTECTED]> > > To: MyFaces Discussion > > Sent: Monday, 26 March, 2007 7:30:32 PM > > Subject: Re: [ Tobago ] Regarding Object Ref in Server Side > > > > Hi Madan, > > > > if you use a a actionListener method for deleting you can access the > > rowObject via > > > > event.getUIComponent().getRowData() > > > > see also here: > > > http://www.nabble.com/-Tobago--Popup-inside-tc%3Asheet-tf3466547.html > > > > Regards, > > Volker > > > > > > 2007/3/26, madan chowdary <[EMAIL PROTECTED]>: > > > > > > Hi All, > > > > > > I have a sheet, which displays a set of items in a cart. > > > > > > The sheet has 5 columns, in which two are editable. > > > > > > One is the 'Delete' column which has checkboxes and other is 'Qty' which > > has > > > textfields. > > > > > > I have a command button to recalculate the CartItems if any of these are > > > changed, this is done when i click on that button. > > > > > > But now i am planning to do this with Ajax. When i click on the delete > > > checkbox for a particular item in a row, then it should be deleted ( or > ) > > > when value changes in Qty field then other columns in that should > change. > > > > > > using renderPartially, i was able to do an ajax call which can do the > > task. > > > > > > But i need to get hold of the object which is to be deleted. > > > > > > The checkbox name after rendering is " > > > page:shoppingCart:checkOutSheet:0:p_code ". > > > where > > > shoppingCart is the page Id, > > > checkOutSheet: is the Sheet ID, > > > p_code is the tc:selectBooleanCheckbox ID. > > > > > > Now how can i refer this object in my controller, where i can delete the > > > Item with an ajax call. > > > > > > Regards, > > > Madan > > > > > > > > > > > > > > > > > > > > > > > > > > > Here's a new way to find what you're looking for - Yahoo! Answers > > > > > > > > Here's a new way to find what you're looking for - Yahoo! Answers > > > -- > [EMAIL PROTECTED] > http://stawicki.jasliska.pl > GG: 369 > JID: [EMAIL PROTECTED] > > > > Here's a new way to find what you're looking for - Yahoo! Answers __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
[Tobago] in Tobago pages
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, But this doesn't work as am using scriplets. But i need to a forward to the URL as specified above. How can i achieve this ? Regards, Madan __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Re: [Tobago] Problem with ActionListener for
Hi Cyrill, place the following code(with respect to urs) in between and Regards, Madan - Original Message From: Cyrill Zadra <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Friday, 30 March, 2007 5:30:08 PM Subject: Re: [Tobago] Problem with ActionListener for Hi all, I'm just confronted with the same problem at the moment. Has anybody a solution? my jsf tobago code: thx & reagrds Cyrill On 2/2/07, madan chowdary <[EMAIL PROTECTED]> wrote: Hi all, I have a issue regarding the Tree's ActionListener. When i click on one of my nodes in the tree, i need to fire an event. I used the following code as below to display my tree. Was able to get the tree and see the underlying nodes in that. But when i click on the nodes, the ActionListener is not invoked. Regards, Madan Here's a new way to find what you're looking for - Yahoo! Answers __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Re: [Tobago] in Tobago pages
Hi All, Is there any way to do such kind of thing...? Madan - Original Message From: madan chowdary <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Friday, 30 March, 2007 2:57:27 PM Subject: [Tobago] in Tobago pages 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, But this doesn't work as am using scriplets. But i need to a forward to the URL as specified above. How can i achieve this ? Regards, Madan Here’s a new way to find what you're looking for - Yahoo! Answers __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
[ Tobago ] Hope this would be a Bug in DatePicker
Hi All, I have a DatePicker and a TextField. I clicked the DatePicker to choose a date from that. The condition set in my case is, the customer has to select the date next to the present date. As today is 31st March, he is to choose the next coming days. So i clicked ' > ' to go for April and choose a date. But when i clicked ' > ' i was taken to May . The immediate screen shorts are attached here. Probably this would be a bug or so in date picker. If at all the customer doesn't see the month and proceed selecting a date and confirm it, it would be a whole one month late to deliver his order. So this would be an issue in my app. Regards, Madan __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/ 1.gif Description: GIF image 2.gif Description: GIF image
Re: [ Tobago ] Hope this would be a Bug in DatePicker
Hi, probably this is occuring when we select the last Date of the month and that to when the date is ' 31st' . If am i wrong, plz let me know.. Regards, Madan - Original Message ---- From: madan chowdary <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Saturday, 31 March, 2007 12:54:33 PM Subject: [ Tobago ] Hope this would be a Bug in DatePicker Hi All, I have a DatePicker and a TextField. I clicked the DatePicker to choose a date from that. The condition set in my case is, the customer has to select the date next to the present date. As today is 31st March, he is to choose the next coming days. So i clicked ' > ' to go for April and choose a date. But when i clicked ' > ' i was taken to May . The immediate screen shorts are attached here. Probably this would be a bug or so in date picker. If at all the customer doesn't see the month and proceed selecting a date and confirm it, it would be a whole one month late to deliver his order. So this would be an issue in my app. Regards, Madan Here’s a new way to find what you're looking for - Yahoo! Answers __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
[ Tobago ] vanishing when panel refreshs
Hi All, I have a panel which gets refreshed partially when a button is clicked. In that panel, i used to display . When this panel gets refreshed partially , then the contents under are vanished. Not only the , anything inside are not being displayed when panel gets refreshed. Here is a sample code i wrote after i faced this issue, <%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f" %> <%@ taglib uri="http://myfaces.apache.org/tobago/component"; prefix="tc" %> <%@ taglib uri="http://myfaces.apache.org/tobago/extension"; prefix="tx" %> <%@ taglib tagdir="/WEB-INF/tags/layout" prefix="layout" %> Am i missing anything or is this a bug ? Regards, Madan __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Re: [ Tobago ] vanishing when panel refreshs
Hi Volker, Thnx for the suggestion.. But i have a request , can all these things be updated in blog or wiki . I am unaware of the functionality how Tobago runs, so was not aware of behavior. If at all there's some tutorials/guidelines on how Tobago works, then it will be useful to all. And one more thing which i wanted to ask even a bit before ... Where can i start looking to understand the Tobago code, like how components are rendered, how values are passed to the beans, etc etc.. I don't have exp to understand an complete framework like this , but if there are some guidelines where to start , then i can kickoff looking into the code. This would help me to know inner details of the API and work on them. Thnx in Regards Madan - Original Message From: Volker Weber <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Sunday, 1 April, 2007 2:10:37 AM Subject: Re: [ Tobago ] vanishing when panel refreshs Hi, it's not a bug, it's just the behavior of f:verbatim. the content of f:verbatim is not saved and therefore not availiable on ajax requests. if possible try Regards, Volker 2007/3/31, madan chowdary <[EMAIL PROTECTED]>: > > Hi All, > > I have a panel which gets refreshed partially when a button is clicked. > > In that panel, i used to display . > > When this panel gets refreshed partially , then the contents under > are vanished. > > Not only the , anything inside are not being displayed > when panel gets refreshed. > > Here is a sample code i wrote after i faced this issue, > > <%@ taglib uri="http://java.sun.com/jsf/core";; prefix="f" %> > <%@ taglib uri="http://myfaces.apache.org/tobago/component";; > prefix="tc" %> > <%@ taglib uri="http://myfaces.apache.org/tobago/extension";; > prefix="tx" %> > <%@ taglib tagdir="/WEB-INF/tags/layout" prefix="layout" %> > > > > > > > > > > > > > > > > > /> > > > > > > value=":page:cartpopup"/> > > > > > > > Am i missing anything or is this a bug ? > > Regards, > Madan > > > Here's a new way to find what you're looking for - Yahoo! Answers __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Re: [Tobago] in Tobago pages
Hi David, thnx for the hint, but will this satisfy my question.. this is my navigation case in faces-config.xml goto_checkout /jsp/checkout.jsp so how could i use this to forward to "goto_checkout" based upon a condition as such. Madan - Original Message From: David Steinkopff <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Monday, 2 April, 2007 12:11:55 PM Subject: Re: [Tobago] in Tobago pages Hi Madan, my hint for you faces-config.xml -> navigation rules Regards David 2007/3/31, madan chowdary <[EMAIL PROTECTED] >: 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] in Tobago pages 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, But this doesn't work as am using scriplets. But i need to a forward to the URL as specified above. How can i achieve this ? Regards, Madan Here's a new way to find what you're looking for - Yahoo! Answers Here's a new way to find what you're looking for - Yahoo! Answers __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Re: [ Tobago ] Hope this would be a Bug in DatePicker
Hi All, Anybody tested the datepicker as explained before.. Madan - Original Message From: madan chowdary <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Saturday, 31 March, 2007 12:59:31 PM Subject: Re: [ Tobago ] Hope this would be a Bug in DatePicker Hi, probably this is occuring when we select the last Date of the month and that to when the date is ' 31st' . If am i wrong, plz let me know.. Regards, Madan - Original Message ---- From: madan chowdary <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Saturday, 31 March, 2007 12:54:33 PM Subject: [ Tobago ] Hope this would be a Bug in DatePicker Hi All, I have a DatePicker and a TextField. I clicked the DatePicker to choose a date from that. The condition set in my case is, the customer has to select the date next to the present date. As today is 31st March, he is to choose the next coming days. So i clicked ' > ' to go for April and choose a date. But when i clicked ' > ' i was taken to May . The immediate screen shorts are attached here. Probably this would be a bug or so in date picker. If at all the customer doesn't see the month and proceed selecting a date and confirm it, it would be a whole one month late to deliver his order. So this would be an issue in my app. Regards, Madan Here’s a new way to find what you're looking for - Yahoo! Answers Here’s a new way to find what you're looking for - Yahoo! Answers __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Re: [ Tobago ] Hope this would be a Bug in DatePicker
Hi Volker, Saw the DatePicker in Tomahawk implementation and in IceFaces. They are working fine when date is March 31, its navigation to April but no date is selected. Madan - Original Message From: Volker Weber <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Monday, 2 April, 2007 6:47:09 PM Subject: Re: [ Tobago ] Hope this would be a Bug in DatePicker Hi, yes I had tested this, and i'm not sure about. having the calendar set to 31.March, selecting next month brings you to the 31.April, which is mapped to 1.May. This is not the expected month, but imho also not realy wrong. afaik you will get the same behavior if you do this in java.util.Calendar implementations. How is this handled in other calendar applications? Regards, Volker 2007/4/2, madan chowdary <[EMAIL PROTECTED]>: > > Hi All, > > Anybody tested the datepicker as explained before.. > > Madan > > - Original Message > From: madan chowdary <[EMAIL PROTECTED]> > To: MyFaces Discussion > Sent: Saturday, 31 March, 2007 12:59:31 PM > Subject: Re: [ Tobago ] Hope this would be a Bug in DatePicker > > > Hi, > > probably this is occuring when we select the last Date of the month and that > to when the date is ' 31st' . > > If am i wrong, plz let me know.. > > Regards, > Madan > > - Original Message > From: madan chowdary <[EMAIL PROTECTED]> > To: MyFaces Discussion > Sent: Saturday, 31 March, 2007 12:54:33 PM > Subject: [ Tobago ] Hope this would be a Bug in DatePicker > > > Hi All, > > I have a DatePicker and a TextField. > > I clicked the DatePicker to choose a date from that. > > The condition set in my case is, the customer has to select the date next to > the present date. > > As today is 31st March, he is to choose the next coming days. > > So i clicked ' > ' to go for April and choose a date. But when i clicked ' > > ' i was taken to May . > > The immediate screen shorts are attached here. > > Probably this would be a bug or so in date picker. > > If at all the customer doesn't see the month and proceed selecting a date > and confirm it, it would be a whole one month late to deliver his order. So > this would be an issue in my app. > > Regards, > Madan > > > Here's a new way to find what you're looking for - Yahoo! Answers > > > Here's a new way to find what you're looking for - Yahoo! Answers > > > Here's a new way to find what you're looking for - Yahoo! Answers __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Re: [Tobago] in Tobago pages
Hi Volker, I am doing this request via Ajax. I tried to forward to the particular page based on the condition from the controller, but that doesn't work as this is via Ajax. I am refreshing a sheet which has some products in it and a checkbox to delete. I select the checkbox and submit a button which does a refresh on the panel. If i have only one product and checks for that to delete and submit the button, then it deletes it and then displays an empty sheet. This sheet is placed in a jsp which includes many other fields in that. So i cant show a message that u don't have any items at the bottom of the page making all the fields in active state. so i need to forward to another page for displaying this message. Thats the reason i am in need of a forward. Cant this be done or have any other means to do this.. Regards, Madan - Original Message From: Volker Weber <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Monday, 2 April, 2007 12:46:52 PM Subject: Re: [Tobago] in Tobago pages Hi Madan, you can't, but you can switch the output in your action method based on the condition. Regards, Volker 2007/4/2, madan chowdary <[EMAIL PROTECTED]>: > > Hi David, > > thnx for the hint, but will this satisfy my question.. > > this is my navigation case in faces-config.xml > > > goto_checkout > /jsp/checkout.jsp > > > so how could i use this to forward to "goto_checkout" based upon a > condition as such. > > > > page="<%=request.getContextPath()%>/jsp/checkout.faces"/> > > > > Madan > > - Original Message > From: David Steinkopff <[EMAIL PROTECTED]> > To: MyFaces Discussion > Sent: Monday, 2 April, 2007 12:11:55 PM > Subject: Re: [Tobago] in Tobago pages > > Hi Madan, > my hint for you > faces-config.xml -> navigation rules > Regards > David > > 2007/3/31, madan chowdary <[EMAIL PROTECTED] >: > > > > > > > > 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] in Tobago pages > > > > > > > > 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, > > > > > > > > page="<%=request.getContextPath()%>/jsp/checkout.faces"/> > > > > > > > > But this doesn't work as am using scriplets. > > > > But i need to a forward to the URL as specified above. > > > > How can i achieve this ? > > > > Regards, > > Madan > > > > > Here's a new way to find what you're looking for - Yahoo! Answers > > > > > > > Here's a new way to find what you're looking for - Yahoo! Answers > > > > > Here's a new way to find what you're looking for - Yahoo! Answers __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Re: [Tobago] in Tobago pages
Hi David, yeah i have used all these.. But in my case i need to forward to another page when there are no items in the cart. The panel containing the sheet gets refreshed via ajax. and then it should forward to other page when there are no items in the cart, but not display a message there it self. Hope u got my question.. Thnx Madan - Original Message From: David Steinkopff <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Tuesday, 3 April, 2007 11:09:48 AM Subject: Re: [Tobago] in Tobago pages Hi Madan, why you dont use the attribute rendered with EL? Regards David 2007/4/3, madan chowdary <[EMAIL PROTECTED]>: Hi Volker, I am doing this request via Ajax. I tried to forward to the particular page based on the condition from the controller, but that doesn't work as this is via Ajax. I am refreshing a sheet which has some products in it and a checkbox to delete. I select the checkbox and submit a button which does a refresh on the panel. If i have only one product and checks for that to delete and submit the button, then it deletes it and then displays an empty sheet. This sheet is placed in a jsp which includes many other fields in that. So i cant show a message that u don't have any items at the bottom of the page making all the fields in active state. so i need to forward to another page for displaying this message. Thats the reason i am in need of a forward. Cant this be done or have any other means to do this.. Regards, Madan - Original Message From: Volker Weber <[EMAIL PROTECTED]> To: MyFaces Discussion < users@myfaces.apache.org> Sent: Monday, 2 April, 2007 12:46:52 PM Subject: Re: [Tobago] in Tobago pages Hi Madan, you can't, but you can switch the output in your action method based on the condition. Regards, Volker 2007/4/2, madan chowdary < [EMAIL PROTECTED]>: > > Hi David, > > thnx for the hint, but will this satisfy my question.. > > this is my navigation case in faces-config.xml > > > goto_checkout > /jsp/checkout.jsp > > > so how could i use this to forward to "goto_checkout" based upon a > condition as such. > > > > page="<%=request.getContextPath ()%>/jsp/checkout.faces"/> > > > > Madan > > - Original Message > From: David Steinkopff < [EMAIL PROTECTED]> > To: MyFaces Discussion > Sent: Monday, 2 April, 2007 12:11:55 PM > Subject: Re: [Tobago] in Tobago pages > > Hi Madan, > my hint for you > faces-config.xml -> navigation rules > Regards > David > > 2007/3/31, madan chowdary < [EMAIL PROTECTED] >: > > > > > > > > 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] in Tobago pages > > > > > > > > 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, > > > > > > > > page="<%=request.getContextPath()%>/jsp/checkout.faces"/> > > > > > > > > But this doesn't work as am using scriplets. > > > > But i need to a forward to the URL as specified above. > > > > How can i achieve this ? > > > > Regards, > > Madan > > > > > Here's a new way to find what you're looking for - Yahoo! Answers > > > > > > > Here's a new way to find what you're looking for - Yahoo! Answers > > > > > Here's a new way to find what you're looking for - Yahoo! Answers Here's a new way to find what you're looking for - Yahoo! Answers __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Re: [Tobago] in Tobago pages
Hi Volker, Can u send me the code syntax where to place this ' outcome != null ' Madan - Original Message From: Volker Weber <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Tuesday, 3 April, 2007 12:47:57 PM Subject: Re: [Tobago] in Tobago pages Hi, in 1.0.11-snapshot you can just do a outcome != null in the action to invoke standard jsf navigation, also on ajax requests. Regards, Volker 2007/4/3, madan chowdary <[EMAIL PROTECTED]>: > > Hi Volker, > > I am doing this request via Ajax. > > I tried to forward to the particular page based on the condition from the > controller, but that doesn't work as this is via Ajax. > > I am refreshing a sheet which has some products in it and a checkbox to > delete. > > I select the checkbox and submit a button which does a refresh on the panel. > > If i have only one product and checks for that to delete and submit the > button, then it deletes it and then displays an empty sheet. > > This sheet is placed in a jsp which includes many other fields in that. > > So i cant show a message that u don't have any items at the bottom of the > page making all the fields in active state. > > so i need to forward to another page for displaying this message. > > Thats the reason i am in need of a forward. > > Cant this be done or have any other means to do this.. > > Regards, > Madan > > - Original Message > From: Volker Weber <[EMAIL PROTECTED]> > To: MyFaces Discussion > Sent: Monday, 2 April, 2007 12:46:52 PM > Subject: Re: [Tobago] in Tobago pages > > Hi Madan, > > you can't, but you can switch the output in your action method based > on the condition. > > Regards, > Volker > > 2007/4/2, madan chowdary <[EMAIL PROTECTED]>: > > > > Hi David, > > > > thnx for the hint, but will this satisfy my question.. > > > > this is my navigation case in faces-config.xml > > > > > > goto_checkout > > /jsp/checkout.jsp > > > > > > so how could i use this to forward to "goto_checkout" based upon a > > condition as such. > > > > > > > > > page="<%=request.getContextPath()%>/jsp/checkout.faces"/> > > > > > > > > Madan > > > > - Original Message > > From: David Steinkopff <[EMAIL PROTECTED]> > > To: MyFaces Discussion > > Sent: Monday, 2 April, 2007 12:11:55 PM > > Subject: Re: [Tobago] in Tobago pages > > > > Hi Madan, > > my hint for you > > faces-config.xml -> navigation rules > > Regards > > David > > > > 2007/3/31, madan chowdary <[EMAIL PROTECTED] >: > > > > > > > > > > > > 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] in Tobago pages > > > > > > > > > > > > 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, > > > > > > rendered="#{!shoppingCart.cartContainsItems}"> > > > > > > > page="<%=request.getContextPath()%>/jsp/checkout.faces"/> > > > > > > > > > > > > But this doesn't work as am using scriplets. > > > > > > But i need to a forward to the URL as specified above. > > > > > > How can i achieve this ? > > > > > > Regards, > > > Madan > > > > > > > > Here's a new way to find what you're looking for - Yahoo! Answers > > > > > > > > > > > Here's a new way to find what you're looking for - Yahoo! Answers > > > > > > > > > > Here's a new way to find what you're looking for - Yahoo! Answers > > > > Here's a new way to find what you're looking for - Yahoo! Answers __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Re: [Tobago] in Tobago pages
Hi Volker, Was getting this error when replaced Tobago 1.0.10 with Tobago 1.0.11 Snapshot java.lang.NoSuchMethodError: org.apache.myfaces.tobago.ajax.api.AjaxUtils.getAja xComponents(Ljavax/faces/context/FacesContext;)Ljava/util/List; at org.apache.myfaces.tobago.lifecycle.RenderResponseExecutor.execute(Re nderResponseExecutor.java:45) MyFaces api and impl are 1.1.5 v. And can u plz tell how can i use " outcome != null in the action to invoke standard jsf navigation, also on ajax requests" . Thnx Regards, Madan - Original Message ---- From: madan chowdary <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Tuesday, 3 April, 2007 1:07:00 PM Subject: Re: [Tobago] in Tobago pages Hi Volker, Can u send me the code syntax where to place this ' outcome != null ' Madan - Original Message From: Volker Weber <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Tuesday, 3 April, 2007 12:47:57 PM Subject: Re: [Tobago] in Tobago pages Hi, in 1.0.11-snapshot you can just do a outcome != null in the action to invoke standard jsf navigation, also on ajax requests. Regards, Volker 2007/4/3, madan chowdary <[EMAIL PROTECTED]>: > > Hi Volker, > > I am doing this request via Ajax. > > I tried to forward to the particular page based on the condition from the > controller, but that doesn't work as this is via Ajax. > > I am refreshing a sheet which has some products in it and a checkbox to > delete. > > I select the checkbox and submit a button which does a refresh on the panel. > > If i have only one product and checks for that to delete and submit the > button, then it deletes it and then displays an empty sheet. > > This sheet is placed in a jsp which includes many other fields in that. > > So i cant show a message that u don't have any items at the bottom of the > page making all the fields in active state. > > so i need to forward to another page for displaying this message. > > Thats the reason i am in need of a forward. > > Cant this be done or have any other means to do this.. > > Regards, > Madan > > - Original Message > From: Volker Weber <[EMAIL PROTECTED]> > To: MyFaces Discussion > Sent: Monday, 2 April, 2007 12:46:52 PM > Subject: Re: [Tobago] in Tobago pages > > Hi Madan, > > you can't, but you can switch the output in your action method based > on the condition. > > Regards, > Volker > > 2007/4/2, madan chowdary <[EMAIL PROTECTED]>: > > > > Hi David, > > > > thnx for the hint, but will this satisfy my question.. > > > > this is my navigation case in faces-config.xml > > > > > > goto_checkout > > /jsp/checkout.jsp > > > > > > so how could i use this to forward to "goto_checkout" based upon a > > condition as such. > > > > > > > > > page="<%=request.getContextPath()%>/jsp/checkout.faces"/> > > > > > > > > Madan > > > > - Original Message > > From: David Steinkopff <[EMAIL PROTECTED]> > > To: MyFaces Discussion > > Sent: Monday, 2 April, 2007 12:11:55 PM > > Subject: Re: [Tobago] in Tobago pages > > > > Hi Madan, > > my hint for you > > faces-config.xml -> navigation rules > > Regards > > David > > > > 2007/3/31, madan chowdary <[EMAIL PROTECTED] >: > > > > > > > > > > > > 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] in Tobago pages > > > > > > > > > > > > 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, > > > > > > rendered="#{!shoppingCart.cartContainsItems}"> > > > > > > > page="<%=request.getContextPath()%>/jsp/checkout.faces"/> > > > > > > > > > > > > But this doesn't work as am using scriplets. > > > > > > But i need to a forward to the URL as specified above. > > > > > > How can i achieve this ? > > > > > > Regards, > > > Madan > > > > > > > > Here's a new way to find what you're looking for - Yahoo! Answers > > > > > > > > > > > Here's a new way to find what you're looking for - Yahoo! Answers > > > > > > > > > > Here's a new way to find what you're looking for - Yahoo! Answers > > > > Here's a new way to find what you're looking for - Yahoo! Answers Here’s a new way to find what you're looking for - Yahoo! Answers __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Re: [Tobago] in Tobago pages
Hi Volker, This is wht i was expecting.. I am able to achieve the task. I am not using reload facet, just making panel refresh via renderPartially when an action occurs. Thnx for the response , Regards, Madan - Original Message From: Volker Weber <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Tuesday, 3 April, 2007 8:43:35 PM Subject: Re: [Tobago] in Tobago pages Hi Madan, you do the reload via reload facet? In this case there is no direct action where you can set a outcome, but you can do the redirect via javascript on client. based on your first post: document.location.href = '#{facesConfig.externalConfig.request.requestContextPath}/jsp/checkout.faces';"/> Regards, Volker 2007/4/3, madan chowdary <[EMAIL PROTECTED]>: > > Hi Volker, > > Can u send me the code syntax where to place this ' outcome != null ' > > Madan > > - Original Message > From: Volker Weber <[EMAIL PROTECTED]> > To: MyFaces Discussion > Sent: Tuesday, 3 April, 2007 12:47:57 PM > Subject: Re: [Tobago] in Tobago pages > > Hi, > > in 1.0.11-snapshot you can just do a outcome != null in the action to > invoke standard > jsf navigation, also on ajax requests. > > Regards, > Volker > > 2007/4/3, madan chowdary <[EMAIL PROTECTED]>: > > > > Hi Volker, > > > > I am doing this request via Ajax. > > > > I tried to forward to the particular page based on the condition from the > > controller, but that doesn't work as this is via Ajax. > > > > I am refreshing a sheet which has some products in it and a checkbox to > > delete. > > > > I select the checkbox and submit a button which does a refresh on the > panel. > > > > If i have only one product and checks for that to delete and submit the > > button, then it deletes it and then displays an empty sheet. > > > > This sheet is placed in a jsp which includes many other fields in that. > > > > So i cant show a message that u don't have any items at the bottom of the > > page making all the fields in active state. > > > > so i need to forward to another page for displaying this message. > > > > Thats the reason i am in need of a forward. > > > > Cant this be done or have any other means to do this.. > > > > Regards, > > Madan > > > > - Original Message > > From: Volker Weber <[EMAIL PROTECTED]> > > To: MyFaces Discussion > > Sent: Monday, 2 April, 2007 12:46:52 PM > > Subject: Re: [Tobago] in Tobago pages > > > > Hi Madan, > > > > you can't, but you can switch the output in your action method based > > on the condition. > > > > Regards, > > Volker > > > > 2007/4/2, madan chowdary <[EMAIL PROTECTED]>: > > > > > > Hi David, > > > > > > thnx for the hint, but will this satisfy my question.. > > > > > > this is my navigation case in faces-config.xml > > > > > > > > > goto_checkout > > > /jsp/checkout.jsp > > > > > > > > > so how could i use this to forward to "goto_checkout" based upon a > > > condition as such. > > > > > > rendered="#{!shoppingCart.cartContainsItems}"> > > > > > > > > page="<%=request.getContextPath()%>/jsp/checkout.faces"/> > > > > > > > > > > > > Madan > > > > > > - Original Message > > > From: David Steinkopff <[EMAIL PROTECTED]> > > > To: MyFaces Discussion > > > Sent: Monday, 2 April, 2007 12:11:55 PM > > > Subject: Re: [Tobago] in Tobago pages > > > > > > Hi Madan, > > > my hint for you > > > faces-config.xml -> navigation rules > > > Regards > > > David > > > > > > 2007/3/31, madan chowdary <[EMAIL PROTECTED] >: > > > > > > > > > > > > > > > > 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] in Tobago pages > > > > > > > > > > > >
Re: [Tobago] More popup example
Hi Boris, inside the , place the popup related code and u ll be getting the popup when the button is clicked. Hope this code snippet helps you <%-- Your contents goes here --%> Regards, Madan - Original Message From: Boris Kovalenko <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Friday, 6 April, 2007 2:16:30 PM Subject: [Tobago] More popup example Hello! How to use tc:popup? I looked into sheet example but can't understand how to implement with my code. What I wan to do: I have a sheet where rows are displayed. Each row has a column with tc:button. I want when user press the button the popup open with edit form. Thanks in advance. With respect, Boris __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
[ Tobago ] Regarding popup referance
Hi All, I have a link which when clicked will display a popup. Next to the link there is a link which is shown by an image , which shud also do the same, open the same popup when clicked. Am i required to repeat the same popup code written under the first link to the image link ? How does popupReference work ? Will that satisfy my query... Regards, Madan __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
[Tobago] Regarding Sheet State
Hi All, I have a sheet which has a column with . Before when i entered some values and clicked on the pagination at the bottom and come back to the previous page, i was able to see the values i entered before. But don't know what i have messed up in the code, now i was not able to see the values if at all i navigate and enter values between the pages in the sheet. Can anyone tell what wrong i have done, I need the sheet to have the values as its before. Am using Tobago 1.0.11 Snapshot nightly build. Regards, Madan __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
[Tobago] Javascript reload after Ajax Request.
Hi All, I was just working with JavaScript in Tobago pages. I used onload function to call a javascript function which is used to Event.observe() on some components. These scripts are placed in a panel which gets refreshed via Ajax. The first time the page loads, then the desired task is achieved. But if the panel is refreshed via Ajax, then the javascript is not working. I need to call the function which was done onload, the same way when the panel is refreshed via Ajax. Is this possible ? Regards, Madan __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Re: [Tobago] Javascript reload after Ajax Request.
Hi Volker, I was just using prototype.js functions in the jsp page to observe the elements in a sheet. Like , in under a column in sheet, there is an onchange event for , but this is called only when its focus is lost. If at all i modify it and clcik on any button, the onchange event is not called. so i kept and Event.observe() on that for keyPress..now its working fine. But when the sheet is loaded , i need to observe the sheet elements again, for that i need to call a function . But how Can i call a JavaScript function() , which will be rendered with This was my problem.. Regards, Madan - Original Message From: Volker Weber <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Tuesday, 10 April, 2007 12:26:33 AM Subject: Re: [Tobago] Javascript reload after Ajax Request. Hi Madan, the tc:script tag is currently not supported for ajax requests, see https://issues.apache.org/jira/browse/TOBAGO-332 You can use tc:out with escape="false" e.g. alert('script on ajax');" /> shuch pieces of javascript inside ajax requests are evaluated after the html is replaced. Regards, Volker 2007/4/9, madan chowdary <[EMAIL PROTECTED]>: > > Hi All, > > I was just working with JavaScript in Tobago pages. > > I used onload function to call a javascript function which is used to > Event.observe() on some components. > > These scripts are placed in a panel which gets refreshed via Ajax. > > The first time the page loads, then the desired task is achieved. > > But if the panel is refreshed via Ajax, then the javascript is not working. > > I need to call the function which was done onload, the same way when the > panel is refreshed via Ajax. > > Is this possible ? > > Regards, > Madan > > > Here's a new way to find what you're looking for - Yahoo! Answers __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Re: [Tobago] Regarding Sheet State
Hi Volker, Will check the app with the next nightly build and mail u back if anything goes wrong again with pagination. Regards, Madan - Original Message From: Volker Weber <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Tuesday, 10 April, 2007 12:19:48 AM Subject: Re: [Tobago] Regarding Sheet State Hi Madan, i think this was due to a bug, i've just commited a fix. Please try svn head or next nightly. Regards, Volker 2007/4/7, madan chowdary <[EMAIL PROTECTED]>: > > Hi All, > > I have a sheet which has a column with . > > Before when i entered some values and clicked on the pagination at the > bottom and come back to the previous page, i was able to see the values i > entered before. > > But don't know what i have messed up in the code, now i was not able to see > the values if at all i navigate and enter values between the pages in the > sheet. > > Can anyone tell what wrong i have done, I need the sheet to have the values > as its before. > > Am using Tobago 1.0.11 Snapshot nightly build. > > Regards, > Madan > > > Here's a new way to find what you're looking for - Yahoo! Answers __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Re: [Tobago] Javascript reload after Ajax Request.
Hi Volker, Thnx for the caution message, will do that right now.. And i have one more doubt, if at all i need the element in javascript , using Protype.js , its pretty simple $('page:XXX:YYY'); Do we have a similar thing when we use Tobago functions ? Regards, Madan - Original Message From: Volker Weber <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Tuesday, 10 April, 2007 12:41:48 AM Subject: Re: [Tobago] Javascript reload after Ajax Request. Hi, can't you put the function in a script file which is loaded on initial page load, and just coll it in the tc:out like my alert() example? BTW: if you use prototype in your script functions you should prepared to ship this with your app, because we will remove prototype from tobago in the future. You can replace Event.observe() by Tobago.addEventListener() to be future proof. Regards, Volker 2007/4/9, madan chowdary <[EMAIL PROTECTED]>: > > Hi Volker, > > I was just using prototype.js functions in the jsp page to observe the > elements in a sheet. > > Like , in under a column in sheet, there is an onchange event for > , but this is called only when its focus is lost. > > If at all i modify it and clcik on any button, the onchange event is not > called. > > so i kept and Event.observe() on that for keyPress..now its working fine. > > But when the sheet is loaded , i need to observe the sheet elements again, > for that i need to call a function . > > But how Can i call a JavaScript function() , which will be rendered with > > > This was my problem.. > > Regards, > Madan > > > - Original Message > From: Volker Weber <[EMAIL PROTECTED]> > To: MyFaces Discussion > Sent: Tuesday, 10 April, 2007 12:26:33 AM > Subject: Re: [Tobago] Javascript reload after Ajax Request. > > Hi Madan, > > the tc:script tag is currently not supported for ajax requests, see > https://issues.apache.org/jira/browse/TOBAGO-332 > > You can use tc:out with escape="false" e.g. > > >alert('script on ajax');" /> > > shuch pieces of javascript inside ajax requests are evaluated after > the html is replaced. > > Regards, > Volker > > 2007/4/9, madan chowdary <[EMAIL PROTECTED]>: > > > > Hi All, > > > > I was just working with JavaScript in Tobago pages. > > > > I used onload function to call a javascript function which is used to > > Event.observe() on some components. > > > > These scripts are placed in a panel which gets refreshed via Ajax. > > > > The first time the page loads, then the desired task is achieved. > > > > But if the panel is refreshed via Ajax, then the javascript is not > working. > > > > I need to call the function which was done onload, the same way when the > > panel is refreshed via Ajax. > > > > Is this possible ? > > > > Regards, > > Madan > > > > > > Here's a new way to find what you're looking for - Yahoo! Answers > > > > Here's a new way to find what you're looking for - Yahoo! Answers __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Re: [Tobago] Regarding Sheet State
Hi Volker, downloaded the nightly build jars of Tobago 1.0.11 . But i have seen a new Issue in that. If at all i enter some values in textfield in the sheet and then update that to my bean, those values are not set and null is being passed to them. As my previous issue, the values are not shown/set in textfield in the sheet when navigated via pagination. Thought of removing the new jars and go for the previous one's, but i unknowingly deleted those from my machine.. So i was not able to test with the old jar's. Is there anyway to get the jars a week ahead or so ? Please respond to this mail ASAP. Thnx in advance Regards, Madan - Original Message ---- From: madan chowdary <[EMAIL PROTECTED]> To: MyFaces Discussion <[EMAIL PROTECTED]> Sent: Tuesday, 10 April, 2007 12:36:30 AM Subject: Re: [Tobago] Regarding Sheet State Hi Volker, Will check the app with the next nightly build and mail u back if anything goes wrong again with pagination. Regards, Madan - Original Message From: Volker Weber <[EMAIL PROTECTED]> To: MyFaces Discussion <[EMAIL PROTECTED]> Sent: Tuesday, 10 April, 2007 12:19:48 AM Subject: Re: [Tobago] Regarding Sheet State Hi Madan, i think this was due to a bug, i've just commited a fix. Please try svn head or next nightly. Regards, Volker 2007/4/7, madan chowdary <[EMAIL PROTECTED]>: > > Hi All, > > I have a sheet which has a column with . > > Before when i entered some values and clicked on the pagination at the > bottom and come back to the previous page, i was able to see the values i > entered before. > > But don't know what i have messed up in the code, now i was not able to see > the values if at all i navigate and enter values between the pages in the > sheet. > > Can anyone tell what wrong i have done, I need the sheet to have the values > as its before. > > Am using Tobago 1.0.11 Snapshot nightly build. > > Regards, > Madan > > > Here's a new way to find what you're looking for - Yahoo! Answers Here’s a new way to find what you're looking for - Yahoo! Answers Send a FREE SMS to your friend's mobile from Yahoo! Messenger. Get it now at http://in.messenger.yahoo.com/
[Tobago] Displaying pop-up
Hi all, I am newbie to Tobago, and trying myself to be familiar with this technology. With lots of R&D i was able to create a first page, say a login screen. Authentication is done when submitted the form. When username and password entered are valid, it navigates to other page. else, it will set a value say 'errorMessage' and navigate to the same login screen. Now in my login screen, i need to display a popup if errorMessage != "" . I just tried to printout that using , but is there anyway to do the same thing with i was using for checking the errorMessage value. thnx in Advance, Regards, Madan Chowdary
[Tobago] Sessions with Tobago
Hi all, I am new to Tobago and working over that, seeing over the net and this group. My query is how to use sessions with Tobago. I want a userID to be put into HttpSession object. I Tried this with intializing my managed bean with session scope. But i dont need all my values of the bean to set in the session.I just need userID. can anyone please help me over this... and can anyone please tell me where can i get detailed explaination about the tags and how to change the styles of the components, i want to use my custom Styles. How to get latest build Tobago 1.0.10, i dont see that in download section in Tobago site. thnx in advance... Regards, Madan __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Re: [Tobago] inut text field or password text filed as submittion
yeah i have the same doubt tooo, each time a user types his uname/pword, he has to move over his mouse to login button and click that is there anyway that he can do when enter is clicked ? - Original Message From: "Wong, Emmanuel (Sam)" <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Monday, 22 January, 2007 11:40:10 PM Subject: [Tobago] inut text field or password text filed as submittion Hi: Could anyone know how to login into the application without clicking the login button? I have a login page and would like user input the password, then user hits the ENTER key will go into the application. I tried to use valueChangeListener, is this the only way? Thanks. __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Re: [Tobago] Sessions with Tobago
Hi Bernd, Thnx for your rely and suggestions. I will work over with sessions once i reach my office. But i have one more doubt. Just for time being, i want to display a value in bold, and other one in red color. I used the markup as specified in the docs, but the whole text background is changing the color. I just need to display the text in Red/Bold. How to achieve this ? - Original Message From: Bernd Bohmann <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Tuesday, 23 January, 2007 12:41:22 AM Subject: Re: [Tobago] Sessions with Tobago Hello, madan chowdary wrote: > Hi all, > > I am new to Tobago and working over that, seeing over the net and this group. > > My query is how to use sessions with Tobago. > > I want a userID to be put into HttpSession object. I Tried this with > intializing my managed bean with session scope. But i dont need all my values > of the bean to set in the session.I just need userID. > You have several options. You can add a own managed bean for the userId only or you can set it in the session in your managed bean with FacesContext.getCurrentInstance().getExternalContext().getSessionMap().put("userId", userId); > can anyone please help me over this... > > and can anyone please tell me where can i get detailed explaination about the > tags and how to change the styles of the components, i want to use my custom > Styles. > http://myfaces.apache.org/tobago/documentation.html http://myfaces.apache.org/tobago/faq.html#tobago/owntheme The own theme section should be improved but your help is welcome :-) > How to get latest build Tobago 1.0.10, i dont see that in download section in > Tobago site. The 1.0.10 is not release but you can download the nightly build http://myfaces.apache.org/tobago/download.html http://people.apache.org/builds/myfaces/nightly/ > > thnx in advance... > > Regards, > Madan > > > > > > __ > Yahoo! India Answers: Share what you know. Learn something new > http://in.answers.yahoo.com/ __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
What is nightly builds ?
Hi all, I am very much confused seeing some technical words like " Nightly " builds. What exactly is nightly builds. I am using Tobago 1.0.9 right now. The would display the buttons/links always on the left side. It dont display the same as when we use that with . When searching over the group, saw that this is fixed in Tobago 1.0.10 . http://issues.apache.org/jira/browse/TOBAGO-179 Now i want to shift over to 1.0.10 as rt now its starting stage of my project. Is it advisable to use 1.0.10 rather then 1.0.9 for over coming these issues. Regards, Madan Chowdary __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Re: [Tobago] Sessions with Tobago
Hi Bernd, With out writing any custom themes, can i display a text in Bold/Red in color. As i am a newbie , i dont think that i would be able to write my own custome theme rt now. But i need to display the text in bold using Tobago tags. Please help me over this, thnx - Original Message From: Bernd Bohmann <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Tuesday, 23 January, 2007 12:50:06 PM Subject: Re: [Tobago] Sessions with Tobago Hello, with an own theme you can define your own markup: http://myfaces.apache.org/tobago/faq.html#tobago/custommarkup Regards Bernd madan chowdary wrote: > Hi Bernd, > > Thnx for your rely and suggestions. > > I will work over with sessions once i reach my office. > > But i have one more doubt. > > Just for time being, i want to display a value in bold, and other > one in red color. > > I used the markup as specified in the docs, but the whole text background is > changing the color. > > I just need to display the text in Red/Bold. > > How to achieve this ? > > - Original Message > From: Bernd Bohmann <[EMAIL PROTECTED]> > To: MyFaces Discussion > Sent: Tuesday, 23 January, 2007 12:41:22 AM > Subject: Re: [Tobago] Sessions with Tobago > > Hello, > > madan chowdary wrote: >> Hi all, >> >> I am new to Tobago and working over that, seeing over the net and this group. >> >> My query is how to use sessions with Tobago. >> >> I want a userID to be put into HttpSession object. I Tried this with >> intializing my managed bean with session scope. But i dont need all my >> values of the bean to set in the session.I just need userID. >> > You have several options. > > You can add a own managed bean for the userId only > > or > > you can set it in the session in your managed bean with > > FacesContext.getCurrentInstance().getExternalContext().getSessionMap().put("userId", > > userId); > > > >> can anyone please help me over this... >> >> and can anyone please tell me where can i get detailed explaination about >> the tags and how to change the styles of the components, i want to use my >> custom Styles. >> > http://myfaces.apache.org/tobago/documentation.html > > http://myfaces.apache.org/tobago/faq.html#tobago/owntheme > > The own theme section should be improved but your help is welcome :-) > >> How to get latest build Tobago 1.0.10, i dont see that in download section >> in Tobago site. > > The 1.0.10 is not release but you can download the nightly build > > http://myfaces.apache.org/tobago/download.html > > http://people.apache.org/builds/myfaces/nightly/ >> thnx in advance... >> >> Regards, >> Madan >> >> >> >> >> >> __ >> Yahoo! India Answers: Share what you know. Learn something new >> http://in.answers.yahoo.com/ > > > > > > > > > __ > Yahoo! India Answers: Share what you know. Learn something new > http://in.answers.yahoo.com/ __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
[Tobago] Ajax with Tobago
Hi All, Can u say where can i exactly use Ajax with Tobago. Which components will help me to use Ajax ? Regards, Madan __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
[Tobago] Help regarding
Hi All, I am displaying a few contents on my page using . I did such a way that, i need a left pane which contains a tree and the other part some other text to display. i specifed this by . But when tree gets expanded , the other column is also expanding and so the contents are moved downloads. I need the 2nd column contents to be fixed even if the 1st column expands when the tree does. how to achieve this ? and what does "fixed" mean in columns and rows ? Thnx in advance Regards, Madan __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Re: [Tobago] Help regarding
hi sieppl, can u tell me what do u mean by this " you can specify a global container with maximum constraints for your page. " i didnt get u, i saw the examples but cant figure wht exactly u told me to do... this is my firstpage searchAndBrowsePane.jsp includes <%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f" %> <%@ taglib uri="http://myfaces.apache.org/tobago/component"; prefix="tc" %> <%@ taglib uri="http://myfaces.apache.org/tobago/extension"; prefix="tx" %> showCategories.jsp includes <%@ taglib uri="http://myfaces.apache.org/tobago/component"; prefix="tc" %> <%@ taglib uri="http://myfaces.apache.org/tobago/extension"; prefix="tx" %> <%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f" %> userCartDetails.jsp this is the one in right hand side <%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f" %> <%@ taglib uri="http://myfaces.apache.org/tobago/component"; prefix="tc" %> so when ever tree expands, the right hand side userCartDetails.jsp is moving downwards i need to align that column to top as we do in thnx in advance Regards, Madan - Original Message From: sieppl <[EMAIL PROTECTED]> To: users@myfaces.apache.org Sent: Thursday, 25 January, 2007 5:29:10 AM Subject: Re: [Tobago] Help regarding you can specify a global container with maximum constraints for your page. (see the tobago example) Thus the right hand side does not expand when the left hand side does. madan chowdary-2 wrote: > > Hi All, > > I am displaying a few contents on my page using . > > I did such a way that, i need a left pane which contains a tree and the > other part some other text to display. > > i specifed this by . > > But when tree gets expanded , the other column is also expanding and so > the contents are moved downloads. > > I need the 2nd column contents to be fixed even if the 1st column expands > when the tree does. > > how to achieve this ? > > and what does "fixed" mean in columns and rows ? > > Thnx in advance > > Regards, > Madan > > > > > > > > __ > Yahoo! India Answers: Share what you know. Learn something new > http://in.answers.yahoo.com/ > -- View this message in context: http://www.nabble.com/-Tobago--Help-regarding-%3Ctc%3AgridLayout%3E-tf3083643.html#a8591766 Sent from the MyFaces - Users mailing list archive at Nabble.com. __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Re: [Tobago] Help regarding
ya sieppl, i changed the page width attributes, say for width="900px" and height="600px". But what happens is, i placed the with in a . As the height is contsant, when ever i expand my tree, the contents are overflowed beyong the box height and thus they are not visible. Whats my case is, 1) Initially i should have a sindle node displayed to the user in a Box. 2) The box should expand as i expand my tree. 3) The right pane contents must not be moved when this tree expands. 4) The components that are under the Tree Box can move as downa nd up when ever the tree Expand. Think u got me ? So please tell me how can i achieve this... as i have to show a mockup to my lead ASAP. Thnx in advance Regards Madan Chowdary - Original Message From: sieppl <[EMAIL PROTECTED]> To: users@myfaces.apache.org Sent: Thursday, 25 January, 2007 10:37:03 PM Subject: Re: [Tobago] Help regarding sorry, I meant the page width attribute. Your page looks fine. I cannot see any overflowing areas in firefox 2.0. But I have not your includes. Maybet the error occurs there. madan chowdary-2 wrote: > > hi sieppl, > > can u tell me what do u mean by this > > " you can specify a global container with maximum constraints for your > page. " > > i didnt get u, i saw the examples but cant figure wht exactly u told me to > do... > > this is my firstpage > > > > > > marginTop="30px"/> > > > > /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > searchAndBrowsePane.jsp includes > > <%@ taglib uri="http://java.sun.com/jsf/core";; prefix="f" %> > <%@ taglib uri="http://myfaces.apache.org/tobago/component";; prefix="tc" %> > <%@ taglib uri="http://myfaces.apache.org/tobago/extension";; prefix="tx" %> > > > > > > > > > height="50px"> > > > > > > > > > > > > > > > > > > > > > showCategories.jsp includes > > <%@ taglib uri="http://myfaces.apache.org/tobago/component";; prefix="tc" %> > <%@ taglib uri="http://myfaces.apache.org/tobago/extension";; prefix="tx" %> > <%@ taglib uri="http://java.sun.com/jsf/core";; prefix="f" %> > > > > > > > > > > > > state="#{category.categoryTreeState}" id="categoryTree" > idReference="userObject.id" > nameReference="userObject.name" > showIcons="#{category.showIcons}" > showJunctions="#{category.showJunctions}" > showRootJunction="#{category.showRootJunction}" > showRoot="#{category.showRoot}" > selectable="#{category.treeSelectMode}" > mutable="#{category.mutable}" > actionListener="#{category.processAction}" > > > type="com.resmed.store.frontend.controller.CategoryListener"/> > > > > > > userCartDetails.jsp
[Tobago] Problem with JSTL
Hi all, i was having problem with JSTL tag. I want to display 20 text fields in each row. Thought to use , but saw that its deprecated in tlddocs. So opted for . I included jstl.jar in lib directory. tried with both <%@ taglib uri="http://java.sun.com/jsp/jstl/core"; preifx="c" %> and <%@ taglib uri="http://java.sun.com/jstl/core"; preifx="c" %> But was getting error saying that the taglib is not specified in web.xml or either in the classpath. tried with different versions of JSTL.But same error. how to achieve my task using thnx in regards, Madan - Heres a new way to find what you're looking for - Yahoo! Answers
[ Tobago ] or [ Tomahawk ]
Hi all, Presently i am put into a project which develops some kind of shopping application. Was told to do that stuff with Tobago. The project includes basic things like Tree, Sheet which both Tobago and Tomahack support. But was facing issues when using Tobago , like Table alignments, no custom css classes to be defined in the tag itself. Just gone through Tomahawk and its same as like normal JSF tags. I have to finish of my project in few weeks with fully build and using good CSS. So am bit confused which tech to use. I need to convince my PM if i would suggest Tomahawk. So please suggest me which to use. Thnx in advance Madan - Heres a new way to find what you're looking for - Yahoo! Answers
[ Tobago ] Error thrown for Width Attribute
Hi All, Was getting this StackTrace when i run my app. I used Width attribute in a couple of tags, and they are working fine. But the stack says, the Width attribute is deprecated and use Layout Manager. How can i specify width of a panel, using Layout Manager. Thanx in Advance Regards, Madan 11:48:58,312 INFO [STDOUT] 11:48:58,312 WARN [TobagoTag] the with attribute is deprecated, please use a layout manager. (PanelTag) 11:48:58,312 INFO [STDOUT] 11:48:58,312 WARN [TobagoTag] the with attribute is deprecated, please use a layout manager. (PanelTag) 11:48:58,421 INFO [STDOUT] 11:48:58,421 WARN [TobagoTag] the with attribute is deprecated, please use a layout manager. (PanelTag) 11:48:58,421 INFO [STDOUT] 11:48:58,421 WARN [TobagoTag] the with attribute is deprecated, please use a layout manager. (PanelTag) 11:48:58,421 INFO [STDOUT] 11:48:58,421 WARN [TobagoTag] the with attribute is deprecated, please use a layout manager. (BoxTag) 11:48:58,421 INFO [STDOUT] 11:48:58,421 WARN [TobagoTag] the with attribute is deprecated, please use a layout manager. (BoxTag) 11:48:58,421 INFO [STDOUT] 11:48:58,421 WARN [TobagoTag] the height attribut e is deprecated, please use a layout manager. (BoxTag) 11:48:58,421 INFO [STDOUT] 11:48:58,421 WARN [TobagoTag] the height attribut e is deprecated, please use a layout manager. (BoxTag) 11:48:58,421 INFO [STDOUT] 11:48:58,421 WARN [TobagoTag] the with attribute is deprecated, please use a layout manager. (InTag) 11:48:58,421 INFO [STDOUT] 11:48:58,421 WARN [TobagoTag] the with attribute is deprecated, please use a layout manager. (InTag) 11:48:58,421 INFO [STDOUT] 11:48:58,421 WARN [TobagoTag] the with attribute is deprecated, please use a layout manager. (ButtonTag) 11:48:58,421 INFO [STDOUT] 11:48:58,421 WARN [TobagoTag] the with attribute is deprecated, please use a layout manager. (ButtonTag) 11:48:58,718 INFO [STDOUT] 11:48:58,703 WARN [TobagoTag] the with attribute is deprecated, please use a layout manager. (PanelTag) 11:48:58,718 INFO [STDOUT] 11:48:58,703 WARN [TobagoTag] the with attribute is deprecated, please use a layout manager. (PanelTag) - Heres a new way to find what you're looking for - Yahoo! Answers
[Tobago] Problem with Required Attribute
Hi All, I Used a Layout as specified in the Demo Example. I included a Top Navigation bar at the top, a Left Navigation bar in the left. The is done for the Middle Part which uses the layout. In one of the pages, i used a panel to place with required="true" and a submit button. When i navigate to this page, and click on submit button without entering any values, i get the indication that fields are Required. But when i just navigate to this page, and then click on other links on my TopNavigationBar to visit other screens, i get the same indication that fields are required. I need to display these errors when the user clicks "submit" button, but not when he wish to navigate to other screen without entering any data in the required fields. How to achieve this ? Thnx in advance, Madan __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
[Tobago] Problem with ActionListener for
Hi all, I have a issue regarding the Tree's ActionListener. When i click on one of my nodes in the tree, i need to fire an event. I used the following code as below to display my tree. Was able to get the tree and see the underlying nodes in that. But when i click on the nodes, the ActionListener is not invoked. Regards, Madan __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Re: [Tobago] Problem with Required Attribute
Hi Volker, Thnx for the reply and the application is working fine now when placed immediate="true". Regards, Madan - Original Message From: Volker Weber <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Friday, 2 February, 2007 1:20:35 AM Subject: Re: [Tobago] Problem with Required Attribute Hi Madan, add a immediate=true to the navigation command. Regards, Volker 2007/2/1, madan chowdary <[EMAIL PROTECTED]>: > > Hi All, > > I Used a Layout as specified in the Demo Example. > > I included a Top Navigation bar at the top, a Left Navigation bar in the > left. > > The is done for the Middle Part which uses the layout. > > In one of the pages, i used a panel to place with required="true" > and a submit button. > > When i navigate to this page, and click on submit button without entering > any values, i get the indication that fields are Required. > > But when i just navigate to this page, and then click on other links on my > TopNavigationBar to visit other screens, i get the same indication that > fields are required. > > I need to display these errors when the user clicks "submit" button, but not > when he wish to navigate to other screen without entering any data in the > required fields. > > How to achieve this ? > > Thnx in advance, > Madan > > > > > Here's a new way to find what you're looking for - Yahoo! Answers __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Re: [Tobago] Problem with JSTL
hi all, I resolved the problem by placing standards.jar and jstl.jar in my lib and was able to use JSTL core tag. But was facing a issue when using conditional checking in my JSP. a part of my JSP looks like this the getter for this shipToLookup is as such public boolean getShipToLookup() { return true; //return shipToLookup; } but always i get the output as " ShipToLookup is disabled " which is printed with as shown in above jsp snippet. not only this, i am checking for a variable if it is equal to 1 . Even that condition is also failing. Is it problem with JSTL or Tobago or me ? its very confusing. Awaiting for a response ASAP. Thnx in regards, Madan - Original Message From: Udo Schnurpfeil <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Monday, 29 January, 2007 1:16:56 PM Subject: Re: [Tobago] Problem with JSTL Hello Madan, seens this is not a Tobago but a JSTL question. Do you have an implementation for the JSTL in your classpath? You need both: API + Impl. You may use the apache implementation (standard.jar): See http://jakarta.apache.org/taglibs/ If using maven try to add: taglibs standard 1.1.2 runtime Hope that helps Udo madan chowdary schrieb: > Hi all, > > i was having problem with JSTL tag. > > I want to display 20 text fields in each row. > > Thought to use , but saw that its deprecated in tlddocs. > > So opted for . > > I included jstl.jar in lib directory. > > tried with both > > <%@ taglib uri="http://java.sun.com/jsp/jstl/core";; preifx="c" %> > > and > > <%@ taglib uri="http://java.sun.com/jstl/core";; preifx="c" %> > > But was getting error saying that the taglib is not specified in > web.xml or either in the classpath. > > tried with different versions of JSTL.But same error. > > how to achieve my task using > > thnx in regards, > > Madan > > > Heres a new way to find what you're looking for - Yahoo! Answers > <http://us.rd.yahoo.com/mail/in/yanswers/*http://in.answers.yahoo.com/> __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Re: [Tobago] Problem with JSTL
Hi bred, ya i did a couple of search on web but didn't find anything that would be useful when doing some kind of conditional checking in JSP code which using Tobago. The is placed just for debugging . The actual case is to display different components for different conditions. say if " shipToLookup is true " then a should be displayed else must be displayed So thats the reason i was using JSTL. If not using JSTL, plz advice me how to proceed with the above case. a bit urgent for this now. Regards, Madan - Original Message From: Bernd Bohmann <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Saturday, 3 February, 2007 3:40:42 PM Subject: Re: [Tobago] Problem with JSTL Hello Madan, why you choose jstl? jstl and jsf doesn't work very well together. Please try a web search. Why you don't use this Regards Bernd madan chowdary wrote: > hi all, > > I resolved the problem by placing standards.jar and jstl.jar in my lib and > was able to use JSTL core tag. > > But was facing a issue when using conditional checking in my JSP. > > a part of my JSP looks like this > > > > > > > > > > > > > > the getter for this shipToLookup is as such > > public boolean getShipToLookup() { > return true; > //return shipToLookup; > } > > but always i get the output as " ShipToLookup is disabled " which is printed > with as shown in above jsp snippet. > > not only this, i am checking for a variable if it is equal to 1 . > > Even that condition is also failing. > > Is it problem with JSTL or Tobago or me ? its very confusing. > > Awaiting for a response ASAP. > > Thnx in regards, > Madan > > > - Original Message > From: Udo Schnurpfeil <[EMAIL PROTECTED]> > To: MyFaces Discussion > Sent: Monday, 29 January, 2007 1:16:56 PM > Subject: Re: [Tobago] Problem with JSTL > > Hello Madan, > > seens this is not a Tobago but a JSTL question. > > Do you have an implementation for the JSTL in your classpath? You need > both: API + Impl. > You may use the apache implementation (standard.jar): See > http://jakarta.apache.org/taglibs/ > If using maven try to add: > > taglibs > standard > 1.1.2 > runtime > > > Hope that helps > > Udo > > madan chowdary schrieb: >> Hi all, >> >> i was having problem with JSTL tag. >> >> I want to display 20 text fields in each row. >> >> Thought to use , but saw that its deprecated in tlddocs. >> >> So opted for . >> >> I included jstl.jar in lib directory. >> >> tried with both >> >> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" preifx="c" %> >> >> and >> >> <%@ taglib uri="http://java.sun.com/jstl/core" preifx="c" %> >> >> But was getting error saying that the taglib is not specified in >> web.xml or either in the classpath. >> >> tried with different versions of JSTL.But same error. >> >> how to achieve my task using >> >> thnx in regards, >> >> Madan >> >> >> Heres a new way to find what you're looking for - Yahoo! Answers >> <http://us.rd.yahoo.com/mail/in/yanswers/*http://in.answers.yahoo.com/> > > > > > > > > > > __ > Yahoo! India Answers: Share what you know. Learn something new > http://in.answers.yahoo.com/ __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Re: [Tobago] Problem with JSTL
ya bernd, thnx for the reply... its working fine now. I got one more doubt regarding . There are two list boxes, one of the list box depends on other. Say if i select car, the second list box should display list of cars available. if i select bike, the second list box should display list of bikes available. Saw the onchange event for , but dont know how to proceed with Tobago. how can i achieve my task with this case ? Madan - Original Message From: Bernd Bohmann <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Saturday, 3 February, 2007 5:05:25 PM Subject: Re: [Tobago] Problem with JSTL Hello Madan, you can use the rendered attribute Bernd madan chowdary wrote: > Hi bred, > > ya i did a couple of search on web but didn't find anything that would be > useful when doing some kind of conditional checking in JSP code which using > Tobago. > > The is placed just for debugging . > > The actual case is to display different components for different conditions. > > say if " shipToLookup is true " then a should be displayed else > must be displayed > > So thats the reason i was using JSTL. > > If not using JSTL, plz advice me how to proceed with the above case. > > a bit urgent for this now. > > Regards, > Madan > > - Original Message > From: Bernd Bohmann <[EMAIL PROTECTED]> > To: MyFaces Discussion > Sent: Saturday, 3 February, 2007 3:40:42 PM > Subject: Re: [Tobago] Problem with JSTL > > Hello Madan, > > why you choose jstl? > > jstl and jsf doesn't work very well together. > Please try a web search. > > Why you don't use this > > > > > Regards > > Bernd > > madan chowdary wrote: >> hi all, >> >> I resolved the problem by placing standards.jar and jstl.jar in my lib and >> was able to use JSTL core tag. >> >> But was facing a issue when using conditional checking in my JSP. >> >> a part of my JSP looks like this >> >> >> >> >> >> >> >> >> >> >> >> >> >> the getter for this shipToLookup is as such >> >> public boolean getShipToLookup() { >> return true; >> //return shipToLookup; >> } >> >> but always i get the output as " ShipToLookup is disabled " which is printed >> with as shown in above jsp snippet. >> >> not only this, i am checking for a variable if it is equal to 1 . >> >> Even that condition is also failing. >> >> Is it problem with JSTL or Tobago or me ? its very confusing. >> >> Awaiting for a response ASAP. >> >> Thnx in regards, >> Madan >> >> >> - Original Message >> From: Udo Schnurpfeil <[EMAIL PROTECTED]> >> To: MyFaces Discussion >> Sent: Monday, 29 January, 2007 1:16:56 PM >> Subject: Re: [Tobago] Problem with JSTL >> >> Hello Madan, >> >> seens this is not a Tobago but a JSTL question. >> >> Do you have an implementation for the JSTL in your classpath? You need >> both: API + Impl. >> You may use the apache implementation (standard.jar): See >> http://jakarta.apache.org/taglibs/ >> If using maven try to add: >> >> taglibs >> standard >> 1.1.2 >> runtime >> >> >> Hope that helps >> >> Udo >> >> madan chowdary schrieb: >>> Hi all, >>> >>> i was having problem with JSTL tag. >>> >>> I want to display 20 text fields in each row. >>> >>> Thought to use , but saw that its deprecated in tlddocs. >>> >>> So opted for . >>> >>> I included jstl.jar in lib directory. >>> >>> tried with both >>> >>> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" preifx="c" %> >>> >>> and >>> >>> <%@ taglib uri="http://java.sun.com/jstl/core" preifx="c" %> >>> >>> But was getting error saying that the taglib is not specified in >>> web.xml or either in the classpath. >>> >>> tried with different versions of JSTL.But same error. >>> >>> how to achieve my task using >>> >>> thnx in regards, >>> >>> Madan >>> >>> >>> Heres a new way to find what you're looking for - Yahoo! Answers >>> <http://us.rd.yahoo.com/mail/in/yanswers/*http://in.answers.yahoo.com/> >> >> >> >> >> >> >> >> >> __ >> Yahoo! India Answers: Share what you know. Learn something new >> http://in.answers.yahoo.com/ > > > > > > > > > __ > Yahoo! India Answers: Share what you know. Learn something new > http://in.answers.yahoo.com/ __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Re: [Tobago] Problem with JSTL
hi Bernd, thnx for ur patience for replying my queries, but i am not experienced but trying to grasp the tech. saw the example that u specified. but was bit confused seeing that. i placed the command in the first . when i select one of the item in the list, the page gets refreshed. So where should i write my code that updates the values in the second think that would be done with the valueChangeListener method in the bean. can u send me a sample java code that would update the values in the Listbox when a particular item is selected in the first. and one more thing, when i use the the label for the is displayed in red as it does when we use required="true". should we place immediate="true" for this component. thnx Madan - Original Message From: Bernd Bohmann <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Saturday, 3 February, 2007 5:53:38 PM Subject: Re: [Tobago] Problem with JSTL Hello Madan, use the for selectOneChoice a working example you can find at: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-tool/gendoc/src/main/webapp/screenshot/selectOneChoice.jsp?revision=496963&view=markup Bernd madan chowdary wrote: > ya bernd, > > thnx for the reply... > > its working fine now. > > I got one more doubt regarding . > > There are two list boxes, one of the list box depends on other. > > Say if i select car, the second list box should display list of cars > available. > > if i select bike, the second list box should display list of bikes available. > > Saw the onchange event for , but dont know how to > proceed with Tobago. > > how can i achieve my task with this case ? > > Madan > > - Original Message > From: Bernd Bohmann <[EMAIL PROTECTED]> > To: MyFaces Discussion > Sent: Saturday, 3 February, 2007 5:05:25 PM > Subject: Re: [Tobago] Problem with JSTL > > Hello Madan, > > you can use the rendered attribute > > > > > Bernd > > madan chowdary wrote: >> Hi bred, >> >> ya i did a couple of search on web but didn't find anything that would be >> useful when doing some kind of conditional checking in JSP code which using >> Tobago. >> >> The is placed just for debugging . >> >> The actual case is to display different components for different conditions. >> >> say if " shipToLookup is true " then a should be displayed else >> must be displayed >> >> So thats the reason i was using JSTL. >> >> If not using JSTL, plz advice me how to proceed with the above case. >> >> a bit urgent for this now. >> >> Regards, >> Madan >> >> - Original Message >> From: Bernd Bohmann <[EMAIL PROTECTED]> >> To: MyFaces Discussion >> Sent: Saturday, 3 February, 2007 3:40:42 PM >> Subject: Re: [Tobago] Problem with JSTL >> >> Hello Madan, >> >> why you choose jstl? >> >> jstl and jsf doesn't work very well together. >> Please try a web search. >> >> Why you don't use this >> >> >> >> >> Regards >> >> Bernd >> >> madan chowdary wrote: >>> hi all, >>> >>> I resolved the problem by placing standards.jar and jstl.jar in my lib and >>> was able to use JSTL core tag. >>> >>> But was facing a issue when using conditional checking in my JSP. >>> >>> a part of my JSP looks like this >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> the getter for this shipToLookup is as such >>> >>> public boolean getShipToLookup() { >>> return true; >>> //return shipToLookup; >>> } >>> >>> but always i get the output as " ShipToLookup is disabled " which is >>> printed with as shown in above jsp snippet. >>> >>> not only this, i am checking for a variable if it is equal to 1 . >>> >>> Even that condition is also failing. >>> >>> Is it problem with JSTL or Tobago or me ? its very confusing. >>> >>> Awaiting for a response ASAP. >>> >>> Thnx in regards, >>> Madan >>> >>> >>> - Original Message >>> From: Udo Schnurpfeil <[EMAIL PROTECTED]> >>> To: MyFaces Discussion >>> Sent: Monday, 29 January, 2007 1
Re: [Tobago] Problem with JSTL
was getting this error in the log 18:41:22,250 INFO [STDOUT] 18:41:22,250 DEBUG [CheckoutController] 18:41:22,265 INFO [STDOUT] 18:41:22,265 DEBUG [CheckoutController] Checkout Con troller Instance Created 18:41:22,265 INFO [STDOUT] 18:41:22,265 DEBUG [CheckoutController] 18:41:22,390 INFO [STDOUT] 18:41:22,390 ERROR [ResourceManagerImpl] Path not fo und, and no fallback. Using empty string. resourceDirs = '[tobago-resource, org/apache/myfaces/tobago/renderkit]' contentT ype = 'html' theme = 'speyside' browser = 'mozilla_5_0' subDir = 'property' name = 'tobago' suffix = '' key = 'javax.faces.component.UISelectOne.INVALID' i wrote the valueChangeListener method also, but was getting the same error as shown above.. - Original Message From: madan chowdary <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Saturday, 3 February, 2007 6:19:34 PM Subject: Re: [Tobago] Problem with JSTL hi Bernd, thnx for ur patience for replying my queries, but i am not experienced but trying to grasp the tech. saw the example that u specified. but was bit confused seeing that. i placed the command in the first . when i select one of the item in the list, the page gets refreshed. So where should i write my code that updates the values in the second think that would be done with the valueChangeListener method in the bean. can u send me a sample java code that would update the values in the Listbox when a particular item is selected in the first. and one more thing, when i use the the label for the is displayed in red as it does when we use required="true". should we place immediate="true" for this component. thnx Madan - Original Message From: Bernd Bohmann <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Saturday, 3 February, 2007 5:53:38 PM Subject: Re: [Tobago] Problem with JSTL Hello Madan, use the for selectOneChoice a working example you can find at: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-tool/gendoc/src/main/webapp/screenshot/selectOneChoice.jsp?revision=496963&view=markup Bernd madan chowdary wrote: > ya bernd, > > thnx for the reply... > > its working fine now. > > I got one more doubt regarding . > > There are two list boxes, one of the list box depends on other. > > Say if i select car, the second list box should display list of cars > available. > > if i select bike, the second list box should display list of bikes available. > > Saw the onchange event for , but dont know how to > proceed with Tobago. > > how can i achieve my task with this case ? > > Madan > > - Original Message > From: Bernd Bohmann <[EMAIL PROTECTED]> > To: MyFaces Discussion > Sent: Saturday, 3 February, 2007 5:05:25 PM > Subject: Re: [Tobago] Problem with JSTL > > Hello Madan, > > you can use the rendered attribute > > > > > Bernd > > madan chowdary wrote: >> Hi bred, >> >> ya i did a couple of search on web but didn't find anything that would be >> useful when doing some kind of conditional checking in JSP code which using >> Tobago. >> >> The is placed just for debugging . >> >> The actual case is to display different components for different conditions. >> >> say if " shipToLookup is true " then a should be displayed else >> must be displayed >> >> So thats the reason i was using JSTL. >> >> If not using JSTL, plz advice me how to proceed with the above case. >> >> a bit urgent for this now. >> >> Regards, >> Madan >> >> ----- Original Message >> From: Bernd Bohmann <[EMAIL PROTECTED]> >> To: MyFaces Discussion >> Sent: Saturday, 3 February, 2007 3:40:42 PM >> Subject: Re: [Tobago] Problem with JSTL >> >> Hello Madan, >> >> why you choose jstl? >> >> jstl and jsf doesn't work very well together. >> Please try a web search. >> >> Why you don't use this >> >> >> >> >> Regards >> >> Bernd >> >> madan chowdary wrote: >>> hi all, >>> >>> I resolved the problem by placing standards.jar and jstl.jar in my lib and >>> was able to use JSTL core tag. >>> >>> But was facing a issue when using conditional checking in my JSP. >>> >>> a part of my JSP looks like this >>> >>> >>> >>> >>> >>> >>> >>> >>> &
[ Tobago ] Help regarding valueChangelistener
Hi all, i am using valueChangeListener with . this part of code is used to submit the page when a item is the listbox selected which alters another component. the JSP code snippet is as below and the method called for valueChangeListener is as below public void billingAddressValueChanged(ValueChangeEvent e){ log.debug(" *** billingAddressValueChanged is called *** "); } When i select a particular method the bean constructor is called, but the method binding to valueChangeListener is never called. am using Tobago 1.0.9 . Regards, Madan __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Re: [ Tobago ] Help regarding valueChangelistener
Hi Bernd i placed around but still able to see the Validation Error My JSP code after placing is as below ValueChangeListener is never called when i place it in . So i placed an actionListener in . But when i select any item in the list, the bean is instansiated but the setters for this listbox is not called, so thus the value is not set. So was trying to get the parameter from the request object, but this is not the right way, as it will be done by the framework to set the values. can u send me the java code or else the war file for the example so that i can run on my sys to check that out. thnx Madan - Original Message From: Bernd Bohmann <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Sunday, 4 February, 2007 5:29:02 PM Subject: Re: [ Tobago ] Help regarding valueChangelistener Hello Madan, I extend the selectOneChoice example with a selectOneChoice that depend on an other selectOneChoice. http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-tool/gendoc/src/main/webapp/screenshot/selectOneChoice.jsp?revision=503396&view=markup To avoid validation or required messages please surround the selectOneChoice with a tc:form. See comment in example page. The immediate="true" should be removed, I would suggest to switch the selectItem in the action of the command or in the getter of the getSelectItem method of the depend selectOneChoice. Bernd madan chowdary wrote: > Hi all, > > i am using valueChangeListener with . > > this part of code > > > > is used to submit the page when a item is the listbox selected which alters > another component. > > the JSP code snippet is as below > > value="#{checkout.selectedBillingAddress}" > id="selectedBillingAddress" > rendered="#{checkout.billToSiteSize > 1}" > valueChangeListener="#{checkout.billingAddressValueChanged}" > > > > > > > > > and the method called for valueChangeListener is as below > > public void billingAddressValueChanged(ValueChangeEvent e){ > log.debug(" *** billingAddressValueChanged is called *** "); > } > > When i select a particular method the bean constructor is called, but the > method binding to valueChangeListener is never called. > > am using Tobago 1.0.9 . > > Regards, > Madan > > > > > > > > > __ > Yahoo! India Answers: Share what you know. Learn something new > http://in.answers.yahoo.com/ __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
Re: [ Tobago ] Help regarding valueChangelistener
Hi Bernd, This is what my 's iterate /** * * @return the billToSite address available for the customer */ public Collection getBillToSites() { Collection selectItems = new ArrayList(); if(billToSites != null){ for(BillToSite billToSite : billToSites){ selectItems.add(new SelectItem(billToSite.getSiteId(),billToSite.getAddress())); } } return selectItems; } billToSites is an array of BillToSite class, so just created a Collection object with SelectItem in that . would this cause the problem ? and in ur previous mail u specified as > I would suggest to switch the selectItem in the action of the command or > in the getter of the getSelectItem method of the depend selectOneChoice. i didnt get the above statement, can u explain it in detail plz thnx Madan - Original Message From: Bernd Bohmann <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Sunday, 4 February, 2007 5:58:05 PM Subject: Re: [ Tobago ] Help regarding valueChangelistener If you still get a validation Error or conversion error or something else I asume the error comes from the selectOneChoice self. The value changeListener is not called if you don't select a valid option. madan chowdary wrote: > Hi Bernd > > i placed around but still able to see the > Validation Error > > My JSP code after placing is as below > > > > > value="#{checkout.selectedBillingAddress}" > > id="selectedBillingAddress" > > rendered="#{checkout.billToSiteSize > 1}" > > > > value="#{checkout.billToSites}"/> > > actionListener="#{checkout.billingAddressValueChanged}"/> > > > > > > > ValueChangeListener is never called when i place it in . > > So i placed an actionListener in . > > But when i select any item in the list, the bean is instansiated but the > setters for this listbox is not called, so thus the value is not set. > > So was trying to get the parameter from the request object, but this is not > the right way, as it will be done by the framework to set the values. > > can u send me the java code or else the war file for the example so that i > can run on my sys to check that out. > > thnx > > Madan > > - Original Message > From: Bernd Bohmann <[EMAIL PROTECTED]> > To: MyFaces Discussion > Sent: Sunday, 4 February, 2007 5:29:02 PM > Subject: Re: [ Tobago ] Help regarding valueChangelistener > > Hello Madan, > > I extend the selectOneChoice example with a selectOneChoice that depend > on an other selectOneChoice. > > http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-tool/gendoc/src/main/webapp/screenshot/selectOneChoice.jsp?revision=503396&view=markup > > To avoid validation or required messages please surround the > selectOneChoice with a tc:form. See comment in example page. > The immediate="true" should be removed, > > I would suggest to switch the selectItem in the action of the command or > in the getter of the getSelectItem method of the depend selectOneChoice. > > Bernd > > madan chowdary wrote: >> Hi all, >> >> i am using valueChangeListener with . >> >> this part of code >> >> >> >> is used to submit the page when a item is the listbox selected which alters >> another component. >> >> the JSP code snippet is as below >> >> > value="#{checkout.selectedBillingAddress}" >> id="selectedBillingAddress" >> rendered="#{checkout.billToSiteSize > 1}" >> valueChangeListener="#{checkout.billingAddressValueChanged}" >> > >> >> >> >> >> >> >> and the method called for valueChangeListener is as below >> >> public void billingAddressValueChanged(ValueChangeEvent e){ >> log.debug(" *** billingAddressValueChanged is called *** "); >> } >> >&g
Re: [ Tobago ] Help regarding valueChangelistener
Hi Bernd, thnx for the reply, will check over the java file u send, is there any working demo for the example u speciefied, if so then that would be easier for me to understand. Madan - Original Message From: Bernd Bohmann <[EMAIL PROTECTED]> To: MyFaces Discussion Sent: Sunday, 4 February, 2007 6:33:40 PM Subject: Re: [ Tobago ] Help regarding valueChangelistener Hallo Madan, which type has the value of the selectOneChoice? In my example the getter of the selectItems returns the valid options depending on the value selected in the other selectOneChoice. But i don't like to add to much logic in a getter. If you need more code to set the optionList of the depend selectBox I would prefer an action. This is the intention of my statement Please look in the controller of the example http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-tool/gendoc/src/main/java/org/apache/myfaces/tobago/example/reference/Controller.java?revision=503385&view=markup the action is the method public String action() and the getter of the depend selectItems is the method public SelectItem[] getManufacturerSelectItems() Regards Bernd madan chowdary wrote: > Hi Bernd, > > This is what my 's iterate > > /** > * > * @return the billToSite address available for the customer > */ > public Collection getBillToSites() { > > Collection selectItems = new ArrayList(); > > if(billToSites != null){ > for(BillToSite billToSite : billToSites){ > selectItems.add(new > SelectItem(billToSite.getSiteId(),billToSite.getAddress())); > } > } > return selectItems; > } > > billToSites is an array of BillToSite class, so just created a Collection > object with SelectItem in that . > > would this cause the problem ? > > and in ur previous mail u specified as > >> I would suggest to switch the selectItem in the action of the command or >> in the getter of the getSelectItem method of the depend selectOneChoice. > > i didnt get the above statement, can u explain it in detail plz > > thnx > > Madan > __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/