This is a general JSF problem. It has to do with the way the component tree is created. I believe JSF 1.2 is supposed to fix this. The workaround is to wrap the components in a <h:panelGroup>. I noticed that this kind of problem in MyFaces causes an exception, whereas with the JSF RI, it just gives you a warning...

Jon

----- Original Message ----- From: "Rob Decker" <[EMAIL PROTECTED]>
To: "MyFaces Discussion" <[email protected]>
Sent: Friday, April 15, 2005 2:58 PM
Subject: RE: message(s)



More message stuff:

If I put

<h:message for="blah">

<h:inputType id="blah"/>

I get fatal exception:

Could not render Message. Unable to find component 'cstart' (calling findComponent on
component 'header:_id39:_id41')


but if I put

<h:inputType id="blah"/>

<h:message for="blah">

all is well.

This restricts the page layout. I consider this a bug. Does anyone else?

--
Rob

@objectsource.org


---------- Original Message ----------- From: "Rob Decker" <[EMAIL PROTECTED]> To: "MyFaces Discussion" <[email protected]> Sent: Fri, 15 Apr 2005 15:40:28 -0400 Subject: RE: message(s)

Well then how do I show the summary? Is this a "feature" of myfaces or in the
spec? It's not in the doc for message. Are you saying that the identifier is
the summary?


The docs say showSummary=false is the default anyway. Do I have to explicitly
specify the default value?


I thought myfaces versions of components were prefixed with x: and that the h:
versions are in line with the specification?


--
Rob

@objectsource.org

---------- Original Message -----------
From: "Srikanth Madarapu" <[EMAIL PROTECTED]>
To: "MyFaces Discussion" <[email protected]>
Sent: Fri, 15 Apr 2005 15:24:04 -0400
Subject: RE: message(s)

> The showSummary=false will not show the identifier.
>
> -----Original Message-----
> From: Rob Decker [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 15, 2005 3:18 PM
> To: my-faces-user
> Subject: h:message(s)
>
> The docs for h:messages says
>
> "Flag indicating that only global messages (that is, messages not > associated
> with any client identifier) are to be displayed. Default value is > "false"."
>
> But I only get messages for which there is no client identifier even > when I
> specificy it as false (and client id messages do exist because > h:message for=
> shows them).
>
> I also tried to override the default conversion message with:
>
> javax.faces.component.UIInput.CONVERSION=Invalid Format
>
> in my own Messages.properties file (which seems to be ok with > overriding other
> messages).
>
> The other thing is that a message with a client identifier prepends the
> identifier to the message, e.g. "_id0:_id4 : There was an error". Is it
> supposed to that or is that something 'extra' the myfaces > implementation
> offers. Is there a way to turn that off?
>
> --
> Rob
>
> @objectsource.org
------- End of Original Message -------
------- End of Original Message -------




Reply via email to