CheckGroup and ListView

2010-04-13 Thread Mohammad Salman
I use a ListView to populate a CheckGroup with Check objects.  It works fine 
and all the check boxes are displayed properly.  But when I try to add a new 
check box to the ones previously added, I keep getting the new one along with 
the previous ones in duplicate.

Here is my code. (I apologize for the format of the code)


protected void addCheckGroup(
ListSelectableValue list)
throws Exception
{
Object object = getDefaultModelObject();
checkGroupSelectableValues = new CheckGroupSelectableValue(selectedValues);
//checkGroupSelectableValues.add(new CheckGroupSelectors(groupSelector));
selectableValues = new ListViewSelectableValue(selections, list)
{

/**
 * 
 */
private static final long serialVersionUID = 1L;

@Override
protected void populateItem(
ListItemSelectableValue item)
{
item.add(new CheckSelectableValue(check, item.getModel()));
item.add(new Label(value, new 
PropertyModelSelectableValue(item.getModel(), value)));
}
};
checkGroupSelectableValues.add(selectableValues);
selectableValues.setOutputMarkupPlaceholderTag(true);
checkGroupSelectableValues.setRenderBodyOnly(false);
checkGroupSelectableValues.setOutputMarkupPlaceholderTag(true);

add(checkGroupSelectableValues);
}





protected void addNewSelectableValue(
AjaxRequestTarget target)
throws Exception
{
ListSelectableValue list;  // new list with the new SelectableValue added 
selectableValues.removeAll();   // making sure to remove previous object
selectableValues.setList(list);   // Adding the new list to the ListView
checkGroupSelectableValues.removeAll();  // making sure to remove previous 
check boxes.
checkGroupSelectableValues.add(selectableValues);

target.addComponent(checkGroupSelectableValues);
 }

I have tried different other methods but  either I get the previous values in 
duplicates or the new value does not show up.

I will appreciate help in solving this issue.  Thanks

 Mohammad

How does IAjaxIndicatorAware really works?

2010-04-13 Thread Ilia Poliakov
My goal is to show a modal div with loading animation gif during AJAX requests. 
The easiest way I found is to use jQuery dialog. But to show the dialog a 
javascript event must be triggerred first. When I use IAjaxIndicatorAware this 
event is obviously onShow, which unfortunately does not exist. That's why I 
have to watch for the style property responsible for visibility of the div 
id=myId used in IAjaxIndicatorAware.getAjaxIndicatorMarkupId() call. 
My problem is that I can't determine what property exactly do I have to watch. 
I tried style.display and style.visibility but no success. The events aren't 
triggered. Please help me!
___
NEU: WEB.DE DSL für 19,99 EUR/mtl. und ohne Mindest-Laufzeit!
http://produkte.web.de/go/02/

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Datatable template Design

2010-04-13 Thread chinedu efoagui
Hi all,

I want to change the default look and feel of datatable and AjavaDefaulttable
Could anyone point me in the right direction on where i can get cool
templates/ desin for the
above mentioned components.
Thanks

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



WICKET-2832

2010-04-13 Thread Kent Tong

Dear all,

Any idea on
https://issues.apache.org/jira/browse/WICKET-2832 ? If it is fine, I
may take some time to create  submit a patch.

--
Kent Tong
Case studies on ITIL, Linux, OpenOffice and Extreme Programming at
http://www2.cpttm.org.mo/cyberlab

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Urgent: Business Opportunity

2010-04-13 Thread Steve Olara
Hello,
 
How are you doing? It has been a long time since we communicated. Am still job 
searching but working as Web application developer with a small company in 
Birmingham but in ASP.Net. Because of this one of recuirement company is called 
me with interest in a contractor that can train and transfer knowledge to a 
company. I believe thats what your company does. I have told them I know you 
may be interested but I needed to confirm with you first before forwarding your 
details to them. Let me know if you are interested so that I can put the two of 
you intouch. you can email or call me on 07535411612
 
The work is in Bristol.
 
Regards

Stephen
 
See below the requirements:
 
My client a major Software House, has a requirement for a contractor to act as 
a Subject Matter Expert on Apache Wicket to version 1.4.x. 
 
They require someone who can deliver a knowledge transfer to existing team 
members, advise on how to improve processes and perform some basic bug- fixes.
 
You will have in-depth previous experience with Apache Wicket to v1.4.x, 
developing Java/ J2EE web applications and delivering knowledge-transfers to 
other developers and/or managers.
 
Good rates available for the right candidate and possibility of 
remote/home-based work.


  

Re: Re: how to make a wicket web editor

2010-04-13 Thread wicketyan
thanks mj! it looks like I have to learn jquery.your second solution is too 
hard for me.




2010-04-13 



wicketyan 



发件人: m j 
发送时间: 2010-04-13  11:56:26 
收件人: users 
抄送: 
主题: Re: how to make a wicket web editor 
 
Well, if you know how to use JQuery you can hard code the javascript and
html into the page, which is pretty easy and obvious as it just goes into
the HTML.
The other option if your familiar at all with Wicket is to put it into a
panel to allow more control and usability.
On Mon, Apr 12, 2010 at 9:59 AM, wicketyan wicket...@gmail.com wrote:

 hi guys,I'm a freshman on js.Could anyone tell me how to user a web editor
 in wicket.I know wicket-stuff already have a project tinymce,But I don't
 like tinymce.There are so many web editor,I want to use my favorated
 editor.I just knew a little about abstractajaxbehavior,But something deep is
 hard for me,for example,the ajax upload using jquery.How to  encapsulate
 ajax upload using wicket? to understand tinymce project is hard for me
 now.so, hope someone can tell me how to use these editor writted by jquery
 or introduce tinymce project's detail about image upload.

  the editor xheditor use this


 $('#elm2').xheditor({upLinkUrl:upload.php?immediate=1,upLinkExt:zip,rar,txt,upImgUrl:upload.php?immediate=1,upImgExt:jpg,jpeg,gif,png,upFlashUrl:upload.php?immediate=1,upFlashExt:swf,upMediaUrl:upload.php?immediate=1,upMediaExt:avi});

 the upload.php?immediate=1 is a interface to save the data,and if I use
 servlet ,that's easy.chang the url to a new url like x.do,writing a
 url-pattern in web.xml. But this is not a wicket way.
 2010-04-12



 wicketyan



Re: Datatable template Design

2010-04-13 Thread wicketyan
template?the datatable's look and feel are concrolled by css


2010-04-13 



wicketyan 



发件人: chinedu efoagui 
发送时间: 2010-04-13  17:38:03 
收件人: users 
抄送: 
主题: Datatable template Design 
 
Hi all,
I want to change the default look and feel of datatable and AjavaDefaulttable
Could anyone point me in the right direction on where i can get cool
templates/ desin for the
above mentioned components.
Thanks
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


Re: How does IAjaxIndicatorAware really works?

2010-04-13 Thread James Carman
There's a veil component in wicketstuff-minis (I believe it's still
there).  I'd look there first.

On Tue, Apr 13, 2010 at 3:47 AM, Ilia Poliakov ipol...@web.de wrote:
 My goal is to show a modal div with loading animation gif during AJAX 
 requests. The easiest way I found is to use jQuery dialog. But to show the 
 dialog a javascript event must be triggerred first. When I use 
 IAjaxIndicatorAware this event is obviously onShow, which unfortunately 
 does not exist. That's why I have to watch for the style property responsible 
 for visibility of the div id=myId used in 
 IAjaxIndicatorAware.getAjaxIndicatorMarkupId() call.
 My problem is that I can't determine what property exactly do I have to 
 watch. I tried style.display and style.visibility but no success. The events 
 aren't triggered. Please help me!
 ___
 NEU: WEB.DE DSL für 19,99 EUR/mtl. und ohne Mindest-Laufzeit!
 http://produkte.web.de/go/02/

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: How to get stable DOM IDs without hacks?

2010-04-13 Thread Pierre Goupil
Craig is absolutely right, of course, but if you want to be aware of what an
id value is and OK to manage its uniqueness, setMarkupId() still applies. A
use case for this is, for instance, a Selenium test: Selenium locates the
HTML elements by ids and you have to know them at page-write time in order
to be able to provide them to it.

Regards,

Pierre


On Tue, Apr 13, 2010 at 6:04 AM, b...@actrix.gen.nz wrote:

 Thanks a lot to you both for your solutions!

 Regards

 Bernard

 On Mon, 12 Apr 2010 23:36:16 -0400, you wrote:

 Like Pierre said, component.setMarkupId(component.getId()) will work, but
 it was discussed just a couple of weeks ago why that's a bad approach.  The
 thread isn't appearing on nabble though, not sure why that is.  Anyway, a
 safer approach (to prevent duplicate ID issues) is to generate your
 javascript calls at the server using the markup ID as a parameter.  It
 sounds like you have a function like
 
 function func() {
  var elem = document.getElementById(someId);
  // do stuff to the element
 }
 
 so just modify to
 
 function func(id) {
  var elem = document.getElementById(id);
  // do stuff to the element
 }
 
 and output a call to that function using something like a
 StringHeaderContributor or implement IHeaderContributor if you need to call
 at page load or use AjaxRequestTarget if in an ajax request.
 
 - Original Message -
 From: Pierre Goupil
 [mailto:goupilpie...@gmail.com]
 To: users@wicket.apache.org
 Sent: Mon, 12
 Apr 2010 18:36:55 -0400
 Subject: Re: How to get stable DOM IDs without
 hacks?
 
 
  Hello,
 
  You can use myComponent.setMarkupId(blah), but then it's up to you to
  ensure the id uniqueness.
 
  Regards,
 
  Pierre
 
 
  On Tue, Apr 13, 2010 at 12:35 AM, b...@actrix.gen.nz wrote:
 
   Hi,
  
   Wicket has its own mind - it changes IDs in HTML forms so JavaScript
   breaks.
  
   Example:
  
   Source:
   input type=button wicket:id=addButton id=addButton
   value=Add/
  
   Generated:
   input type=button id=addButtona value=Add name=addButton/
  
   Please note that Wicket renames the id from addButton to
   addButtona while it does not change the name attribute value.
  
   So we would have to create a Button subclass and:
  
  @Override
  public String getMarkupId(){
  // As an example, use the wicket:id value ...
  return getId();
  }
  
   and in HTML, we have to write a warning as a reminder of this hack:
  !-- Wicket overrides id from wicket:id value --
  
   This is a maintenance problem and a performance problem because the
   additinal classes cost memory and CPU.
  
   Any ideas?
  
   Thanks,
  
   Bernard
  
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
 
 
  --
  Les deux règles universelles du bide :
 
  1) on n'explique pas un bide
 
  2) dans le futur, un bide sera toujours un bide.
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Les deux règles universelles du bide :

1) on n'explique pas un bide

2) dans le futur, un bide sera toujours un bide.


Re: Urgent: Business Opportunity

2010-04-13 Thread Steve Olara
Hello All,

Sorry, about the mess up. This mail was ment for JWeekend but I by mistake sent 
it to all users.

My appologies.

Stephen





From: Steve Olara steveol...@yahoo.co.uk
To: users@wicket.apache.org; jweekend_for...@cabouge.com
Sent: Tue, 13 April, 2010 11:42:18
Subject: Urgent: Business Opportunity

Hello,
 
How are you doing? It has been a long time since we communicated. Am still job 
searching but working as Web application developer with a small company in 
Birmingham but in ASP.Net. Because of this one of recuirement company is called 
me with interest in a contractor that can train and transfer knowledge to a 
company. I believe thats what your company does. I have told them I know you 
may be interested but I needed to confirm with you first before forwarding your 
details to them. Let me know if you are interested so that I can put the two of 
you intouch. you can email or call me on 07535411612
 
The work is in Bristol.
 
Regards

Stephen
 
See below the requirements:
 
My client a major Software House, has a requirement for a contractor to act as 
a Subject Matter Expert on Apache Wicket to version 1.4.x. 
 
They require someone who can deliver a knowledge transfer to existing team 
members, advise on how to improve processes and perform some basic bug- fixes.
 
You will have in-depth previous experience with Apache Wicket to v1.4.x, 
developing Java/ J2EE web applications and delivering knowledge-transfers to 
other developers and/or managers.
 
Good rates available for the right candidate and possibility of 
remote/home-based work.


  

uploadprogressbar

2010-04-13 Thread Josh Kamau
Hi,
I'm trying to use an upload progressbar,
the problem is that it does not appear whent I use an ajaxsubmit button but
appears when i used the form onSubmit method.
what could be the problem.

Regards,


Re: Wicket And GAE

2010-04-13 Thread Josh Kamau
Thanks so much Rich for that information .I kept getting the Deserialization
errors . Am a using Guice and JPA alongside wicket. I have since given up on
using GAE and am shopping for a VPS or  servlet hosting.

Regards.

Josh

On Tue, Apr 13, 2010 at 4:51 AM, Richard Nichols r...@richardnichols.netwrote:

 Biggest problem, and IMO a show stopper, is the Serialization issues.

 Since Wicket serializes session data (pagemap etc) you have to enable
 the GAE session-store to get wicket working correctly on GAE.

 GAE clusters sessions by writing them to the GAE data store to spread
 the session across the cluster - and writes are *slow*.

 Worse though, if you create an incompatible change to a serialized
 page/component/model, when that user returns to your application, GAE
 will quietly fail and the user will get a blank page. Checking the GAE
 error log reveals a deserialization error in the core GAE engine.

 This is because the session reserialization in GAE is handled at the
 GAE/Jetty level and any error in reconsitution of the error currently
 breaks GAE completely. Google has acknowledged this problem, but for
 most frameworks it's not a big deal as you don't store large Objects
 in the HttpSession.

 I had planned to deploy the site I'm currently working on
 http://www.onmydoorstep.com.au/ on GAE but after a few weeks of
 running the prototypes on GAE, I found the performance to be too poor
 and the infrastructure too flakey for a production site.

 NB - It's certainly possible to create high-performance/reliable sites
 using GAE/J, but Wicket is not a suitable framework due to the
 Serialization data store write problem.

 Even if the performance were better and the deserialization issue was
 fixed, you would blow through your data store quota in no-time due to
 the amount of data store in the session.

 If anyone has solutions or further experience with these issues - I'm
 all ears! :)

 cheers,
 Rich

 On 8 April 2010 17:00, Josh Kamau joshnet2...@gmail.com wrote:
  What are the main issues with wicket and Google app engine
 



 --
 Richard Nichols :: http://www.visural.com/ ::
 http://www.richardnichols.net/

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




SV: uploadprogressbar

2010-04-13 Thread Wilhelmsen Tor Iver
 Hi,
 I'm trying to use an upload progressbar,
 the problem is that it does not appear whent I use an ajaxsubmit button
 but
 appears when i used the form onSubmit method.
 what could be the problem.

Possibly it starts out invisible, and in that case you need to call 
progressbar.setOutputPlaceholderTag(true) in order to have something there for 
Ajax to update.

- Tor Iver

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: uploadprogressbar

2010-04-13 Thread Josh Kamau
It says cannot update component whose setRenderBodyOnly is set to true.

On Tue, Apr 13, 2010 at 2:38 PM, Wilhelmsen Tor Iver toriv...@arrive.nowrote:

  Hi,
  I'm trying to use an upload progressbar,
  the problem is that it does not appear whent I use an ajaxsubmit button
  but
  appears when i used the form onSubmit method.
  what could be the problem.

 Possibly it starts out invisible, and in that case you need to call
 progressbar.setOutputPlaceholderTag(true) in order to have something there
 for Ajax to update.

 - Tor Iver

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: How to get stable DOM IDs without hacks?

2010-04-13 Thread McIlwee, Craig
Not quite true.  What I've done is the past is record my tests w/ the IDE then 
export to Java.  Once you've got the JUnit generated for you it's not too hard 
to take a quick pass and convert all of the ID lookups to XPath lookups.  If 
you know for sure when writing the test that the ID really is unique and looks 
something like 'myWicketIda' then you can go with something simple like 
//*[starts-with(@id, 'myWicketId')] (forgive possible syntax error its been a 
while).  If the ID isn't unique or you just want to be safe for the future then 
construct a unique path with your XPath expression.

- Original Message -
From: Pierre Goupil
[mailto:goupilpie...@gmail.com]
To: users@wicket.apache.org
Sent: Tue, 13
Apr 2010 07:14:47 -0400
Subject: Re: How to get stable DOM IDs without
hacks?


 Craig is absolutely right, of course, but if you want to be aware of what an
 id value is and OK to manage its uniqueness, setMarkupId() still applies. A
 use case for this is, for instance, a Selenium test: Selenium locates the
 HTML elements by ids and you have to know them at page-write time in order
 to be able to provide them to it.
 
 Regards,
 
 Pierre
 
 
 On Tue, Apr 13, 2010 at 6:04 AM, b...@actrix.gen.nz wrote:
 
  Thanks a lot to you both for your solutions!
 
  Regards
 
  Bernard
 
  On Mon, 12 Apr 2010 23:36:16 -0400, you wrote:
 
  Like Pierre said, component.setMarkupId(component.getId()) will work, but
  it was discussed just a couple of weeks ago why that's a bad approach. 
 The
  thread isn't appearing on nabble though, not sure why that is.  Anyway, a
  safer approach (to prevent duplicate ID issues) is to generate your
  javascript calls at the server using the markup ID as a parameter.  It
  sounds like you have a function like
  
  function func() {
   var elem = document.getElementById(someId);
   // do stuff to the element
  }
  
  so just modify to
  
  function func(id) {
   var elem = document.getElementById(id);
   // do stuff to the element
  }
  
  and output a call to that function using something like a
  StringHeaderContributor or implement IHeaderContributor if you need to
 call
  at page load or use AjaxRequestTarget if in an ajax request.
  
  - Original Message -
  From: Pierre Goupil
  [mailto:goupilpie...@gmail.com]
  To: users@wicket.apache.org
  Sent: Mon, 12
  Apr 2010 18:36:55 -0400
  Subject: Re: How to get stable DOM IDs without
  hacks?
  
  
   Hello,
  
   You can use myComponent.setMarkupId(blah), but then it's up to you to
   ensure the id uniqueness.
  
   Regards,
  
   Pierre
  
  
   On Tue, Apr 13, 2010 at 12:35 AM, b...@actrix.gen.nz wrote:
  
Hi,
   
Wicket has its own mind - it changes IDs in HTML forms so JavaScript
breaks.
   
Example:
   
Source:
input type=button wicket:id=addButton id=addButton
value=Add/
   
Generated:
input type=button id=addButtona value=Add name=addButton/
   
Please note that Wicket renames the id from addButton to
addButtona while it does not change the name attribute value.
   
So we would have to create a Button subclass and:
   
   @Override
   public String getMarkupId(){
   // As an example, use the wicket:id value ...
   return getId();
   }
   
and in HTML, we have to write a warning as a reminder of this hack:
   !-- Wicket overrides id from wicket:id value --
   
This is a maintenance problem and a performance problem because the
additinal classes cost memory and CPU.
   
Any ideas?
   
Thanks,
   
Bernard
   
   
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
   
   
  
  
   --
   Les deux règles universelles du bide :
  
   1) on n'explique pas un bide
  
   2) dans le futur, un bide sera toujours un bide.
  
  
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 -- 
 Les deux règles universelles du bide :
 
 1) on n'explique pas un bide
 
 2) dans le futur, un bide sera toujours un bide.
 

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Wicket on a major italian bank (Intesa SanPaolo)

2010-04-13 Thread Giovanni
Dear Wicketers,

I am happy to announce that Wicket has been used successfully by me and my team 
to create two web applications in a major italian bank (Intesa SanPaolo).

The two web apps are deployed as follows:
- the biggest one on the bank intranet
- the smallest one on internet

Here you can access the login page of the internet webapp:
http://www.partnermutui.intesasanpaolo.com/grifweb/login

I cannot give you any account, in order to access the application, because the 
data managed by the webapp are customer financial data.

It can be good to add these two webapps to the wiki where there is the list of 
applications using Wicket.

This can be a good example of Wicket used by a big financial enterprise. This 
can be used as a reference, in order to convince other financial companies to 
utilize Wicket.

Best regards,
Giovanni



  

Question on close button of modal windows

2010-04-13 Thread Konstantin Stepanyuk

Hi all,

Thanks for your great product!

I have a question (or feature request) regarding the close button.

There is default closing button ('X') on each Wicket modal window.
It works perfectly, but also it interacts with server.

Is it possible to disable this interaction and make the button 
client-side only?

If not, is it possible to fix this behaviour in Wicket?


Thanks!

--
Best regards,
Konstantin Stepanyuk


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: How does IAjaxIndicatorAware really works?

2010-04-13 Thread ipoliak

veil is not modal. There is an option to write my own modal dialog but it's
the last thing I want to do


James Carman-3 wrote:
 
 There's a veil component in wicketstuff-minis (I believe it's still
 there).  I'd look there first.
 

-- 
View this message in context: 
http://old.nabble.com/How-does-IAjaxIndicatorAware-really-works--tp28226899p28229279.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Job opportunities (Netherlands)?

2010-04-13 Thread Reinout van Schouwen
Hi everyone,

In a few months' time my current contract will end.

I am looking for a job where I can use my current Wicket skills and
perhaps learn some more. :) Preferably located somewhere in the
Rotterdam / Randstad region. If you know of an organisation with
opportunities for a Wicket developer, please let me know.

More about me on: http://nl.linkedin.com/in/reinoutvanschouwen

regards,

-- 
Reinout van Schouwen


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: How does IAjaxIndicatorAware really works?

2010-04-13 Thread James Carman
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/minis-parent/minis/src/main/java/org/wicketstuff/minis/veil/wicket-veil.js

The Javadocs say that it blocks events.  Isn't that all you need?

On Tue, Apr 13, 2010 at 8:22 AM, ipoliak ipol...@web.de wrote:

 veil is not modal. There is an option to write my own modal dialog but it's
 the last thing I want to do


 James Carman-3 wrote:

 There's a veil component in wicketstuff-minis (I believe it's still
 there).  I'd look there first.


 --
 View this message in context: 
 http://old.nabble.com/How-does-IAjaxIndicatorAware-really-works--tp28226899p28229279.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: How does IAjaxIndicatorAware really works?

2010-04-13 Thread James Carman
Sorry, not javadocs, but comments.  Too early yet. :)

On Tue, Apr 13, 2010 at 8:27 AM, James Carman
jcar...@carmanconsulting.com wrote:
 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/minis-parent/minis/src/main/java/org/wicketstuff/minis/veil/wicket-veil.js

 The Javadocs say that it blocks events.  Isn't that all you need?

 On Tue, Apr 13, 2010 at 8:22 AM, ipoliak ipol...@web.de wrote:

 veil is not modal. There is an option to write my own modal dialog but it's
 the last thing I want to do


 James Carman-3 wrote:

 There's a veil component in wicketstuff-minis (I believe it's still
 there).  I'd look there first.


 --
 View this message in context: 
 http://old.nabble.com/How-does-IAjaxIndicatorAware-really-works--tp28226899p28229279.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Job opportunities (Netherlands)?

2010-04-13 Thread Josh Kamau
May be we need a forum for wicket jobs...

On Tue, Apr 13, 2010 at 3:25 PM, Reinout van Schouwen rein...@gmail.comwrote:

 Hi everyone,

 In a few months' time my current contract will end.

 I am looking for a job where I can use my current Wicket skills and
 perhaps learn some more. :) Preferably located somewhere in the
 Rotterdam / Randstad region. If you know of an organisation with
 opportunities for a Wicket developer, please let me know.

 More about me on: http://nl.linkedin.com/in/reinoutvanschouwen

 regards,

 --
 Reinout van Schouwen


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Ajaxfallbackbutton and uploadprogressbar

2010-04-13 Thread Robert Kimotho
Hi,
I'm using an uploadprogressbar in a form that is being submitted using
ajaxfallbackbutton, the following is the code,

final Form images = new Form(images_form);
images.setMaxSize(Bytes.megabytes(7));
final UploadProgressBar progress = new
UploadProgressBar(progress, images);
progress.setOutputMarkupPlaceholderTag(true);
images.add(progress);
add(images);

images.add(new AjaxFallbackButton(change_img, images) {
...
}

this uploads with no errors! but the progress bar doesn't get displayed.
what could be the problem.

Regards.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Datatable template Design

2010-04-13 Thread chinedu efoagui
Ya i know . What i meant was is there some very cool css out there for
the datatable and Ajaxdefeultdatatable. The styles  that come with
wicket by default seems boring.
Could you point me in the right direction on some cool css for the datatable

On 4/13/10, wicketyan wicket...@gmail.com wrote:
 template?the datatable's look and feel are concrolled by css


 2010-04-13



 wicketyan



 发件人: chinedu efoagui
 发送时间: 2010-04-13  17:38:03
 收件人: users
 抄送:
 主题: Datatable template Design

 Hi all,
 I want to change the default look and feel of datatable and
 AjavaDefaulttable
 Could anyone point me in the right direction on where i can get cool
 templates/ desin for the
 above mentioned components.
 Thanks
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket And GAE

2010-04-13 Thread jbrookover

I'm pretty committed to a project using Wicket on GAE.  I haven't encountered
any deserialization issues that people have been bringing up, which makes me
worry a bit since I've encountered (and dealt with) a slew of other issues
:)

Regarding the HttpSessionStore, I discovered a bad coding practice of mine
when every single session entry in the datastore was 500KB+.  Once I
resolved that issue, using more transient fields and detachable models, I'm
relatively happy with the results.  GAE, by default, uses the MemCache to
implement this feature so it should be relatively speedy.  It's no different
from any other application storing data in the
javax.servlet.http.HttpSession.

My only lingering problem (another thread here) is that GAE can trash your
application instance at any point.  If you are relying on SharedResources,
those can go away - even in the middle of an active page load, potentially
breaking some links.  Currently looking for a way around that :)

Jake


Richard Nichols-3 wrote:
 
 Biggest problem, and IMO a show stopper, is the Serialization issues.
 
 Since Wicket serializes session data (pagemap etc) you have to enable
 the GAE session-store to get wicket working correctly on GAE.
 
 GAE clusters sessions by writing them to the GAE data store to spread
 the session across the cluster - and writes are *slow*.
 
 Worse though, if you create an incompatible change to a serialized
 page/component/model, when that user returns to your application, GAE
 will quietly fail and the user will get a blank page. Checking the GAE
 error log reveals a deserialization error in the core GAE engine.
 
 This is because the session reserialization in GAE is handled at the
 GAE/Jetty level and any error in reconsitution of the error currently
 breaks GAE completely. Google has acknowledged this problem, but for
 most frameworks it's not a big deal as you don't store large Objects
 in the HttpSession.
 
 I had planned to deploy the site I'm currently working on
 http://www.onmydoorstep.com.au/ on GAE but after a few weeks of
 running the prototypes on GAE, I found the performance to be too poor
 and the infrastructure too flakey for a production site.
 
 NB - It's certainly possible to create high-performance/reliable sites
 using GAE/J, but Wicket is not a suitable framework due to the
 Serialization data store write problem.
 
 Even if the performance were better and the deserialization issue was
 fixed, you would blow through your data store quota in no-time due to
 the amount of data store in the session.
 
 If anyone has solutions or further experience with these issues - I'm
 all ears! :)
 
 cheers,
 Rich
 
 On 8 April 2010 17:00, Josh Kamau joshnet2...@gmail.com wrote:
 What are the main issues with wicket and Google app engine

 
 
 
 -- 
 Richard Nichols :: http://www.visural.com/ ::
 http://www.richardnichols.net/
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

-- 
View this message in context: 
http://old.nabble.com/Wicket-And-GAE-tp28174925p28229863.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Re: how to make a wicket web editor

2010-04-13 Thread James Carman
Have you tried using visrual wicket's rich text editor?  There's an
example here:

http://visural-wicket-examples.appspot.com/app/

I've never used it, but it looks pretty cool (so does the other stuff).

On Tue, Apr 13, 2010 at 6:49 AM, wicketyan wicket...@gmail.com wrote:
 thanks mj! it looks like I have to learn jquery.your second solution is too 
 hard for me.




 2010-04-13



 wicketyan



 发件人: m j
 发送时间: 2010-04-13  11:56:26
 收件人: users
 抄送:
 主题: Re: how to make a wicket web editor

 Well, if you know how to use JQuery you can hard code the javascript and
 html into the page, which is pretty easy and obvious as it just goes into
 the HTML.
 The other option if your familiar at all with Wicket is to put it into a
 panel to allow more control and usability.
 On Mon, Apr 12, 2010 at 9:59 AM, wicketyan wicket...@gmail.com wrote:

 hi guys,I'm a freshman on js.Could anyone tell me how to user a web editor
 in wicket.I know wicket-stuff already have a project tinymce,But I don't
 like tinymce.There are so many web editor,I want to use my favorated
 editor.I just knew a little about abstractajaxbehavior,But something deep is
 hard for me,for example,the ajax upload using jquery.How to  encapsulate
 ajax upload using wicket? to understand tinymce project is hard for me
 now.so, hope someone can tell me how to use these editor writted by jquery
 or introduce tinymce project's detail about image upload.

  the editor xheditor use this


 $('#elm2').xheditor({upLinkUrl:upload.php?immediate=1,upLinkExt:zip,rar,txt,upImgUrl:upload.php?immediate=1,upImgExt:jpg,jpeg,gif,png,upFlashUrl:upload.php?immediate=1,upFlashExt:swf,upMediaUrl:upload.php?immediate=1,upMediaExt:avi});

 the upload.php?immediate=1 is a interface to save the data,and if I use
 servlet ,that's easy.chang the url to a new url like x.do,writing a
 url-pattern in web.xml. But this is not a wicket way.
 2010-04-12



 wicketyan



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Setting TreeState in new page

2010-04-13 Thread AleXeL

Hi Seven Corners,

I'm facing the same problem but I still don't find how to fix it. 
Let me explain how I tried to handle it. 
1 . I store a TreeNode in a variable 'tnProjet' when I click on the leaf. 
2 . I call my class in a new page.
3 . Thus, the TreeState should be initialized with the expanded path to the
leaf by overriding newTreeState(). 

But the tree is still collapsed.
Here is part of my code:

@Override
protected ITreeState newTreeState(  )
{
ITreeState treeState = new DefaultTreeState(  );
this.setRootLess( true );

if ( tnProjet != null )
{
DefaultMutableTreeNode treeNode = (DefaultMutableTreeNode) tnProjet;
treeState.selectNode( treeNode, true );
 
TreeNode[] nodes = treeNode.getPath(  );
 
for ( int i = 0; i  ( nodes.length - 1 ); i++ )
{
treeState.expandNode( nodes[i] );
}
}

this.updateTree(  );
return treeState;
}


It would be grateful if you could give me some tips. 
I tried to find a solution for a week and I'm still at then same level. 

Best Regards,
AleXeL

NB: When I replace the content of my condition by treeState.expandAll(),
the tree is entirely well-expanded after I click on the leaf.


Seven Corners wrote:
 
 Never mind, I figured it out.  Caching the TreeState didn't get me there
 because it didn't contain the information I needed.  I had to do my own
 bookkeeping, but overriding LinkTree.newTreeState() was ultimately where
 things got set aright.
 

-- 
View this message in context: 
http://old.nabble.com/Setting-TreeState-in-new-page-tp21996538p28230641.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: AW: Fading Content Updates Into a Ajax Refreshing ListView

2010-04-13 Thread DaHe

That was very very hepfull !!! Thanks!

=)

igor.vaynberg wrote:
 
 see here
 
 http://wicketinaction.com/2008/10/repainting-only-newly-created-repeater-items-via-ajax/
 
 this will get you most of the way there, then just add some js effects
 
 -igor
 
 On Mon, Apr 12, 2010 at 3:44 PM, DaHe danielavalero...@gmail.com wrote:

 Hello!!

 I tried this suggestion on  my app.

 I have a DataView made with AjaxPaginNavigator, onClick I call a
 JavaScript,
 this toggle a HighLight the row. When I pass to next page, my JS does not
 work.

 I wrote this code:

 AjaxPagingNavigator pager = new AjaxPagingNavigator(navigator,
 dataView) {
 �...@override
 protected void onAjaxEvent(AjaxRequestTarget target) {
 target.addComponent(dataContainer);
  target.appendJavascript(dataContainer.getMarkupId() +
 /js/jquery-1.3.2.min.js);
  target.appendJavascript(dataContainer.getMarkupId() +
 /js/ToggleHighLigh.js);
 }
 };

 But it does not work.

 Do am I understanding wrong your suggestion?


 Stefan Lindner wrote:

 Yes, this can be done with javascript. First of all you must decide
 which
 javascript library you want to use (scriptaculous/jQuery/etc.)
 Then you need to load it in your head section (use some
 HeaderContributor class for this).
 Now when you repaint yout list items with

       target.addComponent(item);

 you may alo append some custom javascript code like this

       target.prependJavascript(item.getMarkupId() +
 ...fadeout/hide/etc.);
       target.addComponent(item);
       target.appendJavascript(item.getMarkupId() +
 ...fadein/show/etc.);

 Perhaps you need to set the items visibility to (style=display:none)
 and
 then in the appendHJavascript delete the display:none.

 Stefan

 -Ursprüngliche Nachricht-
 Von: Ayodeji Aladejebi [mailto:aladej...@gmail.com]
 Gesendet: Mittwoch, 31. März 2010 00:32
 An: users@wicket.apache.org
 Betreff: Fading Content Updates Into a Ajax Refreshing ListView

 I am trying to auto refresh a list but also allow the new list updates
 to
 fade in one-by-one similar to these: http://foursquare.com/

 I guess its a javascript affair but can I get some assistance as to the
 approach to use in wicket

 thanks

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




 --
 View this message in context:
 http://old.nabble.com/Fading-Content-Updates-Into-a-Ajax-Refreshing-ListView-tp28089381p28219197.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

-- 
View this message in context: 
http://old.nabble.com/Fading-Content-Updates-Into-a-Ajax-Refreshing-ListView-tp28089381p28230764.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket And GAE

2010-04-13 Thread marc fawzi
Hey guys

I'm new to Wicket

I've made two discoveries with respect to GAE and Wicket:

1. I figured out how to keep my GAE app instance hot at all times (well, at
least for 99.9% of the time.. the GAE still produces transient errors
every now and then) -- It's really simple: just have a script that launches
a new task every 12 seconds and set the task url to a url that is routed
to/handled by the script itself then when the script runs again (in this
way) it will do two things: 1) urlfetch a url that is handled by the app you
wish to keep hot (which is on another *.appspot.com url) and 2) starts
schedule another task in 12 seconds. Infinite task loop. Google does kill
the task loop eventually so then you need a cron job to run every 1 hour to
restart the script :) and that's it.

2. Someone (srfarley) is working on a version of Wicket for GAE:

This project provides a template to help you get started with building a
Wicket http://wicket.apache.org/ application for Google App
Enginehttp://code.google.com/appengine/.
It is a re-implementation of the Guestbook application described by the App
Engine tutorial http://code.google.com/appengine/docs/java/gettingstarted/.
Whereas the tutorial uses raw servlets and JSP to demonstrate a some of the
basic features of App Engine, this project uses Wicket as the web framework.


In addition, the project defines classes for handing persistence using
JDOhttp://code.google.com/appengine/docs/java/datastore/,
and uses Google Guice http://code.google.com/p/google-guice/ to inject
instances of these classes into the Wicket pages for interacting with the
App Engine datastore.

For unit testing, the project contains base classes that set up the App
Engine development environment so you can write tests against the full
stack, including those that interact directly with the Wicket pages. The
testing framework is TestNG http://testng.org/doc/index.html, but it is
possible to convert them to JUnit tests with some work.

http://code.google.com/p/wicket-gae-template/

Given that I've never used Wicket (I looked at a couple examples so far) I'm
hoping that we can help each other as we attempt to get good outcome for our
Wicket+GAE implementations  To make things more challenging, I'm using
Scala, which I've never run on GAE before and I'm also new to it :)

Is there an IRC channel for Wicket users or is this the best place for
newbies like me to post questions and get help?

Thanks,

Marc

On Tue, Apr 13, 2010 at 6:20 AM, jbrookover jbrooko...@cast.org wrote:


 I'm pretty committed to a project using Wicket on GAE.  I haven't
 encountered
 any deserialization issues that people have been bringing up, which makes
 me
 worry a bit since I've encountered (and dealt with) a slew of other issues
 :)

 Regarding the HttpSessionStore, I discovered a bad coding practice of mine
 when every single session entry in the datastore was 500KB+.  Once I
 resolved that issue, using more transient fields and detachable models, I'm
 relatively happy with the results.  GAE, by default, uses the MemCache to
 implement this feature so it should be relatively speedy.  It's no
 different
 from any other application storing data in the
 javax.servlet.http.HttpSession.

 My only lingering problem (another thread here) is that GAE can trash your
 application instance at any point.  If you are relying on SharedResources,
 those can go away - even in the middle of an active page load, potentially
 breaking some links.  Currently looking for a way around that :)

 Jake


 Richard Nichols-3 wrote:
 
  Biggest problem, and IMO a show stopper, is the Serialization issues.
 
  Since Wicket serializes session data (pagemap etc) you have to enable
  the GAE session-store to get wicket working correctly on GAE.
 
  GAE clusters sessions by writing them to the GAE data store to spread
  the session across the cluster - and writes are *slow*.
 
  Worse though, if you create an incompatible change to a serialized
  page/component/model, when that user returns to your application, GAE
  will quietly fail and the user will get a blank page. Checking the GAE
  error log reveals a deserialization error in the core GAE engine.
 
  This is because the session reserialization in GAE is handled at the
  GAE/Jetty level and any error in reconsitution of the error currently
  breaks GAE completely. Google has acknowledged this problem, but for
  most frameworks it's not a big deal as you don't store large Objects
  in the HttpSession.
 
  I had planned to deploy the site I'm currently working on
  http://www.onmydoorstep.com.au/ on GAE but after a few weeks of
  running the prototypes on GAE, I found the performance to be too poor
  and the infrastructure too flakey for a production site.
 
  NB - It's certainly possible to create high-performance/reliable sites
  using GAE/J, but Wicket is not a suitable framework due to the
  Serialization data store write problem.
 
  Even if the performance were better and the 

Beginner localization question

2010-04-13 Thread Alexandros Karypidis

Hi,

How can I have Wicket resolve a key to some localized messages with my 
own code at runtime? The reason I ask is because I have this use case:


1) I use Java enumerations to strongly-type a RadioChoice control:
public enum RadioOptions { ONE, TWO, THREE }

2) I strongly-type a RadioChoice control:
public SomePage() {
...
RadioOptions radio = RadioOptions.ONE;
RadioChoiceRadioOptions r = new RadioChoiceRadioOptions(...,
Arrays.asList(RadioOptions.values()));
...

3) Define localized messages in the MyWicketApplication_xx.xml file:
entry key=ONEFirst option text/entry

4) Overload toString() as follows:
public enum RadioOptions {
ONE, TWO, THREE;
public String toString() {
String key = this.name(); // ONE, TWO or THREE
return .; // how do I ask Wicket to search for 
the localized message?

}
}


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket on a major italian bank (Intesa SanPaolo)

2010-04-13 Thread nino martinez wael
I wanted to send you the direct link, but apparently the wiki are
undergoing maintenance. The link to the wiki are this:

http://cwiki.apache.org/WICKET

2010/4/13 Giovanni pino_o...@yahoo.com:
 Dear Wicketers,

 I am happy to announce that Wicket has been used successfully by me and my 
 team to create two web applications in a major italian bank (Intesa SanPaolo).

 The two web apps are deployed as follows:
 - the biggest one on the bank intranet
 - the smallest one on internet

 Here you can access the login page of the internet webapp:
 http://www.partnermutui.intesasanpaolo.com/grifweb/login

 I cannot give you any account, in order to access the application, because 
 the data managed by the webapp are customer financial data.

 It can be good to add these two webapps to the wiki where there is the list 
 of applications using Wicket.

 This can be a good example of Wicket used by a big financial enterprise. This 
 can be used as a reference, in order to convince other financial companies to 
 utilize Wicket.

 Best regards,
 Giovanni





-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Job opportunities (Netherlands)?

2010-04-13 Thread Cemal Bayramoglu
Have you checked the power cable is plugged in, Sir?

I like to see this forum as much much more than just an improbably
user-friendly, efficient and free 365*7*24 technical support service
that you could not buy for love nor money anywhere else I've been.

Some people do appreciate having a single place where they can find
out about and stay on top of all things related to Wicket; ideas,
products, tips, problems, solutions, requests, gripes, links to
articles, controversial RFEs that want to pollute the core with 100%
inessential paraphernalia, real world experiences, jobs, events,
services, useful integrations ... the more (with at least a modicum of
substance/interest for at least a few others here) the merrier.

Regards - Cemal
jWeekend
OO  Java Technologies, Wicket
Consulting, Development, Training
http://jWeekend.com


On 13 April 2010 13:35, Josh Kamau joshnet2...@gmail.com wrote:
 May be we need a forum for wicket jobs...

 On Tue, Apr 13, 2010 at 3:25 PM, Reinout van Schouwen 
 rein...@gmail.comwrote:

 Hi everyone,

 In a few months' time my current contract will end.

 I am looking for a job where I can use my current Wicket skills and
 perhaps learn some more. :) Preferably located somewhere in the
 Rotterdam / Randstad region. If you know of an organisation with
 opportunities for a Wicket developer, please let me know.

 More about me on: http://nl.linkedin.com/in/reinoutvanschouwen

 regards,

 --
 Reinout van Schouwen


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: WICKET-2832

2010-04-13 Thread Igor Vaynberg
what about https://issues.apache.org/jira/browse/WICKET-1830 ?

-igor

On Tue, Apr 13, 2010 at 3:35 AM, Kent Tong k...@cpttm.org.mo wrote:
 Dear all,

 Any idea on
 https://issues.apache.org/jira/browse/WICKET-2832 ? If it is fine, I
 may take some time to create  submit a patch.

 --
 Kent Tong
 Case studies on ITIL, Linux, OpenOffice and Extreme Programming at
 http://www2.cpttm.org.mo/cyberlab

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Beginner localization question

2010-04-13 Thread Igor Vaynberg
if you have a component/page you can use component.getstring() if not
you can get the localizer from application and use that, afaik
application.get().getresourcesettings().getlocalizer()

-igor

On Tue, Apr 13, 2010 at 9:33 AM, Alexandros Karypidis akary...@yahoo.gr wrote:
 Hi,

 How can I have Wicket resolve a key to some localized messages with my own
 code at runtime? The reason I ask is because I have this use case:

 1) I use Java enumerations to strongly-type a RadioChoice control:
 public enum RadioOptions { ONE, TWO, THREE }

 2) I strongly-type a RadioChoice control:
    public SomePage() {
        ...
        RadioOptions radio = RadioOptions.ONE;
        RadioChoiceRadioOptions r = new RadioChoiceRadioOptions(...,
                Arrays.asList(RadioOptions.values()));
        ...

 3) Define localized messages in the MyWicketApplication_xx.xml file:
 entry key=ONEFirst option text/entry

 4) Overload toString() as follows:
 public enum RadioOptions {
    ONE, TWO, THREE;
    public String toString() {
        String key = this.name(); // ONE, TWO or THREE
        return .; // how do I ask Wicket to search for the
 localized message?
    }
 }


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Google Charts integration

2010-04-13 Thread Major Péter
It's available here:
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/googlecharts-parent/

Regards,
Peter

2010-04-12 22:28 keltezéssel, Major Péter írta:
 I've just started to move the application into wicketstuff-core. I will
 check also, whether the API has enhanced in the meantime. Stay tuned..
 
 Regards,
 Peter
 
 2010-04-12 16:01 keltezéssel, nino martinez wael írta:
 So someone should bump the version.. Anyone knows if the project are
 still active?.. I might be headed down the googlecharts road and if I
 go there. I'll make sure the project works on wicket 1.4.7 and update
 the project ..

 2010/4/12 Major Péter majorpe...@sch.bme.hu:
 Hi,

 I've just checked out the project from
 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3.x/wicket-googlecharts/
 and after changing the wicket version in the pom, it still compiles, so
 it worth a try. :)

 Regards,
 Peter

 2010-04-12 15:00 keltezéssel, Alexander Monakhov írta:
 Hi, guys.

 Is there currently any integration of google charts with wicket?
 I've found some articles like that
 http://www.codecommit.com/blog/java/a-wicket-api-for-google-charts. But 
 they
 are really old.
 So, I'm curious whether there is any active integration with google charts.

 Best regards, Alexander.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: AjaxFormValidatingBehavior and caret (cursor) position

2010-04-13 Thread lampholder

Hi,

I was just wondering if anyone ever found a solution to this infuriating
problem?  I've been scratching my head for days now and haven't been able to
find a work-around for the caret repositioning issue.

Cheers,

Tom


Thomas Jäckle wrote:
 
 Hi everyone.
 
 I found this on the mailing list:
 http://www.nabble.com/Re%3A-AjaxFormValidatingBehavior-and-focus-p9178324.html
 
 And exactly this is my problem now.
 I registered an onkeyup event on a textfield to validate it after each
 keypress.
 
 In a RequiredTextField following happens:
 I want to type Hello. Once i release the H, the TextField is valid and
 the caret goes to the first position in the Textfield. Then I type ello
 and now I have elloH in the Textfield.
 
 Is it planned to implement to keep the caret position as mentioned in the
 other Message?
 Does someone know a workaround to solve this?
 
 
 Thomas
 

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


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: WICKET-2832

2010-04-13 Thread Kent Tong


igor.vaynberg wrote:
 
 what about https://issues.apache.org/jira/browse/WICKET-1830 ?
 

Didn't notice that. wicket:path would work. However, I really think my
solution is better because
you don't need to specify the full path (which may change easily). In most
case, one only needs
to specify wicket=//my-component-id.


-
--
Kent Tong
Better way to unit test Wicket pages (http://wicketpagetest.sourceforge.net)
Books on CXF, Axis2, Wicket, JSF (http://agileskills2.org)
-- 
View this message in context: 
http://old.nabble.com/WICKET-2832-tp28228278p28237092.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



PackageResource that isn't tied to session; returns 302?

2010-04-13 Thread Nikita Tovstoles
Given this page:
public class Page2 extends WebPage {

public Page2() {

 add(new Image(plainImage, image.png));
 PackageResource packageResource = PackageResource.get(Page2.class,
image.png);
add(new Image(pkgImage, packageResource));
}
}

plainImage produces an img that returns a 304 on page reload; and is not
tied to a session.

pkgImage, however, renders as a 'wicket:interface' url that actually
re-loads an image (200) on page reload, and is tied to a session (throws
PageExpiredException) when session expires or sessionid is removed from img
src.

Is there way to get a (Package)Resource that is not session-specific? I see
a SharedResources but am unsure how to access it. We need to new Image in
several places whose source paths are computed at render time from page
params, yet are always relative to the same component class (support of
multiple LF).

I recognize that we could use a ContextImage instead, but I am curious to
find an approach that would also work for JS/CSS.

thanks
-nikita


Re: automatic palette sorting

2010-04-13 Thread robert.mcguinness


sorry for the late response.  in the middle of huge Wicket rewrite of old
JSP app.  Below is the example usage we use.  I doesn't sort onload since
that is done in the backend. Tested this in IE 8/7/6.  



Wicket.Palette.sortOptions=function(box) {
var data = new Array();
for(i = 0; i  box.options.length; i++) {   
data[i] = new Array();
data[i][0] = box.options[i].text;
data[i][1] = box.options[i].value; 
}

data.sort(function(a, b) {
var aa = a[0].toLowerCase();
var bb = b[0].toLowerCase();
return ((aa  bb) ? -1 : ((aa  bb) ? 1 : 0));  
}); 

for(i = 0; i  data.length; i++) {  
var op = new Option(data[i][0], data[i][1]);
box.options[i] = null;
box.options[i] = op;
}   

}

Wicket.Palette.remove=function(choicesId, selectionId, recorderId) {
var choices=Wicket.Palette.$(choicesId);
var selection=Wicket.Palette.$(selectionId);
if (Wicket.Palette.moveHelper(selection, choices)) {
var recorder=Wicket.Palette.$(recorderId);
Wicket.Palette.updateRecorder(selection, recorder); 

$(choices).change();
}
Wicket.Palette.sortOptions(choices);
}

Wicket.Palette.updateRecorder=function(selection, recorder) {   
recorder.value=;  
Wicket.Palette.sortOptions(selection);
for (var i=0;i
-- 
View this message in context: 
http://old.nabble.com/automatic-palette-sorting-tp28096974p28238166.html
Sent from the Wicket - User mailing list archive at Nabble.com.


STump

2010-04-13 Thread Stefan Lindner
I was not able to build stump from http://sourceforge.net/apps/trac/stump 
(stump is new for wicket bench).
Can anybody help me? Maven says:

[INFO] Failed to resolve artifact.

Couldn't find a version in [1.0.0-v20070606] to match range 
[1.0.0,2.0.0)
  org.eclipse.equinox:app:jar:null

Also it is impossible to install Stump from 
https://stump.svn.sourceforge.net/svnroot/stump/update/

What is the state of this plugin?

Thanks

Stefan

-Ursprüngliche Nachricht-
Von: Kent Tong [mailto:k...@cpttm.org.mo] 
Gesendet: Mittwoch, 14. April 2010 02:16
An: users@wicket.apache.org
Betreff: Re: WICKET-2832



igor.vaynberg wrote:
 
 what about https://issues.apache.org/jira/browse/WICKET-1830 ?
 

Didn't notice that. wicket:path would work. However, I really think my
solution is better because
you don't need to specify the full path (which may change easily). In most
case, one only needs
to specify wicket=//my-component-id.


-
--
Kent Tong
Better way to unit test Wicket pages (http://wicketpagetest.sourceforge.net)
Books on CXF, Axis2, Wicket, JSF (http://agileskills2.org)
-- 
View this message in context: 
http://old.nabble.com/WICKET-2832-tp28228278p28237092.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org