Hi,
I doubt the way you use the validator is correct. You can use a validator
attribute inside the h:inputText tag or use f:validator as a nested tag.
i.e.,
h:inputText type=text id=login value=#{UserBean.loginname} size=15
validator=#{UserBean.validateLogin} required=true /
or,
This may not be related, but are you using client
to save the state as the following:
context-param
param-namejavax.faces.STATE_SAVING_METHOD/param-name
param-valueclient/param-value
/context-param
I had to use to use"client" and then ran into
a few NotSerializableExceptions in my app,
Never mind, I didn't go through the followup emails
when sendingmy emailout.
- Original Message -
From:
Saul Qunming
Yuan
To: MyFaces Discussion
Sent: Thursday, September 29, 2005 8:07
PM
Subject: Re:
NotSerializableException
This may not be related
know what to suggest.
-Matt
On 9/26/05, Saul Qunming Yuan [EMAIL PROTECTED] wrote:
Hi all,
I'm trying to use Javascript to submit a form, the page does refresh,
however, it doesn't appear to be a post action, the form inputs don't
update
the value in the backing bean, none of the setter
instead of by typing in
it?
If you're not sure, look at the rendered HTML source for the page, and
check
for hidden fields and Javascript code that you didn't write (i.e., that
must've been rendered by MyFaces).
-Matt
On 9/27/05, Saul Qunming Yuan [EMAIL PROTECTED] wrote:
Thanks Matt, that's
not be called when the value changes
programmatically.-Matt
On 9/27/05, Saul
Qunming Yuan [EMAIL PROTECTED] wrote:
Yes,
I do have two commandButton there in the parent window. I justpopulate
one id value to the parent window and I see it showing up in theinput
box before
Hi all,
I'm trying to use _javascript_ to submit a form, the
page does refresh, however, it doesn't appear to be a post action, the form
inputs don't update the value in the backing bean, none of the setter methods
get called. It's like a get action. Any ideas what the problem could
be?
t commandLink worked as well before I started the upgrading
thing.
- Original Message -----
From:
Saul Qunming
Yuan
To: MyFaces Discussion
Sent: Saturday, September 24, 2005 10:09
AM
Subject: commandLink not working inside
t:dataTable
Hi,
I ran in
I think that's addressed in the release note, for 1.1.0, it's:
http://myfaces.apache.org/RELEASE-NOTES-1.1.0.txt
- Original Message -
From: Tali Garsiel [EMAIL PROTECTED]
To: 'MyFaces Discussion' users@myfaces.apache.org
Sent: Sunday, September 25, 2005 8:45 AM
Subject: RE: Question
your CampusSearchBean from session to request
scope in the transition from 1.0.9 to 1.1.0? This gave me a lot of
headache...Saul Qunming Yuan wrote:
To answer my own question, after adding the following line inside
h:form:
t:saveState id="CampusSearc
, if my understanding is wrong,
please?Saul Qunming Yuan wrote:
I have been using the request scope all the time. I don't want to use
session scope.
-
Original Message -
From:
Navid Vahdat
To:
MyFaces Discussion
, 2005 10:49
AM
Subject: Re: commandLink not working
inside t:dataTable
Saul Qunming Yuan wrote:
But before I tried upgrading to 1.1.0, commandLink worked for
monthsWITHOUT the following:
* put the bean in session scope, * carry around the bean, using
t:saveState
issue in MyFaces: "This error condition
is not reported". If MyFaces reported (at least
in log) error or warning like "row 3 not exists in table model", you would be able to track the problem
yourself.
I suggest Saul Qunming Yuan to consider t:saveState, but to save
to the popup library:
http://www.jenia.org/
that should resolve your popup problems in a better way than with jsp.
Werner
Saul Qunming Yuan wrote:
Thanks Nebojsa Navid for your reponses, that help a lot. It makes a
lot sense now. What's puzzling me is, this is a such a common use case,
why
Hi,
I ran into a strange problem with the commandLink
inside t:dataTable. It doesn't go to the method in the backing bean when
the link is clicked. This had been working well a week ago when my app was on
1.0.9 version. But I run into all kinds of problems including
thisoneever since I
Hi,
I upgraded my app from 1.0.9 to 1.1.0, and my app
no longer works. I got a blank screen. I got the following error:
java.lang.IllegalStateException: Cannot create a
session after the response has been committedat
org.apache.catalina.connector.Request.doGetSession(Request.java:2195)at
Hi,
I ran into a possible bug with the 1.0.9 build of
Myface, the valueChangeListener not gets firedfrom SelectOneMenu.I
wonder if this is a bug. I am now trying to use the nightly build, but what jar
filesshould Iuse? I used MyFace-all.jar and got the error saying my
backing bean is not
Hi,
I upgraded my application from 1.0.9 to the very
latest 1.1.0.I'm getting the following error which I didn't have before.
Any idea what the problem could be?
thanks,
Saul
--
exception javax.servlet.ServletException: Base is null: LoginBean
: Why afterPhase(PhaseEvent event) gets called twice
Try to return a PhaseID constant value into getPhaseId() of your Listener.
Do that for each Phase, and check if you have twice call into afterPhase.
A simple logger into beforePhase and afterPhase can do the job.
2005/9/10, Saul Qunming Yuan
is called twice!
regards,
Martin
On 9/9/05, Saul Qunming Yuan [EMAIL PROTECTED] wrote:
Thanks for your response. Yes, I have javax.faces.CONFIG_FILES and
faces-config.xml defined in web.xml, I removed that part from web.xml,
but
still get the same problem. Any ideas?
thanks.
- Original Message
Hi,
I implemented a phaseListener to catch phase event.
However, every time a jsp page rendered from a backing bean, the
afterPhase(PhaseEvent event) method gets calledtwice, and I get the same
viewId by calling facesContext.getViewRoot().getViewId(). Any ideas what the
problem is?
This sounds like it may work for me. I never used Shale, so how do I map
the backingbean from fooBar to fooBar.jsp as you mentioned below? in
face-config.xml?
thanks.
On 8/24/05, Saul Qunming Yuan [EMAIL PROTECTED] wrote:
Thanks for your response. I guess I didn't make me clear here. My
Hi,
I'm wondering what's the correct way to call a
method in the backing bean from a JSF page.What I tried is to
useh:outputText value="#{theBackingBean.theMethod}" /, the backing
bean method returns an empty string, so nothing gets printed out in the page.
Which works, but I am not sure
page
Try h:commandLink or h:commandButton.
If your method returns a string that doesn't match any navigation-rule
in your faces-confix.xml then the same page you came from will be
rendered again.
On 8/24/05, Saul Qunming Yuan [EMAIL PROTECTED] wrote:
Hi,
I'm wondering what's the correct way
.
Putting your target outputText in the first line of your jsp file
doesn't mean it will get called before other getter methods further
down in the jsp file get called.
On 8/24/05, Saul Qunming Yuan [EMAIL PROTECTED] wrote:
Thanks for your reply, that makes sense. But won't h:commandLink render
bean you have
public String getFoo()
{ ... }
public void setFoo(String fooValue)
{ ... }
sean
On 8/24/05, Saul Qunming Yuan [EMAIL PROTECTED] wrote:
Hi,
I'm wondering what's the correct way to call a method in the backing bean
from a JSF page. What I tried is to use h:outputText
value
26 matches
Mail list logo