Hi,
We are moving from Sun RI to MyFaces. However, when I
deploy my application on Jboss, I get the following error. Can anyone throw some
light on this error.
I have cross checked all my deployment file and
it does not refer to the sun's listeners.
Thanks
Bala
11:10:26,828 ERROR
sounds like your web.xml has no Context Listener defined
listener
listener-classorg.apache.myfaces.webapp.StartupServletContextListener/listener-class
/listener
the newer versions of myfaces contains this listener inside of the
core.tld (like the RI does).
I was able to deploy MyFaces demo
note the informations provided on that page are ADF Faces informations...
but with *modifications* that will work for MyFaces as well
;-)
On 10/20/05, Matthias Wessendorf [EMAIL PROTECTED] wrote:
sounds like your web.xml has no Context Listener defined
listener
sounds like you still contain RI files (*.jar, *.tld) inside of your application
com.sun.faces.* are not myfaces packages :-)
Try to remove them and restart your container
HTH,
MatthiasOn 10/20/05, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
Hi,
We are moving from Sun RI to MyFaces.
Actually I need both an action like the one you said
and an action like
action=#{userPageBean.getGroupName}
where userPageBean is the backing bean defined for the
jsf page I'm referring to, and getGroupName is a
method of bean accessing to the data base.
Here's the whole code for the
-Original Message-
Just to get experience, what size was it?
-/Original Message-
effective project:
*.jsp : 194
*.java: 742
Number of jsp's s including includes...
faces-config:
files: 9
lines: 1480
managed-beans: 93
navigation-cases: 117
converter: 37
projects it depends on
I do this normally by redeploying the webapp. If you use Tomcat you
can simple touch web.xml to accomplish this.
2005/10/20, Andy W Freeman [EMAIL PROTECTED]:
Is there an easy way outside reloading the context to get the
faces-config.xml to reload? I assumed that this was addressed in issue
It´s done in the implementation of the StateManager:
JspStateManagerImpl.saveSerializedView(...)
to save the component tree and the component state and
JspStateManagerImpl.restoreView(...)
to restore the component tree and the components state
The state of the components is collected by
Sorry, but I don't understand (I am learning yet). How can I fill the
row data? With an Array?
Thanks,
Guedes
On 10/18/05, Mathias Brökelmann [EMAIL PROTECTED] wrote:
try to use an instance of DataModel as the value for either
valuesEmbque or fieldsEmbque. You can then determine with
That's what I did. But something is wrong, because the error
[ServletException in:/eservices/layout/layout.jsp] null' appears.
public DataModel getFieldsEmbque() {
if(fieldsEmbqueModel == null) {
fieldsEmbqueModel = new ArrayDataModel(fieldsEmbque);
}
return fieldsEmbqueModel;
I do that too. And that is why I posted my question. :)
Is there a way to tell MyFaces that it should reload the
faces-config.xml file if it is not going to automatically watch for
timestamp changes?
Andy
On 10/20/05, Mathias Brökelmann [EMAIL PROTECTED] wrote:
I do this normally by
Hello again.
My question is this.
I want when a JSF page is displayed, to look up the current
user and display some information on them.
For example
%
Principal principal = request.getUserPrincipal();
String userName = principal.getName();
User user =
I cannot download myFaces Binary Distribution from
http://myfaces.apache.org/binary.cgi .
It returns 500 Internal Server Error.
I have two managed beans b1 and b2. In b1 an action method creates new components c1 and c2. These new components have their binding set to b2 (i.e c1's binding=b2.c1 and c2's binding=b2.c2). When the page is rendered b2 does have its component references initialized. It works fine for subsequent
I get the same.
JP
-Original Message-
From: Bogdan Sava [mailto:[EMAIL PROTECTED]
Sent: 20 October 2005 13:43
To: MyFaces Discussion
Subject: error download myFaces
I cannot download myFaces Binary Distribution from
http://myfaces.apache.org/binary.cgi .
It returns 500 Internal Server
Try this one:
http://cvs.apache.org/builds/myfaces/release/
Regards,
Andy
-Ursprüngliche Nachricht-
Von: Jeffrey Porter [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 20. Oktober 2005 14:46
An: MyFaces Discussion
Betreff: RE: error download myFaces
I get the same.
JP
-Original
Hi everyone.
Our team have to do something like this:
A calling detail page, where the user can navigate to other pages, like assign responsible, and so on.
And we have to pass the callingId to the page Backing Bean - like, if the user is in calling detail page,
there's a h:commandButton calling
Forget it!!!
I found the problem. I was constructing the valuesEmbque variable with
a Fields Array in the RemessaBean's Constructor.
Thanks any way!!!
Guedes
On 10/20/05, PATRICIA GUEDES [EMAIL PROTECTED] wrote:
That's what I did. But something is wrong, because the error
[ServletException
server. This is normally done by hidden input fields or if javascript
is disabled by url params (which is limited of course).
in JSF 1.2 the parameter for state saving is specified. Currently
each implementation is doing it their own way.
-Matthias
Server side state is simply stored in the
[EMAIL PROTECTED] wrote on 10/20/2005
02:18:26 AM:
Hi,
We are moving from Sun RI to MyFaces. However,
when I deploy my
application on Jboss, I get the following error. Can anyone throw
some light on this error.
I have cross checked all my deployment file and
it does not refer
to the
Hi folks!
I wanna use the great
component tree table in my application.
But everytime when I
click on a node a _javascript_ error occurs (Ive tested the treetable
example code in my application)!
Does anybody know this
problem???
My configuration:
sun jsf-ri 1.1.01 with Myfaces
Very good!
Sean, can you check this? Is this an infrastructure problem or a
homepage problem?
As for the mailing-lists: they are written like this to keep at least
some of the spammers out.
regards,
Martin
On 10/19/05, Brian Cook [EMAIL PROTECTED] wrote:
The links on page
Short answer: no.
I'd love to have a way to do this, really.
As well as a way to reload properties-files - to make
internationalization easier. If you want to invest some work in this,
I could surely be of help to you while planning how to integrate this
with MyFaces.
regards,
Martin
On
Hi again!
It seems that the javascript code can't find the function clear_form!
What can I do?
Stefan
Von: Stefan Gesigora
Gesendet: Donnerstag, 20. Oktober 2005 15:36
An: MyFaces Discussion
Betreff: javascript error in tree table
Hi folks!
I wanna
in meantime use this link
http://cvs.apache.org/builds/myfaces/release/
On 10/20/05, Martin Marinschek [EMAIL PROTECTED] wrote:
Very good!
Sean, can you check this? Is this an infrastructure problem or a
homepage problem?
As for the mailing-lists: they are written like this to keep at
Hi,
there is a getUserPrincipal() method in ExternalContext,
Regards
Volker weber
Jeffrey Porter wrote:
Hello again.
My question is this.
I want when a JSF page is displayed, to look up the current user and
display some information on them.
For example…
*%*
Title: Message
We
have a managed bean representing the user with session scope that is filled out
when the user successfully logs in by the managed bean responsible for
login. Any page then has access to the user's
information.
Our
managed bean responsible for the login process has a
That problem sounds unrelated to Tiles, unless I'm missing something.
Out of curiosity, why are you specifying immediate=true?
- Brendan
-Original Message-
From: rosalba bochicchio [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 20, 2005 2:27 AM
To: MyFaces Discussion
Subject: RE:
So are you saying that we no longer have to define the listener in our
web.xml file when using MyFaces?
- Brendan
-Original Message-
From: Matthias Wessendorf [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 20, 2005 2:13 AM
To: MyFaces Discussion
Subject: Re: Myfaces under OC4J
Title: Validation Messages despite immediate Attribute
I have a SelectOneRadio Button with a ValueChangeListener...
Although I have an immediate=true Attribute, I get Validation messages for the Required Input Fields?
How could this be? Have I done anything wrong?
Here is my Code
I've messed about and got my action method to make a call to a
SessionBean.
Which then looks up the current user via the SessionContext.
The bean I create is then passed into the page via a t:saveState tag.
This is great for all pages off the main page, since an action method
has been called
How can I align my graphicImage??
I am trying this :
h:graphicImage url=/eservices/images/lupa.jpg alt=Pesquisar Embarque
style=text-align:center
onclick=buscaEmbarque(1); /
But not works... Any ideas?
Thanks
Guedes
Sometimes you might want do display one type of node differently than
another. For example, you might want to display an organization node
differently than an employee node when employees are leaf nodes within
an organization. In this case, you would define two types of nodes:
employee and
Title: Message
Hi Brendan,
Thats the path that Im
starting to head down.
I have the managed bean with the user info
in. This is populated by an action method from the first page.
How did you get you bean to be populated
before then?
Are you using JAAS ?
Thanks
Jeff.
yes, ...
but some containers (Jetty for instance) still need this workaround
.Matthias
On 10/20/05, CONNER, BRENDAN (SBCSI) [EMAIL PROTECTED] wrote:
So are you saying that we no longer have to define the listener in our
web.xml file when using MyFaces?
- Brendan
-Original Message-
No.
if you don't use Jetty (some version) you are usually good to go, and
the listener will be included by the TLD files themselves.
regards,
Martin
On 10/20/05, CONNER, BRENDAN (SBCSI) [EMAIL PROTECTED] wrote:
So are you saying that we no longer have to define the listener in our
web.xml
so how do you control the authorization?
do you insert a check into every single page?
or via phaseListener, navigationHandler, etc.?
CONNER, BRENDAN (SBCSI) wrote:
We have a managed bean representing the user with session scope that is
filled out when the user successfully logs in by the
Action listener on the command button?On 10/20/05, Rafael Nami [EMAIL PROTECTED] wrote:
Hi everyone.
Our team have to do something like this:
A calling detail page, where the user can navigate to other pages, like assign responsible, and so on.
And we have to pass the callingId to the page Backing
OK. BTW, can you briefly describe what this listener does? I've just
been blindly including it, but I don't really understand what it's
doing.
- Brendan
-Original Message-
From: Martin Marinschek [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 20, 2005 9:37 AM
To: MyFaces Discussion
You can do
FacesContext.getCurrentInstance().getExternalContext().getUserPrincipal()
in every bean, also at first page.
Jeffrey Porter wrote:
I've messed about and got my action method to make a call to a
SessionBean.
Which then looks up the current user via the SessionContext.
The
In my last project I used a servlet filter for this case... worked
exceptionally well.
Marius Kreis wrote:
so how do you control the authorization?
do you insert a check into every single page?
or via phaseListener, navigationHandler, etc.?
it inits the infrastructure of the jsf app
(parsing faces-config ... )
http://svn.apache.org/viewcvs.cgi/myfaces/impl/trunk/src/java/org/apache/myfaces/webapp/StartupServletContextListener.java?rev=193014view=markup
take a look ;-)
On 10/20/05, CONNER, BRENDAN (SBCSI) [EMAIL PROTECTED] wrote:
Under Struts, one could do the following: html:form
focus=fieldName to specify which field within a form should receive
focus upon loading the form. How can I do this under JSF?
- Brendan
h:inputSecret id=senha
value=#{logon.senha}/
private String password;
I don't see anything beside the above inconsistency, but I'm pretty
sure that you just translated senha to password in your first message
so it'd be more clear.
Try adding this to your form and see if you get better errors.
Hi,
I'm trying to insert a jsCookMenu component in a page I have. The thing
is I'm trying to get an inputtext in one of my items, just the way it
can be done in the original javascript version of the menu. Is it
feasible in the myfaces version? I can't get it to work for some
reason... here's a
I've no h:messagges in my page but logging is enabled
at level DEBUG
The only thing I could notice is that when clicking on
the links (or command buttons)not working nothing is
logged.
I mean ...while whe clicking on running links I can
see (in the log file) something like
20 ott
I've been concerned about concurrent same-session requests for awhile now.
I'm wondering if the best solution might not be to simply have a
servlet filter that only allowed one request per session to occur at
any one time.That's the approach I'm going to try. That solves
the issue not only
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: MyFaces Discussion
Subject: RE: MYFACES-TILES NAVIGATION PROBLEM
I've no h:messagges in my page
How can I do such a thing? How can I pass the callingId to this actionListener
I didn't understood quite well what does a ActionListener do. Anybody can explain me?
Thanks in advance
Rafael Mauricio Nami
2005/10/20, Andrew robinson [EMAIL PROTECTED]:
Action listener on the command button?
Hey guys,
Thanks for your help!
Yesterday I worked hard until discover what was happening in my
environment.
The problem was related to Oracle XML Parser (My OC4J JVM instance is
initialized with this parser)... It was trying to validate my web.xml dtd at
Rafael,
perhaps Tomahawk's updateActionListener may help you:
h:dataTable value=#{someBeans} var=currentbean ...
h:commandLink action=outcome
t:updateActionListener property=#{bean2.porperty}
value=#{currentbean.myPorperty} /
/h:commandLink
...
more on:
FYI: I checked into how Struts renders html:form focus=fieldName
..., and it simply adds the following lines after the end of the form:
script language=JavaScript type=text/javascript
!--
document.forms[viewName:formName].elements[viewName:formName:fieldNam
e].focus();
// --
/script
Is
Henrik Bentel wrote:
Hi
This problem is related to a recent topic in another thread regarding
calendar popup and porlets.
It seems the problem with the popup calendar is the same as I'm having
with the tabbed pane component in a portal(Liferay).
The tabbed pane components wants to add
For all of you who might care.
Here is the path I've taken.
Faces-config.xml...
managed-bean
description/description
managed-bean-nameUserController/managed-bean-name
managed-bean-classorg.me.TaskListController/managed-bean-class
The release candidate can be found at
http://cvs.apache.org/builds/myfaces/release/. Please download it and
help us with the testing if you are interested. Please report all
JIRA issues against version 1.1.1.
We store the user in the normal externalContext session so it's
accessible everywhere, then use a servlet filter to check the session.
TravisOn 10/20/05, Jeffrey Porter [EMAIL PROTECTED] wrote:
For all of you who might care.Here is the path I've
Does MyFaces contain an IF statement?
Something like
x:if user.admin == true
h:outputLabel value=ADMIN /
x:else
h:outputLabel value=NOT ADMIN /
/x
I would put my IF statement in JSP.
But this doesnt seem to work.
For example
%=user.admin%
[EMAIL PROTECTED] wrote on 10/20/2005 01:50:37
PM:
Jeffrey Porter [EMAIL PROTECTED]
wrote on
10/20/2005 01:45:04 PM:
Does MyFaces contain an IF statement?
Something like
x:if user.admin == true
h:outputLabel value=ADMIN /
x:else
h:outputLabel value=NOT
No but you can use the rendered attribute.
h:outputLabel value=ADMIN rendered=#{user.admin}/
h:outputLabel value=NOT ADMIN rendered=#{!user.admin}/
only the one where rendered evaluates to true is rendered.
Jeffrey Porter wrote:
Does MyFaces contain an IF statement?
Something
Hi,
I'm trying to change the locale for the current user like this:
JSP:
h:commandLink immediate=true action=#{Home.germanLocal}
h:graphicImage value=/german_flag.gif/
/h:commandLink
PageBean:
public void germanLocal()
{
How can I simulate an event (a click in a button or link) from java code?
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 element
of each Array was showed.
Ex what I want:
1 2 3 4567
8 9 10 11 12 13 14
How is been showed
Hi,
you need to specifiy the locale to a bean in f:view tag and change the
value there also.
Jatinder Singh wrote:
Hi,
I'm trying to change the locale for the current user like this:
JSP:
h:commandLink immediate=true action=#{Home.germanLocal}
h:graphicImage
Hi Patrick
-Original Message-
How can I simulate an event (a click in a button or link) from java
code?
-/Original Message-
What do you want it for?
Maybe then it is easier to answer...
regards
Alexander
So the updateActionListener can set fields in other BackingBean that is not the one that the page is binded
If it's true, THAT's AWESOME!
2005/10/20, Matthias Wessendorf [EMAIL PROTECTED]:
Rafael,perhaps Tomahawk's updateActionListener may help you:h:dataTable value=#{someBeans}
Hi,
Thanks for setting me in the right direction. It works!
-Jatinder
-Original Message-
From: Volker Weber [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 20, 2005 11:31 AM
To: MyFaces Discussion
Subject: Re: Change Locale
Hi,
you need to specifiy the locale to a bean in f:view
How do I find all the facets that I can use for tree2 ?
I am combing thru the myfaces code, but no luck.
Please help.
- Anu
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 ?
Dennis Byrne
There is no predefined facet for tree2. As outlined in my prior e-mail,
*you* are the one who determines which facets you want to support. The
rule is there must be a facet for each type of node that you define.
(Each node has a type attribute, and you set this to whatever String you
want.)
-
Thanks for yr reply. May be my question is not right.
The prob is this.
Let me tell you where I get the facet idea.
If I write in the treeabacker foo-folser1 instead of foo-folder and again
the same in tree2.jsp.
I get the error message
java.lang.IllegalArgumentException: Unable to locate
If you have a TreeNode whose type field is set to foo-folder, then the
Tree2 component expects there to be a corresponding facet whose name is
foo-folder. If you have a TreeNode whose type field is set to
foo-folder1, then the Tree2 component expects there to be a
corresponding facet whose name
Unfortunately I was always trying it with foo-folder, which always fails. I
tried it now with the lower level nodes and then it worked. Thanks
- Anu
At 03:29 PM 10/20/2005 -0500, you wrote:
If you have a TreeNode whose type field is set to foo-folder, then the
Tree2 component expects there to
Although I have not discovered a pattern yet, some of my action methods
are being called twice on invocation. Is this a known issue? I am
strugling with this.
Julian
Julian,
How are you identifying this problem? Are you using any javascript submit()
calls that might cause double submits?
Regards,
David
-Original Message-
From: Julián García [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 20, 2005 6:41 PM
To: MyFaces Discussion
Subject: Action
Where do you suggest I start?
On 10/20/05, Martin Marinschek [EMAIL PROTECTED] wrote:
Short answer: no.
I'd love to have a way to do this, really.
As well as a way to reload properties-files - to make
internationalization easier. If you want to invest some work in this,
I could surely be
My guess would be that you used | (pipe character) instead of [ =
[logon.senha] instead of |logon.senha]
Mike Kienenberger wrote:
h:inputSecret id=senha
value=#{logon.senha}/
private String password;
I don't see anything beside the above inconsistency, but I'm pretty
sure that you just
Sorry I meant #[logon.senha]
Rick Gruber-Riemer wrote:
My guess would be that you used | (pipe character) instead of [
= [logon.senha] instead of |logon.senha]
Mike Kienenberger wrote:
h:inputSecret id=senha
value=#{logon.senha}/
private String password;
I don't see anything beside the
Mike Kienenberger wrote:
I'm wondering if the best solution might not be to simply have a
servlet filter that only allowed one request per session to occur at
any one time.
(If you are tired reading all this stuff, go ahead to )
This filter is a good start. We already used such a stuff
i am new to myfaces .. Some body plz
help me with a solution . how to fix the column headers inside myfaces datatble
which is draggable using a panelgrid
my code goes like this
h:panelGroup id="gridPanel1" style="width:100%;
height:250px; overflow:auto;" t:dataTable
79 matches
Mail list logo