CSS Arrangement Order

2009-02-01 Thread TH Lim
Hi, How do I arrange my CSS declaration order? For example, the current order is ... head ... some script tags removed link rel=stylesheet type=text/css href=css/style.css / link rel=stylesheet type=text/css href=resources/com.acme/box.css / link rel=stylesheet type=text/css

Re: CSS Arrangement Order

2009-02-02 Thread TH Lim
of HeaderContributors (see class HeaderContributor) also have a look at http://techblog.molindo.at/2008/08/wicket-interface-speed-up-merging-resources-for-fewer-http-requests.html which might interest you if a lot of your pages/panels come up with their own css regards, Michael TH Lim wrote

Multiple Forms in A Border

2009-02-27 Thread TH Lim
I am using Wicket-1.4-SNAPSHOT libraries. I have a page with multiple forms. These forms are within a Border as shown in the HTML below html body div wicket:id=border form wicket:id=form1 input wicket:id=quantity1 /br/ input type=submit value=Quantity1 /

Re: Multiple Forms in A Border

2009-03-01 Thread TH Lim
I found out that this exception only happened to Wicket-1.4. I tried Wicket 1.3.5 and it worked fine. I presume all Wicket 1.3.x works too. -- View this message in context: http://www.nabble.com/Multiple-Forms-in-A-Border-tp22252817p22273577.html Sent from the Wicket - User mailing list archive

Enable / Disable Container using AJAX

2008-07-02 Thread TH Lim
Hi, I have a form with 2 address blocks where each block is a WebMarkupContainer. The 1st block is the home address which basic the block no, postal code, street name etc. The 2nd block is the billing address. So when a user clicks on the check box stating that his home address is the billing

Re: Enable / Disable Container using AJAX

2008-07-03 Thread TH Lim
this is not going to work since the items in the listview are created in the onbeforeRender of the listview which is called after the onbeforerender of the container. For items of listviews you need to check the parent yourself in onpopulate. Maurice On Thu, Jul 3, 2008 at 6:53 AM, TH Lim [EMAIL

FeedbackPanel.anyErrorMessage() Strange Behavior

2008-07-08 Thread TH Lim
Hi, My intention was to use the same feedback panel to show both info and error messages. What I did was if there there is a mistake e.g. blank textfield, feedback panel will display and error and expects the user to fix his mistake and submit again. If the form is filled in accordingly, an info

Does Session.getClientInfo() Always Return An Instance?

2008-07-11 Thread TH Lim
Hi, Does Session.getClientInfo() always return a client info instance? Is it possible that this method will return null? If so, what is the cause to it? Thanks. -- View this message in context:

Re: Does Session.getClientInfo() Always Return An Instance?

2008-07-14 Thread TH Lim
java.lang.NullPointerException at org.apache.wicket.Session.getClientInfo(Session.java:555) at com.xyz.web.MySession.init(MySession.java:48) Ryan Gravener-3 wrote: Yes, it should always return an instance. On Fri, Jul 11, 2008 at 12:34 PM, TH Lim [EMAIL PROTECTED] wrote: Hi, Does

Unable to serialize class com.google.common.collect.LinkedListMultimap$1

2008-08-18 Thread TH Lim
Hi, I am using Google collections with Wicket 1.3.4 and hit with this serialization error. ERROR - Objects- Error serializing object class web.AdminPage [object=[Page class = web.AdminPage, id = 5, version = 0]]

Re: Unable to serialize class com.google.common.collect.LinkedListMultimap$1

2008-08-18 Thread TH Lim
at org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:342). I find this very puzzling. Pierre Coquentin wrote: This is the anonymous inner class inside the LinkedListMultimap class which is not Serializable (LinkedListMultimap*$1*) Best regards Pierre TH Lim a écrit : Hi, I am using Google

Re: Unable to serialize class com.google.common.collect.LinkedListMultimap$1

2008-08-18 Thread TH Lim
I tried another method. Instead of passing the reference to my IDataProvider implementation, MyDataProvider, I recode MyDataProvider to get it from the MySession which extends Wicket Session. I don't any difference here but it works. I still not sure what caused MyDataProvider to fail to persist

Re: Unable to serialize class com.google.common.collect.LinkedListMultimap$1

2008-08-18 Thread TH Lim
Alright, if I pass LinkedListMultiMap instance into my IDataProvider implementation, MyDataProvider, Wicket is able to persist. Whereas, if I pass the List instance from LinkedListMultiMap.get(...), Wicket will throw the unserializable exception. I presume something in LinkedListMultimap$1 made

Re: Unable to serialize class com.google.common.collect.LinkedListMultimap$1

2008-08-18 Thread TH Lim
exactly which field it is anyway. or provide us some code to help you. but if you inherit from sortabledataprovider or you implement IDataProvider it shouldn't be too difficult to find out which field it is ;-) regards, Michael TH Lim wrote: I tried another method. Instead of passing

Re: Unable to serialize class com.google.common.collect.LinkedListMultimap$1

2008-08-18 Thread TH Lim
into problems as well ... at the latest in a clustered environment TH Lim wrote: No, I didn't save the provider in the session. Just the LinkedListMultimap instance. As Martijn has pointed it out with the code snippet why $1 is not serializable, the only way is to keep

Re: Unable to serialize class com.google.common.collect.LinkedListMultimap$1

2008-08-18 Thread TH Lim
into your session just because on of its public methods returns a not-serializable object? TH Lim wrote: No, linkedlistmultimap is serializable. only $1 is not. If you look at the snippet the $1 class is created on the fly when linkedlistmultimap.get(...) is invoked. Michael Sparer

Re: Dojo Tooltip JS Error (And Mootips)

2009-04-04 Thread TH Lim
Are you refering to Wicket core or wicketsutff-core? Where do I find this common JS library? I have made minor changes in lightbox-1.0.3. to be compliant with Wicket-1.4 API. How do I check in the changes? Instead can I add to wicketstuff-core instead? Thanks /lim/ nino martinez wael

Re: Cache oddity ... maybe

2009-04-05 Thread TH Lim
For starter, I would remove the filter and Hibernate codes, to localize the problem to Wicket. It helps if you could provide a snippet of the code or better if u can provide working code of the problem u encounter. luther.baker wrote: I have a page that displays a list of Titles. I have

Re: Dojo Tooltip JS Error (And Mootips)

2009-04-06 Thread TH Lim
: wicketstuff core.. But the common js lib are something that the libraries so use internally. Like Dojo, scriptaculous or minies.. So the thing would be to patch both to use that.. 2009/4/4 TH Lim ssh...@gmail.com: Are you refering to Wicket core or  wicketsutff-core? Where do I find this common JS

Re: Cache oddity ... maybe

2009-04-10 Thread TH Lim
I have briefly looked at ur codes. Have u checked if your code has not executed the refresh / reload routine? Some methods are not executed in AJAX. Sorry I can't tell u what methods offhand. If you placed your code in those methods then ur new items will not be loaded but it will when u do a

Mulitple Forms in ListView

2010-06-29 Thread TH Lim
Hi, I have multiple forms in a ListView. So in order not to show the same error messages in all feedback panels I use ContainerFeedbackMessageFilter to filter the error messages. This didn't work and the warning was Component-targetted feedback message was left unrendered. This could be because

Re: Mulitple Forms in ListView

2010-06-30 Thread TH Lim
Thank you for providing a solution to that. It not so much of the solution I am looking for. I am curious why it didn't work out of the box for non-Ajax submit but it works for AjaxSubmitLink. Basically the code to determine if the FormComponent is the child of the container is the same but for

Re: Mulitple Forms in ListView

2010-07-01 Thread TH Lim
Sorry I didn't test it before I replied. Your solution didn't work because for non-Ajax submit both forms r submitted. Non-ajax submit submits the page instead of individual form in Ajax style. -- View this message in context:

keygen tag

2010-09-10 Thread TH Lim
Hi, I am want to use keygen, https://developer.mozilla.org/En/HTML/Element/keygen, form component and there is no Wicket equivalent FormComponent. Any suggestion on how do I extend an existing component to cover this tag. Thanks /lim/ -- View this message in context:

Re: Use Wicket 1.5 to serve text/xml content type (Rest-style)

2011-11-08 Thread TH Lim
try reversing the statements in configureResponse(...) body @Override protected void configureResponse(WebResponse response) { super.configureResponse(response); response.setContentType(text/xml); } -- View this message in context:

Does [Parent|Child]HeaderRenderStrategy work with wicket:head tag?

2011-11-15 Thread TH Lim
I am using Wicket 1.5.x with wicket:head tag. I tried rendering the child component (Wicket Panel) CSS / JS 1st then followed by the parent. It didn't work. It always renders the parent (Wicket WebPage) JS 1st. I used

Purely XML / JSON Result Page

2011-11-15 Thread TH Lim
With Wicket 1.5, can we have a WebPage that serves XML / JSON without having an associated XML or HTML page? I understood how XMLPage.java example works but I just wander if we could do *without* the additional template file with a simple Wicket Label and stream tens of megabytes of XML/JSON as

Re: Does [Parent|Child]HeaderRenderStrategy work with wicket:head tag?

2011-11-17 Thread TH Lim
Bug posted https://issues.apache.org/jira/browse/WICKET-4235 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Does-Parent-Child-HeaderRenderStrategy-work-with-wicket-head-tag-tp4075161p4079254.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Purely XML / JSON Result Page

2011-11-17 Thread TH Lim
Thanks for the tips. I some help here too (in case anyone looking for the similar solution) http://stackoverflow.com/questions/2086732/dynamic-markup-in-wicket -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Purely-XML-JSON-Result-Page-tp4075558p4079390.html Sent

getAssociatedMarkup() invoked twice

2012-01-08 Thread TH Lim
Hi, I made my custom markup WebPage, not the default HTML and WebPage pair, to generate JSON responses. My custom WebPage implemented IMarkupCacheKeyProvider and IMarkupResourceStreamProvider interfaces. I come to realize that my implementation of

Re: Unnecessary 302 redirects in Wicket 1.5

2012-02-02 Thread TH Lim
Is it possible to set the redirect feature localized to a page instead of every page? There are 2 out 10 pages I don't want to redirect. Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Unnecessary-302-redirects-in-Wicket-1-5-tp3921623p4351160.html Sent from the

Re: Unnecessary 302 redirects in Wicket 1.5

2012-02-02 Thread TH Lim
I have compilation error with this statement. Any help here would be great. And I suppose I put this line of code at the end of my web page constructor, right? Martin Grigorov-4 wrote On Thu, Feb 2, 2012 at 1:27 PM, TH Lim lt;sshark@gt; wrote: Is it possible to set the redirect feature

Re: Unnecessary 302 redirects in Wicket 1.5

2012-02-02 Thread TH Lim
The compilation error was my fault. I tried and it didn't work. Probably I missed something. What I did was throw the RestartResponseException at the end of the said page and StackOverflowException was thrown, quite obvious to me what has happened. With my limited knowledge of Wicket internal

Re: Unnecessary 302 redirects in Wicket 1.5

2012-02-03 Thread TH Lim
import org.apache.wicket.MarkupContainer; import org.apache.wicket.markup.IMarkupCacheKeyProvider; import org.apache.wicket.markup.IMarkupResourceStreamProvider; import org.apache.wicket.markup.html.WebPage; import org.apache.wicket.request.http.WebResponse; import

Re: Unnecessary 302 redirects in Wicket 1.5

2012-02-03 Thread TH Lim
The original constructor was public class AppLogin extends WebPage implements IMarkupCacheKeyProvider, IMarkupResourceStreamProvider { public AppLogin(PageParameters params) { setStatelessHint(true); startAsyncProcss(params); * throw new RestartResponseException(new

Re: Unnecessary 302 redirects in Wicket 1.5

2012-02-03 Thread TH Lim
I tried and observed the PRG behavior as before. Even if it had worked, for every page I need to an additional transfer page. I don't think this is a good solution. -- View this message in context:

Re: Unnecessary 302 redirects in Wicket 1.5

2012-02-03 Thread TH Lim
Thanks for your help so far. It would be great if you could pass me some hints to allow me to do some research on my own. Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Unnecessary-302-redirects-in-Wicket-1-5-tp3921623p4354785.html Sent from the Users forum

Re: Unnecessary 302 redirects in Wicket 1.5

2012-02-03 Thread TH Lim
What I want is a very simple end point to service a POST request originated from my JS using AJAX. What I was expecting was to do a POST and returned an acknowledgement as response. What happened was, after the POST request, the browser received a HTTP 302 to redirect the browser to GET the final

Re: Unnecessary 302 redirects in Wicket 1.5

2012-02-03 Thread TH Lim
I could use a servlet. I thought I could easily setup a Wicket page to do something similar. Since I have @SpringBean ready to load services and DAOs. I was almost there. Just that I couldn't get the NEVER_REDIRECT directive work on a per page basis instead of global. -- View this message in

Re: Unnecessary 302 redirects in Wicket 1.5

2012-02-05 Thread TH Lim
This worked. It didn't do a POST/REDIRECT/GET when I posted from Javascript and/or HTML Form. This solution works great because, as you mentioned, I can use @SpringBean and other Wicket features along side with it. Thanks. -- View this message in context:

Facebook Wicket Integration

2008-04-08 Thread TH Lim
Hi, I have been following the tip in the Wiki, http://cwiki.apache.org/WICKET/facebook-integration.html and ran into NullPointerException. The Login class is exactly the class mentioned in the Wiki. java.lang.NullPointerException at org.thlim.sample.wicket.Login.init(Login.java:23) at

Re: Facebook Wicket Integration

2008-04-11 Thread TH Lim
yet otherwise proceed to other pages. It is not elegant and it worked at that time. Now that it works as it should be I have reverted to the original code. itai wrote: Hi Lim, I ran into the exact same problem ... Did you find a solution ?? Thanks, Itai. TH Lim wrote

Re: Facebook Wicket Integration

2008-04-14 Thread TH Lim
Yes, you can use mountBookmarkablePage method of WebApplication. itai wrote: Hi! Thanks a lot - this works... Ill have to put the validation on the BasePage class to authenticate every page because in many cases (like in links that are used on facebook notifications) the first

Private Homepage Redirection

2008-05-06 Thread TH Lim
Hi, I have setup a private homepage in org.apache.wicket.WebApplication. My intention is to redirect the user, if he not logged in, to an external site. Once he has successfully logon using the external site, he will be redirected back to the private homepage. I use setRequestTarget(new

Re: Private Homepage Redirection

2008-05-06 Thread TH Lim
) constructed. Because it is the Component constructor that triggers the call to the listeners. Maurice On Tue, May 6, 2008 at 11:37 AM, TH Lim [EMAIL PROTECTED] wrote: Hi, I have setup a private homepage in org.apache.wicket.WebApplication. My intention is to redirect the user

Re: Private Homepage Redirection

2008-05-06 Thread TH Lim
RestartResponseException worked but it doesn't accept external URL. As a result, I have to put the redirection in the dummy Page's HTML header. Someone in the forum mentioned using WebApplication.getHomePage() to get around but that too requires you to put up a dummy Page to redirect to the

Re: Facebook Wicket Integration

2008-05-07 Thread TH Lim
Check why your client variable is null. I think the problem lies there. caoanhkiet wrote: Hi, I have been following http://cwiki.apache.org/WICKET/facebook-integration.html and version tomcat 5.5.25. and ran NullPointerException. error at: client.friends_get(); SEVERE: Can't

Re: Private Homepage Redirection

2008-05-07 Thread TH Lim
( This exception can only be thrown when wicket is processing an http request); } // abort any further response processing rc.setRequestTarget(new RedirectRequestTarget(url)); } } } On 5/7/08, TH

Re: Deployment mode Javascript error

2008-06-03 Thread TH Lim
Why being not stripping the comments and whitespaces makes a difference in Effect.js i.e. getResourceSettings().setStripJavascriptCommentsAndWhitespace(false)? Thanks. Matej Knopp-2 wrote: Are there still compression problems with current trunk? I've been testing that with YUI and DOJO

POST or GET Request

2008-06-25 Thread TH Lim
Hi, Is there a way to know if a request is a POST or GET in WebPage? TQ -- View this message in context: http://www.nabble.com/POST-or-GET-Request-tp18108556p18108556.html Sent from the Wicket - User mailing list archive at Nabble.com.