Re: How can I validate required formComponents after page load?

2008-01-10 Thread Igor Vaynberg
onbeforerender {
  textfield.error(RequiredValidator.class.getSimpleName());
}

-igor


On Jan 10, 2008 11:23 PM, thomas jaeckle <[EMAIL PROTECTED]> wrote:
>
>
>
> igor.vaynberg wrote:
> >
> > how about just page.onbeforerender() { fieldlastname.valdiate(); }
> >
> > -igor
> >
> Ok, thanks ..
> But the RequiredTextField validates because it isn't added to the Page yet
> (input is null and not an empty String) and so checkRequired() from
> FormComponent returns true:
>
> public boolean checkRequired()
> {
>   if (isRequired())
>   {
> final String input = getInput();
>
> // when null, check whether this is natural for that component, or
> // whether - as is the case with text fields - this can only happen
> // when the component was disabled
> if (input == null && !isInputNullable())
> {
>   // this value must have come from a disabled field
>   // do not perform validation
>   return true;
> }
>
> // peform validation by looking whether the value is null or empty
> return !Strings.isEmpty(input);
>   }
>   return true;
> }
>
>
> Thomas
> --
> View this message in context: 
> http://www.nabble.com/How-can-I-validate-required-formComponents-after-page-load--tp14730931p14750961.html
>
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: How can I validate required formComponents after page load?

2008-01-10 Thread thomas jaeckle



igor.vaynberg wrote:
> 
> how about just page.onbeforerender() { fieldlastname.valdiate(); }
> 
> -igor
> 
Ok, thanks ..
But the RequiredTextField validates because it isn't added to the Page yet
(input is null and not an empty String) and so checkRequired() from
FormComponent returns true:

public boolean checkRequired()
{
  if (isRequired())
  {
final String input = getInput();

// when null, check whether this is natural for that component, or
// whether - as is the case with text fields - this can only happen
// when the component was disabled
if (input == null && !isInputNullable())
{
  // this value must have come from a disabled field
  // do not perform validation
  return true;
}

// peform validation by looking whether the value is null or empty
return !Strings.isEmpty(input);
  }
  return true;
}


Thomas
-- 
View this message in context: 
http://www.nabble.com/How-can-I-validate-required-formComponents-after-page-load--tp14730931p14750961.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Is wicketstuff-scriptaculous still active?

2008-01-10 Thread Edward Yakop
I forgot to mention about the usage of markup id.

I think this is a less optimize way to find the drag source component,
especially if the page object graph is large.

For example,
If we have the following Page component structure.

Page
 - Container1
   - Table with a lot of rows
   - other component
 - Container2
   - Table
 - rows
 - "dragSource"

If we search based on output markup id for drag source, it will have
to visit Container 1 and all its children, before visiting container
2.

By using path (sample path "0:container2::dragSource" ), instead
of visitor,
the search will be a matter on how many hop to get to the drag source.

Regards,
Edward Yakop

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



Re: Is wicketstuff-scriptaculous still active?

2008-01-10 Thread Edward Yakop
On Jan 11, 2008 11:51 AM, Ryan Sonnek <[EMAIL PROTECTED]> wrote:
> if there are other improvements to be made, let me know!

How about committing the [DraggableTargetBehavior] and its support for
multiple drag source type.
The committed code has improved
JavascriptBuilder#formatJavascriptValue to support array, set and list
value.

Another reason why we prefer [DraggableTargetBehavior] instead of
[DraggableTarget],
when the drag target is an image (instead of the current test label),
I would not be able to "drop" to it.
This is because the / representing the [DraggableTarget] is
not being rendered by firefox browser.

Regards,
Edward Yakop

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



Re: Dont refresh webpage on Form Submit

2008-01-10 Thread Sam Barnum

You might be thinking of an onsubmit javascript that returns false.

...


You could add the onsubmit attribute dynamically, and it could  
presumably call wicket with some sort of ajax behavior (still haven't  
gone there).


--
Sam Barnum
360 Works
http://www.360works.com
415.865.0952



On Jan 10, 2008, at 7:14 PM, Haritha Juturu wrote:


Hi Everyone,
I have a Form object in my wicket page. After the onSubmit() method  
is called the webpage is refreshed.
Is there anyway i can stop the webpage reload after the onSubmit()  
method is executed.

Thanks
Haritha





   
__ 
__

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




Re: Is wicketstuff-scriptaculous still active?

2008-01-10 Thread Ryan Sonnek
On Jan 10, 2008 9:22 AM, Ryan Sonnek <[EMAIL PROTECTED]> wrote:
> Edward,
> Thanks for the email.  I'm currently working on revamping the drag
> drop API.  if you have any code you'd like to contribute feel free to
> drop me an email.  maybe we could hash out a great new api to simplify
> it's use.

Hey everyone.  Thanks again for all the comments and suggestions.

I just finished re-writing the drag-drop support and would love to
hear how it looks.
http://www.jroller.com/wireframe/entry/revamped_drag_and_drop_for

if there are other improvements to be made, let me know!

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



Re: integrating extjs with wicket

2008-01-10 Thread Matt Jensen


I would be willing to contribute to this project, but I don't have the 
knowledge of Wicket internals (nor ExtJS internals, really) to pull off 
the core design.  If somebody starts this, he/she can count on a couple 
hours per week from me.


Martijn Dashorst wrote:

Sounds like a good wicketstuff project... Do you care to start one?

Martijn

On Jan 9, 2008 7:02 PM, Paolo Di Tommaso <[EMAIL PROTECTED]> wrote:
  

This is really an interesting topic!

I've made some Wicket-Extjs integration tests and I haven't found any
particular issues to make them work smoothly together.

Extjs UI widgets can be created dynamically or can be attach to existing
HTML elements using the element IDs.

Following the latter approach is quite easy integrate Extjs with Wicket.

The simplest way I've tried is using a behavior to 'attach' an Extjs widget
to Wicket component.

For example:

public class ExtDateFieldBehavior extends ExtAbstractBehavior{

@Override
String getExtjsClassName() {
return "Ext.form.DateField";
}

}

public abstract class ExtAbstractBehavior extends AbstractBehavior {


/**
 * Used to add all common Extjs required JavaScript and CSS resources
 */
@Override
public void bind(Component component) {
if( component == null ) throw new IllegalArgumentException("Argument
cannot be null");
component.setOutputMarkupId(true);
component.add(HeaderContributor.forCss( Extjs.Css.EXT_ALL ));
component.add(HeaderContributor.forJavaScript( Extjs.Js.EXT_BASE ));
component.add(HeaderContributor.forJavaScript(
Extjs.Js.EXT_ALL_DEBUG ));
}


abstract String getExtjsClassName();

abstract String getOptions();

@Override
public void onRendered( Component component ) {
/* create a copy of options */
Config options = new Config( config );
/* initialization */
config(component,options);
/* get the string version */
String sConfig = Extjs.serialize(options);

String extjs = "new " + getExtjsClassName() + "(" + getOptions() +
");";
//TODO log here

Response r = component.getResponse();
r.write( JavascriptUtils.SCRIPT_OPEN_TAG );
r.write( extjs );
r.write( JavascriptUtils.SCRIPT_CLOSE_TAG );
}
}


That's all!

Obviously this is just a simple test but it works and can be extended easily
for other widgets.


What I've found not trivial is to pass/define the Extjs widget
property/configuration in a easy/elegant way.

Would be interesting discuss this...

-- Paolo





On Jan 9, 2008 6:25 PM, Jeremy Fergason <[EMAIL PROTECTED]> wrote:



wicket seems to provide some nice management classes like TextField, that
do
things like set the value for you, I don't see how to integrate this with
a
javascript solution like ExtJs which does not use an 
wrote:

  

What is keeping you from building it?

Martijn

On Jan 9, 2008 6:15 PM, Reinout van Schouwen <[EMAIL PROTECTED]> wrote:


Op woensdag 09-01-2008 om 09:07 uur [tijdzone -0700], schreef Jeremy
Fergason:

  

I'm just starting out with wicket and I would like to use a


client-side


javascript library--ExtJs, to enhance the end user experience.


+1

At my company we use Ext2 and are very enthousiastic about it.
I want to move us from Struts to Wicket but lack of support for Ext2
would be a roadblock...

--
Reinout van Schouwen




-
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

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







  




Re: Dont refresh webpage on Form Submit

2008-01-10 Thread igor . vaynberg
and what do you want instead?

-igor

On 1/10/08, Haritha Juturu <[EMAIL PROTECTED]> wrote:
> Hi Everyone,
> I have a Form object in my wicket page. After the onSubmit() method is
> called the webpage is refreshed.
> Is there anyway i can stop the webpage reload after the onSubmit() method is
> executed.
> Thanks
> Haritha
>
>
>
>
>
>
> 
> 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]



Dont refresh webpage on Form Submit

2008-01-10 Thread Haritha Juturu
Hi Everyone,
I have a Form object in my wicket page. After the onSubmit() method is called 
the webpage is refreshed. 
Is there anyway i can stop the webpage reload after the onSubmit() method is 
executed.
Thanks
Haritha





  

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


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: back button and session state rollback

2008-01-10 Thread Matej Knopp
Each page has it's page id (Page#getNumericId()) iand version number.
These are the properties that change when you press back button. So
these might help you with implementing some kind of versioned session
properties.

-Matej

On Jan 11, 2008 3:00 AM, Robin Shine <[EMAIL PROTECTED]> wrote:
> Hi Matej,
>
> Thanks for the response. However storing state in the page might not be 
> suitable in our case, and this state need to be shared by several pages, and 
> storing it into session seems to be a better choice.
>
> Regards.
> Robin
>
> Matej Knopp <[EMAIL PROTECTED]> wrote: When user presses back button and 
> clicks a ling to page, it will
> affect the previous page version. Wicket takes care of this
> automatically. Can you keep the state in page instead of keeping it in
> session?
>
> -Matej
>
> On Jan 10, 2008 11:29 AM, Robin Shine  wrote:
> > Hi,
> >
> > I am facing a situation where I need to rollback some state kept in session 
> > when user hits the back button at browser side, and clicks some link which 
> > triggers a server round trip. The usage scenario is as below:
> > 1. User stays on page1, and the current state saved in session in state1
> > 2. User clicks on a link in page1. At server side, the onclick() handler of 
> > the link change session state to state2, and set current page to be page2 
> > by calling setResponsePage()
> > 3. Now page2 is displayed at browser. User hits the back button to go back 
> > to page1.
> > 4. User continues to hit a link in page1 to do something. Of course at 
> > server side, the session state will still be state2.
> >
> > Now I am looking for an approach to change the session state to the value 
> > when page1 is first presented to user. I searched the mailing list archive 
> > and found the entry 
> > "http://www.nabble.com/Back-button-and-Database-rollback-to4124044.html#a4124044";
> >  to be useful. However, as I am using wicket 1.3 which uses 
> > SecondLevelCacheSessionStore, the "addStateChange" approach does not take 
> > effect.
> >
> > So is there any other approaches for this problem?
> >
> > PS: Storing state in page instead of session solves the back-button 
> > problem, however I can not store state into page as my application is 
> > composed of many pages, and this state should be shared across these pages.
> >
> > Thanks.
> > Robin
> >
>
> -
> 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: back button and session state rollback

2008-01-10 Thread Robin Shine
Hi Matej, 

Thanks for the response. However storing state in the page might not be 
suitable in our case, and this state need to be shared by several pages, and 
storing it into session seems to be a better choice. 

Regards.
Robin

Matej Knopp <[EMAIL PROTECTED]> wrote: When user presses back button and clicks 
a ling to page, it will
affect the previous page version. Wicket takes care of this
automatically. Can you keep the state in page instead of keeping it in
session?

-Matej

On Jan 10, 2008 11:29 AM, Robin Shine  wrote:
> Hi,
>
> I am facing a situation where I need to rollback some state kept in session 
> when user hits the back button at browser side, and clicks some link which 
> triggers a server round trip. The usage scenario is as below:
> 1. User stays on page1, and the current state saved in session in state1
> 2. User clicks on a link in page1. At server side, the onclick() handler of 
> the link change session state to state2, and set current page to be page2 by 
> calling setResponsePage()
> 3. Now page2 is displayed at browser. User hits the back button to go back to 
> page1.
> 4. User continues to hit a link in page1 to do something. Of course at server 
> side, the session state will still be state2.
>
> Now I am looking for an approach to change the session state to the value 
> when page1 is first presented to user. I searched the mailing list archive 
> and found the entry 
> "http://www.nabble.com/Back-button-and-Database-rollback-to4124044.html#a4124044";
>  to be useful. However, as I am using wicket 1.3 which uses 
> SecondLevelCacheSessionStore, the "addStateChange" approach does not take 
> effect.
>
> So is there any other approaches for this problem?
>
> PS: Storing state in page instead of session solves the back-button problem, 
> however I can not store state into page as my application is composed of many 
> pages, and this state should be shared across these pages.
>
> Thanks.
> Robin
>

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




Re: Resizable and reorderable grid components

2008-01-10 Thread Igor Vaynberg
On Jan 10, 2008 5:51 PM, Evan Chooly <[EMAIL PROTECTED]> wrote:
> Is that not the "official" website for the wicket stuff projects?

it is, _amongst other things_

-igor


> Just
> kinda struck me as odd is all.
>
> On Jan 10, 2008 6:26 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
>
> > dont really see this as that weird. its a private server...
> >
> > -igor
> >
> >
>
> > -
> > 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: the flow of wicket

2008-01-10 Thread Igor Vaynberg
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]



Re: Resizable and reorderable grid components

2008-01-10 Thread Evan Chooly
Is that not the "official" website for the wicket stuff projects?  Just
kinda struck me as odd is all.

On Jan 10, 2008 6:26 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote:

> dont really see this as that weird. its a private server...
>
> -igor
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: the flow of wicket

2008-01-10 Thread Beyonder Unknown

Hi Igor,
Since it got mentioned in the book, I just thought I'd asked for more 
information. I was also wondering how does it differ from the traditional model 
2 MVC like struts, spring-mvc, etc.

I tried adding breakpoints, but I lack the source. I guess i have to attached 
it in my eclipse. It would be faster if you can help us. :)

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]



RE: the flow of wicket

2008-01-10 Thread Dan Kaplan
Sorry, I didn't know that it was internal implementation details.  I see it
mentioned a lot so I supposed that it's very important to understand it in
order to use wicket correctly.

-Original Message-
From: Igor Vaynberg [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 10, 2008 5:09 PM
To: users@wicket.apache.org
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]


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



Re: Unable to Upload file using AjaxFormSubmitBehavior

2008-01-10 Thread mfs

I believe its because your submit button is getting hooked up with the
Button("ok") instead and not the AjaxForm-Submit..i wouldnt define the
Button on the page-component and similarly would remove wicket:id = "ok"
from the tag..


Haritha Juturu wrote:
> 
> Hi Everyone
> I'm trying to upload a file using AjaxFormSubmitBehavior . 
> When i submit the form , the defined onSubmit() method is not being
> called. Can anyone tell me why this is happening ? 
> Code given below:
> Java code is : 
> Form f = new Form("f");
> f.setOutputMarkupId(true);
> f.setMultiPart(true);
> f.setMaxSize(Bytes.MAX);
> f.add(upload = new FileUploadField("fileInput"));
> f.add(new Button("ok"));
> f.add(new AjaxFormSubmitBehavior("onsubmit") {
> protected void onSubmit(AjaxRequestTarget target) {
> log.debug("inside onSubmit");
> FileUpload fileUpload = upload.getFileUpload();
> log.debug(fileUpload.getBytes());
> }
> 
> @Override
> protected void onError(AjaxRequestTarget arg0) {
> // TODO Auto-generated method stub
> }
> });
> 
> add(f);
> }   
> 
> 
> Form in the html file is :
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Thanks
> Haritha
> 
> 
> 
> 
>  
> 
> Be a better friend, newshound, and 
> know-it-all with Yahoo! Mobile.  Try it now. 
> http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Unable-to-Upload-file-using-AjaxFormSubmitBehavior-tp14747634p14747752.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: the flow of wicket

2008-01-10 Thread Igor Vaynberg
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]



RE: the flow of wicket

2008-01-10 Thread Dan Kaplan
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]



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: Unable to Upload file using AjaxFormSubmitBehavior

2008-01-10 Thread Igor Vaynberg
file uploads using ajax are not supported

-igor


On Jan 10, 2008 4:59 PM, Haritha Juturu <[EMAIL PROTECTED]> wrote:
> Hi Everyone
> I'm trying to upload a file using AjaxFormSubmitBehavior .
> When i submit the form , the defined onSubmit() method is not being called. 
> Can anyone tell me why this is happening ?
> Code given below:
> Java code is :
> Form f = new Form("f");
> f.setOutputMarkupId(true);
> f.setMultiPart(true);
> f.setMaxSize(Bytes.MAX);
> f.add(upload = new FileUploadField("fileInput"));
> f.add(new Button("ok"));
> f.add(new AjaxFormSubmitBehavior("onsubmit") {
> protected void onSubmit(AjaxRequestTarget target) {
> log.debug("inside onSubmit");
> FileUpload fileUpload = upload.getFileUpload();
> log.debug(fileUpload.getBytes());
> }
>
> @Override
> protected void onError(AjaxRequestTarget arg0) {
> // TODO Auto-generated method stub
> }
> });
>
> add(f);
> }
>
>
> Form in the html file is :
>
> 
> 
> 
> 
> 
> 
> 
> 
>
> Thanks
> Haritha
>
>
>
>
>   
> 
> 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]



Unable to Upload file using AjaxFormSubmitBehavior

2008-01-10 Thread Haritha Juturu
Hi Everyone
I'm trying to upload a file using AjaxFormSubmitBehavior . 
When i submit the form , the defined onSubmit() method is not being called. Can 
anyone tell me why this is happening ? 
Code given below:
Java code is : 
Form f = new Form("f");
f.setOutputMarkupId(true);
f.setMultiPart(true);
f.setMaxSize(Bytes.MAX);
f.add(upload = new FileUploadField("fileInput"));
f.add(new Button("ok"));
f.add(new AjaxFormSubmitBehavior("onsubmit") {
protected void onSubmit(AjaxRequestTarget target) {
log.debug("inside onSubmit");
FileUpload fileUpload = upload.getFileUpload();
log.debug(fileUpload.getBytes());
}

@Override
protected void onError(AjaxRequestTarget arg0) {
// TODO Auto-generated method stub
}
});

add(f);
}   


Form in the html file is :










Thanks
Haritha




  

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


Re: Resizable and reorderable grid components

2008-01-10 Thread Matej Knopp
There have been reported some issues with Firefox because of a not
properly removed debugging code, so I've deployed a new version
(Beta2).

-Matej

On Jan 10, 2008 9:42 PM, Matej Knopp <[EMAIL PROTECTED]> wrote:
> I am pleased to announce that the first beta version of TreeGrid and
> DataGrid components is available.
>
> Amongst other things these support column resizing and reordering,
> horizontal and vertical scrolling (with fixed header) and multi-column
> sorting.
>
> The components are commercial, but with no need to have per-developer
> licenses or any royalties.
>
> For more information and a live demo see http://www.inmethod.com .
>
> Regards,
> Matej Knopp
>

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



Re: Resizable and reorderable grid components

2008-01-10 Thread Igor Vaynberg
On Jan 10, 2008 12:56 PM, Evan Chooly <[EMAIL PROTECTED]> wrote:
> this is very cool to start.  i'm working on a similar component.  my biggest
> complaint is that it seems odd to me that commercial component demos are
> being hosted on wicket stuff.  but that just might be me.

dont really see this as that weird. its a private server...

-igor



> Other than that,
> they look pretty sharp.
>
>
> On Jan 10, 2008 3:42 PM, Matej Knopp <[EMAIL PROTECTED]> wrote:
>
> > I am pleased to announce that the first beta version of TreeGrid and
> > DataGrid components is available.
> >
> > Amongst other things these support column resizing and reordering,
> > horizontal and vertical scrolling (with fixed header) and multi-column
> > sorting.
> >
> > The components are commercial, but with no need to have per-developer
> > licenses or any royalties.
> >
> > For more information and a live demo see http://www.inmethod.com .
> >
> > Regards,
> > Matej Knopp
> >
> > -
> > 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]



Flash and Modal Window

2008-01-10 Thread Roy van Rijn
Hi all,

I'm experimenting with modal windows in Wicket for the first time. But
I've got some strange behavior when I placed a Flash component on the
modal page.

Firefox everything works fine, the modal opens displaying a small
Flash movie. But in IE, when I click the Flash movie a popup comes up
with the close-warning (!?). For some reason the modal-close function
seems to be called.

It gets even stranger, because if I click either "Ok" or "Cancel" the
warning goes away but the window doesn't close. When I click the cross
to close the modal it doesn't give a warning and closes the modal just
fine.

Can somebody explain this behavior? I tried placing normal links (

redirection after authentication

2008-01-10 Thread Sergiy Yevtushenko
Hello!

I'm playing with Wicket and among other things I've tried simple authentication
based on the http://wicketstuff.org/wicket13/authentication/ example. Everything
works fine except one thing: when user tries to login first time it is
redirected to the root index.html instead of webapp page. If to try press Back
button in browser and login again, everything works fine. Wicket version 1.3.
Pages are linked as follows:

Initial application page:

Link to: App page
Link to: Logoff page

App page:

Link to: Logoff page


Login/logoff pages and classes are almost exact copies of MySignInPage.html,
MySignInPage.java, MySignOutPage.html, MySignOutPage.java from the example.

Tomcat is configured so:

conf/Catalina/localhost/myapp.xml <- contains context
web.xml URL filter looks so: /*

When redirection fails, URL looks like so:
http://localhost:8880/index.html?wicket:bookmarkablePage=%3Atest.app.web.AppPage

I guess something is wrong in configuration or I did hit some known issue.

Any comments or suggestions?

Regards,
Sergiy.
*-
[EMAIL PROTECTED] http://es.os2.ru/

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



Re: Resizable and reorderable grid components

2008-01-10 Thread Matej Knopp
On Jan 10, 2008 10:08 PM, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> Very nice components! Does it come with a user guide?
Thanks.

The user guide is being worked on. However, the components come with
an example suite and the usage is (intentionally) pretty similiar to
wicket's DataTable and TreeTable components.

-Matej

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



Re: Resizable and reorderable grid components

2008-01-10 Thread Eelco Hillenius
Very nice components! Does it come with a user guide?

Eelco

On Jan 10, 2008 12:42 PM, Matej Knopp <[EMAIL PROTECTED]> wrote:
> I am pleased to announce that the first beta version of TreeGrid and
> DataGrid components is available.
>
> Amongst other things these support column resizing and reordering,
> horizontal and vertical scrolling (with fixed header) and multi-column
> sorting.
>
> The components are commercial, but with no need to have per-developer
> licenses or any royalties.
>
> For more information and a live demo see http://www.inmethod.com .
>
> Regards,
> Matej Knopp
>
> -
> 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: Resizable and reorderable grid components

2008-01-10 Thread Matej Knopp
Don't worry, the hosting is only temporary :)
Thanks.

-Matej

On Jan 10, 2008 9:56 PM, Evan Chooly <[EMAIL PROTECTED]> wrote:
> this is very cool to start.  i'm working on a similar component.  my biggest
> complaint is that it seems odd to me that commercial component demos are
> being hosted on wicket stuff.  but that just might be me.  Other than that,
> they look pretty sharp.
>
>
> On Jan 10, 2008 3:42 PM, Matej Knopp <[EMAIL PROTECTED]> wrote:
>
> > I am pleased to announce that the first beta version of TreeGrid and
> > DataGrid components is available.
> >
> > Amongst other things these support column resizing and reordering,
> > horizontal and vertical scrolling (with fixed header) and multi-column
> > sorting.
> >
> > The components are commercial, but with no need to have per-developer
> > licenses or any royalties.
> >
> > For more information and a live demo see http://www.inmethod.com .
> >
> > Regards,
> > Matej Knopp
> >
> > -
> > 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: Resizable and reorderable grid components

2008-01-10 Thread Evan Chooly
this is very cool to start.  i'm working on a similar component.  my biggest
complaint is that it seems odd to me that commercial component demos are
being hosted on wicket stuff.  but that just might be me.  Other than that,
they look pretty sharp.

On Jan 10, 2008 3:42 PM, Matej Knopp <[EMAIL PROTECTED]> wrote:

> I am pleased to announce that the first beta version of TreeGrid and
> DataGrid components is available.
>
> Amongst other things these support column resizing and reordering,
> horizontal and vertical scrolling (with fixed header) and multi-column
> sorting.
>
> The components are commercial, but with no need to have per-developer
> licenses or any royalties.
>
> For more information and a live demo see http://www.inmethod.com .
>
> Regards,
> Matej Knopp
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Resizable and reorderable grid components

2008-01-10 Thread Matej Knopp
I am pleased to announce that the first beta version of TreeGrid and
DataGrid components is available.

Amongst other things these support column resizing and reordering,
horizontal and vertical scrolling (with fixed header) and multi-column
sorting.

The components are commercial, but with no need to have per-developer
licenses or any royalties.

For more information and a live demo see http://www.inmethod.com .

Regards,
Matej Knopp

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



Re: Force page rendering ?

2008-01-10 Thread Eelco Hillenius
You use those exceptions when you want to interrupt the flow/ when you
don't want the code beyond your choice to be executed.

Eelco

On Jan 10, 2008 12:15 PM, mfs <[EMAIL PROTECTED]> wrote:
>
> Thanks...
>
> So what i would want to know as well is to when would it be recommended to
> use this to force page-rendering, like one could just follow this approach
> and force rendering in the if-else blocks (as below) so as to skip the rest
> of the executable-code (in an event-listener) , which doesnt feel to be the
> right way to go and should rather just be used in exceptional scenarios i
> believe,but still would want to get an opinion about the usage
>
> e.g.
>
> if (user-authenticated == true) {
>   setResponsePage(user-profile-page)
>   throw new RenderResponseException()
> }
> else if (user-account-locked) {
>   setResponsePage(customer-support-page)
>   throw new RenderResponseException()
> }
> ..
> .
> ..
>
> Thanks in advance
>
>
>
>
> igor.vaynberg wrote:
> >
> > see RestartResponseException
> >
> > -igor
> >
> >
> > On Jan 10, 2008 11:04 AM, mfs <[EMAIL PROTECTED]> wrote:
> >>
> >> I think i didnt conveyed my message properly...i had this question in
> >> comparison to the conventional approach where you could do a dispatch to
> >> another page by doing forward() or sendRedirect() or in struts
> >> (mapping.findforward()) which use to take control to the target page
> >> rightaway..
> >>
> >> Is doing so possible in wicket ? or even if it is, do you think its a
> >> right
> >> approach ?
> >>
> >>
> >>
> >> mfs wrote:
> >> >
> >> > Guys,
> >> >
> >> > Just came across a scenario where i want to force a page-rendering in a
> >> > certain section, can i do so ? would it be the right approach, as far
> >> as i
> >> > know setResponsePage doesnt initiate rendering rightaway rather it just
> >> > sets the targetPage which is rendered once the control comes back to
> >> the
> >> > wicket i.e. after execution of the events on the WebPage...
> >> >
> >> > Please comments..
> >> >
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Force-page-rendering---tp14725628p14741184.html
> >>
> >> Sent from the Wicket - User mailing list archive at Nabble.com.
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/Force-page-rendering---tp14725628p14742832.html
>
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Force page rendering ?

2008-01-10 Thread mfs

Thanks...

So what i would want to know as well is to when would it be recommended to
use this to force page-rendering, like one could just follow this approach
and force rendering in the if-else blocks (as below) so as to skip the rest
of the executable-code (in an event-listener) , which doesnt feel to be the
right way to go and should rather just be used in exceptional scenarios i
believe,but still would want to get an opinion about the usage

e.g. 

if (user-authenticated == true) {
  setResponsePage(user-profile-page) 
  throw new RenderResponseException()
}
else if (user-account-locked) {
  setResponsePage(customer-support-page) 
  throw new RenderResponseException()
}
..
.
..

Thanks in advance



igor.vaynberg wrote:
> 
> see RestartResponseException
> 
> -igor
> 
> 
> On Jan 10, 2008 11:04 AM, mfs <[EMAIL PROTECTED]> wrote:
>>
>> I think i didnt conveyed my message properly...i had this question in
>> comparison to the conventional approach where you could do a dispatch to
>> another page by doing forward() or sendRedirect() or in struts
>> (mapping.findforward()) which use to take control to the target page
>> rightaway..
>>
>> Is doing so possible in wicket ? or even if it is, do you think its a
>> right
>> approach ?
>>
>>
>>
>> mfs wrote:
>> >
>> > Guys,
>> >
>> > Just came across a scenario where i want to force a page-rendering in a
>> > certain section, can i do so ? would it be the right approach, as far
>> as i
>> > know setResponsePage doesnt initiate rendering rightaway rather it just
>> > sets the targetPage which is rendered once the control comes back to
>> the
>> > wicket i.e. after execution of the events on the WebPage...
>> >
>> > Please comments..
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Force-page-rendering---tp14725628p14741184.html
>>
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Force-page-rendering---tp14725628p14742832.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



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]



Re: WicketServlet vs. WicketFilter

2008-01-10 Thread Igor Vaynberg
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]



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]



Form in VelocityPanel

2008-01-10 Thread Markus Sabadello
Hello,

I am trying to have a Form inside a VelocityPanel, but get an exception:
WicketMessage: Unable to find the markup for the component. That may be due
to transparent containers or components implementing IComponentResolver

 I filed a JIRA issue with sample code and the full stack trace:

https://issues.apache.org/jira/browse/WICKET-1268

I was told Eelco is master of wicket-velocity, so where is this Eelco, and
is he in the mood to help me? :)

Markus


Re: Wicket Session backed by something other than HTTP Session

2008-01-10 Thread Igor Vaynberg
On Jan 10, 2008 11:13 AM, mnwicket <[EMAIL PROTECTED]> wrote:
>
> How easy / feasible would it be to have the Wicket session backed by an
> applications own structure?

as easy as returning your own implementation of ISessionStore from
Application.newSessionStore()

-igor




> --
> View this message in context: 
> http://www.nabble.com/Wicket-Session-backed-by-something-other-than-HTTP-Session-tp14741289p14741289.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Wicket Session backed by something other than HTTP Session

2008-01-10 Thread mnwicket

I've worked on a couple applications in the past were they have decided not
to use the HTTP Session and instead create their own structure, basically a
session type of object gets stored in the database per request.  Although I
don't really love this direction but I have seen some benefits.  My question
regarding to Wicket is has anyone done something similar while using Wicket? 
How easy / feasible would it be to have the Wicket session backed by an
applications own structure?  
-- 
View this message in context: 
http://www.nabble.com/Wicket-Session-backed-by-something-other-than-HTTP-Session-tp14741289p14741289.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Force page rendering ?

2008-01-10 Thread Igor Vaynberg
see RestartResponseException

-igor


On Jan 10, 2008 11:04 AM, mfs <[EMAIL PROTECTED]> wrote:
>
> I think i didnt conveyed my message properly...i had this question in
> comparison to the conventional approach where you could do a dispatch to
> another page by doing forward() or sendRedirect() or in struts
> (mapping.findforward()) which use to take control to the target page
> rightaway..
>
> Is doing so possible in wicket ? or even if it is, do you think its a right
> approach ?
>
>
>
> mfs wrote:
> >
> > Guys,
> >
> > Just came across a scenario where i want to force a page-rendering in a
> > certain section, can i do so ? would it be the right approach, as far as i
> > know setResponsePage doesnt initiate rendering rightaway rather it just
> > sets the targetPage which is rendered once the control comes back to the
> > wicket i.e. after execution of the events on the WebPage...
> >
> > Please comments..
> >
>
> --
> View this message in context: 
> http://www.nabble.com/Force-page-rendering---tp14725628p14741184.html
>
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



when to cache pre-redirect urls

2008-01-10 Thread Alex Jacoby
I'm integrating a wicket app w/ an external login framework.  When a  
user who isn't logged in tries to access a restricted page, wicket  
redirects them to the sign-in page, which is a RedirectPage for the  
external login page.  That page sets a cookie when people log in, and  
can redirect users back to any URL I specify.  My problem is grabbing  
that URL -- I'd like to do it in the constructor of my  
WebRequestCycle, but I can't tell which page requests are real user  
requests, and which ones are wicket-created redirects to the login  
page.  They both create a new WebRequestCycle, in both cases  
isRedirect() returns false, and in both cases request.getPage()  
returns null.


I used to cache the URL in the session.getRoles method (it doesn't get  
called for the redirect), but it seems like there's got to be a better  
place (the request cycle for instance).


Any ideas?

Any ideas are appreciated,
Alex

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



Re: Force page rendering ?

2008-01-10 Thread mfs

I think i didnt conveyed my message properly...i had this question in
comparison to the conventional approach where you could do a dispatch to
another page by doing forward() or sendRedirect() or in struts
(mapping.findforward()) which use to take control to the target page
rightaway..

Is doing so possible in wicket ? or even if it is, do you think its a right
approach ? 



mfs wrote:
> 
> Guys,
> 
> Just came across a scenario where i want to force a page-rendering in a
> certain section, can i do so ? would it be the right approach, as far as i
> know setResponsePage doesnt initiate rendering rightaway rather it just
> sets the targetPage which is rendered once the control comes back to the
> wicket i.e. after execution of the events on the WebPage...
> 
> Please comments..
> 

-- 
View this message in context: 
http://www.nabble.com/Force-page-rendering---tp14725628p14741184.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



material about scalability

2008-01-10 Thread Uwe Schäfer

hi

in the near future, i´ll have to create a scalability presentation for a 
webapp that uses wicket. i think, i´ll have enough ammo for the 
non-wicket parts, so i try to gather some wicket related info now.


is there anything compact already i could use to summarize, why/how 
wicket can scale to significant load?


i´ve seen the thoof article. is there some other material already? 
slides, numbers, graphs, talks or some gfx about the conceptual 
architecture (PageMap caching etc)...


any hint appreciated.

cu uwe
--

THOMAS DAILY GmbH
Adlerstraße 19
79098 Freiburg
Deutschland
T  + 49 761 3 85 59 0
F  + 49 761 3 85 59 550
E  [EMAIL PROTECTED]
www.thomas-daily.de

Geschäftsführer/Managing Directors:
Wendy Thomas, Susanne Larbig
Handelsregister Freiburg i.Br., HRB 3947

Registrieren Sie sich unter http://morningnews.thomas-daily.de für die 
kostenfreien TD Morning News, eine Auswahl aktueller Themen des Tages 
morgens um 9:00 in Ihrer Mailbox.


Hinweis: Der Redaktionsschluss für unsere TD Morning News ist täglich um 
8:30 Uhr. Es werden vorrangig Informationen berücksichtigt, die nach 
16:00 Uhr des Vortages eingegangen sind. Die Email-Adresse unserer 
Redaktion lautet [EMAIL PROTECTED]



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



Re: How can I validate required formComponents after page load?

2008-01-10 Thread Igor Vaynberg
how about just page.onbeforerender() { fieldlastname.valdiate(); }

-igor


On Jan 10, 2008 2:07 AM, thomas jaeckle <[EMAIL PROTECTED]> wrote:
>
> Hello Guys.
>
> I am trying to validate my RequiredTextFields directly when/after the Page
> is loaded so that I can display the required errormessage in my
> feedbackpanel.
>
> Currently I try to do this in the Pages constructor:
>
> add(new AjaxEventBehavior("onload")
> {
>   protected void onEvent(AjaxRequestTarget target)
>   {
> fieldLastName.validate();
> target.addComponent(getBorder().get("footerFeedback"));
>   }
> });
>
> But that doesn't work.
>
> Any idea how to achieve that?
>
>
> Thomas
> --
> View this message in context: 
> http://www.nabble.com/How-can-I-validate-required-formComponents-after-page-load--tp14730931p14730931.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: End of page after Ajax Form

2008-01-10 Thread Pierre G

Thanks to Ken Tong who finds the solution :
It's a bug in IE. It works fine in Firefox. There is actually a bug report
on this: https://issues.apache.org/jira/browse/WICKET-1265
 


Pierre G wrote:
> 
> Hi all,
> 
> I am a newbie and never use AJAX before. I try to make an update of a row
> of a table with a Ajax form :
> 
> Form form = new Form("modifUser", new CompoundPropertyModel(user));
> form.add(new AjaxFormSubmitBehavior("onsubmit") {
> protected void onSubmit(AjaxRequestTarget target) {
> // modify some data 
> target.addComponent(compToUpdate); // le component to refresh on the
> original page
> modal.close(target);
> }
> protected void onError(AjaxRequestTarget target) {
> }
> protected IAjaxCallDecorator getAjaxCallDecorator() {
> return new AjaxCallDecorator() {
> public CharSequence decorateScript(CharSequence script) {
> return script+"return false;";
> }
> };
> }
> }); 
> 
> Everything woks fine except when the Ajax window close, the original page
> has the focus at the end of page.
> I think it should go the modify component (true ?). What can be possibly
> wrong ?
> 
> Thanks in advance for any help
> 
> 
> Pierre
> 
>  
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/End-of-page-after-Ajax-Form-tp14685891p14738117.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Custom logging system conflict with restoring sessions

2008-01-10 Thread Scott Sauyet
I got help with this on the log4j list.  Anyone looking to do something 
similar should see the very simple solution proposed by Jacob Kjome in


http://marc.info/?l=log4j-user&m=119994026205291&w=2

It involves adding a dummy configuration file on the classpath and then 
manually reconfiguring with the real file from within my application.


  -- Scott

Scott Sauyet wrote:
I'm not sure exactly what my question is other than "Do you have any 
suggestions?"  :-(


I'm using a custom extension to log4j's FileAppender.  I need to 
configure this in a class that loads a separate properties file.  It 
took me a while to figure a way to do this so that my configuration 
would run before any Wicket logging calls were done  (more precisely, 
before log4j's configuration is run.)  But I managed to do it by running 
that configuration in the init() of a separate servlet that loads before 
Wicket's.


This works fine, but occasionally it would fail, and it took me quite 
some time to determine the cause.  The problem occurs if there is a 
session containing a Wicket component.  When the server tries to 
reconstruct that component, there is a call to 
LogFactory.getLog(Component.class), which eventually leads to log4j's 
configuration running before my extra servlet has run.


Has anyone run into a similar situation, and did you find a good solution?

Thanks,

  -- Scott

-
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: Is wicketstuff-scriptaculous still active?

2008-01-10 Thread Ryan Sonnek
i've reopened the issue.

It must only allow whoever filed the issue to reopen it...

On Jan 10, 2008 10:00 AM, Edward Yakop <[EMAIL PROTECTED]> wrote:
> > > regarding the javascript issues, could you re-open this bug i filed in 
> > > wicket?
> > > https://issues.apache.org/jira/browse/WICKET-987
> I can't re-open this bug, but I left a comment in the jira issue.
>
>
> Regards,
> Edward Yakop
>
> -
> 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: Is wicketstuff-scriptaculous still active?

2008-01-10 Thread Edward Yakop
> > regarding the javascript issues, could you re-open this bug i filed in 
> > wicket?
> > https://issues.apache.org/jira/browse/WICKET-987
I can't re-open this bug, but I left a comment in the jira issue.

Regards,
Edward Yakop

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



Re: Is wicketstuff-scriptaculous still active?

2008-01-10 Thread Edward Yakop
The code is commited at
https://scm.ops4j.org/repos/ops4j/laboratory/users/efy/wicket-contrib-scriptaculous

I'm sorry that I couldn't sent a patch, when the modification was
done, it was committed to our project svn server.
Hence a diff couldn't be made.

> regarding the javascript issues, could you re-open this bug i filed in wicket?
> https://issues.apache.org/jira/browse/WICKET-987
Ok, will do that.

Note: I haven't modify the scriptcaulous example, if u need me to
update this, let me know.

Regards,
Edward Yakop

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



Re: Per-Deployment Variation

2008-01-10 Thread Erik van Oosten
Just make sure that the html elements with a wicket:id in the different
html versions have the same hierarchical structure. If you need to skip
some components for one language but not  another it becomes a bit
harder. Then you'll actually need to add an invisible component for the
language in which you want to skip that component.

I am not sure InvisibleComponent is part of Wicket 1.3 already,
otherwise it is easy to create one by extending WebMarkupContainer and
overriding isVisible() (or call setVisible).

Regards,
Erik.


grimp wrote:
> As as simple example, if I understand correctly, Wicket will throw an
> exception if a component is declared in Java but not in the markup, so it
> doesn't look as though things could just be controlled using MyPage_en.html,
> MyPage_fr.html etc.
>
>   

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



Re: Javascript call to wicket

2008-01-10 Thread Pills

Ok, I'll write it maybe tomorrow or this week end (I'm quite busy but I can
take an hour or two to write it).



Michael Sparer wrote:
> 
> I'm also no native speaker but I'll certainly read through it and write
> some enhancements (if necessary) once it's in the wiki
> 
> regards, Michael
> 

-- 
View this message in context: 
http://www.nabble.com/Javascript-call-to-wicket-tp14685384p14736458.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Is wicketstuff-scriptaculous still active?

2008-01-10 Thread Ryan Sonnek
Edward,
Thanks for the email.  I'm currently working on revamping the drag
drop API.  if you have any code you'd like to contribute feel free to
drop me an email.  maybe we could hash out a great new api to simplify
it's use.

regarding the javascript issues, could you re-open this bug i filed in wicket?
https://issues.apache.org/jira/browse/WICKET-987

I really think wicket should drop it's custom javascript minifier and
use YUI compressor instead to avoid these bugs...

On Jan 9, 2008 10:05 PM, edward.yakop <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Boon Ping and I managed to modify scriptaculous to get wicket component to
> be passed during onDrop callback.
> We changed the DraggableTargetContainer? to become a wicket behavior.
>
> We concluded by doing it this way, we can practically make any wicket
> component (tested for label and img, so far) to be a drop target.
>
> For example,
> 
> final ContextImage image = ...
> add( image );
> DropHandler handler = new DropHandler() {
>   public void onDrop( Component aDragSourceComponent, AjaxRequestTarget
> aTarget )
>   {
> String newImageURL = (String) aDragSourceComponent.getModelObject();
> image.setModelObject( newImageURL );
> aTarget.add( image );
>   }
> }
> image.add( new DraggableTargetBehavior( handler, "Image" ) ); // Image is
> the drag type
> 
>
> 
> ContextImage source = ...
> add( source );
> source.add( new DraggableBehavior( "Image" ) ); // Image is the drag type
> 
>
> On another note, we encounter weird problem when scriptaculous is used in
> deployment mode.
> We have to invoke
> WebApplication#getResourceSettings().setStripJavascriptCommentsAndWhitespace(false)
> to get javascript to work.
>
> Regards,
> Edward Yakop
> --
> View this message in context: 
> http://www.nabble.com/Is-wicketstuff-scriptaculous-still-active--tp14660810p14727336.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Javascript call to wicket

2008-01-10 Thread Michael Sparer

I'm also no native speaker but I'll certainly read through it and write some
enhancements (if necessary) once it's in the wiki

regards, Michael

jweekend wrote:
> 
> We can probably take a look and I am sure others will help once its up on
> the wiki.
> These may be useful references too: 
> http://www.nabble.com/integrating-extjs-with-wicket-to14715123.html here 
> and 
> http://www.nabble.com/calling-javascript-function-on-wicket-component%27s-onclick-to14730927.html
> here 
> Regards - Cemal
>  http://jWeekend.co.uk http://jWeekend.co.uk 
> 
> 
> 
> Pills wrote:
>> 
>> 
>> Yes, I'd like to do it, but as english is not my mother language, I
>> need somebody to correct it after I write it. 
>> 
>> Who wants to do that? ;) 
>> 
>> Gwyn Evans a écrit :
>> 
>>   As Cemel suggested, if you have time to put a summary up on the Wiki,
>> it would be appreciated!
>>   
>>   
>> 
>> 
>> 
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
>> 
> 
> 


-
Michael Sparer
http://talk-on-tech.blogspot.com
-- 
View this message in context: 
http://www.nabble.com/Javascript-call-to-wicket-tp14685384p14735846.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Javascript call to wicket

2008-01-10 Thread jweekend

We can probably take a look and I am sure others will help once its up on the
wiki.
These may be useful references too: 
http://www.nabble.com/integrating-extjs-with-wicket-to14715123.html here 
and 
http://www.nabble.com/calling-javascript-function-on-wicket-component%27s-onclick-to14730927.html
here 
Regards - Cemal
http://jWeekend.co.uk http://jWeekend.co.uk 



Pills wrote:
> 
> 
> Yes, I'd like to do it, but as english is not my mother language, I
> need somebody to correct it after I write it. 
> 
> Who wants to do that? ;) 
> 
> Gwyn Evans a écrit :
> 
>   As Cemel suggested, if you have time to put a summary up on the Wiki,
> it would be appreciated!
>   
>   
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Javascript-call-to-wicket-tp14685384p14735841.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: calling javascript function on wicket component's onclick

2008-01-10 Thread Gerolf Seitz
something like:

new AjaxLink("link") {
  protected onClick(AjaxRequestTarget target) { ...}
  protected IAjaxCallDecorator getAjaxCallDecorator() {
return new AjaxCallDecorator() {
  public CharSequence decorateScript(CharSequence script) {
return "alert('w00t'); " + script;
  }
}
  }
}

On Jan 10, 2008 2:16 PM, mbelarbi <[EMAIL PROTECTED]> wrote:

>
> How would i do that for what i have?
>
> Gerolf Seitz wrote:
> >
> > you need to override getAjaxCallDecorator() on the AjaxLink and return a
> > new
> >
> > AjaxCallDecorator that either prepends, appends (or both) your custom
> > javascript to the javascript created by the link.
> >
> > cheers,
> >   Gerolf
> >
> > On Jan 10, 2008 11:05 AM, mbelarbi <[EMAIL PROTECTED]> wrote:
> >
> >>
> >> Hi, I want to call a javascript function ( myFunction() ) on a
> >> component's
> >> onclick event.
> >>
> >> I tried this:
> >>
> >> a wicket:id="myLink" onClick="myFunction();"
> >>
> >> but then i realized that my wicket's onClick() method is overwriting
> the
> >> above html one.
> >>
> >> --
> >>AjaxLink agentLink = new AjaxLink("myLink") {
> >>
> >>public void onClick(AjaxRequestTarget target) {
> >>/* Some Code */
> >>}
> >>};
> >> -
> >>
> >> So then i tried this:
> >>
> >> --
> >>AjaxLink agentLink = new AjaxLink("myLink") {
> >>
> >>public void onClick(AjaxRequestTarget target) {
> >>target.appendJavascript("alert('hi from
> >> wicket');");
> >>/* Some Code */
> >>}
> >>};
> >> -
> >>
> >>
> >> But i don't see the alert when i click the link, can someone help me
> out?
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/calling-javascript-function-on-wicket-component%27s-onclick-tp14730927p14730927.html
> >> Sent from the Wicket - User mailing list archive at Nabble.com.
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/calling-javascript-function-on-wicket-component%27s-onclick-tp14730927p14732418.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: calling javascript function on wicket component's onclick

2008-01-10 Thread mbelarbi

How would i do that for what i have?

Gerolf Seitz wrote:
> 
> you need to override getAjaxCallDecorator() on the AjaxLink and return a
> new
> 
> AjaxCallDecorator that either prepends, appends (or both) your custom
> javascript to the javascript created by the link.
> 
> cheers,
>   Gerolf
> 
> On Jan 10, 2008 11:05 AM, mbelarbi <[EMAIL PROTECTED]> wrote:
> 
>>
>> Hi, I want to call a javascript function ( myFunction() ) on a
>> component's
>> onclick event.
>>
>> I tried this:
>>
>> a wicket:id="myLink" onClick="myFunction();"
>>
>> but then i realized that my wicket's onClick() method is overwriting the
>> above html one.
>>
>> --
>>AjaxLink agentLink = new AjaxLink("myLink") {
>>
>>public void onClick(AjaxRequestTarget target) {
>>/* Some Code */
>>}
>>};
>> -
>>
>> So then i tried this:
>>
>> --
>>AjaxLink agentLink = new AjaxLink("myLink") {
>>
>>public void onClick(AjaxRequestTarget target) {
>>target.appendJavascript("alert('hi from
>> wicket');");
>>/* Some Code */
>>}
>>};
>> -
>>
>>
>> But i don't see the alert when i click the link, can someone help me out?
>> --
>> View this message in context:
>> http://www.nabble.com/calling-javascript-function-on-wicket-component%27s-onclick-tp14730927p14730927.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/calling-javascript-function-on-wicket-component%27s-onclick-tp14730927p14732418.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



AjaxFormValidatingBehavior and caret (cursor) position

2008-01-10 Thread thomas jaeckle

Hi everyone.

I found this on the mailing list:
http://www.nabble.com/Re%3A-AjaxFormValidatingBehavior-and-focus-p9178324.html

And exactly this is my problem now.
I registered an "onkeyup" event on a textfield to validate it after each
keypress.

In a RequiredTextField following happens:
I want to type "Hello". Once i release the "H", the TextField is valid and
the caret goes to the first position in the Textfield. Then I type "ello"
and now I have "elloH" in the Textfield.

Is it planned to implement to keep the caret position as mentioned in the
other Message?
Does someone know a workaround to solve this?


Thomas
-- 
View this message in context: 
http://www.nabble.com/AjaxFormValidatingBehavior-and-caret-%28cursor%29-position-tp14732154p14732154.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Javascript call to wicket

2008-01-10 Thread Sébastien Piller




Yes, I'd like to do it, but as english is not my mother language, I
need somebody to correct it after I write it. 

Who wants to do that? ;)

Gwyn Evans a écrit :

  As Cemel suggested, if you have time to put a summary up on the Wiki,
it would be appreciated!
  
  




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



Re: back button and session state rollback

2008-01-10 Thread Matej Knopp
When user presses back button and clicks a ling to page, it will
affect the previous page version. Wicket takes care of this
automatically. Can you keep the state in page instead of keeping it in
session?

-Matej

On Jan 10, 2008 11:29 AM, Robin Shine <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am facing a situation where I need to rollback some state kept in session 
> when user hits the back button at browser side, and clicks some link which 
> triggers a server round trip. The usage scenario is as below:
> 1. User stays on page1, and the current state saved in session in state1
> 2. User clicks on a link in page1. At server side, the onclick() handler of 
> the link change session state to state2, and set current page to be page2 by 
> calling setResponsePage()
> 3. Now page2 is displayed at browser. User hits the back button to go back to 
> page1.
> 4. User continues to hit a link in page1 to do something. Of course at server 
> side, the session state will still be state2.
>
> Now I am looking for an approach to change the session state to the value 
> when page1 is first presented to user. I searched the mailing list archive 
> and found the entry 
> "http://www.nabble.com/Back-button-and-Database-rollback-to4124044.html#a4124044";
>  to be useful. However, as I am using wicket 1.3 which uses 
> SecondLevelCacheSessionStore, the "addStateChange" approach does not take 
> effect.
>
> So is there any other approaches for this problem?
>
> PS: Storing state in page instead of session solves the back-button problem, 
> however I can not store state into page as my application is composed of many 
> pages, and this state should be shared across these pages.
>
> Thanks.
> Robin
>

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



Re: DiskPageStore improvements for 1.3.1

2008-01-10 Thread Matej Knopp
> > > Ideally, NodeB ought to "catch up" when it joins the cluster by
> > > syncing the content in the disk page stores at that time.  I think
> > > it's a flaw we should track and fix at some point.
> > >
> > > Nice job, Matej!
> >
Well, I'm afraid as Igor said this is not possible to do without
having container specific code. So when currently a new node catch up
it only gets the last page for each pagemap.

> On Wed, 2008-01-09 at 22:35 -0800, Igor Vaynberg wrote:
> > this cant be accomplished transparently. we would need our own network
> > connection, node discovery, blah blah blah. loses a bit of appeal.
Yeah. This is actually not that difficult to do, there are frameworks
such as tribes that do this quite nicely. The main problem is that we
don't know the topology. We don't know which node is backed by which
node, so we would do lot of unnecearry copying. I don't see any easy
way to implement this.

> I'm intending to stir the pot a bit, but why are we kicking this further?  
> Igor is absolutely right..  For something simple, currently in the linux 
> kernel try
>
> drbd [1]
>
> 1) Nodes can catch up/sync
> 2) It'll be faster than anything you can do inside java
> 3) transparent to the application
> 4) debugged and proven to work inside a production env
> 5) means you can revert your changes and we don't have to worry/test anything
> ---
>
> To be honest you may be on the right path long term and I don't currently 
> have a better suggestion, but we are really reinventing the wheel here which 
> leads me to be highly cautious.

Reinventing the wheels? How does drbd handle the topology. Does it
know which nodes are backed by which node? Usually in more
sophisticated environment each node in cluster is backed by one other
node forming a ring and the container can be in charge of forming the
topology. How does drbd handle scenario like that?

-Matej

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



Re: Javascript call to wicket

2008-01-10 Thread Gwyn Evans
As Cemel suggested, if you have time to put a summary up on the Wiki,
it would be appreciated!

/Gwyn

On 09/01/2008, Pills <[EMAIL PROTECTED]> wrote:
>
> Thank you, now everything works fine, and it's clean ;)
>
>
>
> Michael Sparer wrote:
> >
> > You can do that like so: Map map =
> > ((WebRequestCycle)RequestCycle.get()).getRequest().getParameterMap();
> > Maybe there's also an easier way but I'm not really into wicket's
> > requestcycle ...
> >
>
> --
> View this message in context: 
> http://www.nabble.com/Javascript-call-to-wicket-tp14685384p14707957.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Download Wicket 1.3.0-rc1 now! - http://wicketframework.org

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



Per-Deployment Variation

2008-01-10 Thread grimp

I am considering using Wicket to re-implement an existing (ageing, clunky
etc.) ordering application. My main concern is Wicket's ability to provide a
simple, (ideally configuration file based) mechanism for per-deployment
variation of the app for different countries. 

The variation will come in most areas of the system, and while differences
in the service layer aspects (validating a payment, calculating tax etc.) is
currently handled using Spring, there will also be UI changes in page flow,
content and field validation.

As as simple example, if I understand correctly, Wicket will throw an
exception if a component is declared in Java but not in the markup, so it
doesn't look as though things could just be controlled using MyPage_en.html,
MyPage_fr.html etc.

Apologies if I missed something simple here, I'm very keen to use Wicket,
and I'm hoping that the per-deployment issue is not going to force me down
the 'XML config hell' route of Struts etc.

Thanks

Peter
-- 
View this message in context: 
http://www.nabble.com/Per-Deployment-Variation-tp14731151p14731151.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



back button and session state rollback

2008-01-10 Thread Robin Shine
Hi, 

I am facing a situation where I need to rollback some state kept in session 
when user hits the back button at browser side, and clicks some link which 
triggers a server round trip. The usage scenario is as below:
1. User stays on page1, and the current state saved in session in state1
2. User clicks on a link in page1. At server side, the onclick() handler of the 
link change session state to state2, and set current page to be page2 by 
calling setResponsePage()
3. Now page2 is displayed at browser. User hits the back button to go back to 
page1.
4. User continues to hit a link in page1 to do something. Of course at server 
side, the session state will still be state2. 

Now I am looking for an approach to change the session state to the value when 
page1 is first presented to user. I searched the mailing list archive and found 
the entry 
"http://www.nabble.com/Back-button-and-Database-rollback-to4124044.html#a4124044";
 to be useful. However, as I am using wicket 1.3 which uses 
SecondLevelCacheSessionStore, the "addStateChange" approach does not take 
effect. 

So is there any other approaches for this problem? 

PS: Storing state in page instead of session solves the back-button problem, 
however I can not store state into page as my application is composed of many 
pages, and this state should be shared across these pages.

Thanks.
Robin


Re: calling javascript function on wicket component's onclick

2008-01-10 Thread Gerolf Seitz
you need to override getAjaxCallDecorator() on the AjaxLink and return a new

AjaxCallDecorator that either prepends, appends (or both) your custom
javascript to the javascript created by the link.

cheers,
  Gerolf

On Jan 10, 2008 11:05 AM, mbelarbi <[EMAIL PROTECTED]> wrote:

>
> Hi, I want to call a javascript function ( myFunction() ) on a component's
> onclick event.
>
> I tried this:
>
> a wicket:id="myLink" onClick="myFunction();"
>
> but then i realized that my wicket's onClick() method is overwriting the
> above html one.
>
> --
>AjaxLink agentLink = new AjaxLink("myLink") {
>
>public void onClick(AjaxRequestTarget target) {
>/* Some Code */
>}
>};
> -
>
> So then i tried this:
>
> --
>AjaxLink agentLink = new AjaxLink("myLink") {
>
>public void onClick(AjaxRequestTarget target) {
>target.appendJavascript("alert('hi from
> wicket');");
>/* Some Code */
>}
>};
> -
>
>
> But i don't see the alert when i click the link, can someone help me out?
> --
> View this message in context:
> http://www.nabble.com/calling-javascript-function-on-wicket-component%27s-onclick-tp14730927p14730927.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


How can I validate required formComponents after page load?

2008-01-10 Thread thomas jaeckle

Hello Guys.

I am trying to validate my RequiredTextFields directly when/after the Page
is loaded so that I can display the required errormessage in my
feedbackpanel.

Currently I try to do this in the Pages constructor:

add(new AjaxEventBehavior("onload")
{
  protected void onEvent(AjaxRequestTarget target)
  {
fieldLastName.validate();
target.addComponent(getBorder().get("footerFeedback"));
  }
});

But that doesn't work.

Any idea how to achieve that?


Thomas
-- 
View this message in context: 
http://www.nabble.com/How-can-I-validate-required-formComponents-after-page-load--tp14730931p14730931.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



calling javascript function on wicket component's onclick

2008-01-10 Thread mbelarbi

Hi, I want to call a javascript function ( myFunction() ) on a component's
onclick event.

I tried this:


but then i realized that my wicket's onClick() method is overwriting the
above html one.

--
AjaxLink agentLink = new AjaxLink("myLink") {

public void onClick(AjaxRequestTarget target) { 

/* Some Code */
}
};
-

So then i tried this:

--
AjaxLink agentLink = new AjaxLink("myLink") {

public void onClick(AjaxRequestTarget target) {
target.appendJavascript("alert('hi from wicket');");

/* Some Code */
}
};
-


But i don't see the alert when i click the link, can someone help me out?
-- 
View this message in context: 
http://www.nabble.com/calling-javascript-function-on-wicket-component%27s-onclick-tp14730927p14730927.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: 2-pass rendering

2008-01-10 Thread blueneogeo

Followup question, the ireponsefilter seems what I need, but I have to add it
in the IRequestCycleSettings, which is application wide from what I
understand. What I would hope to achieve is that some pages render
themselves directly, while others use the technique described below. Is
there a way to use/set an IResponseFilter per Page (or per request, so I can
set it in the page)?

Thanks,

Christian



igor.vaynberg wrote:
> 
> see iresponsefilter
> 
> -igor
> 
> 
> On Jan 9, 2008 4:27 PM, blueneogeo <[EMAIL PROTECTED]>
> wrote:
>>
>> I'm having an unusual case in which I would like to use javascript to
>> load
>> and write pages into divs (somewhat ajax-like, but on other websites, as
>> an
>> included tool). In order to do so, I want the rendered page to actually
>> be
>> javascript alone the lines of:
>>
>> var txt;
>> txt += "some text here";
>> txt += "some text here";
>> txt += ... etc
>> parent.writeintodiv("divname", txt);
>>
>> so I can load this via a 

Re: 2-pass rendering

2008-01-10 Thread blueneogeo

Ahh missed that one... thank you! :-)

christian


igor.vaynberg wrote:
> 
> see iresponsefilter
> 
> -igor
> 
> 
> On Jan 9, 2008 4:27 PM, blueneogeo <[EMAIL PROTECTED]>
> wrote:
>>
>> I'm having an unusual case in which I would like to use javascript to
>> load
>> and write pages into divs (somewhat ajax-like, but on other websites, as
>> an
>> included tool). In order to do so, I want the rendered page to actually
>> be
>> javascript alone the lines of:
>>
>> var txt;
>> txt += "some text here";
>> txt += "some text here";
>> txt += ... etc
>> parent.writeintodiv("divname", txt);
>>
>> so I can load this via a 

Re: DiskPageStore improvements for 1.3.1

2008-01-10 Thread C.

> > Matej Knopp-2 wrote:
> > >
> > > Hi all,
> > >
> > > I've committed couple of changes to DiskPageStore to address some
> > > issues. Mind you the commit is rather fresh and needs to be tested
> > > properly before 1.3.1 gets out.
> > >
> > > First of all it solves the problem of context reloads (see
> > > https://issues.apache.org/jira/browse/WICKET-1161). When context is
> > > reloaded, the DiskPageStore index is no longer lost and all serialized
> > > page files can be used as if no reload has happened.
> > >
> > > The other improvement is better clustering support
> > > (https://issues.apache.org/jira/browse/WICKET-1272). The back button
> > > support is improved in clustered environment and also the memory
> > > consumption is reduced significantly.
> > >
> > > What's new? Imagine a simplified environment, cluster with two nodes
> > > (NodeA and NodeB). All sessions from a NodeA are replicated to NodeB
> > > and vice versa.
> > >
> > > When a page instance is being replicated from NodeA to NodeB, it is
> > > immediately stored to DiskPageStore on nodeB, rather than kept in
> > > session. This means that the instance is later accessible on NodeB
> > > even after another page from the same pagemap has been replicated to
> > > NodeB, because it's already stored in DiskPageStore. Also it doesn't
> > > have to be kept in memory, significantly reducing the session state.
> > >
> > >
> > > There is one exception though, where the backbutton won't work across
> > > cluster. Imagine following scenario:
> > >
> > > Session is created to NodeA
> > > NodeB goes down
> > > User visits page1, page2, page3 on NodeA  (these pages were not
> > > replicated to NodeB, because the node is not available)
> > > NodeB goes up
> > >
> > > only page3 (the last accessed page in it's pagemap) will be available
> > > on NodeB. page1 and page2 are not available, because when they were
> > > visited NodeB was not running. page3 is available, because it was
> > > active in nodeA session, thus got replicated to NodeB when the context
> > > on NodeB was initialized.

> 
> On Jan 9, 2008 10:24 PM, Jonathan Locke <[EMAIL PROTECTED]> wrote:
> >
> >
> > Ideally, NodeB ought to "catch up" when it joins the cluster by
> > syncing the content in the disk page stores at that time.  I think
> > it's a flaw we should track and fix at some point.
> >
> > Nice job, Matej!
> 

On Wed, 2008-01-09 at 22:35 -0800, Igor Vaynberg wrote:
> this cant be accomplished transparently. we would need our own network
> connection, node discovery, blah blah blah. loses a bit of appeal.
> 
> -igor
> 
> 

I'm intending to stir the pot a bit, but why are we kicking this further?  Igor 
is absolutely right..  For something simple, currently in the linux kernel try

drbd [1]

1) Nodes can catch up/sync
2) It'll be faster than anything you can do inside java
3) transparent to the application
4) debugged and proven to work inside a production env
5) means you can revert your changes and we don't have to worry/test anything
---

To be honest you may be on the right path long term and I don't currently have 
a better suggestion, but we are really reinventing the wheel here which leads 
me to be highly cautious.

Thanks

./C


[1] http://www.drbd.org/


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