Submitting a form on t:panelTabbedPane tab switching

2006-12-18 Thread Cristi Toth
Hi, I am using a t:panelTabbedPane with serverSideTabSwitch turned on I have some input fields on a tab and others on another tab. If I enter some data into the first tab's fields, then switch to the other tab and then submit the form, the first tab's data is not submitted!!! How to make the tab

Re: Getting ClassCastException in Tomahawk Tree2

2006-12-18 Thread Sanjeev
Sawan Vithlani vithlani.lists at gmail.com writes: Would be worth it if you posted your JSP and backing bean code along with your questionSawan On 12/15/06, Sanjeev Gour sanjeev.gour at gmail.com wrote:Hi,I am using tomahwk tree2 in my example but clicking on a leaf node is

h:dataTable and h:commandLink: once again :-(

2006-12-18 Thread Behrang Saeedzadeh
Hi all, What is the best practice to show h:commandLinks inside a h:dataTable whose data are fetched from a database (say, bound to #{TableBean.rows})? As you know, when I click on a commandLink inside a h:dataTable, the TableBean's getRows is invoked again and this causes some serious

Re: h:dataTable and h:commandLink: once again :-(

2006-12-18 Thread David Delbecq
My suggestions: 1) with a bit of javascript form inputfield selectedRowId/ button for action/ datatable commandlink onclick=setSelectedRowId('#{dbrow.Id}');call_submit_on_button_action();return false;/ /datatable/form 2) Create you own datatable component for showing datas, a

Re: h:dataTable and h:commandLink: once again :-(

2006-12-18 Thread Behrang Saeedzadeh
David, Thanks for the response. Actually I am using (evaluating) Quipukit's TreeTable component which behaves like the standard DataTable in this regard. The component is damn very cool and elegant but so far it has left me with no solution for the problem I am facing. I will search the 'net

Re: JSF Scaling and Performance

2006-12-18 Thread Matthias Wessendorf
hello alen, that page ([1]) might be very interesting for you. [1] http://wiki.apache.org/myfaces/Performance On 12/17/06, Alen Vrecko [EMAIL PROTECTED] wrote: I started learning JSF a few weeks ago. I must say I am impressed with how easy it is do JSF developement, but I am curious about

selectItems as Links?

2006-12-18 Thread Michael Heinen
I have to render the selectItems as Links. E.g. the labels of a selectManyCheckbox or a selectOneRadio should be linked and execute an actionListener if clicked. Is there any easy/existing solution or do I have to create a new tag/component/renderer for this ? Michael

Double click again.....

2006-12-18 Thread pallavi.roy
Hi All, I had posted a similar query earlier to prevent double click of a form button. I could use Shale's s:token but i ran into compatibility issues between RAD6.0.1 and Shale-core.jar1.0.3. So i had to give it up and try another approach using Synchronizer Token pattern as in sytuts. Please

Re: Double click again.....

2006-12-18 Thread Adrian Mitev
You could just download the token's source code and use only the component without the other features of shale-core 2006/12/18, [EMAIL PROTECTED] [EMAIL PROTECTED]: Hi All, I had posted a similar query earlier to prevent double click of a form button. I could use Shale's s:token but i ran

Re: [Tobago] tobago + facelets exeption

2006-12-18 Thread Volker Weber
Hi Yuri, My Question is it possible to add additional checking in TobagoRenderKit.createResponseWriter method add checking for characterEncoding and if it's null to setup it to UTF-8? +1 from me, please add a jira issue for this. And the second question why does TobagoResponseWriter

Re: Submitting a form on t:panelTabbedPane tab switching

2006-12-18 Thread Paul Spencer
Cristi, See below. Cristi Toth wrote: Hi, I am using a t:panelTabbedPane with serverSideTabSwitch turned on I have some input fields on a tab and others on another tab. If I enter some data into the first tab's fields, then switch to the other tab and then submit the form, the first tab's

Re: Best Practice - Converting raw property values of Beans

2006-12-18 Thread Torsten Krah
But what about f:selectItems? Using a SelectOneMenu, the converter changes the option value - but what i want is to change the value chown to the user, that one between the begin and end of the option Tag. t:selectOneMenu forceId=true id=languages value=[EMAIL PROTECTED] f:selectItems

Re: Submitting a form on t:panelTabbedPane tab switching

2006-12-18 Thread Paul Spencer
Cristi, Below are some correction to my previous response and additional information. Paul Spencer wrote: Cristi, See below. Cristi Toth wrote: Hi, I am using a t:panelTabbedPane with serverSideTabSwitch turned on I have some input fields on a tab and others on another tab. If I enter some

RE: [Tobago] tobago + facelets exeption

2006-12-18 Thread Yuri Ivanov
Thanks Volker, for your quick response! My Question is it possible to add additional checking in TobagoRenderKit.createResponseWriter method add checking for characterEncoding and if it's null to setup it to UTF-8? +1 from me, please add a jira issue for this. I added jire issue for this

layout question

2006-12-18 Thread Yuri Ivanov
Hello, I have simple layout task. I need to make a login dialog box in the center of the browser screen. The problem that initial size of the page I need to set in px, and it's not good. I have tried to set page width and height to 100%, but it doesn't work. tc:page width=100% height=100%

[Tobago] layout question

2006-12-18 Thread Yuri Ivanov
Hello, I have simple layout task. I need to make a login dialog box in the center of the browser screen. The problem that initial size of the page I need to set in px, and it's not good. I have tried to set page width and height to 100%, but it doesn't work. tc:page width=100% height=100%

Re: selectItems as Links?

2006-12-18 Thread Josué Alcalde González
El lun, 18-12-2006 a las 04:35 -0700, Michael Heinen escribió: I have to render the selectItems as Links. E.g. the labels of a selectManyCheckbox or a selectOneRadio should be linked and execute an actionListener if clicked. But, when you click on a label with a for property, it is like you

No cache for specific backing beans?

2006-12-18 Thread KwonNam Son
Hello, I've found this link - http://www.it-eye.nl/weblog/2006/11/20/adf-faces-and-cache-control/ -which tell us how to set no-cache with JSF PhaseListener. But the thing I exactly want is setting no-cache when some SPECIFIC BACKING BEANs(just 2 or 3) are being loaded. I want that my customers

Re: layout question

2006-12-18 Thread David Delbecq
Vertical centering in html is not that simple. Search the web for 'css vertical centering' to see how to do this. For horizontal centering part, this should do the trick: html body style=width:100% div style=margin-left:auto;margin-right:auto;border:1px solid black;width:50%;padding:5pt;

RE: layout question

2006-12-18 Thread Yuri Ivanov
Thanks David! I really appreciate your advice. But I forgot to add that it's about Tobago library. I am not sure Will it be ok to use it with that lib. Tobago uses they own layout manager. Regards, Yuri -Original Message- From: David Delbecq [mailto:[EMAIL PROTECTED] Sent: Monday,

[Tobago] 1.0.9 popups

2006-12-18 Thread Florian Pfann
Hello i'am using myfaces-tobago-1.0.9-SNAPSHOT. I have some problems with popus. The following side works with 1.0.8: %@ taglib uri=http://myfaces.apache.org/tobago/component; prefix=tc% %@ taglib uri=http://java.sun.com/jsf/core; prefix=f% %@ taglib

Re: how to reduce myfaces memory footprint?

2006-12-18 Thread Jeff Bischoff
Fred, Are you using JSP or Facelets? They tend to have different performance. Myfaces wrote: Hi, I've been using Myfaces implementation of JSF for couple of months but didn't perform profling and facing issues with memory footprint now. I'm using t:datatable for rendering employees info.

Re: how to reduce myfaces memory footprint?

2006-12-18 Thread Simon Lessard
Hello Fred, I think you could write your own implementation of a DataModel for your need I think. It simply has to support lazy fetching and maybe release rows after they're read? This should be transparent to all other parts of the application as well as the user except for a slower loading

Re: how to reduce myfaces memory footprint?

2006-12-18 Thread Myfaces
I'm using Facelets. thanks Fred. Jeff Bischoff wrote: Fred, Are you using JSP or Facelets? They tend to have different performance. Myfaces wrote: Hi, I've been using Myfaces implementation of JSF for couple of months but didn't perform profling and facing issues with memory

Re: [Tobago] 1.0.9 popups

2006-12-18 Thread Volker Weber
Hi Florian, the popup handling has changed in the last weeks. the rendered attribute of the popup-tag did not longer cause tho popup to open (it just can suppress the popup). You need a command with a tc:attribute inside to open or close a popup. see the sourcecode of the sheetControll.jsp in

Re: layout question

2006-12-18 Thread Jeff Bischoff
Tobago questions should have a [Tobago] in the subject line. :)

Re: layout question

2006-12-18 Thread Volker Weber
Hi Yuri, the problem is: the full layout is calculated on the server, so the server needs to know the clients size. in the example/addessbook you can see how to solve this. The start.jsp is just to get the size into the PageState. Regards, Volker 2006/12/18, Yuri Ivanov [EMAIL PROTECTED]:

Re: Saving State

2006-12-18 Thread Matt Tyson
For the next person that runs into this, I've got a work around. Say you have a frameset, frameset.jsp that has 2 frames, frameLeft.jsp and frameRight.jsp. Myfaces is not handling the state saving correctly (server-side), so the state will not be recovered for components inside frameLeft.jsp.

RE: layout question

2006-12-18 Thread Yuri Ivanov
Thanks a lot Volker, Yes! That must help me out of that problem. Regards, Yuri Ivanov -Original Message- From: Volker Weber [mailto:[EMAIL PROTECTED] Sent: Monday, December 18, 2006 5:48 PM To: MyFaces Discussion Subject: Re: layout question Hi Yuri, the problem is: the full layout

t:document tags and xhtml

2006-12-18 Thread Brad Smith
I have seen recommendations on the myfaces wiki that performance of JSF can be improved if t:document tags are used. Will these tags produce valid and well formed xhtml? Or can they be configured to do so? The documentation seems sparse. Thanks, Brad signature.asc Description: This is a

Tomahawk 1.1.4 pre-release sandbox?

2006-12-18 Thread Jeff Bischoff
Hey guys, Has anyone built (and have available) a sandbox.jar off of the Tomahawk 1.1.4 release candidate branch? [1] If not, I will try to do this myself, perhaps tomorrow. I just want to make sure I have Dojo in the right place. :) [1] http://wiki.apache.org/myfaces/TomahawkRelease114

jscookMenu unsuccessful

2006-12-18 Thread Gabriel . Enriquez
Hi, I've been trying to use the jscookMenu as following, h:form t:jscookMenu layout=hbr theme=ThemeOffice %/* Availaible jscookMenu themes: ThemeIE, ThemeMiniBlack,ThemeOffice, ThemePanel Availaible jscookMenu layout: hbr, hbl, hur,

Re: jscookMenu unsuccessful

2006-12-18 Thread Gabriel . Enriquez
If I can get a web.xml copy (just copy the extensions filter configuration) of a successful project where implemented would be great. Thanks [EMAIL PROTECTED] 12/18/2006 12:08 PM Please respond to MyFaces Discussion users@myfaces.apache.org To users@myfaces.apache.org cc Subject

RE: [Tobago] - Looking for usage examples for progress bar

2006-12-18 Thread John
Hi Bernd, I looked over your example. It seems like only enough code to display the progress bar using the parameters from the BoundedRangeModel. I actually already got that far (displaying the nice progress bar with the paramters from the BoundedRangeModel). But I can't see how you animate the

Re: [Tobago] - Looking for usage examples for progress bar

2006-12-18 Thread Volker Weber
Hi John, currently you need to put the progressbar into a panel with a reload facet. tc:panel f:facet name=reload tc:reload frequency=5000 / /f:facet tc:progress .../ /tc:panel (not tested, but should work) Regards, Volker 2006/12/18, John [EMAIL PROTECTED]: Hi Bernd, I looked over

RE: [Tobago] - Looking for usage examples for progress bar

2006-12-18 Thread John
Hi Volker, That makes perfect sense, thank you. I didn't even know about the reload facet. John -Original Message- From: Volker Weber [mailto:[EMAIL PROTECTED] Sent: Monday, December 18, 2006 9:37 AM To: MyFaces Discussion Subject: Re: [Tobago] - Looking for usage examples for

RE: Managed-bean vs. Backing-beans

2006-12-18 Thread Keyur Shah
Of course there is no formal definition of a backing bean but this would be my take: Backing bean is a managed bean that backs the view. Another term for the backing bean could be view bean. Cheers, Keyur -Original Message- From: Simon Kitching [mailto:[EMAIL PROTECTED] Sent: Sunday,

Re: t:document tags and xhtml

2006-12-18 Thread Mario Ivankovits
Hi Brad! I have seen recommendations on the myfaces wiki that performance of JSF can be improved if t:document tags are used. Will these tags produce valid and well formed xhtml? Or can they be configured to do so? They are just replacements for html's html, head, body. So if a page

Re: t:document tags and xhtml

2006-12-18 Thread Gary VanMatre
I have seen recommendations on the myfaces wiki that performance of JSF can be improved if t:document tags are used. Will these tags produce valid and well formed xhtml? Or can they be configured to do so? The documentation seems sparse. I think this component has a couple hidden purposes.

tabChangeListener Attribute in panelTabbedPane tag

2006-12-18 Thread Fiallega, Jorge L
Version: tomahawk 1.1.5 I am in need of a tabChangeListener attribute within the panelTabbedPane tag like: t:panelTabbedPane=20 serverSideTabSwitch=true styleClass=tabbedPane selectedIndex = 0

Simple redirect/ appending jsf extension

2006-12-18 Thread Charbel Abdul-Massih
I have a myfaces app running with Facelets... In my web.xml, I set my javax.faces.DEFAULT_SUFFIX to .xhtml When I try to have a redirect outside the JSF app like so navigation-case from-outcomesuccess/from-outcome to-view-id/servlet/someservlet/to-view-id redirect/

Re: Simple redirect/ appending jsf extension

2006-12-18 Thread Simon Kitching
Charbel Abdul-Massih wrote: I have a myfaces app running with Facelets… In my web.xml, I set my javax.faces.DEFAULT_SUFFIX to .xhtml When I try to have a redirect outside the JSF app like so navigation-case from-outcomesuccess/from-outcome to-view-id/servlet/someservlet/to-view-id

Re: [Tobago] - Looking for usage examples for progress bar

2006-12-18 Thread Bernd Bohmann
Just commited an example in http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-tool/gendoc/src/main/webapp/screenshot/progress.jsp should work with the next nightly build. Regards Bernd John wrote: Hi Volker, That makes perfect sense, thank you. I didn't even know about the reload

RE: Simple redirect/ appending jsf extension

2006-12-18 Thread Charbel Abdul-Massih
Simon, But I thought the whole point of the redirect/ is to tell JSF that the view-id is external... Charbel -Original Message- From: Simon Kitching [mailto:[EMAIL PROTECTED] Sent: Monday, December 18, 2006 3:50 PM To: MyFaces Discussion Subject: Re: Simple redirect/ appending jsf

Re: Simple redirect/ appending jsf extension

2006-12-18 Thread Simon Kitching
Charbel Abdul-Massih wrote: Simon, But I thought the whole point of the redirect/ is to tell JSF that the view-id is external... No, redirect is really to tell the browser what the real URL of the target JSF page is. With normal navigation, the browser POSTs a request to /page1.xhtml. If

RE: Simple redirect/ appending jsf extension

2006-12-18 Thread Charbel Abdul-Massih
Thanks for the clarification... -Original Message- From: Simon Kitching [mailto:[EMAIL PROTECTED] Sent: Monday, December 18, 2006 4:04 PM To: MyFaces Discussion Subject: Re: Simple redirect/ appending jsf extension Charbel Abdul-Massih wrote: Simon, But I thought the whole point of

Re: t:document tags and xhtml

2006-12-18 Thread Brad Smith
Hi Mario I did not experience problems but I also did not get what I am looking for. Specifically, I would like the following basic outline in a web page: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html

Re: t:document tags and xhtml

2006-12-18 Thread Mario Ivankovits
Hi Brad! !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=http://www.w3.org/1999/xhtml; lang=en xml:lang=en Yep, these attributes are missing, as far as a know. Please open a JIRA at [1]. body id='some id'

Re: t:document tags and xhtml

2006-12-18 Thread Matthias Wessendorf
Brad, in there is a tr:document in trinidad it uses facets (like metaContainer) for adding custom / third party js (like dojo) -Matthias [1] http://incubator.apache.org/adffaces/trinidad-api/tagdoc/tr_document.html On 12/18/06, Brad Smith [EMAIL PROTECTED] wrote: Hi Mario I did not

Re: t:document tags and xhtml

2006-12-18 Thread Gary VanMatre
Hi Mario I did not experience problems but I also did not get what I am looking for. Specifically, I would like the following basic outline in a web page: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html

AW: Re: [Tobago] 1.0.9 popups

2006-12-18 Thread H. Swaczinna
Hello Volker, aren't the old style popups supported anymore? I need both of them. The old ones, because I want the page to be submitted, before the popup is displayed, and the new ones for displaying some detail data or for short user prompts. I mixed both styles in one page and I got strange

Tree2: collapsing nodes

2006-12-18 Thread Sawan Vithlani
Hi, What is the definitive way to collapse tree nodes programatically from your backing bean? I have a UITree object in my bean: ... .. ... treeUI = new UITreeData(); treeUI.setValue( treeData.getRootNode()); And in my action method: public void collapseAllAction(ActionEvent event){

Accessing nodes in tree2

2006-12-18 Thread Sawan Vithlani
Has the issue discussed here: http://marc.theaimsgroup.com/?l=myfaces-userm=114469142112029w=2 been resolved in any manner? I have a need to access nodes in a tree in a random fashion, is there any way you can do this? The getNodeById() methods do not work with node.identifier. I also need to

Re: a4j:inlcude and t:popup

2006-12-18 Thread Andrew Robinson
This is a problem with most of the tomahawk components, and I will cross-post this answer on that list for those with the same issue there. What happens is that by default the extension filter from tomahawk adds all external JavaScript resources into the document head on page render, but only if

Why does Tomahawk 1.1.4 PanelTabbedPane cache it's children?

2006-12-18 Thread KwonNam Son
Hello, I use MyFaces and Tomahawk 1.1.4. When I try to use PanelTabbedPane of Tomahawk, I found it caches it's children. The backing bean's scope is REQUEST. When I click the tabbed page, it works fine. But, if click the same page with difference parameters, it just shows the data which is shown

Getting ClassCastException in ExtensionPhaseLIstener

2006-12-18 Thread Sanjeev Gour
Hi, I am using tomahawk tree2 in my project, but at the time of application start up I am getting the log4j warning and ExtensionPhaseLisener Exception. The web.xml code showing the ExtentionPhaseListener configuration is pasted below the exception. Here is the exception that I am getting:

Re: Re: [Tobago] 1.0.9 popups

2006-12-18 Thread Volker Weber
Hello Helmut, no the old style of popup handling did not longer work, but should not be a problem, if you put a action to the opening command the action is executed (including submitting all page content, but without rerendring). Regards, Volker 2006/12/19, H. Swaczinna [EMAIL PROTECTED]: