Re: h:message problem

2006-02-09 Thread Andrew Robinson
Are you using subviews or tiles perhaps? Before I switched to facelets I saw many problems like this where components fell out of local scope and the message tag could not locate a component due to the view/subview structure of a page.
On 2/9/06, Virtudazo, Dennis (Exchange) [EMAIL PROTECTED] wrote:
Adding a message to the context for a clientId is not working. I saw inthe wiki page that the example matches my code. Can somebody give me ahint what may be wrong?Jsp:h:inputText id=refreshminutesbinding=#{
backingBean.myComponent}size=5 value=#{backingBean.refreshMinutes} /h:message for="" showDetail=true/Code:FacesContext context = 
FacesContext.getCurrentInstance();context.addMessage(myComponent.getClientId(context), newFacesMessage(test, test));The test message never displays. But error messages from the validator
do, for example, when I enter a non-numeric value into therefreshMinutes inputText.Btw, if I use h:messages globalOnly=false, then the test messagedisplays.I tried version 1.09-m9
 and 1.1.1.***Bear Stearns is not responsible for any recommendation, solicitation,offer or agreement or any information about any transaction, customer
account or account activity contained in this communication.***


Re: h:message problem

2006-02-09 Thread Hans Sowa
Hm, This code should work it looks my code except one but I think this should not be the problem but maybe:FacesMessage errMsg = new FacesMessage( FacesMessage.SEVERITY_INFO, shortMsg,
 longMsg);I used an other Constructor. Maybe there is a problem with missing Severtiy.best regards Hans
2006/2/9, Andrew Robinson [EMAIL PROTECTED]:
Are you using subviews or tiles perhaps? Before I switched to facelets I saw many problems like this where components fell out of local scope and the message tag could not locate a component due to the view/subview structure of a page.
On 2/9/06, Virtudazo, Dennis (Exchange) 
[EMAIL PROTECTED] wrote:
Adding a message to the context for a clientId is not working. I saw inthe wiki page that the example matches my code. Can somebody give me ahint what may be wrong?Jsp:h:inputText id=refreshminutesbinding=#{
backingBean.myComponent}size=5 value=#{backingBean.refreshMinutes} /h:message for="" showDetail=true/Code:FacesContext context = 
FacesContext.getCurrentInstance();context.addMessage(myComponent.getClientId(context), newFacesMessage(test, test));The test message never displays. But error messages from the validator
do, for example, when I enter a non-numeric value into therefreshMinutes inputText.Btw, if I use h:messages globalOnly=false, then the test messagedisplays.I tried version 1.09-m9

 and 1.1.1.***Bear Stearns is not responsible for any recommendation, solicitation,offer or agreement or any information about any transaction, customer
account or account activity contained in this communication.***

-- mfg Hans Sowamailto:[EMAIL PROTECTED]


RE: h:message problem

2006-02-09 Thread Virtudazo, Dennis \(Exchange\)



no, I had right constructor, my example just missed the 
severity


From: Hans Sowa [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 09, 2006 10:38 AMTo: MyFaces 
DiscussionSubject: Re: h:message problem
Hm, This code should work it looks my code except one but I 
think this should not be the problem but maybe:FacesMessage errMsg = new 
FacesMessage( 
FacesMessage.SEVERITY_INFO, 
shortMsg, 
 
longMsg);I used an other Constructor. Maybe there is a problem with missing 
Severtiy.best regards Hans
2006/2/9, Andrew Robinson [EMAIL PROTECTED]:
Are 
  you using subviews or tiles perhaps? Before I switched to facelets I saw many 
  problems like this where components fell out of "local scope" and the message 
  tag could not locate a component due to the view/subview structure of a page. 
  
  On 2/9/06, Virtudazo, 
  Dennis (Exchange)  [EMAIL PROTECTED] 
  wrote:
  Adding 
a message to the context for a clientId is not working. I saw inthe wiki 
page that the example matches my code. Can somebody give me ahint what 
may be wrong?Jsp:h:inputText 
id="refreshminutes"binding="#{ 
backingBean.myComponent}"size="5" value="#{backingBean.refreshMinutes}" 
/h:message for="" 
showDetail="true"/Code:FacesContext context = 
FacesContext.getCurrentInstance();context.addMessage(myComponent.getClientId(context), 
newFacesMessage("test", "test"));The test message never 
displays. But error messages from the validator do, for example, when I 
enter a non-numeric value into therefreshMinutes inputText.Btw, 
if I use h:messages globalOnly="false", then the test 
messagedisplays.I tried version 1.09-m9 and 
1.1.1.***Bear 
Stearns is not responsible for any recommendation, solicitation,offer or 
agreement or any information about any transaction, customer account or 
account activity contained in this 
communication.***-- mfg Hans Sowamailto:[EMAIL PROTECTED] 


***
Bear Stearns is not responsible for any recommendation, solicitation, 
offer or agreement or any information about any transaction, customer 
account or account activity contained in this communication.
***



RE: h:message problem

2006-02-09 Thread Virtudazo, Dennis \(Exchange\)



not using subviews or tiles.

it's not a problem of not being able to locate the 
component, because the built-in validator's error message is getting displayed. 
but my explicitly added message is not.


From: Andrew Robinson 
[mailto:[EMAIL PROTECTED] Sent: Thursday, February 09, 
2006 10:29 AMTo: MyFaces DiscussionSubject: Re: 
h:message problem
Are you using subviews or tiles perhaps? Before I switched to 
facelets I saw many problems like this where components fell out of "local 
scope" and the message tag could not locate a component due to the view/subview 
structure of a page. 
On 2/9/06, Virtudazo, 
Dennis (Exchange) [EMAIL PROTECTED] wrote:
Adding 
  a message to the context for a clientId is not working. I saw inthe wiki 
  page that the example matches my code. Can somebody give me ahint what may 
  be wrong?Jsp:h:inputText 
  id="refreshminutes"binding="#{ 
  backingBean.myComponent}"size="5" value="#{backingBean.refreshMinutes}" 
  /h:message for="" 
  showDetail="true"/Code:FacesContext context = 
  FacesContext.getCurrentInstance();context.addMessage(myComponent.getClientId(context), 
  newFacesMessage("test", "test"));The test message never 
  displays. But error messages from the validator do, for example, when I 
  enter a non-numeric value into therefreshMinutes inputText.Btw, if 
  I use h:messages globalOnly="false", then the test 
  messagedisplays.I tried version 1.09-m9 and 
  1.1.1.***Bear 
  Stearns is not responsible for any recommendation, solicitation,offer or 
  agreement or any information about any transaction, customer account or 
  account activity contained in this 
  communication.***


***
Bear Stearns is not responsible for any recommendation, solicitation, 
offer or agreement or any information about any transaction, customer 
account or account activity contained in this communication.
***