You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by pepone pepone <pe...@gmail.com> on 2005/05/15 18:11:42 UTC

Insert form in other page

Hello i trying to isert a form that i define in a loginForm.page in my Home.page
is this posible?

<div class="LoginForm">
    	<div jwcid="@loginForm"/>
</div>

my code always return this exception

Component 'loginForm' not found in application namespace.
location: 	context:/WEB-INF/Home.html, line 5

# here is my loginForm.page

<span jwcid="$content$">
    <form jwcid="@Form" name="loginForm" listener="ognl:listeners.login">
        
        <div class="line">
        	<div class="Label">Login: </div>
        	<input type="text" jwcid="@TextField" value="ognl:userName"/>
        </div>
            
        <div class="line">
        	<div class="Label">Password: </div>
        	<input type="password" jwcid="@TextField" value="ognl:password"/>
        </div>
        
        <div class="line">
        	<input type="submit" value="Login"/>
    	</div>
            
        <div jwcid="@Conditional" condition="ognl:message">
        	<div jwcid="@Insert" value="ognl:message"/>
        </div>
    </form>
</span>


thanks in advantage

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


Re: Insert form in other page

Posted by Konstantin Iignatyev <kg...@yahoo.com>.
Make login component that will be defined in loginForm.jwc, declare it 
in your.application like this:
<component-type type="LoginFormComp"        
specification-path="core/LoginForm.jwc"/>
 and reuse it in any number of pages, something like:

<div class="LoginForm">
    	<div jwcid="@LoginFormComp"/>
</div>


 
pepone pepone wrote:

>Hello i trying to isert a form that i define in a loginForm.page in my Home.page
>is this posible?
>
><div class="LoginForm">
>    	<div jwcid="@loginForm"/>
></div>
>
>my code always return this exception
>
>Component 'loginForm' not found in application namespace.
>location: 	context:/WEB-INF/Home.html, line 5
>
># here is my loginForm.page
>
><span jwcid="$content$">
>    <form jwcid="@Form" name="loginForm" listener="ognl:listeners.login">
>        
>        <div class="line">
>        	<div class="Label">Login: </div>
>        	<input type="text" jwcid="@TextField" value="ognl:userName"/>
>        </div>
>            
>        <div class="line">
>        	<div class="Label">Password: </div>
>        	<input type="password" jwcid="@TextField" value="ognl:password"/>
>        </div>
>        
>        <div class="line">
>        	<input type="submit" value="Login"/>
>    	</div>
>            
>        <div jwcid="@Conditional" condition="ognl:message">
>        	<div jwcid="@Insert" value="ognl:message"/>
>        </div>
>    </form>
></span>
>
>
>thanks in advantage
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
>  
>


-- 
Thanks,

Konstantin Ignatyev

http://www.kgionline.com





PS: If this is a typical day on planet earth, humans will add fifteen million tons of carbon to the atmosphere, destroy 115 square miles of tropical rainforest, create seventy-two miles of desert, eliminate between forty to one hundred species, erode seventy-one million tons of topsoil, add 2.700 tons of CFCs to the stratosphere, and increase their population by 263.000

Bowers, C.A.  The Culture of Denial:  
Why the Environmental Movement Needs a Strategy for Reforming Universities and Public Schools.  
New York:  State University of New York Press, 1997: (4) (5) (p.206)


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