Re: When NOT to use models ?

2009-10-26 Thread Pieter Degraeuwe
Hmm, maybe I'm missing something, but if you want to have EVALUATED once per
request, I think the following should be sufficient. (unless I'm missing
somtething)

new AbstractReadOnlyModelT() {
private transient T cachedValue;
@Override
public T getObject() {
if (cachedValue == null) {
cachedValue = ...; //evaluate here, only once per
request
}
return cachedValue;
}
};

since the cached value is transient, it will be null when it is
deserialized. But during the requestCyclue, the evaluation will only happen
once. (at least, if I'm not missing something...)



On Sun, Oct 25, 2009 at 7:02 AM, Martin Makundi 
martin.maku...@koodaripalvelut.com wrote:

  What I found was that I was instantiating my LDM's as private variables
 in
  my custom components but that they were not being detached.  In this case
  you need to programatically register your non default models to
 participate
  in the detachment process.  See the Wiki here for an example:
 
 http://cwiki.apache.org/confluence/display/WICKET/Working+with+Wicket+models#WorkingwithWicketmodels-ManagingthelifecycleofnondefaultdetachableIModel%27s

 Which part there in particular? I read it and it didn't yet ring my bell...

 is there really another way to register for onDetach events apart
 from the model being directly involved in render cycle as a
 formcomponent's or another component's defaultmodel?

  For your option 3 I would say you should create a custom IModel
  implementation that is aware of your caching strategy so that your
  Component's don't need to care about how the data is loaded.

 Well.. that's the dream ;) Furthermore, I would like it to be more or
 less automatic. Maybe models like:

 1. SettingThisModelWillResetCacheModel extends IModel
 2. SettingThisModelWillNOTResetCacheModel extends IModel

 Furthremore, they would probably be created using a factory method in
 a cache manager:

 CacheManager cacheManager = new CacheManager(detachableToo);

 cacheManager.newIndependentCachedModel(IModel ...)
 cacheManager.newCachedModelWhoseChangeFiresExpire(IModel ...)

 AND maybe I could chain cacheManagers to say cache manger A will
 expire if any of its dependent managers B-C-D expire.

 Also it should be easy to add
 cacheManager.addCacheExpirationListener(Runnable ..) or something.

 ...

 Anybody else need something like this? We could write a draft and see
 if it works and continue improving the design.

 **
 Martin


 
  Your implementation could hold a Map of all related models and update
  according to your rules or better yet build a service that does the
 caching
  and dirty detection and then just have the LDM source the cell value from
  the service.  Something like:
 
  new LoabableDetachableModel () {
 
 protected CellValue load () {
 
return cellService.getValue (row, col);
   }
  }
 
  Regards,
 
  Mike
 
  evaluated only one time per render can be done with
  LoadableDetachedModel ..
 
 
  I do not mean LOADED once per render. I mean EVALUATED once per
  render. In my understanding LoadableDetachableModel does not guarantee
  reset in any particular stage.
 
 
 
  can you explain it a littly bit (a link to your original message?)
 
 
  I mean for rexample I have many models like this:
 
  new AbstractReadOnlyModelString() {
public String getObject() {
   // evaluate message with some logic
   return message;
}
  }
 
  Furthermore, I have several components that, say, depend on this
  value. This getObject() will be called many times durung render and
  the logic will be evaluated many times.
 
  If I make it detachable it will yes be detached but I am not sure that
  the detaching is guaranteed at some specific point in request cycle?
 
  To make my use case more clear I will give an example: say I have a
  wicket page with a panel that contains a table with columns rows and y
  rows. Furthermore, let's assume it is a spreadsheet emulator: you can
  write formulas into the cells that depend on the other cells which
  means that the value of each cell is recursively evaluated dependent
  on the other cell's values.
 
  Requirements:
  1. During render time each cell's model value should be cached once it
  has been evaluated (we do not want to recurse many times to fetch the
  same value).
  2. If the value of any cell changes, all the dependent cells should be
  (for example) ajax refreshed and re-evaluated. For simplicity, we
  could re-set the cache of all models when change occurs. And
  redraw-all.
  3. We want to reset cache ONLY if change occurs.
 
  In my understanding requirement 3 cannot be directly reached with
  detachable models.
 
  **
  Martin
 
 
 
 

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




-- 

Re: When NOT to use models ?

2009-10-26 Thread Martijn Dashorst
Which is identical to the LoadableDetachableModel. Nothing in LDM
states that it is meant exclusively for DB access.

Martijn


On Mon, Oct 26, 2009 at 8:52 AM, Pieter Degraeuwe
pieter.degrae...@systemworks.be wrote:
 Hmm, maybe I'm missing something, but if you want to have EVALUATED once per
 request, I think the following should be sufficient. (unless I'm missing
 somtething)

        new AbstractReadOnlyModelT() {
            private transient T cachedValue;
           �...@override
            public T getObject() {
                if (cachedValue == null) {
                    cachedValue = ...; //evaluate here, only once per
 request
                }
                return cachedValue;
            }
        };

 since the cached value is transient, it will be null when it is
 deserialized. But during the requestCyclue, the evaluation will only happen
 once. (at least, if I'm not missing something...)



 On Sun, Oct 25, 2009 at 7:02 AM, Martin Makundi 
 martin.maku...@koodaripalvelut.com wrote:

  What I found was that I was instantiating my LDM's as private variables
 in
  my custom components but that they were not being detached.  In this case
  you need to programatically register your non default models to
 participate
  in the detachment process.  See the Wiki here for an example:
 
 http://cwiki.apache.org/confluence/display/WICKET/Working+with+Wicket+models#WorkingwithWicketmodels-ManagingthelifecycleofnondefaultdetachableIModel%27s

 Which part there in particular? I read it and it didn't yet ring my bell...

 is there really another way to register for onDetach events apart
 from the model being directly involved in render cycle as a
 formcomponent's or another component's defaultmodel?

  For your option 3 I would say you should create a custom IModel
  implementation that is aware of your caching strategy so that your
  Component's don't need to care about how the data is loaded.

 Well.. that's the dream ;) Furthermore, I would like it to be more or
 less automatic. Maybe models like:

 1. SettingThisModelWillResetCacheModel extends IModel
 2. SettingThisModelWillNOTResetCacheModel extends IModel

 Furthremore, they would probably be created using a factory method in
 a cache manager:

 CacheManager cacheManager = new CacheManager(detachableToo);

 cacheManager.newIndependentCachedModel(IModel ...)
 cacheManager.newCachedModelWhoseChangeFiresExpire(IModel ...)

 AND maybe I could chain cacheManagers to say cache manger A will
 expire if any of its dependent managers B-C-D expire.

 Also it should be easy to add
 cacheManager.addCacheExpirationListener(Runnable ..) or something.

 ...

 Anybody else need something like this? We could write a draft and see
 if it works and continue improving the design.

 **
 Martin


 
  Your implementation could hold a Map of all related models and update
  according to your rules or better yet build a service that does the
 caching
  and dirty detection and then just have the LDM source the cell value from
  the service.  Something like:
 
  new LoabableDetachableModel () {
 
     protected CellValue load () {
 
            return cellService.getValue (row, col);
   }
  }
 
  Regards,
 
  Mike
 
  evaluated only one time per render can be done with
  LoadableDetachedModel ..
 
 
  I do not mean LOADED once per render. I mean EVALUATED once per
  render. In my understanding LoadableDetachableModel does not guarantee
  reset in any particular stage.
 
 
 
  can you explain it a littly bit (a link to your original message?)
 
 
  I mean for rexample I have many models like this:
 
  new AbstractReadOnlyModelString() {
    public String getObject() {
       // evaluate message with some logic
       return message;
    }
  }
 
  Furthermore, I have several components that, say, depend on this
  value. This getObject() will be called many times durung render and
  the logic will be evaluated many times.
 
  If I make it detachable it will yes be detached but I am not sure that
  the detaching is guaranteed at some specific point in request cycle?
 
  To make my use case more clear I will give an example: say I have a
  wicket page with a panel that contains a table with columns rows and y
  rows. Furthermore, let's assume it is a spreadsheet emulator: you can
  write formulas into the cells that depend on the other cells which
  means that the value of each cell is recursively evaluated dependent
  on the other cell's values.
 
  Requirements:
  1. During render time each cell's model value should be cached once it
  has been evaluated (we do not want to recurse many times to fetch the
  same value).
  2. If the value of any cell changes, all the dependent cells should be
  (for example) ajax refreshed and re-evaluated. For simplicity, we
  could re-set the cache of all models when change occurs. And
  redraw-all.
  3. We want to reset cache ONLY if change occurs.
 
  In my understanding requirement 3 cannot be directly reached with
  detachable models.
 

Re: Need help with error with in my list code

2009-10-26 Thread Maarten Bosteels
On Mon, Oct 26, 2009 at 4:57 AM, Haulyn R. Jason saharab...@gmail.comwrote:

 I do not think JavaReble is a good tool for Wicket. Try Glassfish with
 hot deploy with netbeans, works very well with Wicket.



Why would Wicket not work well with JavaRebel ?
It works fine for me.

Maarten


 On Mon, Oct 26, 2009 at 10:50 AM, Lester Chua cicowic...@gmail.com
 wrote:
  Update:
 
  I found out what the was.
  I was running Jetty via JavaRebel agent.
  Somehow JavaRebel could not load in the changes in the Java code properly
  and that was what caused the code error.
  There was nothing wrong with the code.
 
  Thanks.
 
 
  On Mon, Oct 26, 2009 at 10:43 AM, Lester Chua cicowic...@gmail.com
 wrote:
 
  Hi,
 
  I'm very new to wicket and need some help with what I thought is very
  straight forward code.
 
  Wicket Version 1.4.3
  Code:
 
  -- Html -
 
  form wicket:id=dataForm
  Grouping: select wicket:id=grouping size=6/select
  Additional Remarks:
  textarea wicket:id=additionalRemarks
  name=additionalRemarks/textarea
  input type=submit value=In Process /
  /form
 
  -- Java --
 
  Form dataForm = new Form(dataForm) {
@Override
protected void onSubmit() {
System.out.println(Form 4 submitted);
}
  };
 
  dataForm.add(new TextArea(additionalRemarks, new
  Model(additionalRemarks)));
  ListString groupings = Arrays.asList(Group 1, Group 2);
  DropDownChoice grouping = new DropDownChoice(grouping, groupings);
  dataForm.add(grouping);
  add(dataForm);
 
  When I visit my page, I keep getting the error:
 
  --- Error -
 
  WicketMessage: Unable to find component with id 'grouping' in
  [MarkupContainer [Component id = dataForm]]. This means that you
 declared
  wicket:id=grouping in your markup, but that you either did not add the
  component to your page at all, or that the hierarchy does not match.
 
  It points to select wicket:id=grouping size=6 in my html.
 
  Removing the select lets the page render correctly.
 
  Is the error caused by me adding a DropDownChoice component to a Form?
 I've
  looked at the web examples and they dont seem to have a problem and yet
 my
  simple select form cannot run. Did I misunderstand the component
 hierarchy?
  DropDownList cannot be added to a Form?
 
  Help will be appreciated.
 
 



 --
 Many thanks!

 Haulyn Microproduction

 You can access me with the following ways:
 Location: Shandong Jinan Shumagang 6H-8, 25
 Mobile: +086-15864011231
 email: saharab...@gmail.com, hmp.hau...@foxmail.com
 website: http://haulynjason.net
 gtalk: saharab...@gmail.com
 skype: saharabear
 QQ: 378606292
 persional Twitter: http://twitter.com/saharabear
 persional Linkedin: http://www.linkedin.com/in/haulyn
 Haulyn Microproduction Twitter: http://twitter.com/haulynmp


 Haulyn Jason

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




Re: When NOT to use models ?

2009-10-26 Thread Martin Makundi
 Hmm, maybe I'm missing something, but if you want to have EVALUATED once per
 request, I think the following should be sufficient. (unless I'm missing
 somtething)

I want a generic centrally managed solution. I don't want to cache
every model manually.

**
Martin


        new AbstractReadOnlyModelT() {
            private transient T cachedValue;
           �...@override
            public T getObject() {
                if (cachedValue == null) {
                    cachedValue = ...; //evaluate here, only once per
 request
                }
                return cachedValue;
            }
        };

 since the cached value is transient, it will be null when it is
 deserialized. But during the requestCyclue, the evaluation will only happen
 once. (at least, if I'm not missing something...)



 On Sun, Oct 25, 2009 at 7:02 AM, Martin Makundi 
 martin.maku...@koodaripalvelut.com wrote:

  What I found was that I was instantiating my LDM's as private variables
 in
  my custom components but that they were not being detached.  In this case
  you need to programatically register your non default models to
 participate
  in the detachment process.  See the Wiki here for an example:
 
 http://cwiki.apache.org/confluence/display/WICKET/Working+with+Wicket+models#WorkingwithWicketmodels-ManagingthelifecycleofnondefaultdetachableIModel%27s

 Which part there in particular? I read it and it didn't yet ring my bell...

 is there really another way to register for onDetach events apart
 from the model being directly involved in render cycle as a
 formcomponent's or another component's defaultmodel?

  For your option 3 I would say you should create a custom IModel
  implementation that is aware of your caching strategy so that your
  Component's don't need to care about how the data is loaded.

 Well.. that's the dream ;) Furthermore, I would like it to be more or
 less automatic. Maybe models like:

 1. SettingThisModelWillResetCacheModel extends IModel
 2. SettingThisModelWillNOTResetCacheModel extends IModel

 Furthremore, they would probably be created using a factory method in
 a cache manager:

 CacheManager cacheManager = new CacheManager(detachableToo);

 cacheManager.newIndependentCachedModel(IModel ...)
 cacheManager.newCachedModelWhoseChangeFiresExpire(IModel ...)

 AND maybe I could chain cacheManagers to say cache manger A will
 expire if any of its dependent managers B-C-D expire.

 Also it should be easy to add
 cacheManager.addCacheExpirationListener(Runnable ..) or something.

 ...

 Anybody else need something like this? We could write a draft and see
 if it works and continue improving the design.

 **
 Martin


 
  Your implementation could hold a Map of all related models and update
  according to your rules or better yet build a service that does the
 caching
  and dirty detection and then just have the LDM source the cell value from
  the service.  Something like:
 
  new LoabableDetachableModel () {
 
     protected CellValue load () {
 
            return cellService.getValue (row, col);
   }
  }
 
  Regards,
 
  Mike
 
  evaluated only one time per render can be done with
  LoadableDetachedModel ..
 
 
  I do not mean LOADED once per render. I mean EVALUATED once per
  render. In my understanding LoadableDetachableModel does not guarantee
  reset in any particular stage.
 
 
 
  can you explain it a littly bit (a link to your original message?)
 
 
  I mean for rexample I have many models like this:
 
  new AbstractReadOnlyModelString() {
    public String getObject() {
       // evaluate message with some logic
       return message;
    }
  }
 
  Furthermore, I have several components that, say, depend on this
  value. This getObject() will be called many times durung render and
  the logic will be evaluated many times.
 
  If I make it detachable it will yes be detached but I am not sure that
  the detaching is guaranteed at some specific point in request cycle?
 
  To make my use case more clear I will give an example: say I have a
  wicket page with a panel that contains a table with columns rows and y
  rows. Furthermore, let's assume it is a spreadsheet emulator: you can
  write formulas into the cells that depend on the other cells which
  means that the value of each cell is recursively evaluated dependent
  on the other cell's values.
 
  Requirements:
  1. During render time each cell's model value should be cached once it
  has been evaluated (we do not want to recurse many times to fetch the
  same value).
  2. If the value of any cell changes, all the dependent cells should be
  (for example) ajax refreshed and re-evaluated. For simplicity, we
  could re-set the cache of all models when change occurs. And
  redraw-all.
  3. We want to reset cache ONLY if change occurs.
 
  In my understanding requirement 3 cannot be directly reached with
  detachable models.
 
  **
  Martin
 
 
 
 

 -
 To unsubscribe, 

Re: When NOT to use models ?

2009-10-26 Thread Joseph Pachod

Martin Makundi wrote:

Hmm, maybe I'm missing something, but if you want to have EVALUATED once per
request, I think the following should be sufficient. (unless I'm missing
somtething)



I want a generic centrally managed solution. I don't want to cache
every model manually.

  
From what I get from your discussion, this might help 
http://www.codesmell.org/blog/2009/05/idetachlistener-saves-the-day/, 
which shows how to check for components' fields.


++
joseph

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



Re: WhiteSpaces in PasswordTextField

2009-10-26 Thread vela

Hello again,

How to change the default value to false
 



-- 
View this message in context: 
http://www.nabble.com/WhiteSpaces-in-PasswordTextField-tp26047182p26056628.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: WhiteSpaces in PasswordTextField

2009-10-26 Thread Haulyn R. Jason
You can override it, I think so.


On Mon, Oct 26, 2009 at 5:33 PM, vela vela@gmail.com wrote:

 Hello again,

 How to change the default value to false




 --
 View this message in context: 
 http://www.nabble.com/WhiteSpaces-in-PasswordTextField-tp26047182p26056628.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





-- 
Many thanks!

Haulyn Microproduction

You can access me with the following ways:
Location: Shandong Jinan Shumagang 6H-8, 25
Mobile: +086-15864011231
email: saharab...@gmail.com, hmp.hau...@foxmail.com
website: http://haulynjason.net
gtalk: saharab...@gmail.com
skype: saharabear
QQ: 378606292
persional Twitter: http://twitter.com/saharabear
persional Linkedin: http://www.linkedin.com/in/haulyn
Haulyn Microproduction Twitter: http://twitter.com/haulynmp


Haulyn Jason

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



Re: wizard step window size / width

2009-10-26 Thread Pedro Santos
Hi, how are you using wizard? The addDefaultCssStyle method is to be
overridden to add your own css. On it you configure the width properties to
100%
ex:
.wicketExtensionsWizardOuterTable{
width: 100%;
}
.wicketExtensionsWizardInnerTable {
width: 100%;
}

On Sun, Oct 25, 2009 at 8:53 AM, Sam Zilverberg samzilverb...@gmail.comwrote:

 Hello,

 I've recently created a wizard , but the wizard steps are too small for the
 content I want to put in them.
 How can I change a wizardstep width? or the whole wizard width?

 I noticed I can override the addDefaultCssStyle method of Wizard, but am
 not
 sure how to use this method too
 make the width larger...

 Thanks,
 Sam




-- 
Pedro Henrique Oliveira dos Santos


Re: Isssues in Modal Window display in IE8

2009-10-26 Thread Pedro Santos
What document mode are you using?
Modal window is working fine for me. Anyway, I had to take care to don't let
IE load my page in quirk mode:
http://en.wikipedia.org/wiki/Quirks_mode

On Sun, Oct 25, 2009 at 4:54 PM, Per Newgro per.new...@gmx.ch wrote:

 The only thing we had here was that transparency of background page was
 ignored. Page was displayed in black.
 But that seemed to be a specific issue on some maschines. So generally we
 have no problems here
 with ie8 and modal window. Can you be more precise on your issue?

 Cheers
 Per




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




-- 
Pedro Henrique Oliveira dos Santos


RE: Wicket Wizard Functionality (Extensions)

2009-10-26 Thread svenmeier

See https://issues.apache.org/jira/browse/WICKET-2542


Corbin, James-2 wrote:
 
 Hi Sven,
 
 What exactly am I supposed to implement in the
 AjaxFormSubmittingBehavior.onSubmit(...)?  I've tried everything I can
 think of and the popup still dismisses(closes) when I press the Next
 button after completing step 1.
 
 J
 
 -Original Message-
 From: Sven Meier [mailto:s...@meiers.net] 
 Sent: Saturday, October 24, 2009 11:35 AM
 To: users@wicket.apache.org
 Subject: Re: Wicket Wizard Functionality (Extensions)
 
 Hi James,
 
 regretfully the standard Wicket dialog doesn't support non-AJAX request 
 - perhaps this restriction applies to the YUI version too?
 
 You'll have to ajax-ify the wizard - see Wizard#newButtonBar(). I've 
 done it for our project but I don't have the code available at the
 moment.
 
 Regards
 
 Sven
 
 Corbin, James wrote:
 Hi Sven,

 I'm running the wizard in a modal popup (YUI).

 One other thing that is happening is when I press the next button in
 the
 wizard that should take me to the next step, my dialog closes.  I'm
 not
 sure what would cause the dialog to dismiss/close in this manner.

 J.D.

 -Original Message-
 From: Sven Meier [mailto:s...@meiers.net] 
 Sent: Saturday, October 24, 2009 8:32 AM
 To: users@wicket.apache.org
 Subject: Re: Wicket Wizard Functionality (Extensions)

 Hi James,

  but Wicket's implementation seems to only evaluate the condition at
 step
  creation and not when I'm changing the state of my radios.

 see NextButton#isEnabled() and FinishButton#isEnabled(). As far as I
 can

 see these method should support your usecase. Implementing ICondition
 as

 you did seems right to me.

 I assume you're notifying changes of the current radio choice to the 
 server via AJAX? Are you adding the whole wizard to the request so the
 
 button bar is re-rendered?

 Sven

 Corbin, James wrote:
   
 I am writing a two step wizard using wicket's wizard implementation
 
 and
   
 having some issues.

 I am using Wicket 1.4.1.

 My first wizard step contains a RadioChoice with 3 options. 

 I would like the Finish Button to be enabled on Wizard Step 1 if
 
 either
   
 the first or second radio choice is selected.  Also, if the first or
 second radio is selected, then the next button should not be enabled.

 If the 3rd Radio Choice is selected, then I want the Finish Button to
 
 be
   
 DISABLED, and the next button to be enabled so the user can go to the
 final step.

 My question

 I'm not sure how to set this up in wicket's wizard implementation.  I
 tried specifying an ICondition on step two, to only make that step
 available if the selected type is Radio Choice Option 3 from step
 one,
 but Wicket's implementation seems to only evaluate the condition at
 
 step
   
 creation and not when I'm changing the state of my radios
 

 -
 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
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Wicket-Wizard-Functionality-%28Extensions%29-tp26035189p26057485.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Wicket Wizard Functionality (Extensions)

2009-10-26 Thread Ernesto Reinaldo Barreiro
Hi,

Don't know if it would be of any use here but I have extended, for private
use, Wizard into an Ajax Wizard.  You can see  details here.

http://code.google.com/p/antilia/source/browse/#svn/trunk/com.antilia.web/src/com/antilia/web/wizard
http://code.google.com/p/antilia/source/browse/#svn/trunk/com.antilia.web/src/com/antilia/web/wizard
I just overrode the standard component and replaced some parts with what I
need...

Best,

Ernesto

On Sat, Oct 24, 2009 at 2:00 AM, Corbin, James jcor...@iqnavigator.comwrote:

 I am writing a two step wizard using wicket's wizard implementation and
 having some issues.



 I am using Wicket 1.4.1.



 My first wizard step contains a RadioChoice with 3 options.



 I would like the Finish Button to be enabled on Wizard Step 1 if either
 the first or second radio choice is selected.  Also, if the first or
 second radio is selected, then the next button should not be enabled.



 If the 3rd Radio Choice is selected, then I want the Finish Button to be
 DISABLED, and the next button to be enabled so the user can go to the
 final step.



 My question



 I'm not sure how to set this up in wicket's wizard implementation.  I
 tried specifying an ICondition on step two, to only make that step
 available if the selected type is Radio Choice Option 3 from step one,
 but Wicket's implementation seems to only evaluate the condition at step
 creation and not when I'm changing the state of my radios.



 I'm hoping I can do this without implementing my own IWizardListener.



 NOTE: I noticed the Wicket Wizard Examples that are online do not
 function properly.  I went through the whole NewUserWizard and the
 Finish button was never enabled.



 Ideas?

 _

 IQNavigator has relocated to new offices. Our telephone numbers remain
 the same. Our new address is:

 IQNavigator

 6465 Greenwood Plaza Blvd Suite 800

 Centennial, CO 80111

 303-563-1500






Re: Isssues in Modal Window display in IE8

2009-10-26 Thread vela

Hello again,

We have a button in the form. On click of the button, the modal window will
be displayed. This was actually working well in IE7 and Firefox.

In IE8, when I click on the button, a new blank page is displayed with value
http:/// in the address bar  the comment The address is not valid in the
page.

Actually, the modal window with  page is used and not the modal with panels.







-- 
View this message in context: 
http://www.nabble.com/Isssues-in-Modal-Window-display-in-IE8-tp26047156p26058433.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



ListMultipleChoice - Pre fill out

2009-10-26 Thread Peter Arnulf Lustig
Hi,

how can I pre-select some List-Items, when showing the form with the 
ListMultipleChoice?

Thank you for some advice!





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



Re: ListMultipleChoice - Pre fill out

2009-10-26 Thread Pieter Degraeuwe
just make sure that the model, which contains the 'selected' items, does
already contain the selected items.

Your model probably maps to an object property. (in this case, the property
is a collection(List/set) . So, add te 'pre-selection' to the collection,
and the ListMultipleChoice will follow..

On Mon, Oct 26, 2009 at 1:53 PM, Peter Arnulf Lustig u...@yahoo.dewrote:

 Hi,

 how can I pre-select some List-Items, when showing the form with the
 ListMultipleChoice?

 Thank you for some advice!





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




-- 
Pieter Degraeuwe
Systemworks bvba
Belgiëlaan 61
9070 Destelbergen
GSM: +32 (0)485/68.60.85
Email: pieter.degrae...@systemworks.be
visit us at http://www.systemworks.be


AW: ListMultipleChoice - Pre fill out

2009-10-26 Thread Peter Arnulf Lustig
and in the html it is also showed as selected ?



- Ursprüngliche Mail 
Von: Pieter Degraeuwe pieter.degrae...@systemworks.be
An: users@wicket.apache.org
Gesendet: Montag, den 26. Oktober 2009, 13:59:36 Uhr
Betreff: Re: ListMultipleChoice - Pre fill out

just make sure that the model, which contains the 'selected' items, does
already contain the selected items.

Your model probably maps to an object property. (in this case, the property
is a collection(List/set) . So, add te 'pre-selection' to the collection,
and the ListMultipleChoice will follow..

On Mon, Oct 26, 2009 at 1:53 PM, Peter Arnulf Lustig u...@yahoo.dewrote:

 Hi,

 how can I pre-select some List-Items, when showing the form with the
 ListMultipleChoice?

 Thank you for some advice!





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




-- 
Pieter Degraeuwe
Systemworks bvba
Belgiëlaan 61
9070 Destelbergen
GSM: +32 (0)485/68.60.85
Email: pieter.degrae...@systemworks.be
visit us at http://www.systemworks.be





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



Re: ListMultipleChoice - Pre fill out

2009-10-26 Thread Pedro Santos
yes:

List options = Arrays.asList(a, b, c);
add(new ListMultipleChoice(select, new
Model((Serializable)Arrays.asList(b)), options));


On Mon, Oct 26, 2009 at 11:06 AM, Peter Arnulf Lustig u...@yahoo.dewrote:

 and in the html it is also showed as selected ?



 - Ursprüngliche Mail 
 Von: Pieter Degraeuwe pieter.degrae...@systemworks.be
 An: users@wicket.apache.org
 Gesendet: Montag, den 26. Oktober 2009, 13:59:36 Uhr
 Betreff: Re: ListMultipleChoice - Pre fill out

 just make sure that the model, which contains the 'selected' items, does
 already contain the selected items.

 Your model probably maps to an object property. (in this case, the property
 is a collection(List/set) . So, add te 'pre-selection' to the collection,
 and the ListMultipleChoice will follow..

 On Mon, Oct 26, 2009 at 1:53 PM, Peter Arnulf Lustig u...@yahoo.de
 wrote:

  Hi,
 
  how can I pre-select some List-Items, when showing the form with the
  ListMultipleChoice?
 
  Thank you for some advice!
 
 
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 


 --
 Pieter Degraeuwe
 Systemworks bvba
 Belgiëlaan 61
 9070 Destelbergen
 GSM: +32 (0)485/68.60.85
 Email: pieter.degrae...@systemworks.be
 visit us at http://www.systemworks.be





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




-- 
Pedro Henrique Oliveira dos Santos


AW: ListMultipleChoice - Pre fill out

2009-10-26 Thread Peter Arnulf Lustig
fantastic pedro! it works really great!



- Ursprüngliche Mail 
Von: Pedro Santos pedros...@gmail.com
An: users@wicket.apache.org
Gesendet: Montag, den 26. Oktober 2009, 14:13:55 Uhr
Betreff: Re: ListMultipleChoice - Pre fill out

yes:

List options = Arrays.asList(a, b, c);
add(new ListMultipleChoice(select, new
Model((Serializable)Arrays.asList(b)), options));


On Mon, Oct 26, 2009 at 11:06 AM, Peter Arnulf Lustig u...@yahoo.dewrote:

 and in the html it is also showed as selected ?



 - Ursprüngliche Mail 
 Von: Pieter Degraeuwe pieter.degrae...@systemworks.be
 An: users@wicket.apache.org
 Gesendet: Montag, den 26. Oktober 2009, 13:59:36 Uhr
 Betreff: Re: ListMultipleChoice - Pre fill out

 just make sure that the model, which contains the 'selected' items, does
 already contain the selected items.

 Your model probably maps to an object property. (in this case, the property
 is a collection(List/set) . So, add te 'pre-selection' to the collection,
 and the ListMultipleChoice will follow..

 On Mon, Oct 26, 2009 at 1:53 PM, Peter Arnulf Lustig u...@yahoo.de
 wrote:

  Hi,
 
  how can I pre-select some List-Items, when showing the form with the
  ListMultipleChoice?
 
  Thank you for some advice!
 
 
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 


 --
 Pieter Degraeuwe
 Systemworks bvba
 Belgiëlaan 61
 9070 Destelbergen
 GSM: +32 (0)485/68.60.85
 Email: pieter.degrae...@systemworks.be
 visit us at http://www.systemworks.be





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




-- 
Pedro Henrique Oliveira dos Santos





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



Re: I18N for bookmarkable urls

2009-10-26 Thread Bernhard Grünewaldt

Hello,

After thinking a bit I came up with a solution (which many of you might 
call dirty workaround). But since no one else came up with a solution

I will stick to it until something better will be provided.

The solution can be found here:

http://blog.gruenewaldt.net/en/programming/java/apache-wicket-1_4-mounting-urls-for-a-multilanguage-setup-i18n-seo/

Perhaps someone might find that useful.

Bernhard


Bernhard Grünewaldt schrieb:

Hi folks,

Since my app will be english and german aswell, that is something I need 
too. I tried to mount and unmount my pages

when the locale changes from german to english or vice versa.
I tried using ResourceModel Strings for the urls, but it's not working 
the way I want it to be. And it would be a massive amount of code for 
something that seems to be so simple.


The problem is, that I want both urls to be accessed via the url like in 
the example:

  http://xxx/impressum
and
  http://xxx/imprint
should be accessible not depending on a specific locale setting.
(Perhaps the locale should change to english or german depending on the 
url when accessed via a browser bookmark with no session)


The problem is, that you can mount a class multiple times, but for
creating the BookmarkablePageLinks the first one mounted will be used 
for the link. (tested with wicket 1.4.3).


Wouldn't it be cool to have such a mechanism which uses the Locale 
setting to generate links and mount pages.


For example (Just pseudo code):

.mount(
  new HybridUrlCodingStrategy(
impressum, ImprintPage.class, Locale.GERMAN)
);
.mount(
  new HybridUrlCodingStrategy(
imprint, ImprintPage.class, Locale.ENGLISH)
);

And when you then generate a url you could use:

add(new BookmarkablePageLinkVoid(
   bookmarked,
   ImprintPage.class,
   getSession().getLocale())
);

That way both urls would be accessible if bookmarked.
And the user gets the url generated in his locale while browsing through 
the app.


Is there a cool(=easy) way to do that or will it lead to
a massive code section that mounts and unmounts pages on locale change?

Bernhard


Ilja Pavkovic schrieb:

Hi,

as we need some SEO optimization I want to provide the following 
bookmarkable pages:


http://xxx/impressum
http://xxx/imprint

the native approach would be somethink like:

mountBookmarkablePage(imprint, ImprintPage.class);

mountBookmarkablePage(impressum, ImprintPage.class);

This looks ugly but works.
Now I don't know how to create a bookmarkable links having an url in 
the expected language.


if( getLocale().equals(Locale.GERMAN)) {
  //create http://xxx/impressum
} else {
  // http://xxx/imprint
}

Obviously the following code does not help:
  add(new BookmarkablePageLink(link, ImprintPage.class));

Does anyone have a good idea?

Best regards,
Ilja Pavkovic




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




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



RE: Wicket Wizard Functionality (Extensions)

2009-10-26 Thread Corbin, James
Hi Sven,

Thanks for the link.  I agree with your assessment and think the Wizard
Button functionality should be enhanced to easily support
Ajax-ification.

Regards,
J.D.

-Original Message-
From: svenmeier [mailto:s...@meiers.net] 
Sent: Monday, October 26, 2009 4:45 AM
To: users@wicket.apache.org
Subject: RE: Wicket Wizard Functionality (Extensions)


See https://issues.apache.org/jira/browse/WICKET-2542


Corbin, James-2 wrote:
 
 Hi Sven,
 
 What exactly am I supposed to implement in the
 AjaxFormSubmittingBehavior.onSubmit(...)?  I've tried everything I can
 think of and the popup still dismisses(closes) when I press the Next
 button after completing step 1.
 
 J
 
 -Original Message-
 From: Sven Meier [mailto:s...@meiers.net] 
 Sent: Saturday, October 24, 2009 11:35 AM
 To: users@wicket.apache.org
 Subject: Re: Wicket Wizard Functionality (Extensions)
 
 Hi James,
 
 regretfully the standard Wicket dialog doesn't support non-AJAX
request 
 - perhaps this restriction applies to the YUI version too?
 
 You'll have to ajax-ify the wizard - see Wizard#newButtonBar(). I've 
 done it for our project but I don't have the code available at the
 moment.
 
 Regards
 
 Sven
 
 Corbin, James wrote:
 Hi Sven,

 I'm running the wizard in a modal popup (YUI).

 One other thing that is happening is when I press the next button in
 the
 wizard that should take me to the next step, my dialog closes.  I'm
 not
 sure what would cause the dialog to dismiss/close in this manner.

 J.D.

 -Original Message-
 From: Sven Meier [mailto:s...@meiers.net] 
 Sent: Saturday, October 24, 2009 8:32 AM
 To: users@wicket.apache.org
 Subject: Re: Wicket Wizard Functionality (Extensions)

 Hi James,

  but Wicket's implementation seems to only evaluate the condition at
 step
  creation and not when I'm changing the state of my radios.

 see NextButton#isEnabled() and FinishButton#isEnabled(). As far as I
 can

 see these method should support your usecase. Implementing ICondition
 as

 you did seems right to me.

 I assume you're notifying changes of the current radio choice to the 
 server via AJAX? Are you adding the whole wizard to the request so
the
 
 button bar is re-rendered?

 Sven

 Corbin, James wrote:
   
 I am writing a two step wizard using wicket's wizard implementation
 
 and
   
 having some issues.

 I am using Wicket 1.4.1.

 My first wizard step contains a RadioChoice with 3 options. 

 I would like the Finish Button to be enabled on Wizard Step 1 if
 
 either
   
 the first or second radio choice is selected.  Also, if the first or
 second radio is selected, then the next button should not be
enabled.

 If the 3rd Radio Choice is selected, then I want the Finish Button
to
 
 be
   
 DISABLED, and the next button to be enabled so the user can go to
the
 final step.

 My question

 I'm not sure how to set this up in wicket's wizard implementation.
I
 tried specifying an ICondition on step two, to only make that step
 available if the selected type is Radio Choice Option 3 from step
 one,
 but Wicket's implementation seems to only evaluate the condition at
 
 step
   
 creation and not when I'm changing the state of my radios
 

 -
 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
 
 
 

-- 
View this message in context:
http://www.nabble.com/Wicket-Wizard-Functionality-%28Extensions%29-tp260
35189p26057485.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



Fw: new to wicket

2009-10-26 Thread sharief Mohammed






Hi,
   i am resending this message .i thought question would be missed 
since iam not subscribed to the list .since i sent the message for subscription 
i hope the subscription is complete now.
 
this is first time i am trying to learn or trying to write code through the 
wicket.i know iam asking very basic question and i look stupid asking this 
question
 
i went to  http://wicket.apache.org/examplehelloworld.html
i created a project in eclipse and added the 2 java and html file and web.xml 
and created a war ( placed wicket-1.4.3 as external library) and deployed in 
websphere it doesn't work.
i did use the maven example even then it is more confusing for me with jetty i 
couldn't come to conculsion about the exact jar files used by jetty and one 
used by maven and jars exactly required for the simple hello world example to 
work.
 
and one more observation in web.xml
init-param
  param-nameapplicationClassName/param-name
  
param-valueorg.apache.wicket.examples.helloworld.HelloWorldApplication/param-value
    /init-param

no where earlier java files package name org.apache.wicket.examples is 
mentioned  
  ---or ---
do i need any other jar file needed for the example to run since iam getting 
 
--Start of DE processing-- = [10/25/09 23:39:58:425 EDT] , key = 
java.lang.ClassNotFoundException 
com.ibm.ws.webcontainer.filter.WebAppFilterManager.loadFilter 298
Exception = java.lang.ClassNotFoundException
Source = com.ibm.ws.webcontainer.filter.WebAppFilterManager.loadFilter
 
after i deployed the war into the websphere
 
 Thanks in advance for your help.
 



  

Wicket-stuff site down?

2009-10-26 Thread Brill Pappin

Is the Wicket-stuff site down for anyone else?

- Brill

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



Re: Wicket-stuff site down?

2009-10-26 Thread Jeremy Thomerson
Yes

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



On Mon, Oct 26, 2009 at 11:08 AM, Brill Pappin br...@pappin.ca wrote:

 Is the Wicket-stuff site down for anyone else?

 - Brill

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




Re: [ANN] wicket-dnd project

2009-10-26 Thread nestrmu

Hi, Sven
  I'm trying to use you wonderfull wicket-dnd, but i met with the problem -
how can i use it with a regular wicket tree like a LabelTree, for example.
Is it possible? 
   
Alex


svenmeier wrote:
 
 Hi all,
 
 I'm happy to announce wicket-dnd, a generic drag and drop framework for
 Wicket.
 
 The API has not been fully stabilized yet but you are invited to take a
 first look:
 
   http://code.google.com/p/wicket-dnd/
 
 Have fun
 
 Sven
 
 
 -
 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/-ANN--wicket-dnd-project-tp25727819p26063618.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



How to write HTML directly

2009-10-26 Thread nick kitching

Hi,
 
I have a Java class which outputs HTML directly including HTML,HEAD and 
BODY tags.
 
Using JSP I simply include this class as a bean and then have the JSP do 
something like
${bean.itsMethod}
to have those tags written directly into my page.
 
I'm just starting out with Wicket and wondered how I could use this same bean 
in Wicket pages.
 
Thanks in advance.
  
_
New Windows 7: Find the right PC for you. Learn more.
http://www.microsoft.com/windows/buy/ 

Re: How to write HTML directly

2009-10-26 Thread Mauro Ciancio
Nick:

On Mon, Oct 26, 2009 at 2:27 PM, nick kitching n_kitch...@hotmail.comwrote:

 I have a Java class which outputs HTML directly including HTML,HEAD and
 BODY tags.

 Using JSP I simply include this class as a bean and then have the JSP do
 something like
 ${bean.itsMethod}
 to have those tags written directly into my page.


  Wicket does not works like that. You write a plain HTML and then add the
dynamic
content with a class which extends WebPage.
  Please take a look to the wicket quickstart project in
http://wicket.apache.org/quickstart.html .

Cheers,
-- 
Mauro Ciancio


Re: How to write HTML directly

2009-10-26 Thread Igor Vaynberg
add(new label(output, new propertymodel(this,
itsMethod)).setescapemodelstrings(false));

and im markup

wicket:container wicket:id=output/wicket:container

-igor


On Mon, Oct 26, 2009 at 10:27 AM, nick kitching n_kitch...@hotmail.com wrote:

 Hi,

 I have a Java class which outputs HTML directly including HTML,HEAD and 
 BODY tags.

 Using JSP I simply include this class as a bean and then have the JSP do 
 something like
 ${bean.itsMethod}
 to have those tags written directly into my page.

 I'm just starting out with Wicket and wondered how I could use this same bean 
 in Wicket pages.

 Thanks in advance.

 _
 New Windows 7: Find the right PC for you. Learn more.
 http://www.microsoft.com/windows/buy/

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



Re: How to write HTML directly

2009-10-26 Thread NiJK

Mauro,

Thanks for your reply. I understand that Wicket doesn't work the same way
and was wondering how this could be achieved. Is there just no way to output
HTML directly? How would you use wicket to send an XML file, for example, or
an image?
-- 
View this message in context: 
http://www.nabble.com/How-to-write-HTML-directly-tp26063933p26064181.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 write HTML directly

2009-10-26 Thread Mauro Ciancio
Nick:

On Mon, Oct 26, 2009 at 2:43 PM, NiJK n_kitch...@hotmail.com wrote:

 Thanks for your reply. I understand that Wicket doesn't work the same way
 and was wondering how this could be achieved. Is there just no way to
 output
 HTML directly? How would you use wicket to send an XML file, for example,
 or
 an image?


As Igor said, you can send html directly using that code snippet. To send
an image to the browser you could use any of the following classes:

http://wicket.apache.org/docs/1.4/org/apache/wicket/markup/html/image/resource/package-summary.html

Cheers,
-- 
Mauro Ciancio


Re: Isssues in Modal Window display in IE8

2009-10-26 Thread TahitianGabriel

Which version are you using?
This issue has been solved month ago, see :

https://issues.apache.org/jira/browse/WICKET-2207


Regards,

Gabriel. 


vela wrote:
 
 Hello again,
 
 We have a button in the form. On click of the button, the modal window
 will be displayed. This was actually working well in IE7 and Firefox.
 
 In IE8, when I click on the button, a new blank page is displayed with
 value http:/// in the address bar  the comment The address is not valid
 in the page.
 
 Actually, the modal window with  page is used and not the modal with
 panels.
 
 

-- 
View this message in context: 
http://www.nabble.com/Isssues-in-Modal-Window-display-in-IE8-tp26047156p26064620.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: WhiteSpaces in PasswordTextField

2009-10-26 Thread TahitianGabriel

Yeah, it's a known issue that won't be fixed in 1.4 :
https://issues.apache.org/jira/browse/WICKET-2393

Regards,

Gabriel.


Haulyn Jason-2 wrote:
 
 You can override it, I think so.
 
 
 On Mon, Oct 26, 2009 at 5:33 PM, vela vela@gmail.com wrote:

 Hello again,

 How to change the default value to false




 --
 View this message in context:
 http://www.nabble.com/WhiteSpaces-in-PasswordTextField-tp26047182p26056628.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


 
 
 
 -- 
 Many thanks!
 
 Haulyn Microproduction
 
 You can access me with the following ways:
 Location: Shandong Jinan Shumagang 6H-8, 25
 Mobile: +086-15864011231
 email: saharab...@gmail.com, hmp.hau...@foxmail.com
 website: http://haulynjason.net
 gtalk: saharab...@gmail.com
 skype: saharabear
 QQ: 378606292
 persional Twitter: http://twitter.com/saharabear
 persional Linkedin: http://www.linkedin.com/in/haulyn
 Haulyn Microproduction Twitter: http://twitter.com/haulynmp
 
 
 Haulyn Jason
 
 -
 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/WhiteSpaces-in-PasswordTextField-tp26047182p26064685.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 write HTML directly

2009-10-26 Thread NiJK



igor.vaynberg wrote:
 
 add(new label(output, new propertymodel(this,
 itsMethod)).setescapemodelstrings(false));
 and im markup
 wicket:container wicket:id=output/wicket:container
 -igor
 

Igor,

I just tried this and I end up with all the HTML contained within the wicket
tags.
Also, despite the setEscapeModelString(false), all the HTML is escaped.

-- 
View this message in context: 
http://www.nabble.com/How-to-write-HTML-directly-tp26063933p26064720.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



Validation Warning vs. Validation Error

2009-10-26 Thread Charles Deal
I know that a validation can be implemented using the IValidator interface,
however, a FormComponent causes an error to be registered and prevents the
form from submitting.  So, how would you implement a validation warning?
Something that essentially does the same thing (including resource
resolution, message to feedback, etc), except doesn't prevent form
submittal.

My thoughts right now are to just make an AbstractValidator subclass and
cast the validatable object to a FormComponent so that I can call warn() on
it.  However, this doesn't give me the benefit of resource resolution.  I
could code capture everything that happens for the error path, so that I can
acheive the resource resolution.  I just want to make sure there isn't a
better way, first.


Wicket with Shindig

2009-10-26 Thread Brill Pappin

I'm considering using Shindig for a new project
(See: http://incubator.apache.org/shindig/index.html)

Is there any Wicket/Shindig code around or has anyone been working on  
getting the two to work together?


- Brill

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



Re: Fw: new to wicket

2009-10-26 Thread Ralf Eichinger

have a look at http://cwiki.apache.org/WICKET/newuserguide.html
perhaps it helps...

sharief Mohammed wrote:





Hi,
   i am resending this message .i thought question would be missed since 
iam not subscribed to the list .since i sent the message for subscription i 
hope the subscription is complete now.
 
this is first time i am trying to learn or trying to write code through the wicket.i know iam asking very basic question and i look stupid asking this question
 
i went to  http://wicket.apache.org/examplehelloworld.html

i created a project in eclipse and added the 2 java and html file and web.xml 
and created a war ( placed wicket-1.4.3 as external library) and deployed in 
websphere it doesn't work.
i did use the maven example even then it is more confusing for me with jetty i 
couldn't come to conculsion about the exact jar files used by jetty and one 
used by maven and jars exactly required for the simple hello world example to 
work.
 
and one more observation in web.xml

init-param
  param-nameapplicationClassName/param-name
  
param-valueorg.apache.wicket.examples.helloworld.HelloWorldApplication/param-value
/init-param

no where earlier java files package name org.apache.wicket.examples is mentioned  
  ---or ---
do i need any other jar file needed for the example to run since iam getting 
 
--Start of DE processing-- = [10/25/09 23:39:58:425 EDT] , key = java.lang.ClassNotFoundException com.ibm.ws.webcontainer.filter.WebAppFilterManager.loadFilter 298

Exception = java.lang.ClassNotFoundException
Source = com.ibm.ws.webcontainer.filter.WebAppFilterManager.loadFilter
 
after i deployed the war into the websphere
 
 Thanks in advance for your help.
  


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



Re: [ANN] wicket-dnd project

2009-10-26 Thread Sven Meier

Hi Alex,

I'm not sure I understand your question:
wicket-tree is an alternative to the tree classes in wicket-core and 
wicket-extensions.

DefaultNestedTree gives you almost the same functionality as LabelTree.

Regards

Sven

nestrmu wrote:

Hi, Sven
  I'm trying to use you wonderfull wicket-dnd, but i met with the problem -
how can i use it with a regular wicket tree like a LabelTree, for example.
Is it possible? 
   
Alex



svenmeier wrote:
  

Hi all,

I'm happy to announce wicket-dnd, a generic drag and drop framework for
Wicket.

The API has not been fully stabilized yet but you are invited to take a
first look:

http://code.google.com/p/wicket-dnd/

Have fun

Sven


-
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 write HTML directly

2009-10-26 Thread Igor Vaynberg
On Mon, Oct 26, 2009 at 11:17 AM, NiJK n_kitch...@hotmail.com wrote:

 igor.vaynberg wrote:

 add(new label(output, new propertymodel(this,
 itsMethod)).setescapemodelstrings(false));
 and im markup
 wicket:container wicket:id=output/wicket:container
 -igor


 Igor,

 I just tried this and I end up with all the HTML contained within the wicket
 tags.

you can say: setrenderbodyonly(true) to remove those, usually those
would be stripped via a global setting or when your app is configured
to run in deployment mode.

 Also, despite the setEscapeModelString(false), all the HTML is escaped.

that is pretty weird. i just tried and it worked fine for me...

-igor


 --
 View this message in context: 
 http://www.nabble.com/How-to-write-HTML-directly-tp26063933p26064720.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: I18N for bookmarkable urls

2009-10-26 Thread Ilja Pavkovic
Hi,

a better solution (in my eyes.. :)) is something like: 

import java.util.Locale;

import org.apache.wicket.IRequestTarget;
import org.apache.wicket.Page;
import org.apache.wicket.Session;
import 
org.apache.wicket.request.target.coding.BookmarkablePageRequestTargetUrlCodingStrategy;

public class I18NBookmarkablePageRequestTargetUrlCodingStrategy extends 
BookmarkablePageRequestTargetUrlCodingStrategy {

private Locale locale;

public C extends Page 
I18NBookmarkablePageRequestTargetUrlCodingStrategy(Locale locale, String 
mountPath,
ClassC bookmarkablePageClass) {
this(locale, mountPath, bookmarkablePageClass, null);
}

private C extends Page 
I18NBookmarkablePageRequestTargetUrlCodingStrategy(Locale locale, String 
mountPath,
ClassC bookmarkablePageClass, String pageMapName) {
super(mountPath, bookmarkablePageClass, pageMapName);
this.locale = locale;
}

//public IRequestTarget decode(RequestParameters requestParameters)
public boolean matches(IRequestTarget requestTarget) {
boolean matches = super.matches(requestTarget);
if(matches) {
matches = locale == null || 

locale.equals(Session.get().getLocale()) || 
// also match en and en_US

locale.getLanguage().equals(Session.get().getLocale().getLanguage()); 
}
return matches;
}
}

you can use it with: 

mount(new 
I18NBookmarkablePageRequestTargetUrlCodingStrategy(Locale.GERMAN,startseite,getHomePage()));
mount(new 
I18NBookmarkablePageRequestTargetUrlCodingStrategy(Locale.ENGLISH,homepage,getHomePage()));


Be warned: this is only a hack that may break at your site :))

Am Montag, 26. Oktober 2009 15:25:49 schrieb Bernhard Grünewaldt:
 Hello,
 
 After thinking a bit I came up with a solution (which many of you might
 call dirty workaround). But since no one else came up with a solution
 I will stick to it until something better will be provided.
 
 The solution can be found here:
 
 http://blog.gruenewaldt.net/en/programming/java/apache-wicket-1_4-mounting-
 urls-for-a-multilanguage-setup-i18n-seo/
 
 Perhaps someone might find that useful.
 
 Bernhard
 
 Bernhard Grünewaldt schrieb:
  Hi folks,
 
  Since my app will be english and german aswell, that is something I need
  too. I tried to mount and unmount my pages
  when the locale changes from german to english or vice versa.
  I tried using ResourceModel Strings for the urls, but it's not working
  the way I want it to be. And it would be a massive amount of code for
  something that seems to be so simple.
 
  The problem is, that I want both urls to be accessed via the url like in
  the example:
http://xxx/impressum
  and
http://xxx/imprint
  should be accessible not depending on a specific locale setting.
  (Perhaps the locale should change to english or german depending on the
  url when accessed via a browser bookmark with no session)
 
  The problem is, that you can mount a class multiple times, but for
  creating the BookmarkablePageLinks the first one mounted will be used
  for the link. (tested with wicket 1.4.3).
 
  Wouldn't it be cool to have such a mechanism which uses the Locale
  setting to generate links and mount pages.
 
  For example (Just pseudo code):
 
  .mount(
new HybridUrlCodingStrategy(
  impressum, ImprintPage.class, Locale.GERMAN)
  );
  .mount(
new HybridUrlCodingStrategy(
  imprint, ImprintPage.class, Locale.ENGLISH)
  );
 
  And when you then generate a url you could use:
 
  add(new BookmarkablePageLinkVoid(
 bookmarked,
 ImprintPage.class,
 getSession().getLocale())
  );
 
  That way both urls would be accessible if bookmarked.
  And the user gets the url generated in his locale while browsing through
  the app.
 
  Is there a cool(=easy) way to do that or will it lead to
  a massive code section that mounts and unmounts pages on locale change?
 
  Bernhard
 
  Ilja Pavkovic schrieb:
  Hi,
 
  as we need some SEO optimization I want to provide the following
  bookmarkable pages:
 
  http://xxx/impressum
  http://xxx/imprint
 
  the native approach would be somethink like:
 
  mountBookmarkablePage(imprint, ImprintPage.class);
 
  mountBookmarkablePage(impressum, ImprintPage.class);
 
  This looks ugly but works.
  Now I don't know how to create a bookmarkable links having an url in
  the expected language.
 
  if( getLocale().equals(Locale.GERMAN)) {
//create http://xxx/impressum
  } else {
// http://xxx/imprint
  }
 
  Obviously the following code does not help:
add(new BookmarkablePageLink(link, ImprintPage.class));
 
  Does anyone have a good idea?
 
  Best regards,
  Ilja Pavkovic
 
  

Re: How to write HTML directly

2009-10-26 Thread NiJK



igor.vaynberg wrote:
 
 Also, despite the setEscapeModelString(false), all the HTML is escaped.
 that is pretty weird. i just tried and it worked fine for me...
 -igor
 

Igor,

Thanks for the info about setStripWicketTags(true).

Something as simple as 
add(new Label(output,h1Hello/h1)).setEscapeModelStrings(false);
is rendering as
lt;h1gt;Hellolt;/h1gt;

I take it you're not seeing the same?
-- 
View this message in context: 
http://www.nabble.com/How-to-write-HTML-directly-tp26063933p26067076.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 write HTML directly

2009-10-26 Thread Igor Vaynberg
when you do view source in your browser, what does it show?

-igor

On Mon, Oct 26, 2009 at 1:33 PM, NiJK n_kitch...@hotmail.com wrote:



 igor.vaynberg wrote:

 Also, despite the setEscapeModelString(false), all the HTML is escaped.
 that is pretty weird. i just tried and it worked fine for me...
 -igor


 Igor,

 Thanks for the info about setStripWicketTags(true).

 Something as simple as
 add(new Label(output,h1Hello/h1)).setEscapeModelStrings(false);
 is rendering as
 h1Hello/h1

 I take it you're not seeing the same?
 --
 View this message in context: 
 http://www.nabble.com/How-to-write-HTML-directly-tp26063933p26067076.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 write HTML directly

2009-10-26 Thread Jason Novotny


Try changing

add(new Label(output,h1Hello/h1)).setEscapeModelStrings(false);

to

Label label = new Label(output,h1Hello/h1);
label.setEscapeModelStrings(false);
add(label);

Jason

NiJK wrote:


igor.vaynberg wrote:
  

Also, despite the setEscapeModelString(false), all the HTML is escaped.
  

that is pretty weird. i just tried and it worked fine for me...
-igor




Igor,

Thanks for the info about setStripWicketTags(true).

Something as simple as 
add(new Label(output,h1Hello/h1)).setEscapeModelStrings(false);

is rendering as
lt;h1gt;Hellolt;/h1gt;

I take it you're not seeing the same?
  



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



Re: How to write HTML directly

2009-10-26 Thread James Carman
Yes add(new Label(output,h1Hello/h1)) returns this which is
the current component/page.  Then, you're calling
setEscapeModelStrings(false) on that, which is not what you want.  You
want:

add(new Label(output,h1Hello/h1).setEscapeModelStrings(false));

Igor's example had the double end parens because he was using a PropertyModel.

On Mon, Oct 26, 2009 at 4:43 PM, Jason Novotny jason.novo...@gmail.com wrote:

 Try changing

 add(new Label(output,h1Hello/h1)).setEscapeModelStrings(false);

 to

 Label label = new Label(output,h1Hello/h1);
 label.setEscapeModelStrings(false);
 add(label);

 Jason

 NiJK wrote:

 igor.vaynberg wrote:


 Also, despite the setEscapeModelString(false), all the HTML is escaped.


 that is pretty weird. i just tried and it worked fine for me...
 -igor



 Igor,

 Thanks for the info about setStripWicketTags(true).

 Something as simple as add(new
 Label(output,h1Hello/h1)).setEscapeModelStrings(false);
 is rendering as
 lt;h1gt;Hellolt;/h1gt;

 I take it you're not seeing the same?



 -
 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 write HTML directly

2009-10-26 Thread NiJK



James Carman-3 wrote:
 
 add(new Label(output,h1Hello/h1).setEscapeModelStrings(false));
 

Thanks for all your help on this, guys.
And apologies to Igor for not paying attention to that syntax.
-- 
View this message in context: 
http://www.nabble.com/How-to-write-HTML-directly-tp26063933p26067765.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: Fw: new to wicket

2009-10-26 Thread sharief Mohammed
no luck with helloworld example.if you have any war file .if you can send me 
war file with wicket 1.4.3  that would be great .i will try to run on websphere 
Application server.

--- On Mon, 10/26/09, Ralf Eichinger ralf.eichin...@pixotec.de wrote:


From: Ralf Eichinger ralf.eichin...@pixotec.de
Subject: Re: Fw: new to wicket
To: users@wicket.apache.org
Date: Monday, October 26, 2009, 3:12 PM


have a look at http://cwiki.apache.org/WICKET/newuserguide.html
perhaps it helps...

sharief Mohammed wrote:
 
 
 
 
 Hi,
        i am resending this message .i thought question would be missed since 
iam not subscribed to the list .since i sent the message for subscription i 
hope the subscription is complete now.
  this is first time i am trying to learn or trying to write code through the 
wicket.i know iam asking very basic question and i look stupid asking this 
question
  i went to  http://wicket.apache.org/examplehelloworld.html
 i created a project in eclipse and added the 2 java and html file and web.xml 
 and created a war ( placed wicket-1.4.3 as external library) and deployed in 
 websphere it doesn't work.
 i did use the maven example even then it is more confusing for me with jetty 
 i couldn't come to conculsion about the exact jar files used by jetty and one 
 used by maven and jars exactly required for the simple hello world example to 
 work.
  and one more observation in web.xml
 init-param
           param-nameapplicationClassName/param-name
           
param-valueorg.apache.wicket.examples.helloworld.HelloWorldApplication/param-value
         /init-param
 
 no where earlier java files package name org.apache.wicket.examples is 
 mentioned    ---or ---
 do i need any other jar file needed for the example to run since iam getting  
 --Start of DE processing-- = [10/25/09 23:39:58:425 EDT] , key = 
 java.lang.ClassNotFoundException 
 com.ibm.ws.webcontainer.filter.WebAppFilterManager.loadFilter 298
 Exception = java.lang.ClassNotFoundException
 Source = com.ibm.ws.webcontainer.filter.WebAppFilterManager.loadFilter
  after i deployed the war into the websphere
   Thanks in advance for your help.
   

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




  

Re: Fw: new to wicket

2009-10-26 Thread Igor Vaynberg
use the maven quickstart on our webpage
type mvn package
and you will have a war file inside the target dir.

-igor

On Mon, Oct 26, 2009 at 2:23 PM, sharief Mohammed
sharief_ibm...@yahoo.com wrote:
 no luck with helloworld example.if you have any war file .if you can send me 
 war file with wicket 1.4.3  that would be great .i will try to run on 
 websphere Application server.

 --- On Mon, 10/26/09, Ralf Eichinger ralf.eichin...@pixotec.de wrote:


 From: Ralf Eichinger ralf.eichin...@pixotec.de
 Subject: Re: Fw: new to wicket
 To: users@wicket.apache.org
 Date: Monday, October 26, 2009, 3:12 PM


 have a look at http://cwiki.apache.org/WICKET/newuserguide.html
 perhaps it helps...

 sharief Mohammed wrote:




 Hi,
        i am resending this message .i thought question would be missed since 
iam not subscribed to the list .since i sent the message for subscription i 
hope the subscription is complete now.
  this is first time i am trying to learn or trying to write code through 
the wicket.i know iam asking very basic question and i look stupid asking 
this question
  i went to  http://wicket.apache.org/examplehelloworld.html
 i created a project in eclipse and added the 2 java and html file and 
 web.xml and created a war ( placed wicket-1.4.3 as external library) and 
 deployed in websphere it doesn't work.
 i did use the maven example even then it is more confusing for me with jetty 
 i couldn't come to conculsion about the exact jar files used by jetty and 
 one used by maven and jars exactly required for the simple hello world 
 example to work.
  and one more observation in web.xml
 init-param
           param-nameapplicationClassName/param-name
           
param-valueorg.apache.wicket.examples.helloworld.HelloWorldApplication/param-value
         /init-param

 no where earlier java files package name org.apache.wicket.examples is 
 mentioned    ---or ---
 do i need any other jar file needed for the example to run since iam 
 getting  --Start of DE processing-- = [10/25/09 23:39:58:425 EDT] , 
 key = java.lang.ClassNotFoundException 
 com.ibm.ws.webcontainer.filter.WebAppFilterManager.loadFilter 298
 Exception = java.lang.ClassNotFoundException
 Source = com.ibm.ws.webcontainer.filter.WebAppFilterManager.loadFilter
  after i deployed the war into the websphere
   Thanks in advance for your help.


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






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



Re: Wicket with Shindig

2009-10-26 Thread Fernando Wermus
Brill,
 It would be nice to have a wicket example shiding app at least. What I
know is that most developers choose liferay instead. I dont know any who is
using shiding with wicket.


On Mon, Oct 26, 2009 at 4:59 PM, Brill Pappin br...@pappin.ca wrote:

 I'm considering using Shindig for a new project
 (See: http://incubator.apache.org/shindig/index.html)

 Is there any Wicket/Shindig code around or has anyone been working on
 getting the two to work together?

 - Brill

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




-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus


Re: Wicket-stuff site down?

2009-10-26 Thread nino martinez wael
Here aswell ? argh : http://wicketstuff.org/confluence/errors.jsp

2009/10/26 Jeremy Thomerson jer...@wickettraining.com

 Yes

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



 On Mon, Oct 26, 2009 at 11:08 AM, Brill Pappin br...@pappin.ca wrote:

  Is the Wicket-stuff site down for anyone else?
 
  - Brill
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 



Re: Fw: new to wicket

2009-10-26 Thread James Carman
On Mon, Oct 26, 2009 at 5:24 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote:
 use the maven quickstart on our webpage
 type mvn package
 and you will have a war file inside the target dir.

And a bunch of source code you can tweak to your liking!

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



Re: Need help with error with in my list code

2009-10-26 Thread Lester Chua
Hi,

To set the record straight, JavaRebel works very well for Wicket.

My error was that I didnt understand Wicket's object lifecycles.
I did not refresh my wicket pages after a building affected page classes.
So the object instances where still old ones when I interacted with the
pages.
I had assumed wrongly that Wicket worked the same way as Struts etc (i.e.
traditional web servlets based technologies) and did not realise that the
Page instance is somehow held in memory by WIcket for my page session.

JavaRebel worked as expected after I do a refresh of the page after
rebuilding the page class.

I repeat JavaRebel works very well for Wicket.

Is there a good explaination or writeup on Wicket Page and Component
lifecycles that I can read up so that I can understand the lifecycle
properly?


On Mon, Oct 26, 2009 at 4:10 PM, Maarten Bosteels
mbosteels@gmail.comwrote:

 On Mon, Oct 26, 2009 at 4:57 AM, Haulyn R. Jason saharab...@gmail.com
 wrote:

  I do not think JavaReble is a good tool for Wicket. Try Glassfish with
  hot deploy with netbeans, works very well with Wicket.
 


 Why would Wicket not work well with JavaRebel ?
 It works fine for me.

 Maarten

 
  On Mon, Oct 26, 2009 at 10:50 AM, Lester Chua cicowic...@gmail.com
  wrote:
   Update:
  
   I found out what the was.
   I was running Jetty via JavaRebel agent.
   Somehow JavaRebel could not load in the changes in the Java code
 properly
   and that was what caused the code error.
   There was nothing wrong with the code.
  
   Thanks.
  
  
   On Mon, Oct 26, 2009 at 10:43 AM, Lester Chua cicowic...@gmail.com
  wrote:
  
   Hi,
  
   I'm very new to wicket and need some help with what I thought is very
   straight forward code.
  
   Wicket Version 1.4.3
   Code:
  
   -- Html -
  
   form wicket:id=dataForm
   Grouping: select wicket:id=grouping size=6/select
   Additional Remarks:
   textarea wicket:id=additionalRemarks
   name=additionalRemarks/textarea
   input type=submit value=In Process /
   /form
  
   -- Java --
  
   Form dataForm = new Form(dataForm) {
 @Override
 protected void onSubmit() {
 System.out.println(Form 4 submitted);
 }
   };
  
   dataForm.add(new TextArea(additionalRemarks, new
   Model(additionalRemarks)));
   ListString groupings = Arrays.asList(Group 1, Group 2);
   DropDownChoice grouping = new DropDownChoice(grouping, groupings);
   dataForm.add(grouping);
   add(dataForm);
  
   When I visit my page, I keep getting the error:
  
   --- Error -
  
   WicketMessage: Unable to find component with id 'grouping' in
   [MarkupContainer [Component id = dataForm]]. This means that you
  declared
   wicket:id=grouping in your markup, but that you either did not add the
   component to your page at all, or that the hierarchy does not match.
  
   It points to select wicket:id=grouping size=6 in my html.
  
   Removing the select lets the page render correctly.
  
   Is the error caused by me adding a DropDownChoice component to a Form?
  I've
   looked at the web examples and they dont seem to have a problem and
 yet
  my
   simple select form cannot run. Did I misunderstand the component
  hierarchy?
   DropDownList cannot be added to a Form?
  
   Help will be appreciated.
  
  
 
 
 
  --
  Many thanks!
 
  Haulyn Microproduction
 
  You can access me with the following ways:
  Location: Shandong Jinan Shumagang 6H-8, 25
  Mobile: +086-15864011231
  email: saharab...@gmail.com, hmp.hau...@foxmail.com
  website: http://haulynjason.net
  gtalk: saharab...@gmail.com
  skype: saharabear
  QQ: 378606292
  persional Twitter: http://twitter.com/saharabear
  persional Linkedin: http://www.linkedin.com/in/haulyn
  Haulyn Microproduction Twitter: http://twitter.com/haulynmp
 
 
  Haulyn Jason
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 



Release 1.4.3

2009-10-26 Thread Marc-Andre Houle
Hello wicket user list,

I would like to know when is suppose to happen the actual release of wicket
1.4.3.  When I looked into the branch, it is like if the release have been
done.  Also in Jira the 1.4.3 project looked closed.  So I am right to
expect the release of 1.4.3 anytime soon?

I am actually waiting for a bug fix on wicket-guice and would like to have
it in the near future.

Thanks in advance.

Marc-Andre


Re: Release 1.4.3

2009-10-26 Thread James Carman
It's there:

http://repo1.maven.org/maven2/org/apache/wicket/wicket/1.4.3/

There was an announcement just recently.

On Mon, Oct 26, 2009 at 10:48 PM, Marc-Andre Houle mho...@gmail.com wrote:
 Hello wicket user list,

 I would like to know when is suppose to happen the actual release of wicket
 1.4.3.  When I looked into the branch, it is like if the release have been
 done.  Also in Jira the 1.4.3 project looked closed.  So I am right to
 expect the release of 1.4.3 anytime soon?

 I am actually waiting for a bug fix on wicket-guice and would like to have
 it in the near future.

 Thanks in advance.

 Marc-Andre


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



Re: Wicket with Shindig

2009-10-26 Thread Brill Pappin

I'm still reading up on Shindig and Open Social...
The I suspect the renderer (container) won't be too hard to implement  
in Wicket (although I'm not as familiar with the internals as some on  
the list).
Shindig uses a RESful interface for all its server comms though, and  
I'm not sure yet how that would work with Wicket.


I'll let the list know if I get anywhere with it.

- Brill

On 2009-10-26, at 5:51 PM, Fernando Wermus wrote:


Brill,
It would be nice to have a wicket example shiding app at least.  
What I
know is that most developers choose liferay instead. I dont know any  
who is

using shiding with wicket.


On Mon, Oct 26, 2009 at 4:59 PM, Brill Pappin br...@pappin.ca wrote:


I'm considering using Shindig for a new project
(See: http://incubator.apache.org/shindig/index.html)

Is there any Wicket/Shindig code around or has anyone been working on
getting the two to work together?

- Brill

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





--
Fernando Wermus.

www.linkedin.com/in/fernandowermus



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



Re: Wicket-stuff site down?

2009-10-26 Thread Brill Pappin
I don't think this is maintenance, unless they have an extremely long  
running SQL export or something.

I'd say broken at this point.

- Brill


On 2009-10-26, at 7:26 PM, nino martinez wael wrote:


Here aswell ? argh : http://wicketstuff.org/confluence/errors.jsp

2009/10/26 Jeremy Thomerson jer...@wickettraining.com


Yes

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



On Mon, Oct 26, 2009 at 11:08 AM, Brill Pappin br...@pappin.ca  
wrote:



Is the Wicket-stuff site down for anyone else?

- Brill

-
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