You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Kenneth William (JIRA)" <de...@tapestry.apache.org> on 2007/10/12 17:59:50 UTC

[jira] Commented: (TAPESTRY-1820) RenderBlock fails to operate with persistent properties off of PropertySelection

    [ https://issues.apache.org/jira/browse/TAPESTRY-1820?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12534320 ] 

Kenneth William commented on TAPESTRY-1820:
-------------------------------------------

Looking at the code...

block="ognl:components.autoPagingContent"

this is defined twice below...

If the block is being used as a hash key internally that might explain why the last definition is clobbering the first? Just guessing.

I am poised ready to debug this. Can someone point me to the proper modules?

This problem seems to be a combination of RenderBlock and Persist property lapses...

<form jwcid="galleryForm@Form" listener="listener:onFormSubmit">
	<div jwcid="headerSelect@RenderBlock" 
                   block="ognl:components.autoPagingContent" />
	<div jwcid="content@RenderBlock" 
                   block="ognl:components.collectionContent" />
	<div jwcid="footerSelect@RenderBlock" 
                   block="ognl:components.autoPagingContent" />
</form>

Hoping for a workaround.

> RenderBlock fails to operate with persistent properties off of PropertySelection
> --------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-1820
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1820
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 4.1.3
>         Environment: Trails-1.2
> 		<log4j.version>1.2.14</log4j.version>
> 		<hsqldb.version>1.8.0.7</hsqldb.version>
> 		<tapestry.version>4.1.3</tapestry.version>
> 		<ognl.version>2.7.1</ognl.version>
> 		<spring.version>2.0.6</spring.version>
>            Reporter: Kenneth William
>             Fix For: 4.1.4
>
>         Attachments: Gallery.html, Gallery.java, Gallery.jwc, screensnapshot.doc
>
>
> While developing a Gallery widget in trails... I have found that properties with PropertySelection are operating flakey. 
> I have 3 renderblocks
> <form jwcid="galleryForm@Form" listener="listener:onFormSubmit">
>     <div jwcid="headerSelect@RenderBlock" block="ognl:components.autoPagingContent" />
>     <div jwcid="content@RenderBlock" block="ognl:components.collectionContent" />
>     <div jwcid="footerSelect@RenderBlock" block="ognl:components.autoPagingContent" />
> </form>
> The RenderBlock issue is confused....
> Additionally, prefixed "do" listeners fail to invoke.
> Additionally @persist fails to work when defined in the JAVA instead of JWC.
> The main issue for renderBlock is The select components in the footerSelect are clobbering the values in headerSelect internally. yet, All the id's are unique. Is this because the actual array is forced to be declared static?
> Here is my model (sources attached)
> Gallery.html
> <span jwcid="autoPagingContent@Block">
>     <table width="100%" border=1>
>     <tr>
>     <td width="25%" align="left" NOWRAP>
>         <span jwcid="@Insert" value="Table Size"/>
>             <select jwcid="tableSizeSelect" listener="listener:doTableSizeSelect" 
>                 parameters="ognl:tableSize" onchange="tapestry.form.refresh(this.form)"/>
>                 <span jwcid="@Insert" value="Paging Span"/>
>                     <select jwcid="pagingSpanSelect" listener="listener:doPagingSpanSelect" 
>                         parameters="ognl:pagingSpan" onchange="tapestry.form.refresh(this.form)"/>
>     </td>
> ... snip
> </span>
> <form jwcid="galleryForm@Form" listener="listener:onFormSubmit">
>     <div jwcid="headerSelect@RenderBlock" block="ognl:components.autoPagingContent" />
>     <div jwcid="content@RenderBlock" block="ognl:components.collectionContent" />
>     <div jwcid="footerSelect@RenderBlock" block="ognl:components.autoPagingContent" />
> </form>
> Gallery.jwc
> <component-specification class="org.trails.demo.components.Gallery"
>                 allow-body="yes"
>                 allow-informal-parameters="yes">
>     <parameter name="autoPagingContentParm"/>
>     <parameter name="collectionContentParm"/>
>     <property name="tableSize" persist="session"/>
>     <property name="pagingSpan" persist="session"/>
>     <property name="theTableSizeValue" persist="session"/>
>     <property name="thePagingSpanValue" persist="session"/>
>     <component id="tableSizeSelect" type="PropertySelection">
>         <binding name="value" value="theTableSizeValue"/>
>         <binding name="model" value="tableSizeModel"/>
>     </component>
>     <component id="pagingSpanSelect" type="PropertySelection">
>         <binding name="value" value="thePagingSpanValue"/>
>         <binding name="model" value="pagingSpanModel"/>
>     </component>
> </component-specification>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org