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

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

$
0
0
Hello!

I am developing a GUI with JSF to generate DDL for multiple SGBDs.

The problem is that using setter methods returning types, I have some conflicts with EL.

Explaining by example:

When using a simple JSF tag for text input:

<h:inputText value="#{myBackingBean.columnConfig.value}" />

I get below grave warning from EL/JSF validations that doesn't let me submit that form:

Property 'value' not writable on type java.lang.String

Looking ELResolver docs, we have:

PropertyNotWritableException - if the given (base, property) pair is handled by this ELResolver but the specified variable or property is not writable.

Actually I didn't find that ColumnConfig.value isn't writable. Am I confunding something or I got the right path investigating this?

NOTE: I already found a workaround, but it wasn't a clean approach :-|

Viewing all articles
Browse latest Browse all 2993

Trending Articles



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