You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Timofey Korolev <tk...@linux-online.ru> on 2003/09/29 20:01:49 UTC

page parameters

Hello!
I'm trying to get list of objects from database (succeded) and then to
click on one of them to edit it.

<span jwcid="@Foreach" source="ognl:rubricators" value="ognl:rubricator"
element="tr">
								<tr bgcolor="#eeeeee">
									<td><img src="images/16/kmenu3.png"></td>
									<td align="center"><span jwcid="@Insert"
value="ognl:rubricator.id"/></td>
									<td><span jwcid="@Insert" value="ognl:rubricator.name"/></td>
									<td valign="top" align="center">
        <img jwcid="@ImageSubmit" image="ognl:assets.deleteImage"
listener="ognl:listeners.deleteRubricatorListener" title="Delete"/></td>
									<td valign="top" align="center"><img jwcid="@ImageSubmit"
image="ognl:assets.editImage"
listener="ognl:listeners.editRubricatorListener" title="Edit"
rubobject="ognl:rubricator.id"/></td>
								</tr>
							</span>

My ognl:listeners.editRubricatorListener look like this:

public void editRubricatorListener (IRequestCycle  cycle) throws
Exception {
				throw new PageRedirectException ("EditRubricator");
		}

The question is - how can a read "rubobject" parameters in the
EditRubricator page?
It seems that i don't understand how to pass parameters from one page to
another. I've read tapestry docs about component's parameters, but still
don't know how to use them with pages. 
Can anyone tell me what (or where) is my principal mistake?
-- 
Regards,
CEO Linux-Online.Ru
Korolyov Timofey

www.linuxshop.ru :: www.prefnews.ru :: www.dotstyle.ru

JabberID: timoha@jabber.ru

Re: page parameters

Posted by Bryan Lewis <br...@maine.rr.com>.
Timofey Korolev wrote:

> It seems that i don't understand how to pass parameters from one page
to another.
> I've read tapestry docs about component's parameters, but still don't
know how to
> use them with pages.

Maybe this previous posting will help:

http://article.gmane.org/gmane.comp.java.tapestry.user/3287


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


Re: page parameters

Posted by John S <jo...@yahoo.com>.
 
  I do the following.  On the page listing the items I have:
 
<SPAN jwcid="@ExternalLink" page="FlowAggregateDetails" parameters="ognl:flowAggregate.id">Details</SPAN>
 
  Then on page FlowAggregateDetails I do:
 
  public void activateExternalPage(Object[] objects, IRequestCycle cycle) {
    if (objects != null && objects.length >= 1) {
      Long id = (Long)objects[0] ;
    }
    // more stuff...
  }
 
  I basically read the parameters passed to me

 
 
 


Timofey Korolev <tk...@linux-online.ru> wrote:Hello!
I'm trying to get list of objects from database (succeded) and then to click on one of them to edit it.

<span jwcid="@Foreach" source="ognl:rubricators" value="ognl:rubricator" element="tr">
<tr bgcolor="#eeeeee">
<td><img src="images/16/kmenu3.png"></td>
<td align="center"><span jwcid="@Insert" value="ognl:rubricator.id"/></td>
<td><span jwcid="@Insert" value="ognl:rubricator.name"/></td>
<td valign="top" align="center">
        <img jwcid="@ImageSubmit" image="ognl:assets.deleteImage" listener="ognl:listeners.deleteRubricatorListener" title="Delete"/></td>
<td valign="top" align="center"><img jwcid="@ImageSubmit" image="ognl:assets.editImage" listener="ognl:listeners.editRubricatorListener" title="Edit" rubobject="ognl:rubricator.id"/></td>
</tr>
</span>

My ognl:listeners.editRubricatorListener look like this:

public void editRubricatorListener (IRequestCycle  cycle) throws Exception {
throw new PageRedirectException ("EditRubricator");
}

The question is - how can a read "rubobject" parameters in the EditRubricator page?
It seems that i don't understand how to pass parameters from one page to another. I've read tapestry docs about component's parameters, but still don't know how to use them with pages. 
Can anyone tell me what (or where) is my principal mistake?

-- Regards,CEO Linux-Online.RuKorolyov Timofeywww.linuxshop.ru :: www.prefnews.ru :: www.dotstyle.ruJabberID: timoha@jabber.ru


> ATTACHMENT part 2 application/pgp-signature name=signature.asc



---------------------------------
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search