Re: Image does not appears not always

2013-01-15 Thread Martin Grigorov
What do you see in the produced html ?


On Mon, Jan 14, 2013 at 11:45 PM, Delange delan...@telfort.nl wrote:

 I have a website where a user can upload images. On the first page, i
 always
 show one image on this home page

 Strange enough, mostly i can see the image but sometimes not.

 What could be the reason that no image is shown?


 @Html
 images/noimage.jpg


 @Directory structure
 wepapps
mywebsite
 design
 with more subdirectories, name = a number, contains images0
 WEB-INF


 @Java
 String filename = noimage.jpg;
 File[] files = getUploadFolder(design.getNumber()).listFiles();

 if (files != null  files.length  0) {
 filename  = files[0].getName();
 item.add( getImage( design.getNumber() + / + filename) );
 } else {
 item.add(new Image(image, new
 ContextRelativeResource(images/noimage.jpg)));
 }

 private Folder getUploadFolder(long designnumber) {
 String folderLocation = MyProperties.getImageLocation();
 Folder folder = new Folder(folderLocation+designnumber, );
 folder.mkdirs();
 logger.info(path=+folder.getAbsolutePath());
 File[] files = folder.getFiles();
 return  folder;
 }
 private Image getImage(String imageName){
 Image image =  new Image(image  , new ContextRelativeResource(
 /design/+imageName));
 return image;
 }



 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Image-does-not-appears-not-always-tp4655364.html
 Sent from the Users forum 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




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com http://jweekend.com/


Re: HttpsMapper broken with Mounted pages

2013-01-15 Thread Martin Grigorov
Hi,

Please create a ticket and attach your quickstart.
It will be good to fix this for 6.5.0 (scheduled for this Friday (Jan 18)).


On Tue, Jan 15, 2013 at 3:18 AM, Jeremy Levy jel...@gmail.com wrote:

 I believe I may have stumbled upon somewhat serious issue with 6.4.0 (and
 possibly earlier).  A page that is annotated with @RequiresHttps and is
 mounted with any encoding method, when requested directly, or linked to is
 not switched over to https. If the page is not specifically mounted it
 works as expected.

 I was able to recreate this in my application as well as in a standalone
 'quickstart' project.  As far as I could see
 HttpsMapper.getDesiredSchemeFor wasn't even being called for the mounted
 pages.

 I'll debug the issue tomorrow and submit a patch if I can figure it out,
 however I thought this was serious enough to bring up here right away.

 Jeremy

 --
 Jeremy Levy




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com http://jweekend.com/


Re: MounterMapper and optional parameters

2013-01-15 Thread Martin Grigorov
Hi,


On Tue, Jan 15, 2013 at 9:30 AM, Dirk Forchel dirk.forc...@exedio.comwrote:

 Hallo,
 I'd like to get an hint how to provide the following URLs. What is the
 preferred way to improve our existing URLs?
 We need search-friendly URLs by naming them with clear keywords.
 For example for product pages the current URL looks like:
 http://localhost:8080/product.html?product=1234
 This should be changed to be:
 http://localhost:8080/products/category-name/product-name-1234.html
 where the category-name and product-name part are optional. Only the ID
 (e.g. 1234) is an essential parameter.
 I know, that the MountedMapper introduced with Wicket 1.5 is smart enough
 to
 handle a mix of supported parameter types
 (https://cwiki.apache.org/WICKET/request-mapping.html).
 And I assume, that mounting the ProductPage could be the following way:

 addPage(/products/${category_name}/${product_name}/#{id},
 ProductPage.class)

 This uses a named parameter id and an optional named parameters
 category_name and product_name.


It is the opposite - ${} is mandatory and #{} is optional.



 I assume that the following pattern is not working (I did not try it):

 addPage(/products/${category_name}/${product_name}-#{id}.html,
 ProductPage.class)


I haven't tried such patterns so I'm not sure that it works or not.
The following will work for sure:
mountPage(/products/${category}/${product}, ProductPage.class)

${product} will contain both the name and the id, probably the extension
too, but you can split it manually.



 How would I provide such a pattern?




 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/MounterMapper-and-optional-parameters-tp4655372.html
 Sent from the Users forum 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




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com http://jweekend.com/


Re: Wicket getLocalizer().getString(.. Issue

2013-01-15 Thread vijay
Have already used the below code :

Application.getResourceSettings().getLocalizer().clearCache() 

But this doesn't work.

But don't have idea about second approach. 

Can u pls provide exact code segement that can be directly used in our
application to resolve this issue, that will be much useful.





--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-getLocalizer-getString-Issue-tp4655346p4655380.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Wicket getLocalizer().getString(.. Issue

2013-01-15 Thread Martin Grigorov
Hi,

Can you give more details what you have tried and what doesn't work ?
What do you try to accomplish too ?
Do you try to modify a resource bundle in production system ? Which
IStringResourceLoader impl you use to load this resource bundle ?

On Tue, Jan 15, 2013 at 11:47 AM, vijay sevijay@gmail.com wrote:

 Have already used the below code :

 Application.getResourceSettings().getLocalizer().clearCache()

 But this doesn't work.

 But don't have idea about second approach.

 Can u pls provide exact code segement that can be directly used in our
 application to resolve this issue, that will be much useful.





 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Wicket-getLocalizer-getString-Issue-tp4655346p4655380.html
 Sent from the Users forum 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




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com http://jweekend.com/


Re: MounterMapper and optional parameters

2013-01-15 Thread Martin Grigorov
On Tue, Jan 15, 2013 at 12:27 PM, Dirk Forchel dirk.forc...@exedio.comwrote:

 Thanks Igor.


Actually my name is Ivan! :-)



  It is the opposite - ${} is mandatory and #{} is optional.

 Yes, your are right.

  mountPage(/products/${category}/${product}, ProductPage.class)
 
  ${product} will contain both the name and the id, probably the extension
  too, but you can split it manually.

 What is the right place to split it up manually. I guess, the ProductPage
 itself.
 What about the IPageParametersEncoder? What is this interface for?

 And another question. Assuming I would have two different pages. The first
 one shows a list of products (ProductListPage) and the second one is the
 product detail page (ProductPage) itself.
 I would like, the following mapping:

 http://localhost:8080/products/ - ProductListPage without any parameter
 shows all products.
 http://localhost:8080/products/category/ - ProductListPage with optional
 named parameter category shows products of a specific category.
 http://localhost:8080/products/category/product - ProductPage with
 mandatory named parameter product shows the specific product.

 This is quite a common mapping for a product-category-hierarchy.
 How would the correct mapping look like?

 mountPage(/products/#{category}/, ProductListPage.class)
 mountPage(/products/#{category}/${product}, ProductPage.class)

 To be honest, I'm a little bit confused about the same path segments.



The simplest solution is to use:

#mountPage(/products/#{category}/#{product}, ProductsEntryPage.class);

class ProductsEntryPage extends WebPage {

   public ProductsEntryPage(PageParameters params) {
 category = params.get(category)
 product = params.get(product)

 WebPage toRender;
 if (hasCategory(category)) {
   if (hasProduct(product)) {
 toRender = new ProductPage(category, product);
   }
   else {
 toRender = new CategoryPage(category);
   }
 }
 else {
toRender = new ProductListPage();
 }
 throw new RestartResponseException(toRender);
   }
}





 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/MounterMapper-and-optional-parameters-tp4655372p4655382.html
 Sent from the Users forum 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




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com http://jweekend.com/


Re: MounterMapper and optional parameters

2013-01-15 Thread Dirk Forchel
Sorry for the Igor, Martin.
Anyway, thank you for your help.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/MounterMapper-and-optional-parameters-tp4655372p4655384.html
Sent from the Users forum 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



IE CSS engine doesn't support dynamically injected links in conditional comments

2013-01-15 Thread Marieke Vandamme
Hi, 

We use wicket 6.4.0 and as a result of WICKET-4894 we now get the following
message in our logfiles very often: IE CSS engine doesn't support
dynamically injected links in conditional comments.

I don't know how to solve this, since this is happening when adding a
component to the target.
This component renders a ResourceReference in the renderHead. 
This ResourceReference depends on (with the getDependencies function) a
CssUrlReferenceHeaderItem with the condition 'IE'.
= This last one is causing the problem

Thanks for any help on how I should solve this.
Kind Regards, Marieke




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/IE-CSS-engine-doesn-t-support-dynamically-injected-links-in-conditional-comments-tp4655395.html
Sent from the Users forum 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: Multiple select drop down in Wicket

2013-01-15 Thread Andrew Geery
Yes, it is possible.  See https://github.com/ivaynberg/wicket-select2
(http://ivaynberg.github.com/select2/ is the standalone UI piece, if
you're interested).  And it is available via Maven.

Andrew

On Mon, Jan 14, 2013 at 9:17 PM, kshitiz k.agarw...@gmail.com wrote:
 Actually ListMultipleChoice is not that user friendly as compare to multi
 select drop down. Thats why I preferred the later one. Is there any way to
 implement the same in Wicket?



 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Multiple-select-drop-down-in-Wicket-tp4655355p4655368.html
 Sent from the Users forum 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



Fwd: Wicket Contractor

2013-01-15 Thread Tom Norton
This position is only available onsite at our headquarters in Elyria, Ohio.

Sorry for not mentioning this earlier,
Tom

-- Forwarded message --
From: Tom Norton tomwnorton.mailing.li...@gmail.com
Date: Tue, Jan 15, 2013 at 9:17 AM
Subject: Re: Wicket Contractor
To: ced...@gatay.fr, s...@chare.eu


Would either of you be willing to move to Ohio?

Thanks,
Tom


On Tue, Jan 15, 2013 at 2:31 AM, Cedric Gatay ced...@gatay.fr wrote:

 Hi,
 I think I can respond to your requirements, however, I am currently based
 in Tours, France and I do not wish to relocate. Does your company allows
 telecommuting ?
 Regards,
 Cedric


 On Mon, Jan 14, 2013 at 5:26 PM, Tom Norton 
 tomwnorton.mailing.li...@gmail.com wrote:

 To anyone that is interested:

 My company (The Ridge Tool Company) is looking for a contractor
 experienced
 with Wicket, Spring, and TDD.

 The Ridge Tool Company is an Emerson-owned company that creates
 high-quality tools.  Our team owns all development of all java web
 applications used by our suppliers, distributors and Ridge Tool employees.

 Most of our work consists of new development with Wicket 1.5, Hibernate
 3.6, and Spring 3.1.  Once in a while we need to work on our legacy code,
 which is a mixture of old-style JSP and Struts 1.x.  Our development
 Server
 is WebLogic 11g and our Staging/Production servers are OAS 10g.

 Thanks,
 *Tom Norton | Web Application Programmer*
 *Ridge Tool Company | 400 Clark St. | Elyria, OH 44035*





Re: HttpsMapper broken with Mounted pages

2013-01-15 Thread Jeremy Levy
Thanks-  Done.

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


On Tue, Jan 15, 2013 at 3:05 AM, Martin Grigorov mgrigo...@apache.orgwrote:

 Hi,

 Please create a ticket and attach your quickstart.
 It will be good to fix this for 6.5.0 (scheduled for this Friday (Jan 18)).


 On Tue, Jan 15, 2013 at 3:18 AM, Jeremy Levy jel...@gmail.com wrote:

  I believe I may have stumbled upon somewhat serious issue with 6.4.0 (and
  possibly earlier).  A page that is annotated with @RequiresHttps and is
  mounted with any encoding method, when requested directly, or linked to
 is
  not switched over to https. If the page is not specifically mounted it
  works as expected.
 
  I was able to recreate this in my application as well as in a standalone
  'quickstart' project.  As far as I could see
  HttpsMapper.getDesiredSchemeFor wasn't even being called for the mounted
  pages.
 
  I'll debug the issue tomorrow and submit a patch if I can figure it out,
  however I thought this was serious enough to bring up here right away.
 
  Jeremy
 
  --
  Jeremy Levy
 



 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com http://jweekend.com/




-- 
Jeremy Levy


Re: Problem with Wicket distribution

2013-01-15 Thread e . spyrop . w
Thank you for all your efforts.

Martijn Dashorst martijn.dasho...@gmail.com wrote on 14/01/2013 10:05:01 
AM:

 Martijn Dashorst martijn.dasho...@gmail.com 
 14/01/2013 10:05 AM
 
 Please respond to
 users@wicket.apache.org
 
 To
 
 users@wicket.apache.org, 
 
 cc
 
 Subject
 
 Re: Problem with Wicket distribution
 
 This is due to a change in release architecture where we have to push
 our releases through svnpubsub. We migrated our infrastructure, but
 not the latest releases. I'll upload those now.
 
 Martijn
 


Make URLs (i.e. mount paths) case insensitive for Wicket 6

2013-01-15 Thread Yuci G EBI

Hello,

Wonder how to make URLs (i.e. mount paths) case insensitive for Wicket 
6? For example, make these two URLs do the same thing: localhost/AboutUs 
and localhost/aboutus


I understand for Wicket 1.4.x, you could achieve it in the way below:

public class DemoApplication extends WebApplication
{
@Override
protected IRequestCycleProcessor newRequestCycleProcessor() {
return new WebRequestCycleProcessor() {
@Override
protected IRequestCodingStrategy newRequestCodingStrategy() {
WebRequestCodingStrategy.Settings strategySettings = 
new WebRequestCodingStrategy.Settings();

strategySettings.setMountsCaseSensitive(false);
return new WebRequestCodingStrategy(strategySettings);
}
};
}
}

Many thanks,
Eusie

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



RE: Multiple select drop down in Wicket

2013-01-15 Thread Paul Bors
I gave up on the normal select in HTML and started to use Igor's Select2.

See http://ivaynberg.github.com/select2/

~ Thank you,
  Paul Bors

-Original Message-
From: kshitiz [mailto:k.agarw...@gmail.com] 
Sent: Monday, January 14, 2013 9:17 PM
To: users@wicket.apache.org
Subject: RE: Multiple select drop down in Wicket

Actually ListMultipleChoice is not that user friendly as compare to multi
select drop down. Thats why I preferred the later one. Is there any way to
implement the same in Wicket?



--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Multiple-select-drop-down-in-Wick
et-tp4655355p4655368.html
Sent from the Users forum 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



Do not cache pages, nor in application, nor in browser

2013-01-15 Thread Oscar Besga Arcauz
 

I use these code in order to avoid web page cache, in browser and in wicket 
application;
also I want to avoid disk caching and serialization

I'm using Wicket6


¿ Do you see this code correct ? ¿ Is there any easier way to accomplish this ?

/**
 * App
 */
public class MyApplication extends WebApplication {
    @Override
    public void init() {
    super.init();
    setPageManagerProvider(new MyPageManagerProvider(this));
}

/**
 * shall not save
 */
private class MyPageManagerProvider extends DefaultPageManagerProvider {

private MyPageManagerProvider(Application application) {
super(application);
}


@Override
protected IDataStore newDataStore() {
// guardamos tod o en memoria
return new HttpSessionDataStore(new DefaultPageManagerContext(), 
new PageNumberEvictionStrategy(0));
}

}

}


/**/

/**
 * Web Page
 */
public class MyPage extends WebPage {

    @Override
    protected void setHeaders(WebResponse response) {
    super.setHeaders(response);
    response.setHeader(X-Frame-Options,deny); // Avoid  IFRFAMES
    response.setHeader(Cache-Control, 
no-cache,no-store,private,must-revalidate,max-stale=0,post-check=0,pre-check=0);
    response.setHeader(Expires,0);
    response.setHeader(Pragma, no-cache);
    response.disableCaching();
    }

}




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



Re: AjaxFormComponentUpdatingBehavior onUpdate() not triggered sometimes

2013-01-15 Thread shimin_q
Thanks, Martin.  I use wicket 6.3.0.  I know 6.4.0 is out now, which jquery
version that goes with 6.4.0?

I tried putting the drop down directly under Form, it did not work, so that
was not the problem.  I will try changing the event name as you suggested.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AjaxFormComponentUpdatingBehavior-onUpdate-not-triggered-sometimes-tp4655361p4655404.html
Sent from the Users forum 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: Multiple select drop down in Wicket

2013-01-15 Thread Marios Skounakis
I've considered using select2 (it looks very impressive) but I was put off
by the fact that its appearance is not consistent with the rest of the input
controls.

How do people solve this?


On Tue, Jan 15, 2013 at 6:34 PM, Paul Bors p...@bors.ws wrote:

 I gave up on the normal select in HTML and started to use Igor's Select2.

 See http://ivaynberg.github.com/select2/

 ~ Thank you,
   Paul Bors

 -Original Message-
 From: kshitiz [mailto:k.agarw...@gmail.com]
 Sent: Monday, January 14, 2013 9:17 PM
 To: users@wicket.apache.org
 Subject: RE: Multiple select drop down in Wicket

 Actually ListMultipleChoice is not that user friendly as compare to multi
 select drop down. Thats why I preferred the later one. Is there any way to
 implement the same in Wicket?



 --
 View this message in context:

 http://apache-wicket.1842946.n4.nabble.com/Multiple-select-drop-down-in-Wick
 et-tp4655355p4655368.html
 Sent from the Users forum 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: HttpsMapper broken with Mounted pages

2013-01-15 Thread Jeremy Levy
Just to close the loop here.  If setRootRequestMapper(new HttpsMapper... is
done before you add your mounts, they will not be enabled for SSL.  I've
added and updated the Wiki to reflect this as well as requested the line in
the javadoc where this is be mentioned be made more prominent.

Jeremy


On Tue, Jan 15, 2013 at 10:24 AM, Jeremy Levy jel...@gmail.com wrote:

 Thanks-  Done.

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


 On Tue, Jan 15, 2013 at 3:05 AM, Martin Grigorov mgrigo...@apache.orgwrote:

 Hi,

 Please create a ticket and attach your quickstart.
 It will be good to fix this for 6.5.0 (scheduled for this Friday (Jan
 18)).


 On Tue, Jan 15, 2013 at 3:18 AM, Jeremy Levy jel...@gmail.com wrote:

  I believe I may have stumbled upon somewhat serious issue with 6.4.0
 (and
  possibly earlier).  A page that is annotated with @RequiresHttps and is
  mounted with any encoding method, when requested directly, or linked to
 is
  not switched over to https. If the page is not specifically mounted it
  works as expected.
 
  I was able to recreate this in my application as well as in a standalone
  'quickstart' project.  As far as I could see
  HttpsMapper.getDesiredSchemeFor wasn't even being called for the mounted
  pages.
 
  I'll debug the issue tomorrow and submit a patch if I can figure it out,
  however I thought this was serious enough to bring up here right away.
 
  Jeremy
 
  --
  Jeremy Levy
 



 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com http://jweekend.com/




 --
 Jeremy Levy




-- 
Jeremy Levy


Re: HttpsMapper broken with Mounted pages

2013-01-15 Thread Sven Meier

Thanks :)

On 01/15/2013 08:45 PM, Jeremy Levy wrote:

Just to close the loop here.  If setRootRequestMapper(new HttpsMapper... is
done before you add your mounts, they will not be enabled for SSL.  I've
added and updated the Wiki to reflect this as well as requested the line in
the javadoc where this is be mentioned be made more prominent.

Jeremy


On Tue, Jan 15, 2013 at 10:24 AM, Jeremy Levy jel...@gmail.com wrote:


Thanks-  Done.

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


On Tue, Jan 15, 2013 at 3:05 AM, Martin Grigorov mgrigo...@apache.orgwrote:


Hi,

Please create a ticket and attach your quickstart.
It will be good to fix this for 6.5.0 (scheduled for this Friday (Jan
18)).


On Tue, Jan 15, 2013 at 3:18 AM, Jeremy Levy jel...@gmail.com wrote:


I believe I may have stumbled upon somewhat serious issue with 6.4.0

(and

possibly earlier).  A page that is annotated with @RequiresHttps and is
mounted with any encoding method, when requested directly, or linked to

is

not switched over to https. If the page is not specifically mounted it
works as expected.

I was able to recreate this in my application as well as in a standalone
'quickstart' project.  As far as I could see
HttpsMapper.getDesiredSchemeFor wasn't even being called for the mounted
pages.

I'll debug the issue tomorrow and submit a patch if I can figure it out,
however I thought this was serious enough to bring up here right away.

Jeremy

--
Jeremy Levy




--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com http://jweekend.com/




--
Jeremy Levy







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



How to avoid this error TypeError: $(...) is null

2013-01-15 Thread saty
I am trying to use jQuery UI MultiSelect Widget by Eric Hynds
(http://www.erichynds.com/jquery/jquery-ui-multiselect-widget/) in one of
our current wicket application.

This works fine using Wicket ListMultipleChoice on a simple panel with no
other components, but on a complex panel (several other components including
several standard drop downs, data grid etc) it throws this error.

is there any way to make it work? I have implemented it as a separate panel
and and the simple page where it works and other page where it does not,
using the same panel.

The error is encountered at this line of code

$(select).multiselect();});


Thanks



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-avoid-this-error-TypeError-is-null-tp4655409.html
Sent from the Users forum 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: after migration to 1.5 I get java.lang.IllegalStateException: Header was already written to response!

2013-01-15 Thread Barrett Snyder
I had this same issue and tracked it down to IE9. In my case IE9 was first
requesting a page in Quirks mode and then midway through requesting
resources it would switch to standards mode which caused it to abort all
currently active requests and request all resources again. The aborted
requests were sometimes for wicket served resources like
wicket-ajax-jquery.js which caused wicket to log the referenced stack.
Adding a header with x-ua-compatible set to IE=9 fixed the issue by making
sure IE9 starts in standards mode.


On Fri, Aug 24, 2012 at 6:11 AM, dpmihai dpmi...@yahoo.com wrote:

 We also have this problem after migrating to 1.5. Everything seems to work
 ok, but the logs get full with this error. We did not find a solution to
 this.



 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/after-migration-to-1-5-I-get-java-lang-IllegalStateException-Header-was-already-written-to-response-tp4651455p4651475.html
 Sent from the Users forum mailing list archive at Nabble.com.

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




Re: Wicket getLocalizer().getString(.. Issue

2013-01-15 Thread vijay
Hi,

I have used the below code directly in my program before calling
getLocalizer().getString(...,...):

Application.getResourceSettings().getLocalizer().clearCache();

but i didn't get the latest change in property file until i restart the
server.

No, I didn't try to change the resource bundle in the production system, I
am testing this at my DEV server. 

But there is requirement that if we made any change in the resouce bundle
(present outside the war file, at some different location in same server)
then the change made in prop file should automatially reflected without
restarting the server again and again. Which is not happening it always pick
the old content from cache until server is restarted.

Please help to fix this issue by providing the code segement that can be
used directly in the program.







--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-getLocalizer-getString-Issue-tp4655346p4655413.html
Sent from the Users forum 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 avoid this error TypeError: $(...) is null

2013-01-15 Thread Sven Meier

What is the exact error message?

Sven

On 01/15/2013 11:05 PM, saty wrote:

I am trying to use jQuery UI MultiSelect Widget by Eric Hynds
(http://www.erichynds.com/jquery/jquery-ui-multiselect-widget/) in one of
our current wicket application.

This works fine using Wicket ListMultipleChoice on a simple panel with no
other components, but on a complex panel (several other components including
several standard drop downs, data grid etc) it throws this error.

is there any way to make it work? I have implemented it as a separate panel
and and the simple page where it works and other page where it does not,
using the same panel.

The error is encountered at this line of code

$(select).multiselect();});


Thanks



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-avoid-this-error-TypeError-is-null-tp4655409.html
Sent from the Users forum 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: Wicket getLocalizer().getString(.. Issue

2013-01-15 Thread Martin Grigorov
Hi,

This is the correct way.
Set a breakpoint
at org.apache.wicket.Localizer#getStringIgnoreSettings(final String key,
final Component component, final IModel? model, Locale locale, String
style, final String defaultValue) and see what happens.


On Wed, Jan 16, 2013 at 7:50 AM, vijay sevijay@gmail.com wrote:

 Hi,

 I have used the below code directly in my program before calling
 getLocalizer().getString(...,...):

 Application.getResourceSettings().getLocalizer().clearCache();

 but i didn't get the latest change in property file until i restart the
 server.

 No, I didn't try to change the resource bundle in the production system, I
 am testing this at my DEV server.

 But there is requirement that if we made any change in the resouce bundle
 (present outside the war file, at some different location in same server)
 then the change made in prop file should automatially reflected without
 restarting the server again and again. Which is not happening it always
 pick
 the old content from cache until server is restarted.

 Please help to fix this issue by providing the code segement that can be
 used directly in the program.







 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Wicket-getLocalizer-getString-Issue-tp4655346p4655413.html
 Sent from the Users forum 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




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com http://jweekend.com/