Re: Panel Grid custom component

2006-02-05 Thread Volker Weber
Hi Ali, UIPanel for base class should work, did you overwrite encodeChildren() or encodeEnd() to do nothing? BTW: don't expect these components between your rendered start and end comments, they are just created here, the rendering is done in encodeChildren() method of the superclass. Just for

Re: Redisplay Problem

2006-02-05 Thread Volker Weber
Hi Francesco, ... the AccountBean is in request-scope thats the reason for recreating this bean every request ;-). You can hold a request-scope bean over multiple requests using the t:saveState tag: t:saveState value=#{AccountBean} / See:

Re: AW: document.getElementById(jsf_tree_64) has no properties

2006-02-05 Thread Volker Weber
Hi Haihua, the state saving method is defined as context-param in the web.xml: context-param description State saving method: client or server (= default) See JSF Specification 2.5.2 /description param-namejavax.faces.STATE_SAVING_METHOD/param-name

Error when using spread layout in programmatically created HtmlSelectOneRadio

2006-02-05 Thread Matthias Kahlau
Hi! I used spread layout successfully with HtmlSelectOneRadio and HtmlSelectManyCheckbox in JSP. Now I programmatically created a HtmlSelectOneRadio and set the layout attribute to spread: HtmlSelectOneRadio radios = new HtmlSelectOneRadio(); // Tomahawk selectOne = radios;

WG: Error when using spread layout in programmatically created HtmlSelectOneRadio

2006-02-05 Thread Matthias Kahlau
BTW: In the console, I get the following stacktrace: 12:43:56,937 ERROR [Engine] StandardWrapperValve[Faces Servlet]: Servlet.service() for servlet Faces Servlet threw exception java.lang.IllegalArgumentException: Value is no String and component _id0:Frage_2with path: {Component-Path : [Class:

Re: Error when using spread layout in programmatically created HtmlSelectOneRadio

2006-02-05 Thread Volker Weber
Hi Mathias, set the renderType to org.apache.myfaces.Radio; otherwise you won't get the tomahawk renderer. Regards, Volker Matthias Kahlau wrote: Hi! I used spread layout successfully with HtmlSelectOneRadio and HtmlSelectManyCheckbox in JSP. Now I programmatically created a

Re: Collision of session object and h:dataTable internal variable

2006-02-05 Thread Mathias Brökelmann
The var attribute is only available when the table renderer renders the rows with the data. the rendered attribute is evaluated before the rows are rendered. The table renderer requests the rendered value of each column for the header and footer cells which are rendered without the var attribute

Re: Redisplay Problem

2006-02-05 Thread Francesco Persico
tnx this is exactly what i need :) - Original Message - From: Volker Weber [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Sunday, February 05, 2006 12:16 PM Subject: Re: Redisplay Problem Hi Francesco, ... the AccountBean is in request-scope thats the

Re: Panel Grid custom component

2006-02-05 Thread Ali Raza
But i was wondering whether i could exten my component from UIInput or something and add an HTmlPanelGrid to it as a child ??ThanxAliOn 2/5/06, Ali Raza [EMAIL PROTECTED] wrote: Holas Volker,Thanx a lot for your help. I saw the way u had done it and realized my error. i was extending the

Re: Panel Grid custom component

2006-02-05 Thread Ali Raza
That works with only HtmlPanelGrid as the base class and not with UIInput or UIPanel.On 2/5/06, Ali Raza [EMAIL PROTECTED] wrote:But i was wondering whether i could exten my component from UIInput or something and add an HTmlPanelGrid to it as a child ?? ThanxAliOn 2/5/06, Ali Raza [EMAIL

Sandbox Schedule Component to Tomahawk?

2006-02-05 Thread Uri Kalish
- When will the Sandbox Schedule component become a part of Tomahawk? __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email

behaviour change upgrading to nightly build

2006-02-05 Thread Thomas Gaudin
Hi, I have just upgraded a maven build from about 10 days ago to the nightly build available on myfaces website. I am using a custom authentication method in a request scope bean. The code for the logout() method is performing the following : getRequest().getSession().invalidate(); Cookie

Re: Sandbox Schedule Component to Tomahawk?

2006-02-05 Thread Werner Punz
Uri Kalish schrieb: - When will the Sandbox Schedule component become a part of Tomahawk? Once it has stabilized enough ;-)

Re: Sandbox Schedule Component to Tomahawk?

2006-02-05 Thread Martin Marinschek
Sandbox doesn't mean we think this component is just for playing 'round. Actually, some of them, e.g .the schedule is production stable. Caveat: we're allowed to change the API at any time here, without warning, and this is what we leave open by letting it in the sandbox for now ;) regards,

AW: Error when using spread layout in programmatically created HtmlSelectOneRadio

2006-02-05 Thread Matthias Kahlau
Many thanks Volker, that was the missing part... Regards, Matthias -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von Volker Weber Gesendet: Sonntag, 5. Februar 2006 13:25 An: MyFaces Discussion Betreff: Re: Error when using spread layout in

Re: How I can read managed property value from faces-config file in class constructor?

2006-02-05 Thread Yogesh Chaudhari
Hi Dennis, Laurie thanks for the prompt reply. I found following code on jsffaq.com, I will try it work for me. FacesContext fc = FacesContext.getCurrentInstance(); String userName = (String)fc.getApplication().createValueBinding(#{Person.userName}).getValue(fc); managed-bean

Changing the text format of radio/checkbox button labels

2006-02-05 Thread Matthias Kahlau
Hi! Do you know how the text format of radio button/checkbox labels can be changed. I already applied a CSS class to the component, but the settings aren't reflected in the labels... Regards, Matthias

Files upload inside a jsf portlet

2006-02-05 Thread Legolas Woodland
Hi thank you for reading my post. I need file upload facility inside a jsf portlet , now i do not know how to implement this feature because i use JSC and its file upload does not works inside a portlet. can some one tell e whether Myfaces file upload works inside portlet or not ? Thank you.

RE: returning to same position within a datascroller?

2006-02-05 Thread Tom Butler
I figured out a way to do this, so Ill post it in case anyone else needs to accomplish this same task: 1. Page displaying DataTable with DataScroller to scroll through large result set: t:dataTable id=data value=#(backingbean.datamodel) rowIndexVar=rowindex

Re: JSF+Hibernate

2006-02-05 Thread Werner Punz
Dave schrieb: session.merge is not very smart. Hibernate will update all properties and association table. For association, delete all related rows, and then add, even if the association(such as colllection) is not changed. Is there a better way other than merge? Thanks. Not really that is

AW: Changing the text format of radio/checkbox button labels

2006-02-05 Thread Matthias Kahlau
Do you know how the text format of radio button/checkbox labels can be changed. I already applied a CSS class to the component, but the settings aren't reflected in the labels... BTW: Accessibility guidelines require that the font size can be changed by the user, e. g. by changing it in the

myfaces Oracle ADF (or other component libraries)

2006-02-05 Thread Tom Butler
Can I use Oracle ADF components together within a MyFaces application? Same question for other component libraries? Or, are these mutually exclusive (use a different front controller)? Also, anyone know when Tobago first release will be? I was looking at their website some pretty cool

Column/row number bug in HtmlInputTextArea?

2006-02-05 Thread Matthias Kahlau
Hi! When I set the column number of a HtmlInputTextArea, e. g. to 10, only 6 columns are displayed. Entering more than six characters causes a line break. I experience this behavior in IE 6. In Firefox 1.5, there are rendered 10 columns as expected, but 2 rows, although I set it to 1 row? In

AW: Column/row number bug in HtmlInputTextArea?

2006-02-05 Thread Matthias Kahlau
Is this a browser problem or a JSF problem? Ok, stupid question - it must be a browser problem ;) Do you know, how to handle this? Regards, Matthias -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von Matthias Kahlau Gesendet: Montag, 6.

Re: myfaces Oracle ADF (or other component libraries)

2006-02-05 Thread Laurie Harper
Tom Butler wrote: Can I use Oracle ADF components together within a MyFaces application? Same question for other component libraries? Or, are these mutually exclusive (use a different front controller)? You can use ADF Faces together with MyFaces and/or the Tomahawk components. Component

AW: Programmatically created UI does not contain important HTML elements

2006-02-05 Thread Jörg Liegler
AFAIK most browsers do wrap content with HTML tags in case content does not self set html...body. Guess you can inspect that by looking in the DOM inspector in Mozilla/Firefox after browsing to such special html-pages. Jörg -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL

AW: Programmatically created UI does not contain important HTML elements

2006-02-05 Thread Matthias Kahlau
AFAIK most browsers do wrap content with HTML tags in case content does not self set html...body. Guess you can inspect that by looking in the DOM inspector in Mozilla/Firefox after browsing to such special html-pages. In my special case, the rendered code has to go to the JTidy filter of

t:savestate question

2006-02-05 Thread Tom Butler
Within .jsp page I use t:saveState to save the backing bean. t:saveState value=#{searchispbean} / t:saveState works to some degree, because when I remove it, t:datascroller can not display the datamodel (property on backing bean) when I scroll from the first page to the second page -

RE: savestate question

2006-02-05 Thread Tom Butler
Found the problem here. On the second page, I also included a t:saveState tag for the backing bean from the previous page (page that linked to second page): t:saveState value=#{searchispbean} / I must of missed this somewhere, but also this did not seem obvious. It seemed logical that

browser back button in JSF?

2006-02-05 Thread Tom Butler
Can anyone point me to a wiki or other to help me understand how to handle the user pressing the browser back button in a JSF application? Ive read this is a weakness of JSF, and from the testing Ive done it does appear to be a problem. Looking for any ways to gracefully handle this

Re: browser back button in JSF?

2006-02-05 Thread Dennis Byrne
Try changing state saving to 'client'. context-param param-namejavax.faces.STATE_SAVING_METHOD/param-name param-valueclient/param-value /context-param ... or start using a nightly build, as MyFaces has fixed this. Dennis Byrne -Original Message- From:

RE: browser back button in JSF?

2006-02-05 Thread Tom Butler
Thanks Dennis - I'll give this a try tomorrow.. caffeine has run out..zzz -Original Message- From: Dennis Byrne [mailto:[EMAIL PROTECTED] Sent: Sunday, February 05, 2006 11:12 PM To: MyFaces Discussion Subject: Re: browser back button in JSF? Try changing state saving to 'client'.

RE: browser back button in JSF?

2006-02-05 Thread Balaji Kalyansundaram
There have been many posts on this at http://www.mail-archive.com/users%40myfaces.apache.org/ Iset the STATE_SAVING_METHOD to client and it fixed the problems context-param param-namejavax.faces.STATE_SAVING_METHOD/param-name param-valueclient/param-value /context-param Balaji

Q: migrating to Facelets

2006-02-05 Thread Yee CN
Hi, I am thinking of migrating to Facelets and I need to gauge the efforts required. Assuming that my jsf pages are relatively pure (i.e. no jstl etc), would my pages compile and run as it is without modifications? I got the impression that this is so can someone please confirm? Is

RE: migrating to Facelets

2006-02-05 Thread David G. Friedman
You will probably have to change any jsp taglib entries to html namespace entries so instead of: %@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"% ... etc html You would need: html

RE: browser back button in JSF?

2006-02-05 Thread Yee CN
There was a benchmark posted around a month ago - the finding was that state saving in client runs a lot slower than state saving in server. Is there any update this? Regards, Yee -Original Message- From: Dennis Byrne [mailto:[EMAIL PROTECTED] Sent: Monday, 6 February 2006 12:12 PM