You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Ken in Nashua <kc...@live.com> on 2012/12/07 11:28:53 UTC

The element has been deprecated in Tapestry 5.3 in favour of 'tapestry:parameter' namespace.

Hi Folks,

I am receiving the following error when attempting to model a different bean-editor field.

Can anyone post the proper syntax? I have searched all messages and posts. It isn't clear to me how to specify proper syntax in order to override property fields.

Thanks
Ken


87.04% unrealized services (215/247)

Application 'app' (version 1.0-SNAPSHOT-1354412563897) startup time: 390 ms to build IoC Registry, 2,932 ms overall.

 ______                  __             ____
/_  __/__ ____  ___ ___ / /_______ __  / __/
 / / / _ `/ _ \/ -_|_-</ __/ __/ // / /__ \ 
/_/  \_,_/ .__/\__/___/\__/_/  \_, / /____/
        /_/                   /___/  5.3.2 (development mode)


[INFO] Started Jetty Server
2012-12-07 05:22:19.943:INFO::Started SelectChannelConnector@0.0.0.0:8080

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<t:layout title="title" xmlns:t="http://tapestry.apache.org/schema/tapestry_5_3.xsd" xmlns:p="tapestry:parameter">


org.apache.tapestry5.ioc.internal.OperationExceptionFailure
 parsing template 
classpath:org/tynamo/examples/hibernatesecurity/pages/Edit.tml: The 
<parameter> element has been deprecated in Tapestry 5.3 in favour 
of 'tapestry:parameter' namespace.locationclasspath:org/tynamo/examples/hibernatesecurity/pages/Edit.tml, line 2419
20		<div class="t-beaneditor">21			<t:beaneditor object="mb:bean" t:mixins="tynamo/BeanModelAdvisor"/>22			<br/>23			<div class="t-beaneditor-row">24			    <t:parameter name="password">25			      <t:label for="password"/>26			      <t:passwordfield t:id="password" value="loginCredentials.password"/>27			    </t:parameter>	
 		 	   		  

Re: The element has been deprecated in Tapestry 5.3 in favour of 'tapestry:parameter' namespace.

Posted by Emmanuel DEMEY <de...@gmail.com>.
I did not see it ! you have to put the parameter block inside the
beaneditor component.


2012/12/7 Thiago H de Paula Figueiredo <th...@gmail.com>

> On Fri, 07 Dec 2012 09:00:21 -0200, Ken in Nashua <kc...@live.com>
> wrote:
>
>  classpath:org/tynamo/examples/**hibernatesecurity/pages/Edit.**tml: Block
>> parameters are only allowed directly within component elements.
>>
>
> The error message is very clear. :)
>
> --
> Thiago H. de Paula Figueiredo
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.**apache.org<us...@tapestry.apache.org>
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Emmanuel DEMEY
Ingénieur Etude et Développement
ATOS Worldline
+33 (0)6 47 47 42 02
demey.emmanuel@gmail.com
http://emmanueldemey.fr/

Twitter : @EmmanuelDemey

Re: The element has been deprecated in Tapestry 5.3 in favour of 'tapestry:parameter' namespace.

Posted by Thiago H de Paula Figueiredo <th...@gmail.com>.
On Fri, 07 Dec 2012 09:00:21 -0200, Ken in Nashua <kc...@live.com>  
wrote:

> classpath:org/tynamo/examples/hibernatesecurity/pages/Edit.tml: Block
> parameters are only allowed directly within component elements.

The error message is very clear. :)

-- 
Thiago H. de Paula Figueiredo

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


Re: The element has been deprecated in Tapestry 5.3 in favour of 'tapestry:parameter' namespace.

Posted by Josh Canfield <jo...@gmail.com>.
Hey Ken.

Your question was poorly formatted. You didn't include the code that was
failing except the snippet that was reported in the exception. Extracting
that code is extra work that I have to do to figure out what you're doing
wrong.

If you aren't going to take the time to format good questions then why
would someone take the time to write a good answer? For free?

Here is your code.

20              <div class="t-beaneditor">
*21                    <t:beaneditor object="mb:bean" t:mixins="tynamo/
BeanModelAdvisor"/>*
22                   <br/>
23                 <div class="t-beaneditor-row">
24<p:password>
25   <t:label for="password" />
26   <t:passwordfield t:id="password" value="loginCredentials.password"/>
27</p:password>

Emmanuel said "you have to put the parameter block inside the
beaneditor component."

On line 21 you are *closing* the beaneditor and not including the parameter
block in it.

Here is what it looks like to "put the parameter block inside the
beaneditor component"

<t:beaneditor object="mb:bean" t:mixins="tynamo/BeanModelAdvisor">
<p:password>
   <t:label for="password" />
   <t:passwordfield t:id="password" value="loginCredentials.password"/>
</p:password>
</t:beaneditor>

Good luck!
Josh


On Fri, Dec 7, 2012 at 2:05 PM, Ken in Nashua <kc...@live.com> wrote:

>
> The problem I have with these replies...
>
> Is no body wants to demonstrate with syntax using code
>
> Its guesswork
>
> sure I have used block component before but semantically how ?
>
> I wish things could be more generous.
>

Re: The element has been deprecated in Tapestry 5.3 in favour of 'tapestry:parameter' namespace.

Posted by Josh Canfield <jo...@gmail.com>.
            <t:beaneditor object="mb:bean" t:mixins="tynamo/BeanModelAdvisor
*"/>*

You are closing the t:beaneditor element.

        <div class="t-beaneditor">
            <t:beaneditor object="mb:bean" t:mixins="tynamo/BeanModelAdvisor
*">*
<p:password>
   <t:label for="password" />
   <t:passwordfield t:id="password" value="loginCredentials.password"/>
</p:password>
*            </t:beaneditor>*
            <br/>
            <div class="t-beaneditor-row">


On Fri, Dec 7, 2012 at 5:22 PM, Ken in Nashua <kc...@live.com> wrote:

>
> Well here is the code...
>
> It yeilds same solution from Josh snippet.
>
>     <t:form clientValidation="true" validate="bean">
>         <t:errors/>
>
>         <div class="t-beaneditor">
>             <t:beaneditor object="mb:bean"
> t:mixins="tynamo/BeanModelAdvisor"/>
> <p:password>
>    <t:label for="password" />
>    <t:passwordfield t:id="password" value="loginCredentials.password"/>
> </p:password>
>             <br/>
>             <div class="t-beaneditor-row">
>
>
>
>                 <t:submit t:id="saveAndStay" event="stay" class="button"
> value="${message:org.tynamo.i18n.apply}"/>
>                 <t:submit t:id="saveAndReturn" event="return"
> class="button" value="${message:org.tynamo.i18n.applyAndReturn}"/>
>                 &nbsp; or &nbsp;
>                 <t:eventlink class="button" style="color:red;
> font-weight:bold;" t:id="cancel">
>                     ${message:org.tynamo.i18n.cancel}
>                 </t:eventlink>
>             </div>
>         </div>
>     </t:form>
>
>
> Failure parsing template
> classpath:org/tynamo/examples/hibernatesecurity/pages/Edit.tml: Block
> parameters are only allowed directly within component
> elements.locationclasspath:org/tynamo/examples/hibernatesecurity/pages/Edit.tml,
> line 2217        <t:form clientValidation="true" validate="bean">18
>      <t:errors/>19
> 20              <div class="t-beaneditor">21
>  <t:beaneditor object="mb:bean"
> t:mixins="tynamo/BeanModelAdvisor"/>22<p:password>23   <t:label
> for="password" />24   <t:passwordfield t:id="password"
> value="loginCredentials.password"/>25</p:password>
>  26                      <br/>27                 <div
> class="t-beaneditor-row">
>

RE: The element has been deprecated in Tapestry 5.3 in favour of 'tapestry:parameter' namespace.

Posted by Ken in Nashua <kc...@live.com>.
Well here is the code...

It yeilds same solution from Josh snippet.

    <t:form clientValidation="true" validate="bean">
        <t:errors/>

        <div class="t-beaneditor">
            <t:beaneditor object="mb:bean" t:mixins="tynamo/BeanModelAdvisor"/>
<p:password>
   <t:label for="password" />
   <t:passwordfield t:id="password" value="loginCredentials.password"/>
</p:password>            
            <br/>
            <div class="t-beaneditor-row">
            
        

                <t:submit t:id="saveAndStay" event="stay" class="button" value="${message:org.tynamo.i18n.apply}"/>
                <t:submit t:id="saveAndReturn" event="return" class="button" value="${message:org.tynamo.i18n.applyAndReturn}"/>
                &nbsp; or &nbsp;
                <t:eventlink class="button" style="color:red; font-weight:bold;" t:id="cancel">
                    ${message:org.tynamo.i18n.cancel}
                </t:eventlink>
            </div>
        </div>
    </t:form>


Failure parsing template 
classpath:org/tynamo/examples/hibernatesecurity/pages/Edit.tml: Block 
parameters are only allowed directly within component elements.locationclasspath:org/tynamo/examples/hibernatesecurity/pages/Edit.tml, line 2217	<t:form clientValidation="true" validate="bean">18		<t:errors/>19
20		<div class="t-beaneditor">21			<t:beaneditor object="mb:bean" t:mixins="tynamo/BeanModelAdvisor"/>22<p:password>23   <t:label for="password" />24   <t:passwordfield t:id="password" value="loginCredentials.password"/>25</p:password>			26			<br/>27			<div class="t-beaneditor-row">
 		 	   		  

RE: The element has been deprecated in Tapestry 5.3 in favour of 'tapestry:parameter' namespace.

Posted by Ken in Nashua <kc...@live.com>.
Thanks josh... 

there is a bit of confusion on my part...

block
block parameter
block component
concepts and terms

my fault... 

and if the code wasnt up to snuff I can fix that easy too.

I will give that a shot
 		 	   		  

Re: The element has been deprecated in Tapestry 5.3 in favour of 'tapestry:parameter' namespace.

Posted by Thiago H de Paula Figueiredo <th...@gmail.com>.
On Fri, 07 Dec 2012 20:05:45 -0200, Ken in Nashua <kc...@live.com>  
wrote:

> The problem I have with these replies...
> Is no body wants to demonstrate with syntax using code

Are you sure we're talking about the same user mailing list?

> Its guesswork
> sure I have used block component before but semantically how ?
> I wish things could be more generous.

I just wanted to point it out that the error message was clear and it  
should have been enough for you to figure it out yourself. We want to  
help; we just aren't very motivated to answer questions that wouldn't need  
to be asked if the person tried a little harder before posting. :)

-- 
Thiago H. de Paula Figueiredo

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


RE: The element has been deprecated in Tapestry 5.3 in favour of 'tapestry:parameter' namespace.

Posted by Ken in Nashua <kc...@live.com>.
The problem I have with these replies...

Is no body wants to demonstrate with syntax using code

Its guesswork

sure I have used block component before but semantically how ?

I wish things could be more generous.
 		 	   		  

RE: The element has been deprecated in Tapestry 5.3 in favour of 'tapestry:parameter' namespace.

Posted by Ken in Nashua <kc...@live.com>.
Thanks Manu...

But it leads to another new error.

?


org.apache.tapestry5.ioc.internal.OperationExceptionFailure
 parsing template 
classpath:org/tynamo/examples/hibernatesecurity/pages/Edit.tml: Block 
parameters are only allowed directly within component elements.locationclasspath:org/tynamo/examples/hibernatesecurity/pages/Edit.tml, line 2419
20		<div class="t-beaneditor">21			<t:beaneditor object="mb:bean" t:mixins="tynamo/BeanModelAdvisor"/>22			<br/>23			<div class="t-beaneditor-row">24<p:password>25   <t:label for="password" />26   <t:passwordfield t:id="password" value="loginCredentials.password"/>27</p:password>			28		
29
traceConstructing instance of page class org.tynamo.examples.hibernatesecurity.pages.EditCreating ComponentAssembler for org.tynamo.examples.hibernatesecurity.pages.EditParsing component template classpath:org/tynamo/examples/hibernatesecurity/pages/Edit.tmlorg.apache.tapestry5.ioc.internal.util.TapestryExceptionFailure
 parsing template 
classpath:org/tynamo/examples/hibernatesecurity/pages/Edit.tml: Block 
parameters are only allowed directly within component elements.locationclasspath:org/tynamo/examples/hibernatesecurity/pages/Edit.tml, line 24java.lang.RuntimeExceptionBlock parameters are only allowed directly within component elements. 		 	   		  

Re: The element has been deprecated in Tapestry 5.3 in favour of 'tapestry:parameter' namespace.

Posted by Emmanuel DEMEY <de...@gmail.com>.
Have you tried this syntax ?

<p:password>
   <t:label for="password" /><t:passwordfield ... />
</p:password>

Manu

2012/12/7 Ken in Nashua <kc...@live.com>

> editor field.
>
> Can anyone post the proper syntax? I have searched all messages and posts.
> It is
>



-- 
Emmanuel DEMEY
Ingénieur Etude et Développement
ATOS Worldline
+33 (0)6 47 47 42 02
demey.emmanuel@gmail.com
http://emmanueldemey.fr/

Twitter : @EmmanuelDemey