format in wicket generated html?

2008-10-16 Thread Beyonder Unknown

Hi Guys,

I was wondering if there's a way that wicket can generate the html in with 
indentation? Right now, when we view-source our wicket page in the browser, it 
generates the html without tabs. All lines are left-aligned.

Thanks in advance.

Wen Tong

 --
The only constant in life is change.



  

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



Re: format in wicket generated html?

2008-10-16 Thread Beyonder Unknown
thanks.

 --
The only constant in life is change.



- Original Message 
From: Igor Vaynberg [EMAIL PROTECTED]
To: users@wicket.apache.org
Sent: Thursday, October 16, 2008 1:44:52 PM
Subject: Re: format in wicket generated html?

get an editor that can format it for you

-igor

On Thu, Oct 16, 2008 at 1:35 PM, Beyonder Unknown [EMAIL PROTECTED]wrote:


 Hi Guys,

 I was wondering if there's a way that wicket can generate the html in with
 indentation? Right now, when we view-source our wicket page in the browser,
 it generates the html without tabs. All lines are left-aligned.

 Thanks in advance.

 Wen Tong

  --
 The only constant in life is change.





 -
 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]



Re: modalWindow disable drag drop?

2008-07-15 Thread Beyonder Unknown

Thanks, Nino. So there's no way to do that as of 1.3.4 version, i guess huh?


 --
The only constant in life is change.



- Original Message 
From: Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED]
To: users@wicket.apache.org
Sent: Monday, July 14, 2008 6:24:53 AM
Subject: Re: modalWindow disable drag  drop?

you could make it less obvious using styling...

Beyonder Unknown wrote:
 Hi Users,


 Is there a way to make the modalWindow unmovable? (disable the drag and 
 drop?). 

 Thanks,
 Allan

  --
 The only constant in life is change.



  

 -
 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]


  

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



modalWindow disable drag drop?

2008-07-12 Thread Beyonder Unknown

Hi Users,


Is there a way to make the modalWindow unmovable? (disable the drag and drop?). 

Thanks,
Allan

 --
The only constant in life is change.



  

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



autoComplete event question

2008-05-29 Thread Beyonder Unknown

Hi All,

I have an autoComplete component that works  if I use the arrow key, in 
selecting the choices, but doesn't work if I use a mouse to click the choices. 
If you guys have some idea, please let lead me to the right the direction. 

I'm actually clueless on how to fix this.

Thanks in advance,
Wen Tong

 --
The only constant in life is change.



  

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



Re: Formatting a DatePickerSettings

2008-05-22 Thread Beyonder Unknown

Hi Nate, I think you have to create/override the factor method in DateTextField 
and set it from there:


 protected DateTextField newDateTextField(String id, PropertyModel 
dateFieldModel)
{
return new DateTextField(id, dateFieldModel, new 
StyleDateConverter(false)).forDatePattern(id,dateFieldModel, MM/ddyy);
}

Hope this helps!

Regards,
Wen Tong--
The only constant in life is change.


- Original Message 
From: nate roe [EMAIL PROTECTED]
To: users@wicket.apache.org
Sent: Wednesday, May 21, 2008 3:38:00 PM
Subject: Formatting a DatePickerSettings

I'm using Wicket 1.2, and WicketExtensions 1.2.

I have a DateTextField that is formatted with the String, MM/dd/yy  This
field has a corresponding DatePickerSettings, but the DatePickerSettings
doesn't follow this format (it adds dates with four-digit years,
MM/dd/.)

How can I change this?

Thanks,
Nate



  

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



DateTextField related question

2008-05-21 Thread Beyonder Unknown

Hi All,

Has anyone tried using DateTextField with DatePicker, that instead of having a 
calendar image beside the DateTextField and calendar pops up when click, it  
actually pops up when you click the text field itself? 

Any response will be greatly appreciated!

Thanks,
Wen Tong

 --
The only constant in life is change.



  

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



Re: em tag in Link

2008-04-09 Thread Beyonder Unknown

Thanks Gerolf! I appreciate it.

--- Gerolf Seitz [EMAIL PROTECTED] wrote:

 in Application.init():

getMarkupSettings().setDefaultBeforeDisabledLink();
 getMarkupSettings().setDefaultAfterDisabledLink();
 
   Gerolf
 
 On Wed, Apr 9, 2008 at 5:32 PM, Beyonder Unknown
 [EMAIL PROTECTED]
 wrote:
 
 
  Hi All,
 
  I was wondering if there's a way to get rid of the
  added em tag every time I disable the Link
  component?
 
  Thanks,
  Wen Tong
 
  --
  The only constant in life is change.
 
  __
  Do You Yahoo!?
  Tired of spam?  Yahoo! Mail has the best spam
 protection around
  http://mail.yahoo.com
 
 

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


--
The only constant in life is change.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



disabling navigation in AjaxFallbackDefaultDataTable

2008-03-26 Thread Beyonder Unknown


Hi All,

Is there a way to disable the navigation (AjaxNavigationToolbar) in 
AjaxFallbackDefaultDataTable? I want to set the rowsPerPage to a certain 
number, but when i do that, the navigation automatically appears. I was 
wondering if there's a good way to disable it, aside from extending the class 
(DataTable).


Thanks,
Wen Tong
 
--
The only constant in life is change.






  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

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



Re: AjaxFallbackDefaultDataTable not refreshing in IE6

2008-02-20 Thread Beyonder Unknown

I built a simple app simulating my application, but i cannot reproduce the bug. 
I noticed that the table header is generated as a hrefspan/a combo. I 
encountered a problem before about IE not like span inside an anchor tag. How 
can I fix this ajax error? 

ERROR: Error while parsing response: Object required
 

Thanks,
Wen Tong

--
The only constant in life is change.

- Original Message 
From: Igor Vaynberg [EMAIL PROTECTED]
To: users@wicket.apache.org
Sent: Friday, February 15, 2008 1:49:37 PM
Subject: Re: AjaxFallbackDefaultDataTable not refreshing in IE6

yes

-igor


On Fri, Feb 15, 2008 at 1:48 PM, Beyonder Unknown [EMAIL PROTECTED] wrote:

  I'm still building the code to the simplest possible, so that its easy to 
 debug. I'll attached ones i got it working. Is it okay, to cut and paste the 
 code in the comment?


  Thanks,
  Wen Tong


  --
  The only constant in life is change.

  - Original Message 

 From: Igor Vaynberg [EMAIL PROTECTED]
  To: users@wicket.apache.org

 Sent: Friday, February 15, 2008 1:36:11 PM
  Subject: Re: AjaxFallbackDefaultDataTable not refreshing in IE6


 where is the quickstart?

  -igor



 On Fri, Feb 15, 2008 at 1:30 PM, Beyonder Unknown [EMAIL PROTECTED] wrote:
  
Will do.  ( https://issues.apache.org/jira/browse/WICKET-1349 )
  
  

   Thanks,
Wen Tong
  
--
The only constant in life is change.
  
- Original Message 
  

  From: Igor Vaynberg [EMAIL PROTECTED]
To: users@wicket.apache.org
  

  Sent: Friday, February 15, 2008 1:15:52 PM
Subject: Re: AjaxFallbackDefaultDataTable not refreshing in IE6
  
  

  please enter a bug report along with a quickstart
  
-igor


 
  
  
  
On Fri, Feb 15, 2008 at 1:12 PM, Beyonder Unknown [EMAIL PROTECTED] 
 wrote:
 Hi Igor,

  Its wicket 1.3.1.

  Thanks,
  Allan


  --
  The only constant in life is change.

  - Original Message 


 From: Igor Vaynberg [EMAIL PROTECTED]
  To: users@wicket.apache.org
  Sent: Friday, February 15, 2008 12:40:53 PM
  Subject: Re: AjaxFallbackDefaultDataTable not refreshing in IE6

  what wicket version is doing that?

  -igor


  On Fri, Feb 15, 2008 at 12:16 PM, Beyonder Unknown [EMAIL PROTECTED] 
 wrote:
  
One thing I noticed is that the javascript generated is appended 
 with ^. Could it be that IE is not parsing this properly?
  
excerpt from Wicket Ajax Debug Window
  
  
   for (var i=0; iformLen; i++) {
   var elm = formObj.elements[i]^;
   if (elm.type == checkbox  elm.className 
 == parent) {
   elm.checked = state;
   return;
   }
   }
  
  
  
Thanks,
  
   Wen Tong
  
--
The only constant in life is change.
  
  
  
   - Original Message 
From: Beyonder Unknown [EMAIL PROTECTED]
To: WICKET USER users@wicket.apache.org
Sent: Friday, February 15, 2008 12:00:41 PM
Subject: AjaxFallbackDefaultDataTable not refreshing in IE6
  
  
Hi Guys,
  
The AjaxFallbackDefaultDataTable (with SortableDataProvider) 
 component that I'm using is not refreshing in IE6, but works fine with 
 firefox. The Wicket Ajax Debugger says:
  
ERROR: Error while parsing response: Object required
INFO: Invoking post-call handler(s)...
INFO: invoking failure handler(s)...
  
  
Have any of you encountered this before?  Any help will be greatly 
 appreciated.
  
Best,
Wen Tong
  
--
The only constant in life is change.
  
  
  
  
 
 
Looking for last minute shopping deals?
Find them fast with Yahoo! Search.  
 http://tools.search.yahoo.com/newsearch/category.php?category=shopping
  

 -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  
  
  
  
 
 
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile.  Try it now.  
 http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
  
  
  
  

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

Re: Custom JavaScript Panel ?

2008-02-20 Thread Beyonder Unknown
Hi Warren,

Try this. Have your panel implement IHeaderContributor, and implement the 
method:

/**
 * This method will call this javascript to set the button to its default 
state.
 */
public void renderHead(IHeaderResponse response) {
response.renderOnDomReadyJavascript(foo(););
}
 

Hope this helps.

Best,
Wen Tong


--
The only constant in life is change.

- Original Message 
From: Warren [EMAIL PROTECTED]
To: users@wicket.apache.org
Sent: Tuesday, February 19, 2008 3:22:42 PM
Subject: Custom JavaScript Panel ?

I am trying to design a Panel that dynamically creates JavaScript into the
head markup. I understand how to do this statically, but not dynamically.
My app runs on wireless PDA scanning devices used in grocery stores. One of
the requirements is that it does not allow the user to place focus on any
other part of the page other than where I want it. I did this statically on
every JSP I had in my last Struts version app. It would be nice to add a
panel to each page that would dynamically create the JavaScript needed based
on the relevant components that need focus. Something like this:

public class MyPage extends WebPage
{

public MyPage()
{

add(...);
add(...);
add(...);

...

add(new ForceFocusPanel(forceFocus, this));
}

...

}


public class ForceFocusPanel extends Panel
{
public ForceFocusPanel()
{
// Iterate thru components on the original page and add relevant ones 
and
the necessary JavaScript
// to some kind of repeater or ListView ?
// Add this repeater to the markup template to appear in the head 
markup ?
add(relevantFocusComponent);
}
}

ForceFocusPanel.html

wicket:head
script type=text/javascript
??? wicket:id=relevantFocusComponents /
/script
/wicket:head
wicket:panel
/wicket:panel

Here are my questions,

1. Please stop me if I am trying to reinvent the wheel and point me to that
magical component if there is one.

2. Since I only want to modify the original Page's head markup, do I have
to include the Panel's wicket:id somewhere on the original Page's markup?

3. What method do I use to get the Page's components so that I can iterate
over them?

4. What type of component would I add to my Panel that would contain the
relevant focus components JavaScript? A repeater of some kind or ListView?

5. What type of markup would I use to place this repeater component into my
Panel's head markup and will this even work within the head markup?

wicket:head
script type=text/javascript
...
??? wicket:id=relevantFocusComponents /
...
/script
/wicket:head

I know this is a lot of questions, and by no means am I asking anyone to
write code for me. I am just looking for hints, suggestions or point me to
some examples if available.

Thanks,

Warren Bell


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






  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

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



AjaxFallbackDefaultDataTable not refreshing in IE6

2008-02-15 Thread Beyonder Unknown

Hi Guys,

The AjaxFallbackDefaultDataTable (with SortableDataProvider) component that I'm 
using is not refreshing in IE6, but works fine with firefox. The Wicket Ajax 
Debugger says:

ERROR: Error while parsing response: Object required
INFO: Invoking post-call handler(s)...
INFO: invoking failure handler(s)...


Have any of you encountered this before?  Any help will be greatly appreciated.

Best,
Wen Tong
 
--
The only constant in life is change.




  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

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



Re: AjaxFallbackDefaultDataTable not refreshing in IE6

2008-02-15 Thread Beyonder Unknown

Will do.  ( https://issues.apache.org/jira/browse/WICKET-1349 )

Thanks,
Wen Tong
 
--
The only constant in life is change.

- Original Message 
From: Igor Vaynberg [EMAIL PROTECTED]
To: users@wicket.apache.org
Sent: Friday, February 15, 2008 1:15:52 PM
Subject: Re: AjaxFallbackDefaultDataTable not refreshing in IE6

please enter a bug report along with a quickstart

-igor


On Fri, Feb 15, 2008 at 1:12 PM, Beyonder Unknown [EMAIL PROTECTED] wrote:
 Hi Igor,

  Its wicket 1.3.1.

  Thanks,
  Allan


  --
  The only constant in life is change.

  - Original Message 


 From: Igor Vaynberg [EMAIL PROTECTED]
  To: users@wicket.apache.org
  Sent: Friday, February 15, 2008 12:40:53 PM
  Subject: Re: AjaxFallbackDefaultDataTable not refreshing in IE6

  what wicket version is doing that?

  -igor


  On Fri, Feb 15, 2008 at 12:16 PM, Beyonder Unknown [EMAIL PROTECTED] wrote:
  
One thing I noticed is that the javascript generated is appended with 
 ^. Could it be that IE is not parsing this properly?
  
excerpt from Wicket Ajax Debug Window
  
  
   for (var i=0; iformLen; i++) {
   var elm = formObj.elements[i]^;
   if (elm.type == checkbox  elm.className == 
 parent) {
   elm.checked = state;
   return;
   }
   }
  
  
  
Thanks,
  
   Wen Tong
  
--
The only constant in life is change.
  
  
  
   - Original Message 
From: Beyonder Unknown [EMAIL PROTECTED]
To: WICKET USER users@wicket.apache.org
Sent: Friday, February 15, 2008 12:00:41 PM
Subject: AjaxFallbackDefaultDataTable not refreshing in IE6
  
  
Hi Guys,
  
The AjaxFallbackDefaultDataTable (with SortableDataProvider) component 
 that I'm using is not refreshing in IE6, but works fine with firefox. The 
 Wicket Ajax Debugger says:
  
ERROR: Error while parsing response: Object required
INFO: Invoking post-call handler(s)...
INFO: invoking failure handler(s)...
  
  
Have any of you encountered this before?  Any help will be greatly 
 appreciated.
  
Best,
Wen Tong
  
--
The only constant in life is change.
  
  
  
  
 
 
Looking for last minute shopping deals?
Find them fast with Yahoo! Search.  
 http://tools.search.yahoo.com/newsearch/category.php?category=shopping
  
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  
  
  
  
 
 
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile.  Try it now.  
 http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
  
  
  
  
-
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]






   
 
  Be a better friend, newshound, and
  know-it-all with Yahoo! Mobile.  Try it now.  
 http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ


  -
  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]






  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

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



Re: AjaxFallbackDefaultDataTable not refreshing in IE6

2008-02-15 Thread Beyonder Unknown

It's not in the HTML. So that's probably just in the Ajax Debugger window. What 
does it mean to IE when this error occur? 

ERROR: Error while parsing response: Object required
INFO: Invoking post-call handler(s)...
INFO: invoking failure handler(s)...


Regards,
Wen Tong
 
--
The only constant in life is change.

- Original Message 
From: Igor Vaynberg [EMAIL PROTECTED]
To: users@wicket.apache.org
Sent: Friday, February 15, 2008 1:20:11 PM
Subject: Re: AjaxFallbackDefaultDataTable not refreshing in IE6

argh, then its fine. do view source and see if its actually in the html source.

-igor



On Fri, Feb 15, 2008 at 1:15 PM, Beyonder Unknown [EMAIL PROTECTED] wrote:
 Btw, the javascript that im referring to is my javascript found in the 
 markup. But when I see the ajax debug it appends the ^ character.


  Thanks,
  Wen Tong

  --
  The only constant in life is change.

  - Original Message 
  From: Beyonder Unknown [EMAIL PROTECTED]

 To: users@wicket.apache.org


 Sent: Friday, February 15, 2008 1:12:18 PM
  Subject: Re: AjaxFallbackDefaultDataTable not refreshing in IE6

  Hi Igor,

  Its wicket 1.3.1.

  Thanks,
  Allan

  --
  The only constant in life is change.

  - Original Message 
  From: Igor Vaynberg [EMAIL PROTECTED]
  To: users@wicket.apache.org
  Sent: Friday, February 15, 2008 12:40:53 PM
  Subject: Re: AjaxFallbackDefaultDataTable not refreshing in IE6

  what wicket version is doing that?

  -igor


  On Fri, Feb 15, 2008 at 12:16 PM, Beyonder Unknown [EMAIL PROTECTED] wrote:
  
One thing I noticed is that the javascript generated is appended with 
 ^. Could it be that IE is not parsing this properly?
  
excerpt from Wicket Ajax Debug Window
  
  
   for (var i=0; iformLen; i++) {
   var elm = formObj.elements[i]^;
   if (elm.type == checkbox  elm.className == 
 parent) {
   elm.checked = state;
   return;
   }
   }
  
  
  
Thanks,
  
   Wen Tong
  
--
The only constant in life is change.
  
  
  
   - Original Message 
From: Beyonder Unknown [EMAIL PROTECTED]
To: WICKET USER users@wicket.apache.org
Sent: Friday, February 15, 2008 12:00:41 PM
Subject: AjaxFallbackDefaultDataTable not refreshing in IE6
  
  
Hi Guys,
  
The AjaxFallbackDefaultDataTable (with SortableDataProvider) component 
 that I'm using is not refreshing in IE6, but works fine with firefox. The 
 Wicket Ajax Debugger says:
  
ERROR: Error while parsing response: Object required
INFO: Invoking post-call handler(s)...
INFO: invoking failure handler(s)...
  
  
Have any of you encountered this before?  Any help will be greatly 
 appreciated.
  
Best,
Wen Tong
  
--
The only constant in life is change.
  
  
  
  
 
 
Looking for last minute shopping deals?
Find them fast with Yahoo! Search.  
 http://tools.search.yahoo.com/newsearch/category.php?category=shopping
  
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  
  
  
  
 
 
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile.  Try it now.  
 http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
  
  
  
  
-
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]






   
 
  Be a better friend, newshound, and
  know-it-all with Yahoo! Mobile.  Try it now.  
 http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ


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







   
 
  Never miss a thing.  Make Yahoo your home page.
  http://www.yahoo.com/r/hs



  -
  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

Re: AjaxFallbackDefaultDataTable not refreshing in IE6

2008-02-15 Thread Beyonder Unknown
Btw, the javascript that im referring to is my javascript found in the markup. 
But when I see the ajax debug it appends the ^ character.

Thanks,
Wen Tong 
 
--
The only constant in life is change.

- Original Message 
From: Beyonder Unknown [EMAIL PROTECTED]
To: users@wicket.apache.org
Sent: Friday, February 15, 2008 1:12:18 PM
Subject: Re: AjaxFallbackDefaultDataTable not refreshing in IE6

Hi Igor,

Its wicket 1.3.1.

Thanks,
Allan
 
--
The only constant in life is change.

- Original Message 
From: Igor Vaynberg [EMAIL PROTECTED]
To: users@wicket.apache.org
Sent: Friday, February 15, 2008 12:40:53 PM
Subject: Re: AjaxFallbackDefaultDataTable not refreshing in IE6

what wicket version is doing that?

-igor


On Fri, Feb 15, 2008 at 12:16 PM, Beyonder Unknown [EMAIL PROTECTED] wrote:

  One thing I noticed is that the javascript generated is appended with ^. 
 Could it be that IE is not parsing this properly?

  excerpt from Wicket Ajax Debug Window


 for (var i=0; iformLen; i++) {
 var elm = formObj.elements[i]^;
 if (elm.type == checkbox  elm.className == 
 parent) {
 elm.checked = state;
 return;
 }
 }



  Thanks,

 Wen Tong

  --
  The only constant in life is change.



 - Original Message 
  From: Beyonder Unknown [EMAIL PROTECTED]
  To: WICKET USER users@wicket.apache.org
  Sent: Friday, February 15, 2008 12:00:41 PM
  Subject: AjaxFallbackDefaultDataTable not refreshing in IE6


  Hi Guys,

  The AjaxFallbackDefaultDataTable (with SortableDataProvider) component that 
 I'm using is not refreshing in IE6, but works fine with firefox. The Wicket 
 Ajax Debugger says:

  ERROR: Error while parsing response: Object required
  INFO: Invoking post-call handler(s)...
  INFO: invoking failure handler(s)...


  Have any of you encountered this before?  Any help will be greatly 
 appreciated.

  Best,
  Wen Tong

  --
  The only constant in life is change.




   
 
  Looking for last minute shopping deals?
  Find them fast with Yahoo! Search.  
 http://tools.search.yahoo.com/newsearch/category.php?category=shopping

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







   
 
  Be a better friend, newshound, and
  know-it-all with Yahoo! Mobile.  Try it now.  
 http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ




  -
  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]






  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


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






  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

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



Re: AjaxTabbedPanel notworking in IE 6

2008-02-11 Thread Beyonder Unknown

Hi Martijn,

Its the tab that doesn't work when you click it. The ajax debug inspector says:

[some HTML response]

ERROR: Error while parsing response: Object required
INFO: Invoking post-call handler(s)...
INFO: Invoking failure handler(s)...

But it works perfectly in firefox.

Regards,
Wen Tong
 
--
The only constant in life is change.

- Original Message 
From: Martijn Dashorst [EMAIL PROTECTED]
To: users@wicket.apache.org
Sent: Sunday, February 10, 2008 6:10:43 AM
Subject: Re: AjaxTabbedPanel notworking in IE 6


What 
doesn't 
work? 
Have 
you 
looked 
in 
the 
ajax 
debug 
inspector? 
In 
the
application 
logs?
Martijn

On 
2/9/08, 
Beyonder 
Unknown 
[EMAIL PROTECTED] 
wrote:


 
Hi 
All,

 
Have 
you 
guys 
encountered 
problem 
with 
AjaxTabbedPanel? 
The 
link 
doesn't
 
work. 
And 
when 
i 
changed 
it 
to 
TabbedPanel 
it 
worked!

 
Thoughts?

 
Best,
 
Wen 
Tong

 
--
 
The 
only 
constant 
in 
life 
is 
change.





  
  
  
 

 
Never 
miss 
a 
thing.  
Make 
Yahoo 
your 
home 
page.
 
http://www.yahoo.com/r/hs

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




-- 
Buy 
Wicket 
in 
Action: 
http://manning.com/dashorst
Apache 
Wicket 
1.3.1 
is 
released
Get 
it 
now: 
http://www.apache.org/dyn/closer.cgi/wicket/1.3.1





  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


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



AjaxTabbedPanel notworking in IE 6

2008-02-08 Thread Beyonder Unknown

Hi All,

Have you guys encountered problem with AjaxTabbedPanel? The link doesn't work. 
And when i changed it to TabbedPanel it worked!

Thoughts?

Best,
Wen Tong
 
--
The only constant in life is change.




  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

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



adding extra javascript call in CheckBox

2008-02-06 Thread Beyonder Unknown

Hi All,

I was wondering if there's a way to add or decorate a javascript call in 
CheckBox? What I did was: 

new CheckBox(checkBox, new Model()) {
protected void onComponentTag(ComponentTag tag) {
tag.put(onclick,executeSomething(););
}
 

But it overrides the original onClick that Wicket is writing. Is there a way 
that I can decorate it so that I can add extra javaScript call in onClick 
without overriding the original click, like the buttons has this: 

protected IAjaxCallDecorator getAjaxCallDecorator() {
return new AjaxCallDecorator() 


Thanks in advance and happy chinese new year!

Best,
Wen Tong


--
The only constant in life is change.




  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

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



Re: adding extra javascript call in CheckBox

2008-02-06 Thread Beyonder Unknown

Another thing that is confusing to me is that, why is it that when I override 
the onComponentTag() the name attribute in the generated markup disappear. 
I'm just appending function in the onClick when I override onComponentTag().

Thoughts?

Thanks,
Wen Tong
 
--
The only constant in life is change.

- Original Message 
From: Beyonder Unknown [EMAIL PROTECTED]
To: users@wicket.apache.org
Sent: Wednesday, February 6, 2008 1:24:16 PM
Subject: Re: adding extra javascript call in CheckBox



Thanks 
Igor! 
I 
appreciate 
the 
prompt 
reply.

Best,
Wen 
Tong
 
--
The 
only 
constant 
in 
life 
is 
change.

- 
Original 
Message 

From: 
Igor 
Vaynberg 
[EMAIL PROTECTED]
To: 
users@wicket.apache.org
Sent: 
Wednesday, 
February 
6, 
2008 
10:45:52 
AM
Subject: 
Re: 
adding 
extra 
javascript 
call 
in 
CheckBox


tag.put(onclick,executeSomething();+tag.getattributes().get(onclick));

-igor

On 
Feb 
6, 
2008 
10:39 
AM, 
Beyonder 
Unknown 
[EMAIL PROTECTED] 
wrote:

 
Hi 
All,

 
I 
was 
wondering 
if 
there's 
a 
way 
to 
add 
or 
decorate 
a 
javascript 
call 
in 
CheckBox? 
What 
I 
did 
was:

 
new 
CheckBox(checkBox, 
new 
Model()) 
{
  
  
  
  
  
  
  
  
  
  
 
protected 
void 
onComponentTag(ComponentTag 
tag) 
{
  
  
  
  
  
  
  
  
  
  
  
  
 
tag.put(onclick,executeSomething(););
  
  
  
  
  
  
  
  
  
  
 
}


 
But 
it 
overrides 
the 
original 
onClick 
that 
Wicket 
is 
writing. 
Is 
there 
a 
way 
that 
I 
can 
decorate 
it 
so 
that 
I 
can 
add 
extra 
javaScript 
call 
in 
onClick 
without 
overriding 
the 
original 
click, 
like 
the 
buttons 
has 
this:

  
  
 
protected 
IAjaxCallDecorator 
getAjaxCallDecorator() 
{
  
  
  
  
  
  
  
  
 
return 
new 
AjaxCallDecorator()


 
Thanks 
in 
advance 
and 
happy 
chinese 
new 
year!

 
Best,
 
Wen 
Tong


 
--
 
The 
only 
constant 
in 
life 
is 
change.




  
  
  
 

 
Looking 
for 
last 
minute 
shopping 
deals?
 
Find 
them 
fast 
with 
Yahoo! 
Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

 
-
 
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]






  
  
  

Looking 
for 
last 
minute 
shopping 
deals?  
Find 
them 
fast 
with 
Yahoo! 
Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

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






  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

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



Re: adding extra javascript call in CheckBox

2008-02-06 Thread Beyonder Unknown

Never mind, I noticed that it doesn't call the super.onComponentTag(). 

my bad.

Wen Tong
 
--
The only constant in life is change.

- Original Message 
From: Beyonder Unknown [EMAIL PROTECTED]
To: users@wicket.apache.org
Sent: Wednesday, February 6, 2008 2:14:12 PM
Subject: Re: adding extra javascript call in CheckBox



Another 
thing 
that 
is 
confusing 
to 
me 
is 
that, 
why 
is 
it 
that 
when 
I 
override 
the 
onComponentTag() 
the 
name 
attribute 
in 
the 
generated 
markup 
disappear. 
I'm 
just 
appending 
function 
in 
the 
onClick 
when 
I 
override 
onComponentTag().

Thoughts?

Thanks,
Wen 
Tong
 
--
The 
only 
constant 
in 
life 
is 
change.

- 
Original 
Message 

From: 
Beyonder 
Unknown 
[EMAIL PROTECTED]
To: 
users@wicket.apache.org
Sent: 
Wednesday, 
February 
6, 
2008 
1:24:16 
PM
Subject: 
Re: 
adding 
extra 
javascript 
call 
in 
CheckBox



Thanks 
Igor! 
I 
appreciate 
the 
prompt 
reply.

Best,
Wen 
Tong
 
--
The 
only 
constant 
in 
life 
is 
change.

- 
Original 
Message 

From: 
Igor 
Vaynberg 
[EMAIL PROTECTED]
To: 
users@wicket.apache.org
Sent: 
Wednesday, 
February 
6, 
2008 
10:45:52 
AM
Subject: 
Re: 
adding 
extra 
javascript 
call 
in 
CheckBox


tag.put(onclick,executeSomething();+tag.getattributes().get(onclick));

-igor

On 
Feb 
6, 
2008 
10:39 
AM, 
Beyonder 
Unknown 
[EMAIL PROTECTED] 
wrote:

 
Hi 
All,

 
I 
was 
wondering 
if 
there's 
a 
way 
to 
add 
or 
decorate 
a 
javascript 
call 
in 
CheckBox? 
What 
I 
did 
was:

 
new 
CheckBox(checkBox, 
new 
Model()) 
{
  
  
  
  
  
  
  
  
  
  
 
protected 
void 
onComponentTag(ComponentTag 
tag) 
{
  
  
  
  
  
  
  
  
  
  
  
  
 
tag.put(onclick,executeSomething(););
  
  
  
  
  
  
  
  
  
  
 
}


 
But 
it 
overrides 
the 
original 
onClick 
that 
Wicket 
is 
writing. 
Is 
there 
a 
way 
that 
I 
can 
decorate 
it 
so 
that 
I 
can 
add 
extra 
javaScript 
call 
in 
onClick 
without 
overriding 
the 
original 
click, 
like 
the 
buttons 
has 
this:

  
  
 
protected 
IAjaxCallDecorator 
getAjaxCallDecorator() 
{
  
  
  
  
  
  
  
  
 
return 
new 
AjaxCallDecorator()


 
Thanks 
in 
advance 
and 
happy 
chinese 
new 
year!

 
Best,
 
Wen 
Tong


 
--
 
The 
only 
constant 
in 
life 
is 
change.




  
  
  
 

 
Looking 
for 
last 
minute 
shopping 
deals?
 
Find 
them 
fast 
with 
Yahoo! 
Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

 
-
 
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]






  
  
  

Looking 
for 
last 
minute 
shopping 
deals?  
Find 
them 
fast 
with 
Yahoo! 
Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

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






  
  
  

Never 
miss 
a 
thing.  
Make 
Yahoo 
your 
home 
page. 
http://www.yahoo.com/r/hs

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






  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

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



Re: adding extra javascript call in CheckBox

2008-02-06 Thread Beyonder Unknown
Thanks Igor!


 
--
The only constant in life is change.

- Original Message 
From: Igor Vaynberg [EMAIL PROTECTED]
To: users@wicket.apache.org
Sent: Wednesday, February 6, 2008 2:19:44 PM
Subject: Re: adding extra javascript call in CheckBox


because 
you 
dont 
call 
super.oncomponenttag()

-igor


On 
Feb 
6, 
2008 
2:14 
PM, 
Beyonder 
Unknown 
[EMAIL PROTECTED] 
wrote:

 
Another 
thing 
that 
is 
confusing 
to 
me 
is 
that, 
why 
is 
it 
that 
when 
I 
override 
the 
onComponentTag() 
the 
name 
attribute 
in 
the 
generated 
markup 
disappear. 
I'm 
just 
appending 
function 
in 
the 
onClick 
when 
I 
override 
onComponentTag().

 
Thoughts?

 
Thanks,
 
Wen 
Tong

 
--
 
The 
only 
constant 
in 
life 
is 
change.

 
- 
Original 
Message 

 
From: 
Beyonder 
Unknown 
[EMAIL PROTECTED]
 
To: 
users@wicket.apache.org

 
Sent: 
Wednesday, 
February 
6, 
2008 
1:24:16 
PM
 
Subject: 
Re: 
adding 
extra 
javascript 
call 
in 
CheckBox



 
Thanks
 
Igor!
 
I
 
appreciate
 
the
 
prompt
 
reply.

 
Best,
 
Wen
 
Tong

 
--
 
The
 
only
 
constant
 
in
 
life
 
is
 
change.

 
-
 
Original
 
Message
 

 
From:
 
Igor
 
Vaynberg
 
[EMAIL PROTECTED]
 
To:
 
users@wicket.apache.org
 
Sent:
 
Wednesday,
 
February
 
6,
 
2008
 
10:45:52
 
AM
 
Subject:
 
Re:
 
adding
 
extra
 
javascript
 
call
 
in
 
CheckBox


 
tag.put(onclick,executeSomething();+tag.getattributes().get(onclick));

 
-igor

 
On
 
Feb
 
6,
 
2008
 
10:39
 
AM,
 
Beyonder
 
Unknown
 
[EMAIL PROTECTED]
 
wrote:
 

 

 
Hi
 
All,
 

 

 
I
 
was
 
wondering
 
if
 
there's
 
a
 
way
 
to
 
add
 
or
 
decorate
 
a
 
javascript
 
call
 
in
 
CheckBox?
 
What
 
I
 
did
 
was:
 

 

 
new
 
CheckBox(checkBox,
 
new
 
Model())
 
{
 











 
protected
 
void
 
onComponentTag(ComponentTag
 
tag)
 
{
 













 
tag.put(onclick,executeSomething(););
 











 
}
 

 

 

 
But
 
it
 
overrides
 
the
 
original
 
onClick
 
that
 
Wicket
 
is
 
writing.
 
Is
 
there
 
a
 
way
 
that
 
I
 
can
 
decorate
 
it
 
so
 
that
 
I
 
can
 
add
 
extra
 
javaScript
 
call
 
in
 
onClick
 
without
 
overriding
 
the
 
original
 
click,
 
like
 
the
 
buttons
 
has
 
this:
 

 



 
protected
 
IAjaxCallDecorator
 
getAjaxCallDecorator()
 
{
 









 
return
 
new
 
AjaxCallDecorator()
 

 

 

 
Thanks
 
in
 
advance
 
and
 
happy
 
chinese
 
new
 
year!
 

 

 
Best,
 

 
Wen
 
Tong
 

 

 

 
--
 

 
The
 
only
 
constant
 
in
 
life
 
is
 
change.
 

 

 

 

 




 

 

 
Looking
 
for
 
last
 
minute
 
shopping
 
deals?
 

 
Find
 
them
 
fast
 
with
 
Yahoo!
 
Search.
 
http://tools.search.yahoo.com/newsearch/category.php?category=shopping
 

 

 
-
 

 
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]









 

 
Looking
 
for
 
last
 
minute
 
shopping
 
deals?
 
Find
 
them
 
fast
 
with
 
Yahoo!
 
Search.
 
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

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






  
  
  
 

 
Never 
miss 
a 
thing.  
Make 
Yahoo 
your 
home 
page.
 
http://www.yahoo.com/r/hs


 
-
 
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]






  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

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



adding conditional component

2008-02-04 Thread Beyonder Unknown

Hi all,

How do you guys implement a link that is conditional? Like for example the link 
only shows if a given data is provided. Adding the a-tag in the Markup will 
coz an error if the condition is not met, because AjaxLink is not added.


Thanks!
Wen Tong
 
--
The only constant in life is change.




  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


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



Re: adding conditional component

2008-02-04 Thread Beyonder Unknown

I see. Thanks Igor! 
 
--
The only constant in life is change.

- Original Message 
From: Igor Vaynberg [EMAIL PROTECTED]
To: users@wicket.apache.org
Sent: Monday, February 4, 2008 5:01:31 PM
Subject: Re: adding conditional component


when 
a 
component 
is 
not 
visible 
its 
markup 
tag 
is 
not 
rendered 
either

-igor


On 
Feb 
4, 
2008 
4:16 
PM, 
Beyonder 
Unknown 
[EMAIL PROTECTED] 
wrote:

 
Thanks 
Janos! 
This 
will 
solve 
the 
problem! 
Although 
it 
has 
extra 
unused 
tag 
in 
the 
markup.

 
Regards,
 
Wen 
Tong

 
--
 
The 
only 
constant 
in 
life 
is 
change.


 
- 
Original 
Message 

 
From: 
Janos 
Cserep 
[EMAIL PROTECTED]
 
To: 
users@wicket.apache.org
 
Sent: 
Monday, 
February 
4, 
2008 
12:40:16 
PM
 
Subject: 
Re: 
adding 
conditional 
component


 

 

 
How
 
do
 
you
 
guys
 
implement
 
a
 
link
 
that
 
is
 
conditional?
 
Like
 
for
 
example
 
the
 

 
link
 
only
 
shows
 
if
 
a
 
given
 
data
 
is
 
provided.
 
Adding
 
the
 
a-tag
 
in
 
the
 

 
Markup
 
will
 
coz
 
an
 
error
 
if
 
the
 
condition
 
is
 
not
 
met,
 
because
 
AjaxLink
 
is
 

 
not
 
added.
 

 

 
I
 
usually
 
handle
 
such
 
a
 
situation
 
by
 
overriding
 
the
 
isVisible()
 
method
 
of
 
the
 
component:

 
add(new
 
Link(link)
 
{

 
@Override
 
public
 
boolean
 
isVisible()
 
{


 
boolean
 
externalCondition
 
=
 
;


 
return
 
super.isVisible()
 

 
externalCondition;
 
}

 
});





  
  
  
 

 
Looking 
for 
last 
minute 
shopping 
deals?
 
Find 
them 
fast 
with 
Yahoo! 
Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping


 
-
 
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]






  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

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



how to add check listener?

2008-01-28 Thread Beyonder Unknown

Hi All,

Have anybody tried  adding a check listener to the Check component (Not 
CheckBox ) ?

Thanks in advance!

Regards,
Wen Tong
 
--
The only constant in life is change.




  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

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



IndicatingOrderByBorder?

2008-01-28 Thread Beyonder Unknown

Hi All,


Is there such class as IndicatingOrderByBorder? I need to display some progress 
icon while sorting.

Thanks,
Wen Tong
 
--
The only constant in life is change.




  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

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



Re: binding problem :(

2008-01-25 Thread Beyonder Unknown

Actually when I do the form.getModelObject() the debugger shows that it added a 
nestedModel.

Model:classname=[org.apache.wicket.model.CompoundPropertyModel]:nestedModel=[[false,
 false]]
 
--
The only constant in life is change.

- Original Message 
From: Martijn Dashorst [EMAIL PROTECTED]
To: users@wicket.apache.org
Sent: Thursday, January 24, 2008 11:42:26 PM
Subject: Re: binding problem :(


Do 
you 
use 
an 
item 
reuse 
strategy 
for 
the 
repeater?
Martijn

On 
1/25/08, 
Beyonder 
Unknown 
[EMAIL PROTECTED] 
wrote:


 
I 
think 
for 
some 
reason, 
when 
I 
submit, 
it 
overrides 
the 
model 
in 
the
 
form. 
and 
when 
I 
do 
form.getModelObject() 
it 
returns 
a 
wrong 
value. 
I'm
 
suspecting 
that 
its 
in 
the 
bind 
part 
of 
my 
populateItem(). 
I 
don't 
know 
why
 
though.

 
Best,
 
Wen 
Tong

 
--
 
The 
only 
constant 
in 
life 
is 
change.

 
- 
Original 
Message 

 
From: 
Timo 
Rantalaiho 
[EMAIL PROTECTED]
 
To: 
users@wicket.apache.org
 
Sent: 
Thursday, 
January 
24, 
2008 
8:01:57 
PM
 
Subject: 
Re: 
binding 
problem 
:(


 
On
 
Thu,
 
24
 
Jan
 
2008,
 
Beyonder
 
Unknown
 
wrote:
 

 
For
 
some
 
reason,
 
my
 
checkbox
 
doesn't
 
bind
 
to
 
my
 
model.
 
I
 
have
 
a
 

 
DataView
 
that
 
contains
 
the
 
Check
 
component,
 
and
 
in
 
my
 
button,
 
onClick,
 

 
I
 
use
 
form.getModelObject(),
 
but
 
the
 
objects
 
doesn't
 
get
 
set.
 
(Earlier
 

 
than
 
this,
 
I
 
tried
 
AjaxButton
 
and
 
the
 
form.getModelObject()
 
returns
 
an
 

 
array
 
of
 
boolean)

 
How
 
you
 
do
 
submit
 
the
 
form?
 
Are
 
there
 
validation
 
errors?
 
Remember
 
that
 
aonly
 
after
 
successful
 
validation
 
and
 
submit
 
the
 
form
 
and
 
FormComponents
 
get
 
their
 
models
 
updated
 
with
 
values
 
from
 
the
 
browser.

 
I
 
don't
 
know
 
if
 
you
 
need
 
to
 
use
 
CheckGroup.
 
I
 
never
 
used
 
it,
 
just
 
CheckBoxes.

 

 
IndicatingAjaxLink
 
link
 
=
 
IndicatingAjaxLink(link)
 
{
 

 









 
@SuppressWarnings(unchecked)
 









 
@Override
 









 
public
 
void
 
onClick(AjaxRequestTarget
 
target)
 
{
 











 
CollectionContact
 
contactList
 
=
 

 
(CollectionContact)
 
form.getModelObject();
 











 
if(contactList
 
!=
 
null
 

 
!contactList.isEmpty())
 
{
 













 
for(ContactWrapper
 
contactWrapper:
 
contactList)
 

 
{
 















 
System.out.println(contact
 
selected:
 

 
+
 

 
contactList.isSelected()
 
);
 











 
}









 









 
}

 
There
 
is
 
something
 
strange
 
here
 
as
 
Collection
 
shouldn't
 
have
 
isSelected().
 
The
 
isEmpty()
 
call
 
is
 
also
 
redundant.
 
And
 
just
 
clicking
 
a
 
link
 
doesn't
 
submit
 
the
 
form,
 
you
 
should
 
either
 
submit
 
the
 
form
 
(for
 
example
 
with
 
AjaxFormSubmittingBehavior)
 
or
 
process
 
your
 
check
 
box
 
FormComponents
 
manually
 
(probably
 
AjaxFormComponentUpdatingBehavior
 
is
 
needed
 
to
 
get
 
the
 
values
 
to
 
server).

 
Best
 
wishes,
 
Timo

 
--
 
Timo
 
Rantalaiho





 
Reaktor
 
Innovations
 
Oy

 
URL:
 
http://www.ri.fi/
 


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







  
  
  
 

 
Never 
miss 
a 
thing.  
Make 
Yahoo 
your 
home 
page.
 
http://www.yahoo.com/r/hs

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




-- 
Buy 
Wicket 
in 
Action: 
http://manning.com/dashorst
Apache 
Wicket 
1.3.0 
is 
released
Get 
it 
now: 
http://www.apache.org/dyn/closer.cgi/wicket/1.3.0





  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


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



Re: binding problem :(

2008-01-25 Thread Beyonder Unknown

Hi Martjin,

No. I don't know about item resuse strategy. 

Thanks,
Wen Tong
 
--
The only constant in life is change.

- Original Message 
From: Martijn Dashorst [EMAIL PROTECTED]
To: users@wicket.apache.org
Sent: Thursday, January 24, 2008 11:42:26 PM
Subject: Re: binding problem :(


Do 
you 
use 
an 
item 
reuse 
strategy 
for 
the 
repeater?
Martijn

On 
1/25/08, 
Beyonder 
Unknown 
[EMAIL PROTECTED] 
wrote:


 
I 
think 
for 
some 
reason, 
when 
I 
submit, 
it 
overrides 
the 
model 
in 
the
 
form. 
and 
when 
I 
do 
form.getModelObject() 
it 
returns 
a 
wrong 
value. 
I'm
 
suspecting 
that 
its 
in 
the 
bind 
part 
of 
my 
populateItem(). 
I 
don't 
know 
why
 
though.

 
Best,
 
Wen 
Tong

 
--
 
The 
only 
constant 
in 
life 
is 
change.

 
- 
Original 
Message 

 
From: 
Timo 
Rantalaiho 
[EMAIL PROTECTED]
 
To: 
users@wicket.apache.org
 
Sent: 
Thursday, 
January 
24, 
2008 
8:01:57 
PM
 
Subject: 
Re: 
binding 
problem 
:(


 
On
 
Thu,
 
24
 
Jan
 
2008,
 
Beyonder
 
Unknown
 
wrote:
 

 
For
 
some
 
reason,
 
my
 
checkbox
 
doesn't
 
bind
 
to
 
my
 
model.
 
I
 
have
 
a
 

 
DataView
 
that
 
contains
 
the
 
Check
 
component,
 
and
 
in
 
my
 
button,
 
onClick,
 

 
I
 
use
 
form.getModelObject(),
 
but
 
the
 
objects
 
doesn't
 
get
 
set.
 
(Earlier
 

 
than
 
this,
 
I
 
tried
 
AjaxButton
 
and
 
the
 
form.getModelObject()
 
returns
 
an
 

 
array
 
of
 
boolean)

 
How
 
you
 
do
 
submit
 
the
 
form?
 
Are
 
there
 
validation
 
errors?
 
Remember
 
that
 
aonly
 
after
 
successful
 
validation
 
and
 
submit
 
the
 
form
 
and
 
FormComponents
 
get
 
their
 
models
 
updated
 
with
 
values
 
from
 
the
 
browser.

 
I
 
don't
 
know
 
if
 
you
 
need
 
to
 
use
 
CheckGroup.
 
I
 
never
 
used
 
it,
 
just
 
CheckBoxes.

 

 
IndicatingAjaxLink
 
link
 
=
 
IndicatingAjaxLink(link)
 
{
 

 









 
@SuppressWarnings(unchecked)
 









 
@Override
 









 
public
 
void
 
onClick(AjaxRequestTarget
 
target)
 
{
 











 
CollectionContact
 
contactList
 
=
 

 
(CollectionContact)
 
form.getModelObject();
 











 
if(contactList
 
!=
 
null
 

 
!contactList.isEmpty())
 
{
 













 
for(ContactWrapper
 
contactWrapper:
 
contactList)
 

 
{
 















 
System.out.println(contact
 
selected:
 

 
+
 

 
contactList.isSelected()
 
);
 











 
}









 









 
}

 
There
 
is
 
something
 
strange
 
here
 
as
 
Collection
 
shouldn't
 
have
 
isSelected().
 
The
 
isEmpty()
 
call
 
is
 
also
 
redundant.
 
And
 
just
 
clicking
 
a
 
link
 
doesn't
 
submit
 
the
 
form,
 
you
 
should
 
either
 
submit
 
the
 
form
 
(for
 
example
 
with
 
AjaxFormSubmittingBehavior)
 
or
 
process
 
your
 
check
 
box
 
FormComponents
 
manually
 
(probably
 
AjaxFormComponentUpdatingBehavior
 
is
 
needed
 
to
 
get
 
the
 
values
 
to
 
server).

 
Best
 
wishes,
 
Timo

 
--
 
Timo
 
Rantalaiho





 
Reaktor
 
Innovations
 
Oy

 
URL:
 
http://www.ri.fi/
 


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







  
  
  
 

 
Never 
miss 
a 
thing.  
Make 
Yahoo 
your 
home 
page.
 
http://www.yahoo.com/r/hs

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




-- 
Buy 
Wicket 
in 
Action: 
http://manning.com/dashorst
Apache 
Wicket 
1.3.0 
is 
released
Get 
it 
now: 
http://www.apache.org/dyn/closer.cgi/wicket/1.3.0





  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

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



Re: listView sorting question

2008-01-24 Thread Beyonder Unknown
Thanks Thomas. I used the SortableDataProvider and it solved my problem. I'm 
think hibernate caches it. But you can always use a filter to apply second 
level caching using OS Cache or any third party framework. (Although I'm sure 
you probably have this already).

Best,
Wen Tong
 
--
The only constant in life is change.

- Original Message 
From: Thomas Kappler [EMAIL PROTECTED]
To: users@wicket.apache.org
Sent: Thursday, January 24, 2008 12:47:35 AM
Subject: Re: listView sorting question


On Jan 23, 2008 10:35 PM, Beyonder Unknown [EMAIL PROTECTED]
 wrote:
 The use case is that, I have a page that renders a listview, and I
 need to add a link that sorts the list when clicked. My listView uses
 LoadableDetachableModel that retrieves data using hibernate backend.

In my current app, I have a ListView with three different ways of
sorting, each using several fields (columns of the ListView).  The
user can choose the ordering from a DropDownChoice.  I implemented it
with databinder's HibernateListModel.

The sorting is encapsulated in ICriteriaBuilders, with one abstract
one containing the query itself, which is the always the same.

private abstract class FicheSort implements ICriteriaBuilder {
HibernateListModel list = new HibernateListModel(Fiche.class,
 this);
public void build(Criteria criteria) {
criteria.add( fichesForCurrentLemma() );   // the query
 itself
// ...
}
protected abstract String getDisplayName();
}
private class SortRenderer implements IChoiceRenderer {
public Object getDisplayValue(Object object) {
return ((FicheSort)object).getDisplayName();
}
public String getIdValue(Object object, int index) {
return String.valueOf(index);
}
}
private class AlphabeticalSort extends FicheSort {
@Override
public void build(Criteria criteria) {
super.build(criteria);
criteria.addOrder( Order.asc(entry) );
criteria.addOrder( Order.asc(siglumDate) );
criteria.addOrder( Order.asc(siglum) );
}
@Override
protected String getDisplayName() {
return Alphabetisch;
}
}
   // Two more like AlphabeticalSort
   // ...

With one of the sorting methods, I instantiate a databinder
HibernateListModel, which is the model for the ListView:

final HibernateListModel alphabeticalFicheList =
new HibernateListModel(Fiche.class, new
 AlphabeticalSort());

final FicheListView sortableFicheView = new
FicheListView(sortableFicheView,
alphabeticalFicheList); 

Changing the sorting method when the user selects another choice in
the DDC, whose model is a List of all the concrete ICriteriaBuilders,
is simply:

protected void onUpdate(AjaxRequestTarget target) {
FicheSort sort = (FicheSort)
 orderChoice.getModelObject();
sortableFicheView.setModel(sort.list);
target.addComponent(sortableFicheViewContainer);
}

The downside is that the data is retrieved from the DB each time,
although I'm not sure whether Hibernate or the DB itself recognize
that and cache accordingly.

Cheers,
Thomas

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






  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

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



Re: progress component?

2008-01-24 Thread Beyonder Unknown

That's correct! Thank you, Martjin!

Best,
Wen Tong
 
--
The only constant in life is change.

- Original Message 
From: Martijn Dashorst [EMAIL PROTECTED]
To: users@wicket.apache.org
Sent: Wednesday, January 23, 2008 11:06:52 PM
Subject: Re: progress component?


I think you are looking for IndicatingAjax** components from the Wicket
Extensions package.
Martijn

On 1/24/08, Beyonder Unknown [EMAIL PROTECTED] wrote:


 Hi All,
 I was wondering if there's a way to implement a progress component in
 wicket? The scenario is when I click a button it takes a while to
 process
 everything and reload  some panels in the page. I'm thinking of
 displaying
 progress dots or something similar to tell the user that its
 processing,
 instead of click the button again.

 Any help will be greatly appreciated.

 Warmest regards,
 Wen Tong

 --
 The only constant in life is change.





  
 

 Looking for last minute shopping deals?
 Find them fast with Yahoo! Search.

 http://tools.search.yahoo.com/newsearch/category.php?category=shopping

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




-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0





  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


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



binding problem :(

2008-01-24 Thread Beyonder Unknown

Hi All,

For some reason, my checkbox doesn't bind to my model. I have a
 DataView that contains the Check component, and in my button, onClick, I use 
form.getModelObject(), but the objects doesn't get set. (Earlier than this, I 
tried AjaxButton and the form.getModelObject() returns an array of boolean) 

 Is there something missing? Here's the scenario:


CompoundPropertyModel compoundPropertyModel = new
 CompoundPropertyModel(detachableModel);

final Form myform = new Form(formId,compoundPropertyModel);

CheckGroup checkGroup = new
 CheckGroup(checkGroup,compoundPropertyModel);
checkGroup.add(new CheckGroupSelector(groupSelector));

SortableDataProvider dp = new SortableContactDataProvider();

DataView dataView = new DataView(contacts,dp) {

...
protected void populateItem(Item item) {
   Contact contact = (Contact) item.getModelObject();
item.setModel(new CompoundPropertyModel(contact));
item.add(new Check(selected) );
}

};
checkGroup.add(dataView);
myForm.add(checkGroup);


IndicatingAjaxLink link = IndicatingAjaxLink(link) {

@SuppressWarnings(unchecked)
@Override
public void onClick(AjaxRequestTarget target) {
CollectionContact contactList =
 (CollectionContact) form.getModelObject();
if(contactList != null  !contactList.isEmpty()) {
for(ContactWrapper contactWrapper: contactList)
 {
 System.out.println(contact selected:  +
 contactList.isSelected() );
}
}





}'
myForm.add(link);


Thanks for the help! Any suggestions/comments will be greatly appreciated!

Best,
Wen Tong

 
--
The only constant in life is change.





  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

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



Re: binding problem :(

2008-01-24 Thread Beyonder Unknown

Hi Timo,

Thanks for the insight. I have to use CheckGroup, because i have to provide a 
check all/uncheck all checkbox. I got a typo there, the isSelected() is 
supposed to be part of Contact. And you're right, the isEmpty() is redundant if 
I use the for-each type loop. That's a remnant of the old code I tried earlier.

I changed the AjaxLink to AjaxButton, and when I inspect the form in my 
debugger, it holds the model, and a list of boolean.

Thanks,
Wen Tong
 
--
The only constant in life is change.

- Original Message 
From: Timo Rantalaiho [EMAIL PROTECTED]
To: users@wicket.apache.org
Sent: Thursday, January 24, 2008 8:01:57 PM
Subject: Re: binding problem :(


On 
Thu, 
24 
Jan 
2008, 
Beyonder 
Unknown 
wrote:
 
For 
some 
reason, 
my 
checkbox 
doesn't 
bind 
to 
my 
model. 
I 
have 
a
 
DataView 
that 
contains 
the 
Check 
component, 
and 
in 
my 
button, 
onClick,
 
I 
use 
form.getModelObject(), 
but 
the 
objects 
doesn't 
get 
set. 
(Earlier
 
than 
this, 
I 
tried 
AjaxButton 
and 
the 
form.getModelObject() 
returns 
an
 
array 
of 
boolean) 

How 
you 
do 
submit 
the 
form? 
Are 
there 
validation 
errors?
Remember 
that 
aonly 
after 
successful 
validation 
and 
submit
the 
form 
and 
FormComponents 
get 
their 
models 
updated 
with
values 
from 
the 
browser.

I 
don't 
know 
if 
you 
need 
to 
use 
CheckGroup. 
I 
never 
used 
it,
just 
CheckBoxes.

 
IndicatingAjaxLink 
link 
= 
IndicatingAjaxLink(link) 
{
 
  
  
  
  
  
  
  
  
 
@SuppressWarnings(unchecked)
  
  
  
  
  
  
  
  
 
@Override
  
  
  
  
  
  
  
  
 
public 
void 
onClick(AjaxRequestTarget 
target) 
{
  
  
  
  
  
  
  
  
  
  
 
CollectionContact 
contactList 
=
  
(CollectionContact) 
form.getModelObject();
  
  
  
  
  
  
  
  
  
  
 
if(contactList 
!= 
null 
 
!contactList.isEmpty()) 
{
  
  
  
  
  
  
  
  
  
  
  
  
 
for(ContactWrapper 
contactWrapper: 
contactList)
  
{
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
System.out.println(contact 
selected: 
 
+
  
contactList.isSelected() 
);
  
  
  
  
  
  
  
  
  
  
 
}  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
 
}

There 
is 
something 
strange 
here 
as 
Collection 
shouldn't 
have
isSelected(). 
The 
isEmpty() 
call 
is 
also 
redundant. 
And 
just
clicking 
a 
link 
doesn't 
submit 
the 
form, 
you 
should 
either
submit 
the 
form 
(for 
example 
with 
AjaxFormSubmittingBehavior)
or 
process 
your 
check 
box 
FormComponents 
manually 
(probably
AjaxFormComponentUpdatingBehavior 
is 
needed 
to 
get 
the
values 
to 
server).

Best 
wishes,
Timo

-- 
Timo 
Rantalaiho  
  
  
  
  
 
Reaktor 
Innovations 
Oy  
  
URL: 
http://www.ri.fi/ 


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






  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


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



Re: binding problem :(

2008-01-24 Thread Beyonder Unknown

I think for some reason, when I submit, it overrides the model in the form. and 
when I do form.getModelObject() it returns a wrong value. I'm suspecting that 
its in the bind part of my populateItem(). I don't know why though.

Best,
Wen Tong
 
--
The only constant in life is change.

- Original Message 
From: Timo Rantalaiho [EMAIL PROTECTED]
To: users@wicket.apache.org
Sent: Thursday, January 24, 2008 8:01:57 PM
Subject: Re: binding problem :(


On 
Thu, 
24 
Jan 
2008, 
Beyonder 
Unknown 
wrote:
 
For 
some 
reason, 
my 
checkbox 
doesn't 
bind 
to 
my 
model. 
I 
have 
a
 
DataView 
that 
contains 
the 
Check 
component, 
and 
in 
my 
button, 
onClick,
 
I 
use 
form.getModelObject(), 
but 
the 
objects 
doesn't 
get 
set. 
(Earlier
 
than 
this, 
I 
tried 
AjaxButton 
and 
the 
form.getModelObject() 
returns 
an
 
array 
of 
boolean) 

How 
you 
do 
submit 
the 
form? 
Are 
there 
validation 
errors?
Remember 
that 
aonly 
after 
successful 
validation 
and 
submit
the 
form 
and 
FormComponents 
get 
their 
models 
updated 
with
values 
from 
the 
browser.

I 
don't 
know 
if 
you 
need 
to 
use 
CheckGroup. 
I 
never 
used 
it,
just 
CheckBoxes.

 
IndicatingAjaxLink 
link 
= 
IndicatingAjaxLink(link) 
{
 
  
  
  
  
  
  
  
  
 
@SuppressWarnings(unchecked)
  
  
  
  
  
  
  
  
 
@Override
  
  
  
  
  
  
  
  
 
public 
void 
onClick(AjaxRequestTarget 
target) 
{
  
  
  
  
  
  
  
  
  
  
 
CollectionContact 
contactList 
=
  
(CollectionContact) 
form.getModelObject();
  
  
  
  
  
  
  
  
  
  
 
if(contactList 
!= 
null 
 
!contactList.isEmpty()) 
{
  
  
  
  
  
  
  
  
  
  
  
  
 
for(ContactWrapper 
contactWrapper: 
contactList)
  
{
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
System.out.println(contact 
selected: 
 
+
  
contactList.isSelected() 
);
  
  
  
  
  
  
  
  
  
  
 
}  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
 
}

There 
is 
something 
strange 
here 
as 
Collection 
shouldn't 
have
isSelected(). 
The 
isEmpty() 
call 
is 
also 
redundant. 
And 
just
clicking 
a 
link 
doesn't 
submit 
the 
form, 
you 
should 
either
submit 
the 
form 
(for 
example 
with 
AjaxFormSubmittingBehavior)
or 
process 
your 
check 
box 
FormComponents 
manually 
(probably
AjaxFormComponentUpdatingBehavior 
is 
needed 
to 
get 
the
values 
to 
server).

Best 
wishes,
Timo

-- 
Timo 
Rantalaiho  
  
  
  
  
 
Reaktor 
Innovations 
Oy  
  
URL: 
http://www.ri.fi/ 


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






  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

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



listView sorting question

2008-01-23 Thread Beyonder Unknown

Hi All,

I was wondering if there's a better way to sort a list view. The use case is 
that, I have a page that renders a listview, and I need to add a link that 
sorts the list when clicked. My listView uses LoadableDetachableModel that 
retrieves data using hibernate backend.

Any help will be greatly appreciated!

Thanks,
WenTong
 
--
The only constant in life is change.




  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

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



Re: listView sorting question

2008-01-23 Thread Beyonder Unknown
Thanks Igor! I appreciate it.

Regards,
Wen Tong
 
--
The only constant in life is change.

- Original Message 
From: Igor Vaynberg [EMAIL PROTECTED]
To: users@wicket.apache.org
Sent: Wednesday, January 23, 2008 1:43:06 PM
Subject: Re: listView sorting question


there are sortable grids examples in wicket-examples under repeaters.

wicketstuff.org/wicket13/repeater

-igor


On Jan 23, 2008 1:35 PM, Beyonder Unknown [EMAIL PROTECTED] wrote:

 Hi All,

 I was wondering if there's a better way to sort a list view. The use
 case is that, I have a page that renders a listview, and I need to add
 a link that sorts the list when clicked. My listView uses
 LoadableDetachableModel that retrieves data using hibernate backend.

 Any help will be greatly appreciated!

 Thanks,
 WenTong

 --
 The only constant in life is change.




  
 

 Looking for last minute shopping deals?
 Find them fast with Yahoo! Search.
  http://tools.search.yahoo.com/newsearch/category.php?category=shopping

 -
 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]






  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

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



progress component?

2008-01-23 Thread Beyonder Unknown

Hi All,
I was wondering if there's a way to implement a progress component in wicket? 
The scenario is when I click a button it takes a while to process everything 
and reload  some panels in the page. I'm thinking of displaying progress dots 
or something similar to tell the user that its processing, instead of click the 
button again.

Any help will be greatly appreciated.

Warmest regards,
Wen Tong
 
--
The only constant in life is change.




  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

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



Re: how to reference component in RequestTarget

2008-01-15 Thread Beyonder Unknown

Thanks Timo,

Right now, I just put it in the constructor of panelB. But then again, panelB 
is tied up to panelA. :(

I'm going to try your solution!

Thanks,
Allan
 
--
The only constant in life is change.

- Original Message 
From: Timo Rantalaiho [EMAIL PROTECTED]
To: users@wicket.apache.org
Sent: Tuesday, January 15, 2008 8:49:28 AM
Subject: Re: how to reference component in RequestTarget


On Mon, 14 Jan 2008, Beyonder Unknown wrote:
 I was wondering what is the best practice when referencing components
 inside an onClick/onSubmit. Normally:
 
 public void onClick(AjaxRequestTarget target) {
   //do things here.
 //update these components.
   target.addComponent(panelA);
   target.addComponent(panelB);
 
 }
 
 But what if you don't have direct access to PanelA or PanelB? 

As far as I know, there is currently no single recommended
way of doing this. We've tried abstract callback methods and
different ajax-update-listener objects but have found all of
them left wanting.

Sometimes something like this

getPage().visitChildren(PanelA.class, new IVisitor() {
... target.addComponent(component);
...
}

might work and we've used a more generic solution along
those lines as well. 

You can also search the list on this, one thread was called
something like inter component events.

Best wishes,
Timo

-- 
Timo Rantalaiho   
Reaktor Innovations OyURL: http://www.ri.fi/ 

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






  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

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



Re: wicket to generate javascript?

2008-01-15 Thread Beyonder Unknown

Thanks Igor, it works!

Best,
WT
 
--
The only constant in life is change.

- Original Message 
From: Igor Vaynberg [EMAIL PROTECTED]
To: users@wicket.apache.org
Sent: Tuesday, January 15, 2008 2:55:27 PM
Subject: Re: wicket to generate javascript?


see IHeaderContributor

-igor


On Jan 15, 2008 2:50 PM, Beyonder Unknown [EMAIL PROTECTED] wrote:

 hi All,

 Is there a way to generate a javaScript variable in wicket? How can I
 generate this javascript below:

 script type=text/javascript
 var GLOBALVARS = test;

   /script

 to appear in my markup when rendered?


 Thanks,
 Wen Tong

 --
 The only constant in life is change.




  
 

 Looking for last minute shopping deals?
 Find them fast with Yahoo! Search.
  http://tools.search.yahoo.com/newsearch/category.php?category=shopping

 -
 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]






  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

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



Re: how to reference component in RequestTarget

2008-01-15 Thread Beyonder Unknown

Thanks Timo,

I'll try this one too. Does the visitChildren() have potential performance 
issue? For example, if you have lots of panels in a page you have to traverse 
and check them all right?

public final java.lang.Object visitChildren(java.lang.Class clazz,
Component.IVisitor visitor)
 Thanks,
 WT

--
The only constant in life is change.

- Original Message 
From: Timo Rantalaiho [EMAIL PROTECTED]
To: users@wicket.apache.org
Sent: Tuesday, January 15, 2008 7:40:55 PM
Subject: Re: how to reference component in RequestTarget


On Tue, 15 Jan 2008, Beyonder Unknown wrote:
 I'm going to try your solution!

OK, remember that you can also use marker interfaces for
shooting the visitor. For example, you can make PanelA and
PanelB classes both implement a UserSelectionEventReceiver
interface and then when a user is selected with an Ajax
event, process all UserSelectionEventReceiver components on
the page with the visitor.

Best wishes,
Timo

-- 
Timo Rantalaiho   
Reaktor Innovations OyURL: http://www.ri.fi/ 

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






  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

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



how to reference component in RequestTarget

2008-01-14 Thread Beyonder Unknown

Hi All,

I was wondering what is the best practice when referencing components inside an 
onClick/onSubmit. Normally:

public void onClick(AjaxRequestTarget target) {
  //do things here.
//update these components.
  target.addComponent(panelA);
  target.addComponent(panelB);

}

But what if you don't have direct access to PanelA or PanelB? 

Any help will be greatly appreciated!

Thanks,
Wen Tong
 
--
The only constant in life is change.




  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


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



Re: how to reference component in RequestTarget

2008-01-14 Thread Beyonder Unknown

Hi Martijn,

I have a page, that contains a panel (PanelA), and link. The link instantiate 
modalWindow that uses PanelB.


MyPage contains:
Panel panelA = new PanelA();
add(panelA);
final ModalWindow modalWindow = new ModalWindow(modalwindow);
modalWindow.setContent( new PanelB(modalWindow.getContentId()));



in PanelB:

  AjaxButton ajaxButton = new AjaxButton(test) {

  protected void onSubmit(AjaxRequestTarget target, Form form) {
 // how do i get reference to PanelA?
 // or to any component in PanelA ?  
   }

 };


Thanks,
Allan

--
The only constant in life is change.

- Original Message 
From: Martijn Lindhout [EMAIL PROTECTED]
To: users@wicket.apache.org
Sent: Monday, January 14, 2008 2:23:51 PM
Subject: Re: how to reference component in RequestTarget


what is exactly the usecase?

2008/1/14, Beyonder Unknown [EMAIL PROTECTED]:


 Hi All,

 I was wondering what is the best practice when referencing components
 inside an onClick/onSubmit. Normally:

 public void onClick(AjaxRequestTarget target) {
   //do things here.
 //update these components.
   target.addComponent(panelA);
   target.addComponent(panelB);

 }

 But what if you don't have direct access to PanelA or PanelB?

 Any help will be greatly appreciated!

 Thanks,
 Wen Tong

 --
 The only constant in life is change.





  
 

 Be a better friend, newshound, and
 know-it-all with Yahoo! Mobile.  Try it now.
 http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ


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




-- 
Martijn Lindhout
JointEffort IT Services
http://www.jointeffort.nl
[EMAIL PROTECTED]
+31 (0)6 18 47 25 29





  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

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



WicketServlet vs. WicketFilter

2008-01-10 Thread Beyonder Unknown

Hi All,

Are there any criteria in choosing WicketFilter over WicketServlet? In the api 
it says, Please use WicketFilter if you require advanced chaining of 
resources. What does this mean? If you have deeply rooted Panel within a Panel 
with a Panel?

Thanks,
WT



--
The only constant in life is change.




  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


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



Re: WicketServlet vs. WicketFilter

2008-01-10 Thread Beyonder Unknown


Thanks Igor! I understand it now.

Best,
WT
 
--
The only constant in life is change.

- Original Message 
From: Igor Vaynberg [EMAIL PROTECTED]
To: users@wicket.apache.org
Sent: Thursday, January 10, 2008 11:48:04 AM
Subject: Re: WicketServlet vs. WicketFilter


sometimes you might want to chain preprocessors/postprocessors around
wicket - in that case you have to use filters since you cant chain
servlets.

also wicket filter is much better at handling /* mapping

generally i would recommend wicketfilter. wicketservlet is there as a
backup for situations where it is harder to use the filter - for
example weblogic has pretty broken filter support, also some osgi
containers only support registration of servlets.

-igor


On Jan 10, 2008 11:44 AM, Beyonder Unknown [EMAIL PROTECTED]
 wrote:

 Hi All,

 Are there any criteria in choosing WicketFilter over WicketServlet?
 In the api it says, Please use WicketFilter if you require advanced
 chaining of resources. What does this mean? If you have deeply rooted
 Panel within a Panel with a Panel?

 Thanks,
 WT



 --
 The only constant in life is change.




  
 

 Be a better friend, newshound, and
 know-it-all with Yahoo! Mobile.  Try it now.
  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ


 -
 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]






  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


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



the flow of wicket

2008-01-10 Thread Beyonder Unknown

Hi All,

I am studying wicket from the WicketFilter to the WebApplication, but I don't 
understand the concept of RequestCycleProcessor and how does it get invoked.  I 
read the Wicket In Action and Pro Wicket but the explanation is not that 
detailed. Does anybody know of a primer with regards to how Wicket process 
really works? I want to know the flow, from startup of the servlet container, 
like what is being instantiated, and when  request is made. 

I can't seem to trace how RequestTarget being consumed by 
RequestCycleProcessor, from the page.

Thank you very much!

Best,
Wen Tong
 
--
The only constant in life is change.




  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


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



Re: the flow of wicket

2008-01-10 Thread Beyonder Unknown

Thanks for the info, Igor. I'll definitely attached the code and trace it from 
doGet(). 

Best,
Wen Tong
 
--
The only constant in life is change.

- Original Message 
From: Igor Vaynberg [EMAIL PROTECTED]
To: users@wicket.apache.org
Sent: Thursday, January 10, 2008 5:55:13 PM
Subject: Re: the flow of wicket


On Jan 10, 2008 5:47 PM, Beyonder Unknown [EMAIL PROTECTED] wrote:

 Hi Igor,
 Since it got mentioned in the book, I just thought I'd asked for more
 information.

IRequestCycleProcessor has javadoc which explains what it is used for.
the actual workflow is unimportant for newbies. if you really do care
about it then set the breakpoint and walk it.

I was also wondering how does it differ from the traditional model 2
MVC like struts, spring-mvc, etc.

what is it? if it is wicket then the two major differences is that
in wicket each instance of component acts as MVC, so a page MVC is
made up of a bunch of other smaller MVCs. the second biggest
difference is that wicket maintains the state of each of these MVCs
for you so you dont have to manually encode it in url/post params...

 I tried adding breakpoints, but I lack the source. I guess i have to
 attached it in my eclipse.

the source is out there, not that hard to get it or attach it.

 It would be faster if you can help us. :)

sure, it would probably be faster if i coded your project for you too
 :)

-igor



 Thanks,
 Wen Tong

 --
 The only constant in life is change.

 - Original Message 
 From: Igor Vaynberg [EMAIL PROTECTED]
 To: users@wicket.apache.org

 Sent: Thursday, January 10, 2008 5:09:00 PM
 Subject: Re: the flow of wicket


 you guys want to know about internal implementation details. it has
 no
 publically exposed api, so why should you care? why should we
 document
 something that can change without affecting our users? does the jee
 spec detail how the request gets to the servlet? no, that is left up
 to the implementor of the servlet container.

 you want to know about it?  set a break point in
 wicketfilter.dofilter() and walk the code.

 -igor


 On Jan 10, 2008 5:06 PM, Dan Kaplan [EMAIL PROTECTED] wrote:
  seconded
 
 
  -Original Message-
  From: Beyonder Unknown [mailto:[EMAIL PROTECTED]
  Sent: Thursday, January 10, 2008 5:05 PM
  To: WICKET USER
  Subject: the flow of wicket
 
 
  Hi All,
 
  I am studying wicket from the WicketFilter to the WebApplication,
 but
  I
  don't understand the concept of RequestCycleProcessor and how does
 it
  get
  invoked.  I read the Wicket In Action and Pro Wicket but the
  explanation
  is not that detailed. Does anybody know of a primer with regards to
  how
  Wicket process really works? I want to know the flow, from startup
 of
  the
  servlet container, like what is being instantiated, and when
  request
  is
  made.
 
  I can't seem to trace how RequestTarget being consumed by
  RequestCycleProcessor, from the page.
 
  Thank you very much!
 
  Best,
  Wen Tong
 
  --
  The only constant in life is change.
 
 
 
 
 
 

  
  
  Be a better friend, newshound, and
  know-it-all with Yahoo! Mobile.  Try it now.
  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
 
 
 
 -
  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]






  
 

 Looking for last minute shopping deals?
 Find them fast with Yahoo! Search.
  http://tools.search.yahoo.com/newsearch/category.php?category=shopping


 -
 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]






  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

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



Re: rendering a panel

2008-01-07 Thread Beyonder Unknown

Hi Igor,

Thank you Igor! I appreciate the reply. How do I implement DetachableModel in  
AjaxTabbedPanel? If the button it click, it should update the tabs. I build a 
DetachableModel that returns a Collection in its load() method. Should I use 
this instead of ListAbstractTab when I instantiate AjaxTabbedPanel() ?

Thanks,
WT
 
--
The only constant in life is change.

- Original Message 
From: Igor Vaynberg [EMAIL PROTECTED]
To: users@wicket.apache.org
Sent: Monday, January 7, 2008 1:55:16 PM
Subject: Re: rendering a panel


panel2 should use a detachable model, that way it automatically
updates when rerendered. no need to call render() or anything else.
see the wiki page on detachable models.

-igor


On Jan 7, 2008 1:33 PM, Beyonder Unknown [EMAIL PROTECTED] wrote:

 Hi All,

 Greetings! I was wondering if any of you here encountered this
 situation. I have a 2 Panels. Panel1 writes something in the database, and it
 should update Panel2. I tried adding Panel2.render() inside an
 onSubmit() button of Panel1 but it doesn't work. I also tried
 Panel2.renderComponents() but  with no luck. To fix this, what I did is just to
 instantiate a new instance of Panel2.
 Is there a better approach to this? Does Panel.render() does
 cascading render?

 Thanks,
 Wen Tong

 The only constant in life is change.




  
 

 Looking for last minute shopping deals?
 Find them fast with Yahoo! Search.
  http://tools.search.yahoo.com/newsearch/category.php?category=shopping

 -
 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]






  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


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



Re: rendering a panel

2008-01-07 Thread Beyonder Unknown

Hi Igor,

The Panels use detachableModels already. Sorry for not being clear. What I want 
to achieve is, when Panel1 save something in the database, the tabbedPanel 
should refresh and add additional tab (based on the data saved by Panel1 ). 
Thoughts?

Thanks,
WT
 
--
The only constant in life is change.

- Original Message 
From: Igor Vaynberg [EMAIL PROTECTED]
To: users@wicket.apache.org
Sent: Monday, January 7, 2008 2:30:32 PM
Subject: Re: rendering a panel


the panel that is returned form abstracttab.getpanel() is the one that
should use detachable models.

-igor


On Jan 7, 2008 2:27 PM, Beyonder Unknown [EMAIL PROTECTED] wrote:

 Hi Igor,

 Thank you Igor! I appreciate the reply. How do I implement
 DetachableModel in  AjaxTabbedPanel? If the button it click, it should update 
the
 tabs. I build a DetachableModel that returns a Collection in its
 load() method. Should I use this instead of ListAbstractTab when I
 instantiate AjaxTabbedPanel() ?

 Thanks,
 WT

 --
 The only constant in life is change.


 - Original Message 
 From: Igor Vaynberg [EMAIL PROTECTED]
 To: users@wicket.apache.org
 Sent: Monday, January 7, 2008 1:55:16 PM
 Subject: Re: rendering a panel


 panel2 should use a detachable model, that way it automatically
 updates when rerendered. no need to call render() or anything else.
 see the wiki page on detachable models.

 -igor


 On Jan 7, 2008 1:33 PM, Beyonder Unknown [EMAIL PROTECTED]
 wrote:
 
  Hi All,
 
  Greetings! I was wondering if any of you here encountered this
  situation. I have a 2 Panels. Panel1 writes something in the
 database, and it
  should update Panel2. I tried adding Panel2.render() inside an
  onSubmit() button of Panel1 but it doesn't work. I also tried
  Panel2.renderComponents() but  with no luck. To fix this, what I did
 is just to
  instantiate a new instance of Panel2.
  Is there a better approach to this? Does Panel.render() does
  cascading render?
 
  Thanks,
  Wen Tong
 
  The only constant in life is change.
 
 
 
 
 

  

  Looking for last minute shopping deals?
  Find them fast with Yahoo! Search.
  
 http://tools.search.yahoo.com/newsearch/category.php?category=shopping
 
 
 -
  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]






  
 

 Be a better friend, newshound, and
 know-it-all with Yahoo! Mobile.  Try it now.
  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ



 -
 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]






  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


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



Re: rendering a panel

2008-01-07 Thread Beyonder Unknown

Hi there. No. I just use plane tabbedPanel. But the Button:onSubmit() of 
Panel1, i can reference to the tabbedPanel, and I thought originally, if I add 
something in the database, I only have to call tabbedPanel.render() and it will 
render the page. 
 
--
The only constant in life is change.

- Original Message 
From: Uwe Schäfer [EMAIL PROTECTED]
To: users@wicket.apache.org
Sent: Monday, January 7, 2008 2:59:14 PM
Subject: Re: rendering a panel


Beyonder Unknown wrote:
 The Panels use detachableModels already. Sorry for not being clear.
 What I want to achieve is, when Panel1 save something in the database,
 the tabbedPanel should refresh and add additional tab (based on the data
 saved by Panel1 ). Thoughts?
   
you added the tabbedPanel to the AjaxRequestTarget when responding the 
request, didn´t you ?

cu uwe


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






  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

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



Re: rendering a panel

2008-01-07 Thread Beyonder Unknown

Hi Igor,

Thanks a bunch! This actually work! All the while, I thought of rendering the 
Panel, where all I could have done is to add a tab. Well, we learn new things 
everyday. 

Regards,
Wen Tong
 
--
The only constant in life is change.

- Original Message 
From: Igor Vaynberg [EMAIL PROTECTED]
To: users@wicket.apache.org
Sent: Monday, January 7, 2008 2:54:13 PM
Subject: Re: rendering a panel


tabbedpanel.gettabs().add(new tab(.));

-igor


On Jan 7, 2008 2:50 PM, Beyonder Unknown [EMAIL PROTECTED] wrote:

 Hi there. No. I just use plane tabbedPanel. But the Button:onSubmit()
 of Panel1, i can reference to the tabbedPanel, and I thought
 originally, if I add something in the database, I only have to call
 tabbedPanel.render() and it will render the page.

 --
 The only constant in life is change.

 - Original Message 
 From: Uwe Schäfer [EMAIL PROTECTED]
 To: users@wicket.apache.org
 Sent: Monday, January 7, 2008 2:59:14 PM
 Subject: Re: rendering a panel



 Beyonder Unknown wrote:
  The Panels use detachableModels already. Sorry for not being clear.
  What I want to achieve is, when Panel1 save something in the
 database,
  the tabbedPanel should refresh and add additional tab (based on the
 data
  saved by Panel1 ). Thoughts?
 
 you added the tabbedPanel to the AjaxRequestTarget when responding
 the
 request, didn´t you ?

 cu uwe


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






  
 

 Never miss a thing.  Make Yahoo your home page.
 http://www.yahoo.com/r/hs


 -
 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]






  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

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



Re: TabbedPanel making AJAX?

2008-01-04 Thread Beyonder Unknown

Hi Igor,

How are you? The AbstractTab  returns a Panel that  calls a backend object 
using hibernate Lazy Loading.  (We have a session filter that closes the 
hibernate session after the page is loaded ). So when you click the tab, it 
throws a  Lazy Loading exception, because the session is already close.

When I tried to use AjaxTabbedPanel and  implement  onAjaxUpdate, it already 
throws the exception prior to reaching the function.

Do I have to override and customize some method in AjaxTabbedPanel to achieve 
this? Like finding the title link and change it to ajax link? I'm looking for a 
solution that when you click the tab, it does an ajax call in the backend and 
update the tab content. So I thought I'd email this problem to the group, 
thinking somebody have encountered this problem before.

thanks, 
Wen Tong
 
--
The only constant in life is change.

- Original Message 
From: Igor Vaynberg [EMAIL PROTECTED]
To: users@wicket.apache.org
Sent: Friday, January 4, 2008 8:25:26 AM
Subject: Re: TabbedPanel making AJAX?


why exactly isnt ajaxtabbedpanel the way to go?

-igor

On Jan 4, 2008 7:48 AM, Beyonder Unknown [EMAIL PROTECTED] wrote:

 Hi Guys,

 I was wondering if there's a way to implement TabbedPanel that when
 you click the tab, it will do an ajax call to the backend, and update
 the body of the tab. I looked at AjaxTabbedPanel, but it seems like its
 not the way to go.

 Any help will be gladly appreciated.

 Thanks,
 Wen Tong

 --
 The only constant in life is change.




  
 

 Be a better friend, newshound, and
 know-it-all with Yahoo! Mobile.  Try it now.
  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ


 -
 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]






  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

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



Re: TabbedPanel making AJAX?

2008-01-04 Thread Beyonder Unknown

Thanks Igor,

Let me try that.

Wen T.
 
--
The only constant in life is change.

- Original Message 
From: Igor Vaynberg [EMAIL PROTECTED]
To: users@wicket.apache.org
Sent: Friday, January 4, 2008 8:53:36 AM
Subject: Re: TabbedPanel making AJAX?


this has nothing to do with ajax. you should not store the hibernate
object itself in the model, you should use a model that can load the
object during next request - that way it is attached to the current
session and doesnt have lazy loading problems. see
LoadableDetachableModel, and maybe read up on detachable models.

-igor

On Jan 4, 2008 8:48 AM, Beyonder Unknown [EMAIL PROTECTED] wrote:

 Hi Igor,

 How are you? The AbstractTab  returns a Panel that  calls a backend
 object using hibernate Lazy Loading.  (We have a session filter that
 closes the hibernate session after the page is loaded ). So when you click
 the tab, it throws a  Lazy Loading exception, because the session is
 already close.

 When I tried to use AjaxTabbedPanel and  implement  onAjaxUpdate, it
 already throws the exception prior to reaching the function.

 Do I have to override and customize some method in AjaxTabbedPanel to
 achieve this? Like finding the title link and change it to ajax link?
 I'm looking for a solution that when you click the tab, it does an ajax
 call in the backend and update the tab content. So I thought I'd email
 this problem to the group, thinking somebody have encountered this
 problem before.

 thanks,
 Wen Tong

 --
 The only constant in life is change.

 - Original Message 
 From: Igor Vaynberg [EMAIL PROTECTED]
 To: users@wicket.apache.org
 Sent: Friday, January 4, 2008 8:25:26 AM
 Subject: Re: TabbedPanel making AJAX?


 why exactly isnt ajaxtabbedpanel the way to go?

 -igor

 On Jan 4, 2008 7:48 AM, Beyonder Unknown [EMAIL PROTECTED]
 wrote:
 
  Hi Guys,
 
  I was wondering if there's a way to implement TabbedPanel that when
  you click the tab, it will do an ajax call to the backend, and
 update
  the body of the tab. I looked at AjaxTabbedPanel, but it seems like
 its
  not the way to go.
 
  Any help will be gladly appreciated.
 
  Thanks,
  Wen Tong
 
  --
  The only constant in life is change.
 
 
 
 
 

  

  Be a better friend, newshound, and
  know-it-all with Yahoo! Mobile.  Try it now.
   http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
 
 
 
 -
  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]






  
 

 Never miss a thing.  Make Yahoo your home page.
 http://www.yahoo.com/r/hs


 -
 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]






  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

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



TabbedPanel making AJAX?

2008-01-04 Thread Beyonder Unknown

Hi Guys,

I was wondering if there's a way to implement TabbedPanel that when you click 
the tab, it will do an ajax call to the backend, and update the body of the 
tab. I looked at AjaxTabbedPanel, but it seems like its not the way to go.

Any help will be gladly appreciated.

Thanks,
Wen Tong
 
--
The only constant in life is change.




  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


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



Re: AW: TabbedPanel making AJAX?

2008-01-04 Thread Beyonder Unknown
Hi Stefan, 

I already tried this, but onAjaxUpdate() is not even executed. Anyways, I have 
to take  look and see if theres another way to implement hibernate with wicket.

Thank you very much!

Best,
Wen Tong
 
--
The only constant in life is change.

- Original Message 
From: Stefan Lindner [EMAIL PROTECTED]
To: users@wicket.apache.org
Sent: Friday, January 4, 2008 8:45:33 AM
Subject: AW: TabbedPanel making AJAX?


Wen Tong,

I think the following code does what you want:

new AjaxTabbedPanel(..) {
private static final long serialVersionUID = 1L;
@Override
protected void onAjaxUpdate(AjaxRequestTarget target) {
System.out.println(OnAjaxUpdate aufgerufen);
if (target != null) {
int selectedTab = getSelectedTab(); 
// Do whatever you want with the now selected tab und
 use the target variable for AJAX-actions

Stefan

-Ursprüngliche Nachricht-
Von: Igor Vaynberg [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 4. Januar 2008 17:25
An: users@wicket.apache.org
Betreff: Re: TabbedPanel making AJAX?

why exactly isnt ajaxtabbedpanel the way to go?

-igor

On Jan 4, 2008 7:48 AM, Beyonder Unknown [EMAIL PROTECTED] wrote:

 Hi Guys,

 I was wondering if there's a way to implement TabbedPanel that when
 you click the tab, it will do an ajax call to the backend, and update
 the body of the tab. I looked at AjaxTabbedPanel, but it seems like its
 not the way to go.

 Any help will be gladly appreciated.

 Thanks,
 Wen Tong

 --
 The only constant in life is change.




   

 __
 __
 Be a better friend, newshound, and
 know-it-all with Yahoo! Mobile.  Try it now.  
 http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ


 -
 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]






  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

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



vertical TabbedPanel

2007-12-07 Thread Beyonder Unknown

Hi All,

Have anybody here implemented a vertical TabbedPanel? I looked at wicket 
extension tabbedPanel but it doesn't have a property to render vertical one.

Any help will be greatly appreciated.

Regards,
Allan
 
--
The only constant in life is change.




  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

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