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,
-- 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
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
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
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
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
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
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}
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
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
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
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
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
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
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
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:
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:
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
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
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
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
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
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
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]
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 /
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
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
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
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
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
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
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
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
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.
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
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
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
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,
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
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?
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
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
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
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
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
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
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
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
48 matches
Mail list logo