You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Alex Reid <al...@phiz.biz> on 2004/10/14 00:08:10 UTC

Conditional inclusion of a propertySelection

Hi,

Suppose I have a form that consists of one <select> / PropertySelection
called 'groupSelector'. After the user selects an option on
'groupSelector', it automatically submits the page. In theory, this should
present the user with a second PropertySelection box called
'primarySelector'.

I have achieved this using @Conditional to only render 'primarySelector'
after the 'groupselector' has been selected as its values are dependent on
the value of this.

However, upon making an selection I get this stale link exception:

Rewind of form Referrals/$Form expected only 2 form elements, but an
additional id was requested by component Referrals/primarySelector.

Any ideas?

Alex

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


RE: Conditional inclusion of a propertySelection

Posted by "Jean C. Favila" <jf...@legosoft.com.mx>.
Try using @contrib:FormConditional instead of @Conditional

Regards

-----Original Message-----
From: Alex Reid [mailto:alex@phiz.biz] 
Sent: Wednesday, October 13, 2004 5:08 PM
To: Tapestry users
Subject: Conditional inclusion of a propertySelection

Hi,

Suppose I have a form that consists of one <select> / PropertySelection
called 'groupSelector'. After the user selects an option on
'groupSelector', it automatically submits the page. In theory, this
should
present the user with a second PropertySelection box called
'primarySelector'.

I have achieved this using @Conditional to only render 'primarySelector'
after the 'groupselector' has been selected as its values are dependent
on
the value of this.

However, upon making an selection I get this stale link exception:

Rewind of form Referrals/$Form expected only 2 form elements, but an
additional id was requested by component Referrals/primarySelector.

Any ideas?

Alex

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



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