You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Raffaele Cigni <rc...@byte-code.com> on 2004/12/09 11:23:10 UTC

Bind anonimous FieldLabel with anonimous TextFild

can I bind a @FieldLabel with a @TextFild?

<span jwcid="@FieldLabel" field="???".../>
<span jwcid="@TextFild" .../>

I create this components in a foreach!
-- 
Raffaele Cigni <rc...@byte-code.com>

Re: Bind anonymous FieldLabel with anonymous TextFild

Posted by Raffaele Cigni <rc...@byte-code.com>.
Il gio, 2004-12-09 alle 11:39, chrisd ha scritto:
> I believe you should do this by giving the field a name thus:
> 
> <span jwcid="MyField@TextField" .../>
> 
> Chris Dawes.
> 
Tnx.
My problem is more complex...
I create a form in this way (from a collection):

<form jwcid="@Form" delegate="ognl:delegate">
	<table>
		<span jwcid="@Foreach" source="ognl:inputList" value="ognl:current">
             <span jwcid="@contrib:Choose">
             	<span jwcid="@contrib:When"
condition="ognl:current.value.class.equals(new
java.lang.String().class)">
                	<tr>
                    	<th>
                    		<input jwcid="@FieldLabel"
field="ognl:components.text" displayName="ognl:current.label"/>
                            <!--span jwcid="@Insert"
value="ognl:current.label"/-->
	                    </th>    
                    	<td>
	                        <input jwcid="text@TextField"
value="ognl:current.value"/>
                            <span jwcid="@Conditional"
condition="ognl:delegate.inError"> 
			                    <img jwcid="@Image"
image="ognl:assets.error_field" src="images/field-error.png"/> 
            				</span>
	               		</td>
		            </tr>
             	</span>
                <span jwcid="@contrib:When" ...

When I set a error in "text" component only the last is marked.

> 
> On Thu, 2004-12-09 at 11:23 +0100, Raffaele Cigni wrote:
> > can I bind a @FieldLabel with a @TextFild?
> > 
> > <span jwcid="@FieldLabel" field="???".../>
> > <span jwcid="@TextFild" .../>
> > 
> > I create this components in a foreach!
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
-- 
Raffaele Cigni <rc...@byte-code.com>

Re: Bind anonimous FieldLabel with anonimous TextFild

Posted by chrisd <ch...@mxtelecom.com>.
I believe you should do this by giving the field a name thus:

<span jwcid="MyField@TextField" .../>

Chris Dawes.


On Thu, 2004-12-09 at 11:23 +0100, Raffaele Cigni wrote:
> can I bind a @FieldLabel with a @TextFild?
> 
> <span jwcid="@FieldLabel" field="???".../>
> <span jwcid="@TextFild" .../>
> 
> I create this components in a foreach!


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