You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Max Grigoriev <da...@mail.ru> on 2004/03/25 14:00:14 UTC
Component parameters problem
Hello Alls,
I've got a component
есть компонент
<component-specification class="com.clearview.feedback.web.component.reporter.Attach"
allow-body="no" allow-informal-parameters="no">
<description>attach document for reporter component</description>
<parameter name="saveReport" default-value="true" direction="in"
required="no" type="boolean"/>
<parameter name="hiddenAttach" default-value="false" direction="in"
required="no" type="boolean"/>
</component-specification>
There's a method for "hiddenAttach" parameter in this componemt:
public void setHiddenAttach(final boolean hiddenAttach) {
getBean().setHiddenAttach(hiddenAttach);
}
And i describe this component in my page:
<component id="AttachComp" type="AttachComp">
<binding name="saveReport" expression="true"/>
<binding name="hiddenAttach" expression="true"/>
</component>
And there's strange situation - hiddenAttach parameter is setted only
once, when i come to this page again no parameter setted.
Is it bug or i do something wrong ?
--
Best regards,
Max mailto:darkit@mail.ru
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re[4]: Component parameters problem
Posted by Max Grigoriev <da...@mail.ru>.
Hello Howard,
No, I've got this component only on this page.
Thursday, March 25, 2004, 5:54:01 PM, you wrote:
HMLS> Could something else be updating the connected parameter property?
HMLS> --
HMLS> Howard M. Lewis Ship
HMLS> Independent J2EE / Open-Source Java Consultant
HMLS> Creator, Tapestry: Java Web Components
HMLS> http://howardlewisship.com
>> -----Original Message-----
>> From: Max Grigoriev [mailto:darkit@mail.ru]
>> Sent: Thursday, March 25, 2004 9:39 AM
>> To: Tapestry users
>> Subject: Re[2]: Component parameters problem
>>
>>
>> Hello Howard,
>>
>> But when i visit page first time it has hiddenAttach = true, then i
>> logout and login again. And this page has hiddenAttach = false
>> (default value) but its value should be true.
>>
--
Best regards,
Max mailto:darkit@mail.ru
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
RE: Re[2]: Component parameters problem
Posted by "Howard M. Lewis Ship" <hl...@comcast.net>.
Could something else be updating the connected parameter property?
--
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Tapestry: Java Web Components
http://howardlewisship.com
> -----Original Message-----
> From: Max Grigoriev [mailto:darkit@mail.ru]
> Sent: Thursday, March 25, 2004 9:39 AM
> To: Tapestry users
> Subject: Re[2]: Component parameters problem
>
>
> Hello Howard,
>
> But when i visit page first time it has hiddenAttach = true, then i
> logout and login again. And this page has hiddenAttach = false
> (default value) but its value should be true.
>
> Thursday, March 25, 2004, 5:34:10 PM, you wrote:
>
> HMLS> Tapestry sees that the parameter binding is invariant and
> HMLS> only sets it once. This is normal, an
> HMLS> optimization to cut down on the amount of property
> setting that occurs.
>
> HMLS> --
> HMLS> Howard M. Lewis Ship
> HMLS> Independent J2EE / Open-Source Java Consultant
> HMLS> Creator, Tapestry: Java Web Components
> HMLS> http://howardlewisship.com
>
>
> >> -----Original Message-----
> >> From: Max Grigoriev [mailto:darkit@mail.ru]
> >> Sent: Thursday, March 25, 2004 8:00 AM
> >> To: Tapestry users
> >> Subject: Component parameters problem
> >>
> >>
> >> Hello Alls,
> >>
> >> I've got a component
> >> есть компонент
> >> <component-specification
> >> class="com.clearview.feedback.web.component.reporter.Attach"
> >> allow-body="no" allow-informal-parameters="no">
> >> <description>attach document for reporter component</description>
> >>
> >> <parameter name="saveReport" default-value="true" direction="in"
> >> required="no" type="boolean"/>
> >> <parameter name="hiddenAttach" default-value="false"
> direction="in"
> >> required="no" type="boolean"/>
> >> </component-specification>
> >>
> >> There's a method for "hiddenAttach" parameter in this componemt:
> >>
> >> public void setHiddenAttach(final boolean hiddenAttach) {
> >> getBean().setHiddenAttach(hiddenAttach);
> >> }
> >>
> >> And i describe this component in my page:
> >>
> >> <component id="AttachComp" type="AttachComp">
> >> <binding name="saveReport" expression="true"/>
> >> <binding name="hiddenAttach" expression="true"/>
> >> </component>
> >>
> >> And there's strange situation - hiddenAttach parameter is
> setted only
> >> once, when i come to this page again no parameter setted.
> >>
> >> Is it bug or i do something wrong ?
> >> --
> >> Best regards,
> >> Max mailto:darkit@mail.ru
> >>
> >>
> >>
> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail:
> >> tapestry-user-unsubscribe@jakarta.apache.org
> >> For additional commands, e-mail:
> >> tapestry-user-help@jakarta.apache.org
> >>
>
>
> HMLS>
> ---------------------------------------------------------------------
> HMLS> To unsubscribe, e-mail:
> HMLS> tapestry-user-unsubscribe@jakarta.apache.org
> HMLS> For additional commands, e-mail:
> HMLS> tapestry-user-help@jakarta.apache.org
>
>
>
>
> --
> Best regards,
> Max mailto:darkit@mail.ru
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re[2]: Component parameters problem
Posted by Max Grigoriev <da...@mail.ru>.
Hello Howard,
But when i visit page first time it has hiddenAttach = true, then i
logout and login again. And this page has hiddenAttach = false
(default value) but its value should be true.
Thursday, March 25, 2004, 5:34:10 PM, you wrote:
HMLS> Tapestry sees that the parameter binding is invariant and
HMLS> only sets it once. This is normal, an
HMLS> optimization to cut down on the amount of property setting that occurs.
HMLS> --
HMLS> Howard M. Lewis Ship
HMLS> Independent J2EE / Open-Source Java Consultant
HMLS> Creator, Tapestry: Java Web Components
HMLS> http://howardlewisship.com
>> -----Original Message-----
>> From: Max Grigoriev [mailto:darkit@mail.ru]
>> Sent: Thursday, March 25, 2004 8:00 AM
>> To: Tapestry users
>> Subject: Component parameters problem
>>
>>
>> Hello Alls,
>>
>> I've got a component
>> есть компонент
>> <component-specification
>> class="com.clearview.feedback.web.component.reporter.Attach"
>> allow-body="no" allow-informal-parameters="no">
>> <description>attach document for reporter component</description>
>>
>> <parameter name="saveReport" default-value="true" direction="in"
>> required="no" type="boolean"/>
>> <parameter name="hiddenAttach" default-value="false" direction="in"
>> required="no" type="boolean"/>
>> </component-specification>
>>
>> There's a method for "hiddenAttach" parameter in this componemt:
>>
>> public void setHiddenAttach(final boolean hiddenAttach) {
>> getBean().setHiddenAttach(hiddenAttach);
>> }
>>
>> And i describe this component in my page:
>>
>> <component id="AttachComp" type="AttachComp">
>> <binding name="saveReport" expression="true"/>
>> <binding name="hiddenAttach" expression="true"/>
>> </component>
>>
>> And there's strange situation - hiddenAttach parameter is setted only
>> once, when i come to this page again no parameter setted.
>>
>> Is it bug or i do something wrong ?
>> --
>> Best regards,
>> Max mailto:darkit@mail.ru
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> tapestry-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail:
>> tapestry-user-help@jakarta.apache.org
>>
HMLS> ---------------------------------------------------------------------
HMLS> To unsubscribe, e-mail:
HMLS> tapestry-user-unsubscribe@jakarta.apache.org
HMLS> For additional commands, e-mail:
HMLS> tapestry-user-help@jakarta.apache.org
--
Best regards,
Max mailto:darkit@mail.ru
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
RE: Component parameters problem
Posted by "Howard M. Lewis Ship" <hl...@comcast.net>.
Tapestry sees that the parameter binding is invariant and only sets it once. This is normal, an
optimization to cut down on the amount of property setting that occurs.
--
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Tapestry: Java Web Components
http://howardlewisship.com
> -----Original Message-----
> From: Max Grigoriev [mailto:darkit@mail.ru]
> Sent: Thursday, March 25, 2004 8:00 AM
> To: Tapestry users
> Subject: Component parameters problem
>
>
> Hello Alls,
>
> I've got a component
> есть компонент
> <component-specification
> class="com.clearview.feedback.web.component.reporter.Attach"
> allow-body="no" allow-informal-parameters="no">
> <description>attach document for reporter component</description>
>
> <parameter name="saveReport" default-value="true" direction="in"
> required="no" type="boolean"/>
> <parameter name="hiddenAttach" default-value="false" direction="in"
> required="no" type="boolean"/>
> </component-specification>
>
> There's a method for "hiddenAttach" parameter in this componemt:
>
> public void setHiddenAttach(final boolean hiddenAttach) {
> getBean().setHiddenAttach(hiddenAttach);
> }
>
> And i describe this component in my page:
>
> <component id="AttachComp" type="AttachComp">
> <binding name="saveReport" expression="true"/>
> <binding name="hiddenAttach" expression="true"/>
> </component>
>
> And there's strange situation - hiddenAttach parameter is setted only
> once, when i come to this page again no parameter setted.
>
> Is it bug or i do something wrong ?
> --
> Best regards,
> Max mailto:darkit@mail.ru
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org