Re: [Wicket-user] modal window is closed when form inside content panel is submitted

2007-01-09 Thread Nili Adoram
I tried replacing the original SubmitLink in the form with an 
AjaxSubmitLink:

public class AdvancedSearchForm extends Form {

private static final String id = "advanedSearchFrom";

public AdvancedSearchForm(IModel model) {
super(id, model);
  
add(new TextField("name"));
add(new TextField("user"));

//  old code:
//add(new SubmitLink("submitSearch"));
add(new AjaxSubmitLink("submitSearch",AdvancedSearchForm.this){

@Override
protected void onSubmit(AjaxRequestTarget target, Form form) {
ModalWindow.close(target);
   
}});
}
 
}

However the modal window did not open and the following errors were 
displayed:

Firefox Error console:

Error: no element found
Source File: 
http://nilia/provision?wicket:interface=:9:simpleSearchPanel:advancedSearch::IBehaviorListener&wicket:behaviorId=0&random=0.6456663530703572
Line: 1, Column: 54
Source Code:
-^
Error: no element found
Source File: 
http://nilia/provision/plugins/request-provision/ProvisioningRequests
Line: 1, Column: 54
Source Code:
-^

Wicket Ajax Debug window:
-

ERROR: Error while parsing response: Could not find root  element
 INFO: Invoking post-call handler(s)...
 INFO: Invoking failure handler(s)...

When I replace the AjaxSubmitLink back with a SubmitLink the modal 
window properly appears.

Thanks
Nili

Matej Knopp wrote:
> You have to use AjaxSubmitLink and call Window.close(target) inside the 
> onSubmit(AjaxRequestTarget...) method.
>
> -Matej
>
> Nili Adoram wrote:
>   
>> Hi all,
>>
>> I have a panel (named AdvancedSearchPanel) containing a Form with a 
>> SubmitLink.
>>
>> I open this panel inside a modal dialog:
>>
>> final ModalWindow modal;
>> add(modal = new ModalWindow("modalAdvancedSearch"));
>>
>> final AdvancedSearchPanel searchPanel = new 
>> AdvancedSearchPanel(modal
>> .getContentId());
>> modal.setContent(searchPanel);
>>
>> When the form is submitted, a message is displayed  ("Reloading this 
>> page will cause the modal window disappear.")  and the modal window is 
>> closed.
>>
>> However, the CloseButtonCallback and WindowClosedCallback are not called.
>>
>> These callbacks are only called if the close button is clicked.
>>
>> What causes the submit button to close the window?
>> How can verify that these callbacks are invoked whenever the window is 
>> closed?
>>
>> Thanks,
>> Nili
>>
>>
>>
>> -
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share your
>> opinions on IT & business topics through brief surveys - and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
>> 
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>   

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] (no subject)

2007-01-09 Thread Wolfgang Gehner
Hi there, we want to integrate Wicket with other rendering
technologies. One example is including wicket pages in a jsp.

I created a use case as an Eclipse project based on Wicket trunk of today.
zip is available at http://issues.apache.org/jira/browse/WICKET-202

Run the application as usual with Start - run as java application,
then go to http://localhost:8081/quickstart/index.jsp

Two problems:

1. Upon first entry on index.jsp, clicking "Open Dialog" and closing
redirects to App Main page, console shows "INFO -
uestTargetResolverStrategy - component not enabled or visible,
redirecting to calling page, component: null"

2. Incrementing values on [Wicket Page2] and opening and closing
Dialog on [Wicket Page1] *sometimes* results in PageExpired Error,
usually after some wait.

I wonder what to do to stabilize this. We hope we can make Wicket
coexist with other technologies such as JSP. After all, everything is
just servlets :-)

Regards,


Wolfgang

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] ApacheCon Europe 2007

2007-01-09 Thread Martijn Dashorst
As you all probably know, the Apache conference Apache Con Europe 2007
is getting closer (read more about it here: http://apachecon.com)

We can try to organize a couple of get to gethers. I already submitted
an Introduction to Wicket presentation (it still has to be accepted).
We are also preparing an Introductory course (3 hours) for the monday.

I want to propose to put in a birds of a feather for the Wicket
community. Birds of a feather are typically held in the evening.

I was wondering if you come, and what you would expect of such a get
together. Ideas could be:
 - discuss 2.0/2.1/3.0 roadmap
 - get some real applications shown
 - discuss other projects, such as wicket stuff
 - discuss the future of the wicket 1.x branch
 - ask the core team

Or more mundane things such as drinking beer. Any thoughts?

Martijn

-- 
Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket
Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
http://wicketframework.org

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Any more wicket articles?

2007-01-09 Thread Eelco Hillenius
> Hello,
>
> I just updated the wiki page
> http://cwiki.apache.org/confluence/display/WICKET/Articles+about+Wicket
> but there must surely be more articles on Wicket out there?!

There should be a couple more, maybe we need to do a bit more googling. :)

But... let this be a call to all readers to write some more articles!

Eelco

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Any more wicket articles?

2007-01-09 Thread Erik van Oosten
Hello,

I just updated the wiki page 
http://cwiki.apache.org/confluence/display/WICKET/Articles+about+Wicket
but there must surely be more articles on Wicket out there?!

Please add them when you find one!

Have fun,
 Erik.

-- 
Erik van Oosten
http://day-to-day-stuff.blogspot.com/


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Problems making a form reset button

2007-01-09 Thread Erik van Oosten
Okay, I thought about a bit more and I now agree with you. It will be a 
mess if you do what I propose in combination with not allowing the empty 
string through validation.

Still, the method CheckBox#clearInput() does not do what you expect. I 
expect it to clear the checkbox. This is translated to setting the model 
to false. Instead it sets the model to null. Does this make more sense?

Regards,
 Erik.


Martijn Dashorst wrote:
> Keep it as current. If you want tri-state logic, then you have to
> implement that. What are you going to do with int, long, double,
> float? make it 0? make it -1?
>
> Defaulting to false is very context dependent, and shouldn't be
> implemented as such.
>
> Martijn
>
> On 1/9/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
>   
>> my checkbox works fine:
>>
>> class MyDataObject
>> {
>>  Boolean myBoolean;
>>
>>  void setMyBoolean(Boolean b)
>>  Boolean getMyBoolean()
>> }
>>
>> so it is not directly the checkbox. But if you map it to a boolean
>> (primitive) then you don't have
>> the three-state thing yes. (null, false, true)
>>
>> So i dont know if this is a bug or not that really needs to be fixed.
>> Because what is the fix?
>>
>> I can't do what you do here. Because if it is a Boolean object then
>> null/empty string is valid.
>>
>> Maybe for booleans we can make an exception that null will be false in the
>> converter
>> What do others think?
>>
>> johan
>>
>> 
>
>   

-- 
Erik van Oosten
http://day-to-day-stuff.blogspot.com/


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Jar for wicket-contrib-scriptaculous?

2007-01-09 Thread James McLaughlin

That would be great. Maybe we can run the wicket-stuff examples there, too.
Is it possible for the wicket-stuff maintainers to get access to said box.

thx,
jim

On 1/9/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:


Yeah, we can't use Apache's infrastructure for wicket-stuff. However,
we have a couple of servers available that are not related to Apache I
believe.

Eelco

On 1/9/07, James McLaughlin <[EMAIL PROTECTED]> wrote:
> I thought there were licensing issues that prevented us from hosting the
> wicket-stuff wiki with the wicket wiki on apache.org. If not, then I am
for
> it. I have never used confluence so maybe someone who knows better can
> comment why it is so much better than the other wiki frameworks out
there.
>
>
> On 1/9/07, Filippo Diotalevi <[EMAIL PROTECTED]> wrote:
> > On 1/9/07, Korbinian Bachl <[EMAIL PROTECTED]> wrote:
> > > Filippo seems to have experience with confluence,  however, I'm
still
> > > wondering if we can use it, as i dont know
> > > a, how to get the license or if we may use the Apache ones for it
> > > b, on what server we will put it up - SF.net seems to limit to cgi
only
> and
> > > I cant remember to have seen cgi option on the confluence webpage.
> >
> > Yes, I have some experience with confluence, and it's powerful but
> > simple to use (customization can be a bit more tricky, but we might
> > easily start using the default template).
> > Furthermore, you can set up different 'workspaces', so you need just
> > one license to create different wikis.
> >
> > If there's already confluence installation for wicket, I'd go with it,
> > and I'd be happy to maintain it.
> >
> > --
> > Filippo Diotalevi
> > [EMAIL PROTECTED]
> > http://www.diotalevi.com/weblog
> > http://www.jugmilano.it
> >
> >
>
-
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to
share
> your
> > opinions on IT & business topics through brief surveys - and earn cash
> >
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
>
-
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
your
> opinions on IT & business topics through brief surveys - and earn cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Jar for wicket-contrib-scriptaculous?

2007-01-09 Thread Eelco Hillenius
Yeah, we can't use Apache's infrastructure for wicket-stuff. However,
we have a couple of servers available that are not related to Apache I
believe.

Eelco

On 1/9/07, James McLaughlin <[EMAIL PROTECTED]> wrote:
> I thought there were licensing issues that prevented us from hosting the
> wicket-stuff wiki with the wicket wiki on apache.org. If not, then I am for
> it. I have never used confluence so maybe someone who knows better can
> comment why it is so much better than the other wiki frameworks out there.
>
>
> On 1/9/07, Filippo Diotalevi <[EMAIL PROTECTED]> wrote:
> > On 1/9/07, Korbinian Bachl <[EMAIL PROTECTED]> wrote:
> > > Filippo seems to have experience with confluence,  however, I'm still
> > > wondering if we can use it, as i dont know
> > > a, how to get the license or if we may use the Apache ones for it
> > > b, on what server we will put it up - SF.net seems to limit to cgi only
> and
> > > I cant remember to have seen cgi option on the confluence webpage.
> >
> > Yes, I have some experience with confluence, and it's powerful but
> > simple to use (customization can be a bit more tricky, but we might
> > easily start using the default template).
> > Furthermore, you can set up different 'workspaces', so you need just
> > one license to create different wikis.
> >
> > If there's already confluence installation for wicket, I'd go with it,
> > and I'd be happy to maintain it.
> >
> > --
> > Filippo Diotalevi
> > [EMAIL PROTECTED]
> > http://www.diotalevi.com/weblog
> > http://www.jugmilano.it
> >
> >
> -
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> > opinions on IT & business topics through brief surveys - and earn cash
> >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Expiring Pages

2007-01-09 Thread Igor Vaynberg

webapps are often an uphill battle :)

On 1/9/07, Johan Compagner <[EMAIL PROTECTED]> wrote:


igor and his hacks..

On 1/9/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
>
> really you need to figure out how to configure this in your container,
> but in case you hit a brick wall in your basepage add an ajax timer behavior
> that pings every 20 mins or so, make it stop after 3 hours. the fact that it
> pings the server every 20 mins will keep the session alive.
>
> -igor
>
>
> On 1/9/07, suranjay < [EMAIL PROTECTED]> wrote:
> >
> >
> > Thank you for ur prompt reply.
> >
> > I did set
> > 
> >  
> >120
> >4096
> > 
> >   
> >
> > and
> >   
> >   120
> >   false
> >   
> >
> > in the  as well.
> >
> > But that seems to have no effect.
> >
> > I tested this by setting the timeout to 1 in both places, restarting
> > resin,
> > loading a webapp page and then doing a submit on it after abt 2
> > minutes. It
> > did not expire .
> >
> > Thanks for whatever help u can offer.
> > --
> > View this message in context:
> > http://www.nabble.com/Expiring-Pages-tf2946013.html#a8239918
> > Sent from the Wicket - User mailing list archive at Nabble.com.
> >
> >
> > -
> >
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to
> > share your
> > opinions on IT & business topics through brief surveys - and earn cash
> >
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
>
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Jar for wicket-contrib-scriptaculous?

2007-01-09 Thread James McLaughlin

I thought there were licensing issues that prevented us from hosting the
wicket-stuff wiki with the wicket wiki on apache.org. If not, then I am for
it. I have never used confluence so maybe someone who knows better can
comment why it is so much better than the other wiki frameworks out there.

On 1/9/07, Filippo Diotalevi <[EMAIL PROTECTED]> wrote:


On 1/9/07, Korbinian Bachl <[EMAIL PROTECTED]> wrote:
> Filippo seems to have experience with confluence,  however, I'm still
> wondering if we can use it, as i dont know
> a, how to get the license or if we may use the Apache ones for it
> b, on what server we will put it up - SF.net seems to limit to cgi only
and
> I cant remember to have seen cgi option on the confluence webpage.

Yes, I have some experience with confluence, and it's powerful but
simple to use (customization can be a bit more tricky, but we might
easily start using the default template).
Furthermore, you can set up different 'workspaces', so you need just
one license to create different wikis.

If there's already confluence installation for wicket, I'd go with it,
and I'd be happy to maintain it.

--
Filippo Diotalevi
[EMAIL PROTECTED]
http://www.diotalevi.com/weblog
http://www.jugmilano.it

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Expiring Pages

2007-01-09 Thread Johan Compagner

igor and his hacks..

On 1/9/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:


really you need to figure out how to configure this in your container, but
in case you hit a brick wall in your basepage add an ajax timer behavior
that pings every 20 mins or so, make it stop after 3 hours. the fact that it
pings the server every 20 mins will keep the session alive.

-igor


On 1/9/07, suranjay <[EMAIL PROTECTED]> wrote:
>
>
> Thank you for ur prompt reply.
>
> I did set
> 
>  
>120
>4096
> 
>   
>
> and
>   
>   120
>   false
>   
>
> in the  as well.
>
> But that seems to have no effect.
>
> I tested this by setting the timeout to 1 in both places, restarting
> resin,
> loading a webapp page and then doing a submit on it after abt 2 minutes.
> It
> did not expire .
>
> Thanks for whatever help u can offer.
> --
> View this message in context:
> http://www.nabble.com/Expiring-Pages-tf2946013.html#a8239918
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
>
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Jar for wicket-contrib-scriptaculous?

2007-01-09 Thread Filippo Diotalevi
On 1/9/07, Korbinian Bachl <[EMAIL PROTECTED]> wrote:
> Filippo seems to have experience with confluence,  however, I'm still
> wondering if we can use it, as i dont know
> a, how to get the license or if we may use the Apache ones for it
> b, on what server we will put it up - SF.net seems to limit to cgi only and
> I cant remember to have seen cgi option on the confluence webpage.

Yes, I have some experience with confluence, and it's powerful but
simple to use (customization can be a bit more tricky, but we might
easily start using the default template).
Furthermore, you can set up different 'workspaces', so you need just
one license to create different wikis.

If there's already confluence installation for wicket, I'd go with it,
and I'd be happy to maintain it.

-- 
Filippo Diotalevi
[EMAIL PROTECTED]
http://www.diotalevi.com/weblog
http://www.jugmilano.it

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Why are ResourceReference to DefaultButtonImageResources stored in Pagemaps?

2007-01-09 Thread M.A.Bednarz
Igor,

thank you very much. I forgot to measure the session and have also 
collected the byte size of the pagemap :-)

Thanks,

Maciej

Igor Vaynberg schrieb:
> are you sure the image data is stored in the session?
> 
> we have RenderedDynamicImageResource<-DefaultButtonImageResource
> 
> in RenderedDynamicImageResource we have
> 
> private transient SoftReference imageData;
> 
> so the field is transient and on top of that is a softreference. so 
> first of it shouldnt make it into httpsession, and second it should be 
> gced when memory runs short. are you observing this memory usage through 
> a profiler? try to force gc and see if the memory drops.
> 
> another way to optimize it is to do this:
> ResourceReference reference = new ResourceReference(resourceKey) {
>protected newResource() {
>  return new DefaultButtonImageResource(text);
>}
> }
> 
> Image image = Image(name, reference);
> 
> that way you are lazily creating resources
> 
> and if you want to optimize even further you can create a wrapper around 
> the default button resource and register it as a shared resource. this 
> wrapper would read the text off the url and pass it on to the default 
> button resource. this way you dont even need to use Image, a much 
> simpler custom class will do since all it has to do is set the src attr 
> to the proper url.
> 
> -igor
> 
> 
> 
> 
> 
> On 1/8/07, [EMAIL PROTECTED] * < 
> [EMAIL PROTECTED] > wrote:
> 
> Hi All!
> 
> I have noticed that ResourceReferences to
> DefaultButtonImageResources are stored inside a pagemap and this is
> stored in users sessions. Is this the usual behaviour of wicket or
> can I tune it? My current session size depends mostly on size of all
> used Images which are factoried as ResourceReferences.
> 
> My code flow looks like this:
> 
> DefaultButtonImageResource button = new
> DefaultButtonImageResource(text);
> ResourceReference reference = new ResourceReference(resourceKey,
> button);
> Image image = Image(name, reference);
> 
> and now some code from my page class:
> 
> private List activeButtons = new LinkedList();
> activeButtons.add(image):
> 
> Why is it necessary to store the whole image within the pagemap? May
> be I am doing someting wrong, do I?
> 
> Thank you very much for any help.
> 
> I have currently running my application succesfully on glassfish.
> Everything is great, the final prblem is only the size of pagemaps
> which mostly consist of image data.
> 
> Maciej
> 
> 
> ___
> Viren-Scan für Ihren PC! Jetzt für jeden. Sofort, online und kostenlos.
> Gleich testen! http://www.pc-sicherheit.web.de/freescan/?mc=02
> 
> 
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to
> share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> 
> 
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> 
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 
> 
> 
> 
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> 
> 
> 
> 
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Hibernate Paging

2007-01-09 Thread Nathan Hamblen
Yeah, I think there's a lot that can be done with ejb3/jpa, and I know
that people are more comfortable with standards approved by Sun than
they are with the Hibernate name. (There are some useful HibAnno
relationships that didn't make it into the spec, tho.)

Seems to me like validation and possibly bean editing using jpa
annotations would be a great Wicket sub-project (or projects). But
actually loading and persisting the data is a separate concern, right?

Nathan

Martijn Dashorst wrote:
> Oh well,
> 
> I find it very good to stirr up such a discussion.
> 
> In fact I think that the ejb package could be just what the doctor
> ordered for this in particular. javax.persistence while not the
> end-all-be-all of ORM, does have annotations for all conceivable
> relationships. This would make such scaffolding pretty standard and
> possibly easy (easier?) to achieve.
> 
> The biggest hurdle then becomes validation and tweaking of the
> beanedit panel (which fields do you show and which not, providing
> labels for the fields).
> 
> Martijn
> 
> 
> On 1/9/07, Nathan Hamblen <[EMAIL PROTECTED]> wrote:
>> Please ignore my spirited reply to that old message below. Somehow Gmane
>> (or Thunderbird?) has marked a bunch of old listserv messages as new,
>> and it is causing me to live in the past.
>>
>> Nathan Hamblen wrote:
>>> Experience with creating a "databinding" API... hmmm...
>>> [blah blah BLAH]


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ApacheCon interest?

2007-01-09 Thread Martijn Dashorst
Matej, could you take this one?

Martijn

On 1/9/07, Nick Heudecker <[EMAIL PROTECTED]> wrote:
> Unfortunately, I won't be able to do this.  I have a client event going on
> at the same time.
>
> On 12/24/06, Martijn Dashorst < [EMAIL PROTECTED]> wrote:
> >
> > All,
> >
> > We are in the planning stages for submitting proposals to the
> > ApacheCon of next year in Amsterdam (http://apachecon.com)
> >
> > Here are a couple of ideas:
> > - General interest: introduction to Wicket
> > - BoF: creating scalable applications with Wicket
> > - BoF: Wicket community (stole this idea from the maven team)
> > - Tutorial: Wicket Introduction (build a Wicket application, half a day)
> >
> > Do you have interest in one of these sessions, or do you want to
> > propose your own, don't hesitate to comment. Especially the Wicket
> > Community BoF is just an idea, any interesting filling would be
> > appreciated.
> >
> > Martijn
> >
> > --
> > Vote for Wicket at the
> http://www.thebeststuffintheworld.com/vote_for/wicket
> > Wicket 1.2.3 is as easy as 1-2-3. Download Wicket now!
> > http://wicketframework.org
> >
> >
> -
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> > opinions on IT & business topics through brief surveys - and earn cash
> >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>


-- 
Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket
Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
http://wicketframework.org

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] modal window is closed when form inside content panel is submitted

2007-01-09 Thread Matej Knopp
You have to use AjaxSubmitLink and call Window.close(target) inside the 
onSubmit(AjaxRequestTarget...) method.

-Matej

Nili Adoram wrote:
> Hi all,
> 
> I have a panel (named AdvancedSearchPanel) containing a Form with a 
> SubmitLink.
> 
> I open this panel inside a modal dialog:
> 
> final ModalWindow modal;
> add(modal = new ModalWindow("modalAdvancedSearch"));
> 
> final AdvancedSearchPanel searchPanel = new 
> AdvancedSearchPanel(modal
> .getContentId());
> modal.setContent(searchPanel);
> 
> When the form is submitted, a message is displayed  ("Reloading this 
> page will cause the modal window disappear.")  and the modal window is 
> closed.
> 
> However, the CloseButtonCallback and WindowClosedCallback are not called.
> 
> These callbacks are only called if the close button is clicked.
> 
> What causes the submit button to close the window?
> How can verify that these callbacks are invoked whenever the window is 
> closed?
> 
> Thanks,
> Nili
> 
> 
> 
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Hibernate Paging

2007-01-09 Thread Eelco Hillenius
On 1/9/07, Nathan Hamblen <[EMAIL PROTECTED]> wrote:
> Please ignore my spirited reply to that old message below. Somehow Gmane
> (or Thunderbird?) has marked a bunch of old listserv messages as new,
> and it is causing me to live in the past.

Just 10 months ago :)

Eelco

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Jar for wicket-contrib-scriptaculous?

2007-01-09 Thread Korbinian Bachl
damn timing :P 
 
can you please let us know more about it? 
 


  _  

Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag von Igor
Vaynberg
Gesendet: Dienstag, 9. Januar 2007 18:29
An: wicket-user@lists.sourceforge.net
Betreff: Re: [Wicket-user] Jar for wicket-contrib-scriptaculous?


we already have a confluence and jira license, so if you guys want i can
forward you the info.

we also have a server where these things can be hosted :)

i can set it up if you guys are interested

-igor 



On 1/9/07, Filippo Diotalevi <[EMAIL PROTECTED]> wrote: 

On 1/9/07, Korbinian Bachl <[EMAIL PROTECTED]> wrote:
> the current seems very basic to me, and i never heard about MoinMoin and
its
> capabilities before - what wonders me, is if it would be possible to use 
> confluence, as its used for wicket main so we would have only 1 technology
/
> system and users/ contributors would only have 1 system to know... any
> thoughts on this? - can wicket-stuff also profit from apache or is this
only 
> for listed projects there?

Yeah, I must admit that I'd prefer so much to go with confluence.
With this regard, there are 3 possible solutions:

- ask Atlassian for a free open source license. I've already done 
that, it requires some time (it required more than a month in my
case). Then you need to find a java hosting... not impossible, but
requires some work as well

- As I told you, I already have a free license of Confluence for the 
Java User Group Milano. We are building our website with it, but it
should be easy to add a workspace in our installation for
wicket-stuff. However, wicket-stuff would probably be a medium-traffic
website (much more than our), so I'd probably need to find another 
java hosting

- Use Apache confluence.. needless to say, I'd love it! but we've
already discussed about it and I remember some folks being not very
enthusiastic about this solution

--
Filippo Diotalevi 
[EMAIL PROTECTED]
http://www.diotalevi.com/weblog
http://www.jugmilano.it   

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your

opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php

&p=sourceforge&CID=DEVDEV 
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Jar for wicket-contrib-scriptaculous?

2007-01-09 Thread Korbinian Bachl
I havent big experience with WIKIs so far, but i would go confluence as I
expect better connections between the wicket wiki and wicket stuff wiki when
both are same base.
 
Filippo seems to have experience with confluence,  however, I'm still
wondering if we can use it, as i dont know
a, how to get the license or if we may use the Apache ones for it
b, on what server we will put it up - SF.net seems to limit to cgi only and
I cant remember to have seen cgi option on the confluence webpage.
 
Regards
 


  _  

Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag von Nick
Heudecker
Gesendet: Dienstag, 9. Januar 2007 17:13
An: wicket-user@lists.sourceforge.net
Betreff: Re: [Wicket-user] Jar for wicket-contrib-scriptaculous?


Yeah, the old one was MediaWiki.  It worked well enough, but there were some
problems with spam.  

Personally, I'd like to use Wicket's Confluence install to keep everything
in one place.  Might also make it easier to link between projects.  


On 1/9/07, James McLaughlin <[EMAIL PROTECTED]> wrote: 

Damned holidays! My lack of attention to wicket-stuff has been gnawing away
at me.

Ryan, sorry to here yo haven't been able to create an account. I would be
glad to help -- let me know what problem you are having. You've tried
clicking login from the main page, and then clicking the UserPreferences
link to create an account? 

I have no attachment to MoinMoin, but from my limited wiki admin experience
it is very lightweight and easy to configure. My other experience is with
TWiki, which is a bit cruftier, but pretty simple to use also. It also has
billions of plugins. I really liked the old wicket wiki, which i believe is
MediaWiki. We should take a vote and settle this so we can move ahead. My
advice is to stick with the sf infrastructure regardless of the wiki we use,
which requires the wiki to be cgi based. 

Thoughts?

regards,
jim 



On 1/9/07, Ryan Sonnek <  
[EMAIL PROTECTED]> wrote: 

I'd love to try and use the main wicket confluence instance in some way.
seriously, i haven't even been able to create an account and login to the
wiki for wicket-stuff. 



On 1/9/07, Filippo Diotalevi <[EMAIL PROTECTED]> wrote: 

On 1/9/07, Korbinian Bachl <[EMAIL PROTECTED]> wrote:
> the current seems very basic to me, and i never heard about MoinMoin and
its 
> capabilities before - what wonders me, is if it would be possible to use 
> confluence, as its used for wicket main so we would have only 1 technology
/
> system and users/ contributors would only have 1 system to know... any
> thoughts on this? - can wicket-stuff also profit from apache or is this
only 
> for listed projects there?

Yeah, I must admit that I'd prefer so much to go with confluence.
With this regard, there are 3 possible solutions:

- ask Atlassian for a free open source license. I've already done 
that, it requires some time (it required more than a month in my
case). Then you need to find a java hosting... not impossible, but
requires some work as well

- As I told you, I already have a free license of Confluence for the 
Java User Group Milano. We are building our website with it, but it
should be easy to add a workspace in our installation for
wicket-stuff. However, wicket-stuff would probably be a medium-traffic
website (much more than our), so I'd probably need to find another 
java hosting

- Use Apache confluence.. needless to say, I'd love it! but we've
already discussed about it and I remember some folks being not very
enthusiastic about this solution

--
Filippo Diotalevi 
[EMAIL PROTECTED]
http://www.diotalevi.com/weblog
http://www.jugmilano.it   

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your

opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php

&p=sourceforge&CID=DEVDEV 
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
 
https://lists.sourceforge.net/lists/listinfo/wicket-user




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your

opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php

&p=sourceforge&CID=DEVDEV

___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
 






---

Re: [Wicket-user] Jar for wicket-contrib-scriptaculous?

2007-01-09 Thread Igor Vaynberg

we already have a confluence and jira license, so if you guys want i can
forward you the info.

we also have a server where these things can be hosted :)

i can set it up if you guys are interested

-igor


On 1/9/07, Filippo Diotalevi <[EMAIL PROTECTED]> wrote:


On 1/9/07, Korbinian Bachl <[EMAIL PROTECTED]> wrote:
> the current seems very basic to me, and i never heard about MoinMoin and
its
> capabilities before - what wonders me, is if it would be possible to use
> confluence, as its used for wicket main so we would have only 1
technology /
> system and users/ contributors would only have 1 system to know... any
> thoughts on this? - can wicket-stuff also profit from apache or is this
only
> for listed projects there?

Yeah, I must admit that I'd prefer so much to go with confluence.
With this regard, there are 3 possible solutions:

- ask Atlassian for a free open source license. I've already done
that, it requires some time (it required more than a month in my
case). Then you need to find a java hosting... not impossible, but
requires some work as well

- As I told you, I already have a free license of Confluence for the
Java User Group Milano. We are building our website with it, but it
should be easy to add a workspace in our installation for
wicket-stuff. However, wicket-stuff would probably be a medium-traffic
website (much more than our), so I'd probably need to find another
java hosting

- Use Apache confluence.. needless to say, I'd love it! but we've
already discussed about it and I remember some folks being not very
enthusiastic about this solution

--
Filippo Diotalevi
[EMAIL PROTECTED]
http://www.diotalevi.com/weblog
http://www.jugmilano.it

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ApacheCon interest?

2007-01-09 Thread Nick Heudecker

Unfortunately, I won't be able to do this.  I have a client event going on
at the same time.

On 12/24/06, Martijn Dashorst <[EMAIL PROTECTED]> wrote:


All,

We are in the planning stages for submitting proposals to the
ApacheCon of next year in Amsterdam (http://apachecon.com)

Here are a couple of ideas:
- General interest: introduction to Wicket
- BoF: creating scalable applications with Wicket
- BoF: Wicket community (stole this idea from the maven team)
- Tutorial: Wicket Introduction (build a Wicket application, half a day)

Do you have interest in one of these sessions, or do you want to
propose your own, don't hesitate to comment. Especially the Wicket
Community BoF is just an idea, any interesting filling would be
appreciated.

Martijn

--
Vote for Wicket at the
http://www.thebeststuffintheworld.com/vote_for/wicket
Wicket 1.2.3 is as easy as 1-2-3. Download Wicket now!
http://wicketframework.org

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Expiring Pages

2007-01-09 Thread Igor Vaynberg

really you need to figure out how to configure this in your container, but
in case you hit a brick wall in your basepage add an ajax timer behavior
that pings every 20 mins or so, make it stop after 3 hours. the fact that it
pings the server every 20 mins will keep the session alive.

-igor


On 1/9/07, suranjay <[EMAIL PROTECTED]> wrote:



Thank you for ur prompt reply.

I did set

 
   120
   4096

  

and
  
  120
  false
  

in the  as well.

But that seems to have no effect.

I tested this by setting the timeout to 1 in both places, restarting
resin,
loading a webapp page and then doing a submit on it after abt 2 minutes.
It
did not expire .

Thanks for whatever help u can offer.
--
View this message in context:
http://www.nabble.com/Expiring-Pages-tf2946013.html#a8239918
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Jar for wicket-contrib-scriptaculous?

2007-01-09 Thread Eelco Hillenius
> The problem is that there are so many people involved in wicket-stuff
> that it's nearly impossible to reach them all and make a "democratic"
> decision about the future of the website.

I don't think it has to be work truly democratic. As long as the main
communication is via some public mailing list (like this one), it
works best if someone (you?) takes the initiative. I don't expect a
lot of people to complain about having made releases and having done
web site maintenance for them. Without no-one taking the lead, Wicket
stuff will stay in an impasse.

> In my opinion, we should drop the current website and use a wiki
> instead. It's the only simple way to manage the complexity of having
> so many projects, contributors and releases.

>From other replies on this thread it seems people agree, so go for it :)

Eelco

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Hibernate Paging

2007-01-09 Thread Martijn Dashorst
Oh well,

I find it very good to stirr up such a discussion.

In fact I think that the ejb package could be just what the doctor
ordered for this in particular. javax.persistence while not the
end-all-be-all of ORM, does have annotations for all conceivable
relationships. This would make such scaffolding pretty standard and
possibly easy (easier?) to achieve.

The biggest hurdle then becomes validation and tweaking of the
beanedit panel (which fields do you show and which not, providing
labels for the fields).

Martijn


On 1/9/07, Nathan Hamblen <[EMAIL PROTECTED]> wrote:
> Please ignore my spirited reply to that old message below. Somehow Gmane
> (or Thunderbird?) has marked a bunch of old listserv messages as new,
> and it is causing me to live in the past.
>
> Nathan Hamblen wrote:
> > Experience with creating a "databinding" API... hmmm...
> > [blah blah BLAH]
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


-- 
Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket
Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
http://wicketframework.org

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Hibernate Paging

2007-01-09 Thread Nathan Hamblen
Please ignore my spirited reply to that old message below. Somehow Gmane
(or Thunderbird?) has marked a bunch of old listserv messages as new,
and it is causing me to live in the past.

Nathan Hamblen wrote:
> Experience with creating a "databinding" API... hmmm...
> [blah blah BLAH]


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Hibernate Paging

2007-01-09 Thread Nathan Hamblen
Experience with creating a "databinding" API... hmmm...

Hey, there's actually an implementation of DataView paging using
criteria here:
http://databinder.net/site/show/baseball-players
(sorry I haven't kept up with my listserv reading)

So, I wonder what could be done in terms of generic databinding that
would make everyone happy. I kind of think it is impossible, just
because people have such different opinions about it, and those opinions
are always in flux. I'm certainly interested in someday supporting
Cayenne through Databinder, but it will be a pretty major refactor, and
even then I don't see it being possible (or desirable) to abstract-out
the differences between persistence libraries in any particular layer.
Instead you might have flavors of the toolkit that work similarly, and
share common interfaces where possible and useful.

As for scaffolding / beanviews or whatever... the problem is those
things never support complicated (but common) relations between objects.
Rails scaffolding when I last checked was a one-table-only affair. So as
much as that functionality looks good in demos, it has no use at all if
your minimally useful datamodel already has basic connections in it.

Nathan


Eelco Hillenius wrote:
> Thanks. I have to say that - now that I take a closer look after allmost
> a year - I am not particularly content with the contrib-data and
> contrib-hibernate packages. It works, but it could be much more elegant.
> 
> It would be good to rethink the databinding from scratch, and come up
> with something really good and generic. And on top of that we could
> create a (t)rails-like package with generic object editing panels,
> ready-to-use datagrids etc.
> 
> Any readers that have experience with creating a databinding API and
> want to join in on the effort?
> 
> Eelco
> 
> 
> Phil Kulak wrote:
> 
>> Oops, spoke too soon. I didn't have to use DetachedQueries.
>>
>> On 6/3/05, Phil Kulak <[EMAIL PROTECTED]> wrote:
>>  
>>
>>> Here's what I came up with. It seems to work well so far.
>>>
>>> -Phil
>>>
>>> On 6/3/05, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
>>>   
 Yes, that was a bug. Should be fixed now.

 Eelco

 Phil Kulak wrote:

 
> Take a look at HibernateCountAndListAction.getQuery(). It looks to me
> like it's been hard coded to the example query in the comment at the
> top of the class by putting the "cd" alias in there.
>
> On 6/3/05, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
>
>
>   
>> Yes, is it does. PageableList is the the object that has the magic in
>> it. It reads only the 'window' that it is currently in, so you
>> don't end
>> up with your whole database in memory.
>>
>> Eelco
>>
>> Jonathan Carlson wrote:
>>
>>
>>
>> 
>>> I don't think the CD app example uses Hibernate to do the
>>> paging.  If I
>>> remember right, it reads it all in and does the paging and
>>> sorting in
>>> memory but I could have missed something.
>>>
>>> - Jonathan
>>>
>>>
>>>
>>>
>>>
>>>   
>> [EMAIL PROTECTED] 2005-06-03 11:31:04 AM >>>
>>
>>
>>
>>
>> 
>>> I look like I've figured it out anyway, but for future reference,
>>> where is the source for that example? I found the running
>>> program. Is
>>> the source only in CVS?
>>>
>>> On 6/3/05, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
>>>
>>>
>>>
>>>
>>>   
 Phil Kulak wrote:





 
> It looks like you guys have that all figured out in the
> contrib, but
>
>
>
>
>   
>>> I
>>>
>>>
>>>
>>>
>>>   
> can't seem to figure out how it's supposed to be used from just
> the
> source. Is there an example anywhere I could look at?
>
>
>
>
>
>
>   
 You could take a look at the CD-App example. This one is rather




 
>>> feature
>>>
>>>
>>>
>>>
>>>   
 complete. It is member of the wicket-stuff project under the
 wicket-contrib-examples.

 Martijn


 ---
 This SF.Net email is sponsored by Yahoo.
 Introducing Yahoo! Search Developer Network - Create apps using




 
>>> Yahoo!
>>>
>>>
>>>
>>>
>>>   
 Search APIs Find out how you can build Yahoo! directly into your
 own
 Applications - visit




 
>>> http://developer.yahoo.net/?

Re: [Wicket-user] Jar for wicket-contrib-scriptaculous?

2007-01-09 Thread Nick Heudecker

Yeah, the old one was MediaWiki.  It worked well enough, but there were some
problems with spam.

Personally, I'd like to use Wicket's Confluence install to keep everything
in one place.  Might also make it easier to link between projects.

On 1/9/07, James McLaughlin <[EMAIL PROTECTED]> wrote:


Damned holidays! My lack of attention to wicket-stuff has been gnawing
away at me.

Ryan, sorry to here yo haven't been able to create an account. I would be
glad to help -- let me know what problem you are having. You've tried
clicking login from the main page, and then clicking the UserPreferences
link to create an account?

I have no attachment to MoinMoin, but from my limited wiki admin
experience it is very lightweight and easy to configure. My other experience
is with TWiki, which is a bit cruftier, but pretty simple to use also. It
also has billions of plugins. I really liked the old wicket wiki, which i
believe is MediaWiki. We should take a vote and settle this so we can move
ahead. My advice is to stick with the sf infrastructure regardless of the
wiki we use, which requires the wiki to be cgi based.

Thoughts?

regards,
jim

On 1/9/07, Ryan Sonnek <[EMAIL PROTECTED]> wrote:
>
> I'd love to try and use the main wicket confluence instance in some
> way.  seriously, i haven't even been able to create an account and login to
> the wiki for wicket-stuff.
>
> On 1/9/07, Filippo Diotalevi <[EMAIL PROTECTED]> wrote:
> >
> > On 1/9/07, Korbinian Bachl <[EMAIL PROTECTED]> wrote:
> > > the current seems very basic to me, and i never heard about MoinMoin
> > and its
> > > capabilities before - what wonders me, is if it would be possible to
> > use
> > > confluence, as its used for wicket main so we would have only 1
> > technology /
> > > system and users/ contributors would only have 1 system to know...
> > any
> > > thoughts on this? - can wicket-stuff also profit from apache or is
> > this only
> > > for listed projects there?
> >
> > Yeah, I must admit that I'd prefer so much to go with confluence.
> > With this regard, there are 3 possible solutions:
> >
> > - ask Atlassian for a free open source license. I've already done
> > that, it requires some time (it required more than a month in my
> > case). Then you need to find a java hosting... not impossible, but
> > requires some work as well
> >
> > - As I told you, I already have a free license of Confluence for the
> > Java User Group Milano. We are building our website with it, but it
> > should be easy to add a workspace in our installation for
> > wicket-stuff. However, wicket-stuff would probably be a medium-traffic
> > website (much more than our), so I'd probably need to find another
> > java hosting
> >
> > - Use Apache confluence.. needless to say, I'd love it! but we've
> > already discussed about it and I remember some folks being not very
> > enthusiastic about this solution
> >
> > --
> > Filippo Diotalevi
> > [EMAIL PROTECTED]
> > http://www.diotalevi.com/weblog
> > http://www.jugmilano.it
> >
> >
> > -
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to
> > share your
> > opinions on IT & business topics through brief surveys - and earn cash
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
>
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV__

Re: [Wicket-user] Pagination not working

2007-01-09 Thread snkr subedi
thank you, Johan Compagner for the reply
I solved  the problem.
I had forgot to define the method
public List getListForMe(int start,int count){
return findAllMes().subList(start, start+count);
}
I just used whole list iterator


Thank you
sNkr

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] confusing AjaxFallbackLink API

2007-01-09 Thread Johan Compagner

So you make your AjaxFallbackLink that does this:

class MyAjaxFallbackLink()
{
 protected void onClick(AjaxTarget target) {
   if (target == null) {
  onFallbackClick();
   }
   else
   {
   onAjaxClick(target);
   }
 }
 protected void onFallbackClick();
 protected void onAjaxClick(AjaxTarget target);
}

And you have your link that you want.


On 1/9/07, Ryan Sonnek <[EMAIL PROTECTED]> wrote:


Although I'm not a committer, I'd like to open RFE for an API change, and
I'd like to get feedback from the devs.

Here's my complaint.  When I'm using an AjaxFallbackLink, I'm making an
explicit decision that I want to handle ajax and "non-ajax" requests in
different ways.  The problem is that there's only one callback function
which causes my implementation to *always* look something like this:

new AjaxFallbackLink() {
  protected void onClick(AjaxTarget target) {
if (target == null) {
  //ajax not used, fallback to normal
  getRequestCycle().setResponsePage(Foo.class);
}
//perform ajax stuff
target.addComponent(this);
  }

I think it would be much nicer if the API had two extension points to
avoid this branching logic.  something like:

new AjaxFallbackLink() {
  protected void onFallbackClick() {
  //ajax not used, fallback to normal
  getRequestCycle().setResponsePage(Foo.class);
  }

  protected void onClick(AjaxTarget target) {
//perform ajax stuff
target.addComponent(this);
  }

I'd be happy to open an issue and even provide patches if others think
this would be useful.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] When will RequestCycle.detach() being called?

2007-01-09 Thread Johan Compagner

yes or see whats different with the code i posted and patch your tester.


On 1/6/07, Carfield Yim <[EMAIL PROTECTED]> wrote:


> but it can be that it is purely 1.3
>
So I need to wait for version 1.3 you mean?

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Jar for wicket-contrib-scriptaculous?

2007-01-09 Thread James McLaughlin

Damned holidays! My lack of attention to wicket-stuff has been gnawing away
at me.

Ryan, sorry to here yo haven't been able to create an account. I would be
glad to help -- let me know what problem you are having. You've tried
clicking login from the main page, and then clicking the UserPreferences
link to create an account?

I have no attachment to MoinMoin, but from my limited wiki admin experience
it is very lightweight and easy to configure. My other experience is with
TWiki, which is a bit cruftier, but pretty simple to use also. It also has
billions of plugins. I really liked the old wicket wiki, which i believe is
MediaWiki. We should take a vote and settle this so we can move ahead. My
advice is to stick with the sf infrastructure regardless of the wiki we use,
which requires the wiki to be cgi based.

Thoughts?

regards,
jim

On 1/9/07, Ryan Sonnek <[EMAIL PROTECTED]> wrote:


I'd love to try and use the main wicket confluence instance in some way.
seriously, i haven't even been able to create an account and login to the
wiki for wicket-stuff.

On 1/9/07, Filippo Diotalevi <[EMAIL PROTECTED]> wrote:
>
> On 1/9/07, Korbinian Bachl <[EMAIL PROTECTED]> wrote:
> > the current seems very basic to me, and i never heard about MoinMoin
> and its
> > capabilities before - what wonders me, is if it would be possible to
> use
> > confluence, as its used for wicket main so we would have only 1
> technology /
> > system and users/ contributors would only have 1 system to know... any
> > thoughts on this? - can wicket-stuff also profit from apache or is
> this only
> > for listed projects there?
>
> Yeah, I must admit that I'd prefer so much to go with confluence.
> With this regard, there are 3 possible solutions:
>
> - ask Atlassian for a free open source license. I've already done
> that, it requires some time (it required more than a month in my
> case). Then you need to find a java hosting... not impossible, but
> requires some work as well
>
> - As I told you, I already have a free license of Confluence for the
> Java User Group Milano. We are building our website with it, but it
> should be easy to add a workspace in our installation for
> wicket-stuff. However, wicket-stuff would probably be a medium-traffic
> website (much more than our), so I'd probably need to find another
> java hosting
>
> - Use Apache confluence.. needless to say, I'd love it! but we've
> already discussed about it and I remember some folks being not very
> enthusiastic about this solution
>
> --
> Filippo Diotalevi
> [EMAIL PROTECTED]
> http://www.diotalevi.com/weblog
> http://www.jugmilano.it
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Jar for wicket-contrib-scriptaculous?

2007-01-09 Thread Nick Heudecker

I agree that a wiki is a good way to go.  I'll find out if we can use the
main Wicket wiki on the Apache site for wicket-stuff.

On 1/9/07, Ryan Sonnek <[EMAIL PROTECTED]> wrote:


I'd love to try and use the main wicket confluence instance in some way.
seriously, i haven't even been able to create an account and login to the
wiki for wicket-stuff.

On 1/9/07, Filippo Diotalevi <[EMAIL PROTECTED]> wrote:
>
> On 1/9/07, Korbinian Bachl <[EMAIL PROTECTED]> wrote:
> > the current seems very basic to me, and i never heard about MoinMoin
> and its
> > capabilities before - what wonders me, is if it would be possible to
> use
> > confluence, as its used for wicket main so we would have only 1
> technology /
> > system and users/ contributors would only have 1 system to know... any
> > thoughts on this? - can wicket-stuff also profit from apache or is
> this only
> > for listed projects there?
>
> Yeah, I must admit that I'd prefer so much to go with confluence.
> With this regard, there are 3 possible solutions:
>
> - ask Atlassian for a free open source license. I've already done
> that, it requires some time (it required more than a month in my
> case). Then you need to find a java hosting... not impossible, but
> requires some work as well
>
> - As I told you, I already have a free license of Confluence for the
> Java User Group Milano. We are building our website with it, but it
> should be easy to add a workspace in our installation for
> wicket-stuff. However, wicket-stuff would probably be a medium-traffic
> website (much more than our), so I'd probably need to find another
> java hosting
>
> - Use Apache confluence.. needless to say, I'd love it! but we've
> already discussed about it and I remember some folks being not very
> enthusiastic about this solution
>
> --
> Filippo Diotalevi
> [EMAIL PROTECTED]
> http://www.diotalevi.com/weblog
> http://www.jugmilano.it
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Problems making a form reset button

2007-01-09 Thread Erik van Oosten
The point is that I do not want tri-state logic. That is why the 
property has type boolean and not Boolean. If you want tri-state logic, 
you can (and intuitively will) use non-primitive properties in your 
model objects.

Anyway, you could always use the same values as java uses to initialize 
primitive members. So thats 0, '\0' and false.

You say it is very context dependent. I agree there. But I also find 
that context to be very limited, namely to models of a primitive type, a 
well known exception to Java's object orientedness.

Regards,
 Erik.

Martijn Dashorst wrote:
> Keep it as current. If you want tri-state logic, then you have to
> implement that. What are you going to do with int, long, double,
> float? make it 0? make it -1?
>
> Defaulting to false is very context dependent, and shouldn't be
> implemented as such.
>
> Martijn
>
> On 1/9/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
>   
>> my checkbox works fine:
>>
>> class MyDataObject
>> {
>>  Boolean myBoolean;
>>
>>  void setMyBoolean(Boolean b)
>>  Boolean getMyBoolean()
>> }
>>
>> so it is not directly the checkbox. But if you map it to a boolean
>> (primitive) then you don't have
>> the three-state thing yes. (null, false, true)
>>
>> So i dont know if this is a bug or not that really needs to be fixed.
>> Because what is the fix?
>>
>> I can't do what you do here. Because if it is a Boolean object then
>> null/empty string is valid.
>>
>> Maybe for booleans we can make an exception that null will be false in the
>> converter
>> What do others think?
>>
>> johan
>>
>>
>>
>> On 1/9/07, Erik van Oosten <[EMAIL PROTECTED]> wrote:
>> 
>>> Johan,
>>>
>>> I got it working as below. Shall I create a Jira issue for this? I think
>>> it would be more logical if checkbox could deal with cleared input.
>>>
>>>  Erik.
>>>
>>>
>>> // The reset button
>>> Button resetButton = new Button("resetbutton") {
>>> /** [EMAIL PROTECTED] */
>>> protected void onSubmit() {
>>> // Clear the form
>>> form.visitChildren(FormComponent.class, new
>>> Component.IVisitor() {
>>> public Object component(Component component) {
>>> FormComponent formComponent =
>>>   
>> ((FormComponent)
>> 
>>> component);
>>> if (formComponent instanceof CheckBox) {
>>> ((CheckBox)
>>> formComponent).setModelObject("false");
>>> } else {
>>> formComponent.clearInput();
>>> formComponent.updateModel();
>>> }
>>> return
>>> Component.IVisitor.CONTINUE_TRAVERSAL_BUT_DONT_GO_DEEPER;
>>> }
>>> });
>>> }
>>> };
>>> // Perform only the onSubmit, no validation
>>> resetButton.setDefaultFormProcessing (false);
>>> form.add(resetButton);
>>>
>>>
>>>
>>> Erik van Oosten wrote:
>>>   
 Yes, correct. The model should be cleared as well.
 And it indeed uses setDefaultFormProcessing(false).

 The approach your describing below will throw exceptions for checkboxes:

 WicketMessage: unable to set object null, model:

 
>> Model:classname=[wicket.model.PropertyModel]:attached=true:[EMAIL PROTECTED]
>> ]:expression=[searchInHistoricNames]:propertyType=[null],
>> 
 called with component [MarkupContainer [Component id = formelement, page
 = nl.amsterdam.rbrb.web.search.SearchPage, path =

 
>> 2:maincontent:searchform:form:formElements:2:inputfragment:
>> formelement.CheckBox,
>> 
 isVisible = true, isVersioned = false]]

 Root cause:

 wicket.util.convert.ConversionException: Can't convert
 
>> null value to a
>> 
 primitive class: boolean for setting it on

 
>> [EMAIL PROTECTED]
>> 
 at

 
>> wicket.util.lang.PropertyResolver$MethodGetAndSet.setValue(Ljava.lang.Object;Ljava.lang.Object;Lwicket.util.convert.IConverter;)V(
>> PropertyResolver.java:838)
>> 
 at

 
>> wicket.util.lang.PropertyResolver$ObjectAndGetSetter.setValue(Ljava.lang.Object;Lwicket.util.convert.IConverter;)V(PropertyResolver.java:447)
>> 
 at
 wicket.util.lang.PropertyResolver.setValue
 
>> (Ljava.lang.String;Ljava.lang.Object;Ljava.lang.Object;Lwicket.util.convert.IConverter;)V(PropertyResolver.java:136)
>> 
 at

 
>> wicket.model.AbstractPropertyModel.onSetObject(Lwicket.Component;Ljava.lang.Object;)V(
>> AbstractPropertyModel.java:182)
>> 
 at

 
>> wicket.model.AbstractDetachableModel.setObject(Lwicket.Component;Ljava.lang.Object;)V(AbstractDetachableModel.java:131)
>> 
 at
 wicket.Component.setModelObject
 
>> (Ljava.lang.Object;)Lwicket.Component;(Component.java:20

Re: [Wicket-user] Pagination not working

2007-01-09 Thread Johan Compagner

are you returning the right thing in the IDataProvider.iterator(offset,length)
method?

Because the second time the offset shouldnt be 0 but 3

johan


On 1/9/07, snkr subedi <[EMAIL PROTECTED]> wrote:


Hi,
i am new to this mailling list as well as Wicket so sorry if the
question is not worth the mailing list.

i got a problem here.
I want to show some tabular information using the DataView with
pagination.
I have tried both the Loadable and Abstract Detachable models.
When i run the program the information is repeated in the pages.
if i have 5 rows to display and i set setItemsPerPage(3) then in next
page i.e when i clicked next the same information that was displayed
before is displayed.

Thanks in Advance
sNkr

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Problems making a form reset button

2007-01-09 Thread Martijn Dashorst
Keep it as current. If you want tri-state logic, then you have to
implement that. What are you going to do with int, long, double,
float? make it 0? make it -1?

Defaulting to false is very context dependent, and shouldn't be
implemented as such.

Martijn

On 1/9/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
> my checkbox works fine:
>
> class MyDataObject
> {
>  Boolean myBoolean;
>
>  void setMyBoolean(Boolean b)
>  Boolean getMyBoolean()
> }
>
> so it is not directly the checkbox. But if you map it to a boolean
> (primitive) then you don't have
> the three-state thing yes. (null, false, true)
>
> So i dont know if this is a bug or not that really needs to be fixed.
> Because what is the fix?
>
> I can't do what you do here. Because if it is a Boolean object then
> null/empty string is valid.
>
> Maybe for booleans we can make an exception that null will be false in the
> converter
> What do others think?
>
> johan
>
>
>
> On 1/9/07, Erik van Oosten <[EMAIL PROTECTED]> wrote:
> > Johan,
> >
> > I got it working as below. Shall I create a Jira issue for this? I think
> > it would be more logical if checkbox could deal with cleared input.
> >
> >  Erik.
> >
> >
> > // The reset button
> > Button resetButton = new Button("resetbutton") {
> > /** [EMAIL PROTECTED] */
> > protected void onSubmit() {
> > // Clear the form
> > form.visitChildren(FormComponent.class, new
> > Component.IVisitor() {
> > public Object component(Component component) {
> > FormComponent formComponent =
> ((FormComponent)
> > component);
> > if (formComponent instanceof CheckBox) {
> > ((CheckBox)
> > formComponent).setModelObject("false");
> > } else {
> > formComponent.clearInput();
> > formComponent.updateModel();
> > }
> > return
> > Component.IVisitor.CONTINUE_TRAVERSAL_BUT_DONT_GO_DEEPER;
> > }
> > });
> > }
> > };
> > // Perform only the onSubmit, no validation
> > resetButton.setDefaultFormProcessing (false);
> > form.add(resetButton);
> >
> >
> >
> > Erik van Oosten wrote:
> > > Yes, correct. The model should be cleared as well.
> > > And it indeed uses setDefaultFormProcessing(false).
> > >
> > > The approach your describing below will throw exceptions for checkboxes:
> > >
> > > WicketMessage: unable to set object null, model:
> > >
> Model:classname=[wicket.model.PropertyModel]:attached=true:[EMAIL PROTECTED]
> ]:expression=[searchInHistoricNames]:propertyType=[null],
> > > called with component [MarkupContainer [Component id = formelement, page
> > > = nl.amsterdam.rbrb.web.search.SearchPage, path =
> > >
> 2:maincontent:searchform:form:formElements:2:inputfragment:
> formelement.CheckBox,
> > > isVisible = true, isVersioned = false]]
> > >
> > > Root cause:
> > >
> > > wicket.util.convert.ConversionException: Can't convert
> null value to a
> > > primitive class: boolean for setting it on
> > >
> [EMAIL PROTECTED]
> > > at
> > >
> wicket.util.lang.PropertyResolver$MethodGetAndSet.setValue(Ljava.lang.Object;Ljava.lang.Object;Lwicket.util.convert.IConverter;)V(
> PropertyResolver.java:838)
> > > at
> > >
> wicket.util.lang.PropertyResolver$ObjectAndGetSetter.setValue(Ljava.lang.Object;Lwicket.util.convert.IConverter;)V(PropertyResolver.java:447)
> > > at
> > > wicket.util.lang.PropertyResolver.setValue
> (Ljava.lang.String;Ljava.lang.Object;Ljava.lang.Object;Lwicket.util.convert.IConverter;)V(PropertyResolver.java:136)
> > > at
> > >
> wicket.model.AbstractPropertyModel.onSetObject(Lwicket.Component;Ljava.lang.Object;)V(
> AbstractPropertyModel.java:182)
> > > at
> > >
> wicket.model.AbstractDetachableModel.setObject(Lwicket.Component;Ljava.lang.Object;)V(AbstractDetachableModel.java:131)
> > > at
> > > wicket.Component.setModelObject
> (Ljava.lang.Object;)Lwicket.Component;(Component.java:2042)
> > > at
> > >
> wicket.markup.html.form.FormComponent.updateModel()V(FormComponent.java:840)
> > > at
> > > nl.amsterdam.rbrb.web.form.FormPanel$5.component
> (Lwicket.Component;)Ljava.lang.Object;(FormPanel.java:214)
> > > <--- the line with formComponent.updateModel();
> > >
> > >
> > > Regards,
> > >  Erik.
> > >
> > >
> > >
> > >
> > > Johan Compagner wrote:
> > >
> > >> why do you want to call updateFormComponentModels?
> > >> You also want to clear all model data? So the models already did get
> > >> some data from a previous request?
> > >> (i take the reset button has setDefaultFormProcessing(false) ?)
> > >>
> > >> but why not do this:
> > >>
> > >>  form.visitChildren(FormComponent.class, new
> > >> Component.IVisitor() {
> > >> public Object component(Component component) {
> > >> ((FormComponent) c

Re: [Wicket-user] Problems making a form reset button

2007-01-09 Thread Erik van Oosten
Hi Johan,

Ok, I understand.
Indeed, my model is a property in a bean that has the primitive type 
boolean.

Even though I have a workaround now, I would appreciate such a fix.
If nobody disagrees I am happy to make a JIRA issue for it.

Regards,
 Erik.


Johan Compagner schreef:
> my checkbox works fine:
>
> class MyDataObject
> {
>  Boolean myBoolean;
>
>  void setMyBoolean(Boolean b)
>  Boolean getMyBoolean()
> }
>
> so it is not directly the checkbox. But if you map it to a boolean 
> (primitive) then you don't have
> the three-state thing yes. (null, false, true)
>
> So i dont know if this is a bug or not that really needs to be fixed. 
> Because what is the fix?
>
> I can't do what you do here. Because if it is a Boolean object then 
> null/empty string is valid.
>
> Maybe for booleans we can make an exception that null will be false in 
> the converter
> What do others think?
>
> johan
>
>
> On 1/9/07, *Erik van Oosten * <[EMAIL PROTECTED] 
> > wrote:
>
> Johan,
>
> I got it working as below. Shall I create a Jira issue for this? I
> think
> it would be more logical if checkbox could deal with cleared input.
>
>  Erik.
>
>
> // The reset button
> Button resetButton = new Button("resetbutton") {
> /** [EMAIL PROTECTED] */
> protected void onSubmit() {
> // Clear the form
> form.visitChildren(FormComponent.class, new
> Component.IVisitor() {
> public Object component(Component component) {
> FormComponent formComponent = ((FormComponent)
> component);
> if (formComponent instanceof CheckBox) {
> ((CheckBox)
> formComponent).setModelObject("false");
> } else {
> formComponent.clearInput();
> formComponent.updateModel();
> }
> return
> Component.IVisitor.CONTINUE_TRAVERSAL_BUT_DONT_GO_DEEPER;
> }
> });
> }
> };
> // Perform only the onSubmit, no validation
> resetButton.setDefaultFormProcessing (false);
> form.add(resetButton);
>
>
>
> Erik van Oosten wrote:
> > Yes, correct. The model should be cleared as well.
> > And it indeed uses setDefaultFormProcessing(false).
> >
> > The approach your describing below will throw exceptions for
> checkboxes:
> >
> > WicketMessage: unable to set object null, model:
> >
> Model:classname=[wicket.model.PropertyModel]:attached=true:[EMAIL 
> PROTECTED]
> ]:expression=[searchInHistoricNames]:propertyType=[null],
> > called with component [MarkupContainer [Component id =
> formelement, page
> > = nl.amsterdam.rbrb.web.search.SearchPage, path =
> > 2:maincontent:searchform:form:formElements:2:inputfragment:
> formelement.CheckBox,
> > isVisible = true, isVersioned = false]]
> >
> > Root cause:
> >
> > wicket.util.convert.ConversionException: Can't convert null
> value to a
> > primitive class: boolean for setting it on
> >
> [EMAIL PROTECTED]
> > at
> >
> 
> wicket.util.lang.PropertyResolver$MethodGetAndSet.setValue(Ljava.lang.Object;Ljava.lang.Object;Lwicket.util.convert.IConverter;)V(
> PropertyResolver.java:838)
> > at
> >
> 
> wicket.util.lang.PropertyResolver$ObjectAndGetSetter.setValue(Ljava.lang.Object;Lwicket.util.convert.IConverter;)V(PropertyResolver.java:447)
> > at
> > wicket.util.lang.PropertyResolver.setValue
> 
> (Ljava.lang.String;Ljava.lang.Object;Ljava.lang.Object;Lwicket.util.convert.IConverter;)V(PropertyResolver.java:136)
> > at
> >
> 
> wicket.model.AbstractPropertyModel.onSetObject(Lwicket.Component;Ljava.lang.Object;)V(
> AbstractPropertyModel.java:182)
> > at
> >
> 
> wicket.model.AbstractDetachableModel.setObject(Lwicket.Component;Ljava.lang.Object;)V(AbstractDetachableModel.java:131)
> > at
> > wicket.Component.setModelObject
> (Ljava.lang.Object;)Lwicket.Component;(Component.java:2042)
> > at
> >
> 
> wicket.markup.html.form.FormComponent.updateModel()V(FormComponent.java:840)
> > at
> > nl.amsterdam.rbrb.web.form.FormPanel$5.component
> (Lwicket.Component;)Ljava.lang.Object;(FormPanel.java:214)
> > <--- the line with formComponent.updateModel();
> >
> >
> > Regards,
> >  Erik.
> >
> >
> >
> >
> > Johan Compagner wrote:
> >
> >> why do you want to call updateFormComponentModels?
> >> You also want to clear all model data? So the models already
> did get
> >> some data from a previous request?
> >> (i take the reset button has setDefaultFormProcessing(f

Re: [Wicket-user] Expiring Pages

2007-01-09 Thread suranjay

Thank you for ur prompt reply.

I did set 

 
   120
   4096

  

and 
  
  120
  false
  

in the  as well.

But that seems to have no effect.

I tested this by setting the timeout to 1 in both places, restarting resin,
loading a webapp page and then doing a submit on it after abt 2 minutes. It
did not expire .

Thanks for whatever help u can offer.
-- 
View this message in context: 
http://www.nabble.com/Expiring-Pages-tf2946013.html#a8239918
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Problems making a form reset button

2007-01-09 Thread Johan Compagner

my checkbox works fine:

class MyDataObject
{
Boolean myBoolean;

void setMyBoolean(Boolean b)
Boolean getMyBoolean()
}

so it is not directly the checkbox. But if you map it to a boolean
(primitive) then you don't have
the three-state thing yes. (null, false, true)

So i dont know if this is a bug or not that really needs to be fixed.
Because what is the fix?

I can't do what you do here. Because if it is a Boolean object then
null/empty string is valid.

Maybe for booleans we can make an exception that null will be false in the
converter
What do others think?

johan


On 1/9/07, Erik van Oosten <[EMAIL PROTECTED]> wrote:


Johan,

I got it working as below. Shall I create a Jira issue for this? I think
it would be more logical if checkbox could deal with cleared input.

 Erik.


// The reset button
Button resetButton = new Button("resetbutton") {
/** [EMAIL PROTECTED] */
protected void onSubmit() {
// Clear the form
form.visitChildren(FormComponent.class, new
Component.IVisitor() {
public Object component(Component component) {
FormComponent formComponent = ((FormComponent)
component);
if (formComponent instanceof CheckBox) {
((CheckBox)
formComponent).setModelObject("false");
} else {
formComponent.clearInput();
formComponent.updateModel();
}
return
Component.IVisitor.CONTINUE_TRAVERSAL_BUT_DONT_GO_DEEPER;
}
});
}
};
// Perform only the onSubmit, no validation
resetButton.setDefaultFormProcessing(false);
form.add(resetButton);



Erik van Oosten wrote:
> Yes, correct. The model should be cleared as well.
> And it indeed uses setDefaultFormProcessing(false).
>
> The approach your describing below will throw exceptions for checkboxes:
>
> WicketMessage: unable to set object null, model:
> Model:classname=[wicket.model.PropertyModel]:attached=true:nestedModel=[
[EMAIL PROTECTED]
]:expression=[searchInHistoricNames]:propertyType=[null],
> called with component [MarkupContainer [Component id = formelement, page
> = nl.amsterdam.rbrb.web.search.SearchPage, path =
> 2:maincontent:searchform:form:formElements:2:inputfragment:
formelement.CheckBox,
> isVisible = true, isVersioned = false]]
>
> Root cause:
>
> wicket.util.convert.ConversionException: Can't convert null value to a
> primitive class: boolean for setting it on
>
[EMAIL PROTECTED]
> at
> wicket.util.lang.PropertyResolver$MethodGetAndSet.setValue(
Ljava.lang.Object;Ljava.lang.Object;Lwicket.util.convert.IConverter;)V(
PropertyResolver.java:838)
> at
> wicket.util.lang.PropertyResolver$ObjectAndGetSetter.setValue(
Ljava.lang.Object;Lwicket.util.convert.IConverter;)V(PropertyResolver.java
:447)
> at
> wicket.util.lang.PropertyResolver.setValue(Ljava.lang.String
;Ljava.lang.Object;Ljava.lang.Object;Lwicket.util.convert.IConverter;)V(
PropertyResolver.java:136)
> at
> wicket.model.AbstractPropertyModel.onSetObject(Lwicket.Component
;Ljava.lang.Object;)V(AbstractPropertyModel.java:182)
> at
> wicket.model.AbstractDetachableModel.setObject(Lwicket.Component
;Ljava.lang.Object;)V(AbstractDetachableModel.java:131)
> at
> wicket.Component.setModelObject(Ljava.lang.Object;)Lwicket.Component;(
Component.java:2042)
> at
> wicket.markup.html.form.FormComponent.updateModel()V(FormComponent.java
:840)
> at
> nl.amsterdam.rbrb.web.form.FormPanel$5.component(Lwicket.Component
;)Ljava.lang.Object;(FormPanel.java:214)
> <--- the line with formComponent.updateModel();
>
>
> Regards,
>  Erik.
>
>
>
>
> Johan Compagner wrote:
>
>> why do you want to call updateFormComponentModels?
>> You also want to clear all model data? So the models already did get
>> some data from a previous request?
>> (i take the reset button has setDefaultFormProcessing(false) ?)
>>
>> but why not do this:
>>
>>  form.visitChildren(FormComponent.class, new
>> Component.IVisitor() {
>> public Object component(Component component) {
>> ((FormComponent) component).clearInput();
>> ((FormComponent) component).updateModel();
>> return
>> Component.IVisitor.CONTINUE
>>
>> _TRAVERSAL_BUT_DONT_GO_DEEPER;
>> }
>> });
>>
>>
>> On 1/9/07, *Erik van Oosten* < [EMAIL PROTECTED]
>> > wrote:
>>
>> Hi,
>>
>> I am trying the make a reset button (clears all fields) with code
>> below.
>> According to the class comment of Form I can call
>> updateFormComponentModels, however that method is not visible.
>>
>> What can I do to get the desired effect? I am using wicket-1.2.4.
>>
>> Regards,
>>  Erik.
>>
>>
>> // The reset button
>> 

Re: [Wicket-user] Jar for wicket-contrib-scriptaculous?

2007-01-09 Thread Ryan Sonnek

I'd love to try and use the main wicket confluence instance in some way.
seriously, i haven't even been able to create an account and login to the
wiki for wicket-stuff.

On 1/9/07, Filippo Diotalevi <[EMAIL PROTECTED]> wrote:


On 1/9/07, Korbinian Bachl <[EMAIL PROTECTED]> wrote:
> the current seems very basic to me, and i never heard about MoinMoin and
its
> capabilities before - what wonders me, is if it would be possible to use
> confluence, as its used for wicket main so we would have only 1
technology /
> system and users/ contributors would only have 1 system to know... any
> thoughts on this? - can wicket-stuff also profit from apache or is this
only
> for listed projects there?

Yeah, I must admit that I'd prefer so much to go with confluence.
With this regard, there are 3 possible solutions:

- ask Atlassian for a free open source license. I've already done
that, it requires some time (it required more than a month in my
case). Then you need to find a java hosting... not impossible, but
requires some work as well

- As I told you, I already have a free license of Confluence for the
Java User Group Milano. We are building our website with it, but it
should be easy to add a workspace in our installation for
wicket-stuff. However, wicket-stuff would probably be a medium-traffic
website (much more than our), so I'd probably need to find another
java hosting

- Use Apache confluence.. needless to say, I'd love it! but we've
already discussed about it and I remember some folks being not very
enthusiastic about this solution

--
Filippo Diotalevi
[EMAIL PROTECTED]
http://www.diotalevi.com/weblog
http://www.jugmilano.it

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Expiring Pages

2007-01-09 Thread Dipu
you will have to configure the session time out time in your server/ 
container , in your case you will have to do it in the resin's conf.

Regards
Dipu

- Original Message - 
From: "suranjay" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, January 09, 2007 1:43 PM
Subject: [Wicket-user] Expiring Pages


>
> We have a web-app which deals with online hotel bookings, which uses 
> Wicket
> 1.2.4.
> We have a problem with the pages expiring, when refreshed or submitted, in
> after about 20 min of inactivity.
> This also happens when Back button is clicked from a page.
> We need to have the pages not-expire for about 3 hours if possible.
>
> Could u pls be so kind as to tell me how I can override the default 
> expiring
> times?
> I tried setting Expires & Cache-Control:max-age headers, but they seem to
> have no effect.
>
> Also, will changing the form the submit types of the forms on the pages to
> 'GET' help?
>
> Does Wicket have a default time-limit for page inactivity expiring? If so,
> how can I override it?
>
> We are using Resin Web Server.
>
> Thank you!
> -- 
> View this message in context: 
> http://www.nabble.com/Expiring-Pages-tf2946013.html#a8237913
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share 
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user 


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Expiring Pages

2007-01-09 Thread suranjay

We have a web-app which deals with online hotel bookings, which uses Wicket
1.2.4.
We have a problem with the pages expiring, when refreshed or submitted, in
after about 20 min of inactivity.
This also happens when Back button is clicked from a page.
We need to have the pages not-expire for about 3 hours if possible.

Could u pls be so kind as to tell me how I can override the default expiring
times?
I tried setting Expires & Cache-Control:max-age headers, but they seem to
have no effect.

Also, will changing the form the submit types of the forms on the pages to
'GET' help?

Does Wicket have a default time-limit for page inactivity expiring? If so,
how can I override it?

We are using Resin Web Server.

Thank you!
-- 
View this message in context: 
http://www.nabble.com/Expiring-Pages-tf2946013.html#a8237913
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Problems making a form reset button

2007-01-09 Thread Erik van Oosten
Johan,

I got it working as below. Shall I create a Jira issue for this? I think 
it would be more logical if checkbox could deal with cleared input.

 Erik.


// The reset button
Button resetButton = new Button("resetbutton") {
/** [EMAIL PROTECTED] */
protected void onSubmit() {
// Clear the form
form.visitChildren(FormComponent.class, new 
Component.IVisitor() {
public Object component(Component component) {
FormComponent formComponent = ((FormComponent) 
component);
if (formComponent instanceof CheckBox) {
((CheckBox) 
formComponent).setModelObject("false");
} else {
formComponent.clearInput();
formComponent.updateModel();
}
return 
Component.IVisitor.CONTINUE_TRAVERSAL_BUT_DONT_GO_DEEPER;
}
});
}
};
// Perform only the onSubmit, no validation
resetButton.setDefaultFormProcessing(false);
form.add(resetButton);



Erik van Oosten wrote:
> Yes, correct. The model should be cleared as well.
> And it indeed uses setDefaultFormProcessing(false).
>
> The approach your describing below will throw exceptions for checkboxes:
>
> WicketMessage: unable to set object null, model: 
> Model:classname=[wicket.model.PropertyModel]:attached=true:[EMAIL 
> PROTECTED]:expression=[searchInHistoricNames]:propertyType=[null], 
> called with component [MarkupContainer [Component id = formelement, page 
> = nl.amsterdam.rbrb.web.search.SearchPage, path = 
> 2:maincontent:searchform:form:formElements:2:inputfragment:formelement.CheckBox,
>  
> isVisible = true, isVersioned = false]]
>
> Root cause:
>
> wicket.util.convert.ConversionException: Can't convert null value to a 
> primitive class: boolean for setting it on 
> [EMAIL PROTECTED]
> at 
> wicket.util.lang.PropertyResolver$MethodGetAndSet.setValue(Ljava.lang.Object;Ljava.lang.Object;Lwicket.util.convert.IConverter;)V(PropertyResolver.java:838)
> at 
> wicket.util.lang.PropertyResolver$ObjectAndGetSetter.setValue(Ljava.lang.Object;Lwicket.util.convert.IConverter;)V(PropertyResolver.java:447)
> at 
> wicket.util.lang.PropertyResolver.setValue(Ljava.lang.String;Ljava.lang.Object;Ljava.lang.Object;Lwicket.util.convert.IConverter;)V(PropertyResolver.java:136)
> at 
> wicket.model.AbstractPropertyModel.onSetObject(Lwicket.Component;Ljava.lang.Object;)V(AbstractPropertyModel.java:182)
> at 
> wicket.model.AbstractDetachableModel.setObject(Lwicket.Component;Ljava.lang.Object;)V(AbstractDetachableModel.java:131)
> at 
> wicket.Component.setModelObject(Ljava.lang.Object;)Lwicket.Component;(Component.java:2042)
> at 
> wicket.markup.html.form.FormComponent.updateModel()V(FormComponent.java:840)
> at 
> nl.amsterdam.rbrb.web.form.FormPanel$5.component(Lwicket.Component;)Ljava.lang.Object;(FormPanel.java:214)
>
> <--- the line with formComponent.updateModel();
>
>
> Regards,
>  Erik.
>
>
>
>
> Johan Compagner wrote:
>   
>> why do you want to call updateFormComponentModels?
>> You also want to clear all model data? So the models already did get 
>> some data from a previous request?
>> (i take the reset button has setDefaultFormProcessing(false) ?)
>>
>> but why not do this:
>>
>>  form.visitChildren(FormComponent.class, new
>> Component.IVisitor() {
>> public Object component(Component component) {
>> ((FormComponent) component).clearInput();
>> ((FormComponent) component).updateModel();
>> return
>> Component.IVisitor.CONTINUE
>>
>> _TRAVERSAL_BUT_DONT_GO_DEEPER;
>> }
>> });
>>
>>
>> On 1/9/07, *Erik van Oosten* < [EMAIL PROTECTED] 
>> > wrote:
>>
>> Hi,
>>
>> I am trying the make a reset button (clears all fields) with code
>> below.
>> According to the class comment of Form I can call
>> updateFormComponentModels, however that method is not visible.
>>
>> What can I do to get the desired effect? I am using wicket-1.2.4.
>>
>> Regards,
>>  Erik.
>>
>>
>> // The reset button
>> Button resetButton = new Button("resetbutton") {
>> /** [EMAIL PROTECTED] */
>> protected void onSubmit() {
>> // Clear the form
>> form.visitChildren(FormComponent.class, new
>> Component.IVisitor() {
>> public Object component(Component component) {
>> ((FormComponent) component).clearInput();
>> return
>> Component.IVisitor.CONTINUE_TRAVERSAL_BUT_DONT_GO_DEEPER;
>> }
>> });
>> *form.

Re: [Wicket-user] Problems making a form reset button

2007-01-09 Thread Johan Compagner

yes we can't convert null to a primitive (int or boolean)
because what is null for an int? (0? but that is wrong, it is not 0 it is
void)

For a boolean we could say null is false. But that would then be an
exception to the rule.

So you need your own converter on the object that can handle null values for
a boolean.

johan


On 1/9/07, Erik van Oosten <[EMAIL PROTECTED]> wrote:


Yes, correct. The model should be cleared as well.
And it indeed uses setDefaultFormProcessing(false).

The approach your describing below will throw exceptions for checkboxes:

WicketMessage: unable to set object null, model:
Model:classname=[wicket.model.PropertyModel]:attached=true:nestedModel=[
[EMAIL PROTECTED]
]:expression=[searchInHistoricNames]:propertyType=[null],
called with component [MarkupContainer [Component id = formelement, page
= nl.amsterdam.rbrb.web.search.SearchPage, path =
2:maincontent:searchform:form:formElements:2:inputfragment:
formelement.CheckBox,
isVisible = true, isVersioned = false]]

Root cause:

wicket.util.convert.ConversionException: Can't convert null value to a
primitive class: boolean for setting it on

[EMAIL PROTECTED]
at
wicket.util.lang.PropertyResolver$MethodGetAndSet.setValue(
Ljava.lang.Object;Ljava.lang.Object;Lwicket.util.convert.IConverter;)V(
PropertyResolver.java:838)
at
wicket.util.lang.PropertyResolver$ObjectAndGetSetter.setValue(
Ljava.lang.Object;Lwicket.util.convert.IConverter;)V(PropertyResolver.java
:447)
at
wicket.util.lang.PropertyResolver.setValue(Ljava.lang.String
;Ljava.lang.Object;Ljava.lang.Object;Lwicket.util.convert.IConverter;)V(
PropertyResolver.java:136)
at
wicket.model.AbstractPropertyModel.onSetObject(Lwicket.Component
;Ljava.lang.Object;)V(AbstractPropertyModel.java:182)
at
wicket.model.AbstractDetachableModel.setObject(Lwicket.Component
;Ljava.lang.Object;)V(AbstractDetachableModel.java:131)
at
wicket.Component.setModelObject(Ljava.lang.Object;)Lwicket.Component;(
Component.java:2042)
at
wicket.markup.html.form.FormComponent.updateModel()V(FormComponent.java
:840)
at
nl.amsterdam.rbrb.web.form.FormPanel$5.component(Lwicket.Component
;)Ljava.lang.Object;(FormPanel.java:214)
<--- the line with formComponent.updateModel();


Regards,
 Erik.




Johan Compagner wrote:
> why do you want to call updateFormComponentModels?
> You also want to clear all model data? So the models already did get
> some data from a previous request?
> (i take the reset button has setDefaultFormProcessing(false) ?)
>
> but why not do this:
>
>  form.visitChildren(FormComponent.class, new
> Component.IVisitor() {
> public Object component(Component component) {
> ((FormComponent) component).clearInput();
> ((FormComponent) component).updateModel();
> return
> Component.IVisitor.CONTINUE
>
> _TRAVERSAL_BUT_DONT_GO_DEEPER;
> }
> });
>
>
> On 1/9/07, *Erik van Oosten* < [EMAIL PROTECTED]
> > wrote:
>
> Hi,
>
> I am trying the make a reset button (clears all fields) with code
> below.
> According to the class comment of Form I can call
> updateFormComponentModels, however that method is not visible.
>
> What can I do to get the desired effect? I am using wicket-1.2.4.
>
> Regards,
>  Erik.
>
>
> // The reset button
> Button resetButton = new Button("resetbutton") {
> /** [EMAIL PROTECTED] */
> protected void onSubmit() {
> // Clear the form
> form.visitChildren(FormComponent.class, new
> Component.IVisitor() {
> public Object component(Component component) {
> ((FormComponent) component).clearInput();
> return
> Component.IVisitor.CONTINUE_TRAVERSAL_BUT_DONT_GO_DEEPER;
> }
> });
> *form.updateFormComponentModels();   // <--
method
> not visible
> *}
> };
> // Perform only the onSubmit, no validation
> resetButton.setDefaultFormProcessing(false);
> form.add(resetButton);
>
>
>
> --
> Erik van Oosten
> http://www.day-to-day-stuff.blogspot.com/
>
>
>
-
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to
> share your
> opinions on IT & business topics through brief surveys - and earn
cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> <
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> 

Re: [Wicket-user] Pagination not working

2007-01-09 Thread Korbinian Bachl
can you post some sourcecode here?

> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] Im Auftrag 
> von snkr subedi
> Gesendet: Dienstag, 9. Januar 2007 12:05
> An: wicket-user@lists.sourceforge.net
> Betreff: [Wicket-user] Pagination not working
> 
> Hi,
> i am new to this mailling list as well as Wicket so sorry if 
> the question is not worth the mailing list.
> 
> i got a problem here.
> I want to show some tabular information using the DataView 
> with pagination.
> I have tried both the Loadable and Abstract Detachable models.
> When i run the program the information is repeated in the pages.
> if i have 5 rows to display and i set setItemsPerPage(3) then 
> in next page i.e when i clicked next the same information 
> that was displayed before is displayed.
> 
> Thanks in Advance
> sNkr
> 
> --
> ---
> Take Surveys. Earn Cash. Influence the Future of IT Join 
> SourceForge.net's Techsay panel and you'll get the chance to 
> share your opinions on IT & business topics through brief 
> surveys - and earn cash 
> http://www.techsay.com/default.php?page=join.php&p=sourceforge
&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Problems making a form reset button

2007-01-09 Thread Erik van Oosten
Yes, correct. The model should be cleared as well.
And it indeed uses setDefaultFormProcessing(false).

The approach your describing below will throw exceptions for checkboxes:

WicketMessage: unable to set object null, model: 
Model:classname=[wicket.model.PropertyModel]:attached=true:[EMAIL 
PROTECTED]:expression=[searchInHistoricNames]:propertyType=[null], 
called with component [MarkupContainer [Component id = formelement, page 
= nl.amsterdam.rbrb.web.search.SearchPage, path = 
2:maincontent:searchform:form:formElements:2:inputfragment:formelement.CheckBox,
 
isVisible = true, isVersioned = false]]

Root cause:

wicket.util.convert.ConversionException: Can't convert null value to a 
primitive class: boolean for setting it on 
[EMAIL PROTECTED]
at 
wicket.util.lang.PropertyResolver$MethodGetAndSet.setValue(Ljava.lang.Object;Ljava.lang.Object;Lwicket.util.convert.IConverter;)V(PropertyResolver.java:838)
at 
wicket.util.lang.PropertyResolver$ObjectAndGetSetter.setValue(Ljava.lang.Object;Lwicket.util.convert.IConverter;)V(PropertyResolver.java:447)
at 
wicket.util.lang.PropertyResolver.setValue(Ljava.lang.String;Ljava.lang.Object;Ljava.lang.Object;Lwicket.util.convert.IConverter;)V(PropertyResolver.java:136)
at 
wicket.model.AbstractPropertyModel.onSetObject(Lwicket.Component;Ljava.lang.Object;)V(AbstractPropertyModel.java:182)
at 
wicket.model.AbstractDetachableModel.setObject(Lwicket.Component;Ljava.lang.Object;)V(AbstractDetachableModel.java:131)
at 
wicket.Component.setModelObject(Ljava.lang.Object;)Lwicket.Component;(Component.java:2042)
at 
wicket.markup.html.form.FormComponent.updateModel()V(FormComponent.java:840)
at 
nl.amsterdam.rbrb.web.form.FormPanel$5.component(Lwicket.Component;)Ljava.lang.Object;(FormPanel.java:214)
   
<--- the line with formComponent.updateModel();


Regards,
 Erik.




Johan Compagner wrote:
> why do you want to call updateFormComponentModels?
> You also want to clear all model data? So the models already did get 
> some data from a previous request?
> (i take the reset button has setDefaultFormProcessing(false) ?)
>
> but why not do this:
>
>  form.visitChildren(FormComponent.class, new
> Component.IVisitor() {
> public Object component(Component component) {
> ((FormComponent) component).clearInput();
> ((FormComponent) component).updateModel();
> return
> Component.IVisitor.CONTINUE
>
> _TRAVERSAL_BUT_DONT_GO_DEEPER;
> }
> });
>
>
> On 1/9/07, *Erik van Oosten* < [EMAIL PROTECTED] 
> > wrote:
>
> Hi,
>
> I am trying the make a reset button (clears all fields) with code
> below.
> According to the class comment of Form I can call
> updateFormComponentModels, however that method is not visible.
>
> What can I do to get the desired effect? I am using wicket-1.2.4.
>
> Regards,
>  Erik.
>
>
> // The reset button
> Button resetButton = new Button("resetbutton") {
> /** [EMAIL PROTECTED] */
> protected void onSubmit() {
> // Clear the form
> form.visitChildren(FormComponent.class, new
> Component.IVisitor() {
> public Object component(Component component) {
> ((FormComponent) component).clearInput();
> return
> Component.IVisitor.CONTINUE_TRAVERSAL_BUT_DONT_GO_DEEPER;
> }
> });
> *form.updateFormComponentModels();   // <-- method
> not visible
> *}
> };
> // Perform only the onSubmit, no validation
> resetButton.setDefaultFormProcessing(false);
> form.add(resetButton);
>
>
>
> --
> Erik van Oosten
> http://www.day-to-day-stuff.blogspot.com/
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to
> share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> 
> 
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> 
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
> 
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & busine

Re: [Wicket-user] Stateless wicket [was] Re: Wicket2 and Wicket 1.2.x

2007-01-09 Thread Johan Compagner

or detachable models are not used anywhere. And many db objects and its
complete graphs are hold on to.

But stateless support itself won't help for this because then you really
need to use it and use it everywhere.
But the secondlevel cache will keep the session much smaller.

johan


On 1/9/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:


lol, i think you got a wrong number unless you are serializing the servlet
container along with the page somehow :) or the units should be KB instead
of MB

-igor

On 1/8/07, Carfield Yim <[EMAIL PROTECTED]> wrote:
>
> I just setup a tool call MessAdmin to check the size of httpsession,
> and I found that single login consume 14.6 MB , well, may be MessAdmin
> give me a wrong number. However, if that is the fact, I think I need
> to find some way to reduce the session memory consumption. If I use
> the stateless support at wicket 1.3, will it reduce the session size a
> lot?
>
> On 1/9/07, Korbinian Bachl <[EMAIL PROTECTED]> wrote:
> >
> >
> > Hi Johan,
> >
> > i dont know much about 1.3, as I never looked at it - but im glad that
> you
> > also see Problems there and rellay want to thank you for your time
> spent on
> > things like that,
> >
> > Regards
> >
> >
> >
> >
> >  
> >  Von: [EMAIL PROTECTED]
> > [mailto: [EMAIL PROTECTED] Im
> > Auftrag von Johan Compagner
> > Gesendet: Montag, 8. Januar 2007 13:38
> >
> > An: wicket-user@lists.sourceforge.net
> > Betreff: Re: [Wicket-user] Wicket2 and Wicket 1.2.x
> >
> >
> > But what has this to do with 2.0?
> > 1.3 also has the exact same stateless support as 2.0 so also the same
> > problems
> > And yes the Indexed one is the thing that i still need to fix. Will
> look it
> > as soon as i can.
> >
> > Als that url encoding stuff is also bothering me. We do it now all
> over the
> > place and in all
> > kind of places a bit different. Very confusing.
> >
> > johan
> >
> >
> >
> > On 1/7/07, Korbinian Bachl <[EMAIL PROTECTED] > wrote:
> > > I didnt say its alpha however, i thought Johan also wants to
> refactory
> > > the way PageParameters and URLs are encoded / decoded as its
> currently not
> > > equal (depends on the mounted-strategy and returns different
> variations
> > e.g:
> > > you get the input in BookMarkablePage but the encoded version in
> > > IndexedURlPageParameter-version)this is IMHO still a
> > big showstopper as
> > > it disables you to change the mounting strategy on the fly
> > >
> > > Regards
> > >
> > >
> > > > -Ursprüngliche Nachricht-
> > > > Von: [EMAIL PROTECTED]
> > > > [mailto:[EMAIL PROTECTED] ] Im
> > Auftrag
> > > > von Eelco Hillenius
> > > > Gesendet: Samstag, 6. Januar 2007 23:31
> > > > An: wicket-user@lists.sourceforge.net
> > > > Betreff: Re: [Wicket-user] Wicket2 and Wicket 1.2.x
> > > >
> > > > It is imho not alpha though. We haven't decided on what to
> > > > call the first release of 2.0, but I'd be for beta. Also, I
> > > > think most drastic API changes are done. The last big one
> > > > seems to be the onAttach thing that is discussed on the list
> > > > right now.
> > > >
> > > > Eelco
> > > >
> > > > On 1/6/07, Korbinian Bachl <[EMAIL PROTECTED] > wrote:
> > > > > HI,
> > > > >
> > > > > wicket 2.0 is not beta yet ! - there are many api-changes and
> still
> > > > > will be, as many things are on dev list. Also,  even not all
> JUnit
> > > > > tests are passed in current-trunk.
> > > > >
> > > > > regards
> > > > >
> > > > > > -Ursprüngliche Nachricht-
> > > > > > Von: [EMAIL PROTECTED]
> > > > > > [mailto:[EMAIL PROTECTED] ]
> > Im Auftrag von
> > > > > > Ayodeji Aladejebi
> > > > > > Gesendet: Samstag, 6. Januar 2007 18:42
> > > > > > An: wicket-user@lists.sourceforge.net
> > > > > > Betreff: Re: [Wicket-user] Wicket2 and Wicket 1.2.x
> > > > > >
> > > > > > ok seen it on the wiki
> > > > > >
> > > > > > On 1/6/07, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:
> > > > > > > Hey have been seeing lots of questions about Wicket 2.0
> > > > > > probably most
> > > > > > > ppl are already migrating to it even though its still beta.
> > > > > > I am still
> > > > > > > stuck on 1.2.x series cuz am on real live projects based on
> > > > > > 1.2.x. Now
> > > > > > > apart from generics in IModel etc, am I missing anything by
> not
> > > > > > > migrating to 2.0 yet? where can i read about Wicket 2.0coming
> > > > > > > features and changes?
> > > > > > >
> > > > > > > thanks
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > Aladejebi Ayodeji A.,
> > > > > > >
> > > > > > > DabarObjects Solutions
> > > > > > > Phone: 234 9 273 2 555
> > > > > > > Mobile: +234 803 589 1780
> > > > > > > Email: [EMAIL PROTECTED]
> > > > > > > Web: www.dabarobjects.com
> > > > > > > Blog: blog.dabarobjects.com
> > > > > > >
> > > > > > > Participate, Collaborate, Innovate Join Community:
> > > > > > > http://www.cowblock.net/
> > > > > > >
> > > > > > > Get A Free Blog:
> > > > > > 

Re: [Wicket-user] Problems making a form reset button

2007-01-09 Thread Johan Compagner

why do you want to call updateFormComponentModels?
You also want to clear all model data? So the models already did get some
data from a previous request?
(i take the reset button has setDefaultFormProcessing(false) ?)

but why not do this:

form.visitChildren(FormComponent.class, new
Component.IVisitor() {
   public Object component(Component component) {
   ((FormComponent) component).clearInput();
   ((FormComponent) component).updateModel();
   return
Component.IVisitor.CONTINUE


_TRAVERSAL_BUT_DONT_GO_DEEPER;
}
});



On 1/9/07, Erik van Oosten <[EMAIL PROTECTED]> wrote:


Hi,

I am trying the make a reset button (clears all fields) with code below.
According to the class comment of Form I can call
updateFormComponentModels, however that method is not visible.

What can I do to get the desired effect? I am using wicket-1.2.4.

Regards,
 Erik.


// The reset button
Button resetButton = new Button("resetbutton") {
/** [EMAIL PROTECTED] */
protected void onSubmit() {
// Clear the form
form.visitChildren(FormComponent.class, new
Component.IVisitor() {
public Object component(Component component) {
((FormComponent) component).clearInput();
return
Component.IVisitor.CONTINUE_TRAVERSAL_BUT_DONT_GO_DEEPER;
}
});
*form.updateFormComponentModels();   // <-- method
not visible
*}
};
// Perform only the onSubmit, no validation
resetButton.setDefaultFormProcessing(false);
form.add(resetButton);



--
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Pagination not working

2007-01-09 Thread snkr subedi
Hi,
i am new to this mailling list as well as Wicket so sorry if the
question is not worth the mailing list.

i got a problem here.
I want to show some tabular information using the DataView with pagination.
I have tried both the Loadable and Abstract Detachable models.
When i run the program the information is repeated in the pages.
if i have 5 rows to display and i set setItemsPerPage(3) then in next
page i.e when i clicked next the same information that was displayed
before is displayed.

Thanks in Advance
sNkr

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Problems making a form reset button

2007-01-09 Thread Erik van Oosten
Hi,

I am trying the make a reset button (clears all fields) with code below.
According to the class comment of Form I can call 
updateFormComponentModels, however that method is not visible.

What can I do to get the desired effect? I am using wicket-1.2.4.

Regards,
 Erik.


// The reset button
Button resetButton = new Button("resetbutton") {
/** [EMAIL PROTECTED] */
protected void onSubmit() {
// Clear the form
form.visitChildren(FormComponent.class, new 
Component.IVisitor() {
public Object component(Component component) {
((FormComponent) component).clearInput();
return 
Component.IVisitor.CONTINUE_TRAVERSAL_BUT_DONT_GO_DEEPER;
}
});
*form.updateFormComponentModels();   // <-- method 
not visible
*}
};
// Perform only the onSubmit, no validation
resetButton.setDefaultFormProcessing(false);
form.add(resetButton);



-- 
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Jar for wicket-contrib-scriptaculous?

2007-01-09 Thread Filippo Diotalevi
On 1/9/07, Korbinian Bachl <[EMAIL PROTECTED]> wrote:
> the current seems very basic to me, and i never heard about MoinMoin and its
> capabilities before - what wonders me, is if it would be possible to use
> confluence, as its used for wicket main so we would have only 1 technology /
> system and users/ contributors would only have 1 system to know... any
> thoughts on this? - can wicket-stuff also profit from apache or is this only
> for listed projects there?

Yeah, I must admit that I'd prefer so much to go with confluence.
With this regard, there are 3 possible solutions:

- ask Atlassian for a free open source license. I've already done
that, it requires some time (it required more than a month in my
case). Then you need to find a java hosting... not impossible, but
requires some work as well

- As I told you, I already have a free license of Confluence for the
Java User Group Milano. We are building our website with it, but it
should be easy to add a workspace in our installation for
wicket-stuff. However, wicket-stuff would probably be a medium-traffic
website (much more than our), so I'd probably need to find another
java hosting

- Use Apache confluence.. needless to say, I'd love it! but we've
already discussed about it and I remember some folks being not very
enthusiastic about this solution

-- 
Filippo Diotalevi
[EMAIL PROTECTED]
http://www.diotalevi.com/weblog
http://www.jugmilano.it

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Jar for wicket-contrib-scriptaculous?

2007-01-09 Thread Korbinian Bachl
 

> -Ursprüngliche Nachricht-
> 
> Yes... and we really need to setup a new site for 
> wicket-stuff now it's so outdated that most of the 
> subprojects of wicket-stuff aren't even documented in the 
> website. And if we don't have a decent website, it's very 
> difficult to keep track of the things to do.
> 
> The problem is that there are so many people involved in 
> wicket-stuff that it's nearly impossible to reach them all 
> and make a "democratic"
> decision about the future of the website.
> In my opinion, we should drop the current website and use a 
> wiki instead. It's the only simple way to manage the 
> complexity of having so many projects, contributors and releases.

+1 on this - in fact, I browsed through much - and we have so many
subprojects, outdated parts etc.  that beginnign from scratch and putting
current and working things in one by one seems as only chance to hande this.

> 
> We already have a wiki
> (http://wicket-stuff.sourceforge.net/wiki-stuff/WicketStuffWikiHome)
> but it is very simple and open to spammers, so I don't know 
> if we should put too much effort in it or look for another platform.

the current seems very basic to me, and i never heard about MoinMoin and its
capabilities before - what wonders me, is if it would be possible to use
confluence, as its used for wicket main so we would have only 1 technology /
system and users/ contributors would only have 1 system to know... any
thoughts on this? - can wicket-stuff also profit from apache or is this only
for listed projects there?


Regards



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Jar for wicket-contrib-scriptaculous?

2007-01-09 Thread Filippo Diotalevi
On 1/9/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> Hey, James, Korbinian and Filippo... any plans of creating some
> releases (see 
> http://www.nabble.com/who-wants-to-be-in-charge-of-doing-wicket-stuff-releases-tf2665134.html)?

Yes... and we really need to setup a new site for wicket-stuff now
it's so outdated that most of the subprojects of wicket-stuff aren't
even documented in the website. And if we don't have a decent website,
it's very difficult to keep track of the things to do.

The problem is that there are so many people involved in wicket-stuff
that it's nearly impossible to reach them all and make a "democratic"
decision about the future of the website.
In my opinion, we should drop the current website and use a wiki
instead. It's the only simple way to manage the complexity of having
so many projects, contributors and releases.

We already have a wiki
(http://wicket-stuff.sourceforge.net/wiki-stuff/WicketStuffWikiHome)
but it is very simple and open to spammers, so I don't know if we
should put too much effort in it or look for another platform.

what do you think?

-- 
Filippo Diotalevi
[EMAIL PROTECTED]
http://www.diotalevi.com/weblog
http://www.jugmilano.it

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] modal window is closed when form inside content panel is submitted

2007-01-09 Thread Carfield Yim
I just get the problem, solved by using ajax form button, you can see
how I solve it at
http://www.nabble.com/Submit-a-form-at-ModalWindow-cause-the-ModalWindow-close.-tf2912895.html#a8139020


On 1/9/07, Nili Adoram <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I have a panel (named AdvancedSearchPanel) containing a Form with a
> SubmitLink.
>
> I open this panel inside a modal dialog:
>
> final ModalWindow modal;
> add(modal = new ModalWindow("modalAdvancedSearch"));
>
> final AdvancedSearchPanel searchPanel = new
> AdvancedSearchPanel(modal
> .getContentId());
> modal.setContent(searchPanel);
>
> When the form is submitted, a message is displayed  ("Reloading this
> page will cause the modal window disappear.")  and the modal window is
> closed.
>
> However, the CloseButtonCallback and WindowClosedCallback are not called.
>
> These callbacks are only called if the close button is clicked.
>
> What causes the submit button to close the window?
> How can verify that these callbacks are invoked whenever the window is
> closed?
>
> Thanks,
> Nili
>
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] modal window is closed when form inside content panel is submitted

2007-01-09 Thread Nili Adoram
Hi all,

I have a panel (named AdvancedSearchPanel) containing a Form with a 
SubmitLink.

I open this panel inside a modal dialog:

final ModalWindow modal;
add(modal = new ModalWindow("modalAdvancedSearch"));

final AdvancedSearchPanel searchPanel = new 
AdvancedSearchPanel(modal
.getContentId());
modal.setContent(searchPanel);

When the form is submitted, a message is displayed  ("Reloading this 
page will cause the modal window disappear.")  and the modal window is 
closed.

However, the CloseButtonCallback and WindowClosedCallback are not called.

These callbacks are only called if the close button is clicked.

What causes the submit button to close the window?
How can verify that these callbacks are invoked whenever the window is 
closed?

Thanks,
Nili



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user