Tab panel child

2009-07-20 Thread Gerald Fernando
Hello Friends,
How can i do tab panel with child coponent.
when i click first tab it should shows a Grid
2nd tab - panel
3rd tab - another componet
4th tab - Another componet

how can i achieve this?
if possible give me some model code

-- 
Thanksregards,
Gerald A


Re: best or common practice for application plug-ins

2009-07-20 Thread Sam Stainsby
Providing modules for others. And also providing an environment for third-
party modules. See for example:

https://svn.plone.org/svn/collective/

On Mon, 20 Jul 2009 08:29:51 +0300, Martin Makundi wrote:

 What are you aiming at? Providing modules to others or building software
 to your client/own company?
 
 In my opinnion modules are good for the public but not for internal /
 sophisticated (=educated) use.
 
 **
 Martin
 
 2009/7/20 Sam Stainsby s...@sustainablesoftware.com.au:
 I'm probably revealing my inexperience with J2EE environments in asking
 this, but how do Wicket programmers typically handle application add-
 ons (or plug-ins or modules).

 I'm interested in emulating what happens in the Zope/Plone world (which
 is where I've come from). In the case of Zope, you have a tool called
 'buildout' and configuration file (buildout.cfg) where you can, among
 other things, tell buildout what modules/plug-ins you want to install.
 You then run the buildout script, which will take care of finding
 dependencies, downloading your modules and dependencies and installing
 them into the right place. Then the next time you run Zope, those
 modules are available.

 Buildout used in this way is a tool used by sys admins after you have
 deployed your Zope instance. A concrete example might be to add LDAP
 authentication to Zope - this would involve using buildout to install
 the correct modules, and then going into Zope and configuring the LDAP
 components. I know it sounds very much like maven, and perhaps maven
 can be used in this way. But generally I have considered maven to be a
 developer tool - at least that is how I use it.

 In my current case, I have created a web application framework built
 using Wicket. I want to have a core component and the add-ons/plug-ins
 such as LDAP authentication, CMS components, etc. that can be installed
 easily into a generic Granite deployment.

 Does that makes sense? How have Wicket people approached this?

 Buidlout can also build and install modules you are developing, as well
 as configure parts of Zope (such as the timezone). Sometime you just
 use buildout to upgrade your modules. I'm interested in approaches that
 encompass that as well. I'm not to fussed about having to restart the
 server.


 -
 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: Tab panel child

2009-07-20 Thread Martin Makundi
You mean wicket TabbedPanel component?

http://wicketstuff.org/wicket13/compref/?wicket:bookmarkablePage=:org.apache.wicket.examples.compref.TabbedPanelPage

**
Martin

2009/7/20 Gerald Fernando gerald.anto.ferna...@gmail.com:
 Hello Friends,
 How can i do tab panel with child coponent.
 when i click first tab it should shows a Grid
 2nd tab - panel
 3rd tab - another componet
 4th tab - Another componet

 how can i achieve this?
 if possible give me some model code

 --
 Thanksregards,
 Gerald A


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



Re: best or common practice for application plug-ins

2009-07-20 Thread Martin Makundi
Different form wicket-stuff?

http://wicketstuff.org/confluence/display/STUFFWEB/Home

**
Martin

2009/7/20 Sam Stainsby s...@sustainablesoftware.com.au:
 Providing modules for others. And also providing an environment for third-
 party modules. See for example:

 https://svn.plone.org/svn/collective/

 On Mon, 20 Jul 2009 08:29:51 +0300, Martin Makundi wrote:

 What are you aiming at? Providing modules to others or building software
 to your client/own company?

 In my opinnion modules are good for the public but not for internal /
 sophisticated (=educated) use.

 **
 Martin

 2009/7/20 Sam Stainsby s...@sustainablesoftware.com.au:
 I'm probably revealing my inexperience with J2EE environments in asking
 this, but how do Wicket programmers typically handle application add-
 ons (or plug-ins or modules).

 I'm interested in emulating what happens in the Zope/Plone world (which
 is where I've come from). In the case of Zope, you have a tool called
 'buildout' and configuration file (buildout.cfg) where you can, among
 other things, tell buildout what modules/plug-ins you want to install.
 You then run the buildout script, which will take care of finding
 dependencies, downloading your modules and dependencies and installing
 them into the right place. Then the next time you run Zope, those
 modules are available.

 Buildout used in this way is a tool used by sys admins after you have
 deployed your Zope instance. A concrete example might be to add LDAP
 authentication to Zope - this would involve using buildout to install
 the correct modules, and then going into Zope and configuring the LDAP
 components. I know it sounds very much like maven, and perhaps maven
 can be used in this way. But generally I have considered maven to be a
 developer tool - at least that is how I use it.

 In my current case, I have created a web application framework built
 using Wicket. I want to have a core component and the add-ons/plug-ins
 such as LDAP authentication, CMS components, etc. that can be installed
 easily into a generic Granite deployment.

 Does that makes sense? How have Wicket people approached this?

 Buidlout can also build and install modules you are developing, as well
 as configure parts of Zope (such as the timezone). Sometime you just
 use buildout to upgrade your modules. I'm interested in approaches that
 encompass that as well. I'm not to fussed about having to restart the
 server.


 -
 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: error(validatable)

2009-07-20 Thread Igor Vaynberg
On Sat, Jul 18, 2009 at 9:19 AM, Kenneth NArinoc...@live.se wrote:

 You mean this row which I already have in my code?


 dataView.setItemReuseStrategy(ReuseIfModelsEqualStrategy.getInstance());

so i assume that since you have called this your have implemented
proper hashcode and equals in your model?

-igor



 Please, can someone test the actual quickstart I added before and once again
 added
 and give me a solution. I have sit with this problem for atleast 1,5 week
 now and
 I really though wicket was an easy framework to use.

 - Kenneth

 From: igor.vaynb...@gmail.com
 Date: Sat, 18 Jul 2009 09:14:24 -0700
 Subject: Re: error(validatable)
 To: users@wicket.apache.org

 you have to set an itemreusestrategy to reuse dataview items,
 otherwise they are replaced by new ones every request and you lose
 your feedback panel instance.

 -igor

 On Sat, Jul 18, 2009 at 3:32 AM, Kenneth NArinoc...@live.se wrote:
 
 
 
  Let's rephrase my problem.
 
 
 
  I connect a validator to a TextField in a DataView (inside
  populateItem() and connect a ComponentFeedbackPanel  to it.
 
 
                 final TextField tf = new TextField(data, new
  PropertyModel(row, data));
                 final ComponentFeedbackPanel tfFeedback = new
  ComponentFeedbackPanel(fb, tf);
                 tfFeedback.setOutputMarkupId(true);
                 item.add(tf);
                 item.add(tfFeedback);
 
  And I also have both in the HTML markup
 
 
                     tr wicket:id=rows
                         td nowrapinput wicket:id=data type=text
  /span wicket:id=fb/span/td
                     /tr
 
 
  Is this enough for the error reported in in onValidate() for the
  validator connected to the field
 
  with error(ivalidatable); should be displayed next to the field or does
  it require something more?
 
 
 
                 error(validatable, an_error_occured);
 
 
  Why I wonder is that it is not displayed next to the field, it is
  displayed in the common feedback panel.
 
 
 
  /Kenneth
 
 
 
 
 
 
 
 
 
  _
  Med Windows Live kan du ordna, redigera och dela med dig av dina foton.
 
  http://www.microsoft.com/sverige/windows/windowslive/products/photo-gallery-edit.aspx

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


 
 kolla in resten av Windows LiveT. Inte bara e-post - Windows LiveT är mycket
 mer än din inkorg. Mer än bara meddelanden

 -
 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: IModel parameters of StringResourceModel not getting detached

2009-07-20 Thread Jonas
done:
https://issues.apache.org/jira/browse/WICKET-2381

On Fri, Jul 17, 2009 at 4:52 PM, Johan Compagnerjcompag...@gmail.com wrote:
 please make a jira issue for this
 The detach of StringResourcemodel should walk over its param to check if it
 is a model and call detach on those.

 On Fri, Jul 17, 2009 at 10:44, Jonas barney...@gmail.com wrote:

 A question about StringResourceModel: it supports IModels in the
 'parameters' Object[] that
 are properly handled in StringResourceModel#getString, meaning they
 could get attached because
 of StringResourceModel. Shouldn't it also be the StringResourceModel's
 responsibility to properly
 detach them (from #onDetach)?

 Who's in general responsible to detach an IModel, specially those who
 aren't a Component's
 'default' IModel? Is that correct that any code that calls
 IModel#getObject() should also
 call IModel#detach() later in the same request?

 cheers,
 Jonas

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




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



Re: how to get some data from servlet

2009-07-20 Thread Igor Vaynberg
see WicketSessionFilter

-igor

On Sun, Jul 19, 2009 at 3:20 PM, Altuğ B. Altıntaşalt...@gmail.com wrote:
 Hi Igor;

 I found the problem; problem is when i hit my UploadServlet via http-get
 method , i simply write the url and hit the enter then below code is working

  Session wicketSession = Session.get();

 I can get wicket Session, wow !! it is great...

 BUT ...

 When i hit  my UploadServlet via http-post method, swfupload access in that
 way then i can NOT access wicketSession.

 I mean this code :

  Session wicketSession = Session.get();

 it throws :

 java.lang.IllegalStateException: you can only locate or create sessions in
 the context of a request cycle

 Any idea ?

 Thanks

 Altug..


 2009/7/14 Igor Vaynberg igor.vaynb...@gmail.com

 that doesnt make any sense. all things within the webapp share the
 session. you guys are welcome to create a quickstart that replicates
 this.

 -igor

 On Tue, Jul 14, 2009 at 3:47 AM, Altuğ B. Altıntaşalt...@gmail.com
 wrote:
  Also I have a problem like yours.
 
  Servlet session and Wicket's session are different so you are getting
 nul.
  Just debug your application and you will see that they have different
  session Id's.
 
  I tried to use WicketSessionFilter but it doesn't work.
 
  I am using wicket 1.3.5.
 
  Cheers...
 
  Altug.
 
  2009/6/23 danisevsky danisev...@gmail.com
 
  hello, I am using MyMultiFileUploadServlet for uploading files and in
 some
  wicket component I need find out how many files was uploaded.
  I was trying to set this number to the HttpSession in
  MyMultiFileUploadServlet and get it in the component:
 
                     HttpSession httpSession = ((WebRequest)
  getRequest()).getHttpServletRequest()
                             .getSession();
  String count = httpSession
                             .getAttribute(filesCount);
 
  but count is always null. Is there any way how to get some data from
  servlet? Thanks
 
 
 
 
  --
  Altuğ.
 

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




 --
 Altuğ.


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



Re: best or common practice for application plug-ins

2009-07-20 Thread Per Lundholm
Well, plug-ins, are they compile-time or run-time?  Sounds like compile-time
from your description.

Also, from your description, it sounds that it is more than web-tier.
Remember Wicket is web-tier only.

There are solutions for the server tier for plug-ins. Look att OSGi
http://www.osgi.org and ESB.

/Per

On Mon, Jul 20, 2009 at 8:08 AM, Martin Makundi 
martin.maku...@koodaripalvelut.com wrote:

 Different form wicket-stuff?

 http://wicketstuff.org/confluence/display/STUFFWEB/Home

 **
 Martin

 2009/7/20 Sam Stainsby s...@sustainablesoftware.com.au:
  Providing modules for others. And also providing an environment for
 third-
  party modules. See for example:
 
  https://svn.plone.org/svn/collective/
 
  On Mon, 20 Jul 2009 08:29:51 +0300, Martin Makundi wrote:
 
  What are you aiming at? Providing modules to others or building software
  to your client/own company?
 
  In my opinnion modules are good for the public but not for internal /
  sophisticated (=educated) use.
 
  **
  Martin
 
  2009/7/20 Sam Stainsby s...@sustainablesoftware.com.au:
  I'm probably revealing my inexperience with J2EE environments in asking
  this, but how do Wicket programmers typically handle application add-
  ons (or plug-ins or modules).
 
  I'm interested in emulating what happens in the Zope/Plone world (which
  is where I've come from). In the case of Zope, you have a tool called
  'buildout' and configuration file (buildout.cfg) where you can, among
  other things, tell buildout what modules/plug-ins you want to install.
  You then run the buildout script, which will take care of finding
  dependencies, downloading your modules and dependencies and installing
  them into the right place. Then the next time you run Zope, those
  modules are available.
 
  Buildout used in this way is a tool used by sys admins after you have
  deployed your Zope instance. A concrete example might be to add LDAP
  authentication to Zope - this would involve using buildout to install
  the correct modules, and then going into Zope and configuring the LDAP
  components. I know it sounds very much like maven, and perhaps maven
  can be used in this way. But generally I have considered maven to be a
  developer tool - at least that is how I use it.
 
  In my current case, I have created a web application framework built
  using Wicket. I want to have a core component and the add-ons/plug-ins
  such as LDAP authentication, CMS components, etc. that can be installed
  easily into a generic Granite deployment.
 
  Does that makes sense? How have Wicket people approached this?
 
  Buidlout can also build and install modules you are developing, as well
  as configure parts of Zope (such as the timezone). Sometime you just
  use buildout to upgrade your modules. I'm interested in approaches that
  encompass that as well. I'm not to fussed about having to restart the
  server.
 
 
  -
  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




How do I set a selected item outside of an inmethod datagrid?

2009-07-20 Thread Steve Tarlton
I have a table that contains history entries of an item table. Whenever I
change the selection in the item table, I repopulate the history in the
history table. What I would like to do is select the newest history entry in
the history table by default whenever I change the selection on the item
table.


Re: best or common practice for application plug-ins

2009-07-20 Thread Sam Stainsby
Yes, different because I'm not talking about a collection of components 
per se, but how add-on components are deployed to an already running 
application by systems administrators, not developers, as per my initial 
post.

On Mon, 20 Jul 2009 09:08:38 +0300, Martin Makundi wrote:

 Different form wicket-stuff?
 
 http://wicketstuff.org/confluence/display/STUFFWEB/Home
 
 **
 Martin
 
 2009/7/20 Sam Stainsby s...@sustainablesoftware.com.au:
 Providing modules for others. And also providing an environment for
 third- party modules. See for example:

 https://svn.plone.org/svn/collective/

 On Mon, 20 Jul 2009 08:29:51 +0300, Martin Makundi wrote:

 What are you aiming at? Providing modules to others or building
 software to your client/own company?

 In my opinnion modules are good for the public but not for internal /
 sophisticated (=educated) use.

 **
 Martin

 2009/7/20 Sam Stainsby s...@sustainablesoftware.com.au:
 I'm probably revealing my inexperience with J2EE environments in
 asking this, but how do Wicket programmers typically handle
 application add- ons (or plug-ins or modules).

 I'm interested in emulating what happens in the Zope/Plone world
 (which is where I've come from). In the case of Zope, you have a tool
 called 'buildout' and configuration file (buildout.cfg) where you
 can, among other things, tell buildout what modules/plug-ins you want
 to install. You then run the buildout script, which will take care of
 finding dependencies, downloading your modules and dependencies and
 installing them into the right place. Then the next time you run
 Zope, those modules are available.

 Buildout used in this way is a tool used by sys admins after you have
 deployed your Zope instance. A concrete example might be to add LDAP
 authentication to Zope - this would involve using buildout to install
 the correct modules, and then going into Zope and configuring the
 LDAP components. I know it sounds very much like maven, and perhaps
 maven can be used in this way. But generally I have considered maven
 to be a developer tool - at least that is how I use it.

 In my current case, I have created a web application framework built
 using Wicket. I want to have a core component and the
 add-ons/plug-ins such as LDAP authentication, CMS components, etc.
 that can be installed easily into a generic Granite deployment.

 Does that makes sense? How have Wicket people approached this?

 Buidlout can also build and install modules you are developing, as
 well as configure parts of Zope (such as the timezone). Sometime you
 just use buildout to upgrade your modules. I'm interested in
 approaches that encompass that as well. I'm not to fussed about
 having to restart the server.


 -
 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



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



Re: best or common practice for application plug-ins

2009-07-20 Thread Sam Stainsby
On Mon, 20 Jul 2009 09:10:57 +0200, Per Lundholm wrote:

 Well, plug-ins, are they compile-time or run-time?  Sounds like
 compile-time from your description.

Runtime I think if I understand you correctly. Suppose a sys admin has 
already deployed the war file for the core application and wants to add 
some functions.

 Also, from your description, it sounds that it is more than web-tier.
 Remember Wicket is web-tier only.
 
 There are solutions for the server tier for plug-ins. Look att OSGi
 http://www.osgi.org and ESB.

It could well be more than web-tier, but I thought if anyone has done 
this is would be a Wicket user :-) I looked at OSGi before I started my 
framework. I didn't see anything about deployment of add-ons/plug-ins. I 
already have a framework that incorporates IoC as a fundamental feature. 
Its the actual deployment of add-on functionality that interests me. ESB 
on first glance looks way too complicated, and I'm not sure it even does 
what I want.


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



Re: best or common practice for application plug-ins

2009-07-20 Thread Linda van der Pal
Seeing how it looks like you want to create your own CMS, you might want 
to have a look at Hippo CMS. They've built it in Wicket AFAIK.


Regards,
Linda

Sam Stainsby wrote:

On Mon, 20 Jul 2009 09:10:57 +0200, Per Lundholm wrote:

  

Well, plug-ins, are they compile-time or run-time?  Sounds like
compile-time from your description.



Runtime I think if I understand you correctly. Suppose a sys admin has 
already deployed the war file for the core application and wants to add 
some functions.


  

Also, from your description, it sounds that it is more than web-tier.
Remember Wicket is web-tier only.

There are solutions for the server tier for plug-ins. Look att OSGi
http://www.osgi.org and ESB.



It could well be more than web-tier, but I thought if anyone has done 
this is would be a Wicket user :-) I looked at OSGi before I started my 
framework. I didn't see anything about deployment of add-ons/plug-ins. I 
already have a framework that incorporates IoC as a fundamental feature. 
Its the actual deployment of add-on functionality that interests me. ESB 
on first glance looks way too complicated, and I'm not sure it even does 
what I want.



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




No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.5.392 / Virus Database: 270.13.20/2249 - Release Date: 07/19/09 17:59:00


  



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



Re: best or common practice for application plug-ins

2009-07-20 Thread Olger Warnier

Hi Sam,


It could well be more than web-tier, but I thought if anyone has done
this is would be a Wicket user :-) I looked at OSGi before I started  
my
framework. I didn't see anything about deployment of add-ons/plug- 
ins. I
already have a framework that incorporates IoC as a fundamental  
feature.
Its the actual deployment of add-on functionality that interests me.  
ESB
on first glance looks way too complicated, and I'm not sure it even  
does

what I want.

In our project we use OSGI to get a plugin structure. Interfaces  
defined in the 'core' layer are implemented in OSGI modules.
For a simple example see: http://www.joiningtracks.org/svn/his/trunk/questionnaire/ 
 (SVN code repo)
It's a questionnaire service that uses OSGI to load the question forms  
(based on wicket)


Our whole platform is constructed like that, the questionnaire service  
is the most simple one and easily adapted for your own use.


Kind Regards,

Olger


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



Re: Tab panel child

2009-07-20 Thread Gerald Fernando
yes i mean it.am debut to wicket.how can i achive it
please help me
my requirement is
 when i click first tab it should shows a Grid
 2nd tab - panel
 3rd tab - another componet
 4th tab - Another componet


On Mon, Jul 20, 2009 at 11:35 AM, Martin Makundi 
martin.maku...@koodaripalvelut.com wrote:

 You mean wicket TabbedPanel component?


 http://wicketstuff.org/wicket13/compref/?wicket:bookmarkablePage=:org.apache.wicket.examples.compref.TabbedPanelPage

 **
 Martin

 2009/7/20 Gerald Fernando gerald.anto.ferna...@gmail.com:
   Hello Friends,
  How can i do tab panel with child coponent.
  when i click first tab it should shows a Grid
  2nd tab - panel
  3rd tab - another componet
  4th tab - Another componet
 
  how can i achieve this?
  if possible give me some model code
 
  --
  Thanksregards,
  Gerald A
 

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




-- 
Thanksregards,
Gerald A


Re: Tab panel child

2009-07-20 Thread Martin Makundi
Copy-paste the example from the web and replace the one panel with a grid.

**
Martin

2009/7/20 Gerald Fernando gerald.anto.ferna...@gmail.com:
 yes i mean it.am debut to wicket.how can i achive it
 please help me
 my requirement is
  when i click first tab it should shows a Grid
 2nd tab - panel
 3rd tab - another componet
 4th tab - Another componet


 On Mon, Jul 20, 2009 at 11:35 AM, Martin Makundi 
 martin.maku...@koodaripalvelut.com wrote:

 You mean wicket TabbedPanel component?


 http://wicketstuff.org/wicket13/compref/?wicket:bookmarkablePage=:org.apache.wicket.examples.compref.TabbedPanelPage

 **
 Martin

 2009/7/20 Gerald Fernando gerald.anto.ferna...@gmail.com:
   Hello Friends,
  How can i do tab panel with child coponent.
  when i click first tab it should shows a Grid
  2nd tab - panel
  3rd tab - another componet
  4th tab - Another componet
 
  how can i achieve this?
  if possible give me some model code
 
  --
  Thanksregards,
  Gerald A
 

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




 --
 Thanksregards,
 Gerald A


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



Re: best or common practice for application plug-ins

2009-07-20 Thread Sam Stainsby
On Mon, 20 Jul 2009 10:25:17 +0200, Linda van der Pal wrote:

 Seeing how it looks like you want to create your own CMS, you might want
 to have a look at Hippo CMS. They've built it in Wicket AFAIK.

I've seen Hippo, but my main aim is not to create a CMS. One of my goal 
applications is more to do with identity management, but that's another 
story. However, I used CM as an example of something that could be added 
to the core framework. 


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



Re: best or common practice for application plug-ins

2009-07-20 Thread Sam Stainsby
OK, so I am an sys admin running some sort of OSGI-based application and 
now I want to add your questionnaire service and any other modules that 
it depends on. I also want to occasionally check for version updates. I 
want these updates and dependencies to be downloaded and put in the 
correct place for me so that when I restart the application, they are 
loaded. How do I do that? If it were Zope, I would add one line to a 
'buildout.cfg' file and run the 'buildout' script, and restart Zope.

On Mon, 20 Jul 2009 10:33:45 +0200, Olger Warnier wrote:

 In our project we use OSGI to get a plugin structure. Interfaces defined
 in the 'core' layer are implemented in OSGI modules. For a simple
 example see: http://www.joiningtracks.org/svn/his/trunk/questionnaire/
   (SVN code repo)
 It's a questionnaire service that uses OSGI to load the question forms
 (based on wicket)
 
 Our whole platform is constructed like that, the questionnaire service
 is the most simple one and easily adapted for your own use.



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



How to get DateField value

2009-07-20 Thread Ryan Burns
Hi i'm new to wicket, I wonder if any of yous can help me. I'm trying to get
the date selected from DateField component when the date is changed. I've
tried getConvertedInput() and getInput()but they just return null. Below is
my code, I've striped it down to just display the date in the console to
make things a bit easier.

Thanks,

Ryan

public class TestFormPanel extends Panel{

protected DateField dateField;
private static final long serialVersionUID = 1L;

public TestFormPanel (String id){
super(id);

dateField = new DateField(date, new Model(new Date()));
add(dateField);

dateField.add(new AjaxFormComponentUpdatingBehavior(onchange)
{
@Override
protected void onUpdate(AjaxRequestTarget arg0) {
System.out.println(new datee 
+ dateField.getInput());
System.out.println(new datee 
+ dateField.getConvertedInput());
}
  });
}
}


how to strip wicket tags for particular component

2009-07-20 Thread Vladimir Kovalyuk
I'm trying to convert main menu into components to control visibility of
items depending on the user logged in and the context.
I use borders to wrap menu item into li tags.

The problem is that the rendered markup contains additional wicket:border
and wicket:body tags. They breaks the menu and it is eventually displayed
as the simple list.

Stripping wicket tags at the application level would obviously solve the
problem. But I'd like to keep wicket tags for most markup and strip only for
menu.

Can I override Border class somehow and strip wicket tags manually?


Re: best or common practice for application plug-ins

2009-07-20 Thread Olger Warnier

Hi Sam,

How we do it with that service:

We have a file listener class  that checks if OSGI based jar files are  
put in a directory.
If so, these are automatically deployed to the OSGI runtime by the  
BundleDeployer class.
We miss a download / version updates part, but you could add that by  
downloading to the directory specfified by the FileListener.


There is no need to restart, OSGI updates the whole automatically (we  
use embedded felix for this).
Something to keep in mind, be careful with the OSGI versioning in this  
as that puts versions next to eachother.


This is used to provide custom, for our project - wicket based, user  
interface functionality.


Kind Regards,

Olger


On 20 jul 2009, at 12:51, Sam Stainsby wrote:

OK, so I am an sys admin running some sort of OSGI-based application  
and
now I want to add your questionnaire service and any other modules  
that
it depends on. I also want to occasionally check for version  
updates. I

want these updates and dependencies to be downloaded and put in the
correct place for me so that when I restart the application, they are
loaded. How do I do that? If it were Zope, I would add one line to a
'buildout.cfg' file and run the 'buildout' script, and restart Zope.

On Mon, 20 Jul 2009 10:33:45 +0200, Olger Warnier wrote:

In our project we use OSGI to get a plugin structure. Interfaces  
defined

in the 'core' layer are implemented in OSGI modules. For a simple
example see: http://www.joiningtracks.org/svn/his/trunk/ 
questionnaire/

 (SVN code repo)
It's a questionnaire service that uses OSGI to load the question  
forms

(based on wicket)

Our whole platform is constructed like that, the questionnaire  
service

is the most simple one and easily adapted for your own use.




-
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



org.apache.wicket.protocol.http.WebSession cannot be cast to org.apache.wicket.authentication.AuthenticatedWebSession

2009-07-20 Thread Denis Kandrov
Hi, All!

I'm trying to set up testing for my JavaEEWicket Application but ran across 
this error message:

org.apache.wicket.protocol.http.WebSession cannot be cast to 
org.apache.wicket.authentication.AuthenticatedWebSession

I'm using JUnitEE for run my tests at Application Server.
Also I found a couple of threads where the solution was to create an instance 
of ClientApplication and pass it to WicketTester: 
 
tester = new WicketTester(new ClientApplication()); 
 
It work fine, but this solution create many ClientApplication objects, that eat 
memory and creation of this objects take some time.
And also I have one ClientApplication, that deployed, created and runned at 
appServer.

How can I show to WicketTester my ClientApplication?

Denis.

Re: best or common practice for application plug-ins

2009-07-20 Thread Sam Stainsby
Thanks Olger, that gives me some ideas. I wonder if a maven could somehow 
be coerced to do the dependency/downloading part, perhaps with some new 
plugin.

On Mon, 20 Jul 2009 13:39:10 +0200, Olger Warnier wrote:

 Hi Sam,
 
 How we do it with that service:
 
 We have a file listener class  that checks if OSGI based jar files are
 put in a directory.
 If so, these are automatically deployed to the OSGI runtime by the
 BundleDeployer class.
 We miss a download / version updates part, but you could add that by
 downloading to the directory specfified by the FileListener.
 
 There is no need to restart, OSGI updates the whole automatically (we
 use embedded felix for this).
 Something to keep in mind, be careful with the OSGI versioning in this
 as that puts versions next to eachother.
 
 This is used to provide custom, for our project - wicket based, user
 interface functionality.
 
 Kind Regards,
 
 Olger
 
 
 On 20 jul 2009, at 12:51, Sam Stainsby wrote:
 
 OK, so I am an sys admin running some sort of OSGI-based application
 and
 now I want to add your questionnaire service and any other modules that
 it depends on. I also want to occasionally check for version updates. I
 want these updates and dependencies to be downloaded and put in the
 correct place for me so that when I restart the application, they are
 loaded. How do I do that? If it were Zope, I would add one line to a
 'buildout.cfg' file and run the 'buildout' script, and restart Zope.

 On Mon, 20 Jul 2009 10:33:45 +0200, Olger Warnier wrote:

 In our project we use OSGI to get a plugin structure. Interfaces
 defined
 in the 'core' layer are implemented in OSGI modules. For a simple
 example see: http://www.joiningtracks.org/svn/his/trunk/
 questionnaire/
  (SVN code repo)
 It's a questionnaire service that uses OSGI to load the question forms
 (based on wicket)

 Our whole platform is constructed like that, the questionnaire service
 is the most simple one and easily adapted for your own use.



 -
 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: How to get DateField value

2009-07-20 Thread Mathias Nilsson

You can get the model

 Date d = dateField.getModelObject();

Format it by using the SimpleDateFormat 
-- 
View this message in context: 
http://www.nabble.com/How-to-get-DateField-value-tp24567634p24568750.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: how to strip wicket tags for particular component

2009-07-20 Thread Mathias Nilsson

This may not be the best solution but it should work

DateTextField  dateField = new DateTextField(date, new ModelDate(new
Date())){
@Override
protected void onBeforeRender() {


Application.get().getMarkupSettings().setStripWicketTags(true);
super.onBeforeRender();
}
@Override
protected void onAfterRender() {

Application.get().getMarkupSettings().setStripWicketTags(false);
super.onAfterRender();
}

}; 
-- 
View this message in context: 
http://www.nabble.com/how-to-strip-wicket-tags-for-particular-component-tp24568122p24568890.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: how to strip wicket tags for particular component

2009-07-20 Thread Vladimir K

For now I use the following workaround

public class CleanBorder extends Border {
private boolean savedStripWicketTags; 

public CleanBorder(String id) {
super(id);
setRenderBodyOnly(true);
getBodyContainer().setRenderBodyOnly(true);
}

public CleanBorder(String id, IModel? model) {
super(id, model);
setRenderBodyOnly(true);
getBodyContainer().setRenderBodyOnly(true);
}

@Override
protected void onAfterRender() {
super.onAfterRender();

Application.get().getMarkupSettings().setStripWicketTags(savedStripWicketTags);
}

@Override
protected void onBeforeRender() {
savedStripWicketTags =
Application.get().getMarkupSettings().getStripWicketTags();
Application.get().getMarkupSettings().setStripWicketTags(true);
super.onBeforeRender();
}


that looks like a hack. I would prefer a settings on the MarkupContainer
that by default uses the application settings but in case of border can be
overridden.


Vladimir K wrote:
 
 I'm trying to convert main menu into components to control visibility of
 items depending on the user logged in and the context.
 I use borders to wrap menu item into li tags.
 
 The problem is that the rendered markup contains additional
 wicket:border
 and wicket:body tags. They breaks the menu and it is eventually
 displayed
 as the simple list.
 
 Stripping wicket tags at the application level would obviously solve the
 problem. But I'd like to keep wicket tags for most markup and strip only
 for
 menu.
 
 Can I override Border class somehow and strip wicket tags manually?
 
 

-- 
View this message in context: 
http://www.nabble.com/how-to-strip-wicket-tags-for-particular-component-tp24568122p24568909.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: how to strip wicket tags for particular component

2009-07-20 Thread Vladimir K

Mathias,

I just posted right after your post :) Anyway thanks.

The problem is that you can not restore origianal settings when the body of
the border is being rendered. At lease it is difficult to figure out what
workaround I could employ.

Thankfully I haven't to care about that in my case so I use it.


Mathias Nilsson wrote:
 
 This may not be the best solution but it should work
 
 DateTextField  dateField = new DateTextField(date, new ModelDate(new
 Date())){
   @Override
   protected void onBeforeRender() {
   
   
 Application.get().getMarkupSettings().setStripWicketTags(true);
   super.onBeforeRender();
   }
   @Override
   protected void onAfterRender() {
   
 Application.get().getMarkupSettings().setStripWicketTags(false);
   super.onAfterRender();
   }
 
   }; 
 

-- 
View this message in context: 
http://www.nabble.com/how-to-strip-wicket-tags-for-particular-component-tp24568122p24568972.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: How to get DateField value

2009-07-20 Thread Ryan Burns
Hi,

Thanks for the reply. I've tried this too, but this also returns null. There
is date in the textfield box of the datefield but for some reason it doen't
get it

Ryan

On Mon, Jul 20, 2009 at 2:19 PM, Mathias Nilsson 
wicket.program...@gmail.com wrote:


 You can get the model

  Date d = dateField.getModelObject();

 Format it by using the SimpleDateFormat
 --
 View this message in context:
 http://www.nabble.com/How-to-get-DateField-value-tp24567634p24568750.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: passing a session to a wizard

2009-07-20 Thread Steve Olara
Hello All,
 
I have been trying to design functionality of a webapp using wizard.
 
I need to pass a object (Questionnaire) to the wizard page, the object contains 
a set of questions.
 
on passing the object, when I try to pick the set of questions using q.getqn() 
where q is the object, a null set is returned and I get a error saying: 
LazyInitializationException:19 - failed to lazily initialize a collection of 
role: questionnaire.model.Questionnaire.qn, no session or session was closed

I have searched and found lots of articles about this error but I guess my 
programming is still imature cause I seem not to get this to work yet.
 
Below is my code is there a way of passing the previous session to this class.

 
public final class AnswerWizard extends Wizard {
    public AnswerWizard(String id, Questionnaire q) {
    super(id);
    
    // create a model with a couple of custom panels
    // still not that spectacular, but at least it
    // will give you a hint of how nice it is to
    // be able to work with custom panels
    WizardModel model = new WizardModel();
   
    Set questions = q.getQn();
  
    Iterator iter = questions.iterator();
    System.out.println(Testing55:  );
    for (;iter.hasNext();) {
    Question qn = (Question) iter.next();
    if (qn instanceof QuestionShortAns) {
    model.add(new StepQSA((QuestionShortAns) qn));
    } else if (qn instanceof QuestionSingleSelect) {
    model.add(new StepQSS((QuestionSingleSelect) qn));
    } else if (qn instanceof QuestionMatch) {
    model.add(new StepQm((QuestionMatch) qn));
    }
    }
    // initialize the wizard
    init(model);
    }
    private static final class StepQSS extends WizardStep {
    /**
 * Construct.
 */
    public StepQSS(QuestionSingleSelect qn) {
    super(One, The first step);
    }
    }
    private static final class StepQSA extends WizardStep {
    /**
 * Construct.
 */
    public StepQSA(QuestionShortAns qn) {
    super(Two, The second step);
    }
    }
    private static final class StepQm extends WizardStep {
    /**
 * Construct.
 */
    public StepQm(QuestionMatch qn) {
    super(Three, The third step);
    }
    }
    public void onCancel() {
    //setResponsePage(Index.class);
    }
    /**
 * @see org.apache.wicket.extensions.wizard.Wizard#onFinish()
 */
    public void onFinish() {
    // setResponsePage(Index.class);
    }
}

 
Any Help will be highly appreciated

 


  

Re: best or common practice for application plug-ins

2009-07-20 Thread Ben Tilford
I think maven 3 is supposed to allow using OSGi bundles for versioning etc..

On Mon, Jul 20, 2009 at 8:12 AM, Sam Stainsby 
s...@sustainablesoftware.com.au wrote:

 Thanks Olger, that gives me some ideas. I wonder if a maven could somehow
 be coerced to do the dependency/downloading part, perhaps with some new
 plugin.

 On Mon, 20 Jul 2009 13:39:10 +0200, Olger Warnier wrote:

  Hi Sam,
 
  How we do it with that service:
 
  We have a file listener class  that checks if OSGI based jar files are
  put in a directory.
  If so, these are automatically deployed to the OSGI runtime by the
  BundleDeployer class.
  We miss a download / version updates part, but you could add that by
  downloading to the directory specfified by the FileListener.
 
  There is no need to restart, OSGI updates the whole automatically (we
  use embedded felix for this).
  Something to keep in mind, be careful with the OSGI versioning in this
  as that puts versions next to eachother.
 
  This is used to provide custom, for our project - wicket based, user
  interface functionality.
 
  Kind Regards,
 
  Olger
 
 
  On 20 jul 2009, at 12:51, Sam Stainsby wrote:
 
  OK, so I am an sys admin running some sort of OSGI-based application
  and
  now I want to add your questionnaire service and any other modules that
  it depends on. I also want to occasionally check for version updates. I
  want these updates and dependencies to be downloaded and put in the
  correct place for me so that when I restart the application, they are
  loaded. How do I do that? If it were Zope, I would add one line to a
  'buildout.cfg' file and run the 'buildout' script, and restart Zope.
 
  On Mon, 20 Jul 2009 10:33:45 +0200, Olger Warnier wrote:
 
  In our project we use OSGI to get a plugin structure. Interfaces
  defined
  in the 'core' layer are implemented in OSGI modules. For a simple
  example see: http://www.joiningtracks.org/svn/his/trunk/
  questionnaire/
   (SVN code repo)
  It's a questionnaire service that uses OSGI to load the question forms
  (based on wicket)
 
  Our whole platform is constructed like that, the questionnaire service
  is the most simple one and easily adapted for your own use.
 
 
 
  -
  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: How to get DateField value

2009-07-20 Thread Mathias Nilsson

The above code works for me. You know that the onchange method is only
triggered when you click the textfield for focus and the click the webpage
to lose focus

have you put the field in a form?
-- 
View this message in context: 
http://www.nabble.com/How-to-get-DateField-value-tp24567634p24570614.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: how to strip wicket tags for particular component

2009-07-20 Thread Mathias Nilsson

What about

@Override
public void onComponentTag( ComponentTag tag){ 
 tag.remove( wicket:id );
 super.onComponentTag(tag);
} 
-- 
View this message in context: 
http://www.nabble.com/how-to-strip-wicket-tags-for-particular-component-tp24568122p24571367.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: how to strip wicket tags for particular component

2009-07-20 Thread Erik van Oosten

Turning the 2 lines around might give better results.

Regards,
   Erik.


Mathias Nilsson wrote:

What about

@Override
		public void onComponentTag( ComponentTag tag){ 
		 tag.remove( wicket:id );

 super.onComponentTag(tag);
		} 
  


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



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



Re: best or common practice for application plug-ins

2009-07-20 Thread Adrian Wiesmann
Hi Sam

 I'm probably revealing my inexperience with J2EE environments in asking 
 this, but how do Wicket programmers typically handle application add-
 ons (or plug-ins or modules).

What I (we) did was to imitate what Eclipse does. Defining hooks and
having plugins attach to these hooks (and even define new hooks). We did
this using a mixture of XML, Java, Script and DB tables. While we started
with Swing, we ported this to Wicket as well.

Our reason for doing so sounds similar to your thoughts: Deploying a core
application and having other (third party) developers add, change and
enhance to the core application.

Ping me offline for details since this is very much non-Wicket stuff.

Cheers,
Adrian

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



1.4 is ready for production?

2009-07-20 Thread Alessandro Vincelli
I know that 1.4 is RC, and RC means that is not ready for production ;-)
But I'm using the 1.4 since January in some small projects without
blocking problems?
The issue opened in Jira are not blocking for me.
Any suggestions? Is anybody already using 1.4 in production?
Thanks in advance,
Alessandro

-- 
Alessandro Vincelli
---
http://www.alessandro.vincelli.name
http://devel.alessandro.vincelli.name

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



Re: 1.4 is ready for production?

2009-07-20 Thread Igor Vaynberg
it is. it is even already built and available here:

http://people.apache.org/~ivaynberg/wicket-1.4.0/

although we have not voted on it yet. waiting for some PR-related
stuff to come together.

-igor

On Mon, Jul 20, 2009 at 8:32 AM, Alessandro
Vincellia.vince...@gmail.com wrote:
 I know that 1.4 is RC, and RC means that is not ready for production ;-)
 But I'm using the 1.4 since January in some small projects without
 blocking problems?
 The issue opened in Jira are not blocking for me.
 Any suggestions? Is anybody already using 1.4 in production?
 Thanks in advance,
 Alessandro

 --
 Alessandro Vincelli
 ---
 http://www.alessandro.vincelli.name
 http://devel.alessandro.vincelli.name

 -
 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: 1.4 is ready for production?

2009-07-20 Thread Jeremy Thomerson
Yes - there are many users who have been using it since 1.4-rc1 in
production.  1.4.0 final is built, waiting on a few things to get
finished before calling vote on it.

--
Jeremy Thomerson
http://www.wickettraining.com




On Mon, Jul 20, 2009 at 10:32 AM, Alessandro
Vincellia.vince...@gmail.com wrote:
 I know that 1.4 is RC, and RC means that is not ready for production ;-)
 But I'm using the 1.4 since January in some small projects without
 blocking problems?
 The issue opened in Jira are not blocking for me.
 Any suggestions? Is anybody already using 1.4 in production?
 Thanks in advance,
 Alessandro

 --
 Alessandro Vincelli
 ---
 http://www.alessandro.vincelli.name
 http://devel.alessandro.vincelli.name

 -
 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: passing a session to a wizard

2009-07-20 Thread Michael Sparer

sounds like a detached object. the interesting part would be where you got
the object from. if you're using OpensessionInViewFilter (and therefore a
session is during the whole request), it's likely that the object stays in
the session between requests - you should use LoadableDetachableModels then
...



Steve Olara wrote:
 
 Hello All,
  
 I have been trying to design functionality of a webapp using wizard.
  
 I need to pass a object (Questionnaire) to the wizard page, the object
 contains a set of questions.
  
 on passing the object, when I try to pick the set of questions using
 q.getqn() where q is the object, a null set is returned and I get a error
 saying: LazyInitializationException:19 - failed to lazily initialize a
 collection of role: questionnaire.model.Questionnaire.qn, no session or
 session was closed
 
 I have searched and found lots of articles about this error but I guess my
 programming is still imature cause I seem not to get this to work yet.
  
 Below is my code is there a way of passing the previous session to this
 class.
 
  
 public final class AnswerWizard extends Wizard {
     public AnswerWizard(String id, Questionnaire q) {
     super(id);
     
     // create a model with a couple of custom panels
     // still not that spectacular, but at least it
     // will give you a hint of how nice it is to
     // be able to work with custom panels
     WizardModel model = new WizardModel();
    
     Set questions = q.getQn();
   
     Iterator iter = questions.iterator();
     System.out.println(Testing55:  );
     for (;iter.hasNext();) {
     Question qn = (Question) iter.next();
     if (qn instanceof QuestionShortAns) {
     model.add(new StepQSA((QuestionShortAns) qn));
     } else if (qn instanceof QuestionSingleSelect) {
     model.add(new StepQSS((QuestionSingleSelect) qn));
     } else if (qn instanceof QuestionMatch) {
     model.add(new StepQm((QuestionMatch) qn));
     }
     }
     // initialize the wizard
     init(model);
     }
     private static final class StepQSS extends WizardStep {
     /**
  * Construct.
  */
     public StepQSS(QuestionSingleSelect qn) {
     super(One, The first step);
     }
     }
     private static final class StepQSA extends WizardStep {
     /**
  * Construct.
  */
     public StepQSA(QuestionShortAns qn) {
     super(Two, The second step);
     }
     }
     private static final class StepQm extends WizardStep {
     /**
  * Construct.
  */
     public StepQm(QuestionMatch qn) {
     super(Three, The third step);
     }
     }
     public void onCancel() {
     //setResponsePage(Index.class);
     }
     /**
  * @see org.apache.wicket.extensions.wizard.Wizard#onFinish()
  */
     public void onFinish() {
     // setResponsePage(Index.class);
     }
 }
 
  
 Any Help will be highly appreciated
 
  
 
 
 
 


-
Michael Sparer
http://techblog.molindo.at
-- 
View this message in context: 
http://www.nabble.com/Re%3A-passing-a-session-to-a-wizard-tp24569201p24572534.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



Fwd: QuickCrud

2009-07-20 Thread taha siddiqi
Hi,

There are simple set of libraries I had thought of commenting properly
and sharing with the community but because of being busy with a few
projects I am unable to do that.

I don't know when I will get the time to properly comment, but until
then I would like to share this as-is code...

I have used it in two of my projects and it works for me...

It is located here

http://code.google.com/p/quickcrud/downloads/list


Sorry again for being lazy..

regards
Taha

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



Error Message Not Getting Removed

2009-07-20 Thread jpalmer1026





I have a form that's using an AjaxSubmitLink to show / hide a panel. I have overriden the onError() method to add a feedbackPanel to the page to display any error messages that may exist. The problem I'm having is the error messages are remaining on the screen even after the problem is fixed. Any suggestions? My code is as follows:final AjaxSubmitLink verifyPinLink = new AjaxSubmitLink("verifyPinLink") { @Override public void onSubmit(AjaxRequestTarget target, Form form) { Declaration declaration = (Declaration) form.getModelObject(); ParcelIdentification pid = declarationService.findParcelIdentification(declaration.getPin()); if (pid == null) { form.error("No PIN found for PIN " + declaration.getPin()); } else { InitiateDeclarationVerifyPanel decVerifyPanel = new InitiateDeclarationVerifyPanel("verifyPanel", pid); parent.addOrReplace(decVerifyPanel); parent.setVisible(true); this.setEnabled(false); pinText.setEnabled(false); reenterPinLink.setVisible(true); button.setVisible(true); target.addComponent(this); target.addComponent(parent); target.addComponent(reenterPinLink); target.addComponent(button); target.addComponent(pinText); } } @Override public void onError(AjaxRequestTarget target, Form form) { target.addComponent(feedback); } };






Re: Error Message Not Getting Removed

2009-07-20 Thread Martin Makundi
In my understanding only EITHER onSubmit or onError is called. If you
call error(xx) in onSubmit, you must refesh the feedback panel in the
onSubmit-branch TOO (separately).

**
Martin

2009/7/20  jpalmer1...@mchsi.com:
 I have a form that's using an AjaxSubmitLink to show / hide a panel. I have
 overriden the onError() method to add a feedbackPanel to the page to display
 any error messages that may exist. The problem I'm having is the error
 messages are remaining on the screen even after the problem is fixed. Any
 suggestions? My code is as follows:

 final AjaxSubmitLink verifyPinLink = new AjaxSubmitLink(verifyPinLink) {
     @Override
     public void onSubmit(AjaxRequestTarget target, Form form) {
     Declaration declaration = (Declaration)
 form.getModelObject();
     ParcelIdentification pid =
 declarationService.findParcelIdentification(declaration.getPin());
     if (pid == null) {
     form.error(No PIN found for PIN  +
 declaration.getPin());
     } else {
     InitiateDeclarationVerifyPanel decVerifyPanel = new
 InitiateDeclarationVerifyPanel(verifyPanel, pid);
     parent.addOrReplace(decVerifyPanel);
     parent.setVisible(true);
     this.setEnabled(false);
     pinText.setEnabled(false);
     reenterPinLink.setVisible(true);
     button.setVisible(true);
     target.addComponent(this);
     target.addComponent(parent);
     target.addComponent(reenterPinLink);
     target.addComponent(button);
     target.addComponent(pinText);
     }
     }

     @Override
     public void onError(AjaxRequestTarget target, Form form) {
     target.addComponent(feedback);
     }
     };



Re: Error Message Not Getting Removed

2009-07-20 Thread Mathias Nilsson

I don't see that you have added the feedback in the onSubmit method

You should do

@Override
onsubmit(  ){
  target.addComponent( feedback );
}
-- 
View this message in context: 
http://www.nabble.com/Error-Message-Not-Getting-Removed-tp24574168p24574336.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: 1.4 is ready for production?

2009-07-20 Thread Alessandro Vincelli
Nice!
+1 ;-)
Thank you,
Alessandro

2009/7/20 Jeremy Thomerson jer...@wickettraining.com:
 Yes - there are many users who have been using it since 1.4-rc1 in
 production.  1.4.0 final is built, waiting on a few things to get
 finished before calling vote on it.

 --
 Jeremy Thomerson
 http://www.wickettraining.com




 On Mon, Jul 20, 2009 at 10:32 AM, Alessandro
 Vincellia.vince...@gmail.com wrote:
 I know that 1.4 is RC, and RC means that is not ready for production ;-)
 But I'm using the 1.4 since January in some small projects without
 blocking problems?
 The issue opened in Jira are not blocking for me.
 Any suggestions? Is anybody already using 1.4 in production?
 Thanks in advance,
 Alessandro

 --
 Alessandro Vincelli
 ---
 http://www.alessandro.vincelli.name
 http://devel.alessandro.vincelli.name

 -
 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





-- 
Alessandro Vincelli
---
http://www.alessandro.vincelli.name
http://devel.alessandro.vincelli.name

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



Re: How to get DateField value

2009-07-20 Thread Ryan Burns
Ok, i tried this. But i get the date the DateField was initialised with ie
today 20/07/09. If i change text field to 10/07/09 i still get the 20/07/09.
I can get it working with a normal submit button but when i try anything
with ajax i get the problem stated. Can paste the code that you got this
working with?

Thanks

Ryan

On Mon, Jul 20, 2009 at 4:11 PM, Mathias Nilsson 
wicket.program...@gmail.com wrote:


 The above code works for me. You know that the onchange method is only
 triggered when you click the textfield for focus and the click the webpage
 to lose focus

 have you put the field in a form?
 --
 View this message in context:
 http://www.nabble.com/How-to-get-DateField-value-tp24567634p24570614.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: Error Message Not Getting Removed

2009-07-20 Thread jpalmer1026

Whoops. My bad. Thanks!


Mathias Nilsson wrote:
 
 I don't see that you have added the feedback in the onSubmit method
 
 You should do
 
 @Override
 onsubmit(  ){
   target.addComponent( feedback );
 }
 

-- 
View this message in context: 
http://www.nabble.com/Error-Message-Not-Getting-Removed-tp24574168p24574877.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: How to get DateField value

2009-07-20 Thread Mathias Nilsson


import java.util.Date;

import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior;
import org.apache.wicket.extensions.markup.html.form.DateTextField;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.form.Form;
import org.apache.wicket.model.Model;

/**
 * Homepage
 */
public class HomePage extends WebPage{

private static final long serialVersionUID = 1L;
 protected DateTextField dateField; 
public HomePage() {


   FormVoid form = new FormVoid( form );

dateField = new DateTextField(date, new ModelDate(new
Date())); 
   
dateField.add(new AjaxFormComponentUpdatingBehavior(onchange) 
{ 
private static final long 
serialVersionUID = 1L;

@Override 
protected void onUpdate(AjaxRequestTarget arg0) { 
Date d = dateField.getModelObject();
System.out.println( d );
} 
 
});

form.add( dateField );
add( form );



}



  
}
-- 
View this message in context: 
http://www.nabble.com/How-to-get-DateField-value-tp24567634p24574979.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: How to get DateField value

2009-07-20 Thread Ryan Burns
Yes, that does work for DateTextField. But i am using the DateField
component which is a combination of DateTextField and DatePicker

Ryan

On Mon, Jul 20, 2009 at 8:25 PM, Mathias Nilsson 
wicket.program...@gmail.com wrote:



 import java.util.Date;

 import org.apache.wicket.ajax.AjaxRequestTarget;
 import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior;
 import org.apache.wicket.extensions.markup.html.form.DateTextField;
 import org.apache.wicket.markup.html.WebPage;
 import org.apache.wicket.markup.html.form.Form;
 import org.apache.wicket.model.Model;

 /**
  * Homepage
  */
 public class HomePage extends WebPage{

private static final long serialVersionUID = 1L;
  protected DateTextField dateField;
public HomePage() {


   FormVoid form = new FormVoid( form );

dateField = new DateTextField(date, new ModelDate(new
 Date()));

dateField.add(new
 AjaxFormComponentUpdatingBehavior(onchange)
 {
 private static final long
 serialVersionUID = 1L;

 @Override
protected void onUpdate(AjaxRequestTarget arg0) {
 Date d = dateField.getModelObject();
System.out.println( d );
}

});

form.add( dateField );
add( form );



}




 }
 --
 View this message in context:
 http://www.nabble.com/How-to-get-DateField-value-tp24567634p24574979.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: How to get DateField value

2009-07-20 Thread Mathias Nilsson

from wicket-extension or from another project?
-- 
View this message in context: 
http://www.nabble.com/How-to-get-DateField-value-tp24567634p24575317.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: How to get DateField value

2009-07-20 Thread Ryan Burns
wicket-extension. This one,
org.apache.wicket.extensions.yui.calendar.DateField;

On Mon, Jul 20, 2009 at 8:45 PM, Mathias Nilsson 
wicket.program...@gmail.com wrote:


 from wicket-extension or from another project?
 --
 View this message in context:
 http://www.nabble.com/How-to-get-DateField-value-tp24567634p24575317.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: 1.4 is ready for production?

2009-07-20 Thread Marcin Palka

Hi,

My team develops a system that's based on the 1.4 and during the development
we haven't experienced any serious issues with prior-final builds of 1.4.
System is currently being tested. We started development with rc1 and moved
forward to every new release candidate version. Except for minor modal
window issue and lack of developer experience (first Wicket project within a
company) we haven't suffered any wicket-specific issues at all.

cheers,
Marcin
-- 
View this message in context: 
http://www.nabble.com/1.4-is-ready-for-production--tp24572049p24575642.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: 1.4 is ready for production?

2009-07-20 Thread Martin Makundi
Skip rc5 and rc6 ;)

**
Martn

2009/7/20 Marcin Palka marcin.pa...@gmail.com:

 Hi,

 My team develops a system that's based on the 1.4 and during the development
 we haven't experienced any serious issues with prior-final builds of 1.4.
 System is currently being tested. We started development with rc1 and moved
 forward to every new release candidate version. Except for minor modal
 window issue and lack of developer experience (first Wicket project within a
 company) we haven't suffered any wicket-specific issues at all.

 cheers,
 Marcin
 --
 View this message in context: 
 http://www.nabble.com/1.4-is-ready-for-production--tp24572049p24575642.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



Re: How to get DateField value

2009-07-20 Thread Mathias Nilsson

Ok this is wicket-datetime if I'm not misstaken.

You must override the newDateTextField then


import java.util.Date;

import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior;
import org.apache.wicket.datetime.markup.html.form.DateTextField;
import org.apache.wicket.extensions.yui.calendar.DateField;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.form.Form;
import org.apache.wicket.model.Model;

/**
 * Homepage
 */
public class HomePage extends WebPage{

private static final long serialVersionUID = 1L;
 protected DateField dateField; 
public HomePage() {


   FormVoid form = new FormVoid( form );

dateField = new DateField(date, new ModelDate(new Date())){
@Override
protected DateTextField 
newDateTextField(java.lang.String id,
org.apache.wicket.model.PropertyModel dateFieldModel){
DateTextField f =  
DateTextField.forShortStyle(id,
dateFieldModel);
f.add(new 
AjaxFormComponentUpdatingBehavior(onchange)  { 
private static final long 
serialVersionUID = 1L;

@Override 
protected void onUpdate(AjaxRequestTarget arg0) { 
Date d = dateField.getModelObject();
System.out.println( d );
} 
 
});
return f;
}
}; 

  

form.add( dateField );
add( form );



}



  
}

-- 
View this message in context: 
http://www.nabble.com/How-to-get-DateField-value-tp24567634p24575872.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: How to get DateField value

2009-07-20 Thread Mathias Nilsson

Ok this is wicket-datetime if I'm not misstaken. 

You must override the newDateTextField then 


import java.util.Date; 

import org.apache.wicket.ajax.AjaxRequestTarget; 
import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior; 
import org.apache.wicket.datetime.markup.html.form.DateTextField; 
import org.apache.wicket.extensions.yui.calendar.DateField; 
import org.apache.wicket.markup.html.WebPage; 
import org.apache.wicket.markup.html.form.Form; 
import org.apache.wicket.model.Model; 

/** 
 * Homepage 
 */ 
public class HomePage extends WebPage{ 

private static final long serialVersionUID = 1L; 
 protected DateField dateField; 
public HomePage() { 


  FormVoid form = new FormVoid( form ); 

   dateField = new DateField(date, new ModelDate(new Date())){ 
@Override 
protected DateTextField newDateTextField(java.lang.String id,
org.apache.wicket.model.PropertyModel dateFieldModel){ 
DateTextField f =  DateTextField.forShortStyle(id,
dateFieldModel); 
f.add(new AjaxFormComponentUpdatingBehavior(onchange)  { 
private static final long serialVersionUID = 1L; 

@Override 
   protected void onUpdate(AjaxRequestTarget arg0) { 
   Date d = dateField.getModelObject(); 
   System.out.println( d ); 
   } 

   }); 
return f; 
} 
   }; 

  

   form.add( dateField ); 
   add( form ); 



} 



  
} 
-- 
View this message in context: 
http://www.nabble.com/How-to-get-DateField-value-tp24567634p24575929.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



Custom Resource Loading

2009-07-20 Thread Mostafa Mohamed
 Hi. I have 3 questions about resources.

*question 1* I've tried everything i could to make to make this work, but i
failed. it's probably something
that has to do with the context + path that i pass to the folder
constructor. i tried some relative paths,
didn't work too.

protected void int() {
String context = getServletContext().getRealPath(/);
String path = WEB-INF\\classes\\main\\resources;

IResourceStreamLocator locator = new ResourceStreamLocator(new Path(new
Folder(context + path)));
getResourceSettings.setResourceStremLocator(locator);
}

*question 2* this is about the resources folder of the quickstart project.
As you can see from
the code above, i was trying to use it for html/properties files, but i'm
not sure if this is what
it was meant for.

*question 3* i see the point of having the html and java files next to each
other,
but with large projects (with hundreds of pages, panels, custom components
and
resource bundles), this soon leads to a cluttered folder with lots of
html/properties/
java files. how can i overcome this and at the same time keep my html and
java files
next to each other?

Thanks.


Re: How to get DateField value

2009-07-20 Thread Mathias Nilsson

You can also override the datepicker if you would like
-- 
View this message in context: 
http://www.nabble.com/How-to-get-DateField-value-tp24567634p24576032.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: How to get DateField value

2009-07-20 Thread Mathias Nilsson

Also, how does your markup look? You should use the DateField with a span or
div.
-- 
View this message in context: 
http://www.nabble.com/How-to-get-DateField-value-tp24567634p24576073.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



[work-around] UploadProgressBar

2009-07-20 Thread Mathias Nilsson
The UploadProgressBar works great in some browsers but looses responsiveness in
safari on mac.

when debugging this on mac it looks like the ajax requests hangs when a
multipart is used. You will not receive a readystate 4 and no status 200

To get this to work you will have to use an Iframe to post to and call
parent.javascriptfunction to start the ajax callback to the wicket resource.


Re: How to get DateField value

2009-07-20 Thread Ryan Burns
It's working now. Overriding the newDateTextField worked.
Thanks for your help

On Mon, Jul 20, 2009 at 9:31 PM, Mathias Nilsson 
wicket.program...@gmail.com wrote:


 Also, how does your markup look? You should use the DateField with a span
 or
 div.
 --
 View this message in context:
 http://www.nabble.com/How-to-get-DateField-value-tp24567634p24576073.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: 1.4 is ready for production?

2009-07-20 Thread Steamus

Yes. I use Wicket 1.4RC7 based site for production. It is easy multilingual
club-site for selling horses and to provide information about club.
Implementation looks easy from outside, but contains CMS possibilities for
administrator: possibilities to add news article with picture (loaded to our
database and provided as stream), possibilities to use Tiny-mce editor to
prepare more complex article texts, possibilities to search, actual real
time statistics. Also, It was used Spring framework for business logic. Not
so mystical, but works fine. The implementation takes about couple of weeks.
It is my second Wicket based site.

I provide URL below, but please don’t treat it as advertising from my side.
It is just confirmation only - example of Wicket based site. Some links
(pictures) go to several other old sites with horses (based on Spring MVC).
It is the same about club horse selling. There are no sites with some
external advertising, there are no any additional paid-up clicks depend
advertising. If my URL looks commercial, please remove it. I didn’t have
this purpose. Sorry, just an example in the world where all things look
commercial.

http://www.sport-pferde-portal.de


Sincerely,
Uladzimir.

-- 
View this message in context: 
http://www.nabble.com/1.4-is-ready-for-production--tp24572049p24576802.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: 1.4 is ready for production?

2009-07-20 Thread Martin Makundi
 I provide URL below, but please don’t treat it as advertising from my side.
 It is just confirmation only - example of Wicket based site.

 http://www.sport-pferde-portal.de

Yeah.. it does crash!

Internal error

Return to home page


**
Martin



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



Re: 1.4 is ready for production?

2009-07-20 Thread Major Péter
Well, I'm getting Internal Error on the homepage, so it doesn't look 
commercial at all. :)


Peter

2009-07-20 22:17 keltezéssel, Steamus írta:

Yes. I use Wicket 1.4RC7 based site for production. It is easy multilingual
club-site for selling horses and to provide information about club.
Implementation looks easy from outside, but contains CMS possibilities for
administrator: possibilities to add news article with picture (loaded to our
database and provided as stream), possibilities to use Tiny-mce editor to
prepare more complex article texts, possibilities to search, actual real
time statistics. Also, It was used Spring framework for business logic. Not
so mystical, but works fine. The implementation takes about couple of weeks.
It is my second Wicket based site.

I provide URL below, but please don’t treat it as advertising from my side.
It is just confirmation only - example of Wicket based site. Some links
(pictures) go to several other old sites with horses (based on Spring MVC).
It is the same about club horse selling. There are no sites with some
external advertising, there are no any additional paid-up clicks depend
advertising. If my URL looks commercial, please remove it. I didn’t have
this purpose. Sorry, just an example in the world where all things look
commercial.

http://www.sport-pferde-portal.de


Sincerely,
Uladzimir.


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



Re: Custom Resource Loading

2009-07-20 Thread Mathias Nilsson

Wicket is customized to find the markup and properties in the same package as
the javafile. 
I guess you are not using the default package and therefore you can use java
packages. 

http://www.mkyong.com/wicket/how-do-change-the-html-file-location-wicket/
http://www.mkyong.com/wicket/how-do-change-the-html-file-location-wicket/ 
may be some help to you if you want to customize this setting but I really
don't think this will be an issue if you separate you wicket classes with
packages

-- 
View this message in context: 
http://www.nabble.com/Custom-Resource-Loading-tp24576036p24577173.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: 1.4 is ready for production?

2009-07-20 Thread Martin Makundi
No. It crashes. Restart your browser and you will see.

**
Martin

2009/7/20 Steamus steam...@gmail.com:

 Sorry, I would be glad to see crash (just for the test Purposes), but for
 this moment it is work yet.
 --
 View this message in context: 
 http://www.nabble.com/1.4-is-ready-for-production--tp24572049p24577169.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: 1.4 is ready for production?

2009-07-20 Thread Carl-Eric Menzel
On Tue, 21 Jul 2009 00:00:04 +0300
Martin Makundi martin.maku...@koodaripalvelut.com wrote:

 No. It crashes. Restart your browser and you will see.

Works for me.

Carl-Eric

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



Re: 1.4 is ready for production?

2009-07-20 Thread Igor Vaynberg
+1

-igor

On Mon, Jul 20, 2009 at 2:08 PM, Carl-Eric
Menzelcm.wic...@users.bitforce.com wrote:
 On Tue, 21 Jul 2009 00:00:04 +0300
 Martin Makundi martin.maku...@koodaripalvelut.com wrote:

 No. It crashes. Restart your browser and you will see.

 Works for me.

 Carl-Eric

 -
 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: 1.4 is ready for production?

2009-07-20 Thread Martin Makundi
Crashes or me, Mozilla/5.0 (Windows; U; Windows NT 5.1; fi;
rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11

**
Martin

2009/7/21 Carl-Eric Menzel cm.wic...@users.bitforce.com:
 On Tue, 21 Jul 2009 00:00:04 +0300
 Martin Makundi martin.maku...@koodaripalvelut.com wrote:

 No. It crashes. Restart your browser and you will see.

 Works for me.

 Carl-Eric

 -
 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: Custom Resource Loading

2009-07-20 Thread sky.walker

I plan to keep my java and html files next to each other, I was just curious
as to why this specific peace of code which is the 'wicket in action' way to
load resources didn't work. my guess was that's there's something wrong with
the path, however i'm not sure why.

my project directory structure looks like this:

src
|
|-main
|  |
|  |-java
|  |  |
|  |  |-domain
|  |  |-persistence
|  |  |-services
|  |  `-web (this is where the wicket classes reside)
|  |
|  |-resources (this is where i put my html/properties files in this
example)
|  `-webapp
|
`-test

I surely thought about separating the wicket classes using packages, i
wanted to make sure that this was the best practice. is it? 

I also don't understand why the wicket quickstart project contains a
resources folder if wicket's default is to keep resources next to the java
classes. is it just to separate them at development time and then combine
them at build time?

note: sorry for sending an email, i didn't mean to.

-- 
View this message in context: 
http://www.nabble.com/Custom-Resource-Loading-tp24576036p24577732.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: Custom Resource Loading

2009-07-20 Thread Mathias Nilsson

The resource folder is maven layout. maven.apache.org

when building with the quickstart the maven uses this layout. You are not
supposed to add you .properties and .html files here. This is for other
properties and xml like spring, hibernate, peristance etc.


-- 
View this message in context: 
http://www.nabble.com/Custom-Resource-Loading-tp24576036p24577851.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: 1.4 is ready for production?

2009-07-20 Thread Steamus

I have 3 browsers to test. 

IE6, Fox(3.0.11), Opera (9.63). All systems work fine. Sorry. I know, it is
possible to kill any site. For last half an hour it was just about 27 unique
visiters and about 30-40 clicks. It is not critical. I tested with more 10
000 clicks during 3-4 minutes. 100 man simultaneously. 
-- 
View this message in context: 
http://www.nabble.com/1.4-is-ready-for-production--tp24572049p24578048.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: 1.4 is ready for production?

2009-07-20 Thread Major Péter

Crash for me too:
Mozilla/5.0 (X11; U; Linux x86_64; hu-HU; rv:1.9.1) Gecko/20090630 
Fedora/3.5-1.fc11 Firefox/3.5
Maybe something locale-related stuff isn't working. Log files could be 
helpful to debug this.


Peter

2009-07-20 23:15 keltezéssel, Martin Makundi írta:

Crashes or me, Mozilla/5.0 (Windows; U; Windows NT 5.1; fi;
rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11

**
Martin

2009/7/21 Carl-Eric Menzelcm.wic...@users.bitforce.com:

On Tue, 21 Jul 2009 00:00:04 +0300
Martin Makundimartin.maku...@koodaripalvelut.com  wrote:


No. It crashes. Restart your browser and you will see.

Works for me.

Carl-Eric


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



Re: How to LDM refreshed after submit?

2009-07-20 Thread Stefan Simik

I had  similar problem last time:
By debugging, I found some solution, that really works, but I am not sure,
if it is elegant and the right wicket-way solution:

1. override onValidate method in form
2. call clearInput() method on all form components, that should refresh
their model








Mauro Ciancio wrote:
 
 Hi wicketers!
 
   The question is the subject of this mail. I have a form with some fields
 and
 I want to those fields being updated after the form submit. All fields
 share
 the same Loadable Detachable Model.
 
   The issue is that the LDM is loaded before onSubmit() and i have no
 chance
 to update the model.
 
 Any ideas?
 Thanks in advance,
 -- 
 Mauro Ciancio
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-LDM-refreshed-after-submit--tp24561354p24578183.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: 1.4 is ready for production?

2009-07-20 Thread Steamus

M-m-m...

May be it is some redirect problems?

Try this:

http://www.sport-pferde-portal.net/shglobal/home

It is the same.

I just cheked the site by using http://browsershots.org/

Truly, I am puzzled, I got message - The server at
www.sport-pferde-portal.de sent a HTTP redirect. Your web address has been
updated. Please try again.

But for URL above (http://www.sport-pferde-portal.net/shglobal/home) I got
snapshots for my site from a lot of browsers (3 minutes ago). I can't
explain it for this moment.





aldaris wrote:
 
 Crash for me too:
 Mozilla/5.0 (X11; U; Linux x86_64; hu-HU; rv:1.9.1) Gecko/20090630 
 Fedora/3.5-1.fc11 Firefox/3.5
 Maybe something locale-related stuff isn't working. Log files could be 
 helpful to debug this.
 
 Peter
 
 2009-07-20 23:15 keltezéssel, Martin Makundi írta:
 Crashes or me, Mozilla/5.0 (Windows; U; Windows NT 5.1; fi;
 rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11

 **
 Martin

 2009/7/21 Carl-Eric Menzelcm.wic...@users.bitforce.com:
 On Tue, 21 Jul 2009 00:00:04 +0300
 Martin Makundimartin.maku...@koodaripalvelut.com  wrote:

 No. It crashes. Restart your browser and you will see.
 Works for me.

 Carl-Eric
 
 -
 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://www.nabble.com/1.4-is-ready-for-production--tp24572049p24578364.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: 1.4 is ready for production?

2009-07-20 Thread Jeremy Thomerson
Works for me:
version `NSS_3.10' not found

--
Jeremy Thomerson
http://www.wickettraining.com




On Mon, Jul 20, 2009 at 5:07 PM, Steamussteam...@gmail.com wrote:

 M-m-m...

 May be it is some redirect problems?

 Try this:

 http://www.sport-pferde-portal.net/shglobal/home

 It is the same.

 I just cheked the site by using http://browsershots.org/

 Truly, I am puzzled, I got message - The server at
 www.sport-pferde-portal.de sent a HTTP redirect. Your web address has been
 updated. Please try again.

 But for URL above (http://www.sport-pferde-portal.net/shglobal/home) I got
 snapshots for my site from a lot of browsers (3 minutes ago). I can't
 explain it for this moment.





 aldaris wrote:

 Crash for me too:
 Mozilla/5.0 (X11; U; Linux x86_64; hu-HU; rv:1.9.1) Gecko/20090630
 Fedora/3.5-1.fc11 Firefox/3.5
 Maybe something locale-related stuff isn't working. Log files could be
 helpful to debug this.

 Peter

 2009-07-20 23:15 keltezéssel, Martin Makundi írta:
 Crashes or me, Mozilla/5.0 (Windows; U; Windows NT 5.1; fi;
 rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11

 **
 Martin

 2009/7/21 Carl-Eric Menzelcm.wic...@users.bitforce.com:
 On Tue, 21 Jul 2009 00:00:04 +0300
 Martin Makundimartin.maku...@koodaripalvelut.com  wrote:

 No. It crashes. Restart your browser and you will see.
 Works for me.

 Carl-Eric

 -
 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://www.nabble.com/1.4-is-ready-for-production--tp24572049p24578364.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: 1.4 is ready for production?

2009-07-20 Thread Jeremy Thomerson
Oops - sorry - pasted the wrong thing.  It does work.  I meant to send
the URL - but it was just the original URL you sent.

--
Jeremy Thomerson
http://www.wickettraining.com




On Mon, Jul 20, 2009 at 7:51 PM, Jeremy
Thomersonjer...@wickettraining.com wrote:
 Works for me:
 version `NSS_3.10' not found

 --
 Jeremy Thomerson
 http://www.wickettraining.com




 On Mon, Jul 20, 2009 at 5:07 PM, Steamussteam...@gmail.com wrote:

 M-m-m...

 May be it is some redirect problems?

 Try this:

 http://www.sport-pferde-portal.net/shglobal/home

 It is the same.

 I just cheked the site by using http://browsershots.org/

 Truly, I am puzzled, I got message - The server at
 www.sport-pferde-portal.de sent a HTTP redirect. Your web address has been
 updated. Please try again.

 But for URL above (http://www.sport-pferde-portal.net/shglobal/home) I got
 snapshots for my site from a lot of browsers (3 minutes ago). I can't
 explain it for this moment.





 aldaris wrote:

 Crash for me too:
 Mozilla/5.0 (X11; U; Linux x86_64; hu-HU; rv:1.9.1) Gecko/20090630
 Fedora/3.5-1.fc11 Firefox/3.5
 Maybe something locale-related stuff isn't working. Log files could be
 helpful to debug this.

 Peter

 2009-07-20 23:15 keltezéssel, Martin Makundi írta:
 Crashes or me, Mozilla/5.0 (Windows; U; Windows NT 5.1; fi;
 rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11

 **
 Martin

 2009/7/21 Carl-Eric Menzelcm.wic...@users.bitforce.com:
 On Tue, 21 Jul 2009 00:00:04 +0300
 Martin Makundimartin.maku...@koodaripalvelut.com  wrote:

 No. It crashes. Restart your browser and you will see.
 Works for me.

 Carl-Eric

 -
 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://www.nabble.com/1.4-is-ready-for-production--tp24572049p24578364.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: 1.4 is ready for production?

2009-07-20 Thread taha siddiqi
One of my projects has just gone into testing phase, I ported the
project from 1.35 to 1.4rc7 and I faced no problems.

Let us see how testing goes ...

Wassalam
Taha

On Tue, Jul 21, 2009 at 6:22 AM, Jeremy
Thomersonjer...@wickettraining.com wrote:
 Oops - sorry - pasted the wrong thing.  It does work.  I meant to send
 the URL - but it was just the original URL you sent.

 --
 Jeremy Thomerson
 http://www.wickettraining.com




 On Mon, Jul 20, 2009 at 7:51 PM, Jeremy
 Thomersonjer...@wickettraining.com wrote:
 Works for me:
 version `NSS_3.10' not found

 --
 Jeremy Thomerson
 http://www.wickettraining.com




 On Mon, Jul 20, 2009 at 5:07 PM, Steamussteam...@gmail.com wrote:

 M-m-m...

 May be it is some redirect problems?

 Try this:

 http://www.sport-pferde-portal.net/shglobal/home

 It is the same.

 I just cheked the site by using http://browsershots.org/

 Truly, I am puzzled, I got message - The server at
 www.sport-pferde-portal.de sent a HTTP redirect. Your web address has been
 updated. Please try again.

 But for URL above (http://www.sport-pferde-portal.net/shglobal/home) I got
 snapshots for my site from a lot of browsers (3 minutes ago). I can't
 explain it for this moment.





 aldaris wrote:

 Crash for me too:
 Mozilla/5.0 (X11; U; Linux x86_64; hu-HU; rv:1.9.1) Gecko/20090630
 Fedora/3.5-1.fc11 Firefox/3.5
 Maybe something locale-related stuff isn't working. Log files could be
 helpful to debug this.

 Peter

 2009-07-20 23:15 keltezéssel, Martin Makundi írta:
 Crashes or me, Mozilla/5.0 (Windows; U; Windows NT 5.1; fi;
 rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11

 **
 Martin

 2009/7/21 Carl-Eric Menzelcm.wic...@users.bitforce.com:
 On Tue, 21 Jul 2009 00:00:04 +0300
 Martin Makundimartin.maku...@koodaripalvelut.com  wrote:

 No. It crashes. Restart your browser and you will see.
 Works for me.

 Carl-Eric

 -
 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://www.nabble.com/1.4-is-ready-for-production--tp24572049p24578364.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



Re: 1.4 is ready for production?

2009-07-20 Thread Martin Makundi
Does not help for me. You do have logs ;) ?

**
Martin

2009/7/21 Steamus steam...@gmail.com:

 M-m-m...

 May be it is some redirect problems?

 Try this:

 http://www.sport-pferde-portal.net/shglobal/home

 It is the same.

 I just cheked the site by using http://browsershots.org/

 Truly, I am puzzled, I got message - The server at
 www.sport-pferde-portal.de sent a HTTP redirect. Your web address has been
 updated. Please try again.

 But for URL above (http://www.sport-pferde-portal.net/shglobal/home) I got
 snapshots for my site from a lot of browsers (3 minutes ago). I can't
 explain it for this moment.





 aldaris wrote:

 Crash for me too:
 Mozilla/5.0 (X11; U; Linux x86_64; hu-HU; rv:1.9.1) Gecko/20090630
 Fedora/3.5-1.fc11 Firefox/3.5
 Maybe something locale-related stuff isn't working. Log files could be
 helpful to debug this.

 Peter

 2009-07-20 23:15 keltezéssel, Martin Makundi írta:
 Crashes or me, Mozilla/5.0 (Windows; U; Windows NT 5.1; fi;
 rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11

 **
 Martin

 2009/7/21 Carl-Eric Menzelcm.wic...@users.bitforce.com:
 On Tue, 21 Jul 2009 00:00:04 +0300
 Martin Makundimartin.maku...@koodaripalvelut.com  wrote:

 No. It crashes. Restart your browser and you will see.
 Works for me.

 Carl-Eric

 -
 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://www.nabble.com/1.4-is-ready-for-production--tp24572049p24578364.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