Re: Very strange exception

2010-02-03 Thread Wilhelmsen Tor Iver
 WicketMessage: The component(s) below failed to render. A common
 problem is that you have added a component in code but forgot to
 reference it in the markup (thus the component will never be rendered).

When you do

add(new Label(label, ...

in a Page, you also need something like

span wicket:id=labelThis gets replaced/span

in your HTML template.

- Tor Iver

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



RE: Very strange exception

2010-02-03 Thread Martin Asenov
Hi, Wilhelmsen!

Yes, this is pretty clear. I've got enough experience in order to know this :) 
Maybe the problem is the wicket:id, which I've named 'label'. Maybe this is 
problem, since I heard certain 'ids' cause problems, like buttons with 
id=submit, links with id=link and so on.

Thank you, anyway!

Regards, Martin

-Original Message-
From: Wilhelmsen Tor Iver [mailto:toriv...@arrive.no] 
Sent: Wednesday, February 03, 2010 10:05 AM
To: users@wicket.apache.org
Subject: Re: Very strange exception

 WicketMessage: The component(s) below failed to render. A common
 problem is that you have added a component in code but forgot to
 reference it in the markup (thus the component will never be rendered).

When you do

add(new Label(label, ...

in a Page, you also need something like

span wicket:id=labelThis gets replaced/span

in your HTML template.

- Tor Iver

-
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: component .... not found on page

2010-02-03 Thread Thomas Kappler

On 02/02/10 23:35, Eugene Malan wrote:

Of course the quickstart worked just fine, so I had to add the layers of
junk back on to find out where it was going wrong.

Eventually the last thing I added back on was the cause a broken
link in the head section.
link rel=shortcut icon href= type=images/x-icon /


Exactly the problem I had described a week or so ago :-) Empty image 
sources cause page reloads.


--
---
  Thomas Kapplerthomas.kapp...@isb-sib.ch
  Swiss Institute of Bioinformatics Tel: +41 22 379 51 89
  CMU, rue Michel Servet 1
  1211 Geneve 4
  Switzerland  http://www.uniprot.org
---

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



Re: [announce] better look modern css for wicket examples contest

2010-02-03 Thread Ernesto Reinaldo Barreiro
Hi Nino,

I was thinking more of a publishing model where people develop a plugin
with their extensions and they submit it for approval... They do not need
to have commit rights just provide a jar file implementing some extension
points

Probably you are right and this would make more sense for wicketstuff...

Cheers,

Ernesto

On Wed, Feb 3, 2010 at 7:44 AM, nino martinez wael 
nino.martinez.w...@gmail.com wrote:

 Would be nice, but is certainly not for this contest. It's only a design
 contest.

 Main problem are that the Wicket examples live in Apache context and you
 have to be a Apache comitter to add to them. Where as many of the
 components
 are on sourceforge ( wicketstuff ). What could be done on wicketstuff core
 was to have a common example like wicket examples.

 regards Nino

 2010/2/2 Ernesto Reinaldo Barreiro reier...@gmail.com

  I do not know if this fit into the contest but I think it would be nice
 if
  someone could come-up with an extensible architecture for  the
 examples
  where components from third party projects could be included... and some
  guidelines for building these extensions... So that we could transform
  the
  examples into Wicket component repository??
 
  Best,
 
  Ernesto
 
  On Tue, Feb 2, 2010 at 7:26 PM, nino martinez wael 
  nino.martinez.w...@gmail.com wrote:
 
   Hi
  
   Someone mentioned that we could have a better look  feel for wicket,
  since
   there are no designers in the core team. I proposed a contest, to make
  the
   coolest slickest css for wicket. So please feel free to apply.
  
  
   Requirements:
  
   your css should be compatible with the basic browsers, Firefox , IE ,
   Safari
   etc. And retain heavy use of embedded js. And it should be a drop on,
  using
   existing id's  hierachy for design.
  
   Practical info:
  
   The contest ends in 2 months April 2nd.
  
   Get the wicket examples here:
   http://svn.apache.org/repos/asf/wicket/trunk/wicket-examples/
  
   If you need it you can put your css in svn at wicketstuff, write to
 this
   list for details on howto get commit rights, you should add your css to
   sandbox and sf user name (
   https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/sandbox/
 ).
  
   Yes as with all contest there is a prize, you can win the wicket t-shir
   along with the honor if your css are the winner. This
   http://www.cafepress.com/apachewicket.317298148 or this
   http://www.cafepress.com/apachewicket.317298083 depending on your age
 :)
  
   Just reply to this thread to enter the contest.
  
   Regards Nino on behalf of the Wicket People
  
 



Re: Using a DataTable inside a Modal window

2010-02-03 Thread Ernesto Reinaldo Barreiro
Why not use an AJAX enabled version of the table, which does not triggers
page reloads... e.g. AjaxFallbackDefaultDataTable

Ernesto

On Tue, Feb 2, 2010 at 4:24 PM, Dennis Buttery dbutt...@bplglobal.netwrote:

 Hi all,

   I'm trying to get a DataTable to work inside of a Modal window ...

   I have a DefaultDataTable and is added to a panel which is used as the
 content of a modal window.  Everything renders properly when the modal is
 opened.  The problem starts when the user tries to navigate to another page
 of the table.  At that point they get the Do you want to navigate away...
 dialog and if they select 'ok' then the modal closes ...   Reopening the
 modal does put them on the correct page but it is not usable to have the
 modal close each time navigation to another page is requested.

   So...   What is the trick to getting the modal to stay open and allow the
 user to navigate through the pages of the DataTable?


 Thanks!




RE: [announce] better look modern css for wicket examples contest

2010-02-03 Thread Jing Ge (Besitec IT DEHAM)
Hi Nino, Hi Wicket Team,

This is really really greet idea! As I said, Wicket is great, but now I
found the wicket team is even greater! I feel happy that we choose the
Wicket. Thank you guys very much! Now we are waiting for a great css,
which wicket deserves..

Regards!
Jing


-Original Message-
From: nino martinez wael [mailto:nino.martinez.w...@gmail.com] 
Sent: Dienstag, 2. Februar 2010 19:27
To: users@wicket.apache.org
Subject: [announce] better look  modern css for wicket examples contest

Hi

Someone mentioned that we could have a better look  feel for wicket,
since
there are no designers in the core team. I proposed a contest, to make
the
coolest slickest css for wicket. So please feel free to apply.


Requirements:

your css should be compatible with the basic browsers, Firefox , IE ,
Safari
etc. And retain heavy use of embedded js. And it should be a drop on,
using
existing id's  hierachy for design.

Practical info:

The contest ends in 2 months April 2nd.

Get the wicket examples here:
http://svn.apache.org/repos/asf/wicket/trunk/wicket-examples/

If you need it you can put your css in svn at wicketstuff, write to this
list for details on howto get commit rights, you should add your css to
sandbox and sf user name (
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/sandbox/
).

Yes as with all contest there is a prize, you can win the wicket t-shir
along with the honor if your css are the winner. This
http://www.cafepress.com/apachewicket.317298148 or this
http://www.cafepress.com/apachewicket.317298083 depending on your age :)

Just reply to this thread to enter the contest.

Regards Nino on behalf of the Wicket People


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



Re: Disable selected choices on palette load

2010-02-03 Thread dhirajs

Hi,

I want to disable all preselected enteries in 'selected' choice box(so that
user can't move those choices to available list). Please suggest some
solution.

I have tried one solution, by overriding inBeforeRender method and in that
method i've get 'selectedChoicesComponent' and disable all childs, but i am
getting null for selectedChoicesComponent.

@Override
protected void onBeforeRender() {
super.onBeforeRender();
SelectionT selectedChoicesComponent =
(SelectionT)getSelectionComponent();

//Just to check, i have disabled 1st child,if it works we can easliy
disable other childs
selectedChoicesComponent.get(0).setEnabled(false);
  
}
getSelectionComponent() - returns null.


Thanks,
Dhiraj

Martin Dietze wrote:
 
 On Fri, December 25, 2009, Martin Dietze wrote:
 
 I desperately need to find out which entries in a Palette's two
 Choices components are selected, e.g. to allow additional
 operations on them using Ajax.
 
 I solved this issue. First of all: currently the AbstractOptions
 class used by Palette does not support accessing this
 information via Ajax because of these lines:
 
 |  // A piece of javascript to avoid serializing the options during AJAX
 |  // serialization.
 |  getResponse().write(
 |  JavascriptUtils.SCRIPT_OPEN_TAG +
 |  if (typeof(Wicket) != \undefined\ 
 typeof(Wicket.Form) != \undefined\) +
 |  Wicket.Form.excludeFromAjaxSerialization. +
 getMarkupId() + ='true'; +
 |  JavascriptUtils.SCRIPT_CLOSE_TAG);
 
 Thus, in order to get this working at all, we'll have to patch
 Wicket. The patch is very simple, we move this code into a 
 separate method which can be overridden by derived classes.
 I created an issue for this and attached the patch [1].
 
 Now having applied the patch we proceed as follows. 
 First, we need to derive our own Choices and Selection
 components in which we override the above code by an empty 
 method, so that we get the selection POSTed at all. Now
 we can override various methods as needed; in my case 
 implementing a custom convertInput() method was sufficient,
 so that I could access the currently selected entries in
 the two SELECTs by calling their getConvertedInput() methods
 which seemed the least invasive change and least likely to
 cause any trouble with the Palette's core functionality.
 
 Next, I derived my own custom class from Palette in which
 I needed to override the factory methods for creating the 
 Choices and Selection components. Pretty easy in the end.
 
 Cheers,
 
 M'bert
 
 [1]
 https://issues.apache.org/jira/secure/ManageAttachments.jspa?id=12444712
 
 -- 
 --- / http://herbert.the-little-red-haired-girl.org /
 -
 =+= 
 Perl ist der gegl�ckte Versuch, einen braindump direkt ausf�hrbar zu
 machen.  -- Lutz Donnerhacke in dasr
 
 -
 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/Repost%3A-Track-selected-entries-in-either-of-a-Palette%27s-Choices-components--tp26922651p27432901.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: Using a DataTable inside a Modal window

2010-02-03 Thread nino martinez wael
He probably does, there is a setting with modal window to avoid getting the
message when using ajax.. Just cant remember it right now.

2010/2/3 Ernesto Reinaldo Barreiro reier...@gmail.com

 Why not use an AJAX enabled version of the table, which does not triggers
 page reloads... e.g. AjaxFallbackDefaultDataTable

 Ernesto

 On Tue, Feb 2, 2010 at 4:24 PM, Dennis Buttery dbutt...@bplglobal.net
 wrote:

  Hi all,
 
I'm trying to get a DataTable to work inside of a Modal window ...
 
I have a DefaultDataTable and is added to a panel which is used as the
  content of a modal window.  Everything renders properly when the modal is
  opened.  The problem starts when the user tries to navigate to another
 page
  of the table.  At that point they get the Do you want to navigate
 away...
  dialog and if they select 'ok' then the modal closes ...   Reopening the
  modal does put them on the correct page but it is not usable to have the
  modal close each time navigation to another page is requested.
 
So...   What is the trick to getting the modal to stay open and allow
 the
  user to navigate through the pages of the DataTable?
 
 
  Thanks!
 
 



Re: Using a DataTable inside a Modal window

2010-02-03 Thread Ernesto Reinaldo Barreiro
I guess if you use AJAX you wont get that message if only the table, or the
contents of the modal are reloaded... I think this event is associated to
the onload of the page which is triggered when you try to navigate away from
the page but I might be wrong;-)

Best,

Ernesto

On Wed, Feb 3, 2010 at 9:31 AM, nino martinez wael 
nino.martinez.w...@gmail.com wrote:

 He probably does, there is a setting with modal window to avoid getting the
 message when using ajax.. Just cant remember it right now.

 2010/2/3 Ernesto Reinaldo Barreiro reier...@gmail.com

  Why not use an AJAX enabled version of the table, which does not triggers
  page reloads... e.g. AjaxFallbackDefaultDataTable
 
  Ernesto
 
  On Tue, Feb 2, 2010 at 4:24 PM, Dennis Buttery dbutt...@bplglobal.net
  wrote:
 
   Hi all,
  
 I'm trying to get a DataTable to work inside of a Modal window ...
  
 I have a DefaultDataTable and is added to a panel which is used as
 the
   content of a modal window.  Everything renders properly when the modal
 is
   opened.  The problem starts when the user tries to navigate to another
  page
   of the table.  At that point they get the Do you want to navigate
  away...
   dialog and if they select 'ok' then the modal closes ...   Reopening
 the
   modal does put them on the correct page but it is not usable to have
 the
   modal close each time navigation to another page is requested.
  
 So...   What is the trick to getting the modal to stay open and allow
  the
   user to navigate through the pages of the DataTable?
  
  
   Thanks!
  
  
 



Re: Using a DataTable inside a Modal window

2010-02-03 Thread nino martinez wael
There it was:

http://old.nabble.com/Ajax-%2B-DropDownChoice-%2B-ModalWindow-td23292894.html#a23298945

   script language=javascript type=text/javascript
   jQuery(document).ready(function(){
   if (typeof Wicket != 'undefined' 
Wicket.*Window*)
   Wicket.*Window*.unloadConfirmation =
false;
   });
   /script

2010/2/3 nino martinez wael nino.martinez.w...@gmail.com

 He probably does, there is a setting with modal window to avoid getting the
 message when using ajax.. Just cant remember it right now.

 2010/2/3 Ernesto Reinaldo Barreiro reier...@gmail.com

 Why not use an AJAX enabled version of the table, which does not triggers
 page reloads... e.g. AjaxFallbackDefaultDataTable

 Ernesto

 On Tue, Feb 2, 2010 at 4:24 PM, Dennis Buttery dbutt...@bplglobal.net
 wrote:

  Hi all,
 
I'm trying to get a DataTable to work inside of a Modal window ...
 
I have a DefaultDataTable and is added to a panel which is used as the
  content of a modal window.  Everything renders properly when the modal
 is
  opened.  The problem starts when the user tries to navigate to another
 page
  of the table.  At that point they get the Do you want to navigate
 away...
  dialog and if they select 'ok' then the modal closes ...   Reopening the
  modal does put them on the correct page but it is not usable to have the
  modal close each time navigation to another page is requested.
 
So...   What is the trick to getting the modal to stay open and allow
 the
  user to navigate through the pages of the DataTable?
 
 
  Thanks!
 
 





Re: AbstractAjaxTimerBehaviour sets Transient object to null when same page in opened in new tab

2010-02-03 Thread Igor Vaynberg
if you keep working on the same page instance it is kept in http
sessison and is not serialized. when you go to a new page it pushes
the old instance out, forcing serialization, and setting the transient
field to null.

a proper way to do this would be to have an application-wide task
manager. the code may look something like this:

BackgroundTask bt=Application.get().getTaskManager().start(new runnable(){});
taskId=bt.getId(); == task id is a simple string that you can pass
around, usually a UUID

then later when you want to poll status
BackgroundTask bt=Application.get().getTaskManager().get(taskid);
bt.getFuture().

-igor

On Tue, Feb 2, 2010 at 7:25 PM, Lina Thomas ltho...@taxcient.com wrote:
 Hi

        I have a Page on which I am have to execute a long running task when
 a form is submitted.  This is what I do


   1. I have a transient FutureTask member variable in the page
   2. On submit of the form i create a callable and instantiate
   the FutureTask
   3. I start the AbstractAjaxTimerBehaviour which keeps checking if
   the FutureTask is done before it can update a panel in the page with the
   result of the execution.
      - This works fine when I'm on the same page
      - Now if I submit the form and while the AbstractAjaxTimerBehaviour is
      still polling I open the same page *in a new tab* *within the same
      session* then the reference to the FutureTask in the first page
      (previous tab) becomes null.

 I couldn't find any solution to this problem. Any help would be greatly
 appreciated.

 Thanks
 -Lina


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



Re: Using a DataTable inside a Modal window

2010-02-03 Thread Ernesto Reinaldo Barreiro
Hi Nino,

I do use modal windows where parts of them are replaced via AJAX and I do
not have that issue... What I think it is happening is

-he is using a non AJAX table and when user navigates the table it triggers
a page reload
-onunload display the confirmation.
-page is reloaded and modal is hidden and if you reopen it by clicking on a
link, it will show the table with the right page.

I think using AJAX  to navigate the table would solve the problem

Best,

Ernesto


On Wed, Feb 3, 2010 at 9:41 AM, nino martinez wael 
nino.martinez.w...@gmail.com wrote:

 I think youre wrong, I vaguely remember something about this. That modal
 window complains when contents get's updated. But I might be wrong, it's
 been a looong time since I had the problem. It was wicket 1.3 so might be
 different now.

 2010/2/3 Ernesto Reinaldo Barreiro reier...@gmail.com

  I guess if you use AJAX you wont get that message if only the table, or
 the
  contents of the modal are reloaded... I think this event is associated to
  the onload of the page which is triggered when you try to navigate away
  from
  the page but I might be wrong;-)
 
  Best,
 
  Ernesto
 
  On Wed, Feb 3, 2010 at 9:31 AM, nino martinez wael 
  nino.martinez.w...@gmail.com wrote:
 
   He probably does, there is a setting with modal window to avoid getting
  the
   message when using ajax.. Just cant remember it right now.
  
   2010/2/3 Ernesto Reinaldo Barreiro reier...@gmail.com
  
Why not use an AJAX enabled version of the table, which does not
  triggers
page reloads... e.g. AjaxFallbackDefaultDataTable
   
Ernesto
   
On Tue, Feb 2, 2010 at 4:24 PM, Dennis Buttery 
 dbutt...@bplglobal.net
wrote:
   
 Hi all,

   I'm trying to get a DataTable to work inside of a Modal window
 ...

   I have a DefaultDataTable and is added to a panel which is used
 as
   the
 content of a modal window.  Everything renders properly when the
  modal
   is
 opened.  The problem starts when the user tries to navigate to
  another
page
 of the table.  At that point they get the Do you want to navigate
away...
 dialog and if they select 'ok' then the modal closes ...
 Reopening
   the
 modal does put them on the correct page but it is not usable to
 have
   the
 modal close each time navigation to another page is requested.

   So...   What is the trick to getting the modal to stay open and
  allow
the
 user to navigate through the pages of the DataTable?


 Thanks!


   
  
 



Re: Using a DataTable inside a Modal window

2010-02-03 Thread nino martinez wael
hmm, you might be right.. I remember something about a dropdown box and
onchange. Thats certainly not ajax.

So either use ajax or instead or forward to another page and the return back
again. I switched to the latter approach at some point for one project.

2010/2/3 Ernesto Reinaldo Barreiro reier...@gmail.com

 Hi Nino,

 I do use modal windows where parts of them are replaced via AJAX and I do
 not have that issue... What I think it is happening is

 -he is using a non AJAX table and when user navigates the table it triggers
 a page reload
 -onunload display the confirmation.
 -page is reloaded and modal is hidden and if you reopen it by clicking on a
 link, it will show the table with the right page.

 I think using AJAX  to navigate the table would solve the problem

 Best,

 Ernesto


 On Wed, Feb 3, 2010 at 9:41 AM, nino martinez wael 
 nino.martinez.w...@gmail.com wrote:

  I think youre wrong, I vaguely remember something about this. That modal
  window complains when contents get's updated. But I might be wrong, it's
  been a looong time since I had the problem. It was wicket 1.3 so might be
  different now.
 
  2010/2/3 Ernesto Reinaldo Barreiro reier...@gmail.com
 
   I guess if you use AJAX you wont get that message if only the table, or
  the
   contents of the modal are reloaded... I think this event is associated
 to
   the onload of the page which is triggered when you try to navigate away
   from
   the page but I might be wrong;-)
  
   Best,
  
   Ernesto
  
   On Wed, Feb 3, 2010 at 9:31 AM, nino martinez wael 
   nino.martinez.w...@gmail.com wrote:
  
He probably does, there is a setting with modal window to avoid
 getting
   the
message when using ajax.. Just cant remember it right now.
   
2010/2/3 Ernesto Reinaldo Barreiro reier...@gmail.com
   
 Why not use an AJAX enabled version of the table, which does not
   triggers
 page reloads... e.g. AjaxFallbackDefaultDataTable

 Ernesto

 On Tue, Feb 2, 2010 at 4:24 PM, Dennis Buttery 
  dbutt...@bplglobal.net
 wrote:

  Hi all,
 
I'm trying to get a DataTable to work inside of a Modal window
  ...
 
I have a DefaultDataTable and is added to a panel which is used
  as
the
  content of a modal window.  Everything renders properly when the
   modal
is
  opened.  The problem starts when the user tries to navigate to
   another
 page
  of the table.  At that point they get the Do you want to
 navigate
 away...
  dialog and if they select 'ok' then the modal closes ...
  Reopening
the
  modal does put them on the correct page but it is not usable to
  have
the
  modal close each time navigation to another page is requested.
 
So...   What is the trick to getting the modal to stay open and
   allow
 the
  user to navigate through the pages of the DataTable?
 
 
  Thanks!
 
 

   
  
 



Re: Disable selected choices on palette load

2010-02-03 Thread nino martinez wael
three solutions:


   - build a patch
   - put a veil over palette
   - roll out your own palette, it's pretty simple actually if you accept
   a server side solution (can be done with ajax as well)


2010/2/3 dhirajs sardana_dhi...@rediffmail.com


 Hi,

 I want to disable all preselected enteries in 'selected' choice box(so that
 user can't move those choices to available list). Please suggest some
 solution.

 I have tried one solution, by overriding inBeforeRender method and in that
 method i've get 'selectedChoicesComponent' and disable all childs, but i am
 getting null for selectedChoicesComponent.

@Override
protected void onBeforeRender() {
super.onBeforeRender();
SelectionT selectedChoicesComponent =
 (SelectionT)getSelectionComponent();

//Just to check, i have disabled 1st child,if it works we can easliy
 disable other childs
selectedChoicesComponent.get(0).setEnabled(false);

}
 getSelectionComponent() - returns null.


 Thanks,
 Dhiraj

 Martin Dietze wrote:
 
  On Fri, December 25, 2009, Martin Dietze wrote:
 
  I desperately need to find out which entries in a Palette's two
  Choices components are selected, e.g. to allow additional
  operations on them using Ajax.
 
  I solved this issue. First of all: currently the AbstractOptions
  class used by Palette does not support accessing this
  information via Ajax because of these lines:
 
  |  // A piece of javascript to avoid serializing the options during AJAX
  |  // serialization.
  |  getResponse().write(
  |  JavascriptUtils.SCRIPT_OPEN_TAG +
  |  if (typeof(Wicket) != \undefined\ 
  typeof(Wicket.Form) != \undefined\) +
  |  Wicket.Form.excludeFromAjaxSerialization. +
  getMarkupId() + ='true'; +
  |  JavascriptUtils.SCRIPT_CLOSE_TAG);
 
  Thus, in order to get this working at all, we'll have to patch
  Wicket. The patch is very simple, we move this code into a
  separate method which can be overridden by derived classes.
  I created an issue for this and attached the patch [1].
 
  Now having applied the patch we proceed as follows.
  First, we need to derive our own Choices and Selection
  components in which we override the above code by an empty
  method, so that we get the selection POSTed at all. Now
  we can override various methods as needed; in my case
  implementing a custom convertInput() method was sufficient,
  so that I could access the currently selected entries in
  the two SELECTs by calling their getConvertedInput() methods
  which seemed the least invasive change and least likely to
  cause any trouble with the Palette's core functionality.
 
  Next, I derived my own custom class from Palette in which
  I needed to override the factory methods for creating the
  Choices and Selection components. Pretty easy in the end.
 
  Cheers,
 
  M'bert
 
  [1]
  https://issues.apache.org/jira/secure/ManageAttachments.jspa?id=12444712
 
  --
  --- / http://herbert.the-little-red-haired-girl.org /
  -
  =+=
  Perl ist der gegl�ckte Versuch, einen braindump direkt ausf�hrbar zu
  machen.  -- Lutz Donnerhacke in dasr
 
  -
  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/Repost%3A-Track-selected-entries-in-either-of-a-Palette%27s-Choices-components--tp26922651p27432901.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: Adding AjaxLink to a DataTable cell

2010-02-03 Thread zkn
Thanks.

It worked with 

@Override
protected void onComponentTagBody(
MarkupStream markupStream, ComponentTag 
openTag) {
// TODO Auto-generated method stub
replaceComponentTagBody(markupStream, openTag,
getModelObject());
}

@Override
protected void onComponentTag(ComponentTag tag) {
// TODO Auto-generated method stub
tag.setName(a);
super.onComponentTag(tag);
}

On 03.02.2010, at 01:06, Igor Vaynberg wrote:

 search this link for TextLink, or create a panel/fragment that contain
 a link and a label
 
 -igor
 
 On Tue, Feb 2, 2010 at 3:04 PM, zkn z...@abv.bg wrote:
 Hi,
 
 I'm have a problem adding an AjaxLink to a DataTable cell. Everything works 
 fine except that I don't know how to set the text for the link.
 The result is that I see only  [cell] as a text in the cell but onClick() 
 works fine.
 
 Here is my code:
 
 columns.add(new AbstractColumnBook(new ModelString(Title)) {
 
public void populateItem(ItemICellPopulatorBook 
 cellItem,   String componentId, IModelBook model) {
 
final Book book = model.getObject();
 
if (book.getAuthor() == null) {
 
book.setAuthor( new Author());
 
AjaxLinkString link = new 
 AjaxLinkString(componentId, new ModelString(change author)) {
@Override
public void onClick(AjaxRequestTarget 
 target) {
 
modalWindow.setContent(new 
 AuthorSwitchPanel(modalWindow
.getContentId(), new 
 ModelAuthor(book.getAuthor(;
modalWindow.show(target);
}
};
 
cellItem.add(link);
}
else
cellItem.add(new Label(componentId,
new 
 PropertyModelAuthor(book.getAuthor(), name)));
}
 });
 
 
 



Tooltip like popup component which can perform text copy(to clipboard)?

2010-02-03 Thread Ashika Umanga Umagiliya

Greetings,

In my application, I  have a datable which shows pretty long text 
values.So,  I want to display only a part of the text in datatable-cells 
and when user hover over the text,it should display a Tooltip like/Popup 
component with full text.I cant use simple tooltip because user should 
be able to copy the text in the popup component.

Any ideas how to implement this?

I have done something similar using ZK ,please refer to image at
http://i49.tinypic.com/2eqdljc.jpg

Thanks in advance,
umanga

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



RE: DatePicker css

2010-02-03 Thread Stefan Lindner
That did not work in my case. Yes, it's normal CSS but it is applied in an 
unusal way through the internal styling mechanism of yui. This means that a css 
rule defined at the end of the head section i.e. the last css rule at all 
does not override a css rule in the internal css of YUI-DatePicker from 
wicket-datetime package.

Stefan

-Ursprüngliche Nachricht-
Von: nino martinez wael [mailto:nino.martinez.w...@gmail.com] 
Gesendet: Mittwoch, 3. Februar 2010 09:51
An: users@wicket.apache.org
Betreff: Re: DatePicker css

it's just ordinary css, so you should be able to override it. Try using
firebug and change the css there. Then make a new css and apply that :)

2010/2/2 Martin Makundi martin.maku...@koodaripalvelut.com

 Lol.. let me know if you find a good trick for that. We worked around
 it by changing the surroundings' relative properties.

 **
 Martin

 2010/2/2 wic...@geofflancaster.com wic...@geofflancaster.com:
  Is it possible to edit the datepicker css? the datepicker is displaying
  behind some other components on my page and i'd like to set the z-index
 so
  it display on top of everything.
 
  
  mail2web - Check your email from the web at
  http://link.mail2web.com/mail2web
 
 
 
  -
  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



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



Re: Tooltip like popup component which can perform text copy(to clipboard)?

2010-02-03 Thread vineet semwal
1)create converter to display only part of text,
2)use mootip with mootipsettings.setfixed(true)

On Wed, Feb 3, 2010 at 3:09 PM, Ashika Umanga Umagiliya 
auma...@biggjapan.com wrote:

 Greetings,

 In my application, I  have a datable which shows pretty long text
 values.So,  I want to display only a part of the text in datatable-cells and
 when user hover over the text,it should display a Tooltip like/Popup
 component with full text.I cant use simple tooltip because user should be
 able to copy the text in the popup component.
 Any ideas how to implement this?

 I have done something similar using ZK ,please refer to image at
 http://i49.tinypic.com/2eqdljc.jpg

 Thanks in advance,
 umanga

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




-- 
regards,
Vineet Semwal


Re: Worldwide address form

2010-02-03 Thread Per Lundholm
If you do that, you will be a hero. ;-)

But why not, a component that handles all kinds of addresses in the world is
a typical joint effort.

 If it is in the drop-down of countries, then it is supported. If not your
country is supported, then contribute!

/Per

On Thu, Jan 28, 2010 at 11:30 PM, Chris Colman chr...@stepaheadsoftware.com
 wrote:

 I'm just wondering if anyone knows of a sample 'world address' entry
 form built using wicket.

 Ideally the data entry fields for the top level attributes:

 - world region
 - country
 - state/zone

 Would be drop down list boxes. The contents of any drop down (except the
 world region) would be dictated by the option(s) chosen in the drop down
 lists above it. Eg., if you change the country from Australia to USA
 then the state/zone drop down is populated with the US states.

 I was thinking of creating an interface for the data so that a generic
 world wide address form could be written to the interface but the
 implementation of the interface could be tailored to the way an
 individual app stores it's world data.


  -Original Message-
  From: Per Lundholm [mailto:per.lundh...@gmail.com]
  Sent: Friday, 29 January 2010 8:26 AM
  To: users@wicket.apache.org
  Subject: Re: functional testing
 
  We write tests first and use Wicket's built-in testing.
 
  It has some quirks so you may have to spend time with figuring out how
 to
  click an AjaxCheckBox, for instance.
 
  The tests target the logic of the view, such as when clicking here,
 that
  other thing should be disabled.
 
  Good test coverage really pays off when you have 20 different webapps
 and
  need to work some here and some there.
 
  /Per
 
  On Mon, Jan 25, 2010 at 3:52 AM, Kent Tong k...@cpttm.org.mo wrote:
 
  
   For functional testing, I'd suggest Selenium.
  
   For unit testing of Wicket pages, I'd suggest Wicket Page Test
   (http://wicketpagetest.sourceforge.net).
  
   -
   --
   Kent Tong
   Better way to unit test Wicket pages (
   http://wicketpagetest.sourceforge.net)
   Books on CXF, Axis2, Wicket, JSF (http://http://agileskills2.org)
   --
   View this message in context:
   http://old.nabble.com/functional-testing-tp27278781p27301553.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: DatePicker css

2010-02-03 Thread Stefan Lindner
Hi nino,

no it did not work. My Firebug tells me that the css rules of datepicker's css 
are always allied AFTER my css rules. Even if my CSS is the last one in header 
section.
I was able to customize some things where no explicit rules are defined in 
datepicker's CSS but I was unable to e.g. change the background of today's box 
rule

.yui-skin-sam .yui-calendar td.calcell.today a {
background-color : #mycolor;
}

Stefan

-Ursprüngliche Nachricht-
Von: nino martinez wael [mailto:nino.martinez.w...@gmail.com] 
Gesendet: Mittwoch, 3. Februar 2010 11:13
An: users@wicket.apache.org
Betreff: Re: DatePicker css

but you should still be able todo it via class's

div class=containerdiv class=datepicker/div /div

container datepicker{
color:red;
}

should work and should override:

datepicker{
color:blue;
}

Something like that.



2010/2/3 Stefan Lindner lind...@visionet.de

 That did not work in my case. Yes, it's normal CSS but it is applied in an
 unusal way through the internal styling mechanism of yui. This means that a
 css rule defined at the end of the head section i.e. the last css rule at
 all does not override a css rule in the internal css of YUI-DatePicker from
 wicket-datetime package.

 Stefan

 -Ursprüngliche Nachricht-
 Von: nino martinez wael [mailto:nino.martinez.w...@gmail.com]
 Gesendet: Mittwoch, 3. Februar 2010 09:51
 An: users@wicket.apache.org
 Betreff: Re: DatePicker css

 it's just ordinary css, so you should be able to override it. Try using
 firebug and change the css there. Then make a new css and apply that :)

 2010/2/2 Martin Makundi martin.maku...@koodaripalvelut.com

  Lol.. let me know if you find a good trick for that. We worked around
  it by changing the surroundings' relative properties.
 
  **
  Martin
 
  2010/2/2 wic...@geofflancaster.com wic...@geofflancaster.com:
   Is it possible to edit the datepicker css? the datepicker is displaying
   behind some other components on my page and i'd like to set the z-index
  so
   it display on top of everything.
  
   
   mail2web - Check your email from the web at
   http://link.mail2web.com/mail2web
  
  
  
   -
   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
 
 

 -
 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: Tooltip like popup component which can perform text copy(to clipboard)?

2010-02-03 Thread Ashika Umanga Umagiliya

Thanks vineet for the reply,

But I could find mootip/MootipSettings classes.I use wicket 1.4.6?

Any tips,
umanga
vineet semwal wrote:

1)create converter to display only part of text,
2)use mootip with mootipsettings.setfixed(true)

On Wed, Feb 3, 2010 at 3:09 PM, Ashika Umanga Umagiliya 
auma...@biggjapan.com wrote:

  

Greetings,

In my application, I  have a datable which shows pretty long text
values.So,  I want to display only a part of the text in datatable-cells and
when user hover over the text,it should display a Tooltip like/Popup
component with full text.I cant use simple tooltip because user should be
able to copy the text in the popup component.
Any ideas how to implement this?

I have done something similar using ZK ,please refer to image at
http://i49.tinypic.com/2eqdljc.jpg

Thanks in advance,
umanga

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






  




RE: DatePicker css

2010-02-03 Thread Stefan Lindner
Ah! Thanks Anantha, thanks nino!

That's the trick!

I love the wicket mailing list!

Stefan

-Ursprüngliche Nachricht-
Von: Anantha Kumaran [mailto:ananthakuma...@gmail.com] 
Gesendet: Mittwoch, 3. Februar 2010 11:51
An: users
Betreff: Re: DatePicker css

this may work

 .yui-skin-sam .yui-calendar td.calcell.today a {
   background-color : #mycolor !important;
   }

On Wed, Feb 3, 2010 at 2:32 AM, Stefan Lindner lind...@visionet.de wrote:

 Hi nino,

 no it did not work. My Firebug tells me that the css rules of datepicker's
 css are always allied AFTER my css rules. Even if my CSS is the last one in
 header section.
 I was able to customize some things where no explicit rules are defined in
 datepicker's CSS but I was unable to e.g. change the background of today's
 box rule

.yui-skin-sam .yui-calendar td.calcell.today a {
background-color : #mycolor;
 }

 Stefan

 -Ursprüngliche Nachricht-
 Von: nino martinez wael [mailto:nino.martinez.w...@gmail.com]
 Gesendet: Mittwoch, 3. Februar 2010 11:13
 An: users@wicket.apache.org
 Betreff: Re: DatePicker css

 but you should still be able todo it via class's

 div class=containerdiv class=datepicker/div /div

 container datepicker{
 color:red;
 }

 should work and should override:

 datepicker{
 color:blue;
 }

 Something like that.



 2010/2/3 Stefan Lindner lind...@visionet.de

  That did not work in my case. Yes, it's normal CSS but it is applied in
 an
  unusal way through the internal styling mechanism of yui. This means that
 a
  css rule defined at the end of the head section i.e. the last css rule
 at
  all does not override a css rule in the internal css of YUI-DatePicker
 from
  wicket-datetime package.
 
  Stefan
 
  -Ursprüngliche Nachricht-
  Von: nino martinez wael [mailto:nino.martinez.w...@gmail.com]
  Gesendet: Mittwoch, 3. Februar 2010 09:51
  An: users@wicket.apache.org
  Betreff: Re: DatePicker css
 
  it's just ordinary css, so you should be able to override it. Try using
  firebug and change the css there. Then make a new css and apply that :)
 
  2010/2/2 Martin Makundi martin.maku...@koodaripalvelut.com
 
   Lol.. let me know if you find a good trick for that. We worked around
   it by changing the surroundings' relative properties.
  
   **
   Martin
  
   2010/2/2 wic...@geofflancaster.com wic...@geofflancaster.com:
Is it possible to edit the datepicker css? the datepicker is
 displaying
behind some other components on my page and i'd like to set the
 z-index
   so
it display on top of everything.
   

mail2web - Check your email from the web at
http://link.mail2web.com/mail2web
   
   
   
-
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
  
  
 
  -
  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




-- 

Anantha Kumaran

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



enclosures only allow one input component?

2010-02-03 Thread Jeroen Dijkmeijer
it looks like only one input component (the one indicated by the child  
attribute) get its value bound to the model inside an enclosure tag,  
the documentation (WIA and http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html) 
 could give some more information on this constraint.
Is there a way to get around this by overloading methods or so, or  
should I proceed with grouping them on panels, fragments or something  
else?


regards,
Jeroen.
On Feb 2, 2010, at 9:58 PM, Jeroen Dijkmeijer wrote:


Hi,

I'm struggling my way into wicket, I've a sort of wizard like page,  
after the user submits the form, new input fields become visible. I  
also want a textinput field to become visible together with a  
dropdownbox.
In the constructor I fill the choices and set the initial (selected)  
value. After the user submits, I set the textinputfield to be  
visible, which will cause all the components in the surrounded  
enclosure to become visible.
So far so good however the selected value is not recognised and the  
choose one thing is shown. Code snippets are below

Any help is appreciated.
Jeroen
constructor:
..
   String pollType = Wanneer;
   lijst = new ArrayListString();
   lijst.add(Wanneer);
   lijst.add(Wie);
   lijst.add(Waar);
   lijst.add(Wat);
   lijst.add(Welk bedrag);
   lijst.add(Weet nog niet);
   form.add(new ListChoiceString(poll_type, new  
Model(pollType), lijst));

   add(form);


inner class:
   class SaveButton extends Button {
   /**
*
*/
   private static final long serialVersionUID =  
109611211318049267L;


   private SaveButton() {
   super(save, new ResourceModel(save));
   }

   @Override
   public void onSubmit() {
   try {

getParent().get(poll_part_header).setVisible(true);


My html code:
wicket:enclosure child=poll_part_header
   div class=input-linewicket:message  
key=lbl.poll.part.header[header]/wicket:message

   select wicket:id=poll_type size=1/
   input wicket:id=poll_part_header type=text  
size=50/

   /div
/wicket:enclosure



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



Re: Disable selected choices on palette load

2010-02-03 Thread dhirajs

Hi,

thanks 'nino' for ur reply.

Actually the thing i want is like :-
for say, there are 5 available users(a,b,c,d,e) and of these users a and b
are already selected.
So, a and b should come as disabled in palette's selected list when palette
is being displayed to user.
After that client can move (to and fro )other users(c,d, e) from available
to selected lists.

Please suggest some solution for above scenario. 

I have tried 'getSelectionComponent() ' and than set disable all its
childern by overriding onBeforeRender method.But that solution does not
works as children list is null, although there are entries in selection
list.




nino martinez wael wrote:
 
 three solutions:
 
 
- build a patch
- put a veil over palette
- roll out your own palette, it's pretty simple actually if you
 accept
a server side solution (can be done with ajax as well)
 
 
 2010/2/3 dhirajs sardana_dhi...@rediffmail.com
 

 Hi,

 I want to disable all preselected enteries in 'selected' choice box(so
 that
 user can't move those choices to available list). Please suggest some
 solution.

 I have tried one solution, by overriding inBeforeRender method and in
 that
 method i've get 'selectedChoicesComponent' and disable all childs, but i
 am
 getting null for selectedChoicesComponent.

@Override
protected void onBeforeRender() {
super.onBeforeRender();
SelectionT selectedChoicesComponent =
 (SelectionT)getSelectionComponent();

//Just to check, i have disabled 1st child,if it works we can
 easliy
 disable other childs
selectedChoicesComponent.get(0).setEnabled(false);

}
 getSelectionComponent() - returns null.


 Thanks,
 Dhiraj

 Martin Dietze wrote:
 
  On Fri, December 25, 2009, Martin Dietze wrote:
 
  I desperately need to find out which entries in a Palette's two
  Choices components are selected, e.g. to allow additional
  operations on them using Ajax.
 
  I solved this issue. First of all: currently the AbstractOptions
  class used by Palette does not support accessing this
  information via Ajax because of these lines:
 
  |  // A piece of javascript to avoid serializing the options during
 AJAX
  |  // serialization.
  |  getResponse().write(
  |  JavascriptUtils.SCRIPT_OPEN_TAG +
  |  if (typeof(Wicket) != \undefined\ 
  typeof(Wicket.Form) != \undefined\) +
  |  Wicket.Form.excludeFromAjaxSerialization. +
  getMarkupId() + ='true'; +
  |  JavascriptUtils.SCRIPT_CLOSE_TAG);
 
  Thus, in order to get this working at all, we'll have to patch
  Wicket. The patch is very simple, we move this code into a
  separate method which can be overridden by derived classes.
  I created an issue for this and attached the patch [1].
 
  Now having applied the patch we proceed as follows.
  First, we need to derive our own Choices and Selection
  components in which we override the above code by an empty
  method, so that we get the selection POSTed at all. Now
  we can override various methods as needed; in my case
  implementing a custom convertInput() method was sufficient,
  so that I could access the currently selected entries in
  the two SELECTs by calling their getConvertedInput() methods
  which seemed the least invasive change and least likely to
  cause any trouble with the Palette's core functionality.
 
  Next, I derived my own custom class from Palette in which
  I needed to override the factory methods for creating the
  Choices and Selection components. Pretty easy in the end.
 
  Cheers,
 
  M'bert
 
  [1]
 
 https://issues.apache.org/jira/secure/ManageAttachments.jspa?id=12444712
 
  --
  --- / http://herbert.the-little-red-haired-girl.org /
  -
  =+=
  Perl ist der gegl�ckte Versuch, einen braindump direkt ausf�hrbar zu
  machen.  -- Lutz Donnerhacke in dasr
 
  -
  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/Repost%3A-Track-selected-entries-in-either-of-a-Palette%27s-Choices-components--tp26922651p27432901.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


 
 

-- 
View this message in context: 
http://old.nabble.com/Repost%3A-Track-selected-entries-in-either-of-a-Palette%27s-Choices-components--tp26922651p27434694.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: Layout manager

2010-02-03 Thread Eyal Golan
ran it.
it's not exactly what we're looking for.
any other suggestion?

Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


On Tue, Feb 2, 2010 at 12:20 PM, Martin Makundi 
martin.maku...@koodaripalvelut.com wrote:

 Yeah, swit. Service Temporarily Unavailable.

 **
 Martin

 2010/2/2 Ernesto Reinaldo Barreiro reier...@gmail.com:
  Do you mean this one?
 
  http://code.google.com/p/swit/
 
  Ernesto
 
  On Tue, Feb 2, 2010 at 11:07 AM, Martin Makundi 
  martin.maku...@koodaripalvelut.com wrote:
 
  Hi!
 
  There was one wicket project which created panels and stylish buttons,
  but I can't recall where it is.
 
  **
  Martin
 
  2010/2/2 Eyal Golan egola...@gmail.com:
   Hello,
   Is there any Wicket project for making a layout manager similar to
  iGoogle
   or http://www.netvibes.com/#General
   We found a project with ExtJS that is not supported anymore . Is there
 a
   Wicket project for that? or for any other similar?
   Can Wiquery help with this?
  
   Thanks for helping out,
  
  
   Eyal Golan
   egola...@gmail.com
  
   Visit: http://jvdrums.sourceforge.net/
   LinkedIn: http://www.linkedin.com/in/egolan74
  
   P  Save a tree. Please don't print this e-mail unless it's really
  necessary
  
 
  -
  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 1.4.5 : Spring integration problem?

2010-02-03 Thread vlk67

I have to say, that 'Application Object Approach' is working OK. But I have
tried to use Annotation-based Approach and it's working not so well.
Sometime I have got exception:

ERROR [http-8000-2] - Could not deserialize object using
`org.apache.wicket.util.io.IObjectStreamFactory$DefaultObjectStreamFactory`
object factory
java.lang.RuntimeException: Could not deserialize object using
`org.apache.wicket.util.io.IObjectStreamFactory$DefaultObjectStreamFactory`
object factory
at 
org.apache.wicket.util.lang.Objects.byteArrayToObject(Objects.java:431)
at
org.apache.wicket.protocol.http.pagestore.AbstractPageStore.deserializePage(AbstractPageStore.java:234)
at
org.apache.wicket.protocol.http.pagestore.DiskPageStore.getPage(DiskPageStore.java:735)
at
org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.get(SecondLevelCacheSessionStore.java:310)
at org.apache.wicket.Session.getPage(Session.java:779)
at
org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage(AbstractRequestCycleProcessor.java:458)
at
org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:144)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1310)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
at
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:479)
at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:312)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.InvalidClassException: com.bs.service.ILogRecordService;
could not resolve class [com.bs.service.ILogRecordService] when
deserializing proxy
at
org.apache.wicket.proxy.LazyInitProxyFactory$ProxyReplacement.readResolve(LazyInitProxyFactory.java:236)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at java.io.ObjectStreamClass.invokeReadResolve(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at 
org.apache.wicket.util.lang.Objects.byteArrayToObject(Objects.java:409)

there is my web.xml:
filter
filter-namewicketApplication/filter-name

filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class
init-param
param-nameapplicationClassName/param-name
param-valuecom.bs.web.wicket.WebApp/param-value
/init-param
init-param
param-nameapplicationFactoryClassName/param-name
   
param-valueorg.apache.wicket.spring.SpringWebApplicationFactory/param-value
/init-param
init-param
param-nameapplicationBean/param-name
param-valuewicketApplication/param-value
/init-param
!-- init-param
param-nameconfiguration/param-name
param-valuedeployment/param-value
/init-param--
/filter

and there is my applicationContext.xml:

!-- setup transaction manager  --
bean id=transactionManager
class=org.springframework.jdbc.datasource.DataSourceTransactionManager
lazy-init=true
property 

Re: wicketstuff-push and component replacing

2010-02-03 Thread Roland4444

Thank you for replying.

As I understand you made some changes, from where can I get them.
Originally I used this for source:
http://wicketstuff.org/maven/repository/org/wicketstuff/push/1.4.1/

but I don't see any changes there.

I agree on part that push service is complicated.
I could try comet if I'd find proper example and it would allow me to do
what I'd like to achieve.

But AjaxTimeoutBehavior..did you mean AbstractAjaxTimerBehavior instead, as
I find no references to the first one? If yes, I implemented it with it
currently, but new alarms checking with it creates considerable traffic and
is therefore not the cleverest solution I suppose

Roland

Rodolfo Hansen wrote:
 
 Try now...
 
 To me, the push service is overly complicated, and you could easily get
 away
 with simply using Wicket's AjaxTimeoutBehavior as there are no technical
 advantages over the later.
 
 The comet version of push offers a couple of serious advantages for the
 server, and client side. Why can't you use that instead?
 
 
 On Tue, Jan 26, 2010 at 11:12 AM, Rodolfo Hansen kry...@gmail.com wrote:
 
 I have basically concentrated on the CometD Service
 This should be a simple bug to fix.



 On Fri, Jan 22, 2010 at 10:34 AM, Roland Vares
 roland.va...@uptime.eewrote:

 Hello,

 I'm currently developing wicket based application, which displays alarms
 on map and allows their modification.
 New alarms are sent to server through soap service and map with few
 other
 components on page for all browser clients needs to be refreshed.

 I'm using wicketstuff-push for the push service implementation.
 org.wicketstuff.push.timer.TimerPushService to be clear.



 As an in examples I have method on wicket page which is activated when
 server sends notification about an event:
// set new listener for incoming events
final IPushTarget pushTarget =
 getTimerPushService().installPush(this);
getPushService().addMapListener(new
 MapServiceListener() {
public void onEventChange(final Event event) {
if
 (pushTarget.isConnected()) {
Label label = new Label(labelonpage,label);
 //label
 to be replaced
pushTarget.addComponent(label);
pushTarget.trigger();
}
else { // remove inactive listener

  LOG.debug(Removing map listener  + this);

  getPushService().removeMapListener(this);
}
...

 Problems start with line :
 Label label = new Label(labelonpage,label);

 which results with:
 org.apache.wicket.WicketRuntimeException: There is no application
 attached
 to current thread btpool0-2
at
 org.apache.wicket.Application.get(Application.java:179)
at
 org.apache.wicket.Component.getApplication(Component.java:1323)
at org.apache.wicket.Component.init(Component.java:920)

 It seems that in this push method, context is lost, I have no session,
 request,...

 Is there any way I gan regain it or make new?

 Or how should I implement push service, which needs to replace some
 components on page?

 Thanks in advance,
 Roland




 --
 Rodolfo Hansen
 CTO, KindleIT Software Development
 Email: rhan...@kindleit.net
 Mobile: +1 (809) 860-6669

 
 
 
 -- 
 Rodolfo Hansen
 CTO, KindleIT Software Development
 Email: rhan...@kindleit.net
 Mobile: +1 (809) 860-6669
 
 

-- 
View this message in context: 
http://old.nabble.com/wicketstuff-push-and-component-replacing-tp27274128p27435497.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: Disable selected choices on palette load

2010-02-03 Thread nino martinez wael
Hi sardana

I did:
- build a patch
- put a veil over palette
- roll out your own palette, it's pretty simple actually if you

The easiest thing would probably be the latter for you. Just make a palette
(Panel) consisting of 2 buttons, 2 listboxes. And then you should be able to
customise as much as you want.

2010/2/3 dhirajs sardana_dhi...@rediffmail.com


 Hi,

 thanks 'nino' for ur reply.

 Actually the thing i want is like :-
 for say, there are 5 available users(a,b,c,d,e) and of these users a and b
 are already selected.
 So, a and b should come as disabled in palette's selected list when palette
 is being displayed to user.
 After that client can move (to and fro )other users(c,d, e) from available
 to selected lists.

 Please suggest some solution for above scenario.

 I have tried 'getSelectionComponent() ' and than set disable all its
 childern by overriding onBeforeRender method.But that solution does not
 works as children list is null, although there are entries in selection
 list.




 nino martinez wael wrote:
 
  three solutions:
 
 
 - build a patch
 - put a veil over palette
 - roll out your own palette, it's pretty simple actually if you
  accept
 a server side solution (can be done with ajax as well)
 
 
  2010/2/3 dhirajs sardana_dhi...@rediffmail.com
 
 
  Hi,
 
  I want to disable all preselected enteries in 'selected' choice box(so
  that
  user can't move those choices to available list). Please suggest some
  solution.
 
  I have tried one solution, by overriding inBeforeRender method and in
  that
  method i've get 'selectedChoicesComponent' and disable all childs, but i
  am
  getting null for selectedChoicesComponent.
 
 @Override
 protected void onBeforeRender() {
 super.onBeforeRender();
 SelectionT selectedChoicesComponent =
  (SelectionT)getSelectionComponent();
 
 //Just to check, i have disabled 1st child,if it works we can
  easliy
  disable other childs
 selectedChoicesComponent.get(0).setEnabled(false);
 
 }
  getSelectionComponent() - returns null.
 
 
  Thanks,
  Dhiraj
 
  Martin Dietze wrote:
  
   On Fri, December 25, 2009, Martin Dietze wrote:
  
   I desperately need to find out which entries in a Palette's two
   Choices components are selected, e.g. to allow additional
   operations on them using Ajax.
  
   I solved this issue. First of all: currently the AbstractOptions
   class used by Palette does not support accessing this
   information via Ajax because of these lines:
  
   |  // A piece of javascript to avoid serializing the options during
  AJAX
   |  // serialization.
   |  getResponse().write(
   |  JavascriptUtils.SCRIPT_OPEN_TAG +
   |  if (typeof(Wicket) != \undefined\ 
   typeof(Wicket.Form) != \undefined\) +
   |  Wicket.Form.excludeFromAjaxSerialization. +
   getMarkupId() + ='true'; +
   |  JavascriptUtils.SCRIPT_CLOSE_TAG);
  
   Thus, in order to get this working at all, we'll have to patch
   Wicket. The patch is very simple, we move this code into a
   separate method which can be overridden by derived classes.
   I created an issue for this and attached the patch [1].
  
   Now having applied the patch we proceed as follows.
   First, we need to derive our own Choices and Selection
   components in which we override the above code by an empty
   method, so that we get the selection POSTed at all. Now
   we can override various methods as needed; in my case
   implementing a custom convertInput() method was sufficient,
   so that I could access the currently selected entries in
   the two SELECTs by calling their getConvertedInput() methods
   which seemed the least invasive change and least likely to
   cause any trouble with the Palette's core functionality.
  
   Next, I derived my own custom class from Palette in which
   I needed to override the factory methods for creating the
   Choices and Selection components. Pretty easy in the end.
  
   Cheers,
  
   M'bert
  
   [1]
  
 
 https://issues.apache.org/jira/secure/ManageAttachments.jspa?id=12444712
  
   --
   --- / http://herbert.the-little-red-haired-girl.org /
   -
   =+=
   Perl ist der gegl�ckte Versuch, einen braindump direkt ausf�hrbar zu
   machen.  -- Lutz Donnerhacke in dasr
  
   -
   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/Repost%3A-Track-selected-entries-in-either-of-a-Palette%27s-Choices-components--tp26922651p27432901.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: 

ERROR: Received Ajax response with code: 403

2010-02-03 Thread Tomasz Dziurko
I have problem with page heavily using ajax and error 403 returned by
ajax response.

There are 4 components on the page which are shown only for specific
period of time. I use AbstractAjaxTimerBehavior (duration 10ms) which
is calculating current phase and then according to this phase I make
some components visible and others invisible (user has limited time to
answer question and after it ends he's redirected to next question).

Sometimes this page stops responding to any user clicks. After running
this application in debug mode I noticed that among many ajax info
messages I get one error:

ERROR: Received Ajax response with code: 403

Is this related to Wicket or I should talk with my server provider to
check if he doesn't block ajax requests that come too often?
I am using Wicket 1.3.7

Thank you in advance for any help.

-- 
Regards
Tomasz Dziurko

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



RE: [announce] better look modern css for wicket examples contest

2010-02-03 Thread Jing Ge (Besitec IT DEHAM)
Hi

Forgot to talk about it. Would it be better, that you guys publish the
contest in the internet, like the homepage of wicket or somewhere, to
let more people know it? Thanks!

Regards!
Jing


-Original Message-
From: nino martinez wael [mailto:nino.martinez.w...@gmail.com] 
Sent: Dienstag, 2. Februar 2010 19:27
To: users@wicket.apache.org
Subject: [announce] better look  modern css for wicket examples contest

Hi

Someone mentioned that we could have a better look  feel for wicket,
since
there are no designers in the core team. I proposed a contest, to make
the
coolest slickest css for wicket. So please feel free to apply.


Requirements:

your css should be compatible with the basic browsers, Firefox , IE ,
Safari
etc. And retain heavy use of embedded js. And it should be a drop on,
using
existing id's  hierachy for design.

Practical info:

The contest ends in 2 months April 2nd.

Get the wicket examples here:
http://svn.apache.org/repos/asf/wicket/trunk/wicket-examples/

If you need it you can put your css in svn at wicketstuff, write to this
list for details on howto get commit rights, you should add your css to
sandbox and sf user name (
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/sandbox/
).

Yes as with all contest there is a prize, you can win the wicket t-shir
along with the honor if your css are the winner. This
http://www.cafepress.com/apachewicket.317298148 or this
http://www.cafepress.com/apachewicket.317298083 depending on your age :)

Just reply to this thread to enter the contest.

Regards Nino on behalf of the Wicket People


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



Re: [announce] better look modern css for wicket examples contest

2010-02-03 Thread nino martinez wael
would some of the core guys put it on the wiki, or tell me where to place it
(cant remember if I have rights for it)

2010/2/3 Jing Ge (Besitec IT DEHAM) j...@besitec.com

 Hi

 Forgot to talk about it. Would it be better, that you guys publish the
 contest in the internet, like the homepage of wicket or somewhere, to
 let more people know it? Thanks!

 Regards!
 Jing


 -Original Message-
 From: nino martinez wael [mailto:nino.martinez.w...@gmail.com]
 Sent: Dienstag, 2. Februar 2010 19:27
 To: users@wicket.apache.org
 Subject: [announce] better look  modern css for wicket examples contest

 Hi

 Someone mentioned that we could have a better look  feel for wicket,
 since
 there are no designers in the core team. I proposed a contest, to make
 the
 coolest slickest css for wicket. So please feel free to apply.


 Requirements:

 your css should be compatible with the basic browsers, Firefox , IE ,
 Safari
 etc. And retain heavy use of embedded js. And it should be a drop on,
 using
 existing id's  hierachy for design.

 Practical info:

 The contest ends in 2 months April 2nd.

 Get the wicket examples here:
 http://svn.apache.org/repos/asf/wicket/trunk/wicket-examples/

 If you need it you can put your css in svn at wicketstuff, write to this
 list for details on howto get commit rights, you should add your css to
 sandbox and sf user name (
 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/sandbox/
 ).

 Yes as with all contest there is a prize, you can win the wicket t-shir
 along with the honor if your css are the winner. This
 http://www.cafepress.com/apachewicket.317298148 or this
 http://www.cafepress.com/apachewicket.317298083 depending on your age :)

 Just reply to this thread to enter the contest.

 Regards Nino on behalf of the Wicket People


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




Re: Very strange exception

2010-02-03 Thread James Carman
I have used id=label a lot in my pages/components, so I don't think
that's your problem.  Are you sure your label is set up in your markup
in the right spot (in the hierarchy)?

On Wed, Feb 3, 2010 at 3:11 AM, Martin Asenov mase...@velti.com wrote:
 Hi, Wilhelmsen!

 Yes, this is pretty clear. I've got enough experience in order to know this 
 :) Maybe the problem is the wicket:id, which I've named 'label'. Maybe this 
 is problem, since I heard certain 'ids' cause problems, like buttons with 
 id=submit, links with id=link and so on.

 Thank you, anyway!

 Regards, Martin

 -Original Message-
 From: Wilhelmsen Tor Iver [mailto:toriv...@arrive.no]
 Sent: Wednesday, February 03, 2010 10:05 AM
 To: users@wicket.apache.org
 Subject: Re: Very strange exception

 WicketMessage: The component(s) below failed to render. A common
 problem is that you have added a component in code but forgot to
 reference it in the markup (thus the component will never be rendered).

 When you do

 add(new Label(label, ...

 in a Page, you also need something like

 span wicket:id=labelThis gets replaced/span

 in your HTML template.

 - Tor Iver

 -
 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



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



Re: component .... not found on page

2010-02-03 Thread Eugene Malan

cresc,

Make sure you do not have any broken links in your header section,  
like the one I had.



link rel=shortcut icon href= type=images/x-icon /


It is broken because there is a space in the rel=  part of it.

Also make sure you do not have empty image src   img src=/  (per :  
Thomas Kappler )



You could also add a debug points to check if you are getting page  
reloads (This was my problem). So if you see the debug twice when  
there should only be one --- then you know the page is reloading.


@Override
protected void onBeforeRender() {
log.debug(Page is being rendered: + getPage());
super.onBeforeRender();
}

Good luck...

--
Eugene

On 02 Feb 2010, at 8:45 PM, cresc wrote:



I am sorry, I did not understand the solution. I searched for  
quickstart in

jira issue but found one link which says to use patch
https://issues.apache.org/jira/secure/attachment/12417508/WICKET-2404-1.4.patch

So I modified my html tag in homepage to
html
xmlns:wicket=http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd 


But still not resovled..

Can you give me more details...

- cresc
--
View this message in context: 
http://old.nabble.com/component--not-found-on-page-tp27421536p27430297.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: Very strange exception

2010-02-03 Thread Martin Asenov
I found it! That label was missing in my set access denied page. I had to click 
on the display page link in the bottom to see where this happens.

Thank you all!
Regards,
Martin

-Original Message-
From: James Carman [mailto:jcar...@carmanconsulting.com] 
Sent: Wednesday, February 03, 2010 5:04 PM
To: users@wicket.apache.org
Subject: Re: Very strange exception

I have used id=label a lot in my pages/components, so I don't think
that's your problem.  Are you sure your label is set up in your markup
in the right spot (in the hierarchy)?

On Wed, Feb 3, 2010 at 3:11 AM, Martin Asenov mase...@velti.com wrote:
 Hi, Wilhelmsen!

 Yes, this is pretty clear. I've got enough experience in order to know this 
 :) Maybe the problem is the wicket:id, which I've named 'label'. Maybe this 
 is problem, since I heard certain 'ids' cause problems, like buttons with 
 id=submit, links with id=link and so on.

 Thank you, anyway!

 Regards, Martin

 -Original Message-
 From: Wilhelmsen Tor Iver [mailto:toriv...@arrive.no]
 Sent: Wednesday, February 03, 2010 10:05 AM
 To: users@wicket.apache.org
 Subject: Re: Very strange exception

 WicketMessage: The component(s) below failed to render. A common
 problem is that you have added a component in code but forgot to
 reference it in the markup (thus the component will never be rendered).

 When you do

 add(new Label(label, ...

 in a Page, you also need something like

 span wicket:id=labelThis gets replaced/span

 in your HTML template.

 - Tor Iver

 -
 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



-
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



webapp authentication

2010-02-03 Thread Martin Asenov
Hello guys!

I want to ask you which security frameworks you use when it comes to 
authenticating users through JPA.
I relied on JSecurity/Shiro but I can't set it up. I'm looking for a simple 
framework but secure enough (not looking for extraordinary security), which I 
can set pretty easily with my database that holds my custom User objects.

Please give me some suggestions.

Thanks!

Regards,
Martin



Re: webapp authentication

2010-02-03 Thread nino martinez wael
Please describe what you need?

Do you need simple login authorisation or do you need authentication for
components ( some users can only see some pages / panels )?

2010/2/3 Martin Asenov mase...@velti.com

 Hello guys!

 I want to ask you which security frameworks you use when it comes to
 authenticating users through JPA.
 I relied on JSecurity/Shiro but I can't set it up. I'm looking for a simple
 framework but secure enough (not looking for extraordinary security), which
 I can set pretty easily with my database that holds my custom User objects.

 Please give me some suggestions.

 Thanks!

 Regards,
 Martin




Re: webapp authentication

2010-02-03 Thread Martijn Dashorst
IMO two options come to mind:

1. you only need authentication: roll your own IAuthorizationStrategy
that checks if your custom session has a username set
2. use wicket-auth-roles, giving you role based authorization
(not-authorized, user and admin)

There are enough examples available on the wiki, in wicket-examples
and wicket in action (chapter 11)

Martijn

On Wed, Feb 3, 2010 at 4:25 PM, Martin Asenov mase...@velti.com wrote:
 Hello guys!

 I want to ask you which security frameworks you use when it comes to 
 authenticating users through JPA.
 I relied on JSecurity/Shiro but I can't set it up. I'm looking for a simple 
 framework but secure enough (not looking for extraordinary security), which I 
 can set pretty easily with my database that holds my custom User objects.

 Please give me some suggestions.

 Thanks!

 Regards,
 Martin





-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.4 increases type safety for web applications
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4

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



RE: webapp authentication

2010-02-03 Thread Martin Asenov
Hello, namesake! 
I've already done component authorization with the means wicket is supplied 
with. I'm looking only for login authentication using my JPA DB, which I don't 
believe is included in Wicket. There's a Wicket Security project that afaik is 
not stable yet, so I can't use it. 

I need only to authenticate users when they attempt to login.

Not just call something like this:

User user = MyUtilities.getUserByCredentials(name, password);

if (user == null) return false;
else ...do further processing

I want something more secure than this.

Regards,
Martin

-Original Message-
From: Martijn Dashorst [mailto:martijn.dasho...@gmail.com] 
Sent: Wednesday, February 03, 2010 6:14 PM
To: users@wicket.apache.org
Subject: Re: webapp authentication

IMO two options come to mind:

1. you only need authentication: roll your own IAuthorizationStrategy
that checks if your custom session has a username set
2. use wicket-auth-roles, giving you role based authorization
(not-authorized, user and admin)

There are enough examples available on the wiki, in wicket-examples
and wicket in action (chapter 11)

Martijn

On Wed, Feb 3, 2010 at 4:25 PM, Martin Asenov mase...@velti.com wrote:
 Hello guys!

 I want to ask you which security frameworks you use when it comes to 
 authenticating users through JPA.
 I relied on JSecurity/Shiro but I can't set it up. I'm looking for a simple 
 framework but secure enough (not looking for extraordinary security), which I 
 can set pretty easily with my database that holds my custom User objects.

 Please give me some suggestions.

 Thanks!

 Regards,
 Martin





-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.4 increases type safety for web applications
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4

-
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: webapp authentication

2010-02-03 Thread Thomas Kappler

On 02/03/10 17:20, Martin Asenov wrote:


I need only to authenticate users when they attempt to login.

Not just call something like this:

User user = MyUtilities.getUserByCredentials(name, password);

if (user == null) return false;
else ...do further processing

I want something more secure than this.


What security problems do you see here? Either the database can 
authenticate this user/password combination, or it can't.


-- Thomas

--
---
  Thomas Kapplerthomas.kapp...@isb-sib.ch
  Swiss Institute of Bioinformatics Tel: +41 22 379 51 89
  CMU, rue Michel Servet 1
  1211 Geneve 4
  Switzerland  http://www.uniprot.org
---

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



Re: wicketstuff-push and component replacing

2010-02-03 Thread Rodolfo Hansen
The changes are in 1.4-SNAPSHOT

But it seems wicketstuff isn't building the package at the moment, I will
look into that.

For now, you need to checkout the source and build it yourself.

On Wed, Feb 3, 2010 at 8:21 AM, Roland rolan...@gmail.com wrote:


 Thank you for replying.

 As I understand you made some changes, from where can I get them.
 Originally I used this for source:
 http://wicketstuff.org/maven/repository/org/wicketstuff/push/1.4.1/





 but I don't see any changes there.

 I agree on part that push service is complicated.
 I could try comet if I'd find proper example and it would allow me to do
 what I'd like to achieve.

 But AjaxTimeoutBehavior..did you mean AbstractAjaxTimerBehavior instead, as
 I find no references to the first one? If yes, I implemented it with it
 currently, but new alarms checking with it creates considerable traffic and
 is therefore not the cleverest solution I suppose

 Roland

 Rodolfo Hansen wrote:
 
  Try now...
 
  To me, the push service is overly complicated, and you could easily get
  away
  with simply using Wicket's AjaxTimeoutBehavior as there are no technical
  advantages over the later.
 
  The comet version of push offers a couple of serious advantages for the
  server, and client side. Why can't you use that instead?
 
 
  On Tue, Jan 26, 2010 at 11:12 AM, Rodolfo Hansen kry...@gmail.com
 wrote:
 
  I have basically concentrated on the CometD Service
  This should be a simple bug to fix.
 
 
 
  On Fri, Jan 22, 2010 at 10:34 AM, Roland Vares
  roland.va...@uptime.eewrote:
 
  Hello,
 
  I'm currently developing wicket based application, which displays
 alarms
  on map and allows their modification.
  New alarms are sent to server through soap service and map with few
  other
  components on page for all browser clients needs to be refreshed.
 
  I'm using wicketstuff-push for the push service implementation.
  org.wicketstuff.push.timer.TimerPushService to be clear.
 
 
 
  As an in examples I have method on wicket page which is activated when
  server sends notification about an event:
 // set new listener for incoming events
 final IPushTarget pushTarget =
  getTimerPushService().installPush(this);
 getPushService().addMapListener(new
  MapServiceListener() {
 public void onEventChange(final Event event) {
 if
  (pushTarget.isConnected()) {
 Label label = new Label(labelonpage,label);
  //label
  to be replaced
 pushTarget.addComponent(label);
 pushTarget.trigger();
 }
 else { // remove inactive listener
 
   LOG.debug(Removing map listener  + this);
 
   getPushService().removeMapListener(this);
 }
 ...
 
  Problems start with line :
  Label label = new Label(labelonpage,label);
 
  which results with:
  org.apache.wicket.WicketRuntimeException: There is no application
  attached
  to current thread btpool0-2
 at
  org.apache.wicket.Application.get(Application.java:179)
 at
  org.apache.wicket.Component.getApplication(Component.java:1323)
 at
 org.apache.wicket.Component.init(Component.java:920)
 
  It seems that in this push method, context is lost, I have no session,
  request,...
 
  Is there any way I gan regain it or make new?
 
  Or how should I implement push service, which needs to replace some
  components on page?
 
  Thanks in advance,
  Roland
 
 
 
 
  --
  Rodolfo Hansen
  CTO, KindleIT Software Development
  Email: rhan...@kindleit.net
  Mobile: +1 (809) 860-6669
 
 
 
 
  --
  Rodolfo Hansen
  CTO, KindleIT Software Development
  Email: rhan...@kindleit.net
  Mobile: +1 (809) 860-6669
 
 

 --
 View this message in context:
 http://old.nabble.com/wicketstuff-push-and-component-replacing-tp27274128p27435497.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




-- 
Rodolfo Hansen
CTO, KindleIT Software Development
Email: rhan...@kindleit.net
Mobile: +1 (809) 860-6669


RE: webapp authentication

2010-02-03 Thread Martin Asenov
I don't know. Probably against some attempts to break the security. Is this 
secure enough?
The passwords are stored in a hex format after md5hash conversion.

Regards,
Martin

-Original Message-
From: Thomas Kappler [mailto:thomas.kapp...@isb-sib.ch] 
Sent: Wednesday, February 03, 2010 6:28 PM
To: users@wicket.apache.org
Subject: Re: webapp authentication

On 02/03/10 17:20, Martin Asenov wrote:

 I need only to authenticate users when they attempt to login.

 Not just call something like this:

 User user = MyUtilities.getUserByCredentials(name, password);

 if (user == null) return false;
 else ...do further processing

 I want something more secure than this.

What security problems do you see here? Either the database can 
authenticate this user/password combination, or it can't.

-- Thomas

-- 
---
   Thomas Kapplerthomas.kapp...@isb-sib.ch
   Swiss Institute of Bioinformatics Tel: +41 22 379 51 89
   CMU, rue Michel Servet 1
   1211 Geneve 4
   Switzerland  http://www.uniprot.org
---

-
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: Feedback panel in Modal window

2010-02-03 Thread Anna Simbirtsev
Thanks. Its working now, I just had to implement onError function for the
AjaxSubmitLink.

On Tue, Feb 2, 2010 at 4:29 PM, vermas shalini.ve...@us.bosch.com wrote:


 Try to add feedbackpanel inside the panel and inside the form.

 wicket:panel
 form
 div wicket:id=feedback id=feedback/div
 rest of your html code
 /form
 /wicket:panel

 Thanks


 Anna Simbirtsev wrote:
 
  Hi,
 
  I have a feedback panel in Modal window, but for some reason it does not
  work.
 
  div wicket:id=feedback id=feedback/div
 
  contact_form.add(new FeedbackPanel(feedback));
 
  I get the following messages:
 
  WARN  - WebSession - Component-targetted feedback message
  was left unrendered. This could be because you are missing a
 FeedbackPanel
  on the page.  Message: [FeedbackMessage message = Field
  'contact_postalcode' is required., reporter = contact_postalcode, level
 =
  ERROR]
 
  In the page source it shows:
 
  div id=feedback wicket:id=feedback
  wicket:panel /wicket:panel
  /div
 
  Thanks,
 
  Anna
 
 

 --
 View this message in context:
 http://old.nabble.com/Feedback-panel-in-Modal-window-tp27408273p27427705.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




-- 
Anna Simbirtsev
(416) 729-7331


Re: webapp authentication

2010-02-03 Thread Les Hazlewood
Hi Martin,

What do you mean by you couldn't set Shiro up?  Did you mean
shiro-wicket in wicketstuff?  Or just Shiro's out-of-the-box web
support?

Setting up Shiro for any webapp is as painless as possible:

http://cwiki.apache.org/confluence/display/SHIRO/Web

Of course, any recommendations are appreciated.

Cheers,

Les

On Wed, Feb 3, 2010 at 10:25 AM, Martin Asenov mase...@velti.com wrote:
 Hello guys!

 I want to ask you which security frameworks you use when it comes to 
 authenticating users through JPA.
 I relied on JSecurity/Shiro but I can't set it up. I'm looking for a simple 
 framework but secure enough (not looking for extraordinary security), which I 
 can set pretty easily with my database that holds my custom User objects.

 Please give me some suggestions.

 Thanks!

 Regards,
 Martin



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



Where is the full client filename during FileUpload?

2010-02-03 Thread Nicola Tucci
Hi all,
I'm using a FIleUpload form component in order to save the full client
filename (path + filename, i.e.
/home/jdoe/myfiles/MyUploadableDocument.pdf), but for what I can see, I can
retrieve only the filename using FileItem.getName().
I've tried to deeply debug wicket code to find the full path, but I only
find client filename, server temp name, content-type, size.

Someone on this forum states that browsers often send only the filename, not
the full path (security reason??), but how can servers bind the source file
without the full name? It must be somewhere, maybe in the servlet request...

Besides, there is a smarter way to retrieve the full name (the one that
appears in the input component!) without perform the upload? My use case
oblige me to use FileUpload form component because the user use browser's
popup search dialog.

Thanks to all,
BYE!


Bookmarkable link url is broken in 1.4.6 after ajax update

2010-02-03 Thread Objelean Alex
The wicket-1.4.6 release contains a fix for WICKET-2312, which is a great
thing. But apparently it breaks Bookmarkable link url in situation when it
is updated by ajax. I'm not sure if this description is enough for fast
reproduction, but I will try to add a quickstart asap and will open a JIRA
issue.

This issue is pretty critical. I cannot migrate the application to
wicket-1.4.6 because of it.

Thank you!


Re: Where is the full client filename during FileUpload?

2010-02-03 Thread Andrew Lombardi
FileUploadField takes a FileUpload model object which has a method called: 
getClientFileName

and as far as the path is concerned, it is saved to a temp file in a temp 
directory

On Feb 3, 2010, at 9:04 AM, Nicola Tucci wrote:

 Hi all,
 I'm using a FIleUpload form component in order to save the full client
 filename (path + filename, i.e.
 /home/jdoe/myfiles/MyUploadableDocument.pdf), but for what I can see, I can
 retrieve only the filename using FileItem.getName().
 I've tried to deeply debug wicket code to find the full path, but I only
 find client filename, server temp name, content-type, size.
 
 Someone on this forum states that browsers often send only the filename, not
 the full path (security reason??), but how can servers bind the source file
 without the full name? It must be somewhere, maybe in the servlet request...
 
 Besides, there is a smarter way to retrieve the full name (the one that
 appears in the input component!) without perform the upload? My use case
 oblige me to use FileUpload form component because the user use browser's
 popup search dialog.
 
 Thanks to all,
 BYE!


To our success!

Mystic Coders, LLC | Code Magic | www.mysticcoders.com

ANDREW LOMBARDI | and...@mysticcoders.com
2321 E 4th St. Ste C-128, Santa Ana CA 92705
ofc: 714-816-4488
fax: 714-782-6024
cell: 714-697-8046
linked-in: http://www.linkedin.com/in/andrewlombardi
twitter: http://www.twitter.com/kinabalu

Eco-Tip: Printing e-mails is usually a waste.


This message is for the named person's use only. You must not, directly or 
indirectly, use,
 disclose, distribute, print, or copy any part of this message if you are not 
the intended recipient.




Re: Where is the full client filename during FileUpload?

2010-02-03 Thread Anantha Kumaran
Technically you cann't get the full path of the file using javascript. you
are allowed the access the relative name of the file
only.it is also read only (security reason). otherwise you could upload a
file without the knowledge of the user.

see http://www.cs.tut.fi/~jkorpela/forms/file.html for reference

2010/2/3 Nicola Tucci nytrus...@gmail.com

 Hi all,
 I'm using a FIleUpload form component in order to save the full client
 filename (path + filename, i.e.
 /home/jdoe/myfiles/MyUploadableDocument.pdf), but for what I can see, I can
 retrieve only the filename using FileItem.getName().
 I've tried to deeply debug wicket code to find the full path, but I only
 find client filename, server temp name, content-type, size.

 Someone on this forum states that browsers often send only the filename,
 not
 the full path (security reason??), but how can servers bind the source file
 without the full name? It must be somewhere, maybe in the servlet
 request...

 Besides, there is a smarter way to retrieve the full name (the one that
 appears in the input component!) without perform the upload? My use case
 oblige me to use FileUpload form component because the user use browser's
 popup search dialog.

 Thanks to all,
 BYE!




-- 

Anantha Kumaran


Re: enclosures only allow one input component?

2010-02-03 Thread Igor Vaynberg
enclosures dont really play nice with formcomponents, use
EnclsoureContainer instead.

On Wed, Feb 3, 2010 at 3:03 AM, Jeroen Dijkmeijer jer...@dijkmeijer.com wrote:
 it looks like only one input component (the one indicated by the child
 attribute) get its value bound to the model inside an enclosure tag, the
 documentation (WIA and
 http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html) could give some more
 information on this constraint.
 Is there a way to get around this by overloading methods or so, or should I
 proceed with grouping them on panels, fragments or something else?

 regards,
 Jeroen.
 On Feb 2, 2010, at 9:58 PM, Jeroen Dijkmeijer wrote:

 Hi,

 I'm struggling my way into wicket, I've a sort of wizard like page, after
 the user submits the form, new input fields become visible. I also want a
 textinput field to become visible together with a dropdownbox.
 In the constructor I fill the choices and set the initial (selected)
 value. After the user submits, I set the textinputfield to be visible, which
 will cause all the components in the surrounded enclosure to become visible.
 So far so good however the selected value is not recognised and the
 choose one thing is shown. Code snippets are below
 Any help is appreciated.
 Jeroen
 constructor:
 ..
               String pollType = Wanneer;
               lijst = new ArrayListString();
               lijst.add(Wanneer);
               lijst.add(Wie);
               lijst.add(Waar);
               lijst.add(Wat);
               lijst.add(Welk bedrag);
               lijst.add(Weet nog niet);
               form.add(new ListChoiceString(poll_type, new
 Model(pollType), lijst));
               add(form);


 inner class:
       class SaveButton extends Button {
               /**
                *
                */
               private static final long serialVersionUID =
 109611211318049267L;

               private SaveButton() {
                       super(save, new ResourceModel(save));
               }

               @Override
               public void onSubmit() {
                       try {

 getParent().get(poll_part_header).setVisible(true);

 My html code:
 wicket:enclosure child=poll_part_header
       div class=input-linewicket:message
 key=lbl.poll.part.header[header]/wicket:message
               select wicket:id=poll_type size=1/
               input wicket:id=poll_part_header type=text size=50/
       /div
 /wicket:enclosure


 -
 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: ERROR: Received Ajax response with code: 403

2010-02-03 Thread Igor Vaynberg
i think 10ms ajax ping to the server is too often. your server
probably takes more then 10ms to generate a response so you will get
all these ajax requests queue up... use a more reasonable duration,
like 1 second.

-igor

On Wed, Feb 3, 2010 at 5:12 AM, Tomasz Dziurko tdziu...@gmail.com wrote:
 I have problem with page heavily using ajax and error 403 returned by
 ajax response.

 There are 4 components on the page which are shown only for specific
 period of time. I use AbstractAjaxTimerBehavior (duration 10ms) which
 is calculating current phase and then according to this phase I make
 some components visible and others invisible (user has limited time to
 answer question and after it ends he's redirected to next question).

 Sometimes this page stops responding to any user clicks. After running
 this application in debug mode I noticed that among many ajax info
 messages I get one error:

 ERROR: Received Ajax response with code: 403

 Is this related to Wicket or I should talk with my server provider to
 check if he doesn't block ajax requests that come too often?
 I am using Wicket 1.3.7

 Thank you in advance for any help.

 --
 Regards
 Tomasz Dziurko

 -
 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: Bookmarkable link url is broken in 1.4.6 after ajax update

2010-02-03 Thread vineet semwal
I noticed the same problem after moving to 1.4.6 ,
I am creating a new bookmarkablepagelink on ajax submit ,
 current page mounted path is prefixed in my case,
i checked it with 1.4.5,it doesn't have that problem.

for eg. bookmarkablepagelink created is
http://foo/currentpagemountedpath/destinationpagemountedpath


On Wed, Feb 3, 2010 at 10:44 PM, Objelean Alex alex.objel...@gmail.comwrote:

 The wicket-1.4.6 release contains a fix for WICKET-2312, which is a great
 thing. But apparently it breaks Bookmarkable link url in situation when it
 is updated by ajax. I'm not sure if this description is enough for fast
 reproduction, but I will try to add a quickstart asap and will open a JIRA
 issue.

 This issue is pretty critical. I cannot migrate the application to
 wicket-1.4.6 because of it.

 Thank you!




-- 
regards,
Vineet Semwal


Re: Bookmarkable link url is broken in 1.4.6 after ajax update

2010-02-03 Thread vineet semwal
i have opened the jira issue for the same problem,
https://issues.apache.org/jira/browse/WICKET-2717

On Thu, Feb 4, 2010 at 1:07 AM, vineet semwal vineetsemwal1...@gmail.comwrote:

 I noticed the same problem after moving to 1.4.6 ,
 I am creating a new bookmarkablepagelink on ajax submit ,
  current page mounted path is prefixed in my case,
 i checked it with 1.4.5,it doesn't have that problem.

 for eg. bookmarkablepagelink created is
 http://foo/currentpagemountedpath/destinationpagemountedpath



 On Wed, Feb 3, 2010 at 10:44 PM, Objelean Alex alex.objel...@gmail.comwrote:

 The wicket-1.4.6 release contains a fix for WICKET-2312, which is a great
 thing. But apparently it breaks Bookmarkable link url in situation when it
 is updated by ajax. I'm not sure if this description is enough for fast
 reproduction, but I will try to add a quickstart asap and will open a JIRA
 issue.

 This issue is pretty critical. I cannot migrate the application to
 wicket-1.4.6 because of it.

 Thank you!




 --
 regards,
 Vineet Semwal




-- 
regards,
Vineet Semwal


Re: wicketstuff-push and component replacing

2010-02-03 Thread vineet semwal
i can't build the wicketstuff core for last few days,i think the problem is
some projects
have their parents as 1.4-SNAPSHOT while others have their parents as
1.4.2-SNAPSHOT.

On Wed, Feb 3, 2010 at 9:59 PM, Rodolfo Hansen kry...@gmail.com wrote:

 The changes are in 1.4-SNAPSHOT

 But it seems wicketstuff isn't building the package at the moment, I will
 look into that.

 For now, you need to checkout the source and build it yourself.

 On Wed, Feb 3, 2010 at 8:21 AM, Roland rolan...@gmail.com wrote:

 
  Thank you for replying.
 
  As I understand you made some changes, from where can I get them.
  Originally I used this for source:
  http://wicketstuff.org/maven/repository/org/wicketstuff/push/1.4.1/
 



 
  but I don't see any changes there.
 
  I agree on part that push service is complicated.
  I could try comet if I'd find proper example and it would allow me to do
  what I'd like to achieve.
 
  But AjaxTimeoutBehavior..did you mean AbstractAjaxTimerBehavior instead,
 as
  I find no references to the first one? If yes, I implemented it with it
  currently, but new alarms checking with it creates considerable traffic
 and
  is therefore not the cleverest solution I suppose
 
  Roland
 
  Rodolfo Hansen wrote:
  
   Try now...
  
   To me, the push service is overly complicated, and you could easily get
   away
   with simply using Wicket's AjaxTimeoutBehavior as there are no
 technical
   advantages over the later.
  
   The comet version of push offers a couple of serious advantages for the
   server, and client side. Why can't you use that instead?
  
  
   On Tue, Jan 26, 2010 at 11:12 AM, Rodolfo Hansen kry...@gmail.com
  wrote:
  
   I have basically concentrated on the CometD Service
   This should be a simple bug to fix.
  
  
  
   On Fri, Jan 22, 2010 at 10:34 AM, Roland Vares
   roland.va...@uptime.eewrote:
  
   Hello,
  
   I'm currently developing wicket based application, which displays
  alarms
   on map and allows their modification.
   New alarms are sent to server through soap service and map with few
   other
   components on page for all browser clients needs to be refreshed.
  
   I'm using wicketstuff-push for the push service implementation.
   org.wicketstuff.push.timer.TimerPushService to be clear.
  
  
  
   As an in examples I have method on wicket page which is activated
 when
   server sends notification about an event:
  // set new listener for incoming events
  final IPushTarget pushTarget =
   getTimerPushService().installPush(this);
  getPushService().addMapListener(new
   MapServiceListener() {
  public void onEventChange(final Event event) {
  if
   (pushTarget.isConnected()) {
  Label label = new Label(labelonpage,label);
   //label
   to be replaced
  pushTarget.addComponent(label);
  pushTarget.trigger();
  }
  else { // remove inactive listener
  
LOG.debug(Removing map listener  + this);
  
getPushService().removeMapListener(this);
  }
  ...
  
   Problems start with line :
   Label label = new Label(labelonpage,label);
  
   which results with:
   org.apache.wicket.WicketRuntimeException: There is no application
   attached
   to current thread btpool0-2
  at
   org.apache.wicket.Application.get(Application.java:179)
  at
   org.apache.wicket.Component.getApplication(Component.java:1323)
  at
  org.apache.wicket.Component.init(Component.java:920)
  
   It seems that in this push method, context is lost, I have no
 session,
   request,...
  
   Is there any way I gan regain it or make new?
  
   Or how should I implement push service, which needs to replace some
   components on page?
  
   Thanks in advance,
   Roland
  
  
  
  
   --
   Rodolfo Hansen
   CTO, KindleIT Software Development
   Email: rhan...@kindleit.net
   Mobile: +1 (809) 860-6669
  
  
  
  
   --
   Rodolfo Hansen
   CTO, KindleIT Software Development
   Email: rhan...@kindleit.net
   Mobile: +1 (809) 860-6669
  
  
 
  --
  View this message in context:
 
 http://old.nabble.com/wicketstuff-push-and-component-replacing-tp27274128p27435497.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
 
 


 --
 Rodolfo Hansen
 CTO, KindleIT Software Development
 Email: rhan...@kindleit.net
 Mobile: +1 (809) 860-6669




-- 
regards,
Vineet Semwal


AjaxUpdating ends up with null model objects

2010-02-03 Thread Marek Šabo
Hi all,

I would like to ask something about ajax and form submitting, I'm
definitely missing something from concepts. I'll try to describe as the
code is too long to post.

I have two ajaxcheckboxes which we can think of as binary switches.
Inside their onUpdate method I call a method which has four cases of
reading data from db and this method updates specific dropdownchoice
list with setChoices. Form has additional three fields. Im using
Compound property model with ValueMap. When i submit the form I info()
the valuemap and i only see those three non-ajaxified component's values
and I checked that ajaxified components have null modelobjects. I
suppose I'm missing some simple switch method but it could be more complex.

So, whats that something I'm not aware of, that makes my modelobjects
which are updated during ajax requests nullified?

Best regards,

 
--
Marek Šabo


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



wicketstuff-core subprojects correct version number??

2010-02-03 Thread Rodolfo Hansen
Which should it be?

Anyone else know about this?

On Wed, Feb 3, 2010 at 6:04 PM, vineet semwal vineetsemwal1...@gmail.comwrote:

 i can't build the wicketstuff core for last few days,i think the problem is
 some projects
 have their parents as 1.4-SNAPSHOT while others have their parents as
 1.4.2-SNAPSHOT.

 On Wed, Feb 3, 2010 at 9:59 PM, Rodolfo Hansen kry...@gmail.com wrote:

  The changes are in 1.4-SNAPSHOT
 
  But it seems wicketstuff isn't building the package at the moment, I will
  look into that.
 
  For now, you need to checkout the source and build it yourself.
 
  On Wed, Feb 3, 2010 at 8:21 AM, Roland rolan...@gmail.com wrote:
 
  
   Thank you for replying.
  
   As I understand you made some changes, from where can I get them.
   Originally I used this for source:
   http://wicketstuff.org/maven/repository/org/wicketstuff/push/1.4.1/
  
 
 
 
  
   but I don't see any changes there.
  
   I agree on part that push service is complicated.
   I could try comet if I'd find proper example and it would allow me to
 do
   what I'd like to achieve.
  
   But AjaxTimeoutBehavior..did you mean AbstractAjaxTimerBehavior
 instead,
  as
   I find no references to the first one? If yes, I implemented it with it
   currently, but new alarms checking with it creates considerable traffic
  and
   is therefore not the cleverest solution I suppose
  
   Roland
  
   Rodolfo Hansen wrote:
   
Try now...
   
To me, the push service is overly complicated, and you could easily
 get
away
with simply using Wicket's AjaxTimeoutBehavior as there are no
  technical
advantages over the later.
   
The comet version of push offers a couple of serious advantages for
 the
server, and client side. Why can't you use that instead?
   
   
On Tue, Jan 26, 2010 at 11:12 AM, Rodolfo Hansen kry...@gmail.com
   wrote:
   
I have basically concentrated on the CometD Service
This should be a simple bug to fix.
   
   
   
On Fri, Jan 22, 2010 at 10:34 AM, Roland Vares
roland.va...@uptime.eewrote:
   
Hello,
   
I'm currently developing wicket based application, which displays
   alarms
on map and allows their modification.
New alarms are sent to server through soap service and map with few
other
components on page for all browser clients needs to be refreshed.
   
I'm using wicketstuff-push for the push service implementation.
org.wicketstuff.push.timer.TimerPushService to be clear.
   
   
   
As an in examples I have method on wicket page which is activated
  when
server sends notification about an event:
   // set new listener for incoming events
   final IPushTarget pushTarget =
getTimerPushService().installPush(this);
   getPushService().addMapListener(new
MapServiceListener() {
   public void onEventChange(final Event event) {
   if
(pushTarget.isConnected()) {
   Label label = new Label(labelonpage,label);
//label
to be replaced
   pushTarget.addComponent(label);
   pushTarget.trigger();
   }
   else { // remove inactive listener
   
 LOG.debug(Removing map listener  + this);
   
 getPushService().removeMapListener(this);
   }
   ...
   
Problems start with line :
Label label = new Label(labelonpage,label);
   
which results with:
org.apache.wicket.WicketRuntimeException: There is no application
attached
to current thread btpool0-2
   at
org.apache.wicket.Application.get(Application.java:179)
   at
org.apache.wicket.Component.getApplication(Component.java:1323)
   at
   org.apache.wicket.Component.init(Component.java:920)
   
It seems that in this push method, context is lost, I have no
  session,
request,...
   
Is there any way I gan regain it or make new?
   
Or how should I implement push service, which needs to replace some
components on page?
   
Thanks in advance,
Roland
   
   
   
   
--
Rodolfo Hansen
CTO, KindleIT Software Development
Email: rhan...@kindleit.net
Mobile: +1 (809) 860-6669
   
   
   
   
--
Rodolfo Hansen
CTO, KindleIT Software Development
Email: rhan...@kindleit.net
Mobile: +1 (809) 860-6669
   
   
  
   --
   View this message in context:
  
 
 http://old.nabble.com/wicketstuff-push-and-component-replacing-tp27274128p27435497.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
  
 

JIRA WICKET-1292 fix

2010-02-03 Thread roger.b...@creoss.com


From: roger.b...@creoss.com
Sent: Wednesday, February 03, 2010 3:12 PM
To: d...@wicket.apache.org
Subject: JIRA WICKET-1292 fix

I am using Wicket 1.4.5 and have implemented the workaround outlined in this 
ticket by Maurice Marrink. However, I still experience the same problem. That 
is, the resultant page is not the intended page but goes back to the Home.page.

Is there a fix for this now?

If no fix what is the current workaround?

How can I get some help on making wicketTester work?

Thanks


Roger Ball
Creoss Business Solutions

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



Loading resources (CSS,JS) from JARs ?

2010-02-03 Thread Ashika Umanga Umagiliya

Greetings,

While playing around with wicket-stuffminis , I noticed that the Moontip 
load its CSS,JavaScript from the class path (wicketstuff-minis.jar)
eg: 
http://localhost:8080/minis-examples/resources/org.wicketstuff.minis.mootipbehavior.MootipBehaviour/mootools.v1.11.js
-which I couldnt find in the 'webapp' folder ,but in 
'minis-1.4.2-SNAPSHOT-javadoc.jar' file.


I was wondering,can I bundle my CSS,Js into JARs like this,without 
copying into  'webapp' folder?

How does wicket process this ? Is it the path 'resources/' ?

Thanks
umanga

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



Re: component .... not found on page

2010-02-03 Thread cresc

Thanks Eugene/Igor.. Finally managed to solve the issue. 

Since I don't get this error if I replace the panel with an empty panel or
any other panel I started focussing on the panel that is being replaced
with. I removed components one by one and finally ended up with this
datelabel. If the date label is added I got this error, if not no error.
Then I discovered it is all caused by the timezone flag in
patterdateconverter. If applyTimezone diff flag is true it gives me this
error. 
 
 item.add(new DateLabel(createdTime, new PatternDateConverter(dd MMM 
hh:mm a, true)));

How should I solve this ? For now I have changed the timezone flag to false.
Also please point me to any informations on how to handle timezone
differences in application.

Thanks,
cresc..
-- 
View this message in context: 
http://old.nabble.com/component--not-found-on-page-tp27421536p27446573.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



DataTable : Setting the Column with from Java ?

2010-02-03 Thread Ashika Umanga Umagiliya

Greetings,

For my DataTable ,I create 'IColumn's using data from an XML file.

In the code-snippet below, the 'vcol' instance has information about 
Column-title,bean property field,visible or not..etc.
Now I want to set the column width using the same way.How can I change 
the CSS property from Java ?

Any tips how I can do this?



ListIColumn columns;
//For each Column in Table
for (Column vcol : table.getColumns()) {
   if (!vcol.isVisible()) {
   continue;
   }

   if (vcol.getId().equals(id)) {
  
   AbstractColumnE linkcolumnModel=null;

   if(vcol.isSort()){
   linkcolumnModel=new SortableIdColumn(new 
Model(vcol.getTitle()),vcol.getValue());

   }else{
   linkcolumnModel=new SortableIdColumn(new 
Model(vcol.getTitle()));

   }

   columns.add(linkcolumnModel);

   } else if (vcol.isLinkout()) {
   LinkoutColumn linkoutCol = new LinkoutColumn(new Model(vcol
   .getTitle()), vcol.getValue());
   columns.add(linkoutCol);

   } else {
   //Add normal datacolumn
   if(vcol.isSort()){
   columns.add(new PropertyColumnString(new 
Model(vcol.getTitle()),
vcol.getValue(),vcol.getValue()));
   }else{
   columns.add(new PropertyColumnString(new 
Model(vcol.getTitle()),
vcol.getValue()));
   }
   
 }


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



Re: wicketstuff-core subprojects correct version number??

2010-02-03 Thread vineet semwal
when i try to build the core i get the error at a point when calenderviews
is built ,

missing org.wicketstuff:jslibraries:jar:1.4.2-SNAPSHOT,

the jslibraries built will only generate 1.4-SNAPSHOT and hence the
mismatch,


On Thu, Feb 4, 2010 at 5:05 AM, Rodolfo Hansen kry...@gmail.com wrote:

 Which should it be?

 Anyone else know about this?

 On Wed, Feb 3, 2010 at 6:04 PM, vineet semwal vineetsemwal1...@gmail.com
 wrote:

  i can't build the wicketstuff core for last few days,i think the problem
 is
  some projects
  have their parents as 1.4-SNAPSHOT while others have their parents as
  1.4.2-SNAPSHOT.
 
  On Wed, Feb 3, 2010 at 9:59 PM, Rodolfo Hansen kry...@gmail.com wrote:
 
   The changes are in 1.4-SNAPSHOT
  
   But it seems wicketstuff isn't building the package at the moment, I
 will
   look into that.
  
   For now, you need to checkout the source and build it yourself.
  
   On Wed, Feb 3, 2010 at 8:21 AM, Roland rolan...@gmail.com wrote:
  
   
Thank you for replying.
   
As I understand you made some changes, from where can I get them.
Originally I used this for source:
http://wicketstuff.org/maven/repository/org/wicketstuff/push/1.4.1/
   
  
  
  
   
but I don't see any changes there.
   
I agree on part that push service is complicated.
I could try comet if I'd find proper example and it would allow me to
  do
what I'd like to achieve.
   
But AjaxTimeoutBehavior..did you mean AbstractAjaxTimerBehavior
  instead,
   as
I find no references to the first one? If yes, I implemented it with
 it
currently, but new alarms checking with it creates considerable
 traffic
   and
is therefore not the cleverest solution I suppose
   
Roland
   
Rodolfo Hansen wrote:

 Try now...

 To me, the push service is overly complicated, and you could easily
  get
 away
 with simply using Wicket's AjaxTimeoutBehavior as there are no
   technical
 advantages over the later.

 The comet version of push offers a couple of serious advantages for
  the
 server, and client side. Why can't you use that instead?


 On Tue, Jan 26, 2010 at 11:12 AM, Rodolfo Hansen kry...@gmail.com
 
wrote:

 I have basically concentrated on the CometD Service
 This should be a simple bug to fix.



 On Fri, Jan 22, 2010 at 10:34 AM, Roland Vares
 roland.va...@uptime.eewrote:

 Hello,

 I'm currently developing wicket based application, which displays
alarms
 on map and allows their modification.
 New alarms are sent to server through soap service and map with
 few
 other
 components on page for all browser clients needs to be refreshed.

 I'm using wicketstuff-push for the push service implementation.
 org.wicketstuff.push.timer.TimerPushService to be clear.



 As an in examples I have method on wicket page which is activated
   when
 server sends notification about an event:
// set new listener for incoming events
final IPushTarget pushTarget =
 getTimerPushService().installPush(this);

  getPushService().addMapListener(new
 MapServiceListener() {
public void onEventChange(final Event event) {
if
 (pushTarget.isConnected()) {
Label label = new
 Label(labelonpage,label);
 //label
 to be replaced
pushTarget.addComponent(label);
pushTarget.trigger();
}
else { // remove inactive listener

  LOG.debug(Removing map listener  + this);

  getPushService().removeMapListener(this);
}
...

 Problems start with line :
 Label label = new Label(labelonpage,label);

 which results with:
 org.apache.wicket.WicketRuntimeException: There is no application
 attached
 to current thread btpool0-2
at
 org.apache.wicket.Application.get(Application.java:179)
at
 org.apache.wicket.Component.getApplication(Component.java:1323)
at
org.apache.wicket.Component.init(Component.java:920)

 It seems that in this push method, context is lost, I have no
   session,
 request,...

 Is there any way I gan regain it or make new?

 Or how should I implement push service, which needs to replace
 some
 components on page?

 Thanks in advance,
 Roland




 --
 Rodolfo Hansen
 CTO, KindleIT Software Development
 Email: rhan...@kindleit.net
 Mobile: +1 (809) 860-6669




 --
 Rodolfo Hansen
 CTO, KindleIT Software Development
 Email: rhan...@kindleit.net
 Mobile: +1 

Re: Worldwide address form

2010-02-03 Thread Sam Barrow
anybody want to work on this? i have my collection of wicket components
and this is just the type of stuff id like to be included.

On Wed, 2010-02-03 at 11:26 +0100, Per Lundholm wrote:
 If you do that, you will be a hero. ;-)
 
 But why not, a component that handles all kinds of addresses in the world is
 a typical joint effort.
 
  If it is in the drop-down of countries, then it is supported. If not your
 country is supported, then contribute!
 
 /Per
 
 On Thu, Jan 28, 2010 at 11:30 PM, Chris Colman chr...@stepaheadsoftware.com
  wrote:
 
  I'm just wondering if anyone knows of a sample 'world address' entry
  form built using wicket.
 
  Ideally the data entry fields for the top level attributes:
 
  - world region
  - country
  - state/zone
 
  Would be drop down list boxes. The contents of any drop down (except the
  world region) would be dictated by the option(s) chosen in the drop down
  lists above it. Eg., if you change the country from Australia to USA
  then the state/zone drop down is populated with the US states.
 
  I was thinking of creating an interface for the data so that a generic
  world wide address form could be written to the interface but the
  implementation of the interface could be tailored to the way an
  individual app stores it's world data.
 
 
   -Original Message-
   From: Per Lundholm [mailto:per.lundh...@gmail.com]
   Sent: Friday, 29 January 2010 8:26 AM
   To: users@wicket.apache.org
   Subject: Re: functional testing
  
   We write tests first and use Wicket's built-in testing.
  
   It has some quirks so you may have to spend time with figuring out how
  to
   click an AjaxCheckBox, for instance.
  
   The tests target the logic of the view, such as when clicking here,
  that
   other thing should be disabled.
  
   Good test coverage really pays off when you have 20 different webapps
  and
   need to work some here and some there.
  
   /Per
  
   On Mon, Jan 25, 2010 at 3:52 AM, Kent Tong k...@cpttm.org.mo wrote:
  
   
For functional testing, I'd suggest Selenium.
   
For unit testing of Wicket pages, I'd suggest Wicket Page Test
(http://wicketpagetest.sourceforge.net).
   
-
--
Kent Tong
Better way to unit test Wicket pages (
http://wicketpagetest.sourceforge.net)
Books on CXF, Axis2, Wicket, JSF (http://http://agileskills2.org)
--
View this message in context:
http://old.nabble.com/functional-testing-tp27278781p27301553.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
 
 



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



AW: Loading resources (CSS,JS) from JARs ?

2010-02-03 Thread Stefan Lindner
YEs, you can place your CSS, JS, IMG/GIF etc. where your java and HTML resides 
and pack them into your jar file.
You can refert to them in CSS like this

.myClass{
background-image : 
url(resources/com.mycomp.mypackage.ReferenceClass/picture.gif);
}

an e.g. render the references into HTML's head section like

class MyComponent {
add(new AbstractBehavior() {
private static final long serialVersionUID = 1L;
@Override
public void renderHead(final IHeaderResponse response) {
response.renderCSSReference(/* look into 
JavaDoc*/);
}
}
}

or

class MyComponent {
add(new HeaderContributor(/* look into JavaDoc */));
}

There are more different ways to do this but it's a good starting point for 
reading documentation. But if You do this: be sure to read Wicket Mailing list. 
There were some issues with too many open files when Wicket reads thoses 
resources form jar files.

Stefan


-Ursprüngliche Nachricht-
Von: Ashika Umanga Umagiliya [mailto:auma...@biggjapan.com] 
Gesendet: Donnerstag, 4. Februar 2010 02:57
An: users@wicket.apache.org
Betreff: Loading resources (CSS,JS) from JARs ?

Greetings,

While playing around with wicket-stuffminis , I noticed that the Moontip 
load its CSS,JavaScript from the class path (wicketstuff-minis.jar)
eg: 
http://localhost:8080/minis-examples/resources/org.wicketstuff.minis.mootipbehavior.MootipBehaviour/mootools.v1.11.js
-which I couldnt find in the 'webapp' folder ,but in 
'minis-1.4.2-SNAPSHOT-javadoc.jar' file.

I was wondering,can I bundle my CSS,Js into JARs like this,without 
copying into  'webapp' folder?
How does wicket process this ? Is it the path 'resources/' ?

Thanks
umanga

-
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: DataTable : Setting the Column with from Java ?

2010-02-03 Thread nino martinez wael
use a attribute modifier


2010/2/4 Ashika Umanga Umagiliya auma...@biggjapan.com

 Greetings,

 For my DataTable ,I create 'IColumn's using data from an XML file.

 In the code-snippet below, the 'vcol' instance has information about
 Column-title,bean property field,visible or not..etc.
 Now I want to set the column width using the same way.How can I change the
 CSS property from Java ?
 Any tips how I can do this?



 ListIColumn columns;
 //For each Column in Table
 for (Column vcol : table.getColumns()) {
   if (!vcol.isVisible()) {
   continue;
   }

   if (vcol.getId().equals(id)) {
 AbstractColumnE linkcolumnModel=null;
   if(vcol.isSort()){
   linkcolumnModel=new SortableIdColumn(new
 Model(vcol.getTitle()),vcol.getValue());
   }else{
   linkcolumnModel=new SortableIdColumn(new
 Model(vcol.getTitle()));
   }

   columns.add(linkcolumnModel);

   } else if (vcol.isLinkout()) {
   LinkoutColumn linkoutCol = new LinkoutColumn(new Model(vcol
   .getTitle()), vcol.getValue());
 columns.add(linkoutCol);
   } else {
   //Add normal datacolumn
   if(vcol.isSort()){
   columns.add(new PropertyColumnString(new
 Model(vcol.getTitle()),
vcol.getValue(),vcol.getValue()));
 }else{
   columns.add(new PropertyColumnString(new
 Model(vcol.getTitle()),
vcol.getValue()));
 }
   }

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




Regarding editable datagrid

2010-02-03 Thread Kasiviswanadham Lakkadasu
Hi,

I am kasi. I am developing POC (Proof of concept) on editable datagrid using 
apache wicket framework to implement in one of the project.
I am using 'Apache Wicket 1.4.5 Release'. I have a question that whether 
editable datagrid features are available in the 'Apache Wicket 1.4.5' version 
or not?
If they are available, which classes support the editable datagrid features?

Expect response from you.

Thanks  regards,
Kasi




iGATE is Ranked No. 1 in DQ-IDC best IT employer survey and Ranked No.2 
by Business Today-Mercer Human Resource Consulting-TNS  in a cross industry 
survey of Best Companies to work for in India
DISCLAIMER-
Information transmitted by this EMAIL is proprietary to iGATE Group of 
Companies and is intended for use only by the individual 
or entity to whom it is addressed and may contain information that is 
privileged, confidential, or exempt from disclosure under 
applicable law. If you are not the intended recipient of this EMAIL immediately 
notify the sender at iGATE or mailad...@igate.com 
and delete this EMAIL including any attachments


Re: DataTable : Setting the Column with from Java ?

2010-02-03 Thread Ashika Umanga Umagiliya

Hi nino,

To which component I should add an attribute-modifier. In IColumn ,i 
should add the 'width' to the headers ,i assume.

any tips to do this?

nino martinez wael wrote:

use a attribute modifier


2010/2/4 Ashika Umanga Umagiliya auma...@biggjapan.com

  

Greetings,

For my DataTable ,I create 'IColumn's using data from an XML file.

In the code-snippet below, the 'vcol' instance has information about
Column-title,bean property field,visible or not..etc.
Now I want to set the column width using the same way.How can I change the
CSS property from Java ?
Any tips how I can do this?



ListIColumn columns;
//For each Column in Table
for (Column vcol : table.getColumns()) {
  if (!vcol.isVisible()) {
  continue;
  }

  if (vcol.getId().equals(id)) {
AbstractColumnE linkcolumnModel=null;
  if(vcol.isSort()){
  linkcolumnModel=new SortableIdColumn(new
Model(vcol.getTitle()),vcol.getValue());
  }else{
  linkcolumnModel=new SortableIdColumn(new
Model(vcol.getTitle()));
  }

  columns.add(linkcolumnModel);

  } else if (vcol.isLinkout()) {
  LinkoutColumn linkoutCol = new LinkoutColumn(new Model(vcol
  .getTitle()), vcol.getValue());
columns.add(linkoutCol);
  } else {
  //Add normal datacolumn
  if(vcol.isSort()){
  columns.add(new PropertyColumnString(new
Model(vcol.getTitle()),
   vcol.getValue(),vcol.getValue()));
}else{
  columns.add(new PropertyColumnString(new
Model(vcol.getTitle()),
   vcol.getValue()));
}
  }

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





  




RE: webapp authentication

2010-02-03 Thread Martin Asenov
Hi again , Les!

Well, here my recommendations come. By saying simple setup I mean creating a 
single realm that extends AuthorizingRealm and configuring a web security 
manager that uses that realm. That's all I need. I found nowhere in the sample 
projects such thing, even in the spring-hibernate project. For me it looks like 
the configuration of the realm there is not entirely written.

Appreciate your interest!

Best Regards,
Martin

-Original Message-
From: les.hazlew...@anjinllc.com [mailto:les.hazlew...@anjinllc.com] On Behalf 
Of Les Hazlewood
Sent: Wednesday, February 03, 2010 6:56 PM
To: users@wicket.apache.org
Subject: Re: webapp authentication

Hi Martin,

What do you mean by you couldn't set Shiro up?  Did you mean
shiro-wicket in wicketstuff?  Or just Shiro's out-of-the-box web
support?

Setting up Shiro for any webapp is as painless as possible:

http://cwiki.apache.org/confluence/display/SHIRO/Web

Of course, any recommendations are appreciated.

Cheers,

Les

On Wed, Feb 3, 2010 at 10:25 AM, Martin Asenov mase...@velti.com wrote:
 Hello guys!

 I want to ask you which security frameworks you use when it comes to 
 authenticating users through JPA.
 I relied on JSecurity/Shiro but I can't set it up. I'm looking for a simple 
 framework but secure enough (not looking for extraordinary security), which I 
 can set pretty easily with my database that holds my custom User objects.

 Please give me some suggestions.

 Thanks!

 Regards,
 Martin



-
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: DataTable : Setting the Column with from Java ?

2010-02-03 Thread nino martinez wael
I susspect you should add the attribute modifier to your LinkoutColumn
telling what css class you want to use.. I would have to see the html aswell
to help further..

2010/2/4 Ashika Umanga Umagiliya auma...@biggjapan.com

 Hi nino,

 To which component I should add an attribute-modifier. In IColumn ,i should
 add the 'width' to the headers ,i assume.
 any tips to do this?


 nino martinez wael wrote:

 use a attribute modifier


 2010/2/4 Ashika Umanga Umagiliya auma...@biggjapan.com



 Greetings,

 For my DataTable ,I create 'IColumn's using data from an XML file.

 In the code-snippet below, the 'vcol' instance has information about
 Column-title,bean property field,visible or not..etc.
 Now I want to set the column width using the same way.How can I change
 the
 CSS property from Java ?
 Any tips how I can do this?



 ListIColumn columns;
 //For each Column in Table
 for (Column vcol : table.getColumns()) {
  if (!vcol.isVisible()) {
  continue;
  }

  if (vcol.getId().equals(id)) {
AbstractColumnE linkcolumnModel=null;
  if(vcol.isSort()){
  linkcolumnModel=new SortableIdColumn(new
 Model(vcol.getTitle()),vcol.getValue());
  }else{
  linkcolumnModel=new SortableIdColumn(new
 Model(vcol.getTitle()));
  }

  columns.add(linkcolumnModel);

  } else if (vcol.isLinkout()) {
  LinkoutColumn linkoutCol = new LinkoutColumn(new Model(vcol
  .getTitle()), vcol.getValue());
columns.add(linkoutCol);
  } else {
  //Add normal datacolumn
  if(vcol.isSort()){
  columns.add(new PropertyColumnString(new
 Model(vcol.getTitle()),
   vcol.getValue(),vcol.getValue()));
}else{
  columns.add(new PropertyColumnString(new
 Model(vcol.getTitle()),
   vcol.getValue()));
}
  }

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











Re: Regarding editable datagrid

2010-02-03 Thread Leo . Erlandsson
I am kasi. I am developing POC (Proof of concept) on editable datagrid 
using apache wicket framework to implement in one of the project.
I am using 'Apache Wicket 1.4.5 Release'. I have a question that whether 
editable datagrid features are available in the 'Apache Wicket 1.4.5' 
version or not?
If they are available, which classes support the editable datagrid 
features?

Check out InMethod Grid. Click rows to edit.

http://wicketstuff.org/grid-examples/data-grid/editable

Of course you can also easily make an editable grid yourself using Wicket 
and Wicket Extensions standard classes.

Best regards,
Leo