DatePickerBehavior lost when toggling visibility

2011-01-21 Thread Swanthe Lindgren

Hello
I have a text field with jQuery DatePickerBehavior. When the page is 
loaded and the field is initially visible, the behavior works just fine. 
But when toggling the visibility from hidden to visible, the client 
function is gone. The little date packer icon is gone and so is the 
click event on the input field.


What do I have to do?

//Swanthe


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



Re: DatePickerBehavior lost when toggling visibility

2011-01-21 Thread Swanthe Lindgren
A drop down box fires an AJAX request and the text field  with the date 
picker has an overridden isVisible() method.


On 2011-01-21 12:35, Ernesto Reinaldo Barreiro wrote:

How do you toggle visibility? Replacing panels via AJAX or client side
JavaScript? The AJAX way will work for sure. I think via JavaScript
you will have to manually recreate it when making it visible

Ernesto

On Fri, Jan 21, 2011 at 12:11 PM, Swanthe Lindgren
swanthe.lindg...@megasol.se  wrote:

Hello
I have a text field with jQuery DatePickerBehavior. When the page is loaded
and the field is initially visible, the behavior works just fine. But when
toggling the visibility from hidden to visible, the client function is gone.
The little date packer icon is gone and so is the click event on the input
field.

What do I have to do?

//Swanthe


-
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: DatePickerBehavior lost when toggling visibility

2011-01-21 Thread Swanthe Lindgren
I have just changed to jQuery DatePickerBehavior from wicket extensions 
YUI DatePicker, which of course worked just fine in this scenario, but 
since I want some of the customizations available in jQuery we made a 
switch.


On 2011-01-21 12:49, Ernesto Reinaldo Barreiro wrote:

Are you using wiquery? If so, can you show me your code or send me a
simplified Panel showing this behavior? I use wiquery  datepickers on
my applications in combination with via AJAX replacements and do not
have this issue.

Ernesto

On Fri, Jan 21, 2011 at 12:41 PM, Swanthe Lindgren
swanthe.lindg...@megasol.se  wrote:

A drop down box fires an AJAX request and the text field  with the date
picker has an overridden isVisible() method.

On 2011-01-21 12:35, Ernesto Reinaldo Barreiro wrote:

How do you toggle visibility? Replacing panels via AJAX or client side
JavaScript? The AJAX way will work for sure. I think via JavaScript
you will have to manually recreate it when making it visible

Ernesto

On Fri, Jan 21, 2011 at 12:11 PM, Swanthe Lindgren
swanthe.lindg...@megasol.sewrote:

Hello
I have a text field with jQuery DatePickerBehavior. When the page is
loaded
and the field is initially visible, the behavior works just fine. But
when
toggling the visibility from hidden to visible, the client function is
gone.
The little date packer icon is gone and so is the click event on the
input
field.

What do I have to do?

//Swanthe


-
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: DatePickerBehavior lost when toggling visibility

2011-01-21 Thread Swanthe Lindgren
Sorry, I didn't get that wiquery also used jQuery. After changing to 
wiquery I at least got my quickstart-app running


On 2011-01-21 13:34, Ernesto Reinaldo Barreiro wrote:

A said: this works fine on my applications using latest versions of
wiquery DatePicker [(see 1]) + AJAX replacements.

1-http://www.google.com/codesearch/p?hl=en#pdLMIUTpzpE/trunk/src/main/java/org/odlabs/wiquery/ui/datepicker/DatePicker.java

Ernesto


On Fri, Jan 21, 2011 at 12:55 PM, Swanthe Lindgren
swanthe.lindg...@megasol.se  wrote:

I have just changed to jQuery DatePickerBehavior from wicket extensions YUI
DatePicker, which of course worked just fine in this scenario, but since I
want some of the customizations available in jQuery we made a switch.

On 2011-01-21 12:49, Ernesto Reinaldo Barreiro wrote:

Are you using wiquery? If so, can you show me your code or send me a
simplified Panel showing this behavior? I use wiquery  datepickers on
my applications in combination with via AJAX replacements and do not
have this issue.

Ernesto

On Fri, Jan 21, 2011 at 12:41 PM, Swanthe Lindgren
swanthe.lindg...@megasol.sewrote:

A drop down box fires an AJAX request and the text field  with the date
picker has an overridden isVisible() method.

On 2011-01-21 12:35, Ernesto Reinaldo Barreiro wrote:

How do you toggle visibility? Replacing panels via AJAX or client side
JavaScript? The AJAX way will work for sure. I think via JavaScript
you will have to manually recreate it when making it visible

Ernesto

On Fri, Jan 21, 2011 at 12:11 PM, Swanthe Lindgren
swanthe.lindg...@megasol.se  wrote:

Hello
I have a text field with jQuery DatePickerBehavior. When the page is
loaded
and the field is initially visible, the behavior works just fine. But
when
toggling the visibility from hidden to visible, the client function is
gone.
The little date packer icon is gone and so is the click event on the
input
field.

What do I have to do?

//Swanthe


-
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



-
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: OutOfMemoryError with lots of unit tests

2010-06-29 Thread Swanthe Lindgren

Thank you, it works

//Swanthe

On 2010-06-28 11:14, Major Péter wrote:

Hi,

Try something like this:
plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-surefire-plugin/artifactId
 inheritedtrue/inherited
 configuration
 skipTestsfalse/skipTests
 forkModeonce/forkMode
 argLine-Xmx512m -XX:MaxPermSize=256m/argLine
 /configuration
/plugin

maybe check out the perTest forkMode.

Regards,
Peter

2010-06-28 11:08 keltezéssel, Swanthe Lindgren írta:
   

Hello
Has someone got any good tips about performing lots of render tests? We
are using TestNG and maven/surefire test runner which results in
OutOfMemoryError for our about 500 tests, where each test tries to
render a page or panel. After a bit of redesigning our test classes and
call WicketTester.destroy()  after each test, we were able to run about
50 more tests, but now we are back at OutOfMemoryError.

//Swanthe
 

-
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



OutOfMemoryError with lots of unit tests

2010-06-28 Thread Swanthe Lindgren

Hello
Has someone got any good tips about performing lots of render tests? We 
are using TestNG and maven/surefire test runner which results in 
OutOfMemoryError for our about 500 tests, where each test tries to 
render a page or panel. After a bit of redesigning our test classes and 
call WicketTester.destroy()  after each test, we were able to run about 
50 more tests, but now we are back at OutOfMemoryError.


//Swanthe


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



Question about usage of PageMap

2010-06-04 Thread Swanthe Lindgren

Hello all.
I our application we have a lot of search and maintenance pages for 
different type of entities. On each of these pages we put an Add 
button, which takes the user to a wizard to add a new entity of that 
type. In the wizard, we want to be able to send the user back to where 
it came from if the Cancel button is pressed.


Questions:
Is there a simple way to know how the user entered the wizard?
Is this where the PageMap comes in, or is there any other way to track 
the users path in the application?


//Swanthe


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

Re: inmethod grid / Delete/add a row?

2010-04-28 Thread Swanthe Lindgren
The row model is probably easily accessible from your proposed delete 
column, but I don't know how to rerender a single row.


//Swanthe

On 2010-04-27 17:48, nino martinez wael wrote:

True... I am in the process of doing my own delete column, and expect
to have it working by tomorrow. I just need to be able to mark the
item dirty, somehow I either use the wrong model or the grid does not
pick it up. On either account it does not remove the delete row until
a manual refresh as is now.

regards Nino

2010/4/27 Swanthe Lindgrenswanthe.lindg...@megasol.se:
   

That is a part of the inmethod grid I find very hard, as its based solely on
a list of models. I haven't even found a way to know which row is selected,
even less which row is next to the selected row, which can be very useful
information when you wish to insert a row or select the row before/after the
row you just removed.

//Swanthe

On 2010-04-26 16:00, nino martinez wael wrote:
 

Hi

Are there any built in functionality to delete or add rows with
inmethod grid? Or should I just roll my own?

regards Nino

-
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: DropDownChoice problem

2010-04-28 Thread Swanthe Lindgren

I had the same problem you do. Solved it by doing

lstNationality.setDefaultModel(new 
PropertyModelNationality(getDefaultModel(), nationality));


but I bet you that Igor is gonna jump right in an say how its supposed 
to be done and why.


//Swanthe

On 2010-04-28 16:20, Josh Kamau wrote:

Hi team

I need your help

I am using a DropDownChoiceT  in a form as follows:

DropDownChoiceNationality  lstNationality = new
DropDownChoiceNationality(nationality,getNationalities());

  The form has a CompoundPropertyModel

After adding the dropdown to the form, i am able to save the record
properly. However, when i display a  form with an existing record,

the DropDownChoice is not showing the current 'nationality' and it is only
showing Choose One;

When i replace is with a textfield, the correct record is displayed. Is
where could i be going wrong?

Regards.

   



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



Re: inmethod grid / Delete/add a row?

2010-04-27 Thread Swanthe Lindgren
That is a part of the inmethod grid I find very hard, as its based 
solely on a list of models. I haven't even found a way to know which row 
is selected, even less which row is next to the selected row, which can 
be very useful information when you wish to insert a row or select the 
row before/after the row you just removed.


//Swanthe

On 2010-04-26 16:00, nino martinez wael wrote:

Hi

Are there any built in functionality to delete or add rows with
inmethod grid? Or should I just roll my own?

regards Nino

-
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: TypeNotPresentException

2010-03-25 Thread Swanthe Lindgren
Look more like a REST deserialization problem then a wicket. Could it be 
that se.**.core.domain.KmsUser only is available in your back end 
server? We use an environment very much like yours, with a back end 
which we send REST request to from our wicket layer, and we don't use 
the same classes at both ends.


//Swanthe



On 2010-03-19 13:05, Svante Reutland wrote:

Hi!

Im working on a project and I'm getting a weird exception in which I don't 
understand how to resolve. My application resides in two modules.

One server side module where all business logic are. On the server side I user 
spring and restful webservices. Than I have a web module which interact with 
the server side. The web tier is written in Wicket framework.

Now to the problem. When I try to access my restful webservices everything 
works great until I try to access a webservice that handles more than one 
entity. For example trying to access a users roles by entering userID.

this is the exception being thrown:
Code:
ERROR - RequestCycle.logRuntimeException(1521) | Method onFormSubmitted of 
interface org.apache.wicket.markup.html.form.IFormSubmitListener targeted at 
component [MarkupContainer [Component id = form]] threw an exception
org.apache.wicket.WicketRuntimeException: Method onFormSubmitted of interface 
org.apache.wicket.markup.html.form.IFormSubmitListener targeted at component 
[MarkupContainer [Component id = form]] threw an exception
 at 
org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:193)
 at 
org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)
 at 
org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)
 at 
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250)
 at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329)
 at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428)
 at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
 at 
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:468)
 at 
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:301)
 at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
 at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
 at 
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
 at 
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
 at 
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
 at 
org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
 at 
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
 at 
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
 at 
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
 at org.mortbay.jetty.Server.handle(Server.java:326)
 at 
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:536)
 at 
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:930)
 at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:747)
 at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
 at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:405)
 at 
org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
 at 
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
Caused by: java.lang.reflect.InvocationTargetException
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at 
org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:182)
 ... 25 more
Caused by: org.jboss.resteasy.spi.ReaderException: 
java.lang.TypeNotPresentException: Type se.**.core.domain.KmsUser not present
 at 
org.jboss.resteasy.core.messagebody.ReaderUtility.doRead(ReaderUtility.java:123)
 at 
org.jboss.resteasy.client.core.BaseClientResponse.readFrom(BaseClientResponse.java:246)
 at 
org.jboss.resteasy.client.core.BaseClientResponse.getEntity(BaseClientResponse.java:210)
 at 
org.jboss.resteasy.client.core.BaseClientResponse.getEntity(BaseClientResponse.java:171)
 at 
org.jboss.resteasy.client.core.ClientInvoker.extractEntity(ClientInvoker.java:170)
 at 
org.jboss.resteasy.client.core.ClientInvoker.invoke(ClientInvoker.java:112)
 at 

Re: TextField hosting an Integer

2010-03-22 Thread Swanthe Lindgren

And add RangeValidator.

//Swanthe

On 2010-03-22 17:00, James Carman wrote:

Change your property to Integer and not int?  That way, it can be null
(which would show up as empty on the text field).

On Mon, Mar 22, 2010 at 11:09 AM, Steven Haineslyg...@yahoo.com  wrote:
   

Hi,

I'm creating a text field to host an integer, namely the year that a house was 
built:
TextFieldInteger  yearBuilt = new TextFieldInteger( yearBuilt 
).setRequired( true );

And I'm using a CompoundPropertyModel that maps yearBuilt to an underlying bean property. My 
problem is that the default value for an integer is 0, so the text field pre-populates its value 
to 0, which is a rather silly year built date ;)  What I would like to do is mark the field as 
required and validate against a number range, but display the text field without an initial value.

I know I can make it a TextFieldString  and then validate on submission, but what has me intrigued is my exploration 
into the DropDownChoice and the creation of renderers. For example, I have a dropdown list from which a user can choose a 
value between 0 and 50,000 (increments of 1000), but I built a custom renderer that displays No Coverage for 
0 (insurance industry.) Can I build a custom renderer for the initial value of a text field so that if I see 
0 I return , otherwise I return the actual value, e.g. 2001?

Thanks in advance,
Steve


-
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: wicket bench in eclipse

2010-01-24 Thread Swanthe Lindgren
We are not using the Wicket bench editor, just the plain built-in html 
editor in eclipse. For a while we tried an html editor from Aptana (no 
association with Wicket), but it did to much to the over-all eclipse 
environment.


By entering your wicket context I guess you are supposed to get style 
sheets resolved in the Wicket bench editor, if you enter it in the head 
section of the html page. Since we are keeping our wicket pages in a jar 
file (different project) and not in the web module, I haven't gotten 
that to work.


//Swanthe

On 2010-01-21 22:32, Lionel Port wrote:

Thats exactly what I want it for. Some reason it doesn't detect wicket
pages. I tried setting the wicket context in the project properties
but it doesn't change and if I force opening the html page with wicket
bench it throws an initialisation error. At least if you saying it
works for you I know it should work and I should keep trying.

BTW. What are you meant to get your wicket context set to in the
project properties, is it /src/main/resources.


On Fri, Jan 22, 2010 at 12:25 AM, Swanthe Lindgren
swanthe.lindg...@megasol.se  wrote:
   

We are using Galileo and m2eclipse (Maven) with Wicket bench, no problem,
but we are only using wicket bench when creating new pages and panels as a
lazy way to get both the java and html file.

//Swanthe

On 2010-01-21 04:48, Lionel Port wrote:
 

Hi Guys,

Not strictly a wicket question, I know. Does anyone have wicket bench
working in Galileo or recent version of eclipse or know of a good
plugin I should be using?. My project has a maven structure, not sure
if thats why it doesn't work.


regards,
Lionel

-
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: wicket bench in eclipse

2010-01-21 Thread Swanthe Lindgren
We are using Galileo and m2eclipse (Maven) with Wicket bench, no 
problem, but we are only using wicket bench when creating new pages and 
panels as a lazy way to get both the java and html file.


//Swanthe

On 2010-01-21 04:48, Lionel Port wrote:

Hi Guys,

Not strictly a wicket question, I know. Does anyone have wicket bench
working in Galileo or recent version of eclipse or know of a good
plugin I should be using?. My project has a maven structure, not sure
if thats why it doesn't work.


regards,
Lionel

-
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: making tinyMce TextArea readonly

2009-12-03 Thread Swanthe Lindgren
You have to download the source and repack it with new javascripts to 
make it work.

http://old.nabble.com/making-tinymce-textarea-read-only-td23160313.html#a23170821

//Swanthe

tubin gen wrote:

I ma trying to make TextArea with TinyMce behaviour readonly  , I added
the following custom settings but it did not work
tinyMCESettings.addCustomSetting(readonly : true);
tinyMCESettings.addCustomSetting(mode : textareas);

please suggest me   how to make  it readonly ?

  




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



Re: wicket:enclosure ( setting visible when hidden on render )

2009-10-23 Thread Swanthe Lindgren
Try setOutputMarkupPlaceholderTag(true) on the component withing the 
enclosure.


//Swanthe

Douglas Ferguson wrote:

I have a component that is wrapped with a wicket enclosure.

When the page is rendered I set the component visible(false) which  
make the entire wicket enclosure hidden.


Then I set visible(true) during runtime and at the component to the  
AjaxTarget.


The component is not rendered.

Is there a way to get this to work? Or do I have to explicitly add a  
markup container if i want to start with it hidden and then display  
later?


D/

-
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: Open Source projects using Wicket

2009-10-16 Thread Swanthe Lindgren
I dont really get what you mean by pushing and pulling models. Could you 
please give me an example? Is creating a component without providing a 
model, relying in the parent page/panel/component's default model 
pushing data?


//Swanthe

Jeremy Thomerson wrote:

Sorry, that was an overly terse statement.  Peter Thomas has put a lot of
work into JTrac, and has done a lot of things that I admire (for instance,
some of his performance testing blog entries, etc).  He is also very helpful
on the mailing list.

The reason I said not to look at it is that when I was using it, I found
that nearly all of the components were created without the use of models -
pushing data into the component rather than making it pull from a model.
While that works fine for a small bug tracker, it would not work well in
most enterprise applications - leading to performance and potentially memory
issues.

It's not that it's bad software - but I've taught enough training classes to
see that one of the most common pitfalls to those new to Wicket is to always
push data into the models.  This works fine in some instances, but is not a
best practice and can lead to a lot of problems later if you don't know what
you're doing.  That's why I said what I did.

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



On Thu, Oct 15, 2009 at 7:29 PM, Dave B d...@davebolton.net wrote:

  

Any particular reason?  Form a (very) cursory ten minute look, the
lack of tests was glaring, though not an indictment of the actual
Wicket usage.

Thanks,
Dave

On Fri, Oct 16, 2009 at 11:04 AM, Jeremy Thomerson
jer...@wickettraining.com wrote:


Don't look at jtrac.

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



On Thu, Oct 15, 2009 at 6:42 PM, Igor Vaynberg igor.vaynb...@gmail.com
wrote:

  

keeping that in mind,

i wouldnt look at brix, most wicket-related code there has to do with
plumbing and implementing a development model that is unlike wicket
but works better for cmses.

maybe look at http://www.jtrac.info/ , i think that uses wicket...

-igor

On Thu, Oct 15, 2009 at 4:40 PM, Jeremy Thomerson
jer...@wickettraining.com wrote:


Beware - just like any other app, OS or not, you will find OS projects
  

out


there that will teach you all kind of wrong ways to use Wicket.  I
  

know


of a


couple because I tried to use them, thinking they would be easier to
  

build


on because they used Wicket.  But they were so poorly written that it
  

would


be a bad place for someone new to the framework to start.

http://code.google.com/p/brix-cms/ was written by some of the core
committers, so the Wicket code in it will be good.  Not sure how much
  

of


the


code is actually Wicket specific, though.

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



On Thu, Oct 15, 2009 at 6:35 PM, Dave B d...@davebolton.net wrote:

  

Hi,

I'm in the process of evaluating Wicket (after an arduous JSF


project,


that has made us re-evaluate our web platform.)

I've read Wicket in Action and whole bunch of blog and mailing list
posts, done some proof-of-concept work and am now interested in
reading source code from a project using Wicket, since I want to see
Wicket in the wild. I know Artifactory uses Wicket, but their
Subversion access instructions seem to be out of date.

Does anyone know of an open source project using Wicket, so that I


can


peruse the source code?

Many thanks,
Dave

-
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: Right justify in DataTable

2009-10-14 Thread Swanthe Lindgren

Try this (cut and pasted from the inmethod-grid-examples app)

new PropertyColumn(new ResourceModel(NumberCol), NumberCol, 
NumberCol) {

   private static final long serialVersionUID = 1L;
   @Override
   public String getCellCssClass(IModel rowModel, int rowNum) {
   return myCssClassThatRightJustifies;
   }
   };

//Swanthe

Swarnim Ranjitkar wrote:
If I user DefaultDataTable to display table. Is there a way justify the numberic column. eg.  I want NumberCol to be right justified then left


IColumn[] columns = new IColumn[2];
columns[0] = new PropertyColumn(new Model(NumberCol), NumberCol, 
NumberCol)
columns[1] = new PropertyColumn(new Model(Last Name), name.last, 
name.last);

DefaultDataTable table = new DefaultDataTable(datatable, columns, userProvider, 10);
 		 	   		  
  




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



inmethod grid acts strange on reorder

2009-10-14 Thread Swanthe Lindgren

Hi all
My IDataSource delivers LDM models that uses the 
ReuseIfModelsEqualStrategy to my data grid and does it well when I enter 
the page containing the grid or when switching between pages in my grid. 
It also does a good job if I edit one of the rows in the grid, by only 
updating that specific row.


But when I resort the grid by clicking one of the column headers, 
something strange happens. First all items on the current grid page 
(1-13 out of 25) are retrieved through the data source as LDMs. Then the 
last item is loaded again through its own LDM.load() method.


This behavior starts when I display 13 rows/page.
With 13 rows, the last item are loaded an extra time.
With 14 rows, the last 3.
With 15 rows, the last 5.
With 30 rows, all of the displayed rows, as all entities fit on the same 
page.


Someone with a clue to whats going on?

//Swanthe




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



Re: Feedback messages, input and label

2009-10-08 Thread Swanthe Lindgren
Well, if you combine putting inputPwd=Password in your property file and 
putting


label for=pwdwicket:message key=inputPwdthis text here will be 
replaced by your propertyfile value/wicket:message/label


in you markup, I thing you'll get what you'r looking for.

//Swanthe

Tomás Rossi wrote:
Ok, that's a little nicer, but still... It'd be better if the label 
could be deduced from the markup itself. Yet, no big deal.


Thanks

Matej Knopp escribió:

try putting inputPwd = Password in your property file.

-Matej

On Wed, Oct 7, 2009 at 5:33 PM, Tomás Rossi tro...@mecon.gov.ar wrote:
 

Hi,

lets say you have this in you html form:
--
...
label for=pwdPassword/label
input type=password id=pwd wicket:id=inputPwd/
...
--

Then, a properties file for your app with this:
--
...
Required=Field ${label} is required!
...
--

When the required-error-message prints, it does like this:

* Field inputPwd is required!

Now I wish I could change it to say Field Password is required! 
without
modifying wicket:id attribute nor adding specific required message 
for the

component.
Is this possible?

Kind regards,
Tom;

-
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: how to get TextField value which belongs to the first tab when click on the button which belongs to tabbedpanel

2009-10-07 Thread Swanthe Lindgren

jerr...@sohu.com wrote:

There are 3 tabs in a tabbedpanel, a TextField component is in the first tab, 
and several form components in the other tabs for user input. I added a save 
button in the tabbedpanel(instead add 3 buttons in each tab, because I just 
want to save all user inputs by one click), my question is, how to get the 
TextField value whick is belonged to the first tab when click on the save 
button.

  
Let all tabs share the same model which you update using 
AjaxFormComponentUpdatingBehavior(onchange).


//Swanthe


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



inMethod DataGrid initial selection

2009-10-02 Thread Swanthe Lindgren
Does anybody know how to get a row initially selected when the grid is 
first drawn?


//Swanthe


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



Re: inMethod DataGrid initial selection

2009-10-02 Thread Swanthe Lindgren
Yes, I got that part right, thank you. But somehow the item is not 
hi-lighted in my grid.
When the grid instance is constructed and added to the page, the data to 
be shown in the grid has not yet been loaded. I know that the row i want 
selected is going to be there once the data is loaded and the grid is 
displayed, so I tried to create a Model containing the selected object 
and setting it on the grid with DataGrid.selectItem(), and obviously it 
partially works since other components that are depending on the grid 
for model data is displaying the item correct information from the 
preselected item.

But still, the row in the displayed grid remains unselected.

So far I have configured my grid with
datagrid.setRowsPerPage(10);
datagrid.setClickRowToSelect(true);
datagrid.setClickRowToDeselect(false);
datagrid.setAllowSelectMultiple(false);
datagrid.selectItem(preselectedModel, true);


Any other suggestions?

Martin Grigorov wrote:

grid.selectItem(rowModel);

El vie, 02-10-2009 a las 11:25 +0200, Swanthe Lindgren escribió:
  
Does anybody know how to get a row initially selected when the grid is 
first drawn?


//Swanthe


-
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: Tools for Managing a Wicket Project

2009-05-20 Thread Swanthe Lindgren
We use Aptana plugin for eclipse as html editor. If you dont install the 
full suit its free.


//Swanthe

Eduardo Nunes wrote:

I have just one problem with eclipse, I can't use the HTML formatter,
that's very sucks. I tried tidy but it didn't work too. What do you
use guys to format html code?

On Mon, May 18, 2009 at 2:06 PM, Dane Laverty danelave...@gmail.com wrote:
  

I just wanted to thank Jeremy, Scott, and Linda for recommending Effective
Java. I read through the book this week. It's wonderful -- accessible and
useful. Now I'm in the process of refactoring my project to start applying
the concepts.

On Fri, May 1, 2009 at 8:53 AM, Carlo Camerino cmcamer...@gmail.com wrote:



we used to be bugzilla, mediawiki, continuum statck.we moved to Trac. It
was
simply amazing with all those plugins.

Code Review WIth Trac Is Good.
Review Board is also good software but it doesn't suit our programming
needs.

On Fri, May 1, 2009 at 11:38 PM, Matt Welch matt...@welchkin.net wrote:

  

Tools that our team is using (after some trial and error):

IDE - Eclipse/IDEA
Source Control - SVN
Build - Maven
Local Network Maven Repo - Nexus (after a year trying different ones)
Build Server  - TeamCity, which absolutely rocks (We actually purchased


and
  

used Bamboo for 9 months. I can't believe it comes from the same company


as
  

JIRA. Bamboo was terrible.)
Story Mgmt/Defects - Rally (hosted commercial app for agile projects; not
bad, but not fantastic either)
Code Review - Code Collaborator (again not bad and I'd rather have it


than
  

nothing at all, but could be better)


Our QA team has used various testing tools from expensive commercial


tools
  

like Mercury (now HP) Quality Center to Selenium. They use Rally for


defect
  

management.

My highest recommendations are for TeamCity, Nexus, and SVN.

-Matt


--
View this message in context:



http://www.nabble.com/Tools-for-Managing-a-Wicket-Project-tp23299396p23334970.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: making tinymce textarea read only

2009-04-22 Thread Swanthe Lindgren
I solved the problem by downloading the tinymce source from the svn 
repository together with the javascript lib from tinymce.moxiecode.com 
and repacking it. The latest version of the scripts handles the readonly 
option correct.


//Swanthe

tubin gen wrote:

I am trying to make   teaxarea  with a tinymce behavior readonly   below is
the code for that , but this is not working , please help me make this
readonly.


tinyMCESettings.addCustomSetting(readonly : true);

  




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



Re: tinymce textarea

2009-04-22 Thread Swanthe Lindgren

I suggest that you display the text in a read only tinymce text area.

TinyMCESettings mceSettings = new TinyMCESettings(Theme.advanced);
mceSettings.addCustomSetting(readonly:true);

This only works if you update the tinymce javascripts as in  
http://www.nabble.com/Re%3A-making-tinymce-textarea-read-only-p23170821.html


fachhoch wrote:
Tinymce text is formatted with html and when I add text to label i  see the 
text with html , please tell me how can I tell wicket   that model also has

html tags and browser should interpet them and   not display ?  If I set
model of a 
label as html text   I   am expecting to seehtml parsed by browser  and
not the same html I set as model 
attached is the image   , it shows the same text i sert as model and i am

expecting browser to parse those html tags and not just display , please
help me how to acheieve this ?
\
Linkan wrote:
  
 http://www.nabble.com/file/p23175527/textarea-read-only.png   



What you get out and put in tinymce is html, so why not continue with 
pre tags? Or perhaps put it in a div tag with some style, like 
border-left: 2px solid blue; padding-left: 5px;.


//Swanthe

fachhoch wrote:


It worked , that's good, need one more suggestion , Usually without
tinymce
we show comments  to display  inside a pre tag  to retain the line breaks
etc , but in case of tinymce   what's the best  way to display comments  
?



Linkan wrote:
  
  

Try add TinyMceAjaxSubmitModifier to your submit button

//Swanthe







tubin gen wrote:



I am trying to make my text editor (text area )  to rich text eitors
  using timymce.First I tried wicket timymce behaviour , the problem
is the  tinymce java scriopt is repalce my textarea html with an
iframe


this  is my html , but the   style=display: none; is added by tinymce
textarea maxlength=4000 cols=120 rows=8
name=reassignmentComments wicket:id=reassignmentComments
id=reassignmentComments style=display: none;/

and code generated by tinymce is   lot,  but the problem is it uses
iframe and because of  which the textarea value is not posted to my
form   , please help me integrating tinymce

-
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: tinymce textarea

2009-04-21 Thread Swanthe Lindgren

Try add TinyMceAjaxSubmitModifier to your submit button

//Swanthe


tubin gen wrote:

I am trying to make my text editor (text area )  to rich text eitors
  using timymce.First I tried wicket timymce behaviour , the problem
is the  tinymce java scriopt is repalce my textarea html with an
iframe


this  is my html , but the   style=display: none; is added by tinymce
textarea maxlength=4000 cols=120 rows=8
name=reassignmentComments wicket:id=reassignmentComments
id=reassignmentComments style=display: none;/

and code generated by tinymce is   lot,  but the problem is it uses
iframe and because of  which the textarea value is not posted to my
form   , please help me integrating tinymce

-
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: test page rendering

2009-03-11 Thread Swanthe Lindgren
Is there a similar way to ensure that all wicket:message key resources 
exist?


//Swanthe

Igor Vaynberg wrote:

if you want the removal of wicket:id to fail turn on component use
check in debug settings.

-igor

On Tue, Mar 10, 2009 at 3:12 AM, Swanthe Lindgren
swanthe.lindg...@megasol.se wrote:
  

Hi all
I have begun unit testing my wicket pages and one of the most basic tests I
want to do is to make sure each and every page can render properly. The
WicketTester.assertRenderedPage() looks like a good approach but it doesnt
seam to care about the HTML. If I remove a wicket:id from the markupfile,
the test is still passed.
Is this correct or might there be something else I have done wrong?

//Swanthe




-
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



test page rendering

2009-03-10 Thread Swanthe Lindgren

Hi all
I have begun unit testing my wicket pages and one of the most basic 
tests I want to do is to make sure each and every page can render 
properly. The WicketTester.assertRenderedPage() looks like a good 
approach but it doesnt seam to care about the HTML. If I remove a 
wicket:id from the markupfile, the test is still passed.

Is this correct or might there be something else I have done wrong?

//Swanthe




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



Re: RadioGroup, differences between FireFox and Internet Explorer?

2009-02-17 Thread Swanthe Lindgren
I still have the same problem and as the project where it occurred is 
on ice I left it for what is is. I haven't even filed a JIRA, but 
please go ahead and do so since it still doesn't work in 
wicket-1.4-SNAPSHOT.


//Swanthe

metalotus wrote:

I have the same issue. Some places in my application, adding
AjaxFormChoiceComponentUpdatingBehavior to a RadioChoice simply does not
work under IE7. The ajax response is invoked, but the browser does not
actually select the new radio button.

For example, in one place I have such behavior and it works fine, in another
it does not work under IE7 only. I noticed the POST looks different. Here is
a comparison of the POST:

POST from a place where it works:

ChartTypeForm95_hf_0

utilChartRadioButtonsId 

BAR


POST from a place where it is broken:

view:wizardpanel:hostAddressEditorWindow:mainPanel:contentsPanelID:modalDialogForm:contentsPanelID:tabpanel:panel:emtabpanel:panel:panel:form:matchOptions
  

RESERVED


On, the not working post, why does it not look more similar to the working
post, such as:


formXYZ

matchOptions

RESERVED



My guess is this that when there are nested form elements, the POST is
different, and that breaks under IE7.

  




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



Re: Building and using TinyMCE in Wicket

2009-02-10 Thread Swanthe Lindgren

Try doing a mvn install on the tynimce subfolder.

//Swanthe

ashtek wrote:

Hey all,
  
  I am trying to use TinyMCE, and I downloaded all the source from here - 


https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/tinymce-parent/

This creates a folder called tinymce-parent which in turn has two subfolders
tinymce and tinymce-examples.

Whatever I do, I am not able to build using maven. When I say mvn clean
compile or mvn install, i just get a empty jar file in my repo. 


Can someone help?

Thanks!
  




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



Re: tinymce settings

2009-01-27 Thread Swanthe Lindgren
Ok, so things like mceSettings.addCustomSetting(skin : \o2k7\) work, 
but the readonly setting is in a newer version (3.1.1) when wicket 
tinymce is only 3.1.0.


//Swanthe

Hello to you all
Im trying to use the tinymce behavior to get a nice editor. On one 
page I want a read-only tinymce, but how do I configure its settings?


Is this anywhere near?

TinyMCESettings mceSettings = new TinyMCESettings(Theme.simple);
mceSettings.addCustomSetting(readonly:true);
mceSettings.addCustomSetting(theme_advanced_resizing : true);
  add(new TextAreaString(message, new 
PropertyModelString(obj, body)).add(new 
TinyMceBehavior(mceSettings)));


//Swanthe


-
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



tinymce settings

2009-01-26 Thread Swanthe Lindgren

Hello to you all
Im trying to use the tinymce behavior to get a nice editor. On one page 
I want a read-only tinymce, but how do I configure its settings?


Is this anywhere near?

TinyMCESettings mceSettings = new TinyMCESettings(Theme.simple);
mceSettings.addCustomSetting(readonly:true);
mceSettings.addCustomSetting(theme_advanced_resizing : true);
  
add(new TextAreaString(message, new PropertyModelString(obj, 
body)).add(new TinyMceBehavior(mceSettings)));


//Swanthe


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



Re: Several Ajax features doesn't seem to work in Wicket 1.3.5 and Firefox 3.0.5

2009-01-13 Thread Swanthe Lindgren

Both examples work fine for me in ff 3.0.5.
Have you perhaps disabled javascript in ff?

//Swanthe


Gohan wrote:

If we take the Palette example in Firefox then nothing happens if I select a
name and then press the right arrow. In Internet Explorer the name is moved
from the Available to the Selected panel. Does this work for you?
  




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



Re: Support multiple views for different user

2009-01-11 Thread Swanthe Lindgren

Have a look at the sign in exampels at http://www.wicketstuff.org/wicket13/

//Swanthe

itayh wrote:

Hi,

Currently in my server anyone that logged in can add and see all the data in
the system (that he added or other people added) 
I need the ability to create different users and each user can see only the

data that he enter.
Does wicket has a build in solution for this scenario?

Thanks in advance,
Itay

  




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



RadioGroup, differences between FireFox and Internet Explorer?

2008-12-16 Thread Swanthe Lindgren
I have this wierd behavior where a RadioGroup works perfectly well with 
FireFox but not with IE7. Both IE and FF fires the event and the server 
side event handler is executed in both cases, but with IE the model is 
not updated when I try to retrieve it in the 
AjaxFormChoiceComponentUpdatingBehaviour.onUpdate method.


Can anyone spot where I took a wrong turn?

//Swanthe

Page java code:

RadioGroupDepositType depositType = new 
RadioGroupDepositType(depositType, new 
PropertyModelDepositType(model.getObject(), depositType));


RadioDepositType wire = new RadioDepositType(wire, new 
ModelDepositType(DepositType.WIRETRANSFER));

wire.setOutputMarkupId(true).setMarkupId(wire);
depositType.add(wire);

RadioDepositType card = new RadioDepositType(card, new 
ModelDepositType(DepositType.OTHER));

card.setOutputMarkupId(true).setMarkupId(card);
depositType.add(card);

RadioDepositType cheque = new RadioDepositType(cheque, new 
ModelDepositType(DepositType.CHEQUE));

cheque.setOutputMarkupId(true).setMarkupId(cheque);
depositType.add(cheque);

depositType.add(new AjaxFormChoiceComponentUpdatingBehavior(){
 @Override
 protected void onUpdate(AjaxRequestTarget target) {
   DepositType depositType = model.getObject().getDepositType();
 }
});


Page html code:

div wicket:id=depositType
 div class=leftColumn 
   div class=contentRow style=border-bottom-style: dotted
 div class=contentRowText
   input wicket:id=wire class=radioButton type=radio/
   div style=float: left; margin-left: 16pxlabel 
for=wirewicket:message key=field.TypeWireDeposit by Wire 
Transfer/wicket:message/label/div

 /div
   /div
   div class=contentRow style=border-bottom-style: dotted
 div class=contentRowText
   input wicket:id=card class=radioButton type=radio/
   div style=float:left; margin-left: 16pxlabel 
for=cardwicket:message key=field.TypeCardDeposit by Debit or 
Credit Card/wicket:message/label/div

 /div
   /div
   div class=contentRow style=border: none
 div class=contentRowText
   input wicket:id=cheque class=radioButton type=radio/
   div style=float: left; margin-left: 16pxlabel 
for=chequewicket:message key=field.TypeChequeDeposit by 
Check/wicket:message/label/div

 /div
   /div
 /div
/div


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



Re: [VOTE] Organizing Wicket Stuff / Regular Release Schedule?

2008-11-25 Thread Swanthe Lindgren



[X] - YES - I would like to see at least the most used Wicket Stuff projects
structured so that they mirror Wicket, and a release is produced for each
Wicket release.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Check a checkbox when focus on a textbox

2008-11-21 Thread Swanthe Lindgren
You probably want to call your checker function on the onkeypressed 
event instead of the onfocus event.


But none of this is the wicket way!
With wicket you can use an 
AjaxFormComponentUpdatingBehavior(onkeypressed) on the text field 
which updates your model and rerender the checkbox.


//Swanthe

vishy_sb wrote:
Hi all, 


I have a textbox and a checkbox in a form on my web page. I would like to
automatically check the checkbox when the user starts to type something in
the textbox. I believe this can be done by using some javascript. I did some
research over the web and was able to find some code which is shown below.
However I was not able to get it to work.

HTML code:
input name=containText TYPE=text size = 32
onfocus=checker('contain') /
input type = checkbox name = contain /

Javascript code:
function checker(checkbox) {
var checkBox=document.form.contain; 
checkBox.checked = true;


}


Any help will be greatly appreciated.

Thanks a lot
Cheers,
vishy
  




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Session timeout page

2008-10-29 Thread Swanthe Lindgren
How do I change the session timeout page? I want my application to 
display the actual home page on session timout instead of the default 
Return to homepage-link page.


//Swanthe


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Updating model for DropDownChoice

2008-10-24 Thread Swanthe Lindgren

If you combine setNullValid(true) with putting

myComponent.nullValue=My null value

in the properties file, you will always get a default null value with 
the title My null value.


//Swanthe

nanotech wrote:

Hi,

I have a search form which contains multiple search fields(as TextFields)
and also there is dropdown from which user can select the search criteria.
The search results are displayed in the same page at bottom.
I want to clear the search Form with help of Reset button in the form.
Question :
1. If I refresh the form(by wrapping it in WebMarkupContainer) it removes
the Choose One field. The solution to that I found was to set
setNullValid(true). But, the problem with that is it just displays the empty
value..but I really want Choose One or Select One in dropdown. Even by
putting null=Select One in properties file, it does not show Select One
option in drop-down if I have setNullValid(true) . So, How Can I have both?
i.e When I set setNullValid(true) how can I get Select One to show up in
DropDown.

2. Also, when I update the webmarkupcontainer, to clear the search the
dropdown still shows the pervious search criteria. It does not update the
model for dropdown to first value or Choose One.

Can someone please give me pointers?

Thanks,
~R 
  




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat doesnt work with wicket

2008-10-17 Thread Swanthe Lindgren
Did you add the wicket application to you tomcat server instance in 
eclipse? Are you aware that eclipse by default does not deploy to your 
tomcat install folder but to a folder in your workspace 
(D:\workspace\.metadata\.plugins\org.eclipse.wst.server.core)


//Swanthe

overseastars wrote:

I dont know exactly the problem. But I went to the logs folder under tomcat
home folder and find nothing there. no files.actually.  also according to
the console on eclipse, I think it doesnt start the wicket development model
at all.



overseastars wrote:
  

Hi all

I have this strange problem now. If i use jetty, everything is find. But
if I wanna run wicket application on tomcat in eclipse, it doesnt work.
Any ideas to solve this? Do I need to do sth with tomcat??? I'm a
newbie. So is the question..






  




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]