I can't seem to reproduce your problem. I'm using 5.2.5.

Here is my test components/classes. Can you produce something like
this that fails?


public class ParameterTest
{
    @Parameter
    private boolean value;

    public boolean isValue()
    {
        return value;
    }
}

<!-- ParameterTest.tml -->

<div xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";>

    Is true? ${value}<br/>

</div>

public class OuterParameterTest
{

    @Parameter
    private boolean value;

    @Component(parameters = "value=value")
    private ParameterTest parameterTest;

    public boolean isValue()
    {
        return value;
    }
}

<!-- outer parameter test -->
<div xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";>

    <t:parametertest t:id="parameterTest"/>

</div>

public class Index
{
    @Component(parameters = "value=value")
    private OuterParameterTest outerParameterTest;

    public Date getCurrentTime()
    {
        return new Date();
    }

    public boolean isValue()
    {
        return getCurrentTime().getSeconds() % 2 == 0;
    }

}

<!-- snip from Index.tml -->

    <t:outerparametertest t:id="outerparametertest"/>


On Thu, Jul 14, 2011 at 1:04 PM, gs_tapestry <sim...@gallerysystems.com> wrote:
> Never meant to complain and definitely no intention to insult. If it's
> perceived that way, my apologies.
>
>
> In component search.dynamicAdvancedSearchForm (mentioned as
> ABCAdvancedSearchForm previously) it's as
>  @Parameter
>    private boolean itemsFound;
>
> In the containing component class AdvancedSearchComponent, also as
>    @Parameter
>    private boolean itemsFound;
>
> In AdvancedSearch (container of AdvancedSearchComponent), it's
>    @Component(id="advancedSearchComponent", parameters={"state=state",
> "itemsFound=itemsFound"})
>    @SuppressWarnings("unused")
>    private AdvancedSearchComponent advancedSearchComponent;
>
>    public boolean isItemsFound() {
>        return something boolean result;
>    }
> The AdvancedSearch.tml is (changed to resolve the original Block parameter
> issue):
> <t:layout xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"; >
>        <t:parameter name="templateBody">
>        <imgg src="  ....."      t:id="advancedSearchComponent"/>
>        </t:parameter>
> </t:layout>
>
>
> Many Thanks,
> Simon
>
>
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/Another-case-of-Block-parameters-are-only-allowed-directly-within-component-elements-tp4585262p4587972.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to