Re: Server cannot find /app url after migration to 1.3 filter

2007-10-02 Thread smallufo
2007/10/2, Gwyn Evans [EMAIL PROTECTED]: Are you sure you deployed your web-app to the ROOT context? It's not just at http://localhost/myApp/app/ is it? One thing I like about Jetty is that it's normally clear to see what's mounted where, as the default '/' servlet will list them when

Re: Server cannot find /app url after migration to 1.3 filter

2007-10-02 Thread smallufo
Hi , I think it seems resin's problem (2.1.7). After a lot of combinations , I still cannot make the wicket filter work. The error (URL not found) is reported by apache , not by resin . which means the filter request is not passed to resin. After I assign port ( http://foo.bar.com:8080/app ) ,

Re: Server cannot find /app url after migration to 1.3 filter

2007-10-02 Thread smallufo
Yes , I use Apache as a front end. If any configuration goes wrong , servlets' requests will not be processed by resin, either. But http://foo.bar.com/servlet/other.servlet just works fine. (No port assign) It means resin (2.1.7) seems doesn't intercept filter's requests. I've also reported this

Re: Server cannot find /app url after migration to 1.3 filter

2007-10-02 Thread smallufo
2007/10/3, David Bernard [EMAIL PROTECTED]: Sorry I need the mapping, could you send /usr/local/resin/conf/resin.conf. This is my partial resin.conf , thanks in advanced. http port='8080'/ ... srun host='127.0.0.1' port='6802'/ ... host id='foo.bar.com' error-log

Re: Server cannot find /app url after migration to 1.3 filter

2007-10-02 Thread smallufo
2007/10/2, David Bernard [EMAIL PROTECTED]: It depends of how you map/forward from apache to resin. What is your apache configuration? If it works when you access resin directly, what is done when you access throught port 8080, then it's not a resin problem. Hi , this is my (partial)

Re: Server cannot find /app url after migration to 1.3 filter

2007-10-02 Thread smallufo
2007/10/3, David Bernard [EMAIL PROTECTED]: Sorry No idea :-( abstract of your problem : http://foo.bar.com/app KO http://foo.bar.com/app/ ?? This fails too. http://foo.bar.com:8080/app OK http://127.0.0.1:6802/app ?? port

Re: Server cannot find /app url after migration to 1.3 filter

2007-10-02 Thread smallufo
2007/10/3, David Bernard [EMAIL PROTECTED]: Have you try: * to set port to 80 instead of 8080 Port 80 is listened by apache httpd. I need apache httpd to serve large amount of static contents. Yes, and resin.conf isn't run as part of Apache? Apache (port 80) - srun(6802) Resin

Re: Server cannot find /app url after migration to 1.3 filter

2007-10-13 Thread smallufo
the filter work. Anybody successfully install WicketFilter with Resin_with_Apache (mod_caucho.so) ? (not standalone resin) 2007/10/3, smallufo [EMAIL PROTECTED]: 2007/10/3, David Bernard [EMAIL PROTECTED]: Have you try: * to set port to 80 instead of 8080 Port 80 is listened

Re: Server cannot find /app url after migration to 1.3 filter

2007-10-13 Thread smallufo
2007/10/13, smallufo [EMAIL PROTECTED]: Hi , I had a strong suspicion that WicketFilter (from 1.3 b3) not compatible with Resin ( I tried 2.1.17 and latest 3.0.24 ) I just grabbed the latest 1.3 b4 , the problem remains. I also found that the following filter-mapping works : filter

WebPage for serving binary image data

2008-12-25 Thread smallufo
Hi I hope I can use wicket to serve image data. I know I can extend org.apache.wicket.markup.html.image.Image and provide a DynamicImageResource but the generated image link is http://localhost/app/?wicket:interface=:0:customImage::IResourceListener:: The image data is stored in the session and

Re: WebPage for serving binary image data

2008-12-25 Thread smallufo
Well , What I need is parsing URL and generating a corresponding image from BufferedImage , not a bookmarkable link to internal file resource... for example : http://localhost/app/myImage/text/Hello/width/500 This will generate a 500x500 png , containing a Hello String.

Re: WebPage for serving binary image data

2008-12-26 Thread smallufo
in the WebPage's img tag. BR -- smallufo

Re: WebPage for serving binary image data

2008-12-26 Thread smallufo
to force it to be a page? It's a bookmarkable resource - which is what you're serving. The type is set by DynamicImageResource - look in getResourceStream or getResourceState. On Fri, Dec 26, 2008 at 1:51 PM, smallufo small...@gmail.com wrote: Hi , thank you for replying. 2008/12

Re: onmouseover image

2009-01-16 Thread smallufo
I am seeking a solution and found this mail. This is a very useful implementation. I strongly suggest future wicket to include this Component. Thank you , Jeremy -- smallufo 2008/10/8 Jeremy Thomerson jer...@wickettraining.com This doesn't preload the images, but it is a simple way to do

Re: [jira] Resolved: (WICKET-1712) Inheritance inside a Container throws WicketRuntimeException

2009-02-03 Thread smallufo
://issues.apache.org/jira/browse/WICKET-1712 Project: Wicket Issue Type: Bug Components: wicket Affects Versions: 1.3.3, 1.3.4 Environment: Linux , resin-3.0.24 , Wicket 1.3.3 Reporter: smallufo Assignee: Igor Vaynberg

Re: [jira] Resolved: (WICKET-1712) Inheritance inside a Container throws WicketRuntimeException

2009-02-03 Thread smallufo
2009/2/4 Igor Vaynberg igor.vaynb...@gmail.com PulldownBorder border = new PulldownBorder(border , Test Title , true); border.setTransparentResolver(true); add(border); ^ that is all wrong you should create a border and to it add a panel that will be expanded/collapsed. so the panel

Re: [jira] Resolved: (WICKET-1712) Inheritance inside a Container throws WicketRuntimeException

2009-02-03 Thread smallufo
-- smallufo 2009/2/4 Igor Vaynberg igor.vaynb...@gmail.com add(new link(collapseOrExpand) { onclick() { expanded=!expanded; updateState(expanded); Border.this.visitChildren(new IVisitor() { public int onComponent(Component c) { if (c instanceof ExpandCollapseListener

Border fails to render if its contents are not visible by default (WICKET-1789 ?)

2009-02-04 Thread smallufo
. The default_expanded panel can successfully collapse and expand again and again. But the default_collapsed panel just has no response I tried every way I can think , but still find no solution. Can somebody help me check the code , telling me where goes wrong . Thanks a lot. -- smallufo

Re: Border fails to render if its contents are not visible by default (WICKET-1789 ?)

2009-02-05 Thread smallufo
igor: Thank you very much , it works ! BR -- smallufo 2009/2/5 Igor Vaynberg igor.vaynb...@gmail.com remove border.settransparentresolver(true); instead of add(listViewContainer.add(listView)); do border.add(listViewContainer.add(listView)); now your component hierarchy is proper

Re: In memoriam: Maurice Marrink

2008-08-13 Thread smallufo
This is a big loss for wicket community. Maurice also helped me a lot . It's sad to hear this ... I am from Taiwan , English is not my native language , I cannot express how I appreciated his kindness. I'll remember him. Thank you , Maurice.

[1.3.5] Wicket POST leaks backend server with apache's mod_rewrite

2008-10-31 Thread smallufo
I have a front apache server (httpd-2.0.52-41.ent.centos4) , with a backend db/servlet server (internal IP). I want to use apache's mod_rewrite to redirect the jsp/servlet/wicket requests to the backend server. So I add these lines in httpd.conf : IfModule mod_rewrite.c RewriteEngine On

Re: [1.3.5] Wicket POST leaks backend server with apache's mod_rewrite

2008-10-31 Thread smallufo
Thank you I switched to use ProxyPass and ProxyPassReverse , achieving what I want : ProxyPass /app http://192.168.1.2:8080/app ProxyPassReverse /app http://192.168.1.2:8080/app - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Dynamically insert/remove WizardSteps based on user input ?

2009-11-03 Thread smallufo
Hi all : It seems the WizardSteps are added into WizardModel in the constructor time. I wonder if it is possible to dynamically insert/remove WizardSteps based on user input ? (wicket-1.3.6) Thanks a lot.

wicket 1.4 : Link with no model

2009-11-16 Thread smallufo
Hi I am migrating my wicket 1.3 project to 1.4. One problem is this : Link personPageLink = new Link(personPageLink) { @Override public void onClick() { setResponsePage(PersonPage.class); } }; add(personPageLink); Because Link is generized ,

[1.4] override getObject() return type not the same with original model ?

2009-11-17 Thread smallufo
Hi all I've already converted most of my code from 1.3 to 1.4 , except this situation : Label intToStringLabel = new Label(intToString , new PropertyModel(this , integer) { @Override public Object getObject() { int value = ((Integer)

Re: [1.4] override getObject() return type not the same with original model ?

2009-11-18 Thread smallufo
2009/11/18 Jeremy Thomerson jer...@wickettraining.com Well, you can't make a subclass a different parameterized type than it's parent. It won't work. You should be using an Integer model for this and using a converter rather than a nested model to make it a string. That's what converters

Re: [1.4] override getObject() return type not the same with original model ?

2009-11-18 Thread smallufo
2009/11/19 Jeremy Thomerson jer...@wickettraining.com http://cwiki.apache.org/WICKET/using-custom-converters.html Thanks a lot , this solves my problem... But , there is a more complicated situation : Old code : (works in 1.3) ListView poem = new ListView(poem , new PropertyModel(model ,

[1.4.3] RequestUtils.toAbsolutePath() skips the last value

2009-11-20 Thread smallufo
The code is following : WebApplication : mountBookmarkablePage(/TestPage , TestPage.class); TestPage.html : url = span wicket:id=url/span TestPage.java : final String url = RequestUtils.toAbsolutePath(); add(new Label(url , Model.of(url))); If I open http://foobar:8080/quickstart/app/TestPage

Re: [1.4.3] RequestUtils.toAbsolutePath() skips the last value

2009-11-29 Thread smallufo
Hi , I opened WICKET-2586 https://issues.apache.org/jira/browse/WICKET-2586 https://issues.apache.org/jira/browse/WICKET-2586But it is reported invalid ... This is intended ... but I still don't know why ... 2009/11/30 Erik van Oosten e.vanoos...@grons.nl Hello Smallufo, Please open an issue

Re: How to tackle Ajax Flooding

2009-12-09 Thread smallufo
Wow , thanks for this great tip ... But I have problem applying to Gmap2 : I hope when user clicks the map , the map won't be able to receive any requests until the onClick() finishes... But it seems this doesn't work... Is there anything I missed ? gmap2.add(new ClickListener() { @Override

How to replace Strings in JavaScript ?

2009-12-16 Thread smallufo
Hello , I am using wicket 1.4.3 I wonder how to replace Strings in JavaScript ? such as : form input type=button value=Connect with Facebook onclick=window.open('http://www.facebook.com/login.php?

Re: How to replace Strings in JavaScript ?

2009-12-16 Thread smallufo
Hi , Thanks But where is class TextTemplateContributor ? I cannot grep that class ... I could only find wicket/util/template/TextTemplate ... 2009/12/17 Igor Vaynberg igor.vaynb...@gmail.com you can use something like TextTemplateContibutor -igor On Wed, Dec 16, 2009 at 11:21 AM, smallufo

Inject object to Wicket session by Servlet Filter , but : you can only locate or create sessions in the context of a request cycle

2010-01-08 Thread smallufo
Hi all : I'm trying to inject something to the Wicket Session by a Generic Servlet Filter : public class UserFilter implements Filter { private UserDao UserDao; @Override public void init(FilterConfig config) throws ServletException { WebApplicationContext wac =

How to create Wicket's session and inject to Wicket's life cycle using Servlet Filter ?

2010-01-09 Thread smallufo
2010/1/9 smallufo small...@gmail.com Hi all : I'm trying to inject something to the Wicket Session by a Generic Servlet Filter : public class UserFilter implements Filter { private UserDao UserDao; @Override public void init(FilterConfig config) throws ServletException

Re: How to create Wicket's session and inject to Wicket's life cycle using Servlet Filter ?

2010-01-09 Thread smallufo
2010/1/10 Igor Vaynberg igor.vaynb...@gmail.com why not simply put whatever it is into the httpsession, and then write a getter in wicket's session that retrieves it from there? seems simpler. -igor Thank you . But how to get HttpSession inside Wicket's Session ? thanks ...

Re: How to create Wicket's session and inject to Wicket's life cycle using Servlet Filter ?

2010-01-09 Thread smallufo
Thank you , I've found the answer : httpSession = ((ServletWebRequest)request).getHttpServletRequest().getSession(); This is a better way ... thanks a lot. 2010/1/10 smallufo small...@gmail.com 2010/1/10 Igor Vaynberg igor.vaynb...@gmail.com why not simply put whatever

Any servlet filter- like WebRequest interceptor or filter ?

2010-01-11 Thread smallufo
Hi : I wonder if wicket has any servletFilter-like WebRequest interceptor or filter ? That the interceptor can intercept WebRequest or HttpSession and pre-processing , and maybe redirect to some specified WebPage ... Thanks a lot.

Re: Any servlet filter- like WebRequest interceptor or filter ?

2010-01-11 Thread smallufo
back to the original target page or wizard step... Is it possible in wicket ? 2010/1/11 smallufo small...@gmail.com Hi : I wonder if wicket has any servletFilter-like WebRequest interceptor or filter ? That the interceptor can intercept WebRequest or HttpSession and pre-processing , and maybe

Re: Any servlet filter- like WebRequest interceptor or filter ?

2010-01-11 Thread smallufo
in this class. 2010/1/12 Igor Vaynberg igor.vaynb...@gmail.com requestcycle.onbeginrequest -igor On Mon, Jan 11, 2010 at 2:40 AM, smallufo small...@gmail.com wrote: For example : A Wicket application may have many WebPages or Wizards which are inter-connected ... The interceptor(or filter

Re: Any servlet filter- like WebRequest interceptor or filter ?

2010-01-11 Thread smallufo
Wow , thanks replying so soon. I am just trying : public RequestCycle newRequestCycle(Request request, Response response) { ServletWebRequest servletWebRequest = (ServletWebRequest) request; HttpServletRequest hreq = servletWebRequest.getHttpServletRequest(); ServletContext context =

Cannot get default invisible TextField's ModelObject ?

2010-01-20 Thread smallufo
I have a form , which contains a radio button. When user clicks the radio button , a default-invisible textfield is set visible. But I cannot get the textfield's Model Object , it is null What's the problem ? Did I miss anything ?

Re: Cannot get default invisible TextField's ModelObject ?

2010-01-20 Thread smallufo
, searching but found no anwser ... I need help Wicket 1.4.5 2010/1/21 smallufo small...@gmail.com I have a form , which contains a radio button. When user clicks the radio button , a default-invisible textfield is set visible. But I cannot get the textfield's Model Object , it is null

Re: Cannot get default invisible TextField's ModelObject ?

2010-01-20 Thread smallufo
This is a full functional Page : I found this problem only occurs when the form is in the listView : If I move the form out of the listView , it works like a charm. Bug ? I am not sure... The link is the screen capture : http://xs.to/image-B859_4B57CDD0.gif MyPage.html table border=1 tr

Re: Cannot get default invisible TextField's ModelObject ?

2010-01-21 Thread smallufo
= + radioGroup.getModelObject() + , textfield.getModelObject() = + textfield.getModelObject()); } }; *moreForm*.add(button); On Wed, Jan 20, 2010 at 10:47 PM, smallufo small...@gmail.com wrote

Re: Cannot get default invisible TextField's ModelObject ?

2010-01-21 Thread smallufo
the TextField. The version that fails is looking for TextField named more:textfield. The RequestFacade object has: wicket:interface, wicket:ignoreIfNotActive, random, forma_hf_0, radioGroup and more:submit. Is there a problem with forma_hf_0? On Thu, Jan 21, 2010 at 7:35 AM, smallufo small

[Bug 1.3.6] Inconsistent RequestUtils.toAbsolutePath()

2009-06-06 Thread smallufo
This is my code : String s1 = RequestUtils.toAbsolutePath(getRequestCycle().urlFor(CurrentPage.class , pps).toString()); System.out.println(s1 = + s1); Link link = new AjaxFallbackLink(link) { @Override public void onClick(AjaxRequestTarget target) { final String s2 =

Re: RequestUtils.toAbsolutePath()'s bug ?

2009-06-06 Thread smallufo
I don't know if this is related to WICKET-1599 : https://issues.apache.org/jira/browse/WICKET-1599 2008/5/7 smallufo small...@gmail.com Environment : Wicket 1.3.3 Suppose the following code in a bookmarkable page , say FirstPage : When user pushes an AJAX button , the page builds

Re: [Bug 1.3.6] Inconsistent RequestUtils.toAbsolutePath()

2009-06-06 Thread smallufo
I don't know if this is related to WICKET-1599 : https://issues.apache.org/jira/browse/WICKET-1599 2009/6/7 smallufo small...@gmail.com This is my code : String s1 = RequestUtils.toAbsolutePath(getRequestCycle().urlFor(CurrentPage.class , pps).toString()); System.out.println(s1 = + s1

Re: [Bug 1.3.6] Inconsistent RequestUtils.toAbsolutePath()

2009-06-07 Thread smallufo
2009/6/7 Johan Compagner jcompag...@gmail.com can you debug and see what this returns for both situations? ((WebRequest)RequestCycle.*get*().getRequest()).getHttpServletRequest() .getRequestURL().toString() ok , here is my test : String a1 =

Re: [Bug 1.3.6] Inconsistent RequestUtils.toAbsolutePath()

2009-06-09 Thread smallufo
I've attached a quickstart code , including error case , to WICKET-2312 https://issues.apache.org/jira/browse/WICKET-2312 I think the problem may come from bookmarkablePage parsing parameters... The CurrentPage is mounted to /CurrentPage by mountBookmarkablePage(/CurrentPage ,

[1.4.6] WicketURLDecoder - No current Application found - defaulting encoding to UTF-8

2010-02-04 Thread smallufo
After upgrading to 1.4.6 , it always pops up this warning : WARN http.WicketURLDecoder - No current Application found - defaulting encoding to UTF-8 It is ok in 1.4.5 , but I don't know why it has such warning in 1.4.6 . How to get rid of it ? Thanks ...

Re: [1.4.6] WicketURLDecoder - No current Application found - defaulting encoding to UTF-8

2010-02-05 Thread smallufo
2010/2/5 Igor Vaynberg igor.vaynb...@gmail.com disable it in your logging configuration -igor I tried a lot of configurations , but http.WicketURLDecoder's warning still pops up... log4j.rootLogger=INFO, console log4j.appender.console=org.apache.log4j.ConsoleAppender

[1.4.6] inconsistent setResponsePage behavior in AjaxButton , with 1.4.5

2010-02-09 Thread smallufo
Suppose inside a BookmarkablePage which is mounted to CurrentPage , there is an AjaxButton , when clicked , it will setResponsePage(CurrentPage.class , pps) If a user is browsing http://foo.bar/app/CurrentPage/key/value , and submit the AjaxButton , In 1.4.5 , he will be redirect to

Re: [1.4.6] inconsistent setResponsePage behavior in AjaxButton , with 1.4.5

2010-02-09 Thread smallufo
I've submitted it to JIRA https://issues.apache.org/jira/browse/WICKET-2735 https://issues.apache.org/jira/browse/WICKET-2735 2010/2/10 smallufo small...@gmail.com Suppose inside a BookmarkablePage which is mounted to CurrentPage , there is an AjaxButton , when clicked

[1.4.6] NotSerializableException: java.nio.HeapCharBuffer

2010-02-18 Thread smallufo
Hi I found a lot of NotSerializableException: java.nio.HeapCharBuffer when I try Wicket 1.4.6 + Resin 4.0.3 I've never seen this exception , is it the problem from Wicket ? Stacktrace : java.io.NotSerializableException: java.nio.HeapCharBuffer at

Inject Dao ( with JPA impl) into Wicket without Spring ?

2010-03-23 Thread smallufo
Hi Is there any way to inject a DAO into Wicket without Spring ? ex : public interface PersonDao { some methods... } public class PersonDaoImpl implements PersonDao , Serializable { @PersistenceContext(unitName = data, type = PersistenceContextType.TRANSACTION) EntityManager entityManager;

Re: Inject Dao ( with JPA impl) into Wicket without Spring ?

2010-03-23 Thread smallufo
or aspectj, etc -igor On Tue, Mar 23, 2010 at 8:20 AM, smallufo small...@gmail.com wrote: Hi Is there any way to inject a DAO into Wicket without Spring ? ex : public interface PersonDao { some methods... } public class PersonDaoImpl implements PersonDao , Serializable

Re: Inject Dao ( with JPA impl) into Wicket without Spring ?

2010-03-23 Thread smallufo
/main/java/org/apache/wicket/spring/SpringBeanLocator.java?r=HEAD or for non-spring code check out the wicketstuff javaee-inject project. Best Regards, Peter 2010-03-23 16:52 keltezéssel, smallufo írta: Is it possible to 'not' introduce any 3rd library / annotation to enable this feature

Re: Inject Dao ( with JPA impl) into Wicket without Spring ?

2010-03-23 Thread smallufo
Thank you , I tried it , and it can successfully inject EntityManagerFactory into a WebPage , But it seems unable to inject EntityManager , is it because of some thread-safe limitation here ? 2010/3/23 Major Péter majorpe...@sch.bme.hu I think yes, Wicket is already depending on cglib, so you

Re: Inject Dao ( with JPA impl) into Wicket without Spring ?

2010-03-23 Thread smallufo
2010/3/24 smallufo small...@gmail.com Thank you , I tried it , and it can successfully inject EntityManagerFactory into a WebPage , But it seems unable to inject EntityManager , is it because of some thread-safe limitation here ? Sorry , I meant wicket-contrib-javaee here. 2010/3/23

[wicketstuff-push] NPE when CometdService.initBayeux()

2010-07-21 Thread smallufo
Hi , I am trying Wicketstuff-push with a small chat program , but encounter this problem : org.apache.wicket.WicketRuntimeException: Method onFormSubmitted of interface org.apache.wicket.markup.html.form.IFormSubmitListener targeted at component [MarkupContainer [Component id = sayForm]] threw an

[1.4.9] Ajax displayed label not compatible with IE6/7/8 if the label contains pre tag !

2010-07-25 Thread smallufo
If a label is default invisible and is setVisible(true) in an AjaxButton.onSubmit() , and if that label containing prexxx/pre string, it will fail to render in IE 6/8 . IE6/8 report wicket-ajax.js has something wrong ... I don't have IE7 , but I think the result is the same : HTML form

Re: [1.4.9] Ajax displayed label not compatible with IE6/7/8 if the label contains pre tag !

2010-07-25 Thread smallufo
I have created a JIRA issue with quickstart file here : https://issues.apache.org/jira/browse/WICKET-2965 https://issues.apache.org/jira/browse/WICKET-2965 2010/7/26 smallufo small...@gmail.com HTML form wicket:id=form input type=button value=failButton wicket:id=failButton / span

Is it a good practice to use intern() in all ids ?

2010-09-25 Thread smallufo
I am using a profiler to analyze an OOM heap-dump file , and find tons of duplicated Strings . These strings are mostly IDs of wicket components or PropertyModel's expression ... I wonder if it a good practice to intern() all these Strings ? such as : private final static String TIME_STR =

How to get other page's localized messages ?

2010-11-03 Thread smallufo
If I have two WebPages : Page1.java Page1.properties , which stores default value Page1_zh.properties , which stores Chinese translations And Page2.java How do I get Page1's specific localized message in Page2 ? I noticed the StringResourceModel , but it seems not what I want.

AjaxLink overridden by SimpleAttributeModifier(onclick)

2010-11-23 Thread smallufo
If I want to add a simple 'onclick warning' to an AjaxLink , the ajax's behavior will be overridden by : ajaxLink.add( new SimpleAttributeModifier(onclick, return confirm('sure ?');)); How to avoid this ?

implicit key in PageParameter ?

2010-12-01 Thread smallufo
Hi , I wonder how to build an implicit key when a Page is mountBookmarkablePage() ? Suppose I have a TagPage , that accepts a parameter : name , and if the TagPage is mounted to /tag prefix The url will look like : http://foobar.com/app/tag/name/abc I feel the name is redundant I hope I can

Re: implicit key in PageParameter ?

2010-12-01 Thread smallufo
Hi , thanks . But it seems that IndexedParamUrlCodingStrategy only accepts integer parameters. I need String value ... 2010/12/1 Martin Grigorov mgrigo...@apache.org See Indexed** UrlCodingStrategies On Wed, Dec 1, 2010 at 11:52 AM, smallufo small...@gmail.com wrote: Hi , I wonder how

Re: implicit key in PageParameter ?

2010-12-01 Thread smallufo
Hi I found the solution , it is MixedParamUrlCodingStrategy Thanks. 2010/12/1 smallufo small...@gmail.com Hi , thanks . But it seems that IndexedParamUrlCodingStrategy only accepts integer parameters. I need String value ... 2010/12/1 Martin Grigorov mgrigo...@apache.org See Indexed

How to I get an un-proxied Spring Bean ?

2010-12-14 Thread smallufo
I have a page with such definition : public class CrudPageT extends Serializable extends WebPage { public CrudPage(PageParameters pps , AbstractDaoT dao) {...} } and here is how I initialize the page : CrudPageUser page = new CrudPageUser(pps , userDao); the userDao is a Spring injected DAO

Re: How to I get an un-proxied Spring Bean ?

2010-12-14 Thread smallufo
Hi , I tried : dao.getClass() = class org.apache.wicket.proxy.$Proxy101 dao.getClass().getGenericSuperclass() = class java.lang.reflect.Proxy dao.getClass().getSuperclass() = class java.lang.reflect.Proxy But still unable to get the dao class 2010/12/14 Pedro Santos pedros...@gmail.com

How to programmatically get PlatformTransactionManager of a DAO ?

2010-12-18 Thread smallufo
I am developing a generic CRUD app , that can edit any Spring/JPA entities with a AbstractDao pattern's implementation , such as UserDaoImpl , ForumDaoImpl ...etc In my wicket page : I have to use @SpringBean to identify which PlatformTransactionManager to use , such as :

Re: How to programmatically get PlatformTransactionManager of a DAO ?

2010-12-18 Thread smallufo
Thanks. but declarative txManagement add a lot of complexity to XMLs Is there any other option ? 2010/12/19 James Carman ja...@carmanconsulting.com declarative transaction management

ResourceReference.getResource() returns NULL ?

2011-02-22 Thread smallufo
I want to build a DynamicImageResource which can scale internal (packaged) images (with name : {index}.gif ) . In getImageData() , I try to load a truly existing image , but cannot getResource() , it returns null ! Here is my code : public class ScaledImageResource extends DynamicImageResource {

wicket:link changes behavior from 1.4.15 to 1.4.19 ?

2012-02-11 Thread smallufo
wicket:linkimg src=../icons/facebookLogin_300_35.png border=0/ /wicket:link This code works fine in wicket 1.4.15 , and will generate a url like this : http://foobar.com/app/resources/foobar.login.LoginPanel/null/icons/facebookLogin_300_35.png The null in URL seems represents .. in the resource

Re: wicket:link changes behavior from 1.4.15 to 1.4.19 ?

2012-02-12 Thread smallufo
sorry for disturbance after adding the 2 lines in Application , it's solved. getResourceSettings().setParentFolderPlaceholder($up$); getResourceSettings().addResourceFolder(getServletContext().getContextPath ()); 2012/2/12 smallufo small...@gmail.com wicket:linkimg src=../icons

[6.7] How to set header of DynamicImageResource ?

2013-04-24 Thread smallufo
Hi : I wonder how to set header of DynamicImageResource ? In 1.4 , it just override setHeaders(WebResponse response) { response.setHeader(Cache-Control , no-cache); } But , how to do this in 6.7 ? If I override setResponseHeaders(ResourceResponse data , Attributes attributes) , It seems there

Re: [6.7] How to set header of DynamicImageResource ?

2013-04-24 Thread smallufo
Hi I just take Cache-Control:no-cache for example. What if I want to add additional header information, which is correct ? data.getHeaders().addHeader(key, value); ? or ((WebResponse) attributes.getResponse()).addHeader(key , value); ? Thanks.

How to get rid of -ver-blah-blah-blah.gif versioning ?

2013-05-01 Thread smallufo
I am upgrading from 1.4 to 6.7 Is the random string appended used for anti-caching or object versioning ? I try to redeploy and the appended string is identical !? Now I am stuck by how to get rid of image/resource versioning , and enable caching ... I use general Image , or override

Re: How to get rid of -ver-blah-blah-blah.gif versioning ?

2013-05-01 Thread smallufo
, May 1, 2013 at 6:36 PM, smallufo small...@gmail.com wrote: I am upgrading from 1.4 to 6.7 Is the random string appended used for anti-caching or object versioning ? I try to redeploy and the appended string is identical !? Now I am stuck by how to get rid of image/resource versioning

[wicket 6] How to get InputStream from ResourceReference ?

2013-05-02 Thread smallufo
In wicket 1.4 I can get InputStream from a ResourceReference : ResourceReference resRef = new ResourceReference(Page.class , xxx.png); InputStream is = resRef.getResource().getResourceStream().getInputStream(); But it seems invalid in wicket 6 I need to build a DynamicImageResource , which

Re: [wicket 6] How to get InputStream from ResourceReference ?

2013-05-02 Thread smallufo
2013/5/2 Martin Grigorov mgrigo...@apache.org PackageResourceStream Wow , thanks for your rapid response !

[wicket 6] Modal unable to see page's properties anymore ?

2013-05-06 Thread smallufo
I have a LoginModal which binds a LoginPage . In LoginModal.setWindowClosedCallback() method , I use LoginPage.isSuccessful() to judge if the user login successful. If login successful , I refresh the page , or do nothing. LoginModal code : http://pastebin.com/nLU2akzV LoginPage code :

Re: [wicket 6] Modal unable to see page's properties anymore ?

2013-05-07 Thread smallufo
and in its constructor check whether there is a session, and whether the flag is set and redirect to the post-login page. On Tue, May 7, 2013 at 4:03 AM, smallufo small...@gmail.com wrote: I have a LoginModal which binds a LoginPage . In LoginModal.setWindowClosedCallback() method , I use

[wicket 6] javascript confirmation via onPrecondition failed.

2013-05-07 Thread smallufo
I want to add a warning dialog when user clicks an ajax deleteLink I saw the following solution: LinkVoid deleteLink = new AjaxFallbackLinkVoid(deleteLink) { @Override public void onClick(AjaxRequestTarget target) { commentService.deleteComment(user, comment,

[wicket 6] Create/Register Spring Bean in wicket ?

2013-05-10 Thread smallufo
Hi , I wonder if it possible to programmatically create / register a spring bean in wicket? maybe in Application.init() ... Most documents about spring are making use of existent beans , and inject to WebPage or Panel via @SpringBean , and it indeed works well. But my interface implementations

Re: [wicket 6] Create/Register Spring Bean in wicket ?

2013-05-10 Thread smallufo
FactoryBean , got the idea behind it . But I still don't know how to do it in wicket ? Thanks. 2013/5/11 Igor Vaynberg igor.vaynb...@gmail.com see spring's FactoryBean, its an indirect way to create beans. -igor On Fri, May 10, 2013 at 12:33 PM, smallufo small...@gmail.com wrote: Hi , I wonder

Re: [wicket 6] Create/Register Spring Bean in wicket ?

2013-05-10 Thread smallufo
); But in a WebPage with a @SpringBean(name=myobj) private IMyObj myobj; I still get NoSuchBeanDefinitionException error ... 2013/5/11 smallufo small...@gmail.com Hi Is there any code example to create beans and register to spring ? I can get ApplicationContext

Re: [wicket 6] Create/Register Spring Bean in wicket ?

2013-05-11 Thread smallufo
2013/5/11 Marco Springer ma...@glitchbox.nl Maybe this is too simple but: Did you define this bean in the applicationContext.xml?: bean id=myobj class={impl. class}{possible properties}/bean No this is not what I want. The whole story is ... I have two maven repositories : One is

Re: [wicket 6] Create/Register Spring Bean in wicket ?

2013-05-13 Thread smallufo
I solve this problem by introducing another spring's xml inside wicket's repository, which I didn't want to do this at first. (I was looking for a programmatic way , but it seems not so easy... ) 2013/5/11 smallufo small...@gmail.com 2013/5/11 Marco Springer ma...@glitchbox.nl Maybe

Deserialization InvalidClassException : no valid constructor

2013-05-13 Thread smallufo
Today I encountered one famous deserialization problem : InvalidClassException : no valid constructor I googled and found some solution , but all are in-vain. The solution says the first non-serializable super class should define a no-arg constructor. But I try to define a no-arg constructor to

Re: Deserialization InvalidClassException : no valid constructor

2013-05-21 Thread smallufo
. It is it the first non-serializable class in the hierarchy that needs to have it, not the first serializable one, like in your example. Besides, you would still lose all data stored in the BufferedImage's fields (i.e. the image stored in it). On Mon, May 13, 2013 at 7:15 PM, smallufo small...@gmail.com

Re: Deserialization InvalidClassException : no valid constructor

2013-05-27 Thread smallufo
to recreate the image? Or, you could store the BufferedImage's content to an actual image file (using ImageIO)? On Wed, May 22, 2013 at 5:39 AM, smallufo small...@gmail.com wrote: Thanks. But in my example , I cannot modify BufferedImage (to add a no-arg constructor) What should I do

Fragment(String,String) is deprecated ?

2007-12-24 Thread smallufo
In 1.3 rc2 , I found Fragment(String,String) is deprecated . I see the src, saying : @deprecated use [EMAIL PROTECTED] #Fragment(String, String, MarkupContainer)} But I don't know what should I fill in the MarkupContainer . ... ? span wicket:id=myPanelExample input (will be removed)/span

FormComponentPanel and setConvertedInput()

2008-01-11 Thread smallufo
Hi , I am evaluating FormComponentPanel . I looked into the document , it seems setConvertedInput() is the proper way . I use another method , which skips the setConvertedInput() , I don't know if it is suggested : Here is the code : public class TimePanel extends FormComponentPanel { private

How to get a form component's value that is not a sub-node of the Form.

2008-01-24 Thread smallufo
I have a Form component : SomeCheckGroup added to a SomePanel. For screen arrangement purpose , this SomePanel is not a sub-node of the Form , it's outside of the Form . It looks like this : OutmostPanel add FormPanel FormPanel add MainForm MainForm add other form components OutmostPanel

Re: How to get a form component's value that is not a sub-node of the Form.

2008-01-26 Thread smallufo
Can you specify details more precisely ? According to http://www.thescripts.com/forum/thread95602.html It seems nested forms is forbidden. 2008/1/25, Eelco Hillenius [EMAIL PROTECTED]: You could try nested forms. Eelco On Jan 24, 2008 11:19 AM, smallufo [EMAIL PROTECTED] wrote: I have

Wicket as a front controller ?

2008-02-23 Thread smallufo
Hi . I wonder if wicket can act as a servlet front controller ? I have a normal wicket webapp , but I need one endpoint to process Yahoo's bbAuth's request. Yes , I can write normal servlet to process this , but normal servlet lacks of spring injection and cannot access to wicket's environment.

Re: Wicket as a front controller ?

2008-02-23 Thread smallufo
Thank you , but I want a (bookmarkable) page without HTML Is it possible ? 2008/2/24, Kent Tong [EMAIL PROTECTED]: smallufo wrote: I have a normal wicket webapp , but I need one endpoint to process Yahoo's bbAuth's request. Yes , I can write normal servlet to process

Re: Wicket as a front controller ?

2008-02-24 Thread smallufo
Tong [EMAIL PROTECTED]: smallufo wrote: Thank you , but I want a (bookmarkable) page without HTML Is it possible ? What do you want to output? - -- Kent Tong Wicket tutorials freely available at http://www.agileskills2.org/EWDW Axis2 tutorials freely available at http

  1   2   >