Re: Wicket Focus Policy

2009-02-24 Thread Scott Swank
The chief problem in constructing pages with a consistent tabindex is
that you must:

1. Know from which parent component you are basing your numbering.
2. Handle ajax insertions of of components within your current
tabindex strategy.

Our current code has edge conditions where it fails, and is on our
short list of areas where we need  a redesign.  I am happy to work
with anyone on creating a more robust solution.  Does anyone know how
or whether any other web frameworks implement a tabindex strategy?

Scott


On Mon, Feb 23, 2009 at 10:20 AM, Martin Makundi
martin.maku...@koodaripalvelut.com wrote:
 Here are some more scientific thoughts about it:

 http://www.mail-archive.com/wicket-u...@lists.sourceforge.net/msg26372.html

 2009/2/23 alexander.elsholz alexander.elsh...@widas.de:

 hi,

 where is the difference?

 yes, the html attribute tabindex helps to define a focus-policy. so i can
 define a default policy and update the attribute with an ajax behavior.

 i think a problem is the amount of updated components, when tabindices
 changed because of business logic. her i could play with the index range
 0-32767.

 i try to implement a panel-based strategy and present the result in this
 list.

 thanks alex


 Martin Makundi wrote:

 Do yu mean really focus or html tabindex?

 **
 Martin

 2009/2/23 alexander.elsholz alexander.elsh...@widas.de:

 Hi,

 had somebody implement a focuspolicy in wicket such as swings
 focustraversalpolicy?

 the policy should be analyzed in browser by default(a sorted list of
 wicket-ids) because of performance. In some cases we need business-code
 to
 evaluate next component. in this case we pass the determination via
 ajax-callback (getNextWicketComponentID) to server-business code

 Had somebody implemented this?
 Are ther some tips, how to implement this policy myself?

 thanks a lot alex
 --
 View this message in context:
 http://www.nabble.com/Wicket-Focus-Policy-tp22165578p22165578.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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




 --
 View this message in context: 
 http://www.nabble.com/Wicket-Focus-Policy-tp22165578p22166754.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



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



Invalidating Markup Cache for external page templates

2009-02-24 Thread Markus Strickler


Hi-

I'm currently implementing a way to load page templates provided from  
a CMS that exports the statically to the file system.
The loading part itself already works fine, now I'm looking for a good  
way to refresh the markup cache, if the template files have changed.
Before I roll my own solution I was wondering if I can somehow use the  
wicket internal mechanisms used for development mode.


Thanks for any insights,

-markus



This message was sent using IMP, the Internet Messaging Program.


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


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



Application.CONFIGURATION

2009-02-24 Thread Eyal Golan
Hi,
It's been a long time since I've written in this mailing list.

Here's my question:
I was looking for a way to set the mode to DEVELOPMENT in the Jetty starter
while setting DEPLOYMENT in the web.xml.
I encountered the following thread:
http://www.nabble.com/dummy-question%2C-how-to-set-wicket-in-Deloyment-mode--td13364304.html#a13364498

In there there is this line:
System.setProperty(wicket.configuration, development);

I am using Wicket 1.3.4
Wicket Application class has a static filed called CONFIGURATION, which is
without the 'wicket' part.

Why doesn't it have a static 'wicket.configuration' ?
Wouldn't it be better?

Thanks

Eyal Golan
egola...@gmail.com

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

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


Re: Application.CONFIGURATION

2009-02-24 Thread James Carman
If you're using Spring, you can set up your application instance in
your spring context and then use a PropertyPlaceholderConfigurer to
substitute in what you want.  Wicketopia's archetype uses this method
(along with Maven profiles to choose which property files to include).


On Tue, Feb 24, 2009 at 7:35 AM, Eyal Golan egola...@gmail.com wrote:
 Hi,
 It's been a long time since I've written in this mailing list.

 Here's my question:
 I was looking for a way to set the mode to DEVELOPMENT in the Jetty starter
 while setting DEPLOYMENT in the web.xml.
 I encountered the following thread:
 http://www.nabble.com/dummy-question%2C-how-to-set-wicket-in-Deloyment-mode--td13364304.html#a13364498

 In there there is this line:
 System.setProperty(wicket.configuration, development);

 I am using Wicket 1.3.4
 Wicket Application class has a static filed called CONFIGURATION, which is
 without the 'wicket' part.

 Why doesn't it have a static 'wicket.configuration' ?
 Wouldn't it be better?

 Thanks

 Eyal Golan
 egola...@gmail.com

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

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


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



Re: What IDE best fits with Wicket?

2009-02-24 Thread Marcelo Morales
I am a NetBeans user, and I have been for a long time. The maven
integration in NetBeans is excelent.
Works with profiles, downloads sources and javadoc, quickstart is
right there when creating a new project, code-completes the pom.xml
including dependency names and keywords (like compile or runtime),
hyperlinks the urls on the pom, has builtin macros for common tasks
like adding a new dependency, excluding a transitive dependency, you
can edit the settings.xml from whithin the IDE, you can browse the
sources on the SCM system of any dependency (when properly defined),
etc.
Just a couple of months ago the wicket plugin was the cause of
uncomfortable bugs on NetBeans. They were corrected but I've never
gave it another shot. It provides templates for pages, borders, and
panels. It can parse a html to find wicket components.

Hope it helps.

2009/2/23 Pierre Goupil goupilpie...@gmail.com:
 +1, I like Wicket Bench. And with M2Eclipse, you have the full sources 
 JavaDoc just by adding Wicket as a dependency, which is very convenient. But
 don't expect Wicket Bench to do too much, it's just a small, useful tool.

 Pierre


 Hi, I use Eclipse with Wicket Bench plugin and it works very fine.

 --
 Sans amis était le grand maître des mondes,
 Eprouvait manque, ce pour quoi il créa les esprits,
 Miroirs bienveillants de sa béatitude.
 Mais au vrai, il ne trouva aucun égal,
 Du calice du royaume total des âmes
 Ecume jusqu'à lui l'infinité.

 (Schiller, l'amitié)




-- 
Marcelo Morales

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



Re: How exactly does RestartResponseAtInterceptPageException work?

2009-02-24 Thread Martijn Dashorst
The problem with returning to the original request is that it can be
anything, including a post. While this is an interesting idea, I think
there are hairy issues to be resolved before this can become in a
workable state. Currently Wicket doesn't support it.

Hairy stuff:
 - retaining post data (for how long?)
 - retaining multi-part post (for how long?)
 - ajax request... how can you return to that?
 - resource request... how can you return to that?

etc.

I do like the idea, it is almost continuation support...

Martijn

On Thu, Feb 19, 2009 at 5:59 AM, David Leangen wic...@leangen.net wrote:

 Jeremy,

 Thank you for this.

 To my knowledge, the onClick will not be rerun.

 Thank you.

 I was not able to find any doc about this anywhere, and I'm not sure
 what the designer's intentions were.

 How were you able to find this out?


 I would do getPage() in that onClick and send them to
 the page (passing the getPage()) that does
 something, then send them back after doing some work.  When they click on
 the link again, in theory, token shouldn't be null again...

 Thanks for the suggestion. That won't exactly work with the flow of my 
 processes (the example code I gave was very much simplified), but at least 
 you confirmed that the onClick() does not get rerun, so I can adjust 
 accordingly.

 Thank you!

 =David




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





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

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



Re: Application.CONFIGURATION

2009-02-24 Thread Marcelo Morales
I am using tomcat. I just append -Dwicket.configuration=development on
the start script. Perhaps you can append it to the jetty start as
well.

On Tue, Feb 24, 2009 at 8:35 AM, Eyal Golan egola...@gmail.com wrote:
 Hi,
 It's been a long time since I've written in this mailing list.

 Here's my question:
 I was looking for a way to set the mode to DEVELOPMENT in the Jetty starter
 while setting DEPLOYMENT in the web.xml.
 I encountered the following thread:
 http://www.nabble.com/dummy-question%2C-how-to-set-wicket-in-Deloyment-mode--td13364304.html#a13364498

 In there there is this line:
 System.setProperty(wicket.configuration, development);

 I am using Wicket 1.3.4
 Wicket Application class has a static filed called CONFIGURATION, which is
 without the 'wicket' part.

 Why doesn't it have a static 'wicket.configuration' ?
 Wouldn't it be better?

 Thanks

 Eyal Golan
 egola...@gmail.com

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

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




-- 
Marcelo Morales

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



Re: subdomains and setting up WebSession

2009-02-24 Thread Bert
Sorry for stepping in here, but this interest me too ;)

do you map these different domains to different databases,
but using only one application deployment?

if so, i would like to know how you did this...

thanks

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



wicket-spring classpath issue

2009-02-24 Thread Alex Parvulescu
Hello,

I have a problem with the wicket - spring integration in wicket 1.4 rc2 , i
think its similar to https://issues.apache.org/jira/browse/WICKET-1848

The use case is like this :

I have 2 simple applications running in a jetty server.

To keep things simple , i added the spring and wicket libs to the common
classpath (so the following libs: cglib-nodep-2.1_3.jar,
commons-logging-1.1.jar , log4j-1.2.13.jar , slf4j-api-1.5.0.jar ,
slf4j-log4j12-1.5.0.jar , spring-2.5.6.jar , wicket-1.4-rc2.jar ,
wicket-ioc-1.4-rc2.jar , wicket-spring-1.4-rc2.jar  go into
$JETTY_HOME/lib/ext/extra-libs )
That helps me keep the size of the wars lower.

I think the problem is that by using this common classpath , the wicket
applications share -some- context.More to the point , I don't think that
LazyInitProxyFactory is thread safe , or maybe application safe. It appears
that bean ids from one application are visible in another application thats
deployed on the same server.

As an example : I can define a bean with the id 'simpleService' in the first
application. But when I try to define another bean in the second application
with the same id - still 'simpleService' but a different interface- I get
the following error:

GET, protocol = HTTP/1.1, requestURL = http://localhost:8080/, contentType =
null, contentLength = -1, contextPath = , pathInfo = null, requestURI = /,
servletPath = /, pathTranslated = null]
2009-02-24 15:08:04,803 ERROR org.apache.wicket.RequestCycle - Can't
instantiate page using constructor public com.asf.test2.web.Index()
org.apache.wicket.WicketRuntimeException: Can't instantiate page using
constructor public com.asf.test2.web.Index()
at
org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:172)
at
org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:58)
at
org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:299)
at
org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:321)
at
org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java:234)
at
org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)
at
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1192)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1271)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1370)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:501)
at
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:455)
at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:288)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:361)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417)
at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:199)
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:324)
at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:535)
at
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:865)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:538)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
at
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at
org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:153)
... 28 more
Caused by: java.lang.RuntimeException: error while injecting object [[Page
class = com.asf.test2.web.Index, id = 0, version = 0]] of type
[com.asf.test2.web.Index]
at org.apache.wicket.injection.Injector.inject(Injector.java:118)
at

Adding multiple ajax behaviour on same event

2009-02-24 Thread rag...@directi

I am using an AjaxLink which has a javascript for onclick event now i want to
add AjaxFormValidatingBehavior  to this link on the same event onclick
...i tried adding the same...but the link does not  work properly...i think
the actual javascript is replacedcan any one please help me how to do
this...

I had a look at IAjaxCallDecorator .. If i hv understood
IAjaxCallDecorator  correctly i can use it to append to the javascriptso
one way could be to have a look at the javascript generated by
AjaxFormValidatingBehavior   and append it to the javascript of
ajaxlink.but is there a cleaner way to do this..

Also found something called CompositeBehavior in
wicketstuff-core-misc.but it does not
seem to be workingmay be i din get how to use it..

this is what i m trying to do


new AjaxFallbackLink(checkAvailablity) {

   {
   final AjaxFormValidatingBehavior
ajaxFormValidatingBehavior = new AjaxFormValidatingBehavior(Form.this,
onclick) {
   @Override
   protected void onError(AjaxRequestTarget target) {
  // add components to target
   }

   @Override
   protected void onSubmit(AjaxRequestTarget target) {
// add components to target
   }
   };
   final CompositeBehavior behavior = new
CompositeBehavior(ajaxFormValidatingBehavior);
   add(behavior);
   }

   @Override
   public void onClick(final AjaxRequestTarget target) {
 // do smthing
   }
   }

But when i did this i got this exception trace...

Behavior [requestcy...@1feffac thread=btpool0-2] was not registered
with this component: [MarkupContainer [Component id =
checkAvailablity,..
at org.apache.wicket.RequestCycle.urlFor(RequestCycle.java:789)
at org.apache.wicket.Component.urlFor(Component.java:3124)
at
org.apache.wicket.behavior.AbstractAjaxBehavior.getCallbackUrl(AbstractAjaxBehavior.java:123)
at
org.apache.wicket.behavior.AbstractAjaxBehavior.getCallbackUrl(AbstractAjaxBehavior.java:92)
at
org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.getEventHandler(AjaxFormSubmitBehavior.java:98)
at
org.apache.wicket.ajax.AjaxEventBehavior.onComponentTag(AjaxEventBehavior.java:108)
at
org.apache.wicket.behavior.AbstractAjaxBehavior.onComponentTag(AbstractAjaxBehavior.java:132)
at
org.wicketstuff.misc.behaviors.CompositeBehavior.onComponentTag(CompositeBehavior.java:55)
at org.apache.wicket.Component.renderComponentTag(Component.java:3815)
at org.apache.wicket.Component.renderComponent(Component.java:2469)
at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1411)
at org.apache.wicket.Component.render(Component.java:2315)
at
org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1297)
at
org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1476)


Can anyone please help. I need to get this working asap.

-- 
View this message in context: 
http://www.nabble.com/Adding-multiple-ajax-behaviour-on-same-event-tp22181080p22181080.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



Modal Window inside a wizardstep

2009-02-24 Thread jensiator

Hi.
 I got a modal window with a form(a search function). The modal window is
opened from a wizard step that uses non ajax submitbuttons. When I press the
enter key inside my modal search form, the underlying wizard step submits.
Happens even when the AjaxButton is in focus in the modal window. Is there
anyway to suppress the key down event in the underlying wizard form?
Jens Alenius
-- 
View this message in context: 
http://www.nabble.com/Modal-Window-inside-a-wizardstep-tp22181084p22181084.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: Application.CONFIGURATION

2009-02-24 Thread Eyal Golan
Thanks Marcelo and James.

I still prefer the solution we have come to:
In the web.xml put deployment and in the Jetty plugin (StartWebServer) put
the development.

My question was why Application.java doesn't have 'wicket.configuration' as
a static field.
Wouldn't it be nice?

Eyal Golan
egola...@gmail.com

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

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


On Tue, Feb 24, 2009 at 3:08 PM, Marcelo Morales marcelomorales.name@
gmail.com wrote:

 I am using tomcat. I just append -Dwicket.configuration=development on
 the start script. Perhaps you can append it to the jetty start as
 well.

 On Tue, Feb 24, 2009 at 8:35 AM, Eyal Golan egola...@gmail.com wrote:
  Hi,
  It's been a long time since I've written in this mailing list.
 
  Here's my question:
  I was looking for a way to set the mode to DEVELOPMENT in the Jetty
 starter
  while setting DEPLOYMENT in the web.xml.
  I encountered the following thread:
 
 http://www.nabble.com/dummy-question%2C-how-to-set-wicket-in-Deloyment-mode--td13364304.html#a13364498
 
  In there there is this line:
  System.setProperty(wicket.configuration, development);
 
  I am using Wicket 1.3.4
  Wicket Application class has a static filed called CONFIGURATION, which
 is
  without the 'wicket' part.
 
  Why doesn't it have a static 'wicket.configuration' ?
  Wouldn't it be better?
 
  Thanks
 
  Eyal Golan
  egola...@gmail.com
 
  Visit: http://jvdrums.sourceforge.net/
  LinkedIn: http://www.linkedin.com/in/egolan74
 
  P  Save a tree. Please don't print this e-mail unless it's really
 necessary
 



 --
 Marcelo Morales

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




Re: How exactly does RestartResponseAtInterceptPageException work?

2009-02-24 Thread Thomas Mäder
I've been thinking about this in the past. Our use case was a post while not
logged in. I guess retaining post data is not really a problem. Since the
Restart...Exception is under user control, the application would be
responsible for not sending megs and megs. Since there is exactly one
request pending in this way, I don't see the problem.

as for the rest of the problems: redoing posts would go a long way

Thomas


On Tue, Feb 24, 2009 at 2:03 PM, Martijn Dashorst 
martijn.dasho...@gmail.com wrote:

 The problem with returning to the original request is that it can be
 anything, including a post. While this is an interesting idea, I think
 there are hairy issues to be resolved before this can become in a
 workable state. Currently Wicket doesn't support it.

 Hairy stuff:
  - retaining post data (for how long?)
  - retaining multi-part post (for how long?)
  - ajax request... how can you return to that?
  - resource request... how can you return to that?

 etc.

 I do like the idea, it is almost continuation support...

 Martijn

 On Thu, Feb 19, 2009 at 5:59 AM, David Leangen wic...@leangen.net wrote:
 
  Jeremy,
 
  Thank you for this.
 
  To my knowledge, the onClick will not be rerun.
 
  Thank you.
 
  I was not able to find any doc about this anywhere, and I'm not sure
  what the designer's intentions were.
 
  How were you able to find this out?
 
 
  I would do getPage() in that onClick and send them to
  the page (passing the getPage()) that does
  something, then send them back after doing some work.  When they click
 on
  the link again, in theory, token shouldn't be null again...
 
  Thanks for the suggestion. That won't exactly work with the flow of my
 processes (the example code I gave was very much simplified), but at least
 you confirmed that the onClick() does not get rerun, so I can adjust
 accordingly.
 
  Thank you!
 
  =David
 
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 



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

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




-- 
Wicket  Eclipse Consulting
www.devotek-it.ch
thomasmaeder.blogspot.com


Re: Invalidating Markup Cache for external page templates

2009-02-24 Thread Markus Strickler

OK,

after some source code research it seems to boil down to the question:
Can I safely use ModificationWatcher in a live environment?

And is there a way to make it watch only certain resources, so that it  
doesn't have to check all the resources that cannot change anyway?


Thanks,

-markus

Zitat von Markus Strickler mar...@braindump.ms:



Hi-

I'm currently implementing a way to load page templates provided  
from a CMS that exports the statically to the file system.
The loading part itself already works fine, now I'm looking for a  
good way to refresh the markup cache, if the template files have  
changed.
Before I roll my own solution I was wondering if I can somehow use  
the wicket internal mechanisms used for development mode.


Thanks for any insights,

-markus



This message was sent using IMP, the Internet Messaging Program.


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


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







This message was sent using IMP, the Internet Messaging Program.

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


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



Re: wicket-spring classpath issue

2009-02-24 Thread John Krasnay
IMHO sharing JARs across J2EE apps is not worth the trouble.

- it messes up some JARs (commons-logging is a classic example)

- it forces you to keep your dependent JAR versions in sync across
  applications. This is particularly important in an enterprise
  environment where changing a dependent JAR version may force an
  additional QA cycle.

- it complicates deployment, since you have to remember to put any new
  dependent JARs in the app-server's lib directory instead of just
  dropping the WAR in place.

If you're like me, the memory allocated to the JVM is in the hundreds of
megs, so an additional few megs in the WARs is simply not worth the
effort.

jk

On Tue, Feb 24, 2009 at 04:00:58PM +0200, Alex Parvulescu wrote:
 Hello,
 
 I have a problem with the wicket - spring integration in wicket 1.4 rc2 , i
 think its similar to https://issues.apache.org/jira/browse/WICKET-1848
 
 The use case is like this :
 
 I have 2 simple applications running in a jetty server.
 
 To keep things simple , i added the spring and wicket libs to the common
 classpath (so the following libs: cglib-nodep-2.1_3.jar,
 commons-logging-1.1.jar , log4j-1.2.13.jar , slf4j-api-1.5.0.jar ,
 slf4j-log4j12-1.5.0.jar , spring-2.5.6.jar , wicket-1.4-rc2.jar ,
 wicket-ioc-1.4-rc2.jar , wicket-spring-1.4-rc2.jar  go into
 $JETTY_HOME/lib/ext/extra-libs )
 That helps me keep the size of the wars lower.
 
 I think the problem is that by using this common classpath , the wicket
 applications share -some- context.More to the point , I don't think that
 LazyInitProxyFactory is thread safe , or maybe application safe. It appears
 that bean ids from one application are visible in another application thats
 deployed on the same server.
 

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



Re: Invalidating Markup Cache for external page templates

2009-02-24 Thread Igor Vaynberg
see IMarkupCacheKeyProvider, you can let pages that load markup from
the filesystem implement this.

-igor

On Tue, Feb 24, 2009 at 3:57 AM, Markus Strickler mar...@braindump.ms wrote:

 Hi-

 I'm currently implementing a way to load page templates provided from a CMS
 that exports the statically to the file system.
 The loading part itself already works fine, now I'm looking for a good way
 to refresh the markup cache, if the template files have changed.
 Before I roll my own solution I was wondering if I can somehow use the
 wicket internal mechanisms used for development mode.

 Thanks for any insights,

 -markus


 
 This message was sent using IMP, the Internet Messaging Program.


 --
 This message has been scanned for viruses and
 dangerous content by MailScanner, and is
 believed to be clean.


 -
 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: What IDE best fits with Wicket?

2009-02-24 Thread Brill Pappin
I should add something about the Eclipse maven plugins... don't go for  
the official eclipse Q4 plugin... use the Maven Integration 4  
Eclipse plugin (and actually the development version if your jiggy  
with it, it works and gets updated/fixed way more often).


If your on Netbeans, I think Maven will generate Netbeans project  
files for you as well (it will do so for eclipse), so you could  
actually flip back and forth if you wanted.


- Brill Pappin

On 23-Feb-09, at 5:19 PM, Pierre Goupil wrote:

+1, I like Wicket Bench. And with M2Eclipse, you have the full  
sources 
JavaDoc just by adding Wicket as a dependency, which is very  
convenient. But
don't expect Wicket Bench to do too much, it's just a small, useful  
tool.


Pierre



Hi, I use Eclipse with Wicket Bench plugin and it works very fine.


--
Sans amis était le grand maître des mondes,
Eprouvait manque, ce pour quoi il créa les esprits,
Miroirs bienveillants de sa béatitude.
Mais au vrai, il ne trouva aucun égal,
Du calice du royaume total des âmes
Ecume jusqu'à lui l'infinité.

(Schiller, l'amitié)



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



Re: What IDE best fits with Wicket?

2009-02-24 Thread Brill Pappin

Oh nice...
I was just thinking that it would be nice to have a plugin that would  
rename the html files when i renamed the class... I hadn't tried  
Wicket Bench yet...


Guess what I'm doing today?

- Brill

On 23-Feb-09, at 5:40 PM, Vit Rozkovec wrote:

But in the eclipse version 3.4 when renaming java file, WicketBench  
stopped renaming for me html and css files with the same name as the  
java file, which is a bit pity.


Vitek

Pierre Goupil wrote:
+1, I like Wicket Bench. And with M2Eclipse, you have the full  
sources 
JavaDoc just by adding Wicket as a dependency, which is very  
convenient. But
don't expect Wicket Bench to do too much, it's just a small, useful  
tool.


Pierre




Hi, I use Eclipse with Wicket Bench plugin and it works very fine.







-
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: Application.CONFIGURATION

2009-02-24 Thread Brill Pappin
IMO I like it the way it is because it makes it very simple to change  
it at runtime... in your case you simply run jety, adding a param tot  
eh comamnd line: eg.


java -Dwicket.configuration=deployment com.jetty.Start

I can do that easily at any time and reconfigure things on various  
servers to get what I need... if I did that in code, I'd still have to  
have some sort of switch to put it onto dev or prod mode... so why  
bother?


- Brill Pappin

On 24-Feb-09, at 7:35 AM, Eyal Golan wrote:


Hi,
It's been a long time since I've written in this mailing list.

Here's my question:
I was looking for a way to set the mode to DEVELOPMENT in the Jetty  
starter

while setting DEPLOYMENT in the web.xml.
I encountered the following thread:
http://www.nabble.com/dummy-question%2C-how-to-set-wicket-in-Deloyment-mode--td13364304.html#a13364498

In there there is this line:
System.setProperty(wicket.configuration, development);

I am using Wicket 1.3.4
Wicket Application class has a static filed called CONFIGURATION,  
which is

without the 'wicket' part.

Why doesn't it have a static 'wicket.configuration' ?
Wouldn't it be better?

Thanks

Eyal Golan
egola...@gmail.com

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

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



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



Re: Application.CONFIGURATION

2009-02-24 Thread Brill Pappin
Already answered the static field thing... but just curious why you  
think its better to have modify your source tree just to switch from  
dev to prod?
Wouldn't your dev/qa/deploy cycle be simpler if you didn't have to  
modify the source?


- Brill pappin


On 24-Feb-09, at 10:49 AM, Eyal Golan wrote:


Thanks Marcelo and James.

I still prefer the solution we have come to:
In the web.xml put deployment and in the Jetty plugin  
(StartWebServer) put

the development.

My question was why Application.java doesn't have  
'wicket.configuration' as

a static field.
Wouldn't it be nice?

Eyal Golan
egola...@gmail.com

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

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



On Tue, Feb 24, 2009 at 3:08 PM, Marcelo Morales marcelomorales.name@
gmail.com wrote:

I am using tomcat. I just append -Dwicket.configuration=development  
on

the start script. Perhaps you can append it to the jetty start as
well.

On Tue, Feb 24, 2009 at 8:35 AM, Eyal Golan egola...@gmail.com  
wrote:

Hi,
It's been a long time since I've written in this mailing list.

Here's my question:
I was looking for a way to set the mode to DEVELOPMENT in the Jetty

starter

while setting DEPLOYMENT in the web.xml.
I encountered the following thread:


http://www.nabble.com/dummy-question%2C-how-to-set-wicket-in-Deloyment-mode--td13364304.html#a13364498


In there there is this line:
System.setProperty(wicket.configuration, development);

I am using Wicket 1.3.4
Wicket Application class has a static filed called CONFIGURATION,  
which

is

without the 'wicket' part.

Why doesn't it have a static 'wicket.configuration' ?
Wouldn't it be better?

Thanks

Eyal Golan
egola...@gmail.com

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

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

necessary






--
Marcelo Morales

-
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: Application.CONFIGURATION

2009-02-24 Thread Igor Vaynberg
On Tue, Feb 24, 2009 at 7:49 AM, Eyal Golan egola...@gmail.com wrote:
 My question was why Application.java doesn't have 'wicket.configuration' as
 a static field.
 Wouldn't it be nice?

no, it wouldnt be nice. why would you have a name of a *system
property* defined as a public field? the usecase is not that someone
will do system.setproperty, the usecase is that someone will do
-Dprop=foo. even if we did have it defined it would be private static.

-igor



 Eyal Golan
 egola...@gmail.com

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

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


 On Tue, Feb 24, 2009 at 3:08 PM, Marcelo Morales marcelomorales.name@
 gmail.com wrote:

 I am using tomcat. I just append -Dwicket.configuration=development on
 the start script. Perhaps you can append it to the jetty start as
 well.

 On Tue, Feb 24, 2009 at 8:35 AM, Eyal Golan egola...@gmail.com wrote:
  Hi,
  It's been a long time since I've written in this mailing list.
 
  Here's my question:
  I was looking for a way to set the mode to DEVELOPMENT in the Jetty
 starter
  while setting DEPLOYMENT in the web.xml.
  I encountered the following thread:
 
 http://www.nabble.com/dummy-question%2C-how-to-set-wicket-in-Deloyment-mode--td13364304.html#a13364498
 
  In there there is this line:
  System.setProperty(wicket.configuration, development);
 
  I am using Wicket 1.3.4
  Wicket Application class has a static filed called CONFIGURATION, which
 is
  without the 'wicket' part.
 
  Why doesn't it have a static 'wicket.configuration' ?
  Wouldn't it be better?
 
  Thanks
 
  Eyal Golan
  egola...@gmail.com
 
  Visit: http://jvdrums.sourceforge.net/
  LinkedIn: http://www.linkedin.com/in/egolan74
 
  P  Save a tree. Please don't print this e-mail unless it's really
 necessary
 



 --
 Marcelo Morales

 -
 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: Application.CONFIGURATION

2009-02-24 Thread Eyal Golan
Brill,
What I did is exactly so we don't need to change the source for dev / prod
environments.
When we develop we use the jetty plugin so we set hard-coded the environment
to DEVELOPMENT.
The production is a WAR (actually an EAR) file.
So the web.xml has configuration set to deployment.

That way we don't need to worry.

Igor:
got your point ...


Eyal Golan
egola...@gmail.com

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

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


On Tue, Feb 24, 2009 at 7:03 PM, Brill Pappin br...@pappin.ca wrote:

 Already answered the static field thing... but just curious why you think
 its better to have modify your source tree just to switch from dev to prod?
 Wouldn't your dev/qa/deploy cycle be simpler if you didn't have to modify
 the source?

 - Brill pappin



 On 24-Feb-09, at 10:49 AM, Eyal Golan wrote:

  Thanks Marcelo and James.

 I still prefer the solution we have come to:
 In the web.xml put deployment and in the Jetty plugin (StartWebServer) put
 the development.

 My question was why Application.java doesn't have 'wicket.configuration'
 as
 a static field.
 Wouldn't it be nice?

 Eyal Golan
 egola...@gmail.com

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

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


 On Tue, Feb 24, 2009 at 3:08 PM, Marcelo Morales marcelomorales.name@
 gmail.com wrote:

  I am using tomcat. I just append -Dwicket.configuration=development on
 the start script. Perhaps you can append it to the jetty start as
 well.

 On Tue, Feb 24, 2009 at 8:35 AM, Eyal Golan egola...@gmail.com wrote:

 Hi,
 It's been a long time since I've written in this mailing list.

 Here's my question:
 I was looking for a way to set the mode to DEVELOPMENT in the Jetty

 starter

 while setting DEPLOYMENT in the web.xml.
 I encountered the following thread:


 http://www.nabble.com/dummy-question%2C-how-to-set-wicket-in-Deloyment-mode--td13364304.html#a13364498


 In there there is this line:
 System.setProperty(wicket.configuration, development);

 I am using Wicket 1.3.4
 Wicket Application class has a static filed called CONFIGURATION, which

 is

 without the 'wicket' part.

 Why doesn't it have a static 'wicket.configuration' ?
 Wouldn't it be better?

 Thanks

 Eyal Golan
 egola...@gmail.com

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

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

 necessary





 --
 Marcelo Morales

 -
 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: What IDE best fits with Wicket?

2009-02-24 Thread Martijn Dashorst
m2eclipse is absolutely worthless for anything beyond a quickstart. It
is constantly reparsing poms, grinding eclipse to a halt. It failed to
generate the right project dependencies for our multimodule project
that consists of 2 multimodule child projects. It failed miserably to
uninstall, needing me to axe my eclipse installation.

In short: my experience (and that of my co-workers) with m2eclipse is
that it is far from ready for prime time.

Martijn

On Tue, Feb 24, 2009 at 5:55 PM, Brill Pappin br...@pappin.ca wrote:
 I should add something about the Eclipse maven plugins... don't go for the
 official eclipse Q4 plugin... use the Maven Integration 4 Eclipse plugin
 (and actually the development version if your jiggy with it, it works and
 gets updated/fixed way more often).

 If your on Netbeans, I think Maven will generate Netbeans project files for
 you as well (it will do so for eclipse), so you could actually flip back and
 forth if you wanted.

 - Brill Pappin

 On 23-Feb-09, at 5:19 PM, Pierre Goupil wrote:

 +1, I like Wicket Bench. And with M2Eclipse, you have the full sources 
 JavaDoc just by adding Wicket as a dependency, which is very convenient.
 But
 don't expect Wicket Bench to do too much, it's just a small, useful tool.

 Pierre


 Hi, I use Eclipse with Wicket Bench plugin and it works very fine.

 --
 Sans amis était le grand maître des mondes,
 Eprouvait manque, ce pour quoi il créa les esprits,
 Miroirs bienveillants de sa béatitude.
 Mais au vrai, il ne trouva aucun égal,
 Du calice du royaume total des âmes
 Ecume jusqu'à lui l'infinité.

 (Schiller, l'amitié)


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





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

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



Re: What IDE best fits with Wicket?

2009-02-24 Thread James Carman
+1!  We had an awful lot of trouble getting it to work for us.

On Tue, Feb 24, 2009 at 12:38 PM, Martijn Dashorst
martijn.dasho...@gmail.com wrote:
 m2eclipse is absolutely worthless for anything beyond a quickstart. It
 is constantly reparsing poms, grinding eclipse to a halt. It failed to
 generate the right project dependencies for our multimodule project
 that consists of 2 multimodule child projects. It failed miserably to
 uninstall, needing me to axe my eclipse installation.

 In short: my experience (and that of my co-workers) with m2eclipse is
 that it is far from ready for prime time.

 Martijn

 On Tue, Feb 24, 2009 at 5:55 PM, Brill Pappin br...@pappin.ca wrote:
 I should add something about the Eclipse maven plugins... don't go for the
 official eclipse Q4 plugin... use the Maven Integration 4 Eclipse plugin
 (and actually the development version if your jiggy with it, it works and
 gets updated/fixed way more often).

 If your on Netbeans, I think Maven will generate Netbeans project files for
 you as well (it will do so for eclipse), so you could actually flip back and
 forth if you wanted.

 - Brill Pappin

 On 23-Feb-09, at 5:19 PM, Pierre Goupil wrote:

 +1, I like Wicket Bench. And with M2Eclipse, you have the full sources 
 JavaDoc just by adding Wicket as a dependency, which is very convenient.
 But
 don't expect Wicket Bench to do too much, it's just a small, useful tool.

 Pierre


 Hi, I use Eclipse with Wicket Bench plugin and it works very fine.

 --
 Sans amis était le grand maître des mondes,
 Eprouvait manque, ce pour quoi il créa les esprits,
 Miroirs bienveillants de sa béatitude.
 Mais au vrai, il ne trouva aucun égal,
 Du calice du royaume total des âmes
 Ecume jusqu'à lui l'infinité.

 (Schiller, l'amitié)


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





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

 -
 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: Invalidating Markup Cache for external page templates

2009-02-24 Thread Markus Strickler

Hi-

thanks for your reply.
I'm not quite sure how IMarkupCacheKeyProvider fits in here. I'm  
actually looking for a way to invalidate the cache, in case the markup  
has changed.


Thanks,

-markus

Zitat von Igor Vaynberg igor.vaynb...@gmail.com:


see IMarkupCacheKeyProvider, you can let pages that load markup from
the filesystem implement this.

-igor

On Tue, Feb 24, 2009 at 3:57 AM, Markus Strickler  
mar...@braindump.ms wrote:


Hi-

I'm currently implementing a way to load page templates provided from a CMS
that exports the statically to the file system.
The loading part itself already works fine, now I'm looking for a good way
to refresh the markup cache, if the template files have changed.
Before I roll my own solution I was wondering if I can somehow use the
wicket internal mechanisms used for development mode.

Thanks for any insights,

-markus



This message was sent using IMP, the Internet Messaging Program.


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


-
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


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.







This message was sent using IMP, the Internet Messaging Program.

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


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



Re: Invalidating Markup Cache for external page templates

2009-02-24 Thread Igor Vaynberg
well you can create a markup cache key that is based on the
lastmodified date of the file that contains the markup.

-igor

On Tue, Feb 24, 2009 at 9:53 AM, Markus Strickler mar...@braindump.ms wrote:
 Hi-

 thanks for your reply.
 I'm not quite sure how IMarkupCacheKeyProvider fits in here. I'm actually
 looking for a way to invalidate the cache, in case the markup has changed.

 Thanks,

 -markus

 Zitat von Igor Vaynberg igor.vaynb...@gmail.com:

 see IMarkupCacheKeyProvider, you can let pages that load markup from
 the filesystem implement this.

 -igor

 On Tue, Feb 24, 2009 at 3:57 AM, Markus Strickler mar...@braindump.ms
 wrote:

 Hi-

 I'm currently implementing a way to load page templates provided from a
 CMS
 that exports the statically to the file system.
 The loading part itself already works fine, now I'm looking for a good
 way
 to refresh the markup cache, if the template files have changed.
 Before I roll my own solution I was wondering if I can somehow use the
 wicket internal mechanisms used for development mode.

 Thanks for any insights,

 -markus


 
 This message was sent using IMP, the Internet Messaging Program.


 --
 This message has been scanned for viruses and
 dangerous content by MailScanner, and is
 believed to be clean.


 -
 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


 --
 This message has been scanned for viruses and
 dangerous content by MailScanner, and is
 believed to be clean.





 
 This message was sent using IMP, the Internet Messaging Program.

 --
 This message has been scanned for viruses and
 dangerous content by MailScanner, and is
 believed to be clean.


 -
 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: column width ajustable table

2009-02-24 Thread PY

The inmethod Datagrid has this functionality. ( adjustable column width)


miro wrote:
 
 Are there any adjustable tables in the sense adjust width of the column, 
 provided by wicket, an example is Sonatype Nexus Repository manager 
 

-- 
View this message in context: 
http://www.nabble.com/column-width-ajustable-table-tp22168813p22187193.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: What IDE best fits with Wicket?

2009-02-24 Thread Martin Makundi
The codehaus eclipse plugin has worked quite ok for us, but we didn't
dare to upgrade from Eclipse 3.1 ;) It didn't seem to work in others.

**
Martin

2009/2/24 James Carman jcar...@carmanconsulting.com:
 +1!  We had an awful lot of trouble getting it to work for us.

 On Tue, Feb 24, 2009 at 12:38 PM, Martijn Dashorst
 martijn.dasho...@gmail.com wrote:
 m2eclipse is absolutely worthless for anything beyond a quickstart. It
 is constantly reparsing poms, grinding eclipse to a halt. It failed to
 generate the right project dependencies for our multimodule project
 that consists of 2 multimodule child projects. It failed miserably to
 uninstall, needing me to axe my eclipse installation.

 In short: my experience (and that of my co-workers) with m2eclipse is
 that it is far from ready for prime time.

 Martijn

 On Tue, Feb 24, 2009 at 5:55 PM, Brill Pappin br...@pappin.ca wrote:
 I should add something about the Eclipse maven plugins... don't go for the
 official eclipse Q4 plugin... use the Maven Integration 4 Eclipse plugin
 (and actually the development version if your jiggy with it, it works and
 gets updated/fixed way more often).

 If your on Netbeans, I think Maven will generate Netbeans project files for
 you as well (it will do so for eclipse), so you could actually flip back and
 forth if you wanted.

 - Brill Pappin

 On 23-Feb-09, at 5:19 PM, Pierre Goupil wrote:

 +1, I like Wicket Bench. And with M2Eclipse, you have the full sources 
 JavaDoc just by adding Wicket as a dependency, which is very convenient.
 But
 don't expect Wicket Bench to do too much, it's just a small, useful tool.

 Pierre


 Hi, I use Eclipse with Wicket Bench plugin and it works very fine.

 --
 Sans amis était le grand maître des mondes,
 Eprouvait manque, ce pour quoi il créa les esprits,
 Miroirs bienveillants de sa béatitude.
 Mais au vrai, il ne trouva aucun égal,
 Du calice du royaume total des âmes
 Ecume jusqu'à lui l'infinité.

 (Schiller, l'amitié)


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





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

 -
 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: What IDE best fits with Wicket?

2009-02-24 Thread Marcelo Morales
On Tue, Feb 24, 2009 at 12:55 PM, Brill Pappin br...@pappin.ca wrote:
 If your on Netbeans, I think Maven will generate Netbeans project files for
 you as well (it will do so for eclipse), so you could actually flip back and
 forth if you wanted.

Netbeans does NOT need any other project files. It just need the pom.xml.
After personalizing, you'll might find a couple of extra files like
nbactions.xml, profiles.xml, that you can safely ignore on your SCM.
You can checkout the wicket source from SVN and just open it up with
netbeans. Nothing else is necessary

-- 
Marcelo Morale

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



Re: What IDE best fits with Wicket?

2009-02-24 Thread Maarten Bosteels
IDEA users, don't be shy ! ;-)

Probably nobody dared to mention it because it's not free.
But guess what. It is free for Open Source development (and a personal
license costs only 225 euro)

I think IDEA is really fantastic.
It has great maven support out-of-the-box, it will also download sources and
javadocs based on your dependencies.
And there's a nice plugin for Wicket: http://code.google.com/p/wicketforge/

My main downside for IDEA is that it still doesn't have proper multi-monitor
support.

To be honest, I haven't tried eclipse or netbeans in a while, so I can't
really compare.

Maarten

On Tue, Feb 24, 2009 at 6:45 PM, James Carman
jcar...@carmanconsulting.comwrote:

 +1!  We had an awful lot of trouble getting it to work for us.

 On Tue, Feb 24, 2009 at 12:38 PM, Martijn Dashorst
 martijn.dasho...@gmail.com wrote:
  m2eclipse is absolutely worthless for anything beyond a quickstart. It
  is constantly reparsing poms, grinding eclipse to a halt. It failed to
  generate the right project dependencies for our multimodule project
  that consists of 2 multimodule child projects. It failed miserably to
  uninstall, needing me to axe my eclipse installation.
 
  In short: my experience (and that of my co-workers) with m2eclipse is
  that it is far from ready for prime time.
 
  Martijn
 
  On Tue, Feb 24, 2009 at 5:55 PM, Brill Pappin br...@pappin.ca wrote:
  I should add something about the Eclipse maven plugins... don't go for
 the
  official eclipse Q4 plugin... use the Maven Integration 4 Eclipse
 plugin
  (and actually the development version if your jiggy with it, it works
 and
  gets updated/fixed way more often).
 
  If your on Netbeans, I think Maven will generate Netbeans project files
 for
  you as well (it will do so for eclipse), so you could actually flip back
 and
  forth if you wanted.
 
  - Brill Pappin
 
  On 23-Feb-09, at 5:19 PM, Pierre Goupil wrote:
 
  +1, I like Wicket Bench. And with M2Eclipse, you have the full sources
 
  JavaDoc just by adding Wicket as a dependency, which is very
 convenient.
  But
  don't expect Wicket Bench to do too much, it's just a small, useful
 tool.
 
  Pierre
 
 
  Hi, I use Eclipse with Wicket Bench plugin and it works very fine.
 
  --
  Sans amis était le grand maître des mondes,
  Eprouvait manque, ce pour quoi il créa les esprits,
  Miroirs bienveillants de sa béatitude.
  Mais au vrai, il ne trouva aucun égal,
  Du calice du royaume total des âmes
  Ecume jusqu'à lui l'infinité.
 
  (Schiller, l'amitié)
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 
  --
  Become a Wicket expert, learn from the best: http://wicketinaction.com
  Apache Wicket 1.3.5 is released
  Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
 
  -
  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: What IDE best fits with Wicket?

2009-02-24 Thread PY

+1 for IDEA.
The wicket plugin is really simple but allow to match up markup id from HTML
to Java code.
Netbeans is cool too.


Maarten Bosteels wrote:
 
 IDEA users, don't be shy ! ;-)
 
 Probably nobody dared to mention it because it's not free.
 But guess what. It is free for Open Source development (and a personal
 license costs only 225 euro)
 
 I think IDEA is really fantastic.
 It has great maven support out-of-the-box, it will also download sources
 and
 javadocs based on your dependencies.
 And there's a nice plugin for Wicket:
 http://code.google.com/p/wicketforge/
 
 My main downside for IDEA is that it still doesn't have proper
 multi-monitor
 support.
 
 To be honest, I haven't tried eclipse or netbeans in a while, so I can't
 really compare.
 
 Maarten
 
 On Tue, Feb 24, 2009 at 6:45 PM, James Carman
 jcar...@carmanconsulting.comwrote:
 
 +1!  We had an awful lot of trouble getting it to work for us.

 On Tue, Feb 24, 2009 at 12:38 PM, Martijn Dashorst
 martijn.dasho...@gmail.com wrote:
  m2eclipse is absolutely worthless for anything beyond a quickstart. It
  is constantly reparsing poms, grinding eclipse to a halt. It failed to
  generate the right project dependencies for our multimodule project
  that consists of 2 multimodule child projects. It failed miserably to
  uninstall, needing me to axe my eclipse installation.
 
  In short: my experience (and that of my co-workers) with m2eclipse is
  that it is far from ready for prime time.
 
  Martijn
 
  On Tue, Feb 24, 2009 at 5:55 PM, Brill Pappin br...@pappin.ca wrote:
  I should add something about the Eclipse maven plugins... don't go for
 the
  official eclipse Q4 plugin... use the Maven Integration 4 Eclipse
 plugin
  (and actually the development version if your jiggy with it, it works
 and
  gets updated/fixed way more often).
 
  If your on Netbeans, I think Maven will generate Netbeans project
 files
 for
  you as well (it will do so for eclipse), so you could actually flip
 back
 and
  forth if you wanted.
 
  - Brill Pappin
 
  On 23-Feb-09, at 5:19 PM, Pierre Goupil wrote:
 
  +1, I like Wicket Bench. And with M2Eclipse, you have the full
 sources
 
  JavaDoc just by adding Wicket as a dependency, which is very
 convenient.
  But
  don't expect Wicket Bench to do too much, it's just a small, useful
 tool.
 
  Pierre
 
 
  Hi, I use Eclipse with Wicket Bench plugin and it works very fine.
 
  --
  Sans amis était le grand maître des mondes,
  Eprouvait manque, ce pour quoi il créa les esprits,
  Miroirs bienveillants de sa béatitude.
  Mais au vrai, il ne trouva aucun égal,
  Du calice du royaume total des âmes
  Ecume jusqu'à lui l'infinité.
 
  (Schiller, l'amitié)
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 
  --
  Become a Wicket expert, learn from the best: http://wicketinaction.com
  Apache Wicket 1.3.5 is released
  Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 

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


 
 

-- 
View this message in context: 
http://www.nabble.com/What-IDE-best-fits-with-Wicket--tp22168133p22187465.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: What IDE best fits with Wicket?

2009-02-24 Thread Nick Heudecker
I didn't think IDEA users would fall for such an obvious trap.

On Tue, Feb 24, 2009 at 10:21 AM, PY postmas...@py-code.com wrote:


 +1 for IDEA.
 The wicket plugin is really simple but allow to match up markup id from
 HTML
 to Java code.
 Netbeans is cool too.


 Maarten Bosteels wrote:
 
  IDEA users, don't be shy ! ;-)
 
  Probably nobody dared to mention it because it's not free.
  But guess what. It is free for Open Source development (and a personal
  license costs only 225 euro)
 
  I think IDEA is really fantastic.
  It has great maven support out-of-the-box, it will also download sources
  and
  javadocs based on your dependencies.
  And there's a nice plugin for Wicket:
  http://code.google.com/p/wicketforge/
 
  My main downside for IDEA is that it still doesn't have proper
  multi-monitor
  support.
 
  To be honest, I haven't tried eclipse or netbeans in a while, so I can't
  really compare.
 
  Maarten
 
  On Tue, Feb 24, 2009 at 6:45 PM, James Carman
  jcar...@carmanconsulting.comwrote:
 
  +1!  We had an awful lot of trouble getting it to work for us.
 
  On Tue, Feb 24, 2009 at 12:38 PM, Martijn Dashorst
  martijn.dasho...@gmail.com wrote:
   m2eclipse is absolutely worthless for anything beyond a quickstart. It
   is constantly reparsing poms, grinding eclipse to a halt. It failed to
   generate the right project dependencies for our multimodule project
   that consists of 2 multimodule child projects. It failed miserably to
   uninstall, needing me to axe my eclipse installation.
  
   In short: my experience (and that of my co-workers) with m2eclipse is
   that it is far from ready for prime time.
  
   Martijn
  
   On Tue, Feb 24, 2009 at 5:55 PM, Brill Pappin br...@pappin.ca
 wrote:
   I should add something about the Eclipse maven plugins... don't go
 for
  the
   official eclipse Q4 plugin... use the Maven Integration 4 Eclipse
  plugin
   (and actually the development version if your jiggy with it, it works
  and
   gets updated/fixed way more often).
  
   If your on Netbeans, I think Maven will generate Netbeans project
  files
  for
   you as well (it will do so for eclipse), so you could actually flip
  back
  and
   forth if you wanted.
  
   - Brill Pappin
  
   On 23-Feb-09, at 5:19 PM, Pierre Goupil wrote:
  
   +1, I like Wicket Bench. And with M2Eclipse, you have the full
  sources
  
   JavaDoc just by adding Wicket as a dependency, which is very
  convenient.
   But
   don't expect Wicket Bench to do too much, it's just a small, useful
  tool.
  
   Pierre
  
  
   Hi, I use Eclipse with Wicket Bench plugin and it works very fine.
  
   --
   Sans amis était le grand maître des mondes,
   Eprouvait manque, ce pour quoi il créa les esprits,
   Miroirs bienveillants de sa béatitude.
   Mais au vrai, il ne trouva aucun égal,
   Du calice du royaume total des âmes
   Ecume jusqu'à lui l'infinité.
  
   (Schiller, l'amitié)
  
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
  
  
  
   --
   Become a Wicket expert, learn from the best:
 http://wicketinaction.com
   Apache Wicket 1.3.5 is released
   Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/What-IDE-best-fits-with-Wicket--tp22168133p22187465.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




-- 
Nick Heudecker
Professional Wicket Training  Consulting
http://www.systemmobile.com

Eventful - Intelligent Event Management
http://www.eventfulhq.com


Re: Application.CONFIGURATION

2009-02-24 Thread Marcelo Morales
On Tue, Feb 24, 2009 at 11:49 AM, Eyal Golan egola...@gmail.com wrote:
 Thanks Marcelo and James.

 I still prefer the solution we have come to:
 In the web.xml put deployment and in the Jetty plugin (StartWebServer) put
 the development.

Thats a best practice AFAIK

 My question was why Application.java doesn't have 'wicket.configuration' as
 a static field.
 Wouldn't it be nice?

What do you mean? there is!
  public static final String CONFIGURATION = configuration;
(Application.java line 119 on 1.3.5)

BTW, there is a getConfigurationType() method in WebApplication, which
should not be static.

-- 
Marcelo Morales

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



Dynamically changing CSS style attribute

2009-02-24 Thread Seven Corners

I have a control with a needle that moves.  The needle's value is continually
changing, so on a timer I ask the server its value and set its position with
the left CSS attribute, as in:

.Needle
{
  z-index: 1;
  width: 2px;  
  ...
  left: 20%;
}

I do have a bean that returns a percentage string for the value, and I have
verified I hit that getter when the update occurs.

It looks like I need to create an AttributeModifier for this object's style
attribute, and spit out ALL the style attributes in the model, not just the
value for the left style attribute.  I don't want to do that, because it
hard-codes irrelevant styles attributes and I might want to change them in
the future.

I could use an AttributeAppender, but wouldn't that just add a left to the
end of the style attribute, so that over time (the timer goes off every
minute), the style attribute would become a really long string?  Don't
want to do that either.

Is there some way just to tweak a single CSS attribute?

Thanks.
-- 
View this message in context: 
http://www.nabble.com/Dynamically-changing-CSS-style-attribute-tp22187801p22187801.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: Application.CONFIGURATION

2009-02-24 Thread Eyal Golan
 What do you mean? there is!
  public static final String CONFIGURATION = configuration;
 (Application.java line 119 on 1.3.5)

Exactly - I was looking for 'wicket.configuration' rather than just
'configuration.

 BTW, there is a getConfigurationType() method in WebApplication, which
 should not be static.

And we use this method ...


Eyal Golan
egola...@gmail.com

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

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


On Tue, Feb 24, 2009 at 8:31 PM, Marcelo Morales marcelomorales.name@
gmail.com wrote:

 On Tue, Feb 24, 2009 at 11:49 AM, Eyal Golan egola...@gmail.com wrote:
  Thanks Marcelo and James.
 
  I still prefer the solution we have come to:
  In the web.xml put deployment and in the Jetty plugin (StartWebServer)
 put
  the development.

 Thats a best practice AFAIK

  My question was why Application.java doesn't have 'wicket.configuration'
 as
  a static field.
  Wouldn't it be nice?

 What do you mean? there is!
  public static final String CONFIGURATION = configuration;
 (Application.java line 119 on 1.3.5)

 BTW, there is a getConfigurationType() method in WebApplication, which
 should not be static.

 --
 Marcelo Morales

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




Re: Dynamically changing CSS style attribute

2009-02-24 Thread Martin Makundi
You could use javaScript
http://docstore.mik.ua/orelly/webprog/jscript/ch18_03.htm

**
Martin

2009/2/24 Seven Corners shel...@blackwave.tv:

 I have a control with a needle that moves.  The needle's value is continually
 changing, so on a timer I ask the server its value and set its position with
 the left CSS attribute, as in:

 .Needle
 {
  z-index: 1;
  width: 2px;
  ...
  left: 20%;
 }

 I do have a bean that returns a percentage string for the value, and I have
 verified I hit that getter when the update occurs.

 It looks like I need to create an AttributeModifier for this object's style
 attribute, and spit out ALL the style attributes in the model, not just the
 value for the left style attribute.  I don't want to do that, because it
 hard-codes irrelevant styles attributes and I might want to change them in
 the future.

 I could use an AttributeAppender, but wouldn't that just add a left to the
 end of the style attribute, so that over time (the timer goes off every
 minute), the style attribute would become a really long string?  Don't
 want to do that either.

 Is there some way just to tweak a single CSS attribute?

 Thanks.
 --
 View this message in context: 
 http://www.nabble.com/Dynamically-changing-CSS-style-attribute-tp22187801p22187801.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



Re: Dynamically changing CSS style attribute

2009-02-24 Thread Martijn Reuvers
Hello,

As Martin says use javascript, if you really want it easy use jQuery,
you can do something like $('#myElem').css( ... ); and do the
calculation in javascript. Check the docs on the exact syntax
(docs.jquery.com),

Martijn

On Tue, Feb 24, 2009 at 8:00 PM, Martin Makundi
martin.maku...@koodaripalvelut.com wrote:
 You could use javaScript
 http://docstore.mik.ua/orelly/webprog/jscript/ch18_03.htm

 **
 Martin

 2009/2/24 Seven Corners shel...@blackwave.tv:

 I have a control with a needle that moves.  The needle's value is continually
 changing, so on a timer I ask the server its value and set its position with
 the left CSS attribute, as in:

 .Needle
 {
  z-index: 1;
  width: 2px;
  ...
  left: 20%;
 }

 I do have a bean that returns a percentage string for the value, and I have
 verified I hit that getter when the update occurs.

 It looks like I need to create an AttributeModifier for this object's style
 attribute, and spit out ALL the style attributes in the model, not just the
 value for the left style attribute.  I don't want to do that, because it
 hard-codes irrelevant styles attributes and I might want to change them in
 the future.

 I could use an AttributeAppender, but wouldn't that just add a left to the
 end of the style attribute, so that over time (the timer goes off every
 minute), the style attribute would become a really long string?  Don't
 want to do that either.

 Is there some way just to tweak a single CSS attribute?

 Thanks.
 --
 View this message in context: 
 http://www.nabble.com/Dynamically-changing-CSS-style-attribute-tp22187801p22187801.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



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



Re: Invalidating Markup Cache for external page templates

2009-02-24 Thread Markus Strickler

Hm, wouldn't this leave the old versions of the markup in the cache?
And also require a check of the last modified date every time a page  
gets created?
I was rather thinking of a timer based solution that checks the last  
modified date periodically and removes it from the cache if the file  
on disk is newer.


-markus

Am 24.02.2009 um 18:55 schrieb Igor Vaynberg:


well you can create a markup cache key that is based on the
lastmodified date of the file that contains the markup.

-igor

On Tue, Feb 24, 2009 at 9:53 AM, Markus Strickler  
mar...@braindump.ms wrote:

Hi-

thanks for your reply.
I'm not quite sure how IMarkupCacheKeyProvider fits in here. I'm  
actually
looking for a way to invalidate the cache, in case the markup has  
changed.


Thanks,

-markus

Zitat von Igor Vaynberg igor.vaynb...@gmail.com:


see IMarkupCacheKeyProvider, you can let pages that load markup from
the filesystem implement this.

-igor

On Tue, Feb 24, 2009 at 3:57 AM, Markus Strickler mar...@braindump.ms 


wrote:


Hi-

I'm currently implementing a way to load page templates provided  
from a

CMS
that exports the statically to the file system.
The loading part itself already works fine, now I'm looking for a  
good

way
to refresh the markup cache, if the template files have changed.
Before I roll my own solution I was wondering if I can somehow  
use the

wicket internal mechanisms used for development mode.

Thanks for any insights,

-markus



This message was sent using IMP, the Internet Messaging Program.


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


-
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


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.







This message was sent using IMP, the Internet Messaging Program.

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


-
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


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


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



Re: What IDE best fits with Wicket?

2009-02-24 Thread Thomas Mäder
The nice thing about wicket is that you don't need tools. It's just Java and
just HTML, so anything will do. discover the simplicity would be the
slogan ;-) (Cue video of good looking people enjoying the simple pleasures
of life)

Thomas

On Mon, Feb 23, 2009 at 8:19 PM, Eduardo Nunes esnu...@gmail.com wrote:

 Hello guys,

 I don't want to generate a flame war but I want to know your opinion
 about what IDE best fits with Wicket?

 The basic requirements are: free and the set of plug-ins free too.

 Thanks,
 Eduardo S. Nunes

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




-- 
Wicket  Eclipse Consulting
www.devotek-it.ch
thomasmaeder.blogspot.com


Re: Dynamically changing CSS style attribute

2009-02-24 Thread Sven Meier
Why not keep the fixed settings in a style class and just update the 
style attribute with the current value (utilizing an AttributeModifier)?


.Needle {
 z-index: 1;
 width: 2px;
 ...
}

span wicket:id=needle class=Needle style=left: 20%;/

Seven Corners schrieb:

I have a control with a needle that moves.  The needle's value is continually
changing, so on a timer I ask the server its value and set its position with
the left CSS attribute, as in:

.Needle
{
  z-index: 1;
  width: 2px;  
  ...

  left: 20%;
}

I do have a bean that returns a percentage string for the value, and I have
verified I hit that getter when the update occurs.

It looks like I need to create an AttributeModifier for this object's style
attribute, and spit out ALL the style attributes in the model, not just the
value for the left style attribute.  I don't want to do that, because it
hard-codes irrelevant styles attributes and I might want to change them in
the future.

I could use an AttributeAppender, but wouldn't that just add a left to the
end of the style attribute, so that over time (the timer goes off every
minute), the style attribute would become a really long string?  Don't
want to do that either.

Is there some way just to tweak a single CSS attribute?

Thanks.
  



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



Re: Dynamically changing CSS style attribute

2009-02-24 Thread Thomas Mäder
If I have understood Mr. Heptagon right the needle position depends on
server side state. What I would do is look at the source of
AttributeModifier and do something similar, but just take the existing style
attribute and replace the left value (using an regex or such). If
something usable results, you could share the joy (CssStyleModifier.java?)

Thomas

On Tue, Feb 24, 2009 at 8:21 PM, Martijn Reuvers
martijn.reuv...@gmail.comwrote:

 Hello,

 As Martin says use javascript, if you really want it easy use jQuery,
 you can do something like $('#myElem').css( ... ); and do the
 calculation in javascript. Check the docs on the exact syntax
 (docs.jquery.com),

 Martijn

 On Tue, Feb 24, 2009 at 8:00 PM, Martin Makundi
 martin.maku...@koodaripalvelut.com wrote:
  You could use javaScript
  http://docstore.mik.ua/orelly/webprog/jscript/ch18_03.htm
 
  **
  Martin
 
  2009/2/24 Seven Corners shel...@blackwave.tv:
 
  I have a control with a needle that moves.  The needle's value is
 continually
  changing, so on a timer I ask the server its value and set its position
 with
  the left CSS attribute, as in:
 
  .Needle
  {
   z-index: 1;
   width: 2px;
   ...
   left: 20%;
  }
 
  I do have a bean that returns a percentage string for the value, and I
 have
  verified I hit that getter when the update occurs.
 
  It looks like I need to create an AttributeModifier for this object's
 style
  attribute, and spit out ALL the style attributes in the model, not just
 the
  value for the left style attribute.  I don't want to do that, because
 it
  hard-codes irrelevant styles attributes and I might want to change them
 in
  the future.
 
  I could use an AttributeAppender, but wouldn't that just add a left to
 the
  end of the style attribute, so that over time (the timer goes off
 every
  minute), the style attribute would become a really long string?  Don't
  want to do that either.
 
  Is there some way just to tweak a single CSS attribute?
 
  Thanks.
  --
  View this message in context:
 http://www.nabble.com/Dynamically-changing-CSS-style-attribute-tp22187801p22187801.html
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 

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




-- 
Wicket  Eclipse Consulting
www.devotek-it.ch
thomasmaeder.blogspot.com


Re: Dynamically changing CSS style attribute

2009-02-24 Thread Seven Corners

Ooh, that's a good idea, although I just got the JavaScript working to do
exactly the same thing with an appendJavascript() call.


svenmeier wrote:
 
 Why not keep the fixed settings in a style class and just update the 
 style attribute with the current value (utilizing an AttributeModifier)?
 
 .Needle {
   z-index: 1;
   width: 2px;
   ...
 }
 
 
 
 Seven Corners schrieb:
 I have a control with a needle that moves.  The needle's value is
 continually
 changing, so on a timer I ask the server its value and set its position
 with
 the left CSS attribute, as in:

 .Needle
 {
   z-index: 1;
   width: 2px;  
   ...
   left: 20%;
 }

 I do have a bean that returns a percentage string for the value, and I
 have
 verified I hit that getter when the update occurs.

 It looks like I need to create an AttributeModifier for this object's
 style
 attribute, and spit out ALL the style attributes in the model, not just
 the
 value for the left style attribute.  I don't want to do that, because
 it
 hard-codes irrelevant styles attributes and I might want to change them
 in
 the future.

 I could use an AttributeAppender, but wouldn't that just add a left to
 the
 end of the style attribute, so that over time (the timer goes off every
 minute), the style attribute would become a really long string?  Don't
 want to do that either.

 Is there some way just to tweak a single CSS attribute?

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

-- 
View this message in context: 
http://www.nabble.com/Dynamically-changing-CSS-style-attribute-tp22187801p22189563.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: Dynamically changing CSS style attribute

2009-02-24 Thread Thomas Mäder
Damn! I'm alway surprised about the turnaround times on this mailing list!
One nice thing about Wicket is that there are few privileged parties.
Usuallly you have a default implementation for some interface, but the
default implementation doesn't enjoy any special privileges. Eat your own
dogfood!

Thomas


On Tue, Feb 24, 2009 at 9:09 PM, Seven Corners shel...@blackwave.tv wrote:


 Ooh, that's a good idea, although I just got the JavaScript working to do
 exactly the same thing with an appendJavascript() call.


 svenmeier wrote:
 
  Why not keep the fixed settings in a style class and just update the
  style attribute with the current value (utilizing an AttributeModifier)?
 
  .Needle {
z-index: 1;
width: 2px;
...
  }
 
 
 
  Seven Corners schrieb:
  I have a control with a needle that moves.  The needle's value is
  continually
  changing, so on a timer I ask the server its value and set its position
  with
  the left CSS attribute, as in:
 
  .Needle
  {
z-index: 1;
width: 2px;
...
left: 20%;
  }
 
  I do have a bean that returns a percentage string for the value, and I
  have
  verified I hit that getter when the update occurs.
 
  It looks like I need to create an AttributeModifier for this object's
  style
  attribute, and spit out ALL the style attributes in the model, not just
  the
  value for the left style attribute.  I don't want to do that, because
  it
  hard-codes irrelevant styles attributes and I might want to change them
  in
  the future.
 
  I could use an AttributeAppender, but wouldn't that just add a left to
  the
  end of the style attribute, so that over time (the timer goes off
 every
  minute), the style attribute would become a really long string?  Don't
  want to do that either.
 
  Is there some way just to tweak a single CSS attribute?
 
  Thanks.
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Dynamically-changing-CSS-style-attribute-tp22187801p22189563.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




-- 
Wicket  Eclipse Consulting
www.devotek-it.ch
thomasmaeder.blogspot.com


Re: Modal Window inside a wizardstep

2009-02-24 Thread Thomas Mäder
Is this browser dependent?

Thomas

On Tue, Feb 24, 2009 at 4:23 PM, jensiator jens.alen...@megasol.se wrote:


 Hi.
  I got a modal window with a form(a search function). The modal window is
 opened from a wizard step that uses non ajax submitbuttons. When I press
 the
 enter key inside my modal search form, the underlying wizard step submits.
 Happens even when the AjaxButton is in focus in the modal window. Is there
 anyway to suppress the key down event in the underlying wizard form?
 Jens Alenius
 --
 View this message in context:
 http://www.nabble.com/Modal-Window-inside-a-wizardstep-tp22181084p22181084.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




-- 
Wicket  Eclipse Consulting
www.devotek-it.ch
thomasmaeder.blogspot.com


Hold a reference to a Spring bean in Wicket components

2009-02-24 Thread Valentine2008

I am confused on this topic. 

1. In Wicket In Action, this is a statement in 13.2.3 Using proxies
instead of direct references:
Be careful never to hold a reference to a Spring bean in your components.

2. However, in 13.2.5 Wicket's Spring bean annotations, a reference to a
Spring bean in a Wicket component  is used: private DiscountsService
service;  in a subclass of Panel, which is a Wicket component.

If we could hold a reference to a Spring bean in Wicket components, we have
to make the Spring bean serializable? Say DiscountsService has to extend
from Serializable?

-Valentine
-- 
View this message in context: 
http://www.nabble.com/Hold-a-reference-to-a-Spring-bean-in-Wicket-components-tp22189818p22189818.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: subdomains and setting up WebSession

2009-02-24 Thread Nino Martinez
In my case no, since the whole idea are to share statistics. Only diff 
between the 2 are some forum rights and the small title...


If you want the same application to run with different databases I 
suggest you do one of these:


   * Custom request cycle (do something with your injection framework here)
   * Extend the filter from your injection framework

In addition to above you would need for apache http to set a special 
request header, like domain etc, so your request cycle or filter can 
pick it up...


Im not sure how much benefit there is, than running separate 
applications, based on the same code but with different configuration 
files and its a lot easier..


Theres lots of other options, I just dont have them on the tip of my 
tongue..


regards Nino

Bert wrote:

Sorry for stepping in here, but this interest me too ;)

do you map these different domains to different databases,
but using only one application deployment?

if so, i would like to know how you did this...

thanks

-
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: Hold a reference to a Spring bean in Wicket components

2009-02-24 Thread Jeremy Thomerson
This should help:

Searching: http://www.google.com/search?q=wicket+springbean
Leads you to this as the first result:
http://cwiki.apache.org/WICKET/spring.html

And this quote: Using annotation-based approach, you should not worry about
serialization/deserialization of the injected dependencies as this is
handled automatically, the dependencies are represented by serializable
proxies. Also, you should *not* mark you dependency properties transient
because if you do so, they won't be re-initialized upon deserialization.

So, the book is correct - the bean is not directly put into your component -
a serializable proxy is.

On Tue, Feb 24, 2009 at 2:24 PM, Valentine2008
valentine.wic...@gmail.comwrote:


 I am confused on this topic.

 1. In Wicket In Action, this is a statement in 13.2.3 Using proxies
 instead of direct references:
 Be careful never to hold a reference to a Spring bean in your components.

 2. However, in 13.2.5 Wicket's Spring bean annotations, a reference to a
 Spring bean in a Wicket component  is used: private DiscountsService
 service;  in a subclass of Panel, which is a Wicket component.

 If we could hold a reference to a Spring bean in Wicket components, we have
 to make the Spring bean serializable? Say DiscountsService has to extend
 from Serializable?

 -Valentine
 --
 View this message in context:
 http://www.nabble.com/Hold-a-reference-to-a-Spring-bean-in-Wicket-components-tp22189818p22189818.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




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


Re: column width ajustable table

2009-02-24 Thread miro

I searched google  inmethod Datagrid that did not help me  is there any
example with demo and code like other wicket examples if so please provide 
the link 

PY wrote:
 
 The inmethod Datagrid has this functionality. ( adjustable column width)
 
 
 miro wrote:
 
 Are there any adjustable tables in the sense adjust width of the column, 
 provided by wicket, an example is Sonatype Nexus Repository manager 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/column-width-ajustable-table-tp22168813p22190862.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: column width ajustable table

2009-02-24 Thread Maarten Bosteels
http://www.nabble.com/Re%3A-inmethod---grid-website--p20093086.html

On Tue, Feb 24, 2009 at 10:15 PM, miro miroconn...@yahoo.com wrote:


 I searched google  inmethod Datagrid that did not help me  is there any
 example with demo and code like other wicket examples if so please provide
 the link

 PY wrote:
 
  The inmethod Datagrid has this functionality. ( adjustable column width)
 
 
  miro wrote:
 
  Are there any adjustable tables in the sense adjust width of the column,
  provided by wicket, an example is Sonatype Nexus Repository manager
 
 
 

 --
 View this message in context:
 http://www.nabble.com/column-width-ajustable-table-tp22168813p22190862.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




[OT]User group in NYC/Long Island?

2009-02-24 Thread nino martinez wael
Hi Guys

Im going to a course next week in us, and were wondering is there are any
users around NYC preferably Long Island area?

I might have time in the evening to goto a WUG (wicket user group).. So?

I can talk about javascript integration etc with wicket, I guess that my
specialty.. If you cant talk about wicket, some JPA would be nice aswell :)

regards Nino


Re: Hold a reference to a Spring bean in Wicket components

2009-02-24 Thread Michael O'Cleirigh

Hi Valentine,

If you for example have spring inject a dependency into your 
WebApplication instance and then pass this into a page like:


 private SpringBean serviceReference;

public MyPage () {

   SpringBean bean = 
((MyApplication)Application.get()).getNonProxiedSpringBean();


   this.serviceReference = bean;

..
..

In this case you have just attached a spring bean that will when 
serialized will possibly cascade through the entire spring container.  
This what your #1 is saying is bad.


What the @SpringBean annotation does is to proxy (see LazyInitProxy) the 
real bean with a static method to lookup the ApplicationContext and the 
name or unique type of the bean.  It overrides the default serialization 
behavior so that only the small proxy part is really serialized not the 
spring bean itself.


If you make you spring injected beans not serializable (i.e. don't 
implement Serializable) then in development mode wicket will throw 
serialization exceptions that will let you trackdown and remove/properly 
proxy the injected resources.


Your #2 example looks to be using this annotation/proxy based approach 
which is why it is ok.


Also be aware that you can have problems if you inject a serivce 
(properly proxied) but then extract other beans or non serializable 
resources and attach them into the model of subcomponents.  
LoadableDetachableModels can be used to handle these types of 
serialization issues.


e.g.

@SpringBean (name=service)
private Serivce s;

public MyPage () {

   add (new DropDownChoice (choice, new Model 
(s.getInnerNonSerializableNonProxiedBean()), ...)




Mike
I am confused on this topic. 


1. In Wicket In Action, this is a statement in 13.2.3 Using proxies
instead of direct references:
Be careful never to hold a reference to a Spring bean in your components.

2. However, in 13.2.5 Wicket's Spring bean annotations, a reference to a
Spring bean in a Wicket component  is used: private DiscountsService
service;  in a subclass of Panel, which is a Wicket component.

If we could hold a reference to a Spring bean in Wicket components, we have
to make the Spring bean serializable? Say DiscountsService has to extend
from Serializable?

-Valentine
  



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



Re: LDM with Generics for DropDownChoice

2009-02-24 Thread Matthew Hanlon
I've always handled the typing problem with DropDownChoice and my list
models by just ignoring it and not applying type parameters to the
DropDownChoice.  This is because if I use the same IModelList? extends
Foo for a ListView, then I get an error in the ListView's constructor.
Is there a good solution for both, other that having two types of
IModelList? for the same object, one with the ? extends and one
without, or ignoring the type parameters on DropDownChoice, as I always have
in the past?

Regards,
Matthew.

On Mon, Feb 23, 2009 at 09:46, Matt Welch matt...@welchkin.net wrote:



 Martijn Dashorst wrote:
 
  Just to make sure I'm understanding this; yuo're saying I have to create
  a
  variable and then assign the variable instead of just being able to pass
  new AllUsersModel() to the DropDownChoice constructor?
 
  Nope, just change your model supertype from ListFoo to List? extends
  Foo
 
  That just seems odd.
 
  Welcome to Java generics...
 
 Thanks. It's working now.


private class AllUsersModel extends LoadableDetachableModelList?
 extends
 User{
protected ListUser load() {
return userService.findAllUsers();
}
}

 --
 View this message in context:
 http://www.nabble.com/LDM-with-Generics-for-DropDownChoice-tp22155211p22164005.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




-- 
Matthew Rollins Hanlon
http://squareoftwo.org
_
Hanlon's Razor:
Never attribute to malice that which can be adequately explained by
stupidity.
http://wikipedia.org/wiki/Hanlon's_razor


external image inside link

2009-02-24 Thread novotny

Hi all,

Apologies for such a  simple question but I couldn't find anything-- the
closet was http://cwiki.apache.org/WICKET/how-to-load-an-external-image.html
but it just didn't work for me.

Here's the html I want:

http://www.gohere.com  images/logo.gif  

I tried to do something like ExternalLink(link, http://www.gohere.com;, 
\images/logos/ ); but it escaped the img I tried to pass in as a label.

Thanks a bunch!

Jason
-- 
View this message in context: 
http://www.nabble.com/external-image-inside-link-tp22193003p22193003.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



external image inside link

2009-02-24 Thread novotny

Hi all,

Apologies for such a  simple question but I couldn't find anything-- the
closet was http://cwiki.apache.org/WICKET/how-to-load-an-external-image.html
but it just didn't work for me.

Here's the html I want:

lt;a href=http://www.gohere.comgt;lt;img
src=images/logo.gifgt;lt;/agt;

I tried to do something like ExternalLink(link, http://www.gohere.com;,
lt;img src=\images/logos/ + lender.getImageSrc() + \/gt;); but it
escaped the img I tried to pass in as a label.

Thanks a bunch!

Jason
-- 
View this message in context: 
http://www.nabble.com/external-image-inside-link-tp22193027p22193027.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



determine which form was submitted

2009-02-24 Thread Alexander Lohse

Hi,

I have two forms on one page and need to toggle visibility of a  
container depending on which form was submitted.


Is there a way to I find out which form was posted?

Thank you in advance or any help,

Alex
__

A designer knows he has achieved perfection not when there is nothing  
left to add,

but when there is nothing left to take away.
(Antoine de Saint Exupéry)
.

Alexander Lohse • Entwicklungsleitung  Projektmanagement
Tel +49 38374 752 11 • Fax +49 38374 752 23
http://www.humantouch.de

Human Touch Medienproduktion GmbH
Am See 1 • 17440 Klein Jasedow • Deutschland

Geschäftsführung:
Lara Mallien, Nele Hybsier, Alexander Lohse, Johannes Heimrath (Senior)
Handelsregister Stralsund • HRB 4192 • USt-IdNr. DE128367684


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



Re: external image inside link

2009-02-24 Thread Igor Vaynberg
the bottom of that page shows you how to embed an external image into
an external link.

-igor

On Tue, Feb 24, 2009 at 3:24 PM, novotny novo...@gridsphere.org wrote:

 Hi all,

 Apologies for such a  simple question but I couldn't find anything-- the
 closet was http://cwiki.apache.org/WICKET/how-to-load-an-external-image.html
 but it just didn't work for me.

 Here's the html I want:

 lt;a href=http://www.gohere.comgt;lt;img
 src=images/logo.gifgt;lt;/agt;

 I tried to do something like ExternalLink(link, http://www.gohere.com;,
 lt;img src=\images/logos/ + lender.getImageSrc() + \/gt;); but it
 escaped the img I tried to pass in as a label.

 Thanks a bunch!

 Jason
 --
 View this message in context: 
 http://www.nabble.com/external-image-inside-link-tp22193027p22193027.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



Re: external image inside link

2009-02-24 Thread novotny


That's exactly what I tried and I get 

WicketMessage: Expected close tag for 'lt;a wicket:id=bankURL href=#
target=_newgt;' Possible attempt to embed component(s) 'lt;img
wicket:id=bank alt= class=pic/gt;' in the body of this component
which discards its body

here's my java 
add(new ExternalLink(bankURL, lender.getLenderWebsite(),
lender.getLender()).add(new StaticImage(bank, images/logos/ +
lender.getImageSrc(), lender.getLender(;


and my html:
lt;a wicket:id=bankURL href=# target=_newgt;somewherelt;img
wicket:id=bank alt= class=pic/gt;lt;/agt;

Thanks, Jason


igor.vaynberg wrote:
 
 the bottom of that page shows you how to embed an external image into
 an external link.
 
 -igor
 
 On Tue, Feb 24, 2009 at 3:24 PM, novotny novo...@gridsphere.org wrote:

 Hi all,

 Apologies for such a  simple question but I couldn't find anything-- the
 closet was
 http://cwiki.apache.org/WICKET/how-to-load-an-external-image.html
 but it just didn't work for me.

 Here's the html I want:

 lt;a href=http://www.gohere.comgt;lt;img
 src=images/logo.gifgt;lt;/agt;

 I tried to do something like ExternalLink(link,
 http://www.gohere.com;,
 lt;img src=\images/logos/ + lender.getImageSrc() + \/gt;); but it
 escaped the img I tried to pass in as a label.

 Thanks a bunch!

 Jason
 --
 View this message in context:
 http://www.nabble.com/external-image-inside-link-tp22193027p22193027.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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


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

-- 
View this message in context: 
http://www.nabble.com/external-image-inside-link-tp22193027p22193550.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: external image inside link

2009-02-24 Thread Jeremy Thomerson
I think your problem is that in your long add() call, you are actually
adding the image to your outer container rather than the link.  The code is
formatted poorly in the email.  Try this:

ExternalLink link = new ExternalLink(..)
link.add(new StaticImage(..))
add(link);

On Tue, Feb 24, 2009 at 6:03 PM, novotny novo...@gridsphere.org wrote:



 That's exactly what I tried and I get

 WicketMessage: Expected close tag for 'lt;a wicket:id=bankURL href=#
 target=_newgt;' Possible attempt to embed component(s) 'lt;img
 wicket:id=bank alt= class=pic/gt;' in the body of this component
 which discards its body

 here's my java
 add(new ExternalLink(bankURL, lender.getLenderWebsite(),
 lender.getLender()).add(new StaticImage(bank, images/logos/ +
 lender.getImageSrc(), lender.getLender(;


 and my html:
 lt;a wicket:id=bankURL href=# target=_newgt;somewherelt;img
 wicket:id=bank alt= class=pic/gt;lt;/agt;

 Thanks, Jason


 igor.vaynberg wrote:
 
  the bottom of that page shows you how to embed an external image into
  an external link.
 
  -igor
 
  On Tue, Feb 24, 2009 at 3:24 PM, novotny novo...@gridsphere.org wrote:
 
  Hi all,
 
  Apologies for such a  simple question but I couldn't find anything-- the
  closet was
  http://cwiki.apache.org/WICKET/how-to-load-an-external-image.html
  but it just didn't work for me.
 
  Here's the html I want:
 
  lt;a href=http://www.gohere.comgt;lt;img
  src=images/logo.gifgt;lt;/agt;
 
  I tried to do something like ExternalLink(link,
  http://www.gohere.com;,
  lt;img src=\images/logos/ + lender.getImageSrc() + \/gt;); but
 it
  escaped the img I tried to pass in as a label.
 
  Thanks a bunch!
 
  Jason
  --
  View this message in context:
 
 http://www.nabble.com/external-image-inside-link-tp22193027p22193027.html
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

 --
 View this message in context:
 http://www.nabble.com/external-image-inside-link-tp22193027p22193550.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




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


Re: external image inside link

2009-02-24 Thread novotny

Thanks, however I still get the same error:

WicketMessage: Expected close tag for 'lt;a wicket:id=bankURL href=#
target=_newgt;' Possible attempt to embed component(s) 'lt;img
wicket:id=bank alt= class=pic/gt;' in the body of this component
which discards its body

and my code looks like:

ExternalLink link = new ExternalLink(bankURL, lender.getLenderWebsite(),
lender.getLender());
 StaticImage image = new StaticImage(bank, images/logos/ +
lender.getImageSrc(), lender.getLender());
 link.add(image);
 add(link);

Thanks, Jason



Jeremy Thomerson-5 wrote:
 
 I think your problem is that in your long add() call, you are actually
 adding the image to your outer container rather than the link.  The code
 is
 formatted poorly in the email.  Try this:
 
 ExternalLink link = new ExternalLink(..)
 link.add(new StaticImage(..))
 add(link);
 
 On Tue, Feb 24, 2009 at 6:03 PM, novotny novo...@gridsphere.org wrote:
 


 That's exactly what I tried and I get

 WicketMessage: Expected close tag for 'lt;a wicket:id=bankURL href=#
 target=_newgt;' Possible attempt to embed component(s) 'lt;img
 wicket:id=bank alt= class=pic/gt;' in the body of this component
 which discards its body

 here's my java
 add(new ExternalLink(bankURL, lender.getLenderWebsite(),
 lender.getLender()).add(new StaticImage(bank, images/logos/ +
 lender.getImageSrc(), lender.getLender(;


 and my html:
 lt;a wicket:id=bankURL href=# target=_newgt;somewherelt;img
 wicket:id=bank alt= class=pic/gt;lt;/agt;

 Thanks, Jason


 igor.vaynberg wrote:
 
  the bottom of that page shows you how to embed an external image into
  an external link.
 
  -igor
 
  On Tue, Feb 24, 2009 at 3:24 PM, novotny novo...@gridsphere.org
 wrote:
 
  Hi all,
 
  Apologies for such a  simple question but I couldn't find anything--
 the
  closet was
  http://cwiki.apache.org/WICKET/how-to-load-an-external-image.html
  but it just didn't work for me.
 
  Here's the html I want:
 
  lt;a href=http://www.gohere.comgt;lt;img
  src=images/logo.gifgt;lt;/agt;
 
  I tried to do something like ExternalLink(link,
  http://www.gohere.com;,
  lt;img src=\images/logos/ + lender.getImageSrc() + \/gt;); but
 it
  escaped the img I tried to pass in as a label.
 
  Thanks a bunch!
 
  Jason
  --
  View this message in context:
 
 http://www.nabble.com/external-image-inside-link-tp22193027p22193027.html
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

 --
 View this message in context:
 http://www.nabble.com/external-image-inside-link-tp22193027p22193550.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


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

-- 
View this message in context: 
http://www.nabble.com/external-image-inside-link-tp22193027p22193714.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: external image inside link

2009-02-24 Thread novotny


Hi

I am using import org.apache.wicket.markup.html.link.ExternalLink;

in my import but I do have a custom StaticImage class:

public class StaticImage extends WebComponent {

private String url;
private String alt;

public StaticImage(String id, String url, String alt) {
super(id);
this.url = url;
this.alt = alt;
}

protected void onComponentTag(ComponentTag tag) {
super.onComponentTag(tag);
checkComponentTag(tag, img);
tag.put(src, url);
tag.put(alt, alt);
}

}

Thanks again, Jason


Jeremy Thomerson-5 wrote:
 
 Wait - I just realized that your ExternalLink class is custom.  That's
 the
 culprit.  Show us the code.
 
 On Tue, Feb 24, 2009 at 6:15 PM, novotny novo...@gridsphere.org wrote:
 

 Thanks, however I still get the same error:

 WicketMessage: Expected close tag for 'lt;a wicket:id=bankURL href=#
 target=_newgt;' Possible attempt to embed component(s) 'lt;img
 wicket:id=bank alt= class=pic/gt;' in the body of this component
 which discards its body

 and my code looks like:

 ExternalLink link = new ExternalLink(bankURL,
 lender.getLenderWebsite(),
 lender.getLender());
  StaticImage image = new StaticImage(bank, images/logos/ +
 lender.getImageSrc(), lender.getLender());
  link.add(image);
  add(link);

 Thanks, Jason



 Jeremy Thomerson-5 wrote:
 
  I think your problem is that in your long add() call, you are actually
  adding the image to your outer container rather than the link.  The
 code
  is
  formatted poorly in the email.  Try this:
 
  ExternalLink link = new ExternalLink(..)
  link.add(new StaticImage(..))
  add(link);
 
  On Tue, Feb 24, 2009 at 6:03 PM, novotny novo...@gridsphere.org
 wrote:
 
 
 
  That's exactly what I tried and I get
 
  WicketMessage: Expected close tag for 'lt;a wicket:id=bankURL
 href=#
  target=_newgt;' Possible attempt to embed component(s) 'lt;img
  wicket:id=bank alt= class=pic/gt;' in the body of this
 component
  which discards its body
 
  here's my java
  add(new ExternalLink(bankURL, lender.getLenderWebsite(),
  lender.getLender()).add(new StaticImage(bank, images/logos/ +
  lender.getImageSrc(), lender.getLender(;
 
 
  and my html:
  lt;a wicket:id=bankURL href=# target=_newgt;somewherelt;img
  wicket:id=bank alt= class=pic/gt;lt;/agt;
 
  Thanks, Jason
 
 
  igor.vaynberg wrote:
  
   the bottom of that page shows you how to embed an external image
 into
   an external link.
  
   -igor
  
   On Tue, Feb 24, 2009 at 3:24 PM, novotny novo...@gridsphere.org
  wrote:
  
   Hi all,
  
   Apologies for such a  simple question but I couldn't find
 anything--
  the
   closet was
   http://cwiki.apache.org/WICKET/how-to-load-an-external-image.html
   but it just didn't work for me.
  
   Here's the html I want:
  
   lt;a href=http://www.gohere.comgt;lt;img
   src=images/logo.gifgt;lt;/agt;
  
   I tried to do something like ExternalLink(link,
   http://www.gohere.com;,
   lt;img src=\images/logos/ + lender.getImageSrc() + \/gt;);
 but
  it
   escaped the img I tried to pass in as a label.
  
   Thanks a bunch!
  
   Jason
   --
   View this message in context:
  
 
 http://www.nabble.com/external-image-inside-link-tp22193027p22193027.html
   Sent from the Wicket - User mailing list archive at Nabble.com.
  
  
  
 -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
  
  
 -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
  
 
  --
  View this message in context:
 
 http://www.nabble.com/external-image-inside-link-tp22193027p22193550.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
 
 
 
 
  --
  Jeremy Thomerson
  http://www.wickettraining.com
 
 

 --
 View this message in context:
 http://www.nabble.com/external-image-inside-link-tp22193027p22193714.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


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

-- 
View this message in context: 
http://www.nabble.com/external-image-inside-link-tp22193027p22194164.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: external image inside link

2009-02-24 Thread Jeremy Thomerson
Sorry, missed that - but found the issue - stop passing your link the label
- the link is trying to replace it's body with your label rather than the
markup you wrote.  Do this:

ExternalLink link = new ExternalLink(bankURL, lender.getWebsite());
StaticImage image = new StaticImage(bank, images/logos/ +
lender.getImageSrc(), lender.getLender());
link.add(image);
add(link);


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



 ExternalLink link = new ExternalLink(bankURL,
 lender.getLenderWebsite(),
 lender.getLender());
  StaticImage image = new StaticImage(bank, images/logos/ +
 lender.getImageSrc(), lender.getLender());
  link.add(image);
  add(link);

On Tue, Feb 24, 2009 at 7:00 PM, novotny novo...@gridsphere.org wrote:



 Hi

 I am using import org.apache.wicket.markup.html.link.ExternalLink;

 in my import but I do have a custom StaticImage class:

 public class StaticImage extends WebComponent {

private String url;
private String alt;

public StaticImage(String id, String url, String alt) {
super(id);
this.url = url;
this.alt = alt;
}

protected void onComponentTag(ComponentTag tag) {
super.onComponentTag(tag);
checkComponentTag(tag, img);
tag.put(src, url);
tag.put(alt, alt);
}

 }

 Thanks again, Jason


 Jeremy Thomerson-5 wrote:
 
  Wait - I just realized that your ExternalLink class is custom.  That's
  the
  culprit.  Show us the code.
 
  On Tue, Feb 24, 2009 at 6:15 PM, novotny novo...@gridsphere.org wrote:
 
 
  Thanks, however I still get the same error:
 
  WicketMessage: Expected close tag for 'lt;a wicket:id=bankURL
 href=#
  target=_newgt;' Possible attempt to embed component(s) 'lt;img
  wicket:id=bank alt= class=pic/gt;' in the body of this component
  which discards its body
 
  and my code looks like:
 
  ExternalLink link = new ExternalLink(bankURL,
  lender.getLenderWebsite(),
  lender.getLender());
   StaticImage image = new StaticImage(bank, images/logos/ +
  lender.getImageSrc(), lender.getLender());
   link.add(image);
   add(link);
 
  Thanks, Jason
 
 
 
  Jeremy Thomerson-5 wrote:
  
   I think your problem is that in your long add() call, you are actually
   adding the image to your outer container rather than the link.  The
  code
   is
   formatted poorly in the email.  Try this:
  
   ExternalLink link = new ExternalLink(..)
   link.add(new StaticImage(..))
   add(link);
  
   On Tue, Feb 24, 2009 at 6:03 PM, novotny novo...@gridsphere.org
  wrote:
  
  
  
   That's exactly what I tried and I get
  
   WicketMessage: Expected close tag for 'lt;a wicket:id=bankURL
  href=#
   target=_newgt;' Possible attempt to embed component(s) 'lt;img
   wicket:id=bank alt= class=pic/gt;' in the body of this
  component
   which discards its body
  
   here's my java
   add(new ExternalLink(bankURL, lender.getLenderWebsite(),
   lender.getLender()).add(new StaticImage(bank, images/logos/ +
   lender.getImageSrc(), lender.getLender(;
  
  
   and my html:
   lt;a wicket:id=bankURL href=# target=_newgt;somewherelt;img
   wicket:id=bank alt= class=pic/gt;lt;/agt;
  
   Thanks, Jason
  
  
   igor.vaynberg wrote:
   
the bottom of that page shows you how to embed an external image
  into
an external link.
   
-igor
   
On Tue, Feb 24, 2009 at 3:24 PM, novotny novo...@gridsphere.org
   wrote:
   
Hi all,
   
Apologies for such a  simple question but I couldn't find
  anything--
   the
closet was
http://cwiki.apache.org/WICKET/how-to-load-an-external-image.html
but it just didn't work for me.
   
Here's the html I want:
   
lt;a href=http://www.gohere.comgt;lt;img
src=images/logo.gifgt;lt;/agt;
   
I tried to do something like ExternalLink(link,
http://www.gohere.com;,
lt;img src=\images/logos/ + lender.getImageSrc() + \/gt;);
  but
   it
escaped the img I tried to pass in as a label.
   
Thanks a bunch!
   
Jason
--
View this message in context:
   
  
 
 http://www.nabble.com/external-image-inside-link-tp22193027p22193027.html
Sent from the Wicket - User mailing list archive at Nabble.com.
   
   
   
  -
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
   
   
   
   
  -
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
   
   
   
  
   --
   View this message in context:
  
 
 http://www.nabble.com/external-image-inside-link-tp22193027p22193550.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: 

Re: What IDE best fits with Wicket?

2009-02-24 Thread Eduardo Nunes
I deal directly with HTML coders and I want to bring to them an easy
of use project build / run. I don't want to be called every time a new
HTML join to the project team because he doesn't have the setup of the
project. I think that maven help me a lot with it but I'm a little bit
afraid of the build, for example:
A HTML coder change some HTML, he needs to re-build the entire system
to see the change, it isn't a good thing. Is it possible to define
something on maven to just copy the HTML files to the deployment
directory? I wondering to use ant as build because with it I have all
flexibility necessary to do this kind of thing.

What is your opinion?

Thanks,
Eduardo S. Nunes

On Tue, Feb 24, 2009 at 3:17 PM, Marcelo Morales
marcelomorales.n...@gmail.com wrote:
 On Tue, Feb 24, 2009 at 12:55 PM, Brill Pappin br...@pappin.ca wrote:
 If your on Netbeans, I think Maven will generate Netbeans project files for
 you as well (it will do so for eclipse), so you could actually flip back and
 forth if you wanted.

 Netbeans does NOT need any other project files. It just need the pom.xml.
 After personalizing, you'll might find a couple of extra files like
 nbactions.xml, profiles.xml, that you can safely ignore on your SCM.
 You can checkout the wicket source from SVN and just open it up with
 netbeans. Nothing else is necessary

 --
 Marcelo Morale

 -
 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: What IDE best fits with Wicket?

2009-02-24 Thread Marcelo Morales
Even NetBeans is not that straitforward, but it is less problematic
than eclipse IMHO.
There are ways to acomplish what you ask. NetBeans will copy content
under 'webapp/WEB-INF' to 'target' on changes, but not under 'java'.
Bad NetBeans Bad.
I will give it a shot in a couple of days and let you know.
Don't like ant, don't want to go back to ant, is too much programming
on xml for my taste. Suggest maven any day of the week.

On Tue, Feb 24, 2009 at 9:18 PM, Eduardo Nunes esnu...@gmail.com wrote:
 I deal directly with HTML coders and I want to bring to them an easy
 of use project build / run. I don't want to be called every time a new
 HTML join to the project team because he doesn't have the setup of the
 project. I think that maven help me a lot with it but I'm a little bit
 afraid of the build, for example:
 A HTML coder change some HTML, he needs to re-build the entire system
 to see the change, it isn't a good thing. Is it possible to define
 something on maven to just copy the HTML files to the deployment
 directory? I wondering to use ant as build because with it I have all
 flexibility necessary to do this kind of thing.

 What is your opinion?

 Thanks,
 Eduardo S. Nunes

 On Tue, Feb 24, 2009 at 3:17 PM, Marcelo Morales
 marcelomorales.n...@gmail.com wrote:
 On Tue, Feb 24, 2009 at 12:55 PM, Brill Pappin br...@pappin.ca wrote:
 If your on Netbeans, I think Maven will generate Netbeans project files for
 you as well (it will do so for eclipse), so you could actually flip back and
 forth if you wanted.

 Netbeans does NOT need any other project files. It just need the pom.xml.
 After personalizing, you'll might find a couple of extra files like
 nbactions.xml, profiles.xml, that you can safely ignore on your SCM.
 You can checkout the wicket source from SVN and just open it up with
 netbeans. Nothing else is necessary

 --
 Marcelo Morale

 -
 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





-- 
Marcelo Morales

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



Re: LDM with Generics for DropDownChoice

2009-02-24 Thread Timo Rantalaiho
On Tue, 24 Feb 2009, Matthew Hanlon wrote:
 I've always handled the typing problem with DropDownChoice and my list
 models by just ignoring it and not applying type parameters to the
 DropDownChoice.  This is because if I use the same IModelList? extends
 Foo for a ListView, then I get an error in the ListView's constructor.
 Is there a good solution for both, other that having two types of
 IModelList? for the same object, one with the ? extends and one
 without, or ignoring the type parameters on DropDownChoice, as I always have
 in the past?

Raw types shouldn't be used at all so we should find a 
better solution.

Based on this

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

I'd say that ListView is wrong here.

I created a new Jira issue on fixing that

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

and will do if there are no objections or better ideas. 

Best wishes,
Timo

-- 
Timo Rantalaiho   
Reaktor Innovations OyURL: http://www.ri.fi/ 

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



Re: external image inside link

2009-02-24 Thread Timo Rantalaiho
On Tue, 24 Feb 2009, novotny wrote:
 I tried to do something like ExternalLink(link, http://www.gohere.com;, 
 \images/logos/ ); but it escaped the img I tried to pass in as a label.

setEscapeModelStrings(false) ?

Best wishes,
Timo

-- 
Timo Rantalaiho   
Reaktor Innovations OyURL: http://www.ri.fi/ 

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



How to Show Error Of Page In Deployment MOde

2009-02-24 Thread carlo c

hi everyone,

I know that this might sound a little strange. but i need to be able to show
the error of 
the system even during deployment mode. I have to show them the stacktrace.

The Thing that's preventing us from using development mode is that the
application 
always gets an outofmemoryerror when deployed on websphere.

It just shwo internal error.

Is there a way that I can override this behavior?

carlo
-- 
View this message in context: 
http://www.nabble.com/How-to-Show-Error-Of-Page-In-Deployment-MOde-tp22196513p22196513.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



RE: How to Show Error Of Page In Deployment MOde

2009-02-24 Thread Heikki Uotinen
Maybe this helps

http://www.nabble.com/How-to-catch-the-error-in-custome-error-page--td9645296.html


-Heikki

-Original Message-
From: carlo c [mailto:carlo.camer...@gmail.com] 
Sent: 25. helmikuuta 2009 7:16
To: users@wicket.apache.org
Subject: How to Show Error Of Page In Deployment MOde


hi everyone,

I know that this might sound a little strange. but i need to be able to show
the error of 
the system even during deployment mode. I have to show them the stacktrace.

The Thing that's preventing us from using development mode is that the
application 
always gets an outofmemoryerror when deployed on websphere.

It just shwo internal error.

Is there a way that I can override this behavior?

carlo
-- 
View this message in context: 
http://www.nabble.com/How-to-Show-Error-Of-Page-In-Deployment-MOde-tp22196513p22196513.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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


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



Re: How to Show Error Of Page In Deployment MOde

2009-02-24 Thread Timo Rantalaiho
On Tue, 24 Feb 2009, carlo c wrote:
 I know that this might sound a little strange. but i need to be able to show
 the error of 
 the system even during deployment mode. I have to show them the stacktrace.

You should see the setting that does this and enable it
while staying in deployment mode as far as other settings
are considered.

I always look for them in the different ISettings or
something that Application class provides.

 The Thing that's preventing us from using development mode is that the
 application 
 always gets an outofmemoryerror when deployed on websphere.

Memory profile your application with a profiler.

Best wishes,
Timo


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



Re: Dojo Tooltip JS Error (And Mootips)

2009-02-24 Thread Nino Martinez
Bad it seem that we have a lot of clashes.. So the libs needs to be 
cleaned.. I know Jeremy has done an effort in wicket core by supplying a 
common js library..



TH Lim wrote:

Hi Nino,

I took your advice and tried mootips and prototips. Wicket's Prototips does
not work so well with IE8. I also tested IE8 with
http://www.nickstakenburg.com/projects/prototip/ and it didn't work either. 


I switched to mootips and recompiled my entire code based to
Wicket-1.4-SNAPSHOT. It works until you have Mootips and Lightbox components
together in the same page. Both components stopped to work (error messages
below). I have modified Wicketstuff-Lightbox-1.0.3.jar on my local copy to
work with Wicket-1.4.

Enumerable is not defined
http://localhost:8080/cat/resources/org.wicketstuff.lightbox.LightboxBehavior/resources/js/effects.js
Line 182

this.options is undefined
http://localhost:8080/cat/resources/org.wicketstuff.minis.mootipbehavior.MootipBehaviour/mootips.v1.11.js
Line 172

Thanks

/lim/

  



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



Re: Datatable Internationalization

2009-02-24 Thread Loic Descotte
Nobody knows how to do that?
In the source code i've found this comment :

The message can be overridden using the codeNavigatorLabel/code property
key, the default message is used is of the
 format codeShowing ${from} to ${to} of ${of}/code
So i guess it should work, i must have missed something...



On Mon, Feb 23, 2009 at 10:15 AM, Loic Descotte loic.desco...@gmail.comwrote:

 Hi all,
 I have a question about Wicket Datatable Component Internationalization.
 In the datatable, in don't find how to change the text Showing 1 to 10 of
 N in the navigation toolbar.

 The Datatable component is associated to a NavigatorToolBar component, wich
 is associated to a NavigatorLabel.
 I've found this code in the NavigatorLabel.java file :

 new StringResourceModel(NavigatorLabel, this,
 new ModelLabelModelObject(new LabelModelObject(table)),
 Showing ${from} to ${to} of ${of})

 I've tried to redefine NavigatorLabel in my properties files, but it
 does'nt work, the text the Showing 1 to 10 of N does'nt change.

 I've tried this :

 NavigatorLabel = Lignes ${from} à ${to} sur ${of}
 and

 NavigatorLabel = Lignes ${0} à ${1} sur ${2}

 Do anyone knows how to make this work?

 Thanks a lot

 --
 Loïc Descotte
 9 rue Sébastien Gryphe
 69007 Lyon

 06 23 23 36 80




-- 
Loïc Descotte
9 rue Sébastien Gryphe
69007 Lyon

06 23 23 36 80