My Faces Application Design Approach

2005-04-06 Thread Mihir Solanki
Hi all, I have started building one application using My Faces. I wanted to have some layered architecture in my application. I have completed with the persistence layer and also sort of business layer. Now my focus is to have a layer in which I can have my faces components,

Fwd: MyFaces x:commandNavigation

2005-04-06 Thread Manfred Geiler
-- Forwarded message -- From: Avaneesh Arora [EMAIL PROTECTED] Date: Apr 5, 2005 7:44 PM Subject: MyFaces x:commandNavigation To: [EMAIL PROTECTED] Hello Manfred, Gruesse !! I have one question regarding commandNavigation: Can I pass additional parameters to

AUTOSCROLL feature not working with IE

2005-04-06 Thread Bishop, Luke
Title: AUTOSCROLL feature not working with IE I have been enjoying the myfaces AUTOSCROLL feature with Firefox. But I noticed using IE (6), the _javascript_ generated is always: window.scrollTo(0,0); Is there a fix for this issue? Thanks in advance. -- Luke Bishop

Antwort: My Faces Application Design Approach

2005-04-06 Thread christian . rueedi
I use the Business Delegation Bean Pattern from J2EE Core pattern. With them, you make a clean interface between business logic and application logic(backing beans) and ui logic(jsf pages). Another framework would be spring... to make light coupling Chris Mihir Solanki [EMAIL

RE: How to set a component's value in validator method

2005-04-06 Thread Srikanth Madarapu
Thanks for the information. -Original Message-From: Heath Borders [mailto:[EMAIL PROTECTED]Sent: Tuesday, April 05, 2005 4:14 PMTo: MyFaces DiscussionSubject: Re: How to set a component's value in validator method Yes. Inside your validator, you receive an instance of the

Re: extra row in a datatable

2005-04-06 Thread Aaron Bartell
If this record of a different type is always the last one then it doesn't necessarily need to be part of the Collection, but could instead be a non-Collection property of your backing bean and you could use the footer facet of the datatable to display it. HTH, Aaron Bartell Srikanth Madarapu

no x:panelGrid or equivalent?

2005-04-06 Thread David Donn
Title: Message Hi, I'd like to make a table that only renders when a user has a certain role using the visibleOnUserRole component attributes but there doesn't seem to be a faces panelGrid component unlike most other standard components which seem to have faces extensions e.g. h:outputText

RE: extra row in a datatable

2005-04-06 Thread Broekelmann, Mathias
Hi, You should use a footer for the last row. Just use the footer facet like the facet for the header. Don´t place the object Y into the the datamodel but access it through a managed bean which may also hold the datamodel with the rows. A short example: h:datatable value=#{data.rowValues}

RE: extra row in a datatable

2005-04-06 Thread Srikanth Madarapu
Thanks. This is what I actually thought, as you both suggested, but I cannot specify the styleclass for the facet and that extra row will look very different from all the other rows. If I use a panel inside the facet, I have to, to have two columns, the columns will not align properly. May be

passing arguments to backed bean methods

2005-04-06 Thread Mihir Solanki
Hi all, I want to pass arguments to the backed bean method using JSF EL. Can anyone tell me how can I do this? Basically I have two list boxes in my page. List Box: A List Box: B There are two managed beans I have configured in my faces context fie. Bean: A Bean: B Now

RE: extra row in a datatable

2005-04-06 Thread Srikanth Madarapu
Oh! you mentioned about setting a footer to the column? I was thinking about the table footer as Aaron mentioned. I have to try how this works. Thanks -Original Message- From: Broekelmann, Mathias [mailto:[EMAIL PROTECTED] Hi, You should use a footer for the last row. Just use the

Re: passing arguments to backed bean methods

2005-04-06 Thread Heath Borders
Unfortunately, there is no way to pass arguments through the EL (well, actually there is a way to pass String arguments into Map getters, but that can lead to extreme hacking). Your best bet is to pass an instance of Bean A to Bean B when Bean B is constructed (you can specify this in your

Re: [ANNOUNCEMENT] MyFaces 1.0.9 RC3 now available

2005-04-06 Thread Sean Schofield
Are you familiar with Ant? If so take a look at the build.xml script and feel free to tweak. I'd like zip files too but I am tied up with some work stuff (and tree2 issues) right now. sean On Apr 6, 2005 10:20 AM, Jonathan Eric Miller [EMAIL PROTECTED] wrote: Heh, took the words right out of

Re: passing arguments to backed bean methods

2005-04-06 Thread Heath Borders
You could do that as well, but don't ValueChangeListeners always fire after the Process Validators phase runs, regardless of whether the Update Model Values Phase will run? On Apr 6, 2005 9:15 AM, Sean Schofield [EMAIL PROTECTED] wrote: What about having BeanB be a ValueChangeListener for

Re: [ANNOUNCEMENT] MyFaces 1.0.9 RC3 now available

2005-04-06 Thread Rob Decker
I only see tld docs for wap. -- Rob @objectsource.org -- Original Message --- From: Jonathan Eric Miller [EMAIL PROTECTED] To: MyFaces Discussion myfaces-user@incubator.apache.org Sent: Wed, 6 Apr 2005 09:20:08 -0500 Subject: Re: [ANNOUNCEMENT] MyFaces 1.0.9 RC3 now available

Re: [ANNOUNCEMENT] MyFaces 1.0.9 RC3 now available

2005-04-06 Thread Jonathan Eric Miller
Same here now that you mentioned it. Actually, I've been wondering why MyFaces doesn't include docs for the f: and h: prefixes? Before, it was only x: and wap. Jon - Original Message - From: Rob Decker [EMAIL PROTECTED] To: MyFaces Discussion myfaces-user@incubator.apache.org Sent:

Re: [ANNOUNCEMENT] MyFaces 1.0.9 RC3 now available

2005-04-06 Thread Matthias Wessendorf
h: and f: is *better* documented by SPEC lead (SUN) ... :-) -Matthias On Apr 6, 2005 5:13 PM, Jonathan Eric Miller [EMAIL PROTECTED] wrote: Same here now that you mentioned it. Actually, I've been wondering why MyFaces doesn't include docs for the f: and h: prefixes? Before, it was only x:

Re: [ANNOUNCEMENT] MyFaces 1.0.9 RC3 now available

2005-04-06 Thread Jonathan Eric Miller
I figured that was why, but, it seems like it would be nice if the documentation were bundled with MyFaces so that you don't have to download the RI if you don't want to. Jon - Original Message - From: Matthias Wessendorf [EMAIL PROTECTED] To: MyFaces Discussion

Re: [ANNOUNCEMENT] MyFaces 1.0.9 RC3 now available

2005-04-06 Thread Matthias Wessendorf
oh... I use them online (for reading JavaDoc and TldDoc) -Matthias On Apr 6, 2005 5:23 PM, Jonathan Eric Miller [EMAIL PROTECTED] wrote: I figured that was why, but, it seems like it would be nice if the documentation were bundled with MyFaces so that you don't have to download the RI if you

Re: My Faces Application Design Approach

2005-04-06 Thread Duong BaTien
Mihir Solanki wrote: Hi all, I have started building one application using My Faces. I wanted to have some layered architecture in my application. I have completed with the persistence layer and also sort of business layer. Now my focus is to have a layer in which I can have my faces

Re: [ANNOUNCEMENT] MyFaces 1.0.9 RC3 now available

2005-04-06 Thread Jonathan Eric Miller
Yes. I think I basically having it working. I have it working for the bin distribution and I can easily add the others. Basically, all I did was copy and paste the tar task and do a replace of tar with zip in the pasted text (zip and tar tasks are pretty much identical) and then I added a

JSF to JFC

2005-04-06 Thread Reza B'Far
Folks: Does anyone know if there is any project anywhere that allows for rendering of JSF to JFC? I'm looking for a presentation layer that can be rendered both as a thin and a thick client...not talking about XForms and XUL, rather a framework that actually does the work of rendering to JFC

Re: [ANNOUNCEMENT] MyFaces 1.0.9 RC3 now available

2005-04-06 Thread Jonathan Eric Miller
OK, I modified it so that it zips the src and app bundles too. I mistakenly said that I modifed the file from RC2, but, I modified it from RC3. Jon - Original Message - From: Jonathan Eric Miller [EMAIL PROTECTED] To: MyFaces Discussion myfaces-user@incubator.apache.org; Sean Schofield

Re: Where's RC3

2005-04-06 Thread Sean Schofield
Website has not been updated with the new location yet. That is why its not in the old location. sean On Apr 6, 2005 12:12 PM, David Heffelfinger [EMAIL PROTECTED] wrote: http://cvs.apache.org/builds/myfaces/release/ David On Apr 6, 2005 12:03 PM, Roger Lee, NOTiFY [EMAIL PROTECTED]

problem with hidden fields and f:params int the same form

2005-04-06 Thread Borja Martín
hi, I would like to know if this behaviour is a bug or not. suppose I have this form(I have simplified it so its easier to understand): h:form f:subview id=edit rendered=#{cover.isItemSaved} h:commandLink action=#{cover.editNews} h:outputText value=edit /

Re: JSF to JFC

2005-04-06 Thread Heath Borders
There's really no reason that it couldn't, however, it would require a good deal of hacking the ResponseWriter, etc. It is theoretically possible, but I'm not sure a lot of people need this functionality. On 06 Apr 2005 08:52:34 -0700, Reza B'Far [EMAIL PROTECTED] wrote: Folks:Does anyone know if

MethodBindings called on unrendered components

2005-04-06 Thread Galen Dunkleberger
I turned logging on for my application and noticed that method bindings were being called for components that were in a panel stack and had not yet been rendered. Is this typical behavior? Should methods which I'm binding to in my managed beans first check to make sure that their component is

ms attributes in html tlds

2005-04-06 Thread Rob Decker
I'm looking at the my-faces tld/entities and in html_table_attributes.xml there are attributenamedatafld/name requiredfalse/required rtexprvaluefalse/rtexprvalue /attribute attributenamedatasrc/name requiredfalse/required rtexprvaluefalse/rtexprvalue /attribute

Re: JSF to JFC

2005-04-06 Thread reza
Hi Heath: Thanks for the response. I think the overwhelming reason to have such a functionality is to be able to write one application that, given a local web server, can be both a thin and a thick client. Local web application can do data replication/synchronization with remote hosts. For

Re: problem with hidden fields and f:params int the same form

2005-04-06 Thread Heath Borders
The f:param name for commandLinks is rendered as a URL parameter. Thus, the name you supply is not modified to contain parent NamingContainer names (should it?). However, your hidden input shouldn't be affected because its clientId should be something like '_1:section', and not 'section'. On Apr

Re: JSF to JFC

2005-04-06 Thread Heath Borders
Well, my suggestion would be largely theoretical and probably a bit of a hack, but basically, you'd have to have your build your own renderkit. Rather than having that renderkit render a String of HTML, it would have to render a JComponent. That would be the basic concept, but obviously there are

blank h:inputText - empty string in 1.0.8 but null in 1.0.9 ?

2005-04-06 Thread Slawek
hi when user type no character into h:inputText value=#{bean.input1}/ than in somme action after submit input1 is null. is it ok? in myMaces 1.0.8 its value was always (empty string) ...so i must change lots of code:/. is it my mistake or a new approach? Slawek

session expiried...

2005-04-06 Thread Slawek
hi again one of my filter checks if user is logged. if not logged and not trying to acces to login.jsf than i redirect him to login page. but when users session expried than its visit bean is empty so my filter redirects user to login. thats make users a little confused;) so i must redirect

Re: Navigation not working in MyFaces (works with Sun's RI)

2005-04-06 Thread CupertinoIndian
Rob Decker rob at objectsource.org writes: You should look in the log files of your servlet container for errors. Since it goes somewhere (a blank page) something must of happened. The log files probably have an error in them. Thanks for your response Rob. I looked into the server logs.

Re: Navigation not working in MyFaces (works with Sun's RI)

2005-04-06 Thread Rob Decker
Well, I agree with that assessment. It is rather tedious. Do you use a logger in your application? I use log4j and set the properties file for my app packages to DEBUG. You can do the same with the myfaces packages. You also use commons-logging, which is what myfaces uses. I'm not sure how to

Re: problem with hidden fields and f:params int the same form

2005-04-06 Thread Borja Martín
then the problem possibly resides on the way I'm retrieving the param values, as first I'll look for a param called 'section' and then for a one whose name ends with ':section' the thing is that I didnt know the fparam would also be sent thanks for the explanation Heath Borders wrote: The

Re: blank h:inputText - empty string in 1.0.8 but null in 1.0.9 ?

2005-04-06 Thread Borja Martín
Slawek wrote: hi when user type no character into h:inputText value=#{bean.input1}/ than in somme action after submit input1 is null. is it ok? in myMaces 1.0.8 its value was always (empty string) ...so i must change lots of code:/. is it my mistake or a new approach? Slawek me happened too maybe

Re: blank h:inputText - empty string in 1.0.8 but null in 1.0.9 ?

2005-04-06 Thread Heath Borders
The default behavior should be specified somewhere either in the spec of in Sun's TLD. I'm not sure why this would have changed between the versions, but it seems to me that a blank inputText should be received as a blank String. Otherwise, the value will not get updated. On Apr 6, 2005 6:07 PM,

RE: Jscookmenu - ThemeOffice - Images not displaying?

2005-04-06 Thread Kito D. Mann
FYI, a work around for this is to add your own script elements to your view, after the head element. They will override the ones generated by MyFaces. For example: f:view x:stylesheet path=/themes/ThemeOffice/theme.css/ script src="" type=text/_javascript_/ x:jscookMenu layout=hbr

Re: x:dataTable and renderedIfEmpty

2005-04-06 Thread Ray Clark
Could you put the table inside of another tag that only gets rendered if the table has rows? --- Enrique Medina [EMAIL PROTECTED] wrote: Hi, Does anyone know how to hide the header of a x:dataTable when renderedIfEmpty=false, as it renders anyway?

Re: JSF to JFC

2005-04-06 Thread reza
Yeah, but it's not clear to me how I can create one presentation layer and render to both thick and thin clients. Would you care to elaborate on how you think Tapestry/JSF combo may solve this problem? Reza -- Original Message -- Date: Wed, 6 Apr 2005 16:13:31 -0700 From: Michael McGrady [EMAIL

Re: JSF to JFC

2005-04-06 Thread Heath Borders
I don't really know anything about Tapestry, so I'm afraid I can't help you out there. On Apr 6, 2005 6:28 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Yeah, but it's not clear to me how I can create one presentation layer andrender to both thick and thin clients.Would you care to elaborate on

Re: JSF to JFC

2005-04-06 Thread Heath Borders
That's ok. Its really an interesting idea, I'm just not much of a Swing developer anymore. On Apr 6, 2005 6:36 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Thanks Heath... Sorry, I didn't mean to slam you with a bunch of emails...I'm sure you're plenty busy.This just seems like such a common

Re: dataTable and commandButton question

2005-04-06 Thread Heath Borders
There are a few ways to do this. The easiest is to get call: FacesContext.getCurrentInstance().getExternalContext().getRequestMap().get(var); where var is the name of your datatable's variable.On Apr 6, 2005 9:45 PM, Ray Clark [EMAIL PROTECTED] wrote:I'm sure this must have been asked before but

Re: Managed Bean OO Design question

2005-04-06 Thread Heath Borders
Here's the way we've done it: Our app is mainly for data collection. Usually, its just a big master-detail wizard, but sometimes its more complicated. Let's start with a simple example. I have an application that lets users input organization information. The users start by selecting an

Re: Managed Bean OO Design question

2005-04-06 Thread Ray Clark
Are the sub application beans actually managed beans? Or are they kept as class variables in the master application bean? --- Heath Borders [EMAIL PROTECTED] wrote: Here's the way we've done it: Our app is mainly for data collection. Usually, its just a big master-detail wizard, but

Re: dataTable and commandButton question

2005-04-06 Thread Aaron Bartell
Here is a small helper class I wrote to do what you are asking. import javax.faces.application.FacesMessage; import javax.faces.context.FacesContext; public class UIHelper { public UIHelper() { } public static Object getReqMapObj(String obj) { return

Re: Managed Bean OO Design question

2005-04-06 Thread Heath Borders
In ours, we keep them as instance variables within the master bean, and we store the master bean in teh session. Luckily for us, we don't have many concurrent users, so our session size isn't really an issue. There's no reason that you couldn't use the same pattern with the request scope managed