for example I have a code below

<p:autoComplete var="objTest" converter="objectConvert" dropdown="true" size="70" itemLabel="#{objTest.name}" global="false" itemValue="#{objTest}" completeMethod="#{logic.autoCompleteSelectObject}" forceSelection="true"> </p:autoComplete>

primeface get error :Could not find any registered converter-class by converterId How to register a converter-class in xpert ivy

I tried with the sample in the primefacess showcase sample but it's not possible in xpert ivy class

asked 12.03.2014 at 05:04

toantp's gravatar image

toantp
1555
accept rate: 0%

edited 12.03.2014 at 09:27

Peter%20St%C3%B6ckli's gravatar image

Peter Stöckli ♦
3712410

(12.03.2014 at 05:08) toantp toantp's gravatar image

You normally use a FacesConverter in Xpert.ivy like this:

  1. Create your converter class in the src folder (it should implement the javax.faces.convert.Converter Interface)
  2. Annotate the class with @FacesConverter("MyConverter")
  3. then you can use it in your XHTML:

Either like this:

<p:inputText converter="MyConverter"/>

Or like this:

<h:inputText>
  <f:converter converterId="MyConverter"></f:converter>
</h:inputText>
link

answered 12.03.2014 at 09:43

Peter%20St%C3%B6ckli's gravatar image

Peter Stöckli ♦
3712410
accept rate: 69%

edited 12.03.2014 at 09:44

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×71
×45
×2

Asked: 12.03.2014 at 05:04

Seen: 3,989 times

Last updated: 12.03.2014 at 09:44