Re: Add more than one component to an Item (repeaters)

2008-09-25 Thread Alexandre Lenoir
You can create your own component that involves many subcomponents and add
it to your datatable. Too simple?

On Thu, Sep 25, 2008 at 11:28 AM, Nino Saturnino Martinez Vazquez Wael 
[EMAIL PROTECTED] wrote:

 Do it as a panel..?


 Edgar Merino wrote:

 Hello,

   I've got a DataTable that needs to add to each of its Items a Link and a
 Label, since I've only get one componentId from the populateItem(Item
 cellItem, String componentId, IModel model) method, I don't know what to do
 to be able to accomplish what I need.

   This is what I need:

 public void populateItem(Item cellItem, String componentId, IModel model)
 {
   Link link = new Link(componentId) {
  public void onClick() {
 //do Something
  }
   }
   link.add(new Label(WHAT SHOULD I PUT HERE), label);

   cellItem.add(link);
 }

   I hope someone can give me a hint on what to do, thank you in advance.

 Edgar Merino

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 --
 -Wicket for love

 Nino Martinez Wael
 Java Specialist @ Jayway DK
 http://www.jayway.dk
 +45 2936 7684



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




RE: bookmarkable URL and sortable data table

2008-09-24 Thread Alexandre Lenoir
Happy to follow a known way!

-Original Message-
From: Monica D'Arcy [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 25 September, 2008 00:57
To: users@wicket.apache.org
Subject: Re: bookmarkable URL and sortable data table

Thanks for the reply!  Your solution seems similar to what I thought  
might need to happen.  Monica

On Sep 24, 2008, at 6:43 PM, Xhelas wrote:


 I have encountered the same problem as you.
 I have solved it thsi way:

 The page that contains the table has parameters that reflects the  
 state of
 the table.
 Then I created the class :
 public class BookmarkableOrderByBorder extends Border

 that is created by the overriden newSortableHader of mytable.

 This BookmarkableOrderByBorder includes a BookmarkablePageLink that  
 include
 the sort state of my
 BookmarkableTable. I don't know if this is the ideal solution.

 Well, you can check the result here where several  
 BookmarkableTables can be
 in a page:

 http://cubefactory.selfip.com/globalparanoia/clan.html/clan/PARANOIA/
 http://cubefactory.selfip.com/globalparanoia/clan.html/clan/PARANOIA/

 I hope you get the idea. I found it by carefully reading the wicket  
 code.

 Regards

 Alexandre


 Monica D'Arcy wrote:

 Hi,

 I have an application that uses primarily Bookmarkable pages.  On the
 main Search page there is also a DefaultDataTable that uses a
 SortableDataProvider.  When clicking on  sortable column, the URL
 becomes wicketized.  Is there a way to easily override this
 behavior so that the URLs produced by sorting data in the DataTable
 are also of a Bookmarkable form.

 Thanks in advance for any help,
 Monica

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 -- 
 View this message in context: http://www.nabble.com/bookmarkable- 
 URL-and-sortable-data-table-tp19518388p19659583.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]