Thanx for this snippet. In the end, in a validator the trick to obtaining
the ComponentResources turned out as simple as casting the Field object to a
Component and using getComponentResources(). Allas it didn't seem to work
from there on. Even though I manage to plow my way through the Components
The quick and dirty is this:
Given:
The targetId String of the related component passed into this
component as a parameter:
resources is an injected instance of ComponentResources like so
@Inject
private ComponentResources resources;
Code:
Component comp = resourc
Can you give me some small example code on how you were able to gain access
from one tag to the other? I am currently trying to create a matchfield
validator in which one text field must match the value of another and I am
pondering on how to access the second field.
I know the id of the second f
I have created a solution that requires the developer to add a
targetId parameter to the SearchForm component that specifies the ID
of the SearchResults component. This is sort of how Label works with
an input component. It currently requires the literal: prefix on the
String targetId passed to it
How would one create two components that function by one passing the
results of some form processing to another?
My use case is this: I have a reusable SearchForm component. This
component is little more than a form that takes the search parameter
and executes the search using the OnEvent annota