Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JavaServer Faces » Question to Faces ConfigurationEditor and Converters
Question to Faces ConfigurationEditor and Converters [message #473826] Sat, 10 February 2007 10:42 Go to next message
Martin Zwosta is currently offline Martin ZwostaFriend
Messages: 4
Registered: July 2009
Junior Member
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 #473827 is a reply to message #473826] Mon, 12 February 2007 18:49 Go to previous messageGo to next message
Cameron Bateman is currently offline Cameron BatemanFriend
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 #473829 is a reply to message #473827] Mon, 12 February 2007 19:13 Go to previous messageGo to next message
Martin Zwosta is currently offline Martin ZwostaFriend
Messages: 4
Registered: July 2009
Junior Member
Hy Cameron,

thank you for your fast answer!!

>
> 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.
No problem at all - it's the other way round: I'm thankfull for your
project and the jsf - editor etc.! I like it a lot!
If you are in doubt in these
> situations, try running a test case on a JSF runtime and see if it works
> as expected.
Yes, that's what I did up to now, so I just continue doing that.
>
> CC'ing yourself on the bug above and adding any additional comments will
> help us prioritize a fix.
I just did that - will there be an email, when the bug is resolved?

Thank you very much,

Martin Zwosta
Re: Question to Faces ConfigurationEditor and Converters [message #473956 is a reply to message #473829] Mon, 12 February 2007 19:58 Go to previous message
Cameron Bateman is currently offline Cameron BatemanFriend
Messages: 481
Registered: July 2009
Senior Member
> I just did that - will there be an email, when the bug is resolved?

Yes, in fact you will receive an e-mail from Bugzilla every time somebody
adds something to the bug, changes its state etc.


Thanks,

Cam
Re: Question to Faces ConfigurationEditor and Converters [message #608401 is a reply to message #473826] Mon, 12 February 2007 18:49 Go to previous message
Cameron Bateman is currently offline Cameron BatemanFriend
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 #608402 is a reply to message #473827] Mon, 12 February 2007 19:13 Go to previous message
Martin Zwosta is currently offline Martin ZwostaFriend
Messages: 4
Registered: July 2009
Junior Member
Hy Cameron,

thank you for your fast answer!!

>
> 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.
No problem at all - it's the other way round: I'm thankfull for your
project and the jsf - editor etc.! I like it a lot!
If you are in doubt in these
> situations, try running a test case on a JSF runtime and see if it works
> as expected.
Yes, that's what I did up to now, so I just continue doing that.
>
> CC'ing yourself on the bug above and adding any additional comments will
> help us prioritize a fix.
I just did that - will there be an email, when the bug is resolved?

Thank you very much,

Martin Zwosta
Re: Question to Faces ConfigurationEditor and Converters [message #608403 is a reply to message #473829] Mon, 12 February 2007 19:58 Go to previous message
Cameron Bateman is currently offline Cameron BatemanFriend
Messages: 481
Registered: July 2009
Senior Member
> I just did that - will there be an email, when the bug is resolved?

Yes, in fact you will receive an e-mail from Bugzilla every time somebody
adds something to the bug, changes its state etc.


Thanks,

Cam
Previous Topic:Question to Faces ConfigurationEditor and Converters
Next Topic:Problem with JSF Tutorial RC3
Goto Forum:
  


Current Time: Fri Apr 26 13:08:34 GMT 2024

Powered by FUDForum. Page generated in 0.03574 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top