Re: Hightlight a tableRow onMouseOver

2007-08-20 Thread Jochen Zink
Hello, I found a solution. It is not very nice and it does not work with tables which have a big border, but for me, it is okay. With t:column Tag is it possible, to add a javascript function to the td Tag. With this.parentNode.classname can the css-classname of the parent node (the tr Tag)

Button must be clicked once before it could actually do something

2007-08-20 Thread Fan Shao
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 input fields. After that the button works normally with all the fields correctly

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

2007-08-20 Thread David Delbecq
Extract from http://www.ibm.com/developerworks/library/j-jsf2/ --- JSF lifecycle: 1. Restore view 2. Apply request values; process events 3. Process validations; process events 4. Update model values; process events 5. Invoke application; process events 6. Render response The

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

2007-08-20 Thread Fan Shao
I thought the view has been rendered once before the button is clicked. My expected process is: load page (Page A) -- click button -- show another page({Page B) So, when the Page A is loaded, the view of this page is initialized, I suppose? Then I click the button. At this point, the view has

Download file from server to local

2007-08-20 Thread xiao wang
Hi there, I am writing JSF portlet using myFaces. The JSF portlet will download a file to local from server and the file in the server side will be deleted after downloaded. The code works fine as a web application. But it can not work properly as portlet. In a jsp page, a button is displayed to

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

2007-08-20 Thread David Delbecq
From what you say, i think what happens is load page (Page A) -- reset server - click button -- Show A again Am i wrong about the when server reset occurs? En l'instant précis du 20/08/07 12:40, Fan Shao s'exprimait en ces termes: I thought the view has been rendered once before the button

Re: [Tobago] Layout problem with 1.0.12

2007-08-20 Thread Helmut Swaczinna
Hi Volker, thanks for the quick fix. It works now. Regards Helmut - Original Message - From: Volker Weber [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Sunday, August 19, 2007 9:48 PM Subject: Re: [Tobago] Layout problem with 1.0.12 Hi, i just added the

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

2007-08-20 Thread Helmut Swaczinna
Hi, you can see this behavior in the 1.0.12 demo also. Regards Helmut - Original Message - From: Helmut Swaczinna [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Friday, August 17, 2007 4:33 PM Subject: [Tobago] Problems with tabGroup and IE 6/7 Hi, I've

JS confirm for h:commandButton??

2007-08-20 Thread Julien Martin
Hello, I would like for a user to confirm that he/she wants to undertake a submit action. I have a h:commandButton and I would like to use the JS confirm function and the onclick attribute in order to do that. The problem is when I want to submit the form (once the user has clicked yes on the

Re: JS confirm for h:commandButton??

2007-08-20 Thread Julien Martin
I was given the solution by someone. Here it is: [code] h:commandButton value=submit action=#{myBean.action} onclick=return confirm('Are you sure?'); / [/code] Julien. 2007/8/20, Julien Martin [EMAIL PROTECTED]: Hello, I would like for a user to confirm that he/she wants to undertake a submit

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

2007-08-20 Thread Fan Shao
Thanks David, let me put it this way: reset server - load page (Page A) -- click button -- Show A again -- click button again -- show B correctly Cheers! Fan David Delbecq-2 wrote: From what you say, i think what happens is load page (Page A) -- reset server - click button -- Show A

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

2007-08-20 Thread David Delbecq
no informations provided with h:messages/ ?? En l'instant précis du 20/08/07 13:57, Fan Shao s'exprimait en ces termes: Thanks David, let me put it this way: reset server - load page (Page A) -- click button -- Show A again -- click button again -- show B correctly Cheers! Fan David

lightweight Iframe dialog framework question

2007-08-20 Thread Anthony Yulo
Hi! I just recently come across an announcement of the latest Trinidad release. The noted feature was use on the area of the dialog framework. The release notes say that it uses a lightweight iframe instead of a new browser window. I am having a problem on the dialog framework: When

RE: lightweight Iframe dialog framework question

2007-08-20 Thread sandeep gururaj
Hello Anton, As per my understanding, the return from dialog page was never intended for full execution of the main JSF page. If your requirement is to update some field value of the main page, you can do so by using return listeners and partial targets. ~Sandeep

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

2007-08-20 Thread Fan Shao
No message is shown by h:messages/. It seems it just refreshed the page when I clicked the button. Everything was reset. I know the http request was correctly sent, because it worked when I refresh the page using the browser's refresh button. David Delbecq-2 wrote: no informations provided

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

2007-08-20 Thread David Delbecq
And no session timeout between load page and click button? En l'instant précis du 20/08/07 14:20, Fan Shao s'exprimait en ces termes: No message is shown by h:messages/. It seems it just refreshed the page when I clicked the button. Everything was reset. I know the http request was correctly

Re: JS confirm for h:commandButton??

2007-08-20 Thread David Delbecq
Not totally true. There is some JS operations JSF makes upon submit that will be bypassed by your return. h:commandButton value=submit action=#{myBean.action} onclick=if (!confirm('Are you sure?')) return false; / This is because you need the operation to continue if user confirm. This is not

Re: [OT: IE7 CSS] Standards mode: getting remainder height working

2007-08-20 Thread Cristi Toth
IE supports CSS property expressions #content { height:expression(javascript code that returns the right height) } it works pretty nice and no need for onresize stuff but Firefox doesn't support CSS expressions, so if you want Firefox support too, then you have to add the js code to onresize

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

2007-08-20 Thread Fan Shao
I don't see the possibility of losing user session as all this happened within a few seconds. David Delbecq-2 wrote: And no session timeout between load page and click button? En l'instant précis du 20/08/07 14:20, Fan Shao s'exprimait en ces termes: No message is shown by h:messages/.

javascript detection

2007-08-20 Thread Thomas Fischer
Hi all, We have a project where we would like to use javascript if it is enabled in the user's browser, but allow a fallback if javascript is disabeld, along the lines of http://mail-archives.apache.org/mod_mbox/myfaces-users/200708.mbox/[EMAIL PROTECTED] At the moment, we are content to do

[Trinidad] questions about trinidad

2007-08-20 Thread Christian Klocker
greetings, i'm working on an project with the following setup: tomcat6 / myfaces 1.1.5 / trinidad 1.0.2 / seam 1.2.1. here are my accumulated questions regarding to trinidad: * trinidad 1.2.1 / tomcat6 ppr-support ist not working on this setup. i've testet ppr with panelaccordion and

Re: 2 problems (JSF+Tomahawk)

2007-08-20 Thread David Delbecq
En l'instant précis du 18/08/07 05:02, daniel ccss s'exprimait en ces termes: Yes I understand the concept that the validator and converter are only called when the required attribut is set to true (don`t agree with that concept) so I made the validation of this not required values on the

Re: [Trinidad] questions about trinidad

2007-08-20 Thread Adam Winer
On 8/20/07, Christian Klocker [EMAIL PROTECTED] wrote: greetings, i'm working on an project with the following setup: tomcat6 / myfaces 1.1.5 / trinidad 1.0.2 / seam 1.2.1. here are my accumulated questions regarding to trinidad: * trinidad 1.2.1 / tomcat6 (Presumably you've switched the

Re: [OT: IE7 CSS] Standards mode: getting remainder height working

2007-08-20 Thread Andrew Robinson
I have tried that but most of the time it will not work. The reason being that the content in the item being resized changes the parent's height and makes it near impossible to calculate percentage heights accurately without using absolute positioning. I've resolved to force IE into quirks mode

[Trinidad] use skin to specify source for tr:image

2007-08-20 Thread Andrew Robinson
Is it possible to have a tr:image without a source attribute, but to delegate that URL to the skin? Right now I am using a bean to set the skin, so I can get a different image per skin, but I have to keep the image name the same in all skins. It would be a cleaner solution to have some way for the

Re: Download file from server to local

2007-08-20 Thread Scott O'Bryan
Xaio, Yes, this won't work in a portal environment. Your file needs to be a resource that you retrieve and, as such, the url to your file needs to be encoded as a resource url. Nuisances aside, consider a normal portal usecase where an action will cause all portlets on the screen to

Re: [Trinidad] use skin to specify source for tr:image

2007-08-20 Thread Jeanne Waldman
Hi Andrew, You would like to be able to have an icon in your skin, right? icons end in 'icon' and they get rendered as img tags (or text). Like: af|xyz::my-icon { content: url(help.png)}; tr:image does not do this for you. tr:icon will. Try: tr:icon name=foo where in your skinning css file you

Re: [Trinidad] use skin to specify source for tr:image

2007-08-20 Thread Andrew Robinson
Great, thank you On 8/20/07, Jeanne Waldman [EMAIL PROTECTED] wrote: Hi Andrew, You would like to be able to have an icon in your skin, right? icons end in 'icon' and they get rendered as img tags (or text). Like: af|xyz::my-icon { content: url(help.png)}; tr:image does not do this for

Re: [Trinidad] use skin to specify source for tr:image

2007-08-20 Thread Andrew Robinson
Okay, I am having an issue with registering the icon. In my skin style css: .AFFindIcon { content: url(/skins/standard/images/icon_find_sml.png); } This url pattern is working for my other images in the skin, but the SkinImpl is registering a null icon for this name. I know the png file

Re: [Trinidad] use skin to specify source for tr:image

2007-08-20 Thread Adam Winer
I believe the icon name here will be find, not AFFind or AFFindIcon. -- Adam On 8/20/07, Andrew Robinson [EMAIL PROTECTED] wrote: Okay, I am having an issue with registering the icon. In my skin style css: .AFFindIcon { content: url(/skins/standard/images/icon_find_sml.png); } This url

Re: [Trinidad] use skin to specify source for tr:image

2007-08-20 Thread Andrew Robinson
Well I have: tr:icon name=find / But the icon doesn't get found. I tried different style names in the skin css and still no luck. The icon is always registered as a null icon. I see that the code looked for find and AFFindIcon, but the result of both was null. The skin just doesn't seem to be

Re: Unable to pass Object using FacesContext

2007-08-20 Thread bansi
Hi David Thanks for quick response. Here is my code snippet h:dataTable id=deviceDetailTable styleClass=list rowClasses=odd,even value=#{updateDeviceBean.tableRows} var=vartableRow style= h:column id=column1 style= f:facet name=headerh:outputText value=Id//f:facet h:commandLink

Re: [Trinidad] use skin to specify source for tr:image

2007-08-20 Thread Matt Cooper
Hi Andrew, A few things you might try... specify quotes around the path in your URL and perhaps specify width/height dimensions, e.g.: .AFFindIcon { content: url(/skins/standard/images/icon_find_sml.png); width: 16px; height: 16px; } If this still doesn't work, there might be a syntax

Re: [Trinidad] use skin to specify source for tr:image

2007-08-20 Thread Jeanne Waldman
I'll try it myself real quickly. You might need :alias at the end of your key, but I doubt it. - Jeanne Matt Cooper wrote: Hi Andrew, A few things you might try... specify quotes around the path in your URL and perhaps specify width/height dimensions, e.g.: .AFFindIcon { content:

Re: [Trinidad] use skin to specify source for tr:image

2007-08-20 Thread Andrew Robinson
It isn't a size issue, the icon is not rendered at all. On 8/20/07, Matt Cooper [EMAIL PROTECTED] wrote: Hi Andrew, A few things you might try... specify quotes around the path in your URL and perhaps specify width/height dimensions, e.g.: .AFFindIcon { content:

Re: [Trinidad] use skin to specify source for tr:image

2007-08-20 Thread Jeanne Waldman
I just did a test, and you do have to add :alias to the end. I ran the Trinidad demo with skin-family set to purple. I added this to the purple css file: .AFFooIcon:alias {content:url(/skins/purple/images/btns.gif); width:7px; height:18px} Then I ran the icon demo. I set name="foo" and I see

Re: javascript detection

2007-08-20 Thread Mike Kienenberger
Thomas, Gracefully-degrading javascript support sounds like an excellent addition to MyFaces. The topic has come up before in the last couple of weeks. However, I'm not entirely certain if DETECT_JAVASCRIPT is still being honored in MyFaces these days. You'll probably need to implement it

Re: [Trinidad] use skin to specify source for tr:image

2007-08-20 Thread Andrew Robinson
That did it, thank you On 8/20/07, Jeanne Waldman [EMAIL PROTECTED] wrote: I just did a test, and you do have to add :alias to the end. I ran the Trinidad demo with skin-family set to purple. I added this to the purple css file: .AFFooIcon:alias

Re: Tomahawk popup AjaxAnywhere

2007-08-20 Thread pdt_p
Hi Andrew, Thank you for your help. It's working now. Pdt Andrew Robinson-5 wrote: Make sure that the popup javascript file is being loaded, I think it has an external one. You may have to force it to load the first time the page loads. AA isn't very robust with handling external JS and

RE: lightweight Iframe dialog framework question

2007-08-20 Thread Anthony Yulo
OK. Thanks for the info. Atleast Im gonna stop looking into this lightweight dialog. Im gonna find develop a different approach. Thanks sandeep. -Original Message- From: sandeep gururaj [mailto:[EMAIL PROTECTED] Sent: Monday, August 20, 2007 8:17 PM To: MyFaces Discussion Subject: RE: