Hi,
I use tree2 in my
application now. But I dont seem to get the Navlines to be visible. I guess it
is something to do with the ExtensionsFilter because my "view Source" gives me
something like this for the images and JS.
script
type="text/_javascript_"
src=""!--
Below is my web.xml.
Hi everybody
Is there a possibility to apply a header style for each (standard)
dataTable column or do I need a fancy extension for this?
the header attribute is called headerClass__ whereas the columns are
styled with columnClass_es_ and the header seems to overrule the columns...
Thank
Have a look at the org.apache.myfaces.config package...
Mvgr,
Martin
Dennis Byrne wrote:
I want to run unit tests on faces-config.xml . I am prepared
to do this w/ DOM, but what I'd like to do is use the
digester stuff used in the internals.
Can anyone point me in a direction for this ?
ok...I'll try that.
Rosalba
--- CONNER, BRENDAN (SBCSI) [EMAIL PROTECTED] wrote:
Can you define an h:messages on your page just to
make sure?
- Brendan
-Original Message-
From: rosalba bochicchio
[mailto:[EMAIL PROTECTED]
Sent: Thursday, October 20, 2005 10:27 AM
To:
yeah, I got it. and w/out any need for a container as well.
Original message
Date: Fri, 21 Oct 2005 09:10:09 +0200
From: Martin van den Bemt [EMAIL PROTECTED]
Subject: Re: faces-config.xml
To: MyFaces Discussion users@myfaces.apache.org
Have a look at the
I also encountered problems with the Oracle XML parser and JSF /
myfaces. I changed the bootclasspath of the OC4J (unsupported) to use
the Xerces parsers. But there also is a howto at Oracle dwescribing ho
to change the default parser. It is called how-to-swapxmlparser.zip).
But I did not try it
I use Myfaces(myfaces-1.1.1RC3) to build my web application. But I've got some troubles.
There are two pages in my application, and there is a link in pageA which forward to pageB.
I must click the link twice that I could forward to pageB When I back to pageA from pageB using IE's Back button
That's the saving, but that's not what I mean :-).
1) Certainly with save state = server, there is only 1 uiview tree per session per viewId=jsp page, right?
2) If so, what happens if 2 concurrent requests are executed for the same session/viewId? The same tree is used? (You seem to imply a
This is a known bug - it should be fixed in the latest nightly build.
Can you try this out?
regards,
Martin
On 10/21/05, 六岁就很酷 [EMAIL PROTECTED] wrote:
I use Myfaces(myfaces-1.1.1RC3) to build my web application. But I've got
some troubles.
There are two pages in my application, and there
try out the t:column component it allows you to define a
headerstyleClass or headerstyle attribute for each column.
Am 20.10.05 schrieb Thierry Buecheler [EMAIL PROTECTED]:
Hi everybody
Is there a possibility to apply a header style for each (standard)
dataTable column or do I need a fancy
Hello,
I have the following problem:I have a page
displaying a dataTable that can be modified by the users(add/update/delete
row) this works fine.Now I tried to implement sortable headers on my
table.To do this I added the following propertiesto the bean managing
the table :
private
Hello,
This problem is now solved (the version explained below is
working)
(..but don't ask me why, there's some kind of magic around
!)
Rgds
FJ
De: Jecker Frédéric (LFR)
[mailto:[EMAIL PROTECTED] Envoyé: vendredi 21
octobre 2005 11:02À:
users@myfaces.apache.orgObjet: DataTable
try to use a latest myfaces release. We found a lot of bugs in the
datatable/sortheader stuff since 1.0.9. If you plan to use input
fields inside a datatable you should definitly use 1.1.0 or 1.1.1RC3
2005/10/21, Jecker Frédéric (LFR) [EMAIL PROTECTED]:
Hello,
This problem is now solved (the
I'm using myfaces 1.0.9. I have a problem with
tree2...when I click on one of the nodes, I want to
view a new page. But the click on the node generates
the following error:
java.lang.IllegalArgumentException: Node with id 0:1.
Failed to parse 0:1
at
What am I missing here?
h:outputLabel rendered={#UserController.user.isPQE} for=finalLiability value=#{my_properties['NCM_label_finalLiability']} /
h:selectOneRadio
rendered={#UserController.user.isPQE}
required=true
disabledClass=bodyheading
enabledClass=bodyheading
Hi Mark,
I'm having the same problem with some simple test jsp files like
yours, Could you explain what solution have you found for it ?
Thanks,
- Juancho
On 9/9/05, Mike Kienenberger [EMAIL PROTECTED] wrote:
I recommend keeping questions on the mailing list so others can
comment as
Hi all,
I like to use the JSCookMenu from the myfaces extensions and Facelets.
After adding the tags
tag
tag-namejscookMenu/tag-name
component
component-type
org.apache.myfaces.JSCookMenu
/component-type
Anyone help me, please
I don't know what do
Thanks
Guedes
On 10/20/05, PATRICIA GUEDES [EMAIL PROTECTED] wrote:
Hi, (sorry for my bad english again)
I am trying to create a table using dataTable, but something is wrong.
When I try to show my lines using a DataModel, just the first
Try rendered={#UserController.user.PQE} the 'is' is added by beanutils.
Jeffrey Porter wrote:
What am I missing here?
h:outputLabel rendered={#UserController.user.isPQE}
for=finalLiability value=#{my_properties['NCM_label_finalLiability']} /
h:selectOneRadio
Try using
#{
instead of
{#
;)
regards,
Martin
On 10/21/05, Volker Weber [EMAIL PROTECTED] wrote:
Try rendered={#UserController.user.PQE} the 'is' is added by beanutils.
Jeffrey Porter wrote:
What am I missing here?
h:outputLabel rendered={#UserController.user.isPQE}
Use
h:outputLabel
rendered={#UserController.user.PQE} for=finalLiability
Rather than
h:outputLabel
rendered={#UserController.user.isPQE} for=finalLiability
Stefan Maric | IT Professional Services | BT
Global Services
E: [EMAIL PROTECTED] | www.bt.com/globalservices
Ok, that may be the reason that he didn't found an exception in his logs.
but does #{UserController.user.isPQE} works? i think not, but never tested.
Martin Marinschek wrote:
Try using
#{
instead of
{#
;)
regards,
Martin
On 10/21/05, Volker Weber [EMAIL PROTECTED] wrote:
sorry I forgot to answer your question.
You should not initialize your RowData with a datamodel for your
fields as a second parameter. Instead pass the values for each field
of this row and don´t put your values into your fields:
private static final Fields[] fieldsEmbque = new Fields[] {
Thank you.
Feel a bit of an idiot now.
(Normally would ask another developer to
look over my code, but theres only 1 his away for 3 weeks)
Also #{UserController.user.isPQE}
does not work.
Jeff.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
the other thing that causes problems very often is this:
rendered=#{xxx.xxx
no errror-message, no nothing-no output as well where you could check...
I have been spending hours on searching the cause for problems like this.
regards,
Martin
(Normally would ask another developer to look over
It works Finally...
Thanks very much for your time and patience .
Guedes
On 10/21/05, Mathias Brökelmann [EMAIL PROTECTED] wrote:
sorry I forgot to answer your question.
You should not initialize your RowData with a datamodel for your
fields as a second parameter. Instead pass the
Hi.
How are you identifying this problem?
The problem is easily identified doing a step-by-step remote debug on
the application. Also, an action that inserts some data into my database
tries to issue the insert query twice!.
I also found that once it has inserted the data, if I refresh the
Yeah, I think the only thing that works for sure is public boolean getIsPQE().
public boolean isPQE isn't allowed as a managed bean property.
On 10/21/05, Volker Weber [EMAIL PROTECTED] wrote:
Ok, that may be the reason that he didn't found an exception in his logs.
but does
Actually, it is allowed, if you reference it correctly. In your case,
it would be:
#{UserController.user.pQE}
Normally, if you have a boolean method isXyz() in your bean MyBean, you
can reference it using #{MyBean.xyz}
- Brendan
-Original Message-
From: Mike Kienenberger
It would be nice to add in more control, just like in JSP's.
e.g. %if (myObject.getName().equalsIgnoreCase(BOB)) {/**something**/}
%
Maybe there's a way to pass a JSF object over to JSP code? So that you
can call code that passes variables into a method. I don't know.
I've only been learning
Not only actions, but all the methods get called twice, including init
methods.
What would be a reason for this to happen?
Please help, I'm stuck
Julian
Julián García wrote:
Hi.
How are you identifying this problem?
The problem is easily identified doing a step-by-step remote debug
I think the general philosophy of JSF is to do any fancy logic inside
the Bean itself, and to keep the JSF page relatively free of
conditionals and loops. One is always free to create additional helper
methods inside the Bean itself.
- Brendan
-Original Message-
From: Jeffrey Porter
Forgot to mention, I have this problem when using save state on the
client side. Changing the parameter to server side appears to solve the
problem.
I would like to use client server state anyway. Any clues on the issue?
Julián García wrote:
Not only actions, but all the methods get called
If you are willing to try out JBoss-Seam, you can have multiple
conversations open in a user's session, and they will not collide. So
if you want to allow users to have multiple views in the same
session/browser instance, it is possible using Seam. You don't need
JBoss for Seam either, I have had
Can you try with the latest release (1.1.1RC3)?
- Brendan
-Original Message-
From: rosalba bochicchio [mailto:[EMAIL PROTECTED]
Sent: Friday, October 21, 2005 5:02 AM
To: users@myfaces.apache.org
Subject: PROBLEMS WITH TREE2
I'm using myfaces 1.0.9. I have a problem with
tree2...when
Yes, and I used client side until it failed. Problem is that no
components of our arquitechture have been touched. My question is, what
could be causing the problem (at the hypotheses level, so I can try to
figure out what's the issue going on)
Thanks a lot.
Julian
CONNER, BRENDAN
Thanks, Brendan, for clearing that up.
Just to be sure, I just tested it to verify it works this way with
MyFaces/Facelets, and it did. Guess I should have tested before
posting. :)
On 10/21/05, CONNER, BRENDAN (SBCSI) [EMAIL PROTECTED] wrote:
Actually, it is allowed, if you reference it
I'd start by checking to see if you're receiving multiple identical
requests at the servlet level. Try to eliminate the non JSF issues
first. Maybe it's a config issue where you've configured the servlet
twice or something.
On 10/21/05, Julián García [EMAIL PROTECTED] wrote:
Yes, and I used
@Brendan:
you are right in that if you have bean.getMe, you'll need to write bean.me.
if you have bean.getME though, you will need to write bean.ME - if
there is more than one uppercase character already, no lowercasing is
necessary.
regards,
Martin
On 10/21/05, CONNER, BRENDAN (SBCSI)
If this works, we have a bug in our implementation!
no lowercasing should be done if more than one uppercase characters,
this is in the beans specification.
regards,
Martin
On 10/21/05, Martin Marinschek [EMAIL PROTECTED] wrote:
@Brendan:
you are right in that if you have bean.getMe, you'll
So, according to the specification, should it work with either
#(bean.ME} or #{bean.mE}? I personally hate special case situations
built into a spec, but, hey, if it works, ... ;-)
- Brendan
-Original Message-
From: Martin Marinschek [mailto:[EMAIL PROTECTED]
Sent: Friday, October 21,
it should work with #{bean.ME}
anything else would be a bug.
regards,
Martin
On 10/21/05, CONNER, BRENDAN (SBCSI) [EMAIL PROTECTED] wrote:
So, according to the specification, should it work with either
#(bean.ME} or #{bean.mE}? I personally hate special case situations
built into a spec,
Hello all again,
Ive got the following tag in my JSP. UserController.user.surname
is a string.
h:inputText
id=enteredByUID value=#{UserController.user.surname} maxlength=20 size=20 required=true /
But I get an
exception when I try to save the page.
Not sure but aren't you mixing up firstName
and surname maybe..?
Geeta
Jeffrey Porter [EMAIL PROTECTED]
wrote on 10/21/2005 11:47:45 AM:
Hello all again,
Ive got the following tag in my JSP. UserController.user.surname
is a string.
h:inputText id=enteredByUID
I guess it should be value = #{beanname.variablename}.
I assume usercontroller to be bean name and surname to be variable name. What is
user - ?
-Suba.
Quoting [EMAIL PROTECTED]:
Not sure but aren't you mixing up firstName and surname maybe..?
Geeta
Jeffrey Porter [EMAIL PROTECTED]
Opps, typo. I moved some code around to try
firstname. Both fail though.
Let me test one more time
JSP
h:inputText id=enteredByUID value=#{UserController.user.surname}
maxlength=20 size=20 required=true /
Code
public String getSurname()
{
return surname;
}
Error
Man, that's annoying. One would think that following the regular rule
of capitalization would work, and that this special case of recognizing
a capitalized first letter would be supported as an additional feature.
It's hard for me to understand why the regular rule of capitalization
would be
Jeffrey Porter [EMAIL PROTECTED]
wrote on 10/21/2005 12:04:27 PM:
Opps, typo. I moved some code around to try firstname. Both fail though.
Let me test one more time
JSP
h:inputText id=enteredByUID value=#{UserController.user.
surname} maxlength=20 size=20 required=true
/
Code
In my bean I have
public void setURL(URL u){
url = u;
}
public URL getURL(){
return url;
}
And in my jsp I have
h:outputLink id=url value=#{myBean.URL}target=_blank
h:outputText id=urlText
Yes, the question I had is: Would the JSP work by specifying
value=#{myBean.uRL}?
- Brendan
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, October 21, 2005 11:24 AM
To: users@myfaces.apache.org
Subject: RE: IF statement..?
In my bean I have
Oh. Hmm, I would have thought that this question would be specific to
the JSF EL.
- Brendan
-Original Message-
From: Mike Kienenberger [mailto:[EMAIL PROTECTED]
Sent: Friday, October 21, 2005 11:29 AM
To: CONNER, BRENDAN (SBCSI)
Subject: Re: IF statement..?
No, it's not actually
In regards to the Date component, has anyone added logic to prevent alpha
characters from being entered in the Day and Year fields? This seems to
blow up when the form is submitted. Also, the calendar popup does not work
properly when alpha characters are entered in the Year field.
Oct 21, 2005
Yeah,the problem is that the JSF Spec defers to the JSP spec for EL
getter stuff. Only the EL setter stuff is specified.
For example:
5.1.2 Value Binding Expression Syntax
The syntax of a value binding expression is identical to the syntax of
an expression
language expression
And it has moved!
there is now the common EL specification separate from the JSP spec, afaik.
but the thing with the uppercase notation was defined even before, in
the java beans-specification.
regards,
Martin
On 10/21/05, Mike Kienenberger [EMAIL PROTECTED] wrote:
Yeah,the problem is that
We need a wiki entry on where to find the specs, once someone actually
figures it all out :)
On 10/21/05, Martin Marinschek [EMAIL PROTECTED] wrote:
And it has moved!
there is now the common EL specification separate from the JSP spec, afaik.
but the thing with the uppercase notation was
Hi!
I don't think so... I'm pretty sure that the reason of
this conversion error is because the managed bean
(LogonBean) is null... so when it tries to lookup for
its methods, a FacesException is thrown.
I'm saying this because I switched to the Sun RI to
see if it works, but the same
Hi everyone. I was trying to use a simple confirm _javascript_ in the h:commandLink, like this:
h:commandLink action="">
value=Atender Chamado confirm('Deseja atender este chamado?');
rendered=#{pc_DetalhesChamado.renderedAtenderChamado}/
But a strange behavior is happening. If I put in the
Is there an API for setting the UIDataScroller
to a certain page?
Hi again,
Anyone know how can I get a message from a messageBundle with a
dynamic value-binding expression?
Ex:
h:outputText value=#{msg['{#remessaBean.verbete}']} /
Thanks.
Guedes
Although I believe the JavaBean convention is that a variable should
start with a lower-case letter, in which case this is a non-issue.
- Brendan
-Original Message-
From: Martin Marinschek [mailto:[EMAIL PROTECTED]
Sent: Friday, October 21, 2005 11:52 AM
To: MyFaces Discussion
Subject:
I am trying the lazy load for tree2 and the code looks like this
f:facet name=person1
h:panelGroup
h:commandLink action=""
actionListener=#{treeBacker.processAction}
t:graphicImage
value=/images/yellow-folder-open.png
rendered=#{t.nodeExpanded} border=0 /
t:graphicImage
Title: Message
Can
yousend the entire tree from your JSF page?
-
Brendan
-Original Message-From: Anu Padki
[mailto:[EMAIL PROTECTED] Sent: Friday, October 21, 2005 1:58
PMTo: users@myfaces.apache.orgSubject:
ClassCastException: for HtmlCommandLinkI am trying the
Thanks for the reply. Here is the JSP.
%@ taglib uri=http://java.sun.com/jsf/html prefix=h%
%@ taglib uri=http://java.sun.com/jsf/core prefix=f%
%@ taglib uri=http://myfaces.apache.org/tomahawk prefix=t%
!--
/*
* Copyright 2005 The Apache Software Foundation.
*
* Licensed under the Apache
Title: Message
Which
version of Tomahawk are you using?
-
Brendan
-Original Message-From: Anu Padki
[mailto:[EMAIL PROTECTED] Sent: Friday, October 21, 2005 2:09
PMTo: MyFaces DiscussionSubject: Re: ClassCastException:
for HtmlCommandLinkThanks for the reply. Here is
We have an application requirement saying that the user needs the
ability to push a button on our report page to download the report data
into a local file on the user's machine suitable for loading into a
spreadsheet. How can something like this be done?
- Brendan
This is possible to do fairly easily, here's some sample code:
FacesContext facesContext = Utils.getFacesContext();
HttpServletResponse response = (HttpServletResponse) facesContext
.getExternalContext().getResponse();
try {
Here's one way.
Note that facesContext.getResponseStream() is only valid during the
render-response phase, so you'll have to access the HttpRequest
directly (not sure how it works for portlets).
public String downloadContentData()
{
Content selectedContent =
At the beginning of your f:view you can have something like that:
f:loadBundle basename=your.class.name var=bundle/
By default, I believe the proper bundle based on the locale will be
loaded or the default one will be loaded. Then in your page, you'll just
call something like that:
I'm working on a greater-than validator, along the lines of the
tomahawk equalsValidator.
However, it occurs to me that it'd probably be better if one validator
could support ==, !=, , , =, and =
I'm wondering if anyone has suggestions for the best way to represent it.
greaterThanValidator
It appears HtmlResponseStateManager uses jsf_tree *OR*
jsf_tree_64 . Can anyone give me a high level idea about the
different circumstances that would affect this? For example,
when does SerializedView.getStructure() return a String?
Likewise, for jsf_state and jsf_state_64.
IE version 6.029 has _javascript_ errors on autoUpdateDataTable,
accordianPanel (inputsuggestAjax broke for another reason so couldn't
try it right now), but is the prototype.js fully IE compliant?
Travis
-Original Message-
1) greaterThanValidator for=startDateInput/ is what I'm currently
doing.
2) comparableValidator for=startDateInput operator=gt/
a) Operator values being eq, ne, lt, gt, ge, and le in
addition to (or maybe instead of)
b) ==, !=, , , =', and =.
-/Original
t:booleanValidator op=or
Ha ha! You're the expert on designing validators that wrap other
validators. I'll let you write that one! :-)
On 10/21/05, Jesse Alexander (KBSA 21)
[EMAIL PROTECTED] wrote:
-Original Message-
1) greaterThanValidator for=startDateInput/ is what I'm
-Original Message-
t:booleanValidator op=or
Ha ha! You're the expert on designing validators that wrap other
validators. I'll let you write that one! :-)
-/Original Message-
Remember how I first objected to have OVW defined also as Validator...
Just a few seconds later a
Travis Reeder wrote:
IE version 6.029 has javascript errors on autoUpdateDataTable,
accordianPanel (inputsuggestAjax broke for another reason so couldn't
try it right now), but is the prototype.js fully IE compliant?
Travis
Prototype is regarding IE6, I have used it a lot
in different
Thanks. In your example, does one have to first write out the data to a
file on the server? I see you set the header with
attachment;filename=..., but then I also see that you have
responseStream.write(selectedContent.getContentDate().getData()).
- Brendan
-Original Message-
From: Mike
When I right click a command Link, open it in a new window in IE, the behavior is not expected. Since commandLink has an action in server side, when opening in a new window, the action is not executed.
Any solution for this? Thanks,
Dave
Yahoo! FareChase - Search multiple travel sites in one
Check your web.xml file to see if you're including faces-config.xml
if defined in the context-param for javax.faces.CONFIG_FILES.
faces-config.xml is automatically loaded by JSF so if you've specified
in the context-param then it is loaded twice. This causes some actions
to be called twice. At
Tree2 from MyFaces 1.1.1 RC3 seems to
behave differently in a portlet environment. I have the same application
deployed in WebSphere Portal and Tomcat. In Tomcat the actions associated
with the tree node links get triggered. In portal, they do not. Otherwise
the application behaves correctly in
In fact I was using a context-param for javax.faces.CONFIG_FILES,
despite the name was faces-config, however, the problem still persists,
when I get rid of the context param.
As I already mentioned, the problem is present whenever I use client
state saving. Using server saving solves it,
I am trying the code on the wiki page and this is how my jsp looks
When I debug the actionlistener, it finds the identifier of the main node and then adds the new nodes.
It however, does not display the nodes.
What am I missing here? Can some one please help?
- Anu
%@ taglib
No, the data being downloaded in the example below is read from the
database. The attachment;filename= header just provides a default
suggested file name for browsers that implement it. You can write out
any data you like. You can generate it on the spot if you want. I
have a similar control
Let us know how it works and feel free to suggest patches. I don't
know many people using it but it looks cool. It would be helpful to
have some testers before we promote it.
sean
On 10/17/05, Martin Marinschek [EMAIL PROTECTED] wrote:
In fact, the scheduler has been pretty stable for some
Jeffrey Porter wrote:
It would be nice to add in more control, just like in JSP's.
e.g. %if (myObject.getName().equalsIgnoreCase(BOB)) {/**something**/}
Having code in your presentation page is a *very bad idea* for large
projects with long lifetimes. That's why JSP is such garbage for large
84 matches
Mail list logo