You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Matthew Wheaton <md...@comcast.net> on 2005/03/18 22:35:49 UTC

Problem using a Form component INSIDE a border component.

 Hello,

I'm running into a brick wall on this one.
I have a border component, that has in the upper right corner a login 
form with a user name and password.
I'm using

<form jwcid="@Form" listener="ognl:listeners.loginFormSubmit">
<input jwcid="@TextField" value="ognl:userName" name="user" type="text" 
size="13" />
<br />
<input jwcid="@TextField" value="ognl: password" name="password" 
type="password" size="13" />
</form>

there's purposefully a space in the ognl: password above so the forum 
does not make a smiley face :p

*seems* simple enough

I've created the border component, added the properties to the compenent 
spec BorderPage.jwc :

<property-specification name="userName" type="java.lang.String" />
<property-specification name="password" type="java.lang.String" />

and the BorderPage.java looks like this :

//==================================
package com.ughm.app.view.tapestry.components.pages;

import org.apache.tapestry.BaseComponent;
import org.apache.tapestry.IRequestCycle;

/**
* @author Uglyhouse Admin
*
*/
public abstract class BorderPage extends BaseComponent
{

public void loginFormSubmit(IRequestCycle cycle)
{
//nothing here yet !
String thisPage = cycle.getPage().getPageName();
cycle.activate(thisPage);
}

public abstract String getUserName();

public abstract String getPassword();
}
//==================================

not sure what I'm doing wrong, but just trying to render any page using 
the border component fails with a BindingException :
Unable to resolve expression 'listeners.loginFormSubmit' for 
com.ughm.app.view.tapestry.components.pages.BorderPage$Enhance_0@458f41[Home/$Border].

The border component works beautifully without the form in it.

Any pointers would be most appreciated.

Thank you,
UglyHouse Admin
www.UglyHouseMatch.com

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