Common JSF , Hibernate issues

1. Autowire doesnt work inside a converter

    I’ve looked  for a solution and found a workaround , and make converter to a service and use the converter as below , 

<h:selectOneMenu id=”cityMenu” value=”#{bean.cityList[0]}” converter=”#{cityConverter}”>

<f:selectItems value=”#{referenceData.cityList}” var=”city” itemValue=”#{city.id}” itemLabel=”#{city.cityName}” />
</h:selectOneMenu>

 

2. Deleted entity passed to persist

  soluiton is explained here

http://simonpena.com/blog/tag/detached-entity-passed-to-persist/

 

 

Advertisements

About buminda

buminda.com
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s