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
(suspended)
accept rate: 0%

edited 12.03.2014 at 09:27

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

Peter Stöckli ♦
(suspended)

(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 ♦
(suspended)
accept rate: 69%

edited 12.03.2014 at 09:44

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:

×79
×51
×2

Asked: 12.03.2014 at 05:04

Seen: 8,950 times

Last updated: 12.03.2014 at 09:44