Or I could just use
@Component(inheritInformalParameters = true)
On Wed, Jun 26, 2013 at 11:33 PM, Thiago H de Paula Figueiredo <
thiag...@gmail.com> wrote:
> On Wed, 26 Jun 2013 17:36:44 -0300, Boris Horvat
> wrote:
>
> So I guess that I have to add informal elements manually. Now the b
On Wed, 26 Jun 2013 17:36:44 -0300, Boris Horvat
wrote:
So I guess that I have to add informal elements manually. Now the below
given method works
@AfterRender
void addInformalElements(MarkupWriter writer) {
for (Node node : writer.getElement().getChildren()) {
applyI
So I guess that I have to add informal elements manually. Now the below
given method works
@AfterRender
void addInformalElements(MarkupWriter writer) {
for (Node node : writer.getElement().getChildren()) {
applyInformalElements(node.getContainer());
}
}
however
Since you're mentioning renderinformals, you should be aware of this gotcha
https://issues.apache.org/jira/browse/TAP5-1918
You are right, the parent of the parent got it :)
It is on the html tag :S
On Wed, Jun 26, 2013 at 12:10 AM, Thiago H de Paula Figueiredo <
thiag...@gmail.com> wrote:
> On Tue, 25 Jun 2013 19:03:26 -0300, Boris Horvat
> wrote:
>
> By that I assume you mean just to define the mixin? Yea I hav
On Tue, 25 Jun 2013 19:03:26 -0300, Boris Horvat
wrote:
By that I assume you mean just to define the mixin? Yea I have tried that
nothing happened :(
Believe me, something happened. Try giving it some CSS class and using
Firebug or something like that to locate the element with that CSS c
>
>
> Have you at least tried to use the mixin without any other changes to your
> component and see what happens?
By that I assume you mean just to define the mixin? Yea I have tried that
nothing happened :(
I guess then I will have to go with some custom logic that will identify
what is the el
On Tue, 25 Jun 2013 18:50:25 -0300, Boris Horvat
wrote:
I need to make sure that I "manually" render an element and then to close
it.
This is up to your code. The easiest way is to return a Block or component
instance in beginRender().
This will allow I guess to the mixin to do its mag
Hm... I am a bit lost here. According to the example
public class Img
{
@Parameter(required=true, allowNull=false,
defaultPrefix=BindingConstants.ASSET)
private Asset src;
@Mixin
private RenderInformals renderInformals;
void beginRender(MarkupWriter writer)
{
writ
On Tue, 25 Jun 2013 18:27:10 -0300, Boris Horvat
wrote:
My problem is that I have around 5-6 different use cases
textfield, textarea, progress, textfield with autocomplete, upload and so
on...
So I would like not to have a bunch of beginRender method that have
conditions :(
You don't need
My problem is that I have around 5-6 different use cases
textfield, textarea, progress, textfield with autocomplete, upload and so
on...
So I would like not to have a bunch of beginRender method that have
conditions :(
Is there any way to avoid this?
On Tue, Jun 25, 2013 at 11:24 PM, Thiago H
On Tue, 25 Jun 2013 17:45:58 -0300, Boris Horvat
wrote:
Is there any easy way to do this?
Have you the seen RenderInformals mixin?
Since I dont use beginRender/beforeRenderBody I am not sure how to do
this.
Have you tried using them?
--
Thiago H. de Paula Figueiredo
-
Is there any easy way to do this?
The website example is not that clear to me I guess. I have a component
that displays different field depending on a property.
So if I want to display textarea or textfield I pass a different parameter
which then triggers a check and a different block is returned
13 matches
Mail list logo