[Wicket-user] Creating Panels inside of Loop (Wicket 2)

2006-09-28 Thread Stefan Lindner
I have a Panel that looks like this (html)
 


 
 Place menus here
 



Now I want to generate Panels for wicket id "menu" like this
 
  new Loop(this, "menus", menus.size()) {
   private static final long serialVersionUID = 1L;
   @Override
   protected void populateItem(LoopItem item) {
final int index = item.getIteration();
final Menu menu = MenuBarPanel.this.menus.get(index);

new MenuPanel(?, "menu", menu.getModel(), menu.getMenuItems());
 
I can't use the item for ? because it's not a markupContainer. So, what is 
the correct MarkupContainer for the panels?
 
Stefan Lindner
<>-
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] Fw: Shades phonebook example complete

2006-09-28 Thread Geoff hendrey

Hi Everyone,

I just finished implementing the phonebook example using Shades. I really like 
the way the phonebook example abstracted everything so I could just plug shades 
in. How can I contribute back the code?

Also, would it be possible to update the phonebook example to HSQLDB 
1.8.0.2.jar? (The LIMIT syntax described in the HSQLDB docs does not work with 
the older version of HSQLDB that is distributed with the phonebook example).

I am loving the way Shades works with Wicket. I think the Serializable 
DatabaseSession in Shades could provide some significant performance 
improvements for Wicket applications beyond what is possible with JDO apps, 
because of the fact that the jdo PersistenceManager is not serializable (thus 
forcing queries by ID when sessions are deserialized).

Anyway, "nice job" to the guys who built the phonebook example. I whish the JDO 
compatibility test kit had had something like it, which would have insured the 
use cases were "real world".

-geoff








-
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] ajax refresh on date picker

2006-09-28 Thread samyem

I could trace my problem to a recent change in wicket-ajax.js. In the
defination of processNext, it used to be that the run was called on a
timeout like window.setTimeout(run, 1);. Now this is only called for
isKHTML, and there is a direct call to run() otherwise. This for some reason
gave the recursion error for me. When I reverted this line and use the
timeout version, the recursion error disappeared. I am not sure about the
big picture of what's going on, but that gave me a dirty fix for now.

- Samyem



samyem wrote:
> 
> Same here. I am getting too much recursion in places I didn't have problem
> earlier as well. Looking at the generated source, it is clear that the
> java script gets included more than once, not just once in the header.
> 
> - Samyem
> 
> 
> Pierre-Yves Saumont wrote:
>> 
>> I am afraid there is still a problem. I tested the fix in the quickstart 
>> I had made and it worked fine. However, in my application, selecting a 
>> date in the datepicker cause a Javascript error. FF reports this error
>> as:
>> 
>> Erreur : too much recursion
>> Fichier source : 
>> http://localhost:8080/ceagrap/app/resources/wicket.extensions.markup.html.datepicker.DatePicker/calendar.js
>> Ligne : 1796
>> 
>> Date.prototype.__msh_oldSetFullYear = Date.prototype.setFullYear;
>> Date.prototype.setFullYear = function(y) {
>>var d = new Date(this); <<< line 1796
>>d.__msh_oldSetFullYear(y);
>>if (d.getMonth() != this.getMonth())
>>  this.setDate(28);
>>this.__msh_oldSetFullYear(y);
>> };
>> 
>> In IE6, the error message is "not enough stack space". The same line 
>> number is reported, but the next line is highlighted:
>> 
>> Date.prototype.__msh_oldSetFullYear = Date.prototype.setFullYear;
>> Date.prototype.setFullYear = function(y) {
>>var d = new Date(this);
>>d.__msh_oldSetFullYear(y); <<< line 1796
>>if (d.getMonth() != this.getMonth())
>>  this.setDate(28);
>>this.__msh_oldSetFullYear(y);
>> };
>> 
>> If I reload the page, the error disapears.
>> 
>> Pierre-Yves
>> 
>> 
>> Matej Knopp a ?crit :
>>> Thanks for fixed files, I've already commited those.
>>> 
>>> -Matej
>>> 
>>> Pierre-Yves Saumont wrote:
 Now it seems to work fine provided the locale switching is made 
 through reloading the page and not through Ajax. (I enclosed the 
 modified french scripts, in utf8 and iso.)

 If switching is made through Ajax, it works much better than it did 
 before. If the datepicker is visible when switching, switching works 
 fine. If the datepicker is not visible when switching, and then is is 
 loaded through Ajax, it does not always acknowledge the switch.

 But the worst problem is that reloading the page after a locale switch 
 (which before made the datepicker to swith to the new locale) now 
 cause an exception:

 Root cause:java.lang.IllegalStateException: Cannot remove 
 [MarkupContainer [Component id = 6, page = , path = 
 6.Loop$LoopItem]] from null parent! at 
 wicket.Component.remove(Component.java:1475) at 
 wicket.version.undo.Add.undo(Add.java:81) at 
 wicket.version.undo.ChangeList.undo(ChangeList.java:93) at 
 wicket.version.undo.UndoPageVersionManager.undo(UndoPageVersionManager.java:217)
  
 at 
 wicket.version.undo.UndoPageVersionManager.getVersion(UndoPageVersionManager.java:167)
  


 I also somtime get this exception:

 java.lang.NullPointerException
 at wicket.MarkupFragmentFinder.find(MarkupFragmentFinder.java:76)
 at wicket.Component.renderComponent(Component.java:1599)
 at 
 wicket.ajax.AjaxRequestTarget.respondComponent(AjaxRequestTarget.java:474) 



 However, having it working with full page reload is a very good point. 
 I think it will be enough


 Pierre-Yves

 Matej Knopp a ?crit :
> You won't find it there. It's wicket-1.x (and trunk).
>
> 1.2.2 is release. Current branch for 1.2 is under 1.x
>
> -Matej
>
> Pierre-Yves Saumont wrote:
>> I can't find it in releases/wicket-1.2.2, only in trunk, but my app 
>> does not work with 2.0 :-(
>>
>> Pierre-Yves
>>
>> Matej Knopp a ?crit :
>>> Sorry for ambiguity. The fix should be already in.
>>>
>>> -Matej
>>>
>>> Pierre-Yves Saumont wrote:
 What should already be in? Is it your fix? Or are you talking 
 about the edited file I sent to the list few days ago? This is no 
 complete since at that time I had not noticed the tuesday error!

 Pierre-Yves

 Matej Knopp a ?crit :
> btw. it should be already in.
>
> Pierre-Yves Saumont wrote:
>> Hi Matej,
>>
>> Of course I will test it as soon as you commit it. BTW, there 
>> are plenty of typos and spelling mistakes in the 

Re: [Wicket-user] ajax refresh on date picker

2006-09-28 Thread samyem

Same here. I am getting too much recursion in places I didn't have problem
earlier as well. Looking at the generated source, it is clear that the java
script gets included more than once, not just once in the header.

- Samyem


Pierre-Yves Saumont wrote:
> 
> I am afraid there is still a problem. I tested the fix in the quickstart 
> I had made and it worked fine. However, in my application, selecting a 
> date in the datepicker cause a Javascript error. FF reports this error as:
> 
> Erreur : too much recursion
> Fichier source : 
> http://localhost:8080/ceagrap/app/resources/wicket.extensions.markup.html.datepicker.DatePicker/calendar.js
> Ligne : 1796
> 
> Date.prototype.__msh_oldSetFullYear = Date.prototype.setFullYear;
> Date.prototype.setFullYear = function(y) {
>var d = new Date(this); <<< line 1796
>d.__msh_oldSetFullYear(y);
>if (d.getMonth() != this.getMonth())
>  this.setDate(28);
>this.__msh_oldSetFullYear(y);
> };
> 
> In IE6, the error message is "not enough stack space". The same line 
> number is reported, but the next line is highlighted:
> 
> Date.prototype.__msh_oldSetFullYear = Date.prototype.setFullYear;
> Date.prototype.setFullYear = function(y) {
>var d = new Date(this);
>d.__msh_oldSetFullYear(y); <<< line 1796
>if (d.getMonth() != this.getMonth())
>  this.setDate(28);
>this.__msh_oldSetFullYear(y);
> };
> 
> If I reload the page, the error disapears.
> 
> Pierre-Yves
> 
> 
> Matej Knopp a ?crit :
>> Thanks for fixed files, I've already commited those.
>> 
>> -Matej
>> 
>> Pierre-Yves Saumont wrote:
>>> Now it seems to work fine provided the locale switching is made 
>>> through reloading the page and not through Ajax. (I enclosed the 
>>> modified french scripts, in utf8 and iso.)
>>>
>>> If switching is made through Ajax, it works much better than it did 
>>> before. If the datepicker is visible when switching, switching works 
>>> fine. If the datepicker is not visible when switching, and then is is 
>>> loaded through Ajax, it does not always acknowledge the switch.
>>>
>>> But the worst problem is that reloading the page after a locale switch 
>>> (which before made the datepicker to swith to the new locale) now 
>>> cause an exception:
>>>
>>> Root cause:java.lang.IllegalStateException: Cannot remove 
>>> [MarkupContainer [Component id = 6, page = , path = 
>>> 6.Loop$LoopItem]] from null parent! at 
>>> wicket.Component.remove(Component.java:1475) at 
>>> wicket.version.undo.Add.undo(Add.java:81) at 
>>> wicket.version.undo.ChangeList.undo(ChangeList.java:93) at 
>>> wicket.version.undo.UndoPageVersionManager.undo(UndoPageVersionManager.java:217)
>>>  
>>> at 
>>> wicket.version.undo.UndoPageVersionManager.getVersion(UndoPageVersionManager.java:167)
>>>  
>>>
>>>
>>> I also somtime get this exception:
>>>
>>> java.lang.NullPointerException
>>> at wicket.MarkupFragmentFinder.find(MarkupFragmentFinder.java:76)
>>> at wicket.Component.renderComponent(Component.java:1599)
>>> at 
>>> wicket.ajax.AjaxRequestTarget.respondComponent(AjaxRequestTarget.java:474) 
>>>
>>>
>>>
>>> However, having it working with full page reload is a very good point. 
>>> I think it will be enough
>>>
>>>
>>> Pierre-Yves
>>>
>>> Matej Knopp a ?crit :
 You won't find it there. It's wicket-1.x (and trunk).

 1.2.2 is release. Current branch for 1.2 is under 1.x

 -Matej

 Pierre-Yves Saumont wrote:
> I can't find it in releases/wicket-1.2.2, only in trunk, but my app 
> does not work with 2.0 :-(
>
> Pierre-Yves
>
> Matej Knopp a ?crit :
>> Sorry for ambiguity. The fix should be already in.
>>
>> -Matej
>>
>> Pierre-Yves Saumont wrote:
>>> What should already be in? Is it your fix? Or are you talking 
>>> about the edited file I sent to the list few days ago? This is no 
>>> complete since at that time I had not noticed the tuesday error!
>>>
>>> Pierre-Yves
>>>
>>> Matej Knopp a ?crit :
 btw. it should be already in.

 Pierre-Yves Saumont wrote:
> Hi Matej,
>
> Of course I will test it as soon as you commit it. BTW, there 
> are plenty of typos and spelling mistakes in the french script, 
> and even an error in the abreviated day names (it says monday, 
> tuesday, tuesday, thursday and there is no wednesday!). Do you 
> want me to send you an edited file?
>
> Pierre-Yves
>
> Matej Knopp a ?crit :
>> Hi,
>>
>> I'm working on the date picker encoding problem. What I'll 
>> probably do is to convert all non-unicode (latin1, ...) date 
>> picker locale strings to utf-8 and add charset="utf-8" to the 
>> 

Re: [Wicket-user] Menu bar

2006-09-28 Thread Sean C. Sullivan

I'd love to see a menu bar for Wicket.

I've been researching the topic and I found these solutions 
for non-Wicket frameworks:

Tapestry:
http://metamorphosis.krysalis.org/krysalis-menu/

Struts:
http://struts-menu.sourceforge.net/

Echo2 framework:
http://echopoint.sourceforge.net/VisualIndex/MenuBar.html

>-- Original Message --
>Date: Thu, 28 Sep 2006 15:42:00 +0200
>From: "Stefan Lindner" <[EMAIL PROTECTED]>
>To: 
>Subject: [Wicket-user] Menu bar
>Reply-To: wicket-user@lists.sourceforge.net
>
>
>Is there anybody out there who is already working on a manu bar
>component for wicket-extensions? If not: perhaps I can generalize my
>quick and dirty solution.
>
>Stefan Lindner
>
>-
>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] ajax refresh on date picker

2006-09-28 Thread Pierre-Yves Saumont
I am afraid there is still a problem. I tested the fix in the quickstart 
I had made and it worked fine. However, in my application, selecting a 
date in the datepicker cause a Javascript error. FF reports this error as:

Erreur : too much recursion
Fichier source : 
http://localhost:8080/ceagrap/app/resources/wicket.extensions.markup.html.datepicker.DatePicker/calendar.js
Ligne : 1796

Date.prototype.__msh_oldSetFullYear = Date.prototype.setFullYear;
Date.prototype.setFullYear = function(y) {
   var d = new Date(this); <<< line 1796
   d.__msh_oldSetFullYear(y);
   if (d.getMonth() != this.getMonth())
 this.setDate(28);
   this.__msh_oldSetFullYear(y);
};

In IE6, the error message is "not enough stack space". The same line 
number is reported, but the next line is highlighted:

Date.prototype.__msh_oldSetFullYear = Date.prototype.setFullYear;
Date.prototype.setFullYear = function(y) {
   var d = new Date(this);
   d.__msh_oldSetFullYear(y); <<< line 1796
   if (d.getMonth() != this.getMonth())
 this.setDate(28);
   this.__msh_oldSetFullYear(y);
};

If I reload the page, the error disapears.

Pierre-Yves


Matej Knopp a écrit :
> Thanks for fixed files, I've already commited those.
> 
> -Matej
> 
> Pierre-Yves Saumont wrote:
>> Now it seems to work fine provided the locale switching is made 
>> through reloading the page and not through Ajax. (I enclosed the 
>> modified french scripts, in utf8 and iso.)
>>
>> If switching is made through Ajax, it works much better than it did 
>> before. If the datepicker is visible when switching, switching works 
>> fine. If the datepicker is not visible when switching, and then is is 
>> loaded through Ajax, it does not always acknowledge the switch.
>>
>> But the worst problem is that reloading the page after a locale switch 
>> (which before made the datepicker to swith to the new locale) now 
>> cause an exception:
>>
>> Root cause:java.lang.IllegalStateException: Cannot remove 
>> [MarkupContainer [Component id = 6, page = , path = 
>> 6.Loop$LoopItem]] from null parent! at 
>> wicket.Component.remove(Component.java:1475) at 
>> wicket.version.undo.Add.undo(Add.java:81) at 
>> wicket.version.undo.ChangeList.undo(ChangeList.java:93) at 
>> wicket.version.undo.UndoPageVersionManager.undo(UndoPageVersionManager.java:217)
>>  
>> at 
>> wicket.version.undo.UndoPageVersionManager.getVersion(UndoPageVersionManager.java:167)
>>  
>>
>>
>> I also somtime get this exception:
>>
>> java.lang.NullPointerException
>> at wicket.MarkupFragmentFinder.find(MarkupFragmentFinder.java:76)
>> at wicket.Component.renderComponent(Component.java:1599)
>> at 
>> wicket.ajax.AjaxRequestTarget.respondComponent(AjaxRequestTarget.java:474) 
>>
>>
>>
>> However, having it working with full page reload is a very good point. 
>> I think it will be enough
>>
>>
>> Pierre-Yves
>>
>> Matej Knopp a écrit :
>>> You won't find it there. It's wicket-1.x (and trunk).
>>>
>>> 1.2.2 is release. Current branch for 1.2 is under 1.x
>>>
>>> -Matej
>>>
>>> Pierre-Yves Saumont wrote:
 I can't find it in releases/wicket-1.2.2, only in trunk, but my app 
 does not work with 2.0 :-(

 Pierre-Yves

 Matej Knopp a écrit :
> Sorry for ambiguity. The fix should be already in.
>
> -Matej
>
> Pierre-Yves Saumont wrote:
>> What should already be in? Is it your fix? Or are you talking 
>> about the edited file I sent to the list few days ago? This is no 
>> complete since at that time I had not noticed the tuesday error!
>>
>> Pierre-Yves
>>
>> Matej Knopp a écrit :
>>> btw. it should be already in.
>>>
>>> Pierre-Yves Saumont wrote:
 Hi Matej,

 Of course I will test it as soon as you commit it. BTW, there 
 are plenty of typos and spelling mistakes in the french script, 
 and even an error in the abreviated day names (it says monday, 
 tuesday, tuesday, thursday and there is no wednesday!). Do you 
 want me to send you an edited file?

 Pierre-Yves

 Matej Knopp a écrit :
> Hi,
>
> I'm working on the date picker encoding problem. What I'll 
> probably do is to convert all non-unicode (latin1, ...) date 
> picker locale strings to utf-8 and add charset="utf-8" to the 
> 

Re: [Wicket-user] question

2006-09-28 Thread Patrick Angeles

I realise  is very simple and meant just for convenience, but
it's awfully convenient.

Would it make sense to have the concept of a base package? For example:


   HomePage.html This is com.mycompany.web.HomePage 
   login/LoginPage.html This is com.mycompany.web.login.LoginPage 
   some/other/package/IndexPage.html This is
com.mycompany.web.some.other.package.IndexPage 


For that matter, I think a 'mount' method that traverses a base package
would be nice, for example:
WebApplication.mountAllSubPackagePages (String baseDir, PackageName
basePackage)

So a call to:
webApplication.mountAllSubPackagePages ("/base", PackageName.forClass
(com.mycompany.web.HomePage.class))

Would mount the following bookmarkable URLs:
contextname/app/base/HomePage
contextname/app/base/login/LoginPage
contextname/app/base/some/other/package/IndexPage







igor.vaynberg wrote:
> 
>  does not work for multi levels. a search is not feasible
> because different packages can contain same class names
> 
> if i were you i would create a panel that is backed by PageLinks and you
> can
> plop that into anywhere you want on any page. or add it to a base page
> once
> and use markup inheritance.
> 
> -Igor
> 
> On 2/21/06, Frank Silbermann <[EMAIL PROTECTED]> wrote:
>>
>> Suppose my page that displays the links is at a deeply nested level, and
>> I want to use  to go to a page closer to the root.  Would
>> it work if I defined a Panel at the top level and put my 
>> in there (to be included by pages that were deeply nested)?
>>
>> If not, what is the easiest way to hardcode a static list of many Wicket
>> links, some of which go up the hierarchy?  If the list is static and no
>> parameters are being passed, it seems like overkill to have to write
>> code for each link.
>>
>> /Frank
>>
>> -Original Message-
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] On Behalf Of Juergen
>> Donnerstag
>> Sent: Thursday, February 16, 2006 4:17 PM
>> To: wicket-user@lists.sourceforge.net
>> Subject: Re: [Wicket-user]  question
>>
>> wicket:link is realy for convinience only and doesn#t have the full
>> flexibility of Links etc. But they support subpackages like
>> sub/myPage.html. You can not do ../xxx and absolute paths are excluded
>> as well.
>>
>> Juergen
>>
>> On 2/16/06, Frank Silbermann <[EMAIL PROTECTED]> wrote:
>> >
>> >
>> > I've seen that within a  tag we can write ordinary HTML
>> links
>> > and have Wicket lings automatically generated.  The Component
>> Reference
>> > examples use it as follows:
>> >
>> >
>> >
>> >   
>> >
>> >  
>> >
>> >>
>> href="PanelPage.html">wicket.markup.html.panel.Panel 
>> >
>> >>
>> href="BorderPage.html">wicket.markup.html.border.Border 
>> >
>> >  
>> >
>> >   
>> >
>> >
>> >
>> > But in all the examples, the linked pages were in the same package as
>> the
>> > page doing the linking.  Can we use  to link to pages in
>> other
>> > packages of our application?  If so, then how do we indicate the path
>> (so as
>> > to distinguish between page classes with the same name in different
>> > packages)?
>> >
>> >
>> >
>> > Would I use something like Unix relative path notation?
>> >
>> >
>> >
>> > Or is  only useful for linking within a package?
>>
>>
>> ---
>> This SF.net email is sponsored by: Splunk Inc. Do you grep through log
>> files
>> for problems?  Stop!  Download the new AJAX search engine that makes
>> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
>> http://sel.as-us.falkag.net/sel?cmd=k&kid3432&bid#0486&dat1642
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
>>
>> ---
>> This SF.net email is sponsored by: Splunk Inc. Do you grep through log
>> files
>> for problems?  Stop!  Download the new AJAX search engine that makes
>> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
>> http://sel.as-us.falkag.net/sel?cmdlnk&kid3432&bid#0486&dat1642
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/%3CWicket%3Alink%3E-question-tf1137183.html#a6549996
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://li

Re: [Wicket-user] progress indicator

2006-09-28 Thread Pierre-Yves Saumont
I use to experiment first and read only after. I remember few years ago 
(in the pre mp3 era) I needed sound streaming in an applet so I wrote a 
GSM decoder. Only when it was up and running, I searched the web and 
found it was already available in JavaSound. (But of course, mine was 
much better ;-) )

Pierre-Yves

Igor Vaynberg a écrit :
> On 9/28/06, *Pierre-Yves Saumont* <[EMAIL PROTECTED]  PROTECTED]>> 
> wrote:
> 
> 
> My WaitingAjaxLink as a script before that make a transparent div laying
> over the form visible so that the user can't click on anything. 
> 
> 
> and this is what stops the users from mocking with the form or pressing 
> the button again, because this div captures all user input. this is the 
> same strategy that makes our modal window modal. dont you guys read? :)
> 
> -Igor
> 


-
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] rendering of a collection property in a PropertyColumn

2006-09-28 Thread Jaime De La Jara
The problem was I copied the fragment in the ListContactsPage and it had to be included in the BasePage which is the superclass of the former page. In my code I referenced the ListContactsPage.this variable otherwise it wouldn't have compiled.Thanks.Jaime.Igor Vaynberg <[EMAIL PROTECTED]> wrote: you need to be more careful when copying code :)Fragment frag=new Fragment(componentId, "addresses-frag", Mypage.this);which in your case would be  Fragment frag=new Fragment(componentId, "addresses-frag", ListContactsPage.this);-IgorOn 9/26/06,  Jaime De La Jara <[EMAIL PROTECTED]>
 wrote: I tried the code, but it throws the following exception :Exception : wicket.markup.MarkupException: Markup does not contain a fragment with id=addr-frag; Component: [MarkupContainer [Component id = cell, page = wicket.contrib.phonebook.web.page.ListContactsPage , path = 2:users:rows:1:cells:7:cell.Fragment, isVisible = true, isVersioned = true]]I included the fragment in the ListContactsPage as follows :Create New Contact         
 It seems that it is expecting to find the fragment inside the markup of DataTable.What can be  wrong?Thanks,Jaime.Igor Vaynberg < [EMAIL PROTECTED]> wrote: dont quote me on thisin MyPage.html class MyPage {class AddressColumn extends AbstractColumn { void populateItem(final Item cellItem, final String componentId, final IModel rowModel) {  Fragment frag=new Fragment(componentId, "addresses-frag", 
 Mypage.this);  item.add(frag);  frag.add (new DropDownChoice("dropdown", new PropertyModel(rowModel, "addresses", new IChoiceRenderer() {   String getId(Obect o, int idx) { return idx}  String getDisplayValue(Object o) { return ((Address)o).getStreet(); }});  }}-IgorOn 9/26/06, Jaime De La Jara < [EMAIL PROTECTED]> wrote: Hi, playing with the phonebook example app I added a collection field to Contact class, this field is a collection of instances of class Address which has two String fields : city and street. I'd like to display a drop down choice containing the street property for
 each address instance that a contact has, How could I achieve this?  Thanks,Jaime. Get your own web address for just $1.99/1st yr. We'll help.   Yahoo! Small Business.  -Take Surveys. Earn Cash. Influence the Future of ITJoin 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.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user   -Take Surveys. Earn Cash. Influence the Future of ITJoin 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.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user  All-new
 Yahoo! Mail - Fire up a more powerful email and get things done faster. -Take Surveys. Earn Cash. Influence the Future of ITJoin 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.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user  -Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share youropinions on IT & business topics through brief surveys -- and earn cashhttp://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user 
		How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call rates.-
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] progress indicator

2006-09-28 Thread Korbinian Bachl
well, my experience is: if you put anything online, someone will come and
try to skrew it up :/ 

because of that, I see anything client side just as a "gimmick" and regard
all data coming from it as potential dangerous... 

but helping users is also ok :P

Regards

> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] Im Auftrag 
> von Pierre-Yves Saumont
> Gesendet: Donnerstag, 28. September 2006 15:51
> An: wicket-user@lists.sourceforge.net
> Betreff: Re: [Wicket-user] progress indicator
> 
> Well, technically, you're right. However, I think we are 
> speaking of different use cases. My use case is a fair user 
> wanting to click on an link and not aware that he has to wait 
> for the result. So he might click a second time if he's 
> waiting too long. For this use case, we often see a message 
> that says "Wait for the answer. Do not click twice or your 
> order (or whatever) will be processed twice".
> 
> In that use case, I think "Ajax" can help. (By the way, it is 
> client side processing. Nothing to do with Ajax).
> 
> Your use case is more an unfair user trying to screw the 
> system. In that case, I will of course try to install 
> protections on the system side, but I will not try to protect 
> the user. ;-)
> 
> Pierre-Yves
> 
> Korbinian Bachl a écrit :
> > it wouldnt work to prevent the user from doing sth. -  even 
> if he has 
> > JS enabled, he might abuse it... ajax has always be treatet as 
> > unsecure... and the basic problem the thread started with, cant be 
> > solved by ajax, it has to be solved by the server checking 
> the current 
> > state of the process thats going on...
> > 
> > 
> > 
> >> -Ursprüngliche Nachricht-
> >> Von: [EMAIL PROTECTED]
> >> [mailto:[EMAIL PROTECTED] Im Auftrag von 
> >> Pierre-Yves Saumont
> >> Gesendet: Donnerstag, 28. September 2006 13:16
> >> An: wicket-user@lists.sourceforge.net
> >> Betreff: Re: [Wicket-user] progress indicator
> >>
> >> What wouldn't work? Do you mean the indicating ajax link wouldn't 
> >> prevent the user to resubmit the form, or are you thinking about 
> >> another problem?
> >>
> >> Pierre-Yves
> >>
> >> Korbinian Bachl a écrit :
> >>> depends on the scenario he wants to use it, however, 
> preventing the 
> >>> user to send a form just wouldnt work
> >>>
> >>> regards
> >>>
>  -Ursprüngliche Nachricht-
>  Von: [EMAIL PROTECTED]
>  [mailto:[EMAIL PROTECTED] Im 
> Auftrag von 
>  Pierre-Yves Saumont
>  Gesendet: Donnerstag, 28. September 2006 11:29
>  An: wicket-user@lists.sourceforge.net
>  Betreff: Re: [Wicket-user] progress indicator
> 
>  I guess the question is how to prevent the user to send the form 
>  twice while the Ajax request is being processed. Or am I wrong?
> 
>  Pierre-Yves
> 
>  Korbinian Bachl a écrit :
> > Hi,
> >  
> > i dont understand what you mean? - how can a disabled
>  onSubmit button
> > stop the user from changing selected values?? if you 
> plan it ajax 
> > like, how can u be secure that the user has JS activated
> >> and doenst
> > deactivate it or ignore parts of it (like you can do with
>  certain browser plugins) ?
> >  
> > basically, a check on a user side (in the browser) is a
>  toy, but not a
> > check - you can help the user to fill out forms and tell
>  him he shoud
> > do this and that, but you cant force him nor be sure that
>  the data hes
> > sending is trustful in any way...
> >  
> > Regards
> >
> > 
>  --
>  --
> > *Von:* [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] *Im
>  Auftrag von
> > *Nino Wael
> > *Gesendet:* Donnerstag, 28. September 2006 10:54
> > *An:* wicket-user@lists.sourceforge.net
> > *Betreff:* [Wicket-user] progress indicator
> >
> > Hi
> >
> >  
> >
> > We have a form where we would like to disable the
> >> complete form
> > onsubmit so that the user cant change any of his
>  selected values and
> > we would like to display a progress meter(it does not
>  have to show
> > the actual progress just a gif like the AJAX examples). 
>  I have been
> > thinking of the AJAX examples but I guess that since
> >> we somehow
> > would like to stall the browser it’s not really a good
>  solution, we
> > would have to add all for components again just
>  disabled and then on
> > the end of the ajax call add them all again enabled?
> >
> >  
> >
> > Whats your 2 centavos on this?
> >
> >
> >
> >> 
> -
>  -
> > --
> >
> >
> >> 
> -
>  -
> > --- Take Surveys.

Re: [Wicket-user] progress indicator

2006-09-28 Thread Pierre-Yves Saumont
Well, technically, you're right. However, I think we are speaking of 
different use cases. My use case is a fair user wanting to click on an 
link and not aware that he has to wait for the result. So he might click 
a second time if he's waiting too long. For this use case, we often see 
a message that says "Wait for the answer. Do not click twice or your 
order (or whatever) will be processed twice".

In that use case, I think "Ajax" can help. (By the way, it is client 
side processing. Nothing to do with Ajax).

Your use case is more an unfair user trying to screw the system. In that 
case, I will of course try to install protections on the system side, 
but I will not try to protect the user. ;-)

Pierre-Yves

Korbinian Bachl a écrit :
> it wouldnt work to prevent the user from doing sth. -  even if he has JS
> enabled, he might abuse it... ajax has always be treatet as unsecure... and
> the basic problem the thread started with, cant be solved by ajax, it has to
> be solved by the server checking the current state of the process thats
> going on...
> 
> 
> 
>> -Ursprüngliche Nachricht-
>> Von: [EMAIL PROTECTED] 
>> [mailto:[EMAIL PROTECTED] Im Auftrag 
>> von Pierre-Yves Saumont
>> Gesendet: Donnerstag, 28. September 2006 13:16
>> An: wicket-user@lists.sourceforge.net
>> Betreff: Re: [Wicket-user] progress indicator
>>
>> What wouldn't work? Do you mean the indicating ajax link 
>> wouldn't prevent the user to resubmit the form, or are you 
>> thinking about another problem?
>>
>> Pierre-Yves
>>
>> Korbinian Bachl a écrit :
>>> depends on the scenario he wants to use it, however, preventing the 
>>> user to send a form just wouldnt work
>>>
>>> regards
>>>
 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Im Auftrag von 
 Pierre-Yves Saumont
 Gesendet: Donnerstag, 28. September 2006 11:29
 An: wicket-user@lists.sourceforge.net
 Betreff: Re: [Wicket-user] progress indicator

 I guess the question is how to prevent the user to send the form 
 twice while the Ajax request is being processed. Or am I wrong?

 Pierre-Yves

 Korbinian Bachl a écrit :
> Hi,
>  
> i dont understand what you mean? - how can a disabled
 onSubmit button
> stop the user from changing selected values?? if you plan it ajax 
> like, how can u be secure that the user has JS activated 
>> and doenst 
> deactivate it or ignore parts of it (like you can do with
 certain browser plugins) ?
>  
> basically, a check on a user side (in the browser) is a
 toy, but not a
> check - you can help the user to fill out forms and tell
 him he shoud
> do this and that, but you cant force him nor be sure that
 the data hes
> sending is trustful in any way...
>  
> Regards
>
> 
 --
 --
> *Von:* [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] *Im
 Auftrag von
> *Nino Wael
> *Gesendet:* Donnerstag, 28. September 2006 10:54
> *An:* wicket-user@lists.sourceforge.net
> *Betreff:* [Wicket-user] progress indicator
>
> Hi
>
>  
>
> We have a form where we would like to disable the 
>> complete form
> onsubmit so that the user cant change any of his
 selected values and
> we would like to display a progress meter(it does not
 have to show
> the actual progress just a gif like the AJAX examples). 
 I have been
> thinking of the AJAX examples but I guess that since 
>> we somehow
> would like to stall the browser it’s not really a good
 solution, we
> would have to add all for components again just
 disabled and then on
> the end of the ajax call add them all again enabled?
>
>  
>
> Whats your 2 centavos on this?
>
>
>
>> -
 -
> --
>
>
>> -
 -
> --- 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=DE
 V
> DEV
>
>
>
>> -
 -
> --
>
> ___
> 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

[Wicket-user] Menu bar

2006-09-28 Thread Stefan Lindner
Is there anybody out there who is already working on a manu bar
component for wicket-extensions? If not: perhaps I can generalize my
quick and dirty solution.

Stefan Lindner

-
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] wicket bench 0.4

2006-09-28 Thread ChuckDeal


Joni Freeman wrote:
> 
> Yes, of course. This link should point to the archived plugin within the
> update site.
> http://www.laughingpanda.org/svn/wicket-bench/trunk/wicket-bench-site/plugins/wicketbench_0.4.0.jar
> 

OK, So I did the upgrade manually, but it keeps throwing an exception when
it attempts to open a wicket editor.  I have rolled back to 0.3.0.  The
following is a snippet from my .log at startup so that you can see my specs
and the error...

!SESSION 2006-09-28 07:27:06.00

eclipse.buildId=M20050929-0840
java.version=1.5.0_07
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments:  -os win32 -ws win32 -arch x86

!ENTRY org.eclipse.ui.workbench 4 0 2006-09-28 07:27:34.174
!MESSAGE Index out of bounds
!STACK 0
java.lang.IllegalArgumentException: Index out of bounds
at org.eclipse.swt.SWT.error(SWT.java:2926)
at org.eclipse.swt.SWT.error(SWT.java:2865)
at org.eclipse.swt.SWT.error(SWT.java:2836)
at org.eclipse.swt.custom.CTabFolder.getItem(CTabFolder.java:1150)
at
org.eclipse.ui.part.MultiPageEditorPart.getItem(MultiPageEditorPart.java:368)
at
org.eclipse.ui.part.MultiPageEditorPart.setPageText(MultiPageEditorPart.java:683)
at wicketbench.eclipse.editor.WicketEditor.access$0(WicketEditor.java:1)
at
wicketbench.eclipse.editor.WicketEditor$1.propertyChanged(WicketEditor.java:506)
at
org.eclipse.ui.part.WorkbenchPart.firePropertyChange(WorkbenchPart.java:122)
at
org.eclipse.ui.texteditor.AbstractTextEditor.firePropertyChange(AbstractTextEditor.java:4951)
at
org.eclipse.ui.texteditor.AbstractTextEditor.initializeTitle(AbstractTextEditor.java:2923)
at
org.eclipse.ui.texteditor.AbstractTextEditor.doSetInput(AbstractTextEditor.java:3010)
at
org.eclipse.ui.texteditor.StatusTextEditor.doSetInput(StatusTextEditor.java:173)
at
org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.doSetInput(AbstractDecoratedTextEditor.java:1303)
at
org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.internalDoSetInput(JavaEditor.java:2219)
at
org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.doSetInput(JavaEditor.java:2192)
at
org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.doSetInput(CompilationUnitEditor.java:1544)
at
org.eclipse.ui.texteditor.AbstractTextEditor$16.run(AbstractTextEditor.java:2360)
at
org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:346)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:291)
at
org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:624)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at
org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:621)
at 
org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2134)
at
org.eclipse.ui.texteditor.AbstractTextEditor.internalInit(AbstractTextEditor.java:2378)
at
org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTextEditor.java:2405)
at
org.eclipse.ui.part.MultiPageEditorPart.addPage(MultiPageEditorPart.java:152)
at
org.eclipse.ui.part.MultiPageEditorPart.addPage(MultiPageEditorPart.java:132)
at
wicketbench.eclipse.editor.WicketEditor.createEditorForJavaResource(WicketEditor.java:179)
at
wicketbench.eclipse.editor.WicketEditor.addEditors(WicketEditor.java:170)
at
wicketbench.eclipse.editor.WicketEditor.createPages(WicketEditor.java:77)
at
org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:241)
at
org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:609)
at
org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:384)
at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:552)
at
org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(EditorAreaHelper.java:258)
at
org.eclipse.ui.internal.EditorManager.setVisibleEditor(EditorManager.java:1221)
at org.eclipse.ui.internal.EditorManager$5.run(EditorManager.java:949)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
at org.eclipse.core.runtime.Platform.run(Platform.java:783)
at
org.eclipse.ui.internal.EditorManager.restoreState(EditorManager.java:944)
at
org.eclipse.ui.internal.WorkbenchPage.restoreState(WorkbenchPage.java:2576)
at
org.eclipse.ui.internal.WorkbenchWindow.restoreState(WorkbenchWindow.java:1819)
at org.eclipse.ui.internal.Workbench.doRestoreState(Workbench.java:2566)
at org.eclipse.ui.internal.Workbench.access$14(Workbench.java:2515)
at org.eclipse.ui.internal.Workbench$19.run(Workbench.java:1514)
at org.eclipse.ui.internal.Workbench$16.run(Wor

Re: [Wicket-user] ajax refresh on date picker

2006-09-28 Thread Matej Knopp
Thanks for fixed files, I've already commited those.

-Matej

Pierre-Yves Saumont wrote:
> Now it seems to work fine provided the locale switching is made through 
> reloading the page and not through Ajax. (I enclosed the modified french 
> scripts, in utf8 and iso.)
> 
> If switching is made through Ajax, it works much better than it did 
> before. If the datepicker is visible when switching, switching works 
> fine. If the datepicker is not visible when switching, and then is is 
> loaded through Ajax, it does not always acknowledge the switch.
> 
> But the worst problem is that reloading the page after a locale switch 
> (which before made the datepicker to swith to the new locale) now cause 
> an exception:
> 
> Root cause:java.lang.IllegalStateException: Cannot remove 
> [MarkupContainer [Component id = 6, page = , path = 
> 6.Loop$LoopItem]] from null parent! at 
> wicket.Component.remove(Component.java:1475) at 
> wicket.version.undo.Add.undo(Add.java:81) at 
> wicket.version.undo.ChangeList.undo(ChangeList.java:93) at 
> wicket.version.undo.UndoPageVersionManager.undo(UndoPageVersionManager.java:217)
>  
> at 
> wicket.version.undo.UndoPageVersionManager.getVersion(UndoPageVersionManager.java:167)
>  
> 
> 
> I also somtime get this exception:
> 
> java.lang.NullPointerException
> at wicket.MarkupFragmentFinder.find(MarkupFragmentFinder.java:76)
> at wicket.Component.renderComponent(Component.java:1599)
> at 
> wicket.ajax.AjaxRequestTarget.respondComponent(AjaxRequestTarget.java:474)
> 
> 
> However, having it working with full page reload is a very good point. I 
> think it will be enough
> 
> 
> Pierre-Yves
> 
> Matej Knopp a écrit :
>> You won't find it there. It's wicket-1.x (and trunk).
>>
>> 1.2.2 is release. Current branch for 1.2 is under 1.x
>>
>> -Matej
>>
>> Pierre-Yves Saumont wrote:
>>> I can't find it in releases/wicket-1.2.2, only in trunk, but my app 
>>> does not work with 2.0 :-(
>>>
>>> Pierre-Yves
>>>
>>> Matej Knopp a écrit :
 Sorry for ambiguity. The fix should be already in.

 -Matej

 Pierre-Yves Saumont wrote:
> What should already be in? Is it your fix? Or are you talking about 
> the edited file I sent to the list few days ago? This is no 
> complete since at that time I had not noticed the tuesday error!
>
> Pierre-Yves
>
> Matej Knopp a écrit :
>> btw. it should be already in.
>>
>> Pierre-Yves Saumont wrote:
>>> Hi Matej,
>>>
>>> Of course I will test it as soon as you commit it. BTW, there are 
>>> plenty of typos and spelling mistakes in the french script, and 
>>> even an error in the abreviated day names (it says monday, 
>>> tuesday, tuesday, thursday and there is no wednesday!). Do you 
>>> want me to send you an edited file?
>>>
>>> Pierre-Yves
>>>
>>> Matej Knopp a écrit :
 Hi,

 I'm working on the date picker encoding problem. What I'll 
 probably do is to convert all non-unicode (latin1, ...) date 
 picker locale strings to utf-8 and add charset="utf-8" to the 
 

Re: [Wicket-user] Wicket arguments for big slow companies (Was: links about wicket scalability...)

2006-09-28 Thread Erik van Oosten
I just did a little blog about the results of the thread: 
http://day-to-day-stuff.blogspot.com/2006/09/wicket-for-bscs.html

Thanks,
 Erik.


-
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] CheckGroupSelector with CheckBox

2006-09-28 Thread Nino Wael
Sorry for this previous mail its out of context and wrong.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael
Sent: 28. september 2006 13:59
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] CheckGroupSelector with CheckBox

Hmm You cant just use the checkgroupselectors.onchange?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Decebal Suiu
Sent: 27. september 2006 21:01
To: wicket-user@lists.sourceforge.net
Subject: [Wicket-user] CheckGroupSelector with CheckBox

Can I use CheckGroupSelector with CheckBox (instead
Check) ?
Because I want to be notified when a selection was
changed (CheckBox.onSelectionChanged)?

Thanks,
Decebal

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.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] progress indicator

2006-09-28 Thread Nino Wael
I do agree, but this is a usability question first of all. 

Secondly I agree that I might have the class that are generating the report 
wrapped as a thread and then having some ajax come ask if the thread is done 
until it is done and then generate the link to the temporary storing url, and 
showing it on the page. This would also allow a cancel button to be added

This way the user could be shown a revolving gif until a ajax call replaced it 
with the link.

Regards Nino

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Korbinian Bachl
Sent: 28. september 2006 14:16
To: [EMAIL PROTECTED]; wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] progress indicator

it wouldnt work to prevent the user from doing sth. -  even if he has JS
enabled, he might abuse it... ajax has always be treatet as unsecure... and
the basic problem the thread started with, cant be solved by ajax, it has to
be solved by the server checking the current state of the process thats
going on...



> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] Im Auftrag 
> von Pierre-Yves Saumont
> Gesendet: Donnerstag, 28. September 2006 13:16
> An: wicket-user@lists.sourceforge.net
> Betreff: Re: [Wicket-user] progress indicator
> 
> What wouldn't work? Do you mean the indicating ajax link 
> wouldn't prevent the user to resubmit the form, or are you 
> thinking about another problem?
> 
> Pierre-Yves
> 
> Korbinian Bachl a écrit :
> > depends on the scenario he wants to use it, however, preventing the 
> > user to send a form just wouldnt work
> > 
> > regards
> > 
> >> -Ursprüngliche Nachricht-
> >> Von: [EMAIL PROTECTED]
> >> [mailto:[EMAIL PROTECTED] Im Auftrag von 
> >> Pierre-Yves Saumont
> >> Gesendet: Donnerstag, 28. September 2006 11:29
> >> An: wicket-user@lists.sourceforge.net
> >> Betreff: Re: [Wicket-user] progress indicator
> >>
> >> I guess the question is how to prevent the user to send the form 
> >> twice while the Ajax request is being processed. Or am I wrong?
> >>
> >> Pierre-Yves
> >>
> >> Korbinian Bachl a écrit :
> >>> Hi,
> >>>  
> >>> i dont understand what you mean? - how can a disabled
> >> onSubmit button
> >>> stop the user from changing selected values?? if you plan it ajax 
> >>> like, how can u be secure that the user has JS activated 
> and doenst 
> >>> deactivate it or ignore parts of it (like you can do with
> >> certain browser plugins) ?
> >>>  
> >>> basically, a check on a user side (in the browser) is a
> >> toy, but not a
> >>> check - you can help the user to fill out forms and tell
> >> him he shoud
> >>> do this and that, but you cant force him nor be sure that
> >> the data hes
> >>> sending is trustful in any way...
> >>>  
> >>> Regards
> >>>
> >>> 
> >> --
> >> --
> >>> *Von:* [EMAIL PROTECTED]
> >>> [mailto:[EMAIL PROTECTED] *Im
> >> Auftrag von
> >>> *Nino Wael
> >>> *Gesendet:* Donnerstag, 28. September 2006 10:54
> >>> *An:* wicket-user@lists.sourceforge.net
> >>> *Betreff:* [Wicket-user] progress indicator
> >>>
> >>> Hi
> >>>
> >>>  
> >>>
> >>> We have a form where we would like to disable the 
> complete form
> >>> onsubmit so that the user cant change any of his
> >> selected values and
> >>> we would like to display a progress meter(it does not
> >> have to show
> >>> the actual progress just a gif like the AJAX examples). 
> >> I have been
> >>> thinking of the AJAX examples but I guess that since 
> we somehow
> >>> would like to stall the browser it's not really a good
> >> solution, we
> >>> would have to add all for components again just
> >> disabled and then on
> >>> the end of the ajax call add them all again enabled?
> >>>
> >>>  
> >>>
> >>> Whats your 2 centavos on this?
> >>>
> >>>
> >>>
> >> 
> -
> >> -
> >>> --
> >>>
> >>>
> >> 
> -
> >> -
> >>> --- 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=DE
> >> V
> >>> DEV
> >>>
> >>>
> >>>
> >> 
> -
> >> -
> >>> --
> >>>
> >>> ___
> >>> 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 
> >> you

Re: [Wicket-user] progress indicator

2006-09-28 Thread Nino Wael
Completely correct. 

As we generate a report when the user clicks the submit button, and while the 
page are loading we dont want the user to play around in the mean while. 

I've been thinking of combining some of the ajax stuff. Like having the ajax 
modal window plus the progress indicator. 

Basically when the user clicks the generate report button, a AJAX modal pops 
up(panel version) in the modal there are the ajaxlink with an progress 
indicator. So when the user clicks it or maybe on panel load? It Generates the 
report and url to the report so that the user can save it.


BTW if user disables JAVASCRIPT they will not be able to use the system, and 
gets a nice error page telling them to enable it or wait till they do:) I guess 
these days its pretty hard not having javascript in your web applications, well 
at least if customer wants them fancy and glittery.


Regards Nino



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Pierre-Yves 
Saumont
Sent: 28. september 2006 11:29
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] progress indicator

I guess the question is how to prevent the user to send the form twice 
while the Ajax request is being processed. Or am I wrong?

Pierre-Yves

Korbinian Bachl a écrit :
> Hi,
>  
> i dont understand what you mean? - how can a disabled onSubmit button 
> stop the user from changing selected values?? if you plan it ajax like, 
> how can u be secure that the user has JS activated and doenst deactivate 
> it or ignore parts of it (like you can do with certain browser plugins) ?
>  
> basically, a check on a user side (in the browser) is a toy, but not a 
> check - you can help the user to fill out forms and tell him he shoud do 
> this and that, but you cant force him nor be sure that the data hes 
> sending is trustful in any way...
>  
> Regards
> 
> 
> *Von:* [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] *Im Auftrag von
> *Nino Wael
> *Gesendet:* Donnerstag, 28. September 2006 10:54
> *An:* wicket-user@lists.sourceforge.net
> *Betreff:* [Wicket-user] progress indicator
> 
> Hi
> 
>  
> 
> We have a form where we would like to disable the complete form
> onsubmit so that the user cant change any of his selected values and
> we would like to display a progress meter(it does not have to show
> the actual progress just a gif like the AJAX examples). I have been
> thinking of the AJAX examples but I guess that since we somehow
> would like to stall the browser it's not really a good solution, we
> would have to add all for components again just disabled and then on
> the end of the ajax call add them all again enabled?
> 
>  
> 
> Whats your 2 centavos on this?
> 
> 
> 
> 
> -
> 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] progress indicator

2006-09-28 Thread Korbinian Bachl
it wouldnt work to prevent the user from doing sth. -  even if he has JS
enabled, he might abuse it... ajax has always be treatet as unsecure... and
the basic problem the thread started with, cant be solved by ajax, it has to
be solved by the server checking the current state of the process thats
going on...



> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] Im Auftrag 
> von Pierre-Yves Saumont
> Gesendet: Donnerstag, 28. September 2006 13:16
> An: wicket-user@lists.sourceforge.net
> Betreff: Re: [Wicket-user] progress indicator
> 
> What wouldn't work? Do you mean the indicating ajax link 
> wouldn't prevent the user to resubmit the form, or are you 
> thinking about another problem?
> 
> Pierre-Yves
> 
> Korbinian Bachl a écrit :
> > depends on the scenario he wants to use it, however, preventing the 
> > user to send a form just wouldnt work
> > 
> > regards
> > 
> >> -Ursprüngliche Nachricht-
> >> Von: [EMAIL PROTECTED]
> >> [mailto:[EMAIL PROTECTED] Im Auftrag von 
> >> Pierre-Yves Saumont
> >> Gesendet: Donnerstag, 28. September 2006 11:29
> >> An: wicket-user@lists.sourceforge.net
> >> Betreff: Re: [Wicket-user] progress indicator
> >>
> >> I guess the question is how to prevent the user to send the form 
> >> twice while the Ajax request is being processed. Or am I wrong?
> >>
> >> Pierre-Yves
> >>
> >> Korbinian Bachl a écrit :
> >>> Hi,
> >>>  
> >>> i dont understand what you mean? - how can a disabled
> >> onSubmit button
> >>> stop the user from changing selected values?? if you plan it ajax 
> >>> like, how can u be secure that the user has JS activated 
> and doenst 
> >>> deactivate it or ignore parts of it (like you can do with
> >> certain browser plugins) ?
> >>>  
> >>> basically, a check on a user side (in the browser) is a
> >> toy, but not a
> >>> check - you can help the user to fill out forms and tell
> >> him he shoud
> >>> do this and that, but you cant force him nor be sure that
> >> the data hes
> >>> sending is trustful in any way...
> >>>  
> >>> Regards
> >>>
> >>> 
> >> --
> >> --
> >>> *Von:* [EMAIL PROTECTED]
> >>> [mailto:[EMAIL PROTECTED] *Im
> >> Auftrag von
> >>> *Nino Wael
> >>> *Gesendet:* Donnerstag, 28. September 2006 10:54
> >>> *An:* wicket-user@lists.sourceforge.net
> >>> *Betreff:* [Wicket-user] progress indicator
> >>>
> >>> Hi
> >>>
> >>>  
> >>>
> >>> We have a form where we would like to disable the 
> complete form
> >>> onsubmit so that the user cant change any of his
> >> selected values and
> >>> we would like to display a progress meter(it does not
> >> have to show
> >>> the actual progress just a gif like the AJAX examples). 
> >> I have been
> >>> thinking of the AJAX examples but I guess that since 
> we somehow
> >>> would like to stall the browser it’s not really a good
> >> solution, we
> >>> would have to add all for components again just
> >> disabled and then on
> >>> the end of the ajax call add them all again enabled?
> >>>
> >>>  
> >>>
> >>> Whats your 2 centavos on this?
> >>>
> >>>
> >>>
> >> 
> -
> >> -
> >>> --
> >>>
> >>>
> >> 
> -
> >> -
> >>> --- 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=DE
> >> V
> >>> DEV
> >>>
> >>>
> >>>
> >> 
> -
> >> -
> >>> --
> >>>
> >>> ___
> >>> 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.ph

Re: [Wicket-user] CheckGroupSelector with CheckBox

2006-09-28 Thread Nino Wael
Hmm You cant just use the checkgroupselectors.onchange?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Decebal Suiu
Sent: 27. september 2006 21:01
To: wicket-user@lists.sourceforge.net
Subject: [Wicket-user] CheckGroupSelector with CheckBox

Can I use CheckGroupSelector with CheckBox (instead
Check) ?
Because I want to be notified when a selection was
changed (CheckBox.onSelectionChanged)?

Thanks,
Decebal

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.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] Dependent detachable models

2006-09-28 Thread Leszek Gawron
Hello,
I have a question:

Suppose I have a detachable model which loads master instances (say 
leagues entities using hibernate)

add( new ListView( "leagues", new UserLeaguesModel( this.leagueService ) ) {
 @Override
 protected void populateItem( ListItem listitem ) {
 League league = (League) listitem.getModelObject();

 listitem.add( new Link( "leagueLink" ) {
 @Override
 public void onClick() {
 System.out.println( "link clicked" );
 }
 }.add( new Label( "leagueName", league.getName() ) ) );

 listitem.add( new ListView( "matches", new 
LeagueLastMatchesModel( leagueService, league, 10 ) ) {
 @Override
 protected void populateItem( ListItem newsItem ) {
 // populate match info here
 }
 } );
 }
} );

Both UserLeaguesModel and LeagueMastMatchesModel are the instances of 
LoadableDetachableModel. What bothers me here is the fact that I need to 
  create the dependent model with 'league' parameter (which might be 
large so I do not want to keep it attached).

I do not want to pass league.id only as my whole business layer is 
strongly typed and uses entities as parameters.

Questions:

  - does it change anything if I passed listItem.getModel() ?
  - if the former is also not a good idea how can I assure full 
detachability (means no League object gets serialized to session)?

-- 
Leszek Gawron

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

2006-09-28 Thread Pierre-Yves Saumont
What wouldn't work? Do you mean the indicating ajax link wouldn't 
prevent the user to resubmit the form, or are you thinking about another 
problem?

Pierre-Yves

Korbinian Bachl a écrit :
> depends on the scenario he wants to use it, however, preventing the user to
> send a form just wouldnt work
> 
> regards
> 
>> -Ursprüngliche Nachricht-
>> Von: [EMAIL PROTECTED] 
>> [mailto:[EMAIL PROTECTED] Im Auftrag 
>> von Pierre-Yves Saumont
>> Gesendet: Donnerstag, 28. September 2006 11:29
>> An: wicket-user@lists.sourceforge.net
>> Betreff: Re: [Wicket-user] progress indicator
>>
>> I guess the question is how to prevent the user to send the 
>> form twice while the Ajax request is being processed. Or am I wrong?
>>
>> Pierre-Yves
>>
>> Korbinian Bachl a écrit :
>>> Hi,
>>>  
>>> i dont understand what you mean? - how can a disabled 
>> onSubmit button 
>>> stop the user from changing selected values?? if you plan it ajax 
>>> like, how can u be secure that the user has JS activated and doenst 
>>> deactivate it or ignore parts of it (like you can do with 
>> certain browser plugins) ?
>>>  
>>> basically, a check on a user side (in the browser) is a 
>> toy, but not a 
>>> check - you can help the user to fill out forms and tell 
>> him he shoud 
>>> do this and that, but you cant force him nor be sure that 
>> the data hes 
>>> sending is trustful in any way...
>>>  
>>> Regards
>>>
>>> 
>> --
>> --
>>> *Von:* [EMAIL PROTECTED]
>>> [mailto:[EMAIL PROTECTED] *Im 
>> Auftrag von
>>> *Nino Wael
>>> *Gesendet:* Donnerstag, 28. September 2006 10:54
>>> *An:* wicket-user@lists.sourceforge.net
>>> *Betreff:* [Wicket-user] progress indicator
>>>
>>> Hi
>>>
>>>  
>>>
>>> We have a form where we would like to disable the complete form
>>> onsubmit so that the user cant change any of his 
>> selected values and
>>> we would like to display a progress meter(it does not 
>> have to show
>>> the actual progress just a gif like the AJAX examples). 
>> I have been
>>> thinking of the AJAX examples but I guess that since we somehow
>>> would like to stall the browser it’s not really a good 
>> solution, we
>>> would have to add all for components again just 
>> disabled and then on
>>> the end of the ajax call add them all again enabled?
>>>
>>>  
>>>
>>> Whats your 2 centavos on this?
>>>
>>>
>>>
>> --
>>> --
>>>
>>>
>> --
>>> --- 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=DEV
>>> DEV
>>>
>>>
>>>
>> --
>>> --
>>>
>>> ___
>>> 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] progress indicator

2006-09-28 Thread Korbinian Bachl
depends on the scenario he wants to use it, however, preventing the user to
send a form just wouldnt work

regards

> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] Im Auftrag 
> von Pierre-Yves Saumont
> Gesendet: Donnerstag, 28. September 2006 11:29
> An: wicket-user@lists.sourceforge.net
> Betreff: Re: [Wicket-user] progress indicator
> 
> I guess the question is how to prevent the user to send the 
> form twice while the Ajax request is being processed. Or am I wrong?
> 
> Pierre-Yves
> 
> Korbinian Bachl a écrit :
> > Hi,
> >  
> > i dont understand what you mean? - how can a disabled 
> onSubmit button 
> > stop the user from changing selected values?? if you plan it ajax 
> > like, how can u be secure that the user has JS activated and doenst 
> > deactivate it or ignore parts of it (like you can do with 
> certain browser plugins) ?
> >  
> > basically, a check on a user side (in the browser) is a 
> toy, but not a 
> > check - you can help the user to fill out forms and tell 
> him he shoud 
> > do this and that, but you cant force him nor be sure that 
> the data hes 
> > sending is trustful in any way...
> >  
> > Regards
> > 
> > 
> --
> --
> > *Von:* [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] *Im 
> Auftrag von
> > *Nino Wael
> > *Gesendet:* Donnerstag, 28. September 2006 10:54
> > *An:* wicket-user@lists.sourceforge.net
> > *Betreff:* [Wicket-user] progress indicator
> > 
> > Hi
> > 
> >  
> > 
> > We have a form where we would like to disable the complete form
> > onsubmit so that the user cant change any of his 
> selected values and
> > we would like to display a progress meter(it does not 
> have to show
> > the actual progress just a gif like the AJAX examples). 
> I have been
> > thinking of the AJAX examples but I guess that since we somehow
> > would like to stall the browser it’s not really a good 
> solution, we
> > would have to add all for components again just 
> disabled and then on
> > the end of the ajax call add them all again enabled?
> > 
> >  
> > 
> > Whats your 2 centavos on this?
> > 
> > 
> > 
> --
> > --
> > 
> > 
> --
> > --- 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=DEV
> > DEV
> > 
> > 
> > 
> --
> > --
> > 
> > ___
> > 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] progress indicator

2006-09-28 Thread Pierre-Yves Saumont
I guess the question is how to prevent the user to send the form twice 
while the Ajax request is being processed. Or am I wrong?

Pierre-Yves

Korbinian Bachl a écrit :
> Hi,
>  
> i dont understand what you mean? - how can a disabled onSubmit button 
> stop the user from changing selected values?? if you plan it ajax like, 
> how can u be secure that the user has JS activated and doenst deactivate 
> it or ignore parts of it (like you can do with certain browser plugins) ?
>  
> basically, a check on a user side (in the browser) is a toy, but not a 
> check - you can help the user to fill out forms and tell him he shoud do 
> this and that, but you cant force him nor be sure that the data hes 
> sending is trustful in any way...
>  
> Regards
> 
> 
> *Von:* [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] *Im Auftrag von
> *Nino Wael
> *Gesendet:* Donnerstag, 28. September 2006 10:54
> *An:* wicket-user@lists.sourceforge.net
> *Betreff:* [Wicket-user] progress indicator
> 
> Hi
> 
>  
> 
> We have a form where we would like to disable the complete form
> onsubmit so that the user cant change any of his selected values and
> we would like to display a progress meter(it does not have to show
> the actual progress just a gif like the AJAX examples). I have been
> thinking of the AJAX examples but I guess that since we somehow
> would like to stall the browser it’s not really a good solution, we
> would have to add all for components again just disabled and then on
> the end of the ajax call add them all again enabled?
> 
>  
> 
> Whats your 2 centavos on this?
> 
> 
> 
> 
> -
> 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] progress indicator

2006-09-28 Thread Korbinian Bachl



Hi,
 
i dont understand what you mean? - how can a disabled 
onSubmit button stop the user from changing selected values?? if you plan it 
ajax like, how can u be secure that the user has JS activated and doenst 
deactivate it or ignore parts of it (like you can do with certain browser 
plugins) ?
 
basically, a check on a user side (in the browser) is a 
toy, but not a check - you can help the user to fill out forms and tell him he 
shoud do this and that, but you cant force him nor be sure that the data hes 
sending is trustful in any way...
 
Regards

  
  
  Von: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] Im Auftrag von Nino 
  WaelGesendet: Donnerstag, 28. September 2006 10:54An: 
  wicket-user@lists.sourceforge.netBetreff: [Wicket-user] progress 
  indicator
  
  
  Hi
   
  We have a form where we would like 
  to disable the complete form onsubmit so that the user cant change any of his 
  selected values and we would like to display a progress meter(it does not have 
  to show the actual progress just a gif like the AJAX examples). I have been thinking of the 
  AJAX examples but I guess that since we somehow would like to stall the 
  browser it’s not really a good solution, we would have to add all for 
  components again just disabled and then on the end of the ajax call add them 
  all again enabled?
   
  Whats your 2 centavos on 
  this?
-
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] progress indicator

2006-09-28 Thread Pierre-Yves Saumont
Hi Nino,

You can use the IndicatingAjaxLink, but I do not use it because I had 
developped my own WaitingAjaxLink before I discovered this one ;-)

AFAIK, IndicatingAjaxLink add a progress indicator at the right of the 
corresponding control.

My WaitingAjaxLink as a script before that make a transparent div laying 
over the form visible so that the user can't click on anything. It also 
changes the pointer image to something showing that clicking is 
forbidden. (You migh use an animated gif for this). Of course, another 
script is run after link execution to make the div invisible and restore 
the pointer.

Probably not the best solution since I desgined it knowing really not 
much about wicket, but it does the job.

By the way, disabling everything during Ajax call is making those calls 
synchronous, which is a little strange with Ajax. (Shouldn't it then be 
called Sjax ;-) )

Pierre-Yves

Nino Wael a écrit :
> Hi
> 
>  
> 
> We have a form where we would like to disable the complete form onsubmit 
> so that the user cant change any of his selected values and we would 
> like to display a progress meter(it does not have to show the actual 
> progress just a gif like the AJAX examples). I have been thinking of the 
> AJAX examples but I guess that since we somehow would like to stall the 
> browser it’s not really a good solution, we would have to add all for 
> components again just disabled and then on the end of the ajax call add 
> them all again enabled?
> 
>  
> 
> Whats your 2 centavos on this?
> 
> 
> 
> 
> -
> 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] Optional confirmation when cancelling/leaving a form

2006-09-28 Thread Nino Wael








The wicket phonebook has
an example on howto do this or at least something similar..

 









From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Macrae, Jeremy
Sent: 27. september 2006 15:44
To: wicket-user@lists.sourceforge.net
Subject: [Wicket-user] Optional
confirmation when cancelling/leaving a form



 

Hi,

 

I am trying to implement a mechanism where a
confirmation dialogue is raised if the user leaves a form either via the cancel
button, or selecting to navigate to another page. I only want this dialogue to
appear if the model has changed so that the user knows that they have changed
the data but not saved it. The dialogue will allow the user to select
‘yes’ to navigate to their next page or ‘no’ to stay on
the current page.

Has anyone implemented something similar or have an
idea how it can be done. 

 

The idea I have had is to intercept the onChange event
on all the controls changing the forms model. This would switch the buttons to
versions which contain a SimpleAttributeModifier which adds the _javascript_
confirm dialogue on the onClick event. This all seems very messy so any simpler
solutions would be gratefully received.  

 

Thanks in advance, 

 

Jeremy

 






This email and any files transmitted with it are confidential, proprietary
and intended solely for the individual or entity to whom they are addressed.
If you have received this email in error please delete it immediately.-
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] CheckGroupSelector with CheckBox

2006-09-28 Thread Nino Wael
Why dont you just use the CheckGroup.onchange ?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Decebal Suiu
Sent: 27. september 2006 21:01
To: wicket-user@lists.sourceforge.net
Subject: [Wicket-user] CheckGroupSelector with CheckBox

Can I use CheckGroupSelector with CheckBox (instead
Check) ?
Because I want to be notified when a selection was
changed (CheckBox.onSelectionChanged)?

Thanks,
Decebal

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.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] progress indicator

2006-09-28 Thread Nino Wael








Hi

 

We have a form where we would like to disable the
complete form onsubmit so that the user cant change any of his selected values
and we would like to display a progress meter(it does not have to show the
actual progress just a gif like the AJAX
examples). I have been thinking of the AJAX examples but I guess that since we
somehow would like to stall the browser it’s not really a good solution,
we would have to add all for components again just disabled and then on the end
of the ajax call add them all again enabled?

 

Whats your 2 centavos on this?






-
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