> myBean.queryString property is populated by an inputText in the same page.
Try populating it in your constructor as a test -- the problem could go away.
JSF processes model updates after conversions'/validations, so your
converter might be called before myBean.queryString has been set.
I'm interested in seeing the code.
On 11/3/05, Ennio Tosi <[EMAIL PROTECTED]> wrote:
> Hi, I developed a custom converter to highlight certain terms in a string
> that is displayed with an <h:outputText> tag.
>
> Here's a sample code to illustrate how it works:
>
> <h:outputText value="#{myBean.description}">
> <q:stringMatcher match="#{myBean.queryString}" />
> </h:outputText>
>
>
> myBean.queryString property is populated by an inputText in the same page.
>
> So I would like to highlight matching words depending on what the user is
> searching...
>
> The first time I access the page everything works well, but as soon as I
> submit the page, nothing gets highlighted.
> I'm sure myBean.queryString is not null, because in the same page I'm
> displaying it...
>
> If it could be interesting for someone I could post the converter source
> code.
>
> Thanks,
> Ennio
>
>