Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

b:message doesn't support composite components #607

Closed
NicolaIsotta opened this issue Jan 4, 2017 · 5 comments
Closed

b:message doesn't support composite components #607

NicolaIsotta opened this issue Jan 4, 2017 · 5 comments

Comments

@NicolaIsotta
Copy link
Contributor

If a have a composite component with an implementation like this:

<cc:implementation>
	<b:inputText id="input" value="#{cc.attrs.value}" .../>
</cc:implementation>

And I add a message for the input element in a page:

<ezcomp:myinput id="field1" .../>
<b:message for="field1:input"/>

I get this exception:

javax.faces.FacesException: Invalid search expression: field1:input The subexpression input doesn't exist, or it can't be resolved.

h:message works instead.

@stephanrauh stephanrauh self-assigned this Jan 4, 2017
@stephanrauh stephanrauh added this to the v1.1.0 milestone Jan 4, 2017
@stephanrauh
Copy link
Collaborator

Looks like a difficult one!

@stephanrauh
Copy link
Collaborator

For some reason unknown, b:message only checked its children and the root component for field1:input. Now I've added a bit more flexibility. b:message now also checks it's parent. In my test case, that's the form. Hope that works for you, too!

I've uploaded the new snapshot of BootsFaces to Maven Central. As usual, see #369 on how to get it.

@stephanrauh
Copy link
Collaborator

I'll close this issue so we can include it into the 1.0.2 version.

@NicolaIsotta
Copy link
Contributor Author

It's working in the snapshot version.

@stephanrauh
Copy link
Collaborator

THX! We're currently preparing the 1.0.2 version, so I'm very glad you reported back in time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants