Autoscrolling table header

2008-10-24 Thread Ashika Umanga Umagiliya

Hi Wicketers,

I am newbie to wicket and I want to know whether its possible to 
implement a DataTable which behaves like a spreadsheet.
Its something like ActiveWidget datagrid as in 
http://www.activewidgets.com/grid/

As you can see , when we scroll , the tableheader also scrolls accordingly.

Thanks in advance,
umanga




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



Re: What's the difference between Check and CheckBox

2008-10-24 Thread Minto van der Sluis

Hi igor,

that's exactly where I discovered the existence of Check ;-)

Being an almost complete newby I was surprised by the existence of 2 Classes
so closely related. That is functionally related, since as far as I can tell
from the javadoc they are not related in any way.

regards,

Minto


igor.vaynberg wrote:
 
 javadoc is your friend
 
 -igor
 
 On Wed, Oct 22, 2008 at 11:48 PM, Minto van der Sluis
 [EMAIL PROTECTED] wrote:

 Messing around with unittesting a CheckBox, I discovered Check as well:

org.apache.wicket.markup.html.form.Check;
org.apache.wicket.markup.html.form.CheckBox;

 To me it's not very clean what the difference is, since they are both
 attached to the same markup:

input type=checkbox ... 

 Can anyone enlighten me ?

 regards,

 Minto van der Sluis
 --
 View this message in context:
 http://www.nabble.com/What%27s-the-difference-between-Check-and-CheckBox-tp20125256p20125256.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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


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

-- 
View this message in context: 
http://www.nabble.com/What%27s-the-difference-between-Check-and-CheckBox-tp20125256p20144821.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: What's the difference between Check and CheckBox

2008-10-24 Thread Igor Vaynberg
thats because they are not functionally related at all. just because
they both represent a checkbox doesnt mean they are functionally
equivalent.

CheckBox only works with a imodelboolean

while CheckGroup/Check can be used to populate a collection with
arbitrary items. eg Check uses IModelT while CheckGroup uses
IModelCollectionT

each has its own usecase space, and the two spaces do not really overlap

-igor

On Thu, Oct 23, 2008 at 11:16 PM, Minto van der Sluis
[EMAIL PROTECTED] wrote:

 Hi igor,

 that's exactly where I discovered the existence of Check ;-)

 Being an almost complete newby I was surprised by the existence of 2 Classes
 so closely related. That is functionally related, since as far as I can tell
 from the javadoc they are not related in any way.

 regards,

 Minto


 igor.vaynberg wrote:

 javadoc is your friend

 -igor

 On Wed, Oct 22, 2008 at 11:48 PM, Minto van der Sluis
 [EMAIL PROTECTED] wrote:

 Messing around with unittesting a CheckBox, I discovered Check as well:

org.apache.wicket.markup.html.form.Check;
org.apache.wicket.markup.html.form.CheckBox;

 To me it's not very clean what the difference is, since they are both
 attached to the same markup:

input type=checkbox ... 

 Can anyone enlighten me ?

 regards,

 Minto van der Sluis
 --
 View this message in context:
 http://www.nabble.com/What%27s-the-difference-between-Check-and-CheckBox-tp20125256p20125256.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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




 --
 View this message in context: 
 http://www.nabble.com/What%27s-the-difference-between-Check-and-CheckBox-tp20125256p20144821.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



Re: IE6 + load balancer through proxy problem

2008-10-24 Thread Igor Vaynberg
in the homepage, or the very first page they hit try binding the
session... in the page's constructor do getSession().bind() and see if
that helps. it is possible on the first request to create more then
one session and that will get wicket confused.

-igor

On Thu, Oct 23, 2008 at 11:55 AM, atrout [EMAIL PROTECTED] wrote:

 We are having a very peculiar problem with a website not working properly
 under very specific conditions.

 The site is built with wicket and running on Apache + Resin. There are two
 load balanced servers, and each apache instance points only to the resin
 instance on the same server. We are using sticky sessions both on the load
 balancer hardware and in the resin configuration.

 The client is behind a proxy and they can only use IE6 to access the site.
 Upon initial page load when they are trying to access the site through the
 domain name or through the IP address of the load balancer they are getting
 one of those inscrutable IE6 javascript errors:

 Line: 2
 Char: 1
 Error: Invalid character
 Code: 0

 After that almost all of the Ajax controls on the site don't function. There
 are errors in the logs which look like this:

 2008-10-21 11:35:05,906 ERROR [hmux-XXX.XXX.XXX.XXX:6802-13:]
 org.apache.wicket.RequestCycle - Method onLinkClicked of interface
 org.apache.wicket.markup.html.link.ILinkListener targeted at component
 [MarkupContainer [Component id = offerDetailsLink, page =
 com.aexp.pursuits.wicket.pages.PlayGolf, path =
 1:golfForm:offersPanel:offerFragmentPanel:offerDetailsLink.OffersPanel$OfferFragment$1,
 isVisible = true, isVersioned = true]] threw an exception
 org.apache.wicket.WicketRuntimeException: Method onLinkClicked of interface
 org.apache.wicket.markup.html.link.ILinkListener targeted at component
 [MarkupContainer [Component id = offerDetailsLink, page =
 com.aexp.pursuits.wicket.pages.PlayGolf, path =
 1:golfForm:offersPanel:offerFragmentPanel:offerDetailsLink.OffersPanel$OfferFragment$1,
 isVisible = true, isVersioned = true]] threw an exception
at
 org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:194)
at
 org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)
at
 org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91)
at
 org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1166)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1243)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1331)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
at
 org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:363)
at
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194)
at
 com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:87)
at
 com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java:187)
at
 com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:181)
at
 com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:266)
at
 com.caucho.server.hmux.HmuxRequest.handleRequest(HmuxRequest.java:435)
at com.caucho.server.port.TcpConnection.run(TcpConnection.java:603)
at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:721)
at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:643)
at java.lang.Thread.run(Thread.java:595)
 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:585)
at
 org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:183)
... 17 more
 Caused by: java.lang.NullPointerException
at
 com.aexp.pursuits.wicket.panels.OffersPanel$OfferFragment$1.onClick(OffersPanel.java:233)
at
 org.apache.wicket.ajax.markup.html.AjaxFallbackLink.onClick(AjaxFallbackLink.java:98)
at
 org.apache.wicket.markup.html.link.Link.onLinkClicked(Link.java:214)
... 22 more

 It appears that the AjaxRequestTarget is null.

 When the client tries to access the site through the IP address of either of
 the two servers there is no javascript error and the site works. The site
 also works in Firefox and IE7 at the client.

 Has anyone seen anything like this before? Do you have any clue what the
 problem might be? It is very difficult for us to debug this because we are
 unable to reproduce the problem and have very little access to the client
 environment to test things out there.

 Any hints would be appreciated.

 Thank you,

 

Re: AjaxFallbackButton: inconsistend submit order

2008-10-24 Thread Igor Vaynberg
this sounds like a bug, please file a jira report

-igor

On Thu, Oct 23, 2008 at 6:47 AM, Stefan Fußenegger
[EMAIL PROTECTED] wrote:

 Hi folks,

 I just stumbled upon a problem with a Form containing a nested Form and two
 AjaxFallbackButtons (submit and preview). I need to implement different
 onSubmit() behavior of the nested Form depending on the clicked button.

 The order of onSubmit() calls is:

 without JS:
 - AjaxFallbackButton.onSubmit(AjaxRequestTarget,Form)
 - OuterForm.onSubmit() // not used
 - Inner Form.onSubmit()

 with JS:
 - Inner Form.onSubmit()
 - OuterForm.onSubmit() // not used
 - AjaxFallbackButton.onSubmit(AjaxRequestTarget,Form)

 With JS, it is therefore not possible to determine which button was clicked
 from inside a form's onSubmit() method.

 Is this a (known) bug?

 -
 ---
 Stefan Fußenegger
 http://talk-on-tech.blogspot.com // looking for a nicer domain ;)
 --
 View this message in context: 
 http://www.nabble.com/AjaxFallbackButton%3A-inconsistend-submit-order-tp20131329p20131329.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



Re: how to unittest a checkbox

2008-10-24 Thread Minto van der Sluis

Added  https://issues.apache.org/jira/browse/WICKET-1893 WICKET-1893 


jwcarman wrote:
 
 Since this is not so obvious, we should probably file a request in
 JIRA to add a checkbox-specific method to FormTester.  Care to take
 care of that, since you found the issue?
 
 On Thu, Oct 23, 2008 at 9:15 AM, Minto van der Sluis
 [EMAIL PROTECTED] wrote:

 Thx that did the trick :-)

 For those who that come after me

 formTester.setValue( getCheckboxPath(), on ); // check
 formTester.setValue( getCheckboxPath(), off ); // uncheck

 regards,

 Minto

 --
 View this message in context:
 http://www.nabble.com/how-to-unittest-a-checkbox-tp20106917p20130698.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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


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

-- 
View this message in context: 
http://www.nabble.com/how-to-unittest-a-checkbox-tp20106917p20145430.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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]



Spring and servlet config instead of filter

2008-10-24 Thread Joni Lahtinen
I have problems to replace filter configuration in web.xml with servlet
configuration. Why I try to use servlet configuration is to get wickets
run with spring in websphere. I'm trying now to deploy this application
in jetty but I run to problems. I have read from this mailing list that
the problem I run to is reported as a bug and fixed. Please ask for more
information if it is needed.

Thank you for advance. And next more details:

I'm using these versions.

repository/org/apache/wicket/wicket-extensions/1.3.5/wicket-extensions-1.3.5.jar
repository/org/apache/wicket/wicket-spring-annot/1.3.5/wicket-spring-annot-1.3.5.jar
repository/org/apache/wicket/wicket-spring/1.3.5/wicket-spring-1.3.5.jar
repository/org/apache/wicket/wicket-ioc/1.3.5/wicket-ioc-1.3.5.jar
repository/org/springframework/spring-core/2.5.5/spring-core-2.5.5.jar

Here is my web.xml

context-param
param-namecontextConfigLocation/param-name
param-value/WEB-INF/sovelluskonteksti.xml/param-value
/context-param
servlet
servlet-namecontext/servlet-name

servlet-classorg.springframework.web.context.ContextLoaderServlet/servlet-class
load-on-startup0/load-on-startup
/servlet
servlet
servlet-namewicket.wicket/servlet-name

servlet-classorg.apache.wicket.protocol.http.WicketServlet/servlet-class
init-param
param-nameapplicationClassName/param-name

param-valuecom.loginets.rfidgate.web.HotelliSovellus/param-value
/init-param
init-param
param-nameapplicationFactoryClassName/param-name

param-valueorg.apache.wicket.spring.SpringWebApplicationFactory/param-value
/init-param
load-on-startup1/load-on-startup
/servlet
servlet-mapping
servlet-namewicket.wicket/servlet-name
url-pattern/app/*/url-pattern
/servlet-mapping


Here is exception:

java.lang.IllegalStateException: bean of type
[org.apache.wicket.protocol.http.WebApplication] not found
at
org.apache.wicket.spring.SpringWebApplicationFactory.createApplication(SpringWebApplicationFactory.java:107)
at
org.apache.wicket.spring.SpringWebApplicationFactory.createApplication(SpringWebApplicationFactory.java:86)
at
org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:551)
at
org.apache.wicket.protocol.http.WicketServlet.init(WicketServlet.java:194)
at javax.servlet.GenericServlet.init(GenericServlet.java:241)
at
org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:431)
at
org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:263)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at
org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:643)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1234)
at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
at
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:460)
at
org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:124)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
at
org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:222)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at
org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132)
at
org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:388)
at
org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:324)
at
org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:205)
at
org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:579)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:498)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmentForProject(DefaultLifecycleExecutor.java:265)
at

Re: Autoscrolling table header

2008-10-24 Thread Jeremy Thomerson
Could you use thead / tbody, and just use the overflow css attribute for the
tbody?  I've never done it, but it seems like it should work.

Also, when you get to customizing the table like this, you might need to
just implement your own table using another repeater.  DataTable has a lot
of features built in (especially DefaultDataTable), but sometimes if you're
trying to do something else, it's easier to create your own custom
component.  But give it a shot and let us know how it goes!

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

On Fri, Oct 24, 2008 at 1:01 AM, Ashika Umanga Umagiliya 
[EMAIL PROTECTED] wrote:

 Hi Wicketers,

 I am newbie to wicket and I want to know whether its possible to implement
 a DataTable which behaves like a spreadsheet.
 Its something like ActiveWidget datagrid as in
 http://www.activewidgets.com/grid/
 As you can see , when we scroll , the tableheader also scrolls accordingly.

 Thanks in advance,
 umanga




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




Re: What's the difference between Check and CheckBox

2008-10-24 Thread Minto van der Sluis

Thanx for clearing that up :-)

Minto


igor.vaynberg wrote:
 
 ...
 CheckBox only works with a imodelboolean
 
 while CheckGroup/Check can be used to populate a collection with
 arbitrary items. eg Check uses IModelT while CheckGroup uses
 IModelCollectionT
 ...
 

-- 
View this message in context: 
http://www.nabble.com/What%27s-the-difference-between-Check-and-CheckBox-tp20125256p20150569.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Forcing property models to update

2008-10-24 Thread walnutmon

I have two panels, a view panel where you can look for news and an edit
panel.  The edit panel has a reference to a news object and all of it's
form elements have property models that use that object. 

When I pass a news object into the panel on creation all of the form
elements fill as expected.  However, if I set that object through a setter
in the panel class, the elements do not update.  My theory (which may be
wrong) is that the property model makes a defensive copy and therefore is
not linked to the object in the class.  If this is true, can I resend the
object to the property model?

If that's not true, any insight as to what I may be doing wrong?
-- 
View this message in context: 
http://www.nabble.com/Forcing-property-models-to-update-tp20150693p20150693.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Forcing property models to update

2008-10-24 Thread Martijn Dashorst
No defensive copying happening. Just your plain old references
updating. Read the models page on the wiki about chaining models.

Put this in a unit test case:

State s = new State();
s.setDescription(I haven't read Wicket in Action but hear it helps
solve these questions);
PropertyModel pm = new PropertyModel(s, description);
assertEquals(I haven't read Wicket in Action but hear it helps solve
these questions, pm.getObject());

s = new State();
s.setDescription(I'll buy Wicket in Action, just because I now get
why my property model doesn't know this new state yet.);
assertEquals(I'll buy Wicket in Action, just because I now get why my
property model doesn't know this new state yet., pm.getObject());

This is basically what you are doing in your panel.

but if you did:
State s = new State(Foo);
Model m = new Model();
m.setObject(s);
PropertyModel pm = new PropertyModel(m, description);
assertEquals(Foo, pm.getObject());

and now for the coup de grace:

s = new State(Bar);
m.setObject(s);
assertEquals(Bar, pm.getObject());

Martijn

On Fri, Oct 24, 2008 at 3:57 PM, walnutmon [EMAIL PROTECTED] wrote:

 I have two panels, a view panel where you can look for news and an edit
 panel.  The edit panel has a reference to a news object and all of it's
 form elements have property models that use that object.

 When I pass a news object into the panel on creation all of the form
 elements fill as expected.  However, if I set that object through a setter
 in the panel class, the elements do not update.  My theory (which may be
 wrong) is that the property model makes a defensive copy and therefore is
 not linked to the object in the class.  If this is true, can I resend the
 object to the property model?

 If that's not true, any insight as to what I may be doing wrong?
 --
 View this message in context: 
 http://www.nabble.com/Forcing-property-models-to-update-tp20150693p20150693.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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





-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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



AjaxButton - no label constructor?

2008-10-24 Thread Steve Swinsburg
Is there a special reason why an AjaxButton doesn't have a constructor  
that allows a label to be set onto it automatically like a normal form  
Button?


Shouldn't the AjaxButton have a constructor like the Button  
constructor?:


Button(java.lang.String id, IModel model)
Constructor taking an model for rendering the 'label' of the button  
(the value attribute of the input/button tag).


I realise you can use setLabel to set the label after it's been  
declared but it just seems inconsistent.




cheers,
Steve

---
Steve Swinsburg
Portal Systems Developer
Centre for e-Science
Lancaster University
Lancaster
LA1 4YT

email: [EMAIL PROTECTED]
phone: +44 (0) 1524 594870









smime.p7s
Description: S/MIME cryptographic signature


Re: Forcing property models to update

2008-10-24 Thread Jeremy Thomerson
Martijn is the guy that sprays buttered popcorn smell in the theatre vents
for that extra little bit of subliminal selling power.  :)

Seriously, though - buy the book - it's worth it's weight in gold.

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




On Fri, Oct 24, 2008 at 9:18 AM, Martijn Dashorst 
[EMAIL PROTECTED] wrote:

 No defensive copying happening. Just your plain old references
 updating. Read the models page on the wiki about chaining models.

 Put this in a unit test case:

 State s = new State();
 s.setDescription(I haven't read Wicket in Action but hear it helps
 solve these questions);
 PropertyModel pm = new PropertyModel(s, description);
 assertEquals(I haven't read Wicket in Action but hear it helps solve
 these questions, pm.getObject());

 s = new State();
 s.setDescription(I'll buy Wicket in Action, just because I now get
 why my property model doesn't know this new state yet.);
 assertEquals(I'll buy Wicket in Action, just because I now get why my
 property model doesn't know this new state yet., pm.getObject());

 This is basically what you are doing in your panel.

 but if you did:
 State s = new State(Foo);
 Model m = new Model();
 m.setObject(s);
 PropertyModel pm = new PropertyModel(m, description);
 assertEquals(Foo, pm.getObject());

 and now for the coup de grace:

 s = new State(Bar);
 m.setObject(s);
 assertEquals(Bar, pm.getObject());

 Martijn

 On Fri, Oct 24, 2008 at 3:57 PM, walnutmon [EMAIL PROTECTED]
 wrote:
 
   I have two panels, a view panel where you can look for news and an edit
  panel.  The edit panel has a reference to a news object and all of it's
  form elements have property models that use that object.
 
  When I pass a news object into the panel on creation all of the form
  elements fill as expected.  However, if I set that object through a
 setter
  in the panel class, the elements do not update.  My theory (which may be
  wrong) is that the property model makes a defensive copy and therefore is
  not linked to the object in the class.  If this is true, can I resend the
  object to the property model?
 
  If that's not true, any insight as to what I may be doing wrong?
  --
  View this message in context:
 http://www.nabble.com/Forcing-property-models-to-update-tp20150693p20150693.html
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 



 --
 Become a Wicket expert, learn from the best: http://wicketinaction.com
 Apache Wicket 1.3.4 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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




Usability question for a birthdate DropDownChoice

2008-10-24 Thread fatefree

I'm just curious to hear some thoughts about the usability of selecting your
birthdate on a form. Unfortunately the date picker doesn't seem to be the
best solution because of the year requirement, so that leaves a combo of a
month/day/year drop down choices or a textfield looking for a specific date
format.

While I would prefer a textfield because its easier to bind a value, and can
be ajax validated immmediately, the disadvantage it has (besides requiring a
specific format) is that different countries have different date formats, so
it might be confusing for an internationlized form.

Drop downs make it at little easier (but slower) for users, but has some
technical disadvantages. For one its less friendly to use ajax validation
since they need to select all 3 before we should show a validation error.
(An onblur after the first drop down saying the date is invalid doesnt make
much sense) And also we need to bind the values to three different objects
and contruct a date later. Is there any sort of a GroupDropDownChoice that
addresses this like there is for check boxes and radio buttons? I'd be
interested to hear how people have handled something like this
-- 
View this message in context: 
http://www.nabble.com/Usability-question-for-a-birthdate-DropDownChoice-tp20151779p20151779.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Trying to create a calendar - need some guidance

2008-10-24 Thread V. Jenks

I'd really appreciate that Edgar, thanks!

As for the GridView - duh for me.

On another note, I just finished another one of our corporate sites, using
Wicket.  Check it out, let me know your thoughts, criticisms, etc.  I used
Wicket because I built our storefront a couple years ago with Wicket as well
and eventually they'll be more tightly integrated.

Everything is Wicket + Java EE 5 on Glassfish V2.

http://www.snakeriverfarms.com/


Edgar Merino wrote:
 
 I've got an abstract calendar already coded, the only problem is that 
 it's using a DataTable (instead of only a gridview), I have to change 
 the code to use the gridview instead, I'll post the code tomorrow if 
 I've got the time and you're still interested.
 
 Edgar Merino
 
 
 
 
 
 John Krasnay escribió:
 Uh, yeah, that's what I meant to say, just use a GridView :-)

 jk

 On Thu, Oct 23, 2008 at 05:14:42PM -0700, Igor Vaynberg wrote:
   
 all you need is a gridview. set columns to 7 and generate 30 items...

 -igor

 On Thu, Oct 23, 2008 at 1:47 PM, V. Jenks [EMAIL PROTECTED] wrote:
 
 Hi all.

 I'm trying to build a component-ized calendar that will be the
 centerpiece
 of a new application I'm working on.  I built one this morning in JSP
 and
 was able to do it with very little code.  I kept it simple and I'm
 hoping I
 can retro-fit the logic into a wicket page cleanly, without too much
 trouble.  I'm a little stuck because in my JSP, I simply loop through
 the
 days and print until Saturday is reached, then I break to a new table
 row
 and continue.  Doing this in Wicket seems tough because if I use a
 ListView,
 I can't be as flexible as far as throwing in a new row while looping
 and
 outputting table cells.

 Here's the rough idea I came up with today in JSP, can someone give me
 some
 pointers?

 %@ page contentType=text/html pageEncoding=UTF-8 %
 %@ page import=java.util.* %
 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
 http://www.w3.org/TR/html4/loose.dtd;
 %
  //get parameters to change date
  String monthParam = request.getParameter(month);
  String yearParam = request.getParameter(year);

  //create calendar object
  Calendar cal = Calendar.getInstance();
  cal.setFirstDayOfWeek(Calendar.SUNDAY); //set first day to Sunday

  if (monthParam != null)
cal.set(Calendar.MONTH, (Integer.valueOf(monthParam)-1));

  if (yearParam != null)
cal.set(Calendar.YEAR, Integer.valueOf(yearParam));

  //get total number of days in month
  int numDaysInMonth = cal.getActualMaximum(Calendar.DAY_OF_MONTH);

  //get current month name in English
  String monthName = cal.getDisplayName(Calendar.MONTH, Calendar.LONG,
 Locale.ENGLISH);

  //get current year
  int year = cal.get(Calendar.YEAR);

  //get array of day names
  String[] headers = {Sun, Mon, Tue, Wed, Thu, Fri, Sat};
 %
 html
  head
meta http-equiv=Content-Type content=text/html; charset=UTF-8
titleCalendarama!/title
  /head
  body
table border=1
  tr
!-- print month and year --
th colspan=7 align=center%= monthName +   + year
 %/th
  /tr
  tr
!-- loop and print days --
%
  for (int i=0; i7; i++)
  {
%
td%= headers[i] %/td
%
  }
%
  /tr
  !-- DRAW CALENDAR --
  tr
%
  for (int i=1; i=numDaysInMonth; i++)
  {
//re-set calendar day in context of loop
cal.set(Calendar.DAY_OF_MONTH, i);

//get the day number of the week
int day = cal.get(Calendar.DAY_OF_WEEK);

//days without numbers count
int blankDays = 0;

//blank days before 1st of month?
if (i == 1  day  1)
{
  blankDays = day - i; //get count

  //loop through count and print blank day
  for (int x=1; x=blankDays; x++)
  {
%
  td width=100 height=100nbsp;/td
%
  }
}
%
  td width=100 height=100 valign=top%= i %/td
%
if (day == Calendar.SATURDAY)
{
%
  /tr
  tr
%
}

//blank days after last day of month?
if (i == numDaysInMonth  day  7)
{
  blankDays = 7 - day; //get count

  //loop through count and print blank day
  for (int x=1; x=blankDays; x++)
  {
%
  td width=100 height=100nbsp;/td
%
  }
}
  }
%
  /tr
/table
  /body
 /html

 --
 View this message in context:
 http://www.nabble.com/Trying-to-create-a-calendar---need-some-guidance-tp20138860p20138860.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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


   
 

Re: Trying to create a calendar - need some guidance

2008-10-24 Thread James Carman
Mmm.  Waguy beef!

On Fri, Oct 24, 2008 at 11:04 AM, V. Jenks [EMAIL PROTECTED] wrote:

 I'd really appreciate that Edgar, thanks!

 As for the GridView - duh for me.

 On another note, I just finished another one of our corporate sites, using
 Wicket.  Check it out, let me know your thoughts, criticisms, etc.  I used
 Wicket because I built our storefront a couple years ago with Wicket as well
 and eventually they'll be more tightly integrated.

 Everything is Wicket + Java EE 5 on Glassfish V2.

 http://www.snakeriverfarms.com/


 Edgar Merino wrote:

 I've got an abstract calendar already coded, the only problem is that
 it's using a DataTable (instead of only a gridview), I have to change
 the code to use the gridview instead, I'll post the code tomorrow if
 I've got the time and you're still interested.

 Edgar Merino





 John Krasnay escribió:
 Uh, yeah, that's what I meant to say, just use a GridView :-)

 jk

 On Thu, Oct 23, 2008 at 05:14:42PM -0700, Igor Vaynberg wrote:

 all you need is a gridview. set columns to 7 and generate 30 items...

 -igor

 On Thu, Oct 23, 2008 at 1:47 PM, V. Jenks [EMAIL PROTECTED] wrote:

 Hi all.

 I'm trying to build a component-ized calendar that will be the
 centerpiece
 of a new application I'm working on.  I built one this morning in JSP
 and
 was able to do it with very little code.  I kept it simple and I'm
 hoping I
 can retro-fit the logic into a wicket page cleanly, without too much
 trouble.  I'm a little stuck because in my JSP, I simply loop through
 the
 days and print until Saturday is reached, then I break to a new table
 row
 and continue.  Doing this in Wicket seems tough because if I use a
 ListView,
 I can't be as flexible as far as throwing in a new row while looping
 and
 outputting table cells.

 Here's the rough idea I came up with today in JSP, can someone give me
 some
 pointers?

 %@ page contentType=text/html pageEncoding=UTF-8 %
 %@ page import=java.util.* %
 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
 http://www.w3.org/TR/html4/loose.dtd;
 %
  //get parameters to change date
  String monthParam = request.getParameter(month);
  String yearParam = request.getParameter(year);

  //create calendar object
  Calendar cal = Calendar.getInstance();
  cal.setFirstDayOfWeek(Calendar.SUNDAY); //set first day to Sunday

  if (monthParam != null)
cal.set(Calendar.MONTH, (Integer.valueOf(monthParam)-1));

  if (yearParam != null)
cal.set(Calendar.YEAR, Integer.valueOf(yearParam));

  //get total number of days in month
  int numDaysInMonth = cal.getActualMaximum(Calendar.DAY_OF_MONTH);

  //get current month name in English
  String monthName = cal.getDisplayName(Calendar.MONTH, Calendar.LONG,
 Locale.ENGLISH);

  //get current year
  int year = cal.get(Calendar.YEAR);

  //get array of day names
  String[] headers = {Sun, Mon, Tue, Wed, Thu, Fri, Sat};
 %
 html
  head
meta http-equiv=Content-Type content=text/html; charset=UTF-8
titleCalendarama!/title
  /head
  body
table border=1
  tr
!-- print month and year --
th colspan=7 align=center%= monthName +   + year
 %/th
  /tr
  tr
!-- loop and print days --
%
  for (int i=0; i7; i++)
  {
%
td%= headers[i] %/td
%
  }
%
  /tr
  !-- DRAW CALENDAR --
  tr
%
  for (int i=1; i=numDaysInMonth; i++)
  {
//re-set calendar day in context of loop
cal.set(Calendar.DAY_OF_MONTH, i);

//get the day number of the week
int day = cal.get(Calendar.DAY_OF_WEEK);

//days without numbers count
int blankDays = 0;

//blank days before 1st of month?
if (i == 1  day  1)
{
  blankDays = day - i; //get count

  //loop through count and print blank day
  for (int x=1; x=blankDays; x++)
  {
%
  td width=100 height=100nbsp;/td
%
  }
}
%
  td width=100 height=100 valign=top%= i %/td
%
if (day == Calendar.SATURDAY)
{
%
  /tr
  tr
%
}

//blank days after last day of month?
if (i == numDaysInMonth  day  7)
{
  blankDays = 7 - day; //get count

  //loop through count and print blank day
  for (int x=1; x=blankDays; x++)
  {
%
  td width=100 height=100nbsp;/td
%
  }
}
  }
%
  /tr
/table
  /body
 /html

 --
 View this message in context:
 http://www.nabble.com/Trying-to-create-a-calendar---need-some-guidance-tp20138860p20138860.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL 

nested AjaxFormComponentUpdatingBehavior

2008-10-24 Thread Rutger Jansen
Hi

I'm having trouble refreshing a formcomponent with Ajax when it is
nested in another Component which is updated by Ajax.

My situation is:
I have a large page with a form. The form contains a dataView and the
dataView contains lines (a List) of objects.
In each line I have a few DropDownChoice components. If component A
changes, the choices of component B will change.
This all works perfectly by adding a AjaxFormComponentUpdatingBehavior
on component A and calling setOutputMarkupId(true) on component B.

Now I also have an option to add a line to the list of objects and I
also added AjaxFormComponentUpdatingBehavior to this
'add_a_new_line_link' causing the whole dataView to refresh. To have
that working I also call setOutputMarkupId(true) on my dataView.

But once I've (also) set the OutputMarkupId(true) on the dataView, the
updating of component B after changing component A does not work
anymore, unless I refresh the whole dataView instead of just component
B as I did before.

So to me it seems it has to do something with the nested
setOutputMarkupId(true) on the dataView and on component B within that
dataview.

Any ideas?

Rutger

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



Understanding JS Error on Wicket-Framewor (Ajax + F5)

2008-10-24 Thread Francisco Diaz Trepat - gmail
Hi all. I am getting the following error when refreshing (CTRL+R) my page.
I work entirely with ajax except for the first-time loading of the page.
After that it is all panel replacements.

Everything kind of work but I have one formatting component that don't, and
as a hint I get this error (on firebug):


document.body is null
addElement()(div style='width: 450px; display: none; position: absolute;
left: 200px; top: 300px; z-index: 100;' id='wicketAjaxDebugWindow' div
style='border: 1px solid black; padding: 1px; background-color: #eee' div
style='overflow: auto; width: 100%' div style='float: right; padding:
0.2em; padding-right: 1em; color: black;' a
href='javascript:WicketAjaxDebug.switchScrollLock()'
id='wicketAjaxDebugScrollLock' style='color:blue'
onfocus='this.blur();'scroll lock/a | a
href='javascript:WicketAjaxDebug.clearLog()' style='color:blue'clear/a |
a href='javascript:WicketAjaxDebug.hideDebugWindow()'
style='color:blue'close/a /div div
id='wicketAjaxDebugWindowDragHandle' style='padding: 0.2em;
background-color: gray; color: white; padding-left: 1em; margin-right: 14em;
cursor: move;' Wicket Ajax Debug Window (drag me here) /div div
id='wicketAjaxDebugWindowLogId' style='width: 100%; height: 200px;
background-color: white; color: black; overflow: auto; white-space: nowrap'
/div div style='height: 10px; margin:0px; padding:0px;overflow:hidden;'
div style='height: 10px; width: 10px; background-color: gray; margin:0px;
padding: 0px;overflow:hidden; float:right; cursor: nw-resize'
id='wicketAjaxDebugWindowResizeHandle' /div /div /div /div/diva
id='wicketDebugLink' style='position:fixed; right: 10px; bottom: 10px;
z-index:100; padding-top: 0.3em; padding-bottom: 0.3em; line-height:
normal ; _padding-top: 0em; width: 12em; border: 1px solid black;
background-color: white; text-align: center; opacity: 0.7; color: blue;'
href='javascript:WicketAjaxDebug.showDebugWindow()'WICKET AJAX
DEBUG/a)wicket-a...-debug.js
(line 207)
init()()wicket-a...-debug.js (line 137)
log()(getGERMANItems(), INFO: )wicket-a...-debug.js (line 49)
log(getGERMANItems(), INFO: )LcUtils_de_CH.js (line 3)
logInformation(getGERMANItems())LcUtils_de_CH.js (line 10)
getGERMANItems()()LcDateTy..._de_CH.js (line 2)
LcDateTypesEnum_de_CH.js()()LcDateTy..._de_CH.js (line 182)
  document.body.appendChild(element);


Any clue to what could be happening that when page is refreshed,
document.body returns null?

At first this error was appearing when uploading a file (hence posting and
refreshing window).

f(t)


Re: AjaxFallbackButton: inconsistend submit order

2008-10-24 Thread Igor Vaynberg
shows it was released here...maybe martijn sneaked that change in.

-igor

On Fri, Oct 24, 2008 at 12:52 AM, Stefan Fußenegger
[EMAIL PROTECTED] wrote:

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

 btw: 1.3.5 is still in the unreleased versions section

 regards



 igor.vaynberg wrote:

 this sounds like a bug, please file a jira report

 -igor

 On Thu, Oct 23, 2008 at 6:47 AM, Stefan Fußenegger
 [EMAIL PROTECTED] wrote:

 Hi folks,

 I just stumbled upon a problem with a Form containing a nested Form and
 two
 AjaxFallbackButtons (submit and preview). I need to implement different
 onSubmit() behavior of the nested Form depending on the clicked button.

 The order of onSubmit() calls is:

 without JS:
 - AjaxFallbackButton.onSubmit(AjaxRequestTarget,Form)
 - OuterForm.onSubmit() // not used
 - Inner Form.onSubmit()

 with JS:
 - Inner Form.onSubmit()
 - OuterForm.onSubmit() // not used
 - AjaxFallbackButton.onSubmit(AjaxRequestTarget,Form)

 With JS, it is therefore not possible to determine which button was
 clicked
 from inside a form's onSubmit() method.

 Is this a (known) bug?

 -
 ---
 Stefan Fußenegger
 http://talk-on-tech.blogspot.com // looking for a nicer domain ;)
 --
 View this message in context:
 http://www.nabble.com/AjaxFallbackButton%3A-inconsistend-submit-order-tp20131329p20131329.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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





 -
 ---
 Stefan Fußenegger
 http://talk-on-tech.blogspot.com // looking for a nicer domain ;)
 --
 View this message in context: 
 http://www.nabble.com/AjaxFallbackButton%3A-inconsistend-submit-order-tp20131329p20145832.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



Re: Spring and servlet config instead of filter

2008-10-24 Thread Igor Vaynberg
are you running on jdk1.4? because that is pretty much the only reason
to need to use spring web application factory...

-igor

On Fri, Oct 24, 2008 at 3:14 AM, Joni Lahtinen
[EMAIL PROTECTED] wrote:
 I have problems to replace filter configuration in web.xml with servlet
 configuration. Why I try to use servlet configuration is to get wickets
 run with spring in websphere. I'm trying now to deploy this application
 in jetty but I run to problems. I have read from this mailing list that
 the problem I run to is reported as a bug and fixed. Please ask for more
 information if it is needed.

 Thank you for advance. And next more details:

 I'm using these versions.

 repository/org/apache/wicket/wicket-extensions/1.3.5/wicket-extensions-1.3.5.jar
 repository/org/apache/wicket/wicket-spring-annot/1.3.5/wicket-spring-annot-1.3.5.jar
 repository/org/apache/wicket/wicket-spring/1.3.5/wicket-spring-1.3.5.jar
 repository/org/apache/wicket/wicket-ioc/1.3.5/wicket-ioc-1.3.5.jar
 repository/org/springframework/spring-core/2.5.5/spring-core-2.5.5.jar

 Here is my web.xml

 context-param
param-namecontextConfigLocation/param-name
param-value/WEB-INF/sovelluskonteksti.xml/param-value
/context-param
servlet
servlet-namecontext/servlet-name

 servlet-classorg.springframework.web.context.ContextLoaderServlet/servlet-class
load-on-startup0/load-on-startup
/servlet
servlet
servlet-namewicket.wicket/servlet-name

 servlet-classorg.apache.wicket.protocol.http.WicketServlet/servlet-class
init-param
param-nameapplicationClassName/param-name

 param-valuecom.loginets.rfidgate.web.HotelliSovellus/param-value
/init-param
init-param
param-nameapplicationFactoryClassName/param-name

 param-valueorg.apache.wicket.spring.SpringWebApplicationFactory/param-value
/init-param
load-on-startup1/load-on-startup
/servlet
servlet-mapping
servlet-namewicket.wicket/servlet-name
url-pattern/app/*/url-pattern
/servlet-mapping


 Here is exception:

 java.lang.IllegalStateException: bean of type
 [org.apache.wicket.protocol.http.WebApplication] not found
at
 org.apache.wicket.spring.SpringWebApplicationFactory.createApplication(SpringWebApplicationFactory.java:107)
at
 org.apache.wicket.spring.SpringWebApplicationFactory.createApplication(SpringWebApplicationFactory.java:86)
at
 org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:551)
at
 org.apache.wicket.protocol.http.WicketServlet.init(WicketServlet.java:194)
at javax.servlet.GenericServlet.init(GenericServlet.java:241)
at
 org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:431)
at
 org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:263)
at
 org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at
 org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:643)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
at
 org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1234)
at
 org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
at
 org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:460)
at
 org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:124)
at
 org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at
 org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
at
 org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
at
 org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at
 org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
at
 org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at
 org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:222)
at
 org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at
 org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132)
at
 org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:388)
at
 org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:324)
at
 org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:205)
at
 org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184)
at
 org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:579)
at
 

Re: AjaxButton - no label constructor?

2008-10-24 Thread Igor Vaynberg
add an rfe into jira. there is no special reason afaik. actually if it
were up to me button wouldnt waste its model on the label, you can
just add that directly into markup with wicket:message in 90% of
cases.

-igor

On Fri, Oct 24, 2008 at 7:20 AM, Steve Swinsburg
[EMAIL PROTECTED] wrote:
 Is there a special reason why an AjaxButton doesn't have a constructor that
 allows a label to be set onto it automatically like a normal form Button?
 Shouldn't the AjaxButton have a constructor like the Button constructor?:
 Button(java.lang.String id, IModel model)
 Constructor taking an model for rendering the 'label' of the button (the
 value attribute of the input/button tag).

 I realise you can use setLabel to set the label after it's been declared but
 it just seems inconsistent.


 cheers,
 Steve
 ---
 Steve Swinsburg
 Portal Systems Developer
 Centre for e-Science
 Lancaster University
 Lancaster
 LA1 4YT
 email: [EMAIL PROTECTED]
 phone: +44 (0) 1524 594870








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



Re: Forcing property models to update

2008-10-24 Thread Igor Vaynberg
m popcorn!

-igor

On Fri, Oct 24, 2008 at 7:47 AM, Jeremy Thomerson
[EMAIL PROTECTED] wrote:
 Martijn is the guy that sprays buttered popcorn smell in the theatre vents
 for that extra little bit of subliminal selling power.  :)

 Seriously, though - buy the book - it's worth it's weight in gold.

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




 On Fri, Oct 24, 2008 at 9:18 AM, Martijn Dashorst 
 [EMAIL PROTECTED] wrote:

 No defensive copying happening. Just your plain old references
 updating. Read the models page on the wiki about chaining models.

 Put this in a unit test case:

 State s = new State();
 s.setDescription(I haven't read Wicket in Action but hear it helps
 solve these questions);
 PropertyModel pm = new PropertyModel(s, description);
 assertEquals(I haven't read Wicket in Action but hear it helps solve
 these questions, pm.getObject());

 s = new State();
 s.setDescription(I'll buy Wicket in Action, just because I now get
 why my property model doesn't know this new state yet.);
 assertEquals(I'll buy Wicket in Action, just because I now get why my
 property model doesn't know this new state yet., pm.getObject());

 This is basically what you are doing in your panel.

 but if you did:
 State s = new State(Foo);
 Model m = new Model();
 m.setObject(s);
 PropertyModel pm = new PropertyModel(m, description);
 assertEquals(Foo, pm.getObject());

 and now for the coup de grace:

 s = new State(Bar);
 m.setObject(s);
 assertEquals(Bar, pm.getObject());

 Martijn

 On Fri, Oct 24, 2008 at 3:57 PM, walnutmon [EMAIL PROTECTED]
 wrote:
 
   I have two panels, a view panel where you can look for news and an edit
  panel.  The edit panel has a reference to a news object and all of it's
  form elements have property models that use that object.
 
  When I pass a news object into the panel on creation all of the form
  elements fill as expected.  However, if I set that object through a
 setter
  in the panel class, the elements do not update.  My theory (which may be
  wrong) is that the property model makes a defensive copy and therefore is
  not linked to the object in the class.  If this is true, can I resend the
  object to the property model?
 
  If that's not true, any insight as to what I may be doing wrong?
  --
  View this message in context:
 http://www.nabble.com/Forcing-property-models-to-update-tp20150693p20150693.html
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 



 --
 Become a Wicket expert, learn from the best: http://wicketinaction.com
 Apache Wicket 1.3.4 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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




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



Re: Usability question for a birthdate DropDownChoice

2008-10-24 Thread Igor Vaynberg
this can be implementing as a formcomponentpanel that contains 3 drop
down choices inside. nothing too complicated, in fact i think there
are examples somewhere on the wiki or in the archives of this list.

-igor

On Fri, Oct 24, 2008 at 8:01 AM, fatefree [EMAIL PROTECTED] wrote:

 I'm just curious to hear some thoughts about the usability of selecting your
 birthdate on a form. Unfortunately the date picker doesn't seem to be the
 best solution because of the year requirement, so that leaves a combo of a
 month/day/year drop down choices or a textfield looking for a specific date
 format.

 While I would prefer a textfield because its easier to bind a value, and can
 be ajax validated immmediately, the disadvantage it has (besides requiring a
 specific format) is that different countries have different date formats, so
 it might be confusing for an internationlized form.

 Drop downs make it at little easier (but slower) for users, but has some
 technical disadvantages. For one its less friendly to use ajax validation
 since they need to select all 3 before we should show a validation error.
 (An onblur after the first drop down saying the date is invalid doesnt make
 much sense) And also we need to bind the values to three different objects
 and contruct a date later. Is there any sort of a GroupDropDownChoice that
 addresses this like there is for check boxes and radio buttons? I'd be
 interested to hear how people have handled something like this
 --
 View this message in context: 
 http://www.nabble.com/Usability-question-for-a-birthdate-DropDownChoice-tp20151779p20151779.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



Re: nested AjaxFormComponentUpdatingBehavior

2008-10-24 Thread Igor Vaynberg
calling setoutputmarkupid(true) on the datavew is a noop because
dataview itself doesnt render.

-igor

On Fri, Oct 24, 2008 at 8:33 AM, Rutger Jansen [EMAIL PROTECTED] wrote:
 Hi

 I'm having trouble refreshing a formcomponent with Ajax when it is
 nested in another Component which is updated by Ajax.

 My situation is:
 I have a large page with a form. The form contains a dataView and the
 dataView contains lines (a List) of objects.
 In each line I have a few DropDownChoice components. If component A
 changes, the choices of component B will change.
 This all works perfectly by adding a AjaxFormComponentUpdatingBehavior
 on component A and calling setOutputMarkupId(true) on component B.

 Now I also have an option to add a line to the list of objects and I
 also added AjaxFormComponentUpdatingBehavior to this
 'add_a_new_line_link' causing the whole dataView to refresh. To have
 that working I also call setOutputMarkupId(true) on my dataView.

 But once I've (also) set the OutputMarkupId(true) on the dataView, the
 updating of component B after changing component A does not work
 anymore, unless I refresh the whole dataView instead of just component
 B as I did before.

 So to me it seems it has to do something with the nested
 setOutputMarkupId(true) on the dataView and on component B within that
 dataview.

 Any ideas?

 Rutger

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



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



Re: Trying to create a calendar - need some guidance

2008-10-24 Thread V. Jenks

Igor, thanks again for the clue on using GridView, I got it figured out and
it works great!  I attached the code in case anyone's interested in drawing
a basic calendar.  It's lean and clean so it's easy to extend.
http://www.nabble.com/file/p20153494/Cal.java Cal.java 
http://www.nabble.com/file/p20153494/Cal.html Cal.html 
http://www.nabble.com/file/p20153494/DayProvider.java DayProvider.java 


V. Jenks wrote:
 
 Hi all.
 
 I'm trying to build a component-ized calendar that will be the centerpiece
 of a new application I'm working on.  I built one this morning in JSP and
 was able to do it with very little code.  I kept it simple and I'm hoping
 I can retro-fit the logic into a wicket page cleanly, without too much
 trouble.  I'm a little stuck because in my JSP, I simply loop through the
 days and print until Saturday is reached, then I break to a new table row
 and continue.  Doing this in Wicket seems tough because if I use a
 ListView, I can't be as flexible as far as throwing in a new row while
 looping and outputting table cells.
 
 Here's the rough idea I came up with today in JSP, can someone give me
 some pointers?
 
 %@ page contentType=text/html pageEncoding=UTF-8 %
 %@ page import=java.util.* %
 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
 http://www.w3.org/TR/html4/loose.dtd;
 %
   //get parameters to change date
   String monthParam = request.getParameter(month);
   String yearParam = request.getParameter(year);
   
   //create calendar object
   Calendar cal = Calendar.getInstance();
   cal.setFirstDayOfWeek(Calendar.SUNDAY); //set first day to Sunday
   
   if (monthParam != null)
 cal.set(Calendar.MONTH, (Integer.valueOf(monthParam)-1));
   
   if (yearParam != null)
 cal.set(Calendar.YEAR, Integer.valueOf(yearParam));
 
   //get total number of days in month
   int numDaysInMonth = cal.getActualMaximum(Calendar.DAY_OF_MONTH);
 
   //get current month name in English
   String monthName = cal.getDisplayName(Calendar.MONTH, Calendar.LONG,
 Locale.ENGLISH);
 
   //get current year
   int year = cal.get(Calendar.YEAR);
   
   //get array of day names
   String[] headers = {Sun, Mon, Tue, Wed, Thu, Fri, Sat};
 %
 html
   head
 meta http-equiv=Content-Type content=text/html; charset=UTF-8
 titleCalendarama!/title
   /head
   body
 table border=1
   tr
 !-- print month and year --
 th colspan=7 align=center%= monthName +   + year %/th
   /tr
   tr
 !-- loop and print days --
 %
   for (int i=0; i7; i++)
   {
 %
 td%= headers[i] %/td
 %
   }
 %
   /tr
   !-- DRAW CALENDAR --
   tr
 %
   for (int i=1; i=numDaysInMonth; i++)
   {
 //re-set calendar day in context of loop
 cal.set(Calendar.DAY_OF_MONTH, i);
 
 //get the day number of the week
 int day = cal.get(Calendar.DAY_OF_WEEK);
 
 //days without numbers count
 int blankDays = 0;
 
 //blank days before 1st of month?
 if (i == 1  day  1)
 {
   blankDays = day - i; //get count
 
   //loop through count and print blank day
   for (int x=1; x=blankDays; x++)
   {
 %
   td width=100 height=100nbsp;/td
 %
   }
 }
 %
   td width=100 height=100 valign=top%= i %/td
 %
 if (day == Calendar.SATURDAY)
 {
 %
   /tr
   tr
 %
 }  
 
 //blank days after last day of month?
 if (i == numDaysInMonth  day  7)
 {
   blankDays = 7 - day; //get count
 
   //loop through count and print blank day
   for (int x=1; x=blankDays; x++)
   {
 %
   td width=100 height=100nbsp;/td
 %
   }
 }
   }
 %
   /tr
 /table
   /body
 /html
 
 

-- 
View this message in context: 
http://www.nabble.com/Trying-to-create-a-calendar---need-some-guidance-tp20138860p20153494.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Trying to create a calendar - need some guidance

2008-10-24 Thread Igor Vaynberg
you are welcome

-igor

On Fri, Oct 24, 2008 at 9:38 AM, V. Jenks [EMAIL PROTECTED] wrote:

 Igor, thanks again for the clue on using GridView, I got it figured out and
 it works great!  I attached the code in case anyone's interested in drawing
 a basic calendar.  It's lean and clean so it's easy to extend.
 http://www.nabble.com/file/p20153494/Cal.java Cal.java
 http://www.nabble.com/file/p20153494/Cal.html Cal.html
 http://www.nabble.com/file/p20153494/DayProvider.java DayProvider.java


 V. Jenks wrote:

 Hi all.

 I'm trying to build a component-ized calendar that will be the centerpiece
 of a new application I'm working on.  I built one this morning in JSP and
 was able to do it with very little code.  I kept it simple and I'm hoping
 I can retro-fit the logic into a wicket page cleanly, without too much
 trouble.  I'm a little stuck because in my JSP, I simply loop through the
 days and print until Saturday is reached, then I break to a new table row
 and continue.  Doing this in Wicket seems tough because if I use a
 ListView, I can't be as flexible as far as throwing in a new row while
 looping and outputting table cells.

 Here's the rough idea I came up with today in JSP, can someone give me
 some pointers?

 %@ page contentType=text/html pageEncoding=UTF-8 %
 %@ page import=java.util.* %
 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
 http://www.w3.org/TR/html4/loose.dtd;
 %
   //get parameters to change date
   String monthParam = request.getParameter(month);
   String yearParam = request.getParameter(year);

   //create calendar object
   Calendar cal = Calendar.getInstance();
   cal.setFirstDayOfWeek(Calendar.SUNDAY); //set first day to Sunday

   if (monthParam != null)
 cal.set(Calendar.MONTH, (Integer.valueOf(monthParam)-1));

   if (yearParam != null)
 cal.set(Calendar.YEAR, Integer.valueOf(yearParam));

   //get total number of days in month
   int numDaysInMonth = cal.getActualMaximum(Calendar.DAY_OF_MONTH);

   //get current month name in English
   String monthName = cal.getDisplayName(Calendar.MONTH, Calendar.LONG,
 Locale.ENGLISH);

   //get current year
   int year = cal.get(Calendar.YEAR);

   //get array of day names
   String[] headers = {Sun, Mon, Tue, Wed, Thu, Fri, Sat};
 %
 html
   head
 meta http-equiv=Content-Type content=text/html; charset=UTF-8
 titleCalendarama!/title
   /head
   body
 table border=1
   tr
 !-- print month and year --
 th colspan=7 align=center%= monthName +   + year %/th
   /tr
   tr
 !-- loop and print days --
 %
   for (int i=0; i7; i++)
   {
 %
 td%= headers[i] %/td
 %
   }
 %
   /tr
   !-- DRAW CALENDAR --
   tr
 %
   for (int i=1; i=numDaysInMonth; i++)
   {
 //re-set calendar day in context of loop
 cal.set(Calendar.DAY_OF_MONTH, i);

 //get the day number of the week
 int day = cal.get(Calendar.DAY_OF_WEEK);

 //days without numbers count
 int blankDays = 0;

 //blank days before 1st of month?
 if (i == 1  day  1)
 {
   blankDays = day - i; //get count

   //loop through count and print blank day
   for (int x=1; x=blankDays; x++)
   {
 %
   td width=100 height=100nbsp;/td
 %
   }
 }
 %
   td width=100 height=100 valign=top%= i %/td
 %
 if (day == Calendar.SATURDAY)
 {
 %
   /tr
   tr
 %
 }

 //blank days after last day of month?
 if (i == numDaysInMonth  day  7)
 {
   blankDays = 7 - day; //get count

   //loop through count and print blank day
   for (int x=1; x=blankDays; x++)
   {
 %
   td width=100 height=100nbsp;/td
 %
   }
 }
   }
 %
   /tr
 /table
   /body
 /html



 --
 View this message in context: 
 http://www.nabble.com/Trying-to-create-a-calendar---need-some-guidance-tp20138860p20153494.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



ajax does not work in IE6 when using domain name. but works with IP

2008-10-24 Thread vkoratek

website runs on apache+resin 3.1.5 and wicket 1.3.3. Load balancer exists.

Specifics of the problem are-
1. customer accesses the site from inside their company's network, have a
problem.
2. Customer uses IE6.
3. Problem occurs when customer uses domain name. 
4. No problem seen when IP address of the website is used.
5. Problem is that none of the ajax pieces works.  java  class throws an npe
for AjaxRequestTarget object.

When i view the source code, i do see these lines-
script
src=resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js
type=text/javascript
and
script
src=resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js
type=text/javascript


What is it that IE screws up when domain name is used vs using the IP
address of either of the 2 prod servers?
-- 
View this message in context: 
http://www.nabble.com/ajax-does-not-work-in-IE6-when-using-domain-name.-but-works-with-IP-tp20153993p20153993.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: ajax does not work in IE6 when using domain name. but works with IP

2008-10-24 Thread Igor Vaynberg
there is already a thread posted about this by atrout
[EMAIL PROTECTED]. thanks for spamming the list.

-igor

On Fri, Oct 24, 2008 at 10:03 AM, vkoratek [EMAIL PROTECTED] wrote:

 website runs on apache+resin 3.1.5 and wicket 1.3.3. Load balancer exists.

 Specifics of the problem are-
 1. customer accesses the site from inside their company's network, have a
 problem.
 2. Customer uses IE6.
 3. Problem occurs when customer uses domain name.
 4. No problem seen when IP address of the website is used.
 5. Problem is that none of the ajax pieces works.  java  class throws an npe
 for AjaxRequestTarget object.

 When i view the source code, i do see these lines-
 script
 src=resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js
 type=text/javascript
 and
 script
 src=resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js
 type=text/javascript


 What is it that IE screws up when domain name is used vs using the IP
 address of either of the 2 prod servers?
 --
 View this message in context: 
 http://www.nabble.com/ajax-does-not-work-in-IE6-when-using-domain-name.-but-works-with-IP-tp20153993p20153993.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



Re: ajax does not work in IE6 when using domain name. but works with IP

2008-10-24 Thread vkoratek

Igor:
Yes this is the same issue as posted by Anna. but I am only writing this
becos the suggestion of using on the home page,  getSession().bind() did not
make the error  go away...

we still see the js error of Inavlid Chracter line 2 . Ajax does not work.

Any alternative suggestion is greatly appreciated.
Thanks


igor.vaynberg wrote:
 
 there is already a thread posted about this by atrout
 [EMAIL PROTECTED]. thanks for spamming the list.
 
 -igor
 
 On Fri, Oct 24, 2008 at 10:03 AM, vkoratek [EMAIL PROTECTED] wrote:

 website runs on apache+resin 3.1.5 and wicket 1.3.3. Load balancer
 exists.

 Specifics of the problem are-
 1. customer accesses the site from inside their company's network, have a
 problem.
 2. Customer uses IE6.
 3. Problem occurs when customer uses domain name.
 4. No problem seen when IP address of the website is used.
 5. Problem is that none of the ajax pieces works.  java  class throws an
 npe
 for AjaxRequestTarget object.

 When i view the source code, i do see these lines-
 script
 src=resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js
 type=text/javascript
 and
 script
 src=resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js
 type=text/javascript


 What is it that IE screws up when domain name is used vs using the IP
 address of either of the 2 prod servers?
 --
 View this message in context:
 http://www.nabble.com/ajax-does-not-work-in-IE6-when-using-domain-name.-but-works-with-IP-tp20153993p20153993.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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


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

-- 
View this message in context: 
http://www.nabble.com/ajax-does-not-work-in-IE6-when-using-domain-name.-but-works-with-IP-tp20153993p20154669.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



No session requested when playing MP3 resource link

2008-10-24 Thread chris888

Hi,
I have a fairly simple wicket page that displays a list of links that are
DynamicWebResource links to MP3 streams. This works fine on most platforms I
am running on (the link either plays in the browser or media player opens to
play the link) but on Android I find that when the media player opens it
makes requests on a different session and by tracing back through the code I
see that the requestedSessionID on the request is null.

Is there a way to put the jsessionId on the ResourceLink URL? might that
possibly allow wicket to pick up the correct session?

Or any other suggestions very welcome

Cheers :)


-- 
View this message in context: 
http://www.nabble.com/No-session-requested-when-playing-MP3-resource-link-tp20154778p20154778.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: ajax does not work in IE6 when using domain name. but works with IP

2008-10-24 Thread Igor Vaynberg
yeah? why did you not mention that in your email, and why did you
start a new thread instead of continuing the existing one?

-igor

On Fri, Oct 24, 2008 at 10:44 AM, vkoratek [EMAIL PROTECTED] wrote:

 Igor:
 Yes this is the same issue as posted by Anna. but I am only writing this
 becos the suggestion of using on the home page,  getSession().bind() did not
 make the error  go away...

 we still see the js error of Inavlid Chracter line 2 . Ajax does not work.

 Any alternative suggestion is greatly appreciated.
 Thanks


 igor.vaynberg wrote:

 there is already a thread posted about this by atrout
 [EMAIL PROTECTED]. thanks for spamming the list.

 -igor

 On Fri, Oct 24, 2008 at 10:03 AM, vkoratek [EMAIL PROTECTED] wrote:

 website runs on apache+resin 3.1.5 and wicket 1.3.3. Load balancer
 exists.

 Specifics of the problem are-
 1. customer accesses the site from inside their company's network, have a
 problem.
 2. Customer uses IE6.
 3. Problem occurs when customer uses domain name.
 4. No problem seen when IP address of the website is used.
 5. Problem is that none of the ajax pieces works.  java  class throws an
 npe
 for AjaxRequestTarget object.

 When i view the source code, i do see these lines-
 script
 src=resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js
 type=text/javascript
 and
 script
 src=resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js
 type=text/javascript


 What is it that IE screws up when domain name is used vs using the IP
 address of either of the 2 prod servers?
 --
 View this message in context:
 http://www.nabble.com/ajax-does-not-work-in-IE6-when-using-domain-name.-but-works-with-IP-tp20153993p20153993.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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




 --
 View this message in context: 
 http://www.nabble.com/ajax-does-not-work-in-IE6-when-using-domain-name.-but-works-with-IP-tp20153993p20154669.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



Re: No session requested when playing MP3 resource link

2008-10-24 Thread Igor Vaynberg
the jsessionid should be there only during the first request. after
the first request the container switches to using the session cookie.
is the cookie set on the android end? is it being sent back?

-igor

On Fri, Oct 24, 2008 at 10:48 AM, chris888 [EMAIL PROTECTED] wrote:

 Hi,
 I have a fairly simple wicket page that displays a list of links that are
 DynamicWebResource links to MP3 streams. This works fine on most platforms I
 am running on (the link either plays in the browser or media player opens to
 play the link) but on Android I find that when the media player opens it
 makes requests on a different session and by tracing back through the code I
 see that the requestedSessionID on the request is null.

 Is there a way to put the jsessionId on the ResourceLink URL? might that
 possibly allow wicket to pick up the correct session?

 Or any other suggestions very welcome

 Cheers :)


 --
 View this message in context: 
 http://www.nabble.com/No-session-requested-when-playing-MP3-resource-link-tp20154778p20154778.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



Re: Wicket modals are not working in IE8 and Google chrome browsers

2008-10-24 Thread Matej Knopp
With IE8? That's a bad joke. The browser is nowhere near being usable
even in beta2.

-Matej

2008/10/24 Anirban Basak [EMAIL PROTECTED]:
 Hi,



 I'm using wicket for last 5+ months in my current project. We are planning
 to go live by mid Nov with a beta version. Yesterday our client came up with
 a strange complain, wicket modals, we are currently using for pop-ups, are
 not at all working in IE8 and Google chrome browsers. So, I verified it and
 yes, modals are not really opening up! I know both are still in beta stage,
 but is there any patch/work around ?



 Google chrome we can ignore right now but probably can't bypass IE8 as new
 Vista Laptops ship with IE8 (as client told us. Not verified yet though)





 Warm Regards,

 Anirban Basak

 Ph : 91 33 2357 7177 Extn: 277







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



Re: No session requested when playing MP3 resource link

2008-10-24 Thread chris888

thanks for the lightning fast reply

I'm guessing that the media player does not know about the browsers cookie
so cant send it.
How can I tell for sure if it is or not? 

On the browser requests object I see that a session id is requested and
requestedSessionCookie is true
When the media player requests they are null and false



igor.vaynberg wrote:
 
 the jsessionid should be there only during the first request. after
 the first request the container switches to using the session cookie.
 is the cookie set on the android end? is it being sent back?
 
 -igor
 
 On Fri, Oct 24, 2008 at 10:48 AM, chris888 [EMAIL PROTECTED]
 wrote:

 Hi,
 I have a fairly simple wicket page that displays a list of links that are
 DynamicWebResource links to MP3 streams. This works fine on most
 platforms I
 am running on (the link either plays in the browser or media player opens
 to
 play the link) but on Android I find that when the media player opens it
 makes requests on a different session and by tracing back through the
 code I
 see that the requestedSessionID on the request is null.

 Is there a way to put the jsessionId on the ResourceLink URL? might that
 possibly allow wicket to pick up the correct session?

 Or any other suggestions very welcome

 Cheers :)


 --
 View this message in context:
 http://www.nabble.com/No-session-requested-when-playing-MP3-resource-link-tp20154778p20154778.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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


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

-- 
View this message in context: 
http://www.nabble.com/No-session-requested-when-playing-MP3-resource-link-tp20154778p20155020.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: No session requested when playing MP3 resource link

2008-10-24 Thread Igor Vaynberg
well, what you can do is disable session cookie tracking on your
servlet container. that way sessionid will be written into every url.

-igor

On Fri, Oct 24, 2008 at 11:00 AM, chris888 [EMAIL PROTECTED] wrote:

 thanks for the lightning fast reply

 I'm guessing that the media player does not know about the browsers cookie
 so cant send it.
 How can I tell for sure if it is or not?

 On the browser requests object I see that a session id is requested and
 requestedSessionCookie is true
 When the media player requests they are null and false



 igor.vaynberg wrote:

 the jsessionid should be there only during the first request. after
 the first request the container switches to using the session cookie.
 is the cookie set on the android end? is it being sent back?

 -igor

 On Fri, Oct 24, 2008 at 10:48 AM, chris888 [EMAIL PROTECTED]
 wrote:

 Hi,
 I have a fairly simple wicket page that displays a list of links that are
 DynamicWebResource links to MP3 streams. This works fine on most
 platforms I
 am running on (the link either plays in the browser or media player opens
 to
 play the link) but on Android I find that when the media player opens it
 makes requests on a different session and by tracing back through the
 code I
 see that the requestedSessionID on the request is null.

 Is there a way to put the jsessionId on the ResourceLink URL? might that
 possibly allow wicket to pick up the correct session?

 Or any other suggestions very welcome

 Cheers :)


 --
 View this message in context:
 http://www.nabble.com/No-session-requested-when-playing-MP3-resource-link-tp20154778p20154778.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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




 --
 View this message in context: 
 http://www.nabble.com/No-session-requested-when-playing-MP3-resource-link-tp20154778p20155020.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



Exception Forbidden 403

2008-10-24 Thread Chinnari

hi All,

When i deployed my application on tomcat it worked fine but when the same is
deployed in weblogic 10.0 i got following exception:

Error 403--Forbidden
From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
10.4.4 403 Forbidden

The server understood the request, but is refusing to fulfill it.
Authorization will not help and the request SHOULD NOT be repeated. If the
request method was not HEAD and the server wishes to make public why the
request has not been fulfilled, it SHOULD describe the reason for the
refusal in the entity. This status code is commonly used when the server
does not wish to reveal exactly why the request has been refused, or when no
other response is applicable.

If any one have solution plz let know.

Advance thanks
-- 
View this message in context: 
http://www.nabble.com/Exception-Forbidden-403-tp20155378p20155378.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Redirect to a page on a new browser window

2008-10-24 Thread Adriano dos Santos Fernandes
In a non-Wicket application, I had a page for report parameters editing 
and an execute button. Parameter validation was is Javascript, and I 
want my report opening on a new browser window. I done it with a form 
target=_blank tag.


Now with Wicket, I succeeded done the same thing but I have problem with 
the browser preventing the (bad, in its opinion) popup from opening.


My form has a feedbackpanel, so I believe I can't use the same 
technique. I have created an AjaxButton on it, and on its onSubmit I 
call target.appendJavascript(window.open(...)).


Do you see a way to do it without the browser interfere in the new 
window opening?


Thanks,


Adriano


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



Re: Exception Forbidden 403

2008-10-24 Thread Igor Vaynberg
what do your logs say?

-igor

On Fri, Oct 24, 2008 at 11:22 AM, Chinnari [EMAIL PROTECTED] wrote:

 hi All,

 When i deployed my application on tomcat it worked fine but when the same is
 deployed in weblogic 10.0 i got following exception:

 Error 403--Forbidden
 From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
 10.4.4 403 Forbidden

 The server understood the request, but is refusing to fulfill it.
 Authorization will not help and the request SHOULD NOT be repeated. If the
 request method was not HEAD and the server wishes to make public why the
 request has not been fulfilled, it SHOULD describe the reason for the
 refusal in the entity. This status code is commonly used when the server
 does not wish to reveal exactly why the request has been refused, or when no
 other response is applicable.

 If any one have solution plz let know.

 Advance thanks
 --
 View this message in context: 
 http://www.nabble.com/Exception-Forbidden-403-tp20155378p20155378.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



Re: ajax does not work in IE6 when using domain name. but works with IP

2008-10-24 Thread vkoratek

I agree. I should have double checked prior to posting . I totally understand
your concerns about having duplicate threads about the same subject..



igor.vaynberg wrote:
 
 yeah? why did you not mention that in your email, and why did you
 start a new thread instead of continuing the existing one?
 
 -igor
 
 On Fri, Oct 24, 2008 at 10:44 AM, vkoratek [EMAIL PROTECTED] wrote:

 Igor:
 Yes this is the same issue as posted by Anna. but I am only writing this
 becos the suggestion of using on the home page,  getSession().bind() did
 not
 make the error  go away...

 we still see the js error of Inavlid Chracter line 2 . Ajax does not
 work.

 Any alternative suggestion is greatly appreciated.
 Thanks


 igor.vaynberg wrote:

 there is already a thread posted about this by atrout
 [EMAIL PROTECTED]. thanks for spamming the list.

 -igor

 On Fri, Oct 24, 2008 at 10:03 AM, vkoratek [EMAIL PROTECTED] wrote:

 website runs on apache+resin 3.1.5 and wicket 1.3.3. Load balancer
 exists.

 Specifics of the problem are-
 1. customer accesses the site from inside their company's network, have
 a
 problem.
 2. Customer uses IE6.
 3. Problem occurs when customer uses domain name.
 4. No problem seen when IP address of the website is used.
 5. Problem is that none of the ajax pieces works.  java  class throws
 an
 npe
 for AjaxRequestTarget object.

 When i view the source code, i do see these lines-
 script
 src=resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js
 type=text/javascript
 and
 script
 src=resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js
 type=text/javascript


 What is it that IE screws up when domain name is used vs using the IP
 address of either of the 2 prod servers?
 --
 View this message in context:
 http://www.nabble.com/ajax-does-not-work-in-IE6-when-using-domain-name.-but-works-with-IP-tp20153993p20153993.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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




 --
 View this message in context:
 http://www.nabble.com/ajax-does-not-work-in-IE6-when-using-domain-name.-but-works-with-IP-tp20153993p20154669.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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


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

-- 
View this message in context: 
http://www.nabble.com/ajax-does-not-work-in-IE6-when-using-domain-name.-but-works-with-IP-tp20153993p20155575.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



RE: Wicket modals are not working in IE8 and Google chrome browsers

2008-10-24 Thread Anirban Basak
My query was can anybody help me out to make the wicket modals work in IE8? 

Personally I don't like IE but people already started using IE8.


Warm Regards,
Anirban Basak
Ph : 91 33 2357 7177 Extn: 277


-Original Message-
From: Matej Knopp [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 24, 2008 11:22 PM
To: users@wicket.apache.org
Subject: Re: Wicket modals are not working in IE8 and Google chrome browsers

With IE8? That's a bad joke. The browser is nowhere near being usable
even in beta2.

-Matej

2008/10/24 Anirban Basak [EMAIL PROTECTED]:
 Hi,



 I'm using wicket for last 5+ months in my current project. We are planning
 to go live by mid Nov with a beta version. Yesterday our client came up
with
 a strange complain, wicket modals, we are currently using for pop-ups, are
 not at all working in IE8 and Google chrome browsers. So, I verified it
and
 yes, modals are not really opening up! I know both are still in beta
stage,
 but is there any patch/work around ?



 Google chrome we can ignore right now but probably can't bypass IE8 as new
 Vista Laptops ship with IE8 (as client told us. Not verified yet though)





 Warm Regards,

 Anirban Basak

 Ph : 91 33 2357 7177 Extn: 277







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

No virus found in this incoming message.
Checked by AVG - http://www.avg.com 
Version: 8.0.175 / Virus Database: 270.8.2/1743 - Release Date: 10/24/2008
8:33 AM

No virus found in this outgoing message.
Checked by AVG - http://www.avg.com 
Version: 8.0.175 / Virus Database: 270.8.3/1744 - Release Date: 10/24/2008
6:08 PM


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