Re: Different validations for different command links

2007-08-23 Thread Nikhil Gahlot
thanks for the reply. I tried with this but it seems the tag is not defined under sandbox version 1.1.2. Mike Kienenberger wrote: Use the sandbox subForm component. Each subform can perform custom partial validation. On 8/22/07, Nikhil Gahlot [EMAIL PROTECTED] wrote: I have used

Re: [Trinidad] tr:icon missing properties?

2007-08-23 Thread Adam Winer
Yep, looks like a bug. -- Adam On 8/22/07, Andrew Robinson [EMAIL PROTECTED] wrote: I am trying to use tr:icon. The tag documentation shows support for events like onclick and properties like inlineStyle. I have created the icon in my skin: .AFExpandPanelIcon:alias { content:

Scrolling + sorting a datatable

2007-08-23 Thread Julien Martin
Hello, I need help in order to implement a scrolling [b]combined with a[/b] sorting strategy for a datatable. Here is the behaviour I need: A user should be able to scroll a datatable in steps of [b]N[/b] records. He/she should then be able to sort that [b]N[/b] records and not the whole of the

overflow error while including page

2007-08-23 Thread ratondeau
I have the following page that includes a page depending on the bean value: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml;

SelectItem style

2007-08-23 Thread Matze . Imhof
Hi all, I would like to set the style of my SelectItems in a HtmlSelectManyListbox. Is there a way to do it ? Greetings Matze _ Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!

Re: Button must be clicked once before it could actually do something

2007-08-23 Thread Fan Shao
Hi, I've been stuck there for days. Could anyone help? Fan Shao wrote: Hi there, I've written a JSF page using Facelets template. I have a form in the page and a button. Every time I restarted the webapp, the first time I click the button it just refreshes the page and resets all the

anyone succeeded to render the t:inputCalendar? (MF 1.2.0 - Facelets - Tomahawk 1.1.6)

2007-08-23 Thread Wolf Benz
Has anyone any success with the t:inputCalendar using this setup? I think I did everything required: I set up the extensionsFilter, I declared the t-tag, added the Tomahawk-faclet taglib, ... The element in the page, in a panelGrid, looks like this: h:panelGrid columns=2

Re: SelectItem style

2007-08-23 Thread Wolf Benz
Settting the style (styleClass or style attribute) in the parent element (e.g. the SelectOneMenu wrapping tehe selectItems) doesn't do the trick? -Wolf On 8/23/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi all, I would like to set the style of my SelectItems in a HtmlSelectManyListbox. Is

Re: Button must be clicked once before it could actually do something

2007-08-23 Thread David Delbecq
Following what your said previously about this, i assume that 1) The view is in a restore state and not a create state (you mentionned clearly that you showed page *after* reloading page and *before* clicking button) 2) There are no validation problems (you stated h:messages/ has empty output)

Re: [Tobago] Problems with tabGroup and IE 6/7

2007-08-23 Thread Helmut Swaczinna
Hi, solved the first problem. See Tobago-474. Regards Helmut - Original Message - From: Helmut Swaczinna [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Monday, August 20, 2007 1:37 PM Subject: Re: [Tobago] Problems with tabGroup and IE 6/7 Hi, you can

javax.faces.ViewState contents?

2007-08-23 Thread Ken McArthur
With client state saving, I was under the impression that only managed beans in session scope or used in t:saveState would be serialized into the hidden javax.faces.ViewState variable. However, my application's creating ViewStates in pages with very simple forms that are almost 70 kb long! I'm

Re: Button must be clicked once before it could actually do something

2007-08-23 Thread Fan Shao
The action of the buttons didn't seem being called when that happened. I put a breakpoint in the action method and it was not fired up. It can be fired up normally when the button behaves normally. BTW, I am using Facelets. The filters defined in web.xml are Myfaces filters. I am using Tomahawk

Re: Different validations for different command links

2007-08-23 Thread Mike Kienenberger
Oops. I misread that as 1.2.1. Yes, subforms probably showed up in the sandbox in 1.1.3 or 1.1.4. Unfortunately, that really is the way to solve your problem. 1.1.2 is a pretty ancient and buggy release -- Maybe you should consider upgrading to 1.1.5 or 1.1.6. On 8/23/07, Nikhil Gahlot

[Myfaces][facelets] selectManyListbox display problem

2007-08-23 Thread lmk
helloo; I have a strange problem with selectManyListbox or selectManayMeny, I don't get usual display like a simple html listbox.. http://www.nabble.com/file/p12295250/debug.jpg code: h:outputText value=#{msg.label_role} / h:selectManyListbox value=#{queryBean.test} f:selectItems

RE: [Trinidad] Upgrading to 1.0.2

2007-08-23 Thread Perkins, Nate-P63196
I commented out the jsp:output and that fixed the problem. Unfortunately I can not live with that solution as it is mandatory for my project's pages. We have a requirement for a fixed bar on top and on bottom that do not scroll (while the rest of page obviously does) and are always visible and

Re: Removing Text Icons (* and X)

2007-08-23 Thread Andrew Robinson
Is this in relation to Trinidad? On 8/22/07, DLC [EMAIL PROTECTED] wrote: Hi all, I would like to substitute the text icons * and X for required and error markers on fields with my own markup (an image and/or other text). Is there any way to do this? If so, how? Thanks, --Dave

Re: javax.faces.ViewState contents?

2007-08-23 Thread Andrew Robinson
Anything that is returned from saveState on any object implementing StateHolder is saved into the view state. (All UIComponents implement StateHolder) On 8/23/07, Ken McArthur [EMAIL PROTECTED] wrote: With client state saving, I was under the impression that only managed beans in session scope

RE: [Trinidad] Upgrading to 1.0.2

2007-08-23 Thread Perkins, Nate-P63196
To clarify, the doc-type is only needed for the scheme to work in IE6, which happens to be our target browser : ( Nate Perkins 480-441-3667 [EMAIL PROTECTED] This email message is for the sole use of the intended recipient(s) and may contain GDC4S confidential or privileged information. Any

Re: Scrolling + sorting a datatable

2007-08-23 Thread Mike Kienenberger
To me it sounds like you need to change how your data model is provided to your table. I think the most reasonable approach is to set the backing model of the table to only include your current scroll set, then you can use a standard sorting model for your table. So each change of the scroll

Re: [Trinidad] Upgrading to 1.0.2

2007-08-23 Thread Simon Lessard
Hello Nate, So what you're saying is that your application will only ever work in quirk mode? There's always a solution in standard mode as well, sometimes a bit more complicated though. Regards, ~ Simon On 8/23/07, Perkins, Nate-P63196 [EMAIL PROTECTED] wrote: I commented out the

Re: [Trinidad] tr:icon missing properties?

2007-08-23 Thread Andrew Robinson
Okay: https://issues.apache.org/jira/browse/TRINIDAD-644 On 8/23/07, Adam Winer [EMAIL PROTECTED] wrote: Yep, looks like a bug. -- Adam On 8/22/07, Andrew Robinson [EMAIL PROTECTED] wrote: I am trying to use tr:icon. The tag documentation shows support for events like onclick and

Re: javax.faces.ViewState contents?

2007-08-23 Thread Ken McArthur
You mention what I believed to be true. Since my simple page with a 70kb ViewState is not requesting saveState for anything, I suspect it must be something else that's being serialized. Any ideas on what else it could be? On 8/23/07, Andrew Robinson [EMAIL PROTECTED] wrote: Anything that is

Re: [Trinidad] Programmatically get a style from the skin

2007-08-23 Thread Andrew Robinson
Created an enhancement request https://issues.apache.org/jira/browse/TRINIDAD-645 -Andrew On 8/21/07, Jeanne Waldman [EMAIL PROTECTED] wrote: I've heard this request from a few people. You should add a JIRA issue if it isn't already there. Currently, no, there is no way to get this

Re: javax.faces.ViewState contents?

2007-08-23 Thread Andrew Robinson
The entire component tree is saved using saveState, I wasn't referring to the saveState component, but ranter the saveState method on the StateHandler interface On 8/23/07, Ken McArthur [EMAIL PROTECTED] wrote: You mention what I believed to be true. Since my simple page with a 70kb ViewState

RE: [Trinidad] Upgrading to 1.0.2

2007-08-23 Thread Perkins, Nate-P63196
I put a lot of time into this problem, albeit a while ago, but I could not find a way to satisfy my requirements for IE6 in standard mode, I would love to be able to, but I have not found a way. I'll post the general structure and the css and perhaps you can help? The basic structure is this:

Re: [Trinidad] Upgrading to 1.0.2

2007-08-23 Thread Andrew Robinson
You can use IE6 in quirks mode and firefox in standards mode by subclassing the tr:document renderer. If a comment appears before the doc type, IE will not go into standards mode. Here is some code if you want to do it this way to force only IE into quirks mode while using tr:document: public

Problem with StreamingAddResource with JSF RI 1.2 and Firefox

2007-08-23 Thread Martin Denham
When using StreamingAddResource I get an error if using JSF RI 1.2 and Firefox as the browser. IE 7 works fine and so does Firefox if I use MyFaces 1.1. The error message displayed in the browser is This XML file does not appear to have any style information associated with it. The document tree

RE: [Trinidad] Upgrading to 1.0.2

2007-08-23 Thread Perkins, Nate-P63196
Can this only be done on the tr:document? Doesn't the trh:head also produce a doc-type? Currently we use trh:head, trh:html, and trh:body. What is the difference? Also, I would still think that the PPR should work regardless of how or where or what I set the doc-type to. Nate Perkins

[Trinidad] message.properties bundle for selectOneChoice,

2007-08-23 Thread Darren McEntee
Hi guys, Quick question... I thought I seen this somewhere but can't seem to locate it now... I'm interested in populating the drop down values of a tr:selectOneChoice component with values in a message.properties bundle. This works great for single items like labels and naming

Re: [Trinidad] Upgrading to 1.0.2

2007-08-23 Thread Andrew Robinson
Probably, I am just using tr:document, so that is what I customized. 1.0.2 is working fine with PPR on firefox 2.0 and IE7 for me. I only implemented the hack as I also wanted quirks mode functionality for IE since IE7 has bugs/shortcomings with height percentage allocations in standards mode.

Re: [Trinidad] Upgrading to 1.0.2

2007-08-23 Thread Simon Lessard
That's a nice hack too imho as you can easily remove it once IE 6 disappears. And yeah it would also work for trh:head renderer. On 8/23/07, Andrew Robinson [EMAIL PROTECTED] wrote: Probably, I am just using tr:document, so that is what I customized. 1.0.2 is working fine with PPR on firefox

[Trinidad] tabIndex support?

2007-08-23 Thread Andrew Robinson
I don't see any support for tabIndex on trinidad components like tr:inputText. Is there another way of handling tab order in trinidad components or is it a shortcoming? -Andrew

Re: [Trinidad] Upgrading to 1.0.2

2007-08-23 Thread Simon Lessard
Nah, I mean if Nate was to use it. In your case, Andrew, you might be able to remove it with MSIE 15 in 2030. On the bright side, I don't know its validity, but you can use http://www.w3schools.com/browsers/browsers_stats.asp to comfort yourself. Regards, ~ Simon On 8/23/07, Andrew Robinson

Re: [Trinidad] Upgrading to 1.0.2

2007-08-23 Thread Matthias Wessendorf
In your case, Andrew, you might be able to remove it with MSIE 15 in 2030. I doubt that the number is higher than 8 in that year On the bright side, I don't know its validity, but you can use http://www.w3schools.com/browsers/browsers_stats.asp to comfort yourself. Regards, ~ Simon

Re: Problem with StreamingAddResource with JSF RI 1.2 and Firefox

2007-08-23 Thread rlubke
Are you using Facelets? If so, the RI will be defaulting the content type to xhtml instead of html. You can add contentType=text/html to f:view in your facelets template to force the content type. mjdenham wrote: When using StreamingAddResource I get an error if using JSF RI 1.2 and

Re: Problem with StreamingAddResource with JSF RI 1.2 and Firefox

2007-08-23 Thread Martin Denham
Thanks Ryan, that worked. On 23/08/07, rlubke [EMAIL PROTECTED] wrote: Are you using Facelets? If so, the RI will be defaulting the content type to xhtml instead of html. You can add contentType=text/html to f:view in your facelets template to force the content type. mjdenham wrote:

RE: [Trinidad] Upgrading to 1.0.2

2007-08-23 Thread Perkins, Nate-P63196
Adam, I've noticed that the combination of the trh:head tag (which outputs a doctype) and my jsp:output (which also outputs a doctype), creates 2 doctypes in the response. Firefox strips out the 2nd doctype but IE does not. So perhaps the PPR code is stripping out only 1 of the doctypes?

Re: [Trinidad] Removing Text Icons (* and X)

2007-08-23 Thread DLC
Yes. Sorry, I forgot to add [Trinidad] to the subject. --Dave --- Andrew Robinson [EMAIL PROTECTED] wrote: Is this in relation to Trinidad? On 8/22/07, DLC [EMAIL PROTECTED] wrote: Hi all, I would like to substitute the text icons * and X for required and error markers on fields

Re: [Trinidad] Removing Text Icons (* and X)

2007-08-23 Thread Andrew Robinson
You can find the code in BaseDesktopSkin.java that registers the default icons. In your skin, you should be able to do things like: .AFDetailDisclosedIcon::alias { content: V; } or .AFDetailDisclosedIcon::alias { content: url(/skin/myskin/icons/myIcon.gif); } -Andrew On 8/23/07, DLC

RE: [Trinidad] Removing Text Icons (* and X)

2007-08-23 Thread Perkins, Nate-P63196
Would this also work for the af|chooseDate::launch-icon...the default for this is a green calendar, but I would like to change it to a blue calendar. Can I do that with css or do I need to change the code? Nate Perkins 480-441-3667 [EMAIL PROTECTED] This email message is for the sole use of

Re: Button must be clicked once before it could actually do something

2007-08-23 Thread David Delbecq
Could it be there is a rendered=.. on or surrounding the button you try to use? If during the apply request value , the button is marked as not rendered, it's action won't be called. Try to reduce as much as possibile your form until you find what make it not working. Fan Shao a écrit : The

Re: [Trinidad] Removing Text Icons (* and X)

2007-08-23 Thread Simon Lessard
Hello Nate, You can do that with af|inputDate::launch-icon selector. For exemple, af|inputDate::launch-icon { content: url(skin_images/myCalendar.gif); } Regards, ~ Simon On 8/23/07, Perkins, Nate-P63196 [EMAIL PROTECTED] wrote: Would this also work for the

tomahawk dataTable sortable + facelets does not sort ....

2007-08-23 Thread Dipl.-Ing. Torsten Liermann
(facelets 1.1.11 tomahawk 1.1.5 and 1.1.6, myfaces 1.1.5) Hi, I have tested the example sortAutoTable.jsp from simple-example . The JSP version works. If I insert facelets, the column becomes only once sorts and the direction arrow is not displayed. Is this a known bug? Thanks Torsten

Re: [Trinidad] Removing Text Icons (* and X)

2007-08-23 Thread Scott O'Bryan
You can do that in the css . The skinning framework parses the css and any icons which are specified in the skinning file will override the default values. Use the content: as specified in the below example to specify which image to use. Scott Perkins, Nate-P63196 wrote: Would this also

RE: [Trinidad] Upgrading to 1.0.2

2007-08-23 Thread Perkins, Nate-P63196
Hi Adam, I was able to replace my trh:html/ (which renders a doctype) with just a html/, that removed the second doctype (so there is only one on the page, the quirks mode one), but the behaviour is still the same. Is the PPR code, looking for a particular doctype and stripping it? Nate

Re: Button must be clicked once before it could actually do something

2007-08-23 Thread Christoph Ebner
Hi, we've had a similar problem in our last project and narrowed it down to caching in browsers and proxies. you may try setting http-headers pragma to no-store and cache-control to no-cache. We did it with a PhaseListener: public void beforePhase(PhaseEvent event) { FacesContext

Re: javax.faces.ViewState contents?

2007-08-23 Thread simon
On Thu, 2007-08-23 at 08:33 -0600, Ken McArthur wrote: With client state saving, I was under the impression that only managed beans in session scope or used in t:saveState would be serialized into the hidden javax.faces.ViewState variable. However, my application's creating ViewStates in

Re: javax.faces.ViewState contents?

2007-08-23 Thread Mike Kienenberger
On 8/23/07, simon [EMAIL PROTECTED] wrote: I can't initially think of an easy way to narrow the problem down either... What about simply deleting parts of the view until the size of the saved state changes dramatically? That should tell you which component(s) are contributing the most to the

Re: javax.faces.ViewState contents?

2007-08-23 Thread Mario Ivankovits
Hi! With client state saving, I was under the impression that only managed beans in session scope or used in t:saveState would be serialized into the hidden javax.faces.ViewState variable. However, my application's creating ViewStates in pages with very simple forms that are almost 70 kb

Re: javax.faces.ViewState contents?

2007-08-23 Thread Ken McArthur
Great advise, I'll try it all and update board when I figure it out. Thanks. On 8/23/07, Mario Ivankovits [EMAIL PROTECTED] wrote: Hi! With client state saving, I was under the impression that only managed beans in session scope or used in t:saveState would be serialized into the hidden

Re: [Tobago] More layout problems with 1.0.12

2007-08-23 Thread Bernd Bohmann
Hello Helmut, should work now. Thanks Bernd Helmut Swaczinna wrote: Hi, with the current Tobago 1.0.12 snapshot I've got some new layout problems in popups. With 1.0.11 and older 1.0.12 snapshots the layout is ok. Please have a look at the attached screenshot. The input elements on the

Re: [Trinidad] Removing Text Icons (* and X)

2007-08-23 Thread DLC
Thanks for your input. Unfortunately, I can't seem to get this to work right. Maybe I'm just confused. I'm trying to replace the default AFErrorIcon (which is an 'X') with my own. Could someone show me an example that they have working? Thanks, --Dave --- Scott O'Bryan [EMAIL PROTECTED]

Re: [Trinidad] Removing Text Icons (* and X)

2007-08-23 Thread Scott O'Bryan
Dave, it needs to be an icon. Can't be an X.. DLC wrote: Thanks for your input. Unfortunately, I can't seem to get this to work right. Maybe I'm just confused. I'm trying to replace the default AFErrorIcon (which is an 'X') with my own. Could someone show me an example that they have

Re: [Trinidad] Removing Text Icons (* and X)

2007-08-23 Thread DLC
Well, maybe I should be more specific. This is what I've tried: .AFErrorIcon::alias { content: url(/images/icon_alert.gif); } .AFErrorIcon::alias { content: 'W'; } .AFErrorIcon { content: url(/images/icon_alert.gif); } .AFErrorIcon { content: 'W'; } None of these have any effect on the

Re: [Trinidad] Removing Text Icons (* and X)

2007-08-23 Thread Jeanne Waldman
There's a typo here in your email, and not sure if it is the same in your code: :alias (one colon, not two) - Jeanne DLC wrote: Well, maybe I should be more specific. This is what I've tried: .AFErrorIcon::alias { content: url(/images/icon_alert.gif); } .AFErrorIcon::alias { content:

Re: [Trinidad] Removing Text Icons (* and X)

2007-08-23 Thread DLC
I've tried it with both one and two colons. Neither seems to work. --Dave --- Jeanne Waldman [EMAIL PROTECTED] wrote: - There's a typo here in your email, and not sure if it is the same inyour code: :alias (one colon, not two) - Jeanne DLC wrote: Well,

[Trinidad] PPR with script tags

2007-08-23 Thread Andrew Robinson
I have a component I was outputting script using the following code: RenderingContext arc = RenderingContext.getCurrentInstance(); ResponseWriter writer = context.getResponseWriter(); writer.startElement(XhtmlConstants.SCRIPT_ELEMENT, null);

tree2- how to expand node when clicking its label

2007-08-23 Thread Dave
Hi, I am using tree2. I have two questions. It would be great if I can get some help. how to expand node(on client) when clicking its label ? How to replace the open/close image programmatically? Thanks, Dave - Fussy? Opinionated?

Re: javax.faces.ViewState contents?

2007-08-23 Thread Ken McArthur
Mario, ViewStateDumper is awesome! I get a large number of #null?s in output but everything else is as expected. In my situation bottleneck is bandwidth; especially since ViewState is sent back to server and upload speeds are most always much slower than download speeds. Compressed ViewState

Re: [Trinidad] Upgrading to 1.0.2

2007-08-23 Thread Adam Winer
On 8/23/07, Perkins, Nate-P63196 [EMAIL PROTECTED] wrote: Hi Adam, I was able to replace my trh:html/ (which renders a doctype) with just a html/, that removed the second doctype (so there is only one on the page, the quirks mode one), but the behaviour is still the same. Is the PPR code,

Re: [Trinidad] PPR with script tags

2007-08-23 Thread Adam Winer
It would be good to filter CDATA during PPR. I'd be happy to apply a patch to the PPRResponseWriter that handles this, but would also rather that component authors stop trying to out-clever the ResponseWriter! The best way to write out script contents is to just use ResponseWriter.writeText(),

Re: [Trinidad] Upgrading to 1.0.2

2007-08-23 Thread Adam Winer
trh:head doesn't output the doctype - it's trh:html and/or tr:document. I don't think it's that the PPR code is stripping only 1 doctype. I think it's that the two doctypes are written out through different mechanisms (ResponseWriter or straight to the serlvet response), and PPR is for some

Re: javax.faces.ViewState contents?

2007-08-23 Thread Andrew Robinson
FYI, server state saving means all of that memory will be stored in the server's java heap. So approx 70k * #users. On 8/23/07, Ken McArthur [EMAIL PROTECTED] wrote: Mario, ViewStateDumper is awesome! I get a large number of #null?s in output but everything else is as expected. In my

Re: [Trinidad] tabIndex support?

2007-08-23 Thread Adam Winer
It's http://issues.apache.org/jira/browse/TRINIDAD-100. I guess it's mostly not there because of some of the huuuge shortcomings of this HTML API, especially when it comes to big composite components like table; if you set a tabindex on the table, it has to affect the tab order of the whole

Re: [Trinidad] Upgrading to 1.0.2

2007-08-23 Thread Adam Winer
I'm getting the feeling that we really need to add a flag to at least trh:html or both trh:html and tr:document that supports forcing quirks mode. Thoughts? -- Adam On 8/23/07, Andrew Robinson [EMAIL PROTECTED] wrote: You can use IE6 in quirks mode and firefox in standards mode by

Re: [Trinidad] Upgrading to 1.0.2

2007-08-23 Thread Andrew Robinson
+1 on an attribute of tr:document and the others that supports EL to force quirks mode, or lets the developer specify the doctype to be rendered. On 8/23/07, Adam Winer [EMAIL PROTECTED] wrote: I'm getting the feeling that we really need to add a flag to at least trh:html or both trh:html and