You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by RR <se...@gmail.com> on 2004/10/13 23:03:44 UTC
Unable to resolve expression 'listeners.submitOrg'
I have a page (whose class is not abstract) and I receive this error
upon accessing it. The method "submitOrg" is in the page class.
Code snippets:
....
<component id="form" type="Form">
<binding name="listener" expression="listeners.submitOrg" />
<binding name="delegate" expression="beans.delegate"/>
</component>
....
private void submitOrg(IRequestCycle cycle){
LOG.debug("Form submitted: ");
}
....
Any help is appreciated!
-RR-
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Unable to resolve expression 'listeners.submitOrg'
Posted by Eduardo Lobo <el...@inet.co.cr>.
If you are using abstract class, maybe the problem is that the method
has to be declared as public.
RR wrote:
>I have a page (whose class is not abstract) and I receive this error
>upon accessing it. The method "submitOrg" is in the page class.
>Code snippets:
>....
> <component id="form" type="Form">
> <binding name="listener" expression="listeners.submitOrg" />
> <binding name="delegate" expression="beans.delegate"/>
> </component>
>....
>private void submitOrg(IRequestCycle cycle){
> LOG.debug("Form submitted: ");
> }
>....
>
>Any help is appreciated!
>
>-RR-
>
>---------------------------------------------------------------------
>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
Re: Unable to resolve expression 'listeners.submitOrg'
Posted by Mikaƫl Cluseau <nw...@nwrk.dyndns.org>.
RR wrote:
>I have a page (whose class is not abstract) and I receive this error
>upon accessing it. The method "submitOrg" is in the page class.
>Code snippets:
>....
> <component id="form" type="Form">
> <binding name="listener" expression="listeners.submitOrg" />
> <binding name="delegate" expression="beans.delegate"/>
> </component>
>....
>private void submitOrg(IRequestCycle cycle){
> LOG.debug("Form submitted: ");
> }
>....
>
>Any help is appreciated!
>
>-RR-
>
>
replace private "submitOrg" by public "submitOrg"
---------------------------------------------------------------------
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
Conditional inclusion of a propertySelection
Posted by Alex Reid <al...@phiz.biz>.
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: initialSortColumn
Posted by Erik Hatcher <er...@ehatchersolutions.com>.
On Oct 13, 2004, at 6:21 PM, Lindsay Steele wrote:
> Well it is not exactly described .. But I did follow the parameters in
> the component reference doc .. And used "Extn" previously.
>
> My mistake is I thought I was using a String .. But I am learning that
> in Tapestry this might not be the case.
If you use <static-binding> the value is provided as a String and could
be simply "Extn".
Erik
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
RE: initialSortColumn
Posted by Lindsay Steele <ls...@iinet.net.au>.
Well it is not exactly described .. But I did follow the parameters in
the component reference doc .. And used "Extn" previously.
My mistake is I thought I was using a String .. But I am learning that
in Tapestry this might not be the case.
An example is always good in these situations....
Thanks for the patience and help,
Lindsay
-----Original Message-----
From: Mind Bridge [mailto:mindbridgeweb@yahoo.com]
Sent: Thursday, 14 October 2004 7:54 AM
To: Tapestry users
Subject: Re: initialSortColumn
As described in the doc, the 'initialSortColumn' should accept a simple
string. Just make it equal to the ID of the column you want.
For example:
<binding name="initialSortColumn" expression=" 'Extn' "/>
That should work, I believe.
----- Original Message -----
From: "Lindsay Steele" <ls...@iinet.net.au>
To: "'Tapestry users'" <ta...@jakarta.apache.org>
Sent: Thursday, October 14, 2004 12:40 AM
Subject: initialSortColumn
> I have a problem with the initial sort column in a Table.
>
> I have tried many combinations trying to make it point to the column
> to sort but nothing seems to work. I have also done searches and can't
> seem to find examples anywhere.
>
> Any ideas ??
>
> Thanks,
>
> Lindsay
>
>
> <component id="ExtnViewTable" type="contrib:Table"> <binding
> name="source" expression="extensionsList"/> <static-binding
> name="columns">
> Extn:extnNo,
> Edit:Edit,
> Delete:extnNo,
> username:Username:username,
> area:Area:area,
> jobPosition:Job Position:jobPosition,
> phoneType:Type:phoneType,
> status:Status:statusString,
> viewLevel:Level:viewLevelString
> </static-binding>
> <binding name="pageSize" expression="500"/>
> <binding name="pagesDisplayed" expression="25"/>
> <binding name="rowsClass" expression="beans.rowClass.next"/>
> <binding name="initialSortColumn"
> expression="components.ExtnViewTable.columns.Extn"/>
> </component>
>
> <component id="ExtnColumnValue" type="Block"/>
> <component id="selectExtn" type="Insert">
> <binding name="value"
> expression="components.ExtnViewTable.tableRow.extnNo"/>
> </component>
>
> <component id="viewExtnLink" type="DirectLink">
> <binding name="listener" expression="listeners.viewExtn"/>
> <binding name="parameters"
> expression="components.ExtnViewTable.tableRow.extnNo"/>
> </component>
>
>
>
> ---------------------------------------------------------------------
> 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
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: initialSortColumn
Posted by Mind Bridge <mi...@yahoo.com>.
As described in the doc, the 'initialSortColumn' should accept a simple
string. Just make it equal to the ID of the column you want.
For example:
<binding name="initialSortColumn" expression=" 'Extn' "/>
That should work, I believe.
----- Original Message -----
From: "Lindsay Steele" <ls...@iinet.net.au>
To: "'Tapestry users'" <ta...@jakarta.apache.org>
Sent: Thursday, October 14, 2004 12:40 AM
Subject: initialSortColumn
> I have a problem with the initial sort column in a Table.
>
> I have tried many combinations trying to make it point to the column to
> sort but nothing seems to work. I have also done searches and can't seem
> to find examples anywhere.
>
> Any ideas ??
>
> Thanks,
>
> Lindsay
>
>
> <component id="ExtnViewTable" type="contrib:Table">
> <binding name="source" expression="extensionsList"/>
> <static-binding name="columns">
> Extn:extnNo,
> Edit:Edit,
> Delete:extnNo,
> username:Username:username,
> area:Area:area,
> jobPosition:Job Position:jobPosition,
> phoneType:Type:phoneType,
> status:Status:statusString,
> viewLevel:Level:viewLevelString
> </static-binding>
> <binding name="pageSize" expression="500"/>
> <binding name="pagesDisplayed" expression="25"/>
> <binding name="rowsClass" expression="beans.rowClass.next"/>
> <binding name="initialSortColumn"
> expression="components.ExtnViewTable.columns.Extn"/>
> </component>
>
> <component id="ExtnColumnValue" type="Block"/>
> <component id="selectExtn" type="Insert">
> <binding name="value"
> expression="components.ExtnViewTable.tableRow.extnNo"/>
> </component>
>
> <component id="viewExtnLink" type="DirectLink">
> <binding name="listener" expression="listeners.viewExtn"/>
> <binding name="parameters"
> expression="components.ExtnViewTable.tableRow.extnNo"/>
> </component>
>
>
>
> ---------------------------------------------------------------------
> 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
initialSortColumn
Posted by Lindsay Steele <ls...@iinet.net.au>.
I have a problem with the initial sort column in a Table.
I have tried many combinations trying to make it point to the column to
sort but nothing seems to work. I have also done searches and can't seem
to find examples anywhere.
Any ideas ??
Thanks,
Lindsay
<component id="ExtnViewTable" type="contrib:Table">
<binding name="source" expression="extensionsList"/>
<static-binding name="columns">
Extn:extnNo,
Edit:Edit,
Delete:extnNo,
username:Username:username,
area:Area:area,
jobPosition:Job Position:jobPosition,
phoneType:Type:phoneType,
status:Status:statusString,
viewLevel:Level:viewLevelString
</static-binding>
<binding name="pageSize" expression="500"/>
<binding name="pagesDisplayed" expression="25"/>
<binding name="rowsClass" expression="beans.rowClass.next"/>
<binding name="initialSortColumn"
expression="components.ExtnViewTable.columns.Extn"/>
</component>
<component id="ExtnColumnValue" type="Block"/>
<component id="selectExtn" type="Insert">
<binding name="value"
expression="components.ExtnViewTable.tableRow.extnNo"/>
</component>
<component id="viewExtnLink" type="DirectLink">
<binding name="listener" expression="listeners.viewExtn"/>
<binding name="parameters"
expression="components.ExtnViewTable.tableRow.extnNo"/>
</component>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Unable to resolve expression 'listeners.submitOrg'
Posted by RR <se...@gmail.com>.
Stupid access mistake. Thanks all for the help.
On Wed, 13 Oct 2004 16:08:51 -0500, Jean C. Favila
<jf...@legosoft.com.mx> wrote:
> Try declaring the method as public
>
> public void submitOrg(IRequestCycle cycle){
> LOG.debug("Form submitted: ");
> }
>
> Regards
>
>
>
> -----Original Message-----
> From: RR [mailto:security.identity@gmail.com]
> Sent: Wednesday, October 13, 2004 4:04 PM
> To: tapestry-user@jakarta.apache.org
> Subject: Unable to resolve expression 'listeners.submitOrg'
>
> I have a page (whose class is not abstract) and I receive this error
> upon accessing it. The method "submitOrg" is in the page class.
> Code snippets:
> ....
> <component id="form" type="Form">
> <binding name="listener" expression="listeners.submitOrg" />
> <binding name="delegate" expression="beans.delegate"/>
> </component>
> ....
> private void submitOrg(IRequestCycle cycle){
> LOG.debug("Form submitted: ");
> }
> ....
>
> Any help is appreciated!
>
> -RR-
>
> ---------------------------------------------------------------------
> 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
RE: Unable to resolve expression 'listeners.submitOrg'
Posted by "Jean C. Favila" <jf...@legosoft.com.mx>.
Try declaring the method as public
public void submitOrg(IRequestCycle cycle){
LOG.debug("Form submitted: ");
}
Regards
-----Original Message-----
From: RR [mailto:security.identity@gmail.com]
Sent: Wednesday, October 13, 2004 4:04 PM
To: tapestry-user@jakarta.apache.org
Subject: Unable to resolve expression 'listeners.submitOrg'
I have a page (whose class is not abstract) and I receive this error
upon accessing it. The method "submitOrg" is in the page class.
Code snippets:
....
<component id="form" type="Form">
<binding name="listener" expression="listeners.submitOrg" />
<binding name="delegate" expression="beans.delegate"/>
</component>
....
private void submitOrg(IRequestCycle cycle){
LOG.debug("Form submitted: ");
}
....
Any help is appreciated!
-RR-
---------------------------------------------------------------------
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