Quantcast
Channel: Liquibase Forums
Viewing all articles
Browse latest Browse all 2993

Re : Fluent interface pattern (setter returning 'this') conflicts with JSF

$
0
0
Unfortunately, yes.


What I did was an "abstraction of getters/setters", for example with AddColumn that I needed to use "defaultValue" with Expression Language:

I had to create a AddColumnExt class with has:
  • an attribute called instance, that is the original AddColumn object;
  • getter that returns instance.getDefaultValue();
  • void setter(String value) that calls instance.setDefaultValue passing value as parameter.

Using that approach, I can use expression language normally, like:

<h:inputText value="#{myBean.addColumnField.defaultValue}" /> 

And when it's possible to bind, I do:

<h:inputText value="#{myBean.addColumnField.instance.someField}" /> 

Viewing all articles
Browse latest Browse all 2993

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>