|
Re: Question to Faces ConfigurationEditor and Converters [message #473827 is a reply to message #473826] |
Mon, 12 February 2007 18:49 |
Cameron Bateman Messages: 481 Registered: July 2009 |
Senior Member |
|
|
Hi Martin,
This is most likely our bug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=149753
When a converter is nested like that, validation doesn't properly detect
it. Sorry for any inconvenience. If you are in doubt in these
situations, try running a test case on a JSF runtime and see if it works
as expected.
CC'ing yourself on the bug above and adding any additional comments will
help us prioritize a fix.
Thanks,
Cameron
Martin Zwosta wrote:
> Hello to everybody,
> I "migrated" an existing JSF - project from an older wtp - Version to
> the new one and "activated" the use of JSF-Tools by defining a new
> project and transfering all project - files to the new project.
> Now I can use the Faces Configuration Editor and it really looks very
> promising - great work and thank you for this tool!!!
> But I also have a Problem now:
> The jsp - Editor now shows me an error in my jsf - files:
> In all passages where I use the standard DateTimeConverter it says:
> "EL expression does not evaluate to expected types for this attribute" -
> it seems, that it doesn't recognize the standard-converter.
> Here is an example-code-snippet that produces the error:
> <h:inputText styleClass="fliesstext"
> value="#{messMittel.rekalibrierung}"
> <f:convertDateTime pattern="dd.MM.yyyy"/>
> </h:inputText>
> So I changed the code to:
> <h:inputText styleClass="fliesstext"
> value="#{messMittel.rekalibrierung}" converter="javax.faces.DateTime">
> </h:inputText>
> but I still have the error.
> Then I tried to configure the Converter in the Visual Configuration
> Editor and to set it as default converter for the managed-Bean
> "messMittel", which is of type "PruefMittel":
> (snippet from the resulting faces-config.xml):
> <converter>
> <display-name>
> Datum</display-name>
> <converter-for-class>
> fachklassen.PruefMittel</converter-for-class>
> <converter-class>
> javax.faces.convert.DateTimeConverter</converter-class>
> </converter>
> But I still get the mistake.
> I'm sure, I'm missing something, but I don't know what ...
> Thanks for any help in advance,
> Martin Zwosta
|
|
|
|
|
Re: Question to Faces ConfigurationEditor and Converters [message #608401 is a reply to message #473826] |
Mon, 12 February 2007 18:49 |
Cameron Bateman Messages: 481 Registered: July 2009 |
Senior Member |
|
|
Hi Martin,
This is most likely our bug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=149753
When a converter is nested like that, validation doesn't properly detect
it. Sorry for any inconvenience. If you are in doubt in these
situations, try running a test case on a JSF runtime and see if it works
as expected.
CC'ing yourself on the bug above and adding any additional comments will
help us prioritize a fix.
Thanks,
Cameron
Martin Zwosta wrote:
> Hello to everybody,
> I "migrated" an existing JSF - project from an older wtp - Version to
> the new one and "activated" the use of JSF-Tools by defining a new
> project and transfering all project - files to the new project.
> Now I can use the Faces Configuration Editor and it really looks very
> promising - great work and thank you for this tool!!!
> But I also have a Problem now:
> The jsp - Editor now shows me an error in my jsf - files:
> In all passages where I use the standard DateTimeConverter it says:
> "EL expression does not evaluate to expected types for this attribute" -
> it seems, that it doesn't recognize the standard-converter.
> Here is an example-code-snippet that produces the error:
> <h:inputText styleClass="fliesstext"
> value="#{messMittel.rekalibrierung}"
> <f:convertDateTime pattern="dd.MM.yyyy"/>
> </h:inputText>
> So I changed the code to:
> <h:inputText styleClass="fliesstext"
> value="#{messMittel.rekalibrierung}" converter="javax.faces.DateTime">
> </h:inputText>
> but I still have the error.
> Then I tried to configure the Converter in the Visual Configuration
> Editor and to set it as default converter for the managed-Bean
> "messMittel", which is of type "PruefMittel":
> (snippet from the resulting faces-config.xml):
> <converter>
> <display-name>
> Datum</display-name>
> <converter-for-class>
> fachklassen.PruefMittel</converter-for-class>
> <converter-class>
> javax.faces.convert.DateTimeConverter</converter-class>
> </converter>
> But I still get the mistake.
> I'm sure, I'm missing something, but I don't know what ...
> Thanks for any help in advance,
> Martin Zwosta
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03574 seconds