Re: TabbelPanel doesnt work in appengine

2010-05-05 Thread Murat Yücel
Hi Alexander

Thanks a lot for the workaround. It is working without any problems.
Hopefully wicket devs will consider making the framework more GAE enabled.

/Murat

On Wed, May 5, 2010 at 9:20 AM, Alexander Monakhov domin...@gmail.com wrote:
 Hey.

 I met the same problem when I started to implement my app using Wicket and
 GAE. On GAE there is problem with serialization. GAE prohibits to use
 replacement substitution, so WIcket's methods like Component#modelChanged()
 or Component#modelChanging() cause AccessControlContext. To fix this problem
 I extended TabbedPanel class and overwrote some significant methods. Here is
 code for you. It works on GAE for my application more then 3 month without
 any problem.

 /**
  * @author dominity
  *
  * Implementation of Wicket's {...@link TabbedPanel} that has ability to work
 on
  * Google App Engine. Currently there is problem with serialization of
 model.
  * GAE prohibits to use replacement substitution, so any time tab switching
 is
  * invoked, AccessControlContext is threw. To avoid this behavior
  * {...@link Component#setDefaultModelObject(Object)} is overwritten to
  * hide {...@link Component#modelChanging()} and
  * {...@link Component#modelChanged()} methods invocation before/after model's
  * object setting. Also, {...@link TabbedPanel#setSelectedTab(int)} is
 overwritten
  * to switch from using of {...@link Component#setDefaultModelObject(Object)}
 to
  * {...@link #setDefModelObject(Object)}.
  */
 public class GAETabbedPanel extends TabbedPanel {

    // copy of boolean array from TabbedPanel to avoid serialization
 problems on
    // GAE
    private transient Boolean[] tabsVisibilityCache;

    /**
     * @param id
     *                 id of span on markup page
     * @param tabs
     *                 list of {...@link ITab}s
     * @see TabbedPanel
     */
    public GAETabbedPanel( String id, ListITab tabs ) {
        super( id, tabs );

    }

   �...@override
    public void setSelectedTab( int index ) {
        if ( index  0 || ( index = getTabs().size()  index  0 ) ) {
            throw new IndexOutOfBoundsException();
        }

        // here is only change in comparison to
 TabbedPanel#setSelectedTab(int)
        setDefModelObject( new Integer( index ) );

        final Component component;

        if ( getTabs().size() == 0 || !isTabVisible( index ) ) {
            // no tabs or the currently selected tab is not visible
            component = new WebMarkupContainer( TAB_PANEL_ID );
        } else {
            // show panel from selected tab
            ITab tab = getTabs().get( index );
            component = tab.getPanel( TAB_PANEL_ID );
            if ( component == null ) {
                throw new WicketRuntimeException(
                        ITab.getPanel() returned null. TabbedPanel [
                                + getPath() + ] ITab index [ + index + ]
 );

            }
        }

        if ( !component.getId().equals( TAB_PANEL_ID ) ) {
            throw new WicketRuntimeException(
                    ITab.getPanel() returned a panel with invalid id [
                            + component.getId()
                            + ]. You must always return a panel with id
 equal 
                            + to the provided panelId parameter.
 TabbedPanel [
                            + getPath() + ] ITab index [ + index + ] );
        }

        addOrReplace( component );
    }

    /* duplication of the same method at TabbedPanel class in case of
     *  setDefaultModelObject(Object) overwriting.*/
    private boolean isTabVisible( int tabIndex ) {
        if ( tabsVisibilityCache == null ) {
            tabsVisibilityCache = new Boolean[ getTabs().size() ];
        }

        if ( tabsVisibilityCache.length  0 ) {
            Boolean visible = tabsVisibilityCache[ tabIndex ];
            if ( visible == null ) {
                visible = getTabs().get( tabIndex ).isVisible();
                tabsVisibilityCache[ tabIndex ] = visible;
            }
            return visible;
        } else {
            return false;
        }
    }

    /**
     * It's duplication of {...@link #setDefaultModelObject(Object)} except it
     * doesn't invoke {...@link #modelChanging()} and {...@link 
 #modelChanged()}
     * before/after model's object setting. This prevents
     * {...@link AccessControlException} is threw during tab switching.
     *
     * @param object
     *            The object to set
     * @return this
     * @see #setDefaultModelObject(Object)
     */
   �...@suppresswarnings( unchecked )
    public final Component setDefModelObject( final Object object ) {
        final IModelObject model = (IModelObject) getDefaultModel();

        // Check whether anything can be set at all
        if ( model == null ) {
            throw new IllegalStateException(
                    Attempt to set model object on null model of component:
 
                            + getPageRelativePath() );
        }

        

TabbelPanel doesnt work in appengine

2010-05-04 Thread Murat Yücel
Hi All

I am making a small application which is running at appengine. The
code was running fine until i desided to use TabbedPanel.
I have searched on google and it seems like other people have the same
issue. People has reported issues at google appengine,
but cant this not be solved in wicket scope?

Or does anyone have a workaround to this issue? Or should i just not
use TabbedPanel :)...

I can send the whole stacktrace but this is a part of it:
Caused by: java.security.AccessControlException: access denied
(java.io.SerializablePermission enableSubstitution)
at 
java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
at 
java.security.AccessController.checkPermission(AccessController.java:546)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at 
com.google.appengine.tools.development.DevAppServerFactory$CustomSecurityManager.checkPermission(DevAppServerFactory.java:166)
at 
java.io.ObjectOutputStream.enableReplaceObject(ObjectOutputStream.java:592)
at 
org.apache.wicket.util.lang.Objects$ReplaceObjectOutputStream.init(Objects.java:183)

/Murat

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



Re: SOLVED: Is AnnotApplicationContextMock() broken in Wicket 1.4.5? @l

2009-12-30 Thread Murat Yücel
It doesnt work in all cases. You therefore need to set the wicket
application before running the code below.

/Murat

2009/12/28 Alec Swan alecs...@gmail.com:
 The problem was that the test case was creating AnnotApplicationContextMock
 before creating the WebApplication itself. The following code worked for me:

 MyApplication webApp = new MyApplication()
        {
           �...@override
            public void init() {
                addComponentInstantiationListener(new
 SpringComponentInjector(this, new AnnotApplicationContextMock(), false));
            }
        };

 Alec


 On Mon, Dec 28, 2009 at 11:01 AM, Alec Swan alecs...@gmail.com wrote:

 I just upgraded from Wicket 1.4.2 to Wicket 1.4.5 and started receiving the
 following exceptions from my Unit test.

 Is this a known issue or do I need to change my test?

 Thanks.

 org.apache.wicket.WicketRuntimeException: *There is no application
 attached to current thread main*
         at org.apache.wicket.Application.get(Application.java:179)
         at
 org.apache.wicket.injection.web.InjectorHolder.setInjector(InjectorHolder.java:88)
         at
 org.apache.wicket.spring.injection.annot.test.AnnotApplicationContextMock.init(AnnotApplicationContextMock.java:61)
         at
 com.galecsy.lrm.wicket.referral.ReferralFormTest.beforeTest(ReferralFormTest.java:43)
         at
 org.springframework.test.context.junit4.SpringMethodRoadie.runBefores(SpringMethodRoadie.java:273)
         at
 org.springframework.test.context.junit4.SpringMethodRoadie$RunBeforesThenTestThenAfters.run(SpringMethodRoadie.java:332)
         at
 org.springframework.test.context.junit4.SpringMethodRoadie.runWithRepetitions(SpringMethodRoadie.java:217)
         at
 org.springframework.test.context.junit4.SpringMethodRoadie.runTest(SpringMethodRoadie.java:197)
         at
 org.springframework.test.context.junit4.SpringMethodRoadie.run(SpringMethodRoadie.java:143)
         at
 org.springframework.test.context.junit4.SpringJUnit4ClassRunner.invokeTestMethod(SpringJUnit4ClassRunner.java:160)
         at
 org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:97)





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



Re: will there be a performance gain to use singleton to remove references to the service object in models?

2009-07-28 Thread Murat Yücel
Hi Jason

I dont have a performance comparison, but i cannot see why you should
gain better performance.
All spring beans are as default singleton, so you will just forward a
singleton using a singleton.

/Murat

2009/7/28 Jason Wang jason.w...@bulletin.net:
 Hi all,

 Although I am using spring-wicket to prevent the whole spring being
 serialized, It still brothers me to  see the  references in the model
 object, for example:

 Instead of using this:

 public class MyViewObjectProvider extends SortableDataProvider{
   �...@springbean(daoService)
    private  DAOServices daoService;

    private String objectID;

    public Iterator iterator(final int first, final int count){
         .
      return daoService.load(objectId).subList(first,
 first+count).iterator();
   }

 }



 I always write a singleton helper class for the service to be used, so I can
 have the model this way:

 public class MyViewObjectProvider extends SortableDataProvider{
    //so no reference to the dao service object

    private String objectID;
     public Iterator iterator(final int first, final int count){
         .
   //here the DAOServiceHelper.get() returns a instance that managed by
 spring(with the actual service object injected.)
      return DAOServiceHelper.get().load(objectId).subList(first,
 first+count).iterator();
   }

  }

 So my question is, will there be a noticeable  performance gain to do it the
 2nd way?
 The reason to ask is that the static kind of singleton usage is indeed
 anti-spring, and makes
 my eyes bleed

 If no one has done a performance comparison, I might have to do one myself.
 Just being lazy...


 Thanks,

 Jason Wang




 -
 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: org.apache.wicket.WicketRuntimeException: Exception in rendering component: [MarkupContainer [Component id = login]]

2009-05-11 Thread Murat Yücel
Hi Anders

I had a almost similar issue with my application. My problem was
caused because i didnt have access to the file system (google app
engine). I solved the problem by setting the following in
my application class.

getResourceSettings().setResourcePollFrequency(null);

/Murat

2009/5/11 Anders Peterson ap...@optimatika.se:
 What exactly does this stacktrace (below) mean?

 In development, eclipse  jetty, the application works fine. When deployed
 (tomcat) the app cannot render login page (I suppose it can't render
 anything).

 /Anders

 WicketMessage: Exception in rendering component: [MarkupContainer [Component
 id = login]]

 Root cause:

 java.security.AccessControlException: access denied
 (java.lang.reflect.ReflectPermission suppressAccessChecks)
 at
 java.security.AccessControlContext.checkPermission(AccessControlContext.java:342)
 at java.security.AccessController.checkPermission(AccessController.java:553)
 at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
 at
 java.lang.reflect.AccessibleObject.setAccessible(AccessibleObject.java:125)
 at
 org.apache.wicket.util.lang.PropertyResolver$MethodGetAndSet.init(PropertyResolver.java:1044)
 at
 org.apache.wicket.util.lang.PropertyResolver.getGetAndSetter(PropertyResolver.java:459)
 at
 org.apache.wicket.util.lang.PropertyResolver.getObjectAndGetSetter(PropertyResolver.java:281)
 at
 org.apache.wicket.util.lang.PropertyResolver.getValue(PropertyResolver.java:90)
 at
 org.apache.wicket.model.AbstractPropertyModel.getObject(AbstractPropertyModel.java:117)
 at org.apache.wicket.Component.getDefaultModelObject(Component.java:1653)
 at
 org.apache.wicket.Component.getDefaultModelObjectAsString(Component.java:1675)
 at
 org.apache.wicket.markup.html.form.FormComponent.getModelValue(FormComponent.java:1367)
 at
 org.apache.wicket.markup.html.form.FormComponent.getValue(FormComponent.java:869)
 at
 org.apache.wicket.markup.html.form.TextField.onComponentTag(TextField.java:106)
 at org.apache.wicket.Component.renderComponent(Component.java:2600)
 at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1525)
 at org.apache.wicket.Component.render(Component.java:2454)
 at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1403)
 at
 org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1590)
 at
 org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1514)
 at
 org.apache.wicket.markup.html.form.Form.onComponentTagBody(Form.java:1897)
 at org.apache.wicket.Component.renderComponent(Component.java:2629)
 at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1525)
 at org.apache.wicket.markup.html.form.Form.onRender(Form.java:1968)
 at org.apache.wicket.Component.render(Component.java:2454)
 at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1403)
 at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1541)
 at org.apache.wicket.Page.onRender(Page.java:1547)
 at org.apache.wicket.Component.render(Component.java:2454)
 at org.apache.wicket.Page.renderPage(Page.java:914)
 at
 org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:262)
 at
 org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:105)
 at
 org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1248)
 at org.apache.wicket.RequestCycle.step(RequestCycle.java:1319)
 at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1418)
 at org.apache.wicket.RequestCycle.request(RequestCycle.java:544)
 at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:456)
 at
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:289)
 at java.lang.reflect.Method.invoke(Method.java:616)
 at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
 at java.security.AccessController.doPrivileged(Native Method)
 at javax.security.auth.Subject.doAsPrivileged(Subject.java:537)
 at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
 at
 org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:218)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
 at
 org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:56)
 at
 org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)
 at java.security.AccessController.doPrivileged(Native Method)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
 at
 

Re: Cookie retrieval issue.

2009-03-29 Thread Murat Yücel
Hi Peter

I was creating cookie objects almost in the same way. I was just missing the
context path part. I have added it, but still no change.

When i am retrieving the cookie from my BasePage then i get nothing:
((WebRequestCycle)
RequestCycle.get()).getWebRequest().getCookie(cookieName);

I have changed the logic so i iterate through a list of cookies just like
you do in jtrac. That didnt work either.

Then i moved the logic from the basepage to an IAuthorizationStrategy but
still no luck.

It is very strange. I guess the only difference right now is that i am using
wicket-1.4-rc2

/Murat

2009/3/29 Peter Thomas ptrtho...@gmail.com

 2009/3/28 Murat Yücel kodeperke...@gmail.com

  Hi Peter
 
  Thanks for the response. The context path hack works when logging out.
  But
  i still have a problem when i want to auto login.
 
  I log in with an user. Then the cookie is saved. I close the browser. And
  then i open a new browser, enter the url and expects that the user is
 auto
  login. But when i am trying to to retrieve the cookie from the request
 then
  i get null. The funny thing is that the textfields for username and
  password
  are filled out so the cookie exist. I am just not able to retrieve it.


 Here is the code I use for creating an auto-login cookie, maybe it will
 help: (line #131 onwards)


 http://fisheye3.atlassian.com/browse/j-trac/trunk/jtrac/src/main/java/info/jtrac/wicket/LoginPage.java?r=1231#l131


 
 
  /Murat
 
  2009/3/28 Peter Thomas ptrtho...@gmail.com
 
   2009/3/28 Murat Yücel kodeperke...@gmail.com
  
Hi Guys do you need more information regarding this issue or should i
create
a small quickstart application? I cant really figure out why i am
experiencing this error...
   
/Murat
   
2009/3/9 Murat Yücel kodeperke...@gmail.com
   
 Hi All

 I am experiencing a similar problem, as this jira issue:
 https://issues.apache.org/jira/browse/WICKET-2011

 I am trying to make auto login work. When you login and check the
remember
 box then a
 cookie is persisted. Whenever i logout the cookie is removed by
  calling
the
 clear method on
 the request. The problem is that the cookie is not cleared on
 logout
   when
 having a context path.
 I am still seing the cookie value but that should have been
 cleared.

   
  
   I create a new cookie with the same name but no data to overwrite  the
  old
   one (line #108 onwards), works for me.  Can't remember now how I
 arrived
  at
   this, there may be a better way.
  
  
  
 
 http://fisheye3.atlassian.com/browse/j-trac/trunk/jtrac/src/main/java/info/jtrac/wicket/HeaderPanel.java?r=1288#l108
  
  
 Similar the cookie should not die when the cookie die, but somehow
  the
 cookie age is set to
 max age -1 when i open a new session.

 Hopefully someone can help me.

 /Murat

   
  
 



Re: Cookie retrieval issue.

2009-03-29 Thread Murat Yücel
Thanks a lot. Will look into it.

2009/3/29 Peter Thomas ptrtho...@gmail.com

 2009/3/29 Murat Yücel kodeperke...@gmail.com

  Hi Peter
 
  I was creating cookie objects almost in the same way. I was just missing
  the
  context path part. I have added it, but still no change.
 
  When i am retrieving the cookie from my BasePage then i get nothing:
  ((WebRequestCycle)
  RequestCycle.get()).getWebRequest().getCookie(cookieName);
 
  I have changed the logic so i iterate through a list of cookies just like
  you do in jtrac. That didnt work either.
 
  Then i moved the logic from the basepage to an IAuthorizationStrategy but
  still no luck.
 
  It is very strange. I guess the only difference right now is that i am
  using
  wicket-1.4-rc2


 Okay, you found the IAuthorizationStrategy code I meant to link to that
 also
 last time.

 I must say I had some trouble with getting all this to work, there used to
 be a few outstanding bugs on the app.  But I find it hard to believe that
 you can't find the cookie even when iterating over all available for given
 request.  Maybe it is best you create a quickstart and open a JIRA.
  Another
 tip is you could use a FireFox plugin such as HttpFox [
 https://addons.mozilla.org/en-US/firefox/addon/6647 ] to see what cookies
 are being sent as well as received.


  /Murat
 
  2009/3/29 Peter Thomas ptrtho...@gmail.com
 
   2009/3/28 Murat Yücel kodeperke...@gmail.com
  
Hi Peter
   
Thanks for the response. The context path hack works when logging
  out.
But
i still have a problem when i want to auto login.
   
I log in with an user. Then the cookie is saved. I close the browser.
  And
then i open a new browser, enter the url and expects that the user is
   auto
login. But when i am trying to to retrieve the cookie from the
 request
   then
i get null. The funny thing is that the textfields for username and
password
are filled out so the cookie exist. I am just not able to retrieve
 it.
  
  
   Here is the code I use for creating an auto-login cookie, maybe it will
   help: (line #131 onwards)
  
  
  
 
 http://fisheye3.atlassian.com/browse/j-trac/trunk/jtrac/src/main/java/info/jtrac/wicket/LoginPage.java?r=1231#l131
  
  
   
   
/Murat
   
2009/3/28 Peter Thomas ptrtho...@gmail.com
   
 2009/3/28 Murat Yücel kodeperke...@gmail.com

  Hi Guys do you need more information regarding this issue or
 should
  i
  create
  a small quickstart application? I cant really figure out why i am
  experiencing this error...
 
  /Murat
 
  2009/3/9 Murat Yücel kodeperke...@gmail.com
 
   Hi All
  
   I am experiencing a similar problem, as this jira issue:
   https://issues.apache.org/jira/browse/WICKET-2011
  
   I am trying to make auto login work. When you login and check
 the
  remember
   box then a
   cookie is persisted. Whenever i logout the cookie is removed by
calling
  the
   clear method on
   the request. The problem is that the cookie is not cleared on
   logout
 when
   having a context path.
   I am still seing the cookie value but that should have been
   cleared.
  
 

 I create a new cookie with the same name but no data to overwrite
   the
old
 one (line #108 onwards), works for me.  Can't remember now how I
   arrived
at
 this, there may be a better way.



   
  
 
 http://fisheye3.atlassian.com/browse/j-trac/trunk/jtrac/src/main/java/info/jtrac/wicket/HeaderPanel.java?r=1288#l108


   Similar the cookie should not die when the cookie die, but
  somehow
the
   cookie age is set to
   max age -1 when i open a new session.
  
   Hopefully someone can help me.
  
   /Murat
  
 

   
  
 



Re: Cookie retrieval issue.

2009-03-29 Thread Murat Yücel
Hi Peter

I have made a simple quickstart application which has the same issue as i
have described. I have attached it to the mailing list. Do you have the time
to look it through? Or should i just create a jira?

Steps:
1) Enter homepage, type username (admin) password (password) and press
login.
2) Close the browser and open a new browser.
3) Expected result to see a logout button, but i get the login panel.

The above is tested in IE7

/Murat

2009/3/29 Murat Yücel kodeperke...@gmail.com

 Thanks a lot. Will look into it.


 2009/3/29 Peter Thomas ptrtho...@gmail.com

 2009/3/29 Murat Yücel kodeperke...@gmail.com

  Hi Peter
 
  I was creating cookie objects almost in the same way. I was just missing
  the
  context path part. I have added it, but still no change.
 
  When i am retrieving the cookie from my BasePage then i get nothing:
  ((WebRequestCycle)
  RequestCycle.get()).getWebRequest().getCookie(cookieName);
 
  I have changed the logic so i iterate through a list of cookies just
 like
  you do in jtrac. That didnt work either.
 
  Then i moved the logic from the basepage to an IAuthorizationStrategy
 but
  still no luck.
 
  It is very strange. I guess the only difference right now is that i am
  using
  wicket-1.4-rc2


 Okay, you found the IAuthorizationStrategy code I meant to link to that
 also
 last time.

 I must say I had some trouble with getting all this to work, there used to
 be a few outstanding bugs on the app.  But I find it hard to believe that
 you can't find the cookie even when iterating over all available for given
 request.  Maybe it is best you create a quickstart and open a JIRA.
  Another
 tip is you could use a FireFox plugin such as HttpFox [
 https://addons.mozilla.org/en-US/firefox/addon/6647 ] to see what cookies
 are being sent as well as received.


  /Murat
 
  2009/3/29 Peter Thomas ptrtho...@gmail.com
 
   2009/3/28 Murat Yücel kodeperke...@gmail.com
  
Hi Peter
   
Thanks for the response. The context path hack works when logging
  out.
But
i still have a problem when i want to auto login.
   
I log in with an user. Then the cookie is saved. I close the
 browser.
  And
then i open a new browser, enter the url and expects that the user
 is
   auto
login. But when i am trying to to retrieve the cookie from the
 request
   then
i get null. The funny thing is that the textfields for username and
password
are filled out so the cookie exist. I am just not able to retrieve
 it.
  
  
   Here is the code I use for creating an auto-login cookie, maybe it
 will
   help: (line #131 onwards)
  
  
  
 
 http://fisheye3.atlassian.com/browse/j-trac/trunk/jtrac/src/main/java/info/jtrac/wicket/LoginPage.java?r=1231#l131
  
  
   
   
/Murat
   
2009/3/28 Peter Thomas ptrtho...@gmail.com
   
 2009/3/28 Murat Yücel kodeperke...@gmail.com

  Hi Guys do you need more information regarding this issue or
 should
  i
  create
  a small quickstart application? I cant really figure out why i
 am
  experiencing this error...
 
  /Murat
 
  2009/3/9 Murat Yücel kodeperke...@gmail.com
 
   Hi All
  
   I am experiencing a similar problem, as this jira issue:
   https://issues.apache.org/jira/browse/WICKET-2011
  
   I am trying to make auto login work. When you login and check
 the
  remember
   box then a
   cookie is persisted. Whenever i logout the cookie is removed
 by
calling
  the
   clear method on
   the request. The problem is that the cookie is not cleared on
   logout
 when
   having a context path.
   I am still seing the cookie value but that should have been
   cleared.
  
 

 I create a new cookie with the same name but no data to overwrite
   the
old
 one (line #108 onwards), works for me.  Can't remember now how I
   arrived
at
 this, there may be a better way.



   
  
 
 http://fisheye3.atlassian.com/browse/j-trac/trunk/jtrac/src/main/java/info/jtrac/wicket/HeaderPanel.java?r=1288#l108


   Similar the cookie should not die when the cookie die, but
  somehow
the
   cookie age is set to
   max age -1 when i open a new session.
  
   Hopefully someone can help me.
  
   /Murat
  
 

   
  
 




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

Re: Cookie retrieval issue.

2009-03-28 Thread Murat Yücel
Hi Guys do you need more information regarding this issue or should i create
a small quickstart application? I cant really figure out why i am
experiencing this error...

/Murat

2009/3/9 Murat Yücel kodeperke...@gmail.com

 Hi All

 I am experiencing a similar problem, as this jira issue:
 https://issues.apache.org/jira/browse/WICKET-2011

 I am trying to make auto login work. When you login and check the remember
 box then a
 cookie is persisted. Whenever i logout the cookie is removed by calling the
 clear method on
 the request. The problem is that the cookie is not cleared on logout when
 having a context path.
 I am still seing the cookie value but that should have been cleared.

 Similar the cookie should not die when the cookie die, but somehow the
 cookie age is set to
 max age -1 when i open a new session.

 Hopefully someone can help me.

 /Murat



Re: AjaxFallbackDefaultDataTable and AjaxSelfUpdatingTimerBehavior

2009-03-28 Thread Murat Yücel
Hi Guys

Does anyone have a clue how to solve my problem below?
The code can be found here:
https://ninan.svn.sourceforge.net/svnroot/ninan/branches/v2.0.0

The logic is in this class:
https://ninan.svn.sourceforge.net/svnroot/ninan/branches/v2.0.0/ninan-frontend/src/main/java/dk/team/ninan/frontend/wicket/overview/OverviewPanel.java

/Murat

2009/3/27 Murat Yücel kodeperke...@gmail.com

 Hi All

 I have a question regarding how to add AjaxSelfUpdatingTimerBehaviors to
 some of the cells in a datatable.
 What is the best practice and should i use something else?

 Today i have a list of items which is retrieved from the database each time
 there is a request. The refresh
 rate can be set by the user in a setting page. I have made a quick solution
 where i was adding an
 AjaxSelfUpdatingTimerBehavior to the whole table. It is working perfectly
 fine for high refresh rates, but
 if the user sets the refresh rate to 1 second then the refresh gives
 problem.

 The AjaxFallbackDefaultDataTable includes checkboxes and is inside a form.
 I am now trying to change
 the logic so only the relevant cells are updated. The problem is that i
 cannot figure out how to do it. Because
 the model for each item will be called but the dataprovider is not called
 to retrieve the newest data from the
 database.

 Hope that someone can help or suggest a better solution.

 The project is open source so if you need to see code you just say the word
 :)

 Kind regards

 /Murat



Re: Cookie retrieval issue.

2009-03-28 Thread Murat Yücel
Hi Peter

Thanks for the response. The context path hack works when logging out. But
i still have a problem when i want to auto login.

I log in with an user. Then the cookie is saved. I close the browser. And
then i open a new browser, enter the url and expects that the user is auto
login. But when i am trying to to retrieve the cookie from the request then
i get null. The funny thing is that the textfields for username and password
are filled out so the cookie exist. I am just not able to retrieve it.

/Murat

2009/3/28 Peter Thomas ptrtho...@gmail.com

 2009/3/28 Murat Yücel kodeperke...@gmail.com

  Hi Guys do you need more information regarding this issue or should i
  create
  a small quickstart application? I cant really figure out why i am
  experiencing this error...
 
  /Murat
 
  2009/3/9 Murat Yücel kodeperke...@gmail.com
 
   Hi All
  
   I am experiencing a similar problem, as this jira issue:
   https://issues.apache.org/jira/browse/WICKET-2011
  
   I am trying to make auto login work. When you login and check the
  remember
   box then a
   cookie is persisted. Whenever i logout the cookie is removed by calling
  the
   clear method on
   the request. The problem is that the cookie is not cleared on logout
 when
   having a context path.
   I am still seing the cookie value but that should have been cleared.
  
 

 I create a new cookie with the same name but no data to overwrite  the old
 one (line #108 onwards), works for me.  Can't remember now how I arrived at
 this, there may be a better way.


 http://fisheye3.atlassian.com/browse/j-trac/trunk/jtrac/src/main/java/info/jtrac/wicket/HeaderPanel.java?r=1288#l108


   Similar the cookie should not die when the cookie die, but somehow the
   cookie age is set to
   max age -1 when i open a new session.
  
   Hopefully someone can help me.
  
   /Murat
  
 



Re: AjaxFallbackDefaultDataTable and AjaxSelfUpdatingTimerBehavior

2009-03-28 Thread Murat Yücel
Hi Igor

I am extending the SortableDataProvider and the model method is returning a
new CompountPropertyModel which includes my own entity model. The entity
model is a loadabledetacheabble model which only keeps the id. on load the
data will be retrieved from the database.

https://ninan.svn.sourceforge.net/svnroot/ninan/branches/v2.0.0/ninan-frontend/src/main/java/dk/team/ninan/frontend/wicket/overview/OverviewDataProvider.java

/Murat

2009/3/28 Igor Vaynberg igor.vaynb...@gmail.com

 your problem is most likely that you are not using proper models.

 in your idataprovider.model you should return a model that can load
 the data from the database on its own. you are most likely just doing
 return new model(object); which simply holds on to that object
 forever, what you should do is return new entitymodel(object) that can
 reload a fresh one.

 -igor

 2009/3/27 Murat Yücel kodeperke...@gmail.com:
  Hi All
 
  I have a question regarding how to add AjaxSelfUpdatingTimerBehaviors to
  some of the cells in a datatable.
  What is the best practice and should i use something else?
 
  Today i have a list of items which is retrieved from the database each
 time
  there is a request. The refresh
  rate can be set by the user in a setting page. I have made a quick
 solution
  where i was adding an
  AjaxSelfUpdatingTimerBehavior to the whole table. It is working perfectly
  fine for high refresh rates, but
  if the user sets the refresh rate to 1 second then the refresh gives
  problem.
 
  The AjaxFallbackDefaultDataTable includes checkboxes and is inside a
 form. I
  am now trying to change
  the logic so only the relevant cells are updated. The problem is that i
  cannot figure out how to do it. Because
  the model for each item will be called but the dataprovider is not called
 to
  retrieve the newest data from the
  database.
 
  Hope that someone can help or suggest a better solution.
 
  The project is open source so if you need to see code you just say the
 word
  :)
 
  Kind regards
 
  /Murat
 

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




Re: AjaxFallbackDefaultDataTable and AjaxSelfUpdatingTimerBehavior

2009-03-28 Thread Murat Yücel
Is it enough to do this to get the model refreshed?
cellItem.setOutputMarkupId(true);
cellItem.add(new AjaxSelfUpdatingTimerBehavior(1));

or should each cell have an entity id? Because the problem is that
populateItem doesnt get called. Unless i of course enter the page again.

/Murat

2009/3/28 Igor Vaynberg igor.vaynb...@gmail.com

 then somewhere down the stream your components are not properly
 chaining their model through this one.

 -igor

 2009/3/28 Murat Yücel kodeperke...@gmail.com:
  Hi Igor
 
  I am extending the SortableDataProvider and the model method is returning
 a
  new CompountPropertyModel which includes my own entity model. The entity
  model is a loadabledetacheabble model which only keeps the id. on load
 the
  data will be retrieved from the database.
 
 
 https://ninan.svn.sourceforge.net/svnroot/ninan/branches/v2.0.0/ninan-frontend/src/main/java/dk/team/ninan/frontend/wicket/overview/OverviewDataProvider.java
 
  /Murat
 
  2009/3/28 Igor Vaynberg igor.vaynb...@gmail.com
 
  your problem is most likely that you are not using proper models.
 
  in your idataprovider.model you should return a model that can load
  the data from the database on its own. you are most likely just doing
  return new model(object); which simply holds on to that object
  forever, what you should do is return new entitymodel(object) that can
  reload a fresh one.
 
  -igor
 
  2009/3/27 Murat Yücel kodeperke...@gmail.com:
   Hi All
  
   I have a question regarding how to add AjaxSelfUpdatingTimerBehaviors
 to
   some of the cells in a datatable.
   What is the best practice and should i use something else?
  
   Today i have a list of items which is retrieved from the database each
  time
   there is a request. The refresh
   rate can be set by the user in a setting page. I have made a quick
  solution
   where i was adding an
   AjaxSelfUpdatingTimerBehavior to the whole table. It is working
 perfectly
   fine for high refresh rates, but
   if the user sets the refresh rate to 1 second then the refresh gives
   problem.
  
   The AjaxFallbackDefaultDataTable includes checkboxes and is inside a
  form. I
   am now trying to change
   the logic so only the relevant cells are updated. The problem is that
 i
   cannot figure out how to do it. Because
   the model for each item will be called but the dataprovider is not
 called
  to
   retrieve the newest data from the
   database.
  
   Hope that someone can help or suggest a better solution.
  
   The project is open source so if you need to see code you just say the
  word
   :)
  
   Kind regards
  
   /Murat
  
 
  -
  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: AjaxFallbackDefaultDataTable and AjaxSelfUpdatingTimerBehavior

2009-03-28 Thread Murat Yücel
Hi,

Thank to both of you. I have solved the issue by adding
AjaxSelfUpdatingTimerBehavior to the panel which i add to my cellItem.
Another bug was as igor wrote that my models wasnt chained properly.

/Murat

2009/3/28 nino martinez wael nino.martinez.w...@gmail.com

 we had a thread about updating... when i did the wicket reaction
 game... search for wicket reavtion game on nabble

 2009/3/28 Murat Yücel kodeperke...@gmail.com:
  Is it enough to do this to get the model refreshed?
  cellItem.setOutputMarkupId(true);
  cellItem.add(new AjaxSelfUpdatingTimerBehavior(1));
 
  or should each cell have an entity id? Because the problem is that
  populateItem doesnt get called. Unless i of course enter the page again.
 
  /Murat
 
  2009/3/28 Igor Vaynberg igor.vaynb...@gmail.com
 
  then somewhere down the stream your components are not properly
  chaining their model through this one.
 
  -igor
 
  2009/3/28 Murat Yücel kodeperke...@gmail.com:
   Hi Igor
  
   I am extending the SortableDataProvider and the model method is
 returning
  a
   new CompountPropertyModel which includes my own entity model. The
 entity
   model is a loadabledetacheabble model which only keeps the id. on load
  the
   data will be retrieved from the database.
  
  
 
 https://ninan.svn.sourceforge.net/svnroot/ninan/branches/v2.0.0/ninan-frontend/src/main/java/dk/team/ninan/frontend/wicket/overview/OverviewDataProvider.java
  
   /Murat
  
   2009/3/28 Igor Vaynberg igor.vaynb...@gmail.com
  
   your problem is most likely that you are not using proper models.
  
   in your idataprovider.model you should return a model that can load
   the data from the database on its own. you are most likely just doing
   return new model(object); which simply holds on to that object
   forever, what you should do is return new entitymodel(object) that
 can
   reload a fresh one.
  
   -igor
  
   2009/3/27 Murat Yücel kodeperke...@gmail.com:
Hi All
   
I have a question regarding how to add
 AjaxSelfUpdatingTimerBehaviors
  to
some of the cells in a datatable.
What is the best practice and should i use something else?
   
Today i have a list of items which is retrieved from the database
 each
   time
there is a request. The refresh
rate can be set by the user in a setting page. I have made a quick
   solution
where i was adding an
AjaxSelfUpdatingTimerBehavior to the whole table. It is working
  perfectly
fine for high refresh rates, but
if the user sets the refresh rate to 1 second then the refresh
 gives
problem.
   
The AjaxFallbackDefaultDataTable includes checkboxes and is inside
 a
   form. I
am now trying to change
the logic so only the relevant cells are updated. The problem is
 that
  i
cannot figure out how to do it. Because
the model for each item will be called but the dataprovider is not
  called
   to
retrieve the newest data from the
database.
   
Hope that someone can help or suggest a better solution.
   
The project is open source so if you need to see code you just say
 the
   word
:)
   
Kind regards
   
/Murat
   
  
   -
   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




AjaxFallbackDefaultDataTable and AjaxSelfUpdatingTimerBehavior

2009-03-27 Thread Murat Yücel
Hi All

I have a question regarding how to add AjaxSelfUpdatingTimerBehaviors to
some of the cells in a datatable.
What is the best practice and should i use something else?

Today i have a list of items which is retrieved from the database each time
there is a request. The refresh
rate can be set by the user in a setting page. I have made a quick solution
where i was adding an
AjaxSelfUpdatingTimerBehavior to the whole table. It is working perfectly
fine for high refresh rates, but
if the user sets the refresh rate to 1 second then the refresh gives
problem.

The AjaxFallbackDefaultDataTable includes checkboxes and is inside a form. I
am now trying to change
the logic so only the relevant cells are updated. The problem is that i
cannot figure out how to do it. Because
the model for each item will be called but the dataprovider is not called to
retrieve the newest data from the
database.

Hope that someone can help or suggest a better solution.

The project is open source so if you need to see code you just say the word
:)

Kind regards

/Murat


Cookie retrieval issue.

2009-03-09 Thread Murat Yücel
Hi All

I am experiencing a similar problem, as this jira issue:
https://issues.apache.org/jira/browse/WICKET-2011

I am trying to make auto login work. When you login and check the remember
box then a
cookie is persisted. Whenever i logout the cookie is removed by calling the
clear method on
the request. The problem is that the cookie is not cleared on logout when
having a context path.
I am still seing the cookie value but that should have been cleared.

Similar the cookie should not die when the cookie die, but somehow the
cookie age is set to
max age -1 when i open a new session.

Hopefully someone can help me.

/Murat


Re: FormComponent cookie persistent issue

2009-01-21 Thread Murat Yücel
Just wanted to end the thread. Problem solved by the wicket team in
wicket-1.4-rc2

/Murat

2009/1/15 Murat Yücel kodeperke...@gmail.com

 I have just tried to deploy the application on a tomcat server. There are
 no difference. :(

 2009/1/11 Murat Yücel kodeperke...@gmail.com

 Hi Serkan

 I havent tried with Tomcat. Will try it and get back to you.

 /Murat

 2009/1/8 Serkan Camurcuoglu serkan.camurcuo...@telenity.com

 Murat have you tried it with tomcat, maybe it's jetty's bug?




 Murat Yücel wrote:

 Well i have create a jira issue on this problem. Hopefully someone  from
 the
 wicket team will
 have the time to fix this in a near future.
 https://issues.apache.org/jira/browse/WICKET-2011

 /Murat

 2009/1/7 jWeekend jweekend_for...@cabouge.com



 Murat,

 I tried (using the Start class) as soon as you sent your quickstart and
 witnessed the same result you did.
 I have not looked into the reason it behaves as it does or differently
 with
 a non-root context.

 Regards - Cemal
 http://www.jWeekend.com jWeekend



 Murat Yücel-2 wrote:


 Hi Serkan

 I am using the Start.java located in the test folder to startup the
 project.
 The context path is removed there.
 When I add a context path, then it is working fine. Both cookies is
 created
 with path /myproject.

 But the problem exist if you remove the context path. This is the way
 i
 run
 it on my server and i guess that
 this should also work for wicket. Can you confirm that you have the
 same
 problem when removing the context
 path.

 /Murat

 2009/1/7 Serkan Camurcuoglu serkan.camurcuo...@telenity.com



 is your application deployed to the root context (e.g. / ) ? Because


 your


 working cookie path is / while the cookie path that is not working is
 something like /homepage/wicket:interface/:0: . In my setup (I'm
 using
 the quickstart project that you sent) the path of my cookie is always
 /myproject which is the context path of the application. Can you
 repeat
 the
 same behavior using your own quickstart project? I suggest you to use
 wireshark or live http headers firefox plugin to check the http
 headers
 to
 see what's going on..




 Murat Yücel wrote:



 Hi Serkan

 I must have seen wrong before. I am getting the same thing as you
 have
 described. The expire date is one month in the future.
 The only difference is in the path variable. If you clear your
 cookies
 and
 type something in the input fields when mount is enabled.
 Are you then able to see them again when you press the login button?

 I have attached some screenshots of the cookie and the webpage I see
 with
 and without mount.

 /Murat

 2009/1/7 Serkan Camurcuoglu serkan.camurcuo...@telenity.commailto:
 serkan.camurcuo...@telenity.com


   In my case (when using mounted home page), when setting cookies,
   the expire time is automatically set as one month from current
   date, and when clearing cookies the expire time is it is set as
   01.01.1970.. It's really strange that the expire time is current
   time on your system..




   Murat Yücel wrote:

   Hi Serkan

   I am using firefox 3.1 beta2, but i dont think that this is a
   browser
   related issue, because i am seeing the same behavior in IE7.
   The cookies are created for both FF and IE. The problem is
   that they get a
   expire date set to current time, which means that they
   are not available anymore. If i remove the mount they will get
   a expire date
   in the future and the typed value will stay in the input
   field.

   For example with mount i type admin in the first input field
   and password in
   the second. Press the login link and i see that the
   input fields are reset. If i remove the mount and do the same,
   admin and
   password will stay in the input fields.

   /Murat

   2009/1/6 Serkan Camurcuoglu serkan.camurcuo...@telenity.com
   mailto:serkan.camurcuo...@telenity.com


   Hi Murat,
   It seems to work both ways in my setup. I'm using Firefox
   3.0. It
   successfully saves the username and password when I check
   the remember me
   checkbox, and clears them when I uncheck it. Did you check
   the host, path
   and the values of the cookies in your browser?




   Murat Yücel wrote:


   Hi again

   Did anyone had the time to look at the attached
 project?
   Are you guys seeing the same behaviour?

   /Murat

   2008/12/31 Murat Yücel kodeperke...@gmail.com
   mailto:kodeperke...@gmail.com




   Hi Cemal

   Thanks for the response. I have attached the


 project.


If you uncomment this line:
   mountBookmarkablePage(homepage, HomePage.class);

   in WicketApplication.java, then you can see the
   difference in the
   behaviour

RatingPanel which can be extended

2009-01-20 Thread Murat Yücel
Hi All

I am using RatingPanel and out of the box it is very nice, but not enough
for me.
I want the rating panel to be more modifiable.  For example could the
default
stylesheet appending be done in a better way.

Well now to my actual problem. I want the RatingPanel to be similar to
youtube
rating. It looks very good with the mouseover and mouseout effect when
rating.
Then a label on the right side is changed to whatever the rating means.

I have tried to extend the RatingPanel, but it is not pretty that you have
to create
a whole new RatingStarBar class. But my actual problem is: how can i add
mouseover
and mouseout effect on a star which will then change the label? Can this be
done
in java code or do i need to make javascript function?

Kind regards

/Murat


Re: FormComponent cookie persistent issue

2009-01-14 Thread Murat Yücel
I have just tried to deploy the application on a tomcat server. There are no
difference. :(

2009/1/11 Murat Yücel kodeperke...@gmail.com

 Hi Serkan

 I havent tried with Tomcat. Will try it and get back to you.

 /Murat

 2009/1/8 Serkan Camurcuoglu serkan.camurcuo...@telenity.com

 Murat have you tried it with tomcat, maybe it's jetty's bug?




 Murat Yücel wrote:

 Well i have create a jira issue on this problem. Hopefully someone  from
 the
 wicket team will
 have the time to fix this in a near future.
 https://issues.apache.org/jira/browse/WICKET-2011

 /Murat

 2009/1/7 jWeekend jweekend_for...@cabouge.com



 Murat,

 I tried (using the Start class) as soon as you sent your quickstart and
 witnessed the same result you did.
 I have not looked into the reason it behaves as it does or differently
 with
 a non-root context.

 Regards - Cemal
 http://www.jWeekend.com jWeekend



 Murat Yücel-2 wrote:


 Hi Serkan

 I am using the Start.java located in the test folder to startup the
 project.
 The context path is removed there.
 When I add a context path, then it is working fine. Both cookies is
 created
 with path /myproject.

 But the problem exist if you remove the context path. This is the way i
 run
 it on my server and i guess that
 this should also work for wicket. Can you confirm that you have the
 same
 problem when removing the context
 path.

 /Murat

 2009/1/7 Serkan Camurcuoglu serkan.camurcuo...@telenity.com



 is your application deployed to the root context (e.g. / ) ? Because


 your


 working cookie path is / while the cookie path that is not working is
 something like /homepage/wicket:interface/:0: . In my setup (I'm
 using
 the quickstart project that you sent) the path of my cookie is always
 /myproject which is the context path of the application. Can you
 repeat
 the
 same behavior using your own quickstart project? I suggest you to use
 wireshark or live http headers firefox plugin to check the http
 headers
 to
 see what's going on..




 Murat Yücel wrote:



 Hi Serkan

 I must have seen wrong before. I am getting the same thing as you
 have
 described. The expire date is one month in the future.
 The only difference is in the path variable. If you clear your
 cookies
 and
 type something in the input fields when mount is enabled.
 Are you then able to see them again when you press the login button?

 I have attached some screenshots of the cookie and the webpage I see
 with
 and without mount.

 /Murat

 2009/1/7 Serkan Camurcuoglu serkan.camurcuo...@telenity.commailto:
 serkan.camurcuo...@telenity.com


   In my case (when using mounted home page), when setting cookies,
   the expire time is automatically set as one month from current
   date, and when clearing cookies the expire time is it is set as
   01.01.1970.. It's really strange that the expire time is current
   time on your system..




   Murat Yücel wrote:

   Hi Serkan

   I am using firefox 3.1 beta2, but i dont think that this is a
   browser
   related issue, because i am seeing the same behavior in IE7.
   The cookies are created for both FF and IE. The problem is
   that they get a
   expire date set to current time, which means that they
   are not available anymore. If i remove the mount they will get
   a expire date
   in the future and the typed value will stay in the input
   field.

   For example with mount i type admin in the first input field
   and password in
   the second. Press the login link and i see that the
   input fields are reset. If i remove the mount and do the same,
   admin and
   password will stay in the input fields.

   /Murat

   2009/1/6 Serkan Camurcuoglu serkan.camurcuo...@telenity.com
   mailto:serkan.camurcuo...@telenity.com


   Hi Murat,
   It seems to work both ways in my setup. I'm using Firefox
   3.0. It
   successfully saves the username and password when I check
   the remember me
   checkbox, and clears them when I uncheck it. Did you check
   the host, path
   and the values of the cookies in your browser?




   Murat Yücel wrote:


   Hi again

   Did anyone had the time to look at the attached
 project?
   Are you guys seeing the same behaviour?

   /Murat

   2008/12/31 Murat Yücel kodeperke...@gmail.com
   mailto:kodeperke...@gmail.com




   Hi Cemal

   Thanks for the response. I have attached the


 project.


If you uncomment this line:
   mountBookmarkablePage(homepage, HomePage.class);

   in WicketApplication.java, then you can see the
   difference in the
   behaviour.

   /Murat

   2008/12/31 jWeekend jweekend_for...@cabouge.com
   mailto:jweekend_for

Re: FormComponent cookie persistent issue

2009-01-11 Thread Murat Yücel
Hi Serkan

I havent tried with Tomcat. Will try it and get back to you.

/Murat

2009/1/8 Serkan Camurcuoglu serkan.camurcuo...@telenity.com

 Murat have you tried it with tomcat, maybe it's jetty's bug?




 Murat Yücel wrote:

 Well i have create a jira issue on this problem. Hopefully someone  from
 the
 wicket team will
 have the time to fix this in a near future.
 https://issues.apache.org/jira/browse/WICKET-2011

 /Murat

 2009/1/7 jWeekend jweekend_for...@cabouge.com



 Murat,

 I tried (using the Start class) as soon as you sent your quickstart and
 witnessed the same result you did.
 I have not looked into the reason it behaves as it does or differently
 with
 a non-root context.

 Regards - Cemal
 http://www.jWeekend.com jWeekend



 Murat Yücel-2 wrote:


 Hi Serkan

 I am using the Start.java located in the test folder to startup the
 project.
 The context path is removed there.
 When I add a context path, then it is working fine. Both cookies is
 created
 with path /myproject.

 But the problem exist if you remove the context path. This is the way i
 run
 it on my server and i guess that
 this should also work for wicket. Can you confirm that you have the same
 problem when removing the context
 path.

 /Murat

 2009/1/7 Serkan Camurcuoglu serkan.camurcuo...@telenity.com



 is your application deployed to the root context (e.g. / ) ? Because


 your


 working cookie path is / while the cookie path that is not working is
 something like /homepage/wicket:interface/:0: . In my setup (I'm
 using
 the quickstart project that you sent) the path of my cookie is always
 /myproject which is the context path of the application. Can you repeat
 the
 same behavior using your own quickstart project? I suggest you to use
 wireshark or live http headers firefox plugin to check the http headers
 to
 see what's going on..




 Murat Yücel wrote:



 Hi Serkan

 I must have seen wrong before. I am getting the same thing as you have
 described. The expire date is one month in the future.
 The only difference is in the path variable. If you clear your cookies
 and
 type something in the input fields when mount is enabled.
 Are you then able to see them again when you press the login button?

 I have attached some screenshots of the cookie and the webpage I see
 with
 and without mount.

 /Murat

 2009/1/7 Serkan Camurcuoglu serkan.camurcuo...@telenity.com mailto:
 serkan.camurcuo...@telenity.com


   In my case (when using mounted home page), when setting cookies,
   the expire time is automatically set as one month from current
   date, and when clearing cookies the expire time is it is set as
   01.01.1970.. It's really strange that the expire time is current
   time on your system..




   Murat Yücel wrote:

   Hi Serkan

   I am using firefox 3.1 beta2, but i dont think that this is a
   browser
   related issue, because i am seeing the same behavior in IE7.
   The cookies are created for both FF and IE. The problem is
   that they get a
   expire date set to current time, which means that they
   are not available anymore. If i remove the mount they will get
   a expire date
   in the future and the typed value will stay in the input
   field.

   For example with mount i type admin in the first input field
   and password in
   the second. Press the login link and i see that the
   input fields are reset. If i remove the mount and do the same,
   admin and
   password will stay in the input fields.

   /Murat

   2009/1/6 Serkan Camurcuoglu serkan.camurcuo...@telenity.com
   mailto:serkan.camurcuo...@telenity.com


   Hi Murat,
   It seems to work both ways in my setup. I'm using Firefox
   3.0. It
   successfully saves the username and password when I check
   the remember me
   checkbox, and clears them when I uncheck it. Did you check
   the host, path
   and the values of the cookies in your browser?




   Murat Yücel wrote:


   Hi again

   Did anyone had the time to look at the attached project?
   Are you guys seeing the same behaviour?

   /Murat

   2008/12/31 Murat Yücel kodeperke...@gmail.com
   mailto:kodeperke...@gmail.com




   Hi Cemal

   Thanks for the response. I have attached the


 project.


   If you uncomment this line:
   mountBookmarkablePage(homepage, HomePage.class);

   in WicketApplication.java, then you can see the
   difference in the
   behaviour.

   /Murat

   2008/12/31 jWeekend jweekend_for...@cabouge.com
   mailto:jweekend_for...@cabouge.com





   Murat,

   It is OK, just delete the target folder and
   zip it up before

Re: FormComponent cookie persistent issue

2009-01-08 Thread Murat Yücel
Well i have create a jira issue on this problem. Hopefully someone  from the
wicket team will
have the time to fix this in a near future.
https://issues.apache.org/jira/browse/WICKET-2011

/Murat

2009/1/7 jWeekend jweekend_for...@cabouge.com


 Murat,

 I tried (using the Start class) as soon as you sent your quickstart and
 witnessed the same result you did.
 I have not looked into the reason it behaves as it does or differently with
 a non-root context.

 Regards - Cemal
 http://www.jWeekend.com jWeekend



 Murat Yücel-2 wrote:
 
  Hi Serkan
 
  I am using the Start.java located in the test folder to startup the
  project.
  The context path is removed there.
  When I add a context path, then it is working fine. Both cookies is
  created
  with path /myproject.
 
  But the problem exist if you remove the context path. This is the way i
  run
  it on my server and i guess that
  this should also work for wicket. Can you confirm that you have the same
  problem when removing the context
  path.
 
  /Murat
 
  2009/1/7 Serkan Camurcuoglu serkan.camurcuo...@telenity.com
 
  is your application deployed to the root context (e.g. / ) ? Because
 your
  working cookie path is / while the cookie path that is not working is
  something like /homepage/wicket:interface/:0: . In my setup (I'm
  using
  the quickstart project that you sent) the path of my cookie is always
  /myproject which is the context path of the application. Can you repeat
  the
  same behavior using your own quickstart project? I suggest you to use
  wireshark or live http headers firefox plugin to check the http headers
  to
  see what's going on..
 
 
 
 
  Murat Yücel wrote:
 
  Hi Serkan
 
  I must have seen wrong before. I am getting the same thing as you have
  described. The expire date is one month in the future.
  The only difference is in the path variable. If you clear your cookies
  and
  type something in the input fields when mount is enabled.
  Are you then able to see them again when you press the login button?
 
  I have attached some screenshots of the cookie and the webpage I see
  with
  and without mount.
 
  /Murat
 
  2009/1/7 Serkan Camurcuoglu serkan.camurcuo...@telenity.com mailto:
  serkan.camurcuo...@telenity.com
 
 
 In my case (when using mounted home page), when setting cookies,
 the expire time is automatically set as one month from current
 date, and when clearing cookies the expire time is it is set as
 01.01.1970.. It's really strange that the expire time is current
 time on your system..
 
 
 
 
 Murat Yücel wrote:
 
 Hi Serkan
 
 I am using firefox 3.1 beta2, but i dont think that this is a
 browser
 related issue, because i am seeing the same behavior in IE7.
 The cookies are created for both FF and IE. The problem is
 that they get a
 expire date set to current time, which means that they
 are not available anymore. If i remove the mount they will get
 a expire date
 in the future and the typed value will stay in the input
 field.
 
 For example with mount i type admin in the first input field
 and password in
 the second. Press the login link and i see that the
 input fields are reset. If i remove the mount and do the same,
 admin and
 password will stay in the input fields.
 
 /Murat
 
 2009/1/6 Serkan Camurcuoglu serkan.camurcuo...@telenity.com
 mailto:serkan.camurcuo...@telenity.com
 
 
 Hi Murat,
 It seems to work both ways in my setup. I'm using Firefox
 3.0. It
 successfully saves the username and password when I check
 the remember me
 checkbox, and clears them when I uncheck it. Did you check
 the host, path
 and the values of the cookies in your browser?
 
 
 
 
 Murat Yücel wrote:
 
 
 Hi again
 
 Did anyone had the time to look at the attached project?
 Are you guys seeing the same behaviour?
 
 /Murat
 
 2008/12/31 Murat Yücel kodeperke...@gmail.com
 mailto:kodeperke...@gmail.com
 
 
 
 
 Hi Cemal
 
 Thanks for the response. I have attached the
 project.
 
 If you uncomment this line:
 mountBookmarkablePage(homepage, HomePage.class);
 
 in WicketApplication.java, then you can see the
 difference in the
 behaviour.
 
 /Murat
 
 2008/12/31 jWeekend jweekend_for...@cabouge.com
 mailto:jweekend_for...@cabouge.com
 
 
 
 
 
 Murat,
 
 It is OK, just delete the target folder and
 zip it up before sending
 your

Re: FormComponent cookie persistent issue

2009-01-07 Thread Murat Yücel
Hi Serkan

I am using firefox 3.1 beta2, but i dont think that this is a browser
related issue, because i am seeing the same behavior in IE7.
The cookies are created for both FF and IE. The problem is that they get a
expire date set to current time, which means that they
are not available anymore. If i remove the mount they will get a expire date
in the future and the typed value will stay in the input
field.

For example with mount i type admin in the first input field and password in
the second. Press the login link and i see that the
input fields are reset. If i remove the mount and do the same, admin and
password will stay in the input fields.

/Murat

2009/1/6 Serkan Camurcuoglu serkan.camurcuo...@telenity.com

 Hi Murat,
 It seems to work both ways in my setup. I'm using Firefox 3.0. It
 successfully saves the username and password when I check the remember me
 checkbox, and clears them when I uncheck it. Did you check the host, path
 and the values of the cookies in your browser?




 Murat Yücel wrote:

 Hi again

 Did anyone had the time to look at the attached project?
 Are you guys seeing the same behaviour?

 /Murat

 2008/12/31 Murat Yücel kodeperke...@gmail.com



 Hi Cemal

 Thanks for the response. I have attached the project.

 If you uncomment this line:
 mountBookmarkablePage(homepage, HomePage.class);

 in WicketApplication.java, then you can see the difference in the
 behaviour.

 /Murat

 2008/12/31 jWeekend jweekend_for...@cabouge.com




 Murat,

 It is OK, just delete the target folder and zip it up before sending
 your
 quickstart project to this list.

 Regards - Cemal
 http://www.jWeekend.co.uk jWeekend



 Murat Yücel-2 wrote:


 By the way i am using wicket 1.3.5. I dont know if you need other
 information?
 I can send the quickstart project if anyone is interested. I dont know


 if


 it
 is okey
 to attach it to the mailing list.

 /Murat

 2008/12/29 Murat Yücel kodeperke...@gmail.com



 Hi All

 I have a strange problem with persisting form component values.

 In my project i have a SignInPanel. The SignInPanel has a rememberMe
 checkbox. If the checkbox is
 checked then the values will get persisted in a cookie. This part is
 working very well if the user doesnt
 login from a mounted bookmarkable page.
 If the user login from a mounted bookmarkable page, then i can see
 that
 the
 value is saved by calling
 the CookieValuePersister, but on load the values are gone again.

 I have made a simple quickstart project and i am seing the same


 behaviour


 here. Am I missing something?
 Why doesnt cookie persist work for a mounted bookmarkable page?

 Hope that you can help.

 Kind regards

 /Murat





 --
 View this message in context:

 http://www.nabble.com/FormComponent-cookie-persistent-issue-tp21197389p21230575.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: FormComponent cookie persistent issue

2009-01-07 Thread Murat Yücel
Hi Serkan

I am using the Start.java located in the test folder to startup the project.
The context path is removed there.
When I add a context path, then it is working fine. Both cookies is created
with path /myproject.

But the problem exist if you remove the context path. This is the way i run
it on my server and i guess that
this should also work for wicket. Can you confirm that you have the same
problem when removing the context
path.

/Murat

2009/1/7 Serkan Camurcuoglu serkan.camurcuo...@telenity.com

 is your application deployed to the root context (e.g. / ) ? Because your
 working cookie path is / while the cookie path that is not working is
 something like /homepage/wicket:interface/:0: . In my setup (I'm using
 the quickstart project that you sent) the path of my cookie is always
 /myproject which is the context path of the application. Can you repeat the
 same behavior using your own quickstart project? I suggest you to use
 wireshark or live http headers firefox plugin to check the http headers to
 see what's going on..




 Murat Yücel wrote:

 Hi Serkan

 I must have seen wrong before. I am getting the same thing as you have
 described. The expire date is one month in the future.
 The only difference is in the path variable. If you clear your cookies and
 type something in the input fields when mount is enabled.
 Are you then able to see them again when you press the login button?

 I have attached some screenshots of the cookie and the webpage I see with
 and without mount.

 /Murat

 2009/1/7 Serkan Camurcuoglu serkan.camurcuo...@telenity.com mailto:
 serkan.camurcuo...@telenity.com


In my case (when using mounted home page), when setting cookies,
the expire time is automatically set as one month from current
date, and when clearing cookies the expire time is it is set as
01.01.1970.. It's really strange that the expire time is current
time on your system..




Murat Yücel wrote:

Hi Serkan

I am using firefox 3.1 beta2, but i dont think that this is a
browser
related issue, because i am seeing the same behavior in IE7.
The cookies are created for both FF and IE. The problem is
that they get a
expire date set to current time, which means that they
are not available anymore. If i remove the mount they will get
a expire date
in the future and the typed value will stay in the input
field.

For example with mount i type admin in the first input field
and password in
the second. Press the login link and i see that the
input fields are reset. If i remove the mount and do the same,
admin and
password will stay in the input fields.

/Murat

2009/1/6 Serkan Camurcuoglu serkan.camurcuo...@telenity.com
mailto:serkan.camurcuo...@telenity.com


Hi Murat,
It seems to work both ways in my setup. I'm using Firefox
3.0. It
successfully saves the username and password when I check
the remember me
checkbox, and clears them when I uncheck it. Did you check
the host, path
and the values of the cookies in your browser?




Murat Yücel wrote:


Hi again

Did anyone had the time to look at the attached project?
Are you guys seeing the same behaviour?

/Murat

2008/12/31 Murat Yücel kodeperke...@gmail.com
mailto:kodeperke...@gmail.com




Hi Cemal

Thanks for the response. I have attached the project.

If you uncomment this line:
mountBookmarkablePage(homepage, HomePage.class);

in WicketApplication.java, then you can see the
difference in the
behaviour.

/Murat

2008/12/31 jWeekend jweekend_for...@cabouge.com
mailto:jweekend_for...@cabouge.com





Murat,

It is OK, just delete the target folder and
zip it up before sending
your
quickstart project to this list.

Regards - Cemal
http://www.jWeekend.co.uk jWeekend



Murat Yücel-2 wrote:



By the way i am using wicket 1.3.5. I dont
know if you need other
information?
I can send the quickstart project if
anyone is interested. I dont know



if



it
is okey
to attach it to the mailing list.

/Murat

Re: FormComponent cookie persistent issue

2009-01-05 Thread Murat Yücel
Hi again

Did anyone had the time to look at the attached project?
Are you guys seeing the same behaviour?

/Murat

2008/12/31 Murat Yücel kodeperke...@gmail.com

 Hi Cemal

 Thanks for the response. I have attached the project.

 If you uncomment this line:
 mountBookmarkablePage(homepage, HomePage.class);

 in WicketApplication.java, then you can see the difference in the
 behaviour.

 /Murat

 2008/12/31 jWeekend jweekend_for...@cabouge.com


 Murat,

 It is OK, just delete the target folder and zip it up before sending your
 quickstart project to this list.

 Regards - Cemal
 http://www.jWeekend.co.uk jWeekend



 Murat Yücel-2 wrote:
 
  By the way i am using wicket 1.3.5. I dont know if you need other
  information?
  I can send the quickstart project if anyone is interested. I dont know
 if
  it
  is okey
  to attach it to the mailing list.
 
  /Murat
 
  2008/12/29 Murat Yücel kodeperke...@gmail.com
 
  Hi All
 
  I have a strange problem with persisting form component values.
 
  In my project i have a SignInPanel. The SignInPanel has a rememberMe
  checkbox. If the checkbox is
  checked then the values will get persisted in a cookie. This part is
  working very well if the user doesnt
  login from a mounted bookmarkable page.
  If the user login from a mounted bookmarkable page, then i can see that
  the
  value is saved by calling
  the CookieValuePersister, but on load the values are gone again.
 
  I have made a simple quickstart project and i am seing the same
 behaviour
  here. Am I missing something?
  Why doesnt cookie persist work for a mounted bookmarkable page?
 
  Hope that you can help.
 
  Kind regards
 
  /Murat
 
 
 

 --
 View this message in context:
 http://www.nabble.com/FormComponent-cookie-persistent-issue-tp21197389p21230575.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: FormComponent cookie persistent issue

2008-12-31 Thread Murat Yücel
Have I asked a stupid question? Or does no one have a clue?

Any response would be appreciated.

/Murat

2008/12/30 Murat Yücel kodeperke...@gmail.com

 By the way i am using wicket 1.3.5. I dont know if you need other
 information?
 I can send the quickstart project if anyone is interested. I dont know if
 it is okey
 to attach it to the mailing list.

 /Murat

 2008/12/29 Murat Yücel kodeperke...@gmail.com

 Hi All

 I have a strange problem with persisting form component values.

 In my project i have a SignInPanel. The SignInPanel has a rememberMe
 checkbox. If the checkbox is
 checked then the values will get persisted in a cookie. This part is
 working very well if the user doesnt
 login from a mounted bookmarkable page.
 If the user login from a mounted bookmarkable page, then i can see that
 the value is saved by calling
 the CookieValuePersister, but on load the values are gone again.

 I have made a simple quickstart project and i am seing the same behaviour
 here. Am I missing something?
 Why doesnt cookie persist work for a mounted bookmarkable page?

 Hope that you can help.

 Kind regards

 /Murat





Re: FormComponent cookie persistent issue

2008-12-31 Thread Murat Yücel
Hi Cemal

Thanks for the response. I have attached the project.

If you uncomment this line:
mountBookmarkablePage(homepage, HomePage.class);

in WicketApplication.java, then you can see the difference in the behaviour.

/Murat

2008/12/31 jWeekend jweekend_for...@cabouge.com


 Murat,

 It is OK, just delete the target folder and zip it up before sending your
 quickstart project to this list.

 Regards - Cemal
 http://www.jWeekend.co.uk jWeekend



 Murat Yücel-2 wrote:
 
  By the way i am using wicket 1.3.5. I dont know if you need other
  information?
  I can send the quickstart project if anyone is interested. I dont know if
  it
  is okey
  to attach it to the mailing list.
 
  /Murat
 
  2008/12/29 Murat Yücel kodeperke...@gmail.com
 
  Hi All
 
  I have a strange problem with persisting form component values.
 
  In my project i have a SignInPanel. The SignInPanel has a rememberMe
  checkbox. If the checkbox is
  checked then the values will get persisted in a cookie. This part is
  working very well if the user doesnt
  login from a mounted bookmarkable page.
  If the user login from a mounted bookmarkable page, then i can see that
  the
  value is saved by calling
  the CookieValuePersister, but on load the values are gone again.
 
  I have made a simple quickstart project and i am seing the same
 behaviour
  here. Am I missing something?
  Why doesnt cookie persist work for a mounted bookmarkable page?
 
  Hope that you can help.
 
  Kind regards
 
  /Murat
 
 
 

 --
 View this message in context:
 http://www.nabble.com/FormComponent-cookie-persistent-issue-tp21197389p21230575.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




myproject.rar
Description: application/force-download
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Re: FormComponent cookie persistent issue

2008-12-29 Thread Murat Yücel
By the way i am using wicket 1.3.5. I dont know if you need other
information?
I can send the quickstart project if anyone is interested. I dont know if it
is okey
to attach it to the mailing list.

/Murat

2008/12/29 Murat Yücel kodeperke...@gmail.com

 Hi All

 I have a strange problem with persisting form component values.

 In my project i have a SignInPanel. The SignInPanel has a rememberMe
 checkbox. If the checkbox is
 checked then the values will get persisted in a cookie. This part is
 working very well if the user doesnt
 login from a mounted bookmarkable page.
 If the user login from a mounted bookmarkable page, then i can see that the
 value is saved by calling
 the CookieValuePersister, but on load the values are gone again.

 I have made a simple quickstart project and i am seing the same behaviour
 here. Am I missing something?
 Why doesnt cookie persist work for a mounted bookmarkable page?

 Hope that you can help.

 Kind regards

 /Murat



FormComponent cookie persistent issue

2008-12-28 Thread Murat Yücel
Hi All

I have a strange problem with persisting form component values.

In my project i have a SignInPanel. The SignInPanel has a rememberMe
checkbox. If the checkbox is
checked then the values will get persisted in a cookie. This part is working
very well if the user doesnt
login from a mounted bookmarkable page.
If the user login from a mounted bookmarkable page, then i can see that the
value is saved by calling
the CookieValuePersister, but on load the values are gone again.

I have made a simple quickstart project and i am seing the same behaviour
here. Am I missing something?
Why doesnt cookie persist work for a mounted bookmarkable page?

Hope that you can help.

Kind regards

/Murat


Nice wicket components

2008-10-17 Thread Murat Yücel
Hi All

I am in search for nice wicket components like the wicket-stuff project
called inmethod-grid.
The project has a lot of features and then it looks more pretty than the
standard wicket design.

Does anyone no about other projects? I know that you cannot compare GWT and
Wicket,
but it is sad to see that a lot of projects integrates with GWT, while
Wicket has been still for
quite a while.

What are the future plans for wicket and when are you expecting to release
1.4?

Kind regards

/Murat


Does StringResouceModel support html tags

2008-09-19 Thread Murat Yücel
Hi All

First of all i am using wicket 1.3.4. I have a problem with not being able
to show html characters when using
StringResourceModel together with xml property file. Xml property file
doesnt support html tags because it
not valid in an xml file. I have tried to escape the  tag but then i will
just see the text as it is. For example
if the text is entry key=test.keylt;bgt;Testlt;/bgt;/entry then is
will just show bTest/b on the screen.

I then thought that it might be possible to give html characters as
parameters. For example:
entry key=test.keyYou have selected {0}/entry

Then i will give the parameter bTest/b to the StringResourceModel, but
still no luck.

I have set the method Label.setEscapeModelStrings(false) but it seems like
it doesnt have any effect.

Hope that you can help.

Kind regards

/Murat


Re: Does StringResouceModel support html tags

2008-09-19 Thread Murat Yücel
I have set the flag but it still doesnt work. Can you confirmed this on your
side?

/Murat

2008/9/19 Michael Sparer [EMAIL PROTECTED]


 setEscapeModelStrings to false on your component (e.g. Label) and it should
 work


 Murat Yücel-2 wrote:
 
  Hi All
 
  First of all i am using wicket 1.3.4. I have a problem with not being
 able
  to show html characters when using
  StringResourceModel together with xml property file. Xml property file
  doesnt support html tags because it
  not valid in an xml file. I have tried to escape the  tag but then i
  will
  just see the text as it is. For example
  if the text is entry key=test.keylt;bgt;Testlt;/bgt;/entry then
  is
  will just show Test on the screen.
 
  I then thought that it might be possible to give html characters as
  parameters. For example:
  entry key=test.keyYou have selected {0}/entry
 
  Then i will give the parameter Test to the StringResourceModel, but
  still no luck.
 
  I have set the method Label.setEscapeModelStrings(false) but it seems
 like
  it doesnt have any effect.
 
  Hope that you can help.
 
  Kind regards
 
  /Murat
 
 


 -
 Michael Sparer
 http://talk-on-tech.blogspot.com
 --
 View this message in context:
 http://www.nabble.com/Does-StringResouceModel-support-html-tags-tp19567229p19567583.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




Re: Does StringResouceModel support html tags

2008-09-19 Thread Murat Yücel
Damn it works. Sorry for bothering the list. I probably tried to many things
last night.
Well thanks for the help :)

2008/9/19 Murat Yücel [EMAIL PROTECTED]

 I have set the flag but it still doesnt work. Can you confirmed this on
 your side?

 /Murat

 2008/9/19 Michael Sparer [EMAIL PROTECTED]


 setEscapeModelStrings to false on your component (e.g. Label) and it
 should
 work


 Murat Yücel-2 wrote:
 
  Hi All
 
  First of all i am using wicket 1.3.4. I have a problem with not being
 able
  to show html characters when using
  StringResourceModel together with xml property file. Xml property file
  doesnt support html tags because it
  not valid in an xml file. I have tried to escape the  tag but then i
  will
  just see the text as it is. For example
  if the text is entry key=test.keylt;bgt;Testlt;/bgt;/entry
 then
  is
  will just show Test on the screen.
 
  I then thought that it might be possible to give html characters as
  parameters. For example:
  entry key=test.keyYou have selected {0}/entry
 
  Then i will give the parameter Test to the StringResourceModel, but
  still no luck.
 
  I have set the method Label.setEscapeModelStrings(false) but it seems
 like
  it doesnt have any effect.
 
  Hope that you can help.
 
  Kind regards
 
  /Murat
 
 


 -
 Michael Sparer
 http://talk-on-tech.blogspot.com
 --
 View this message in context:
 http://www.nabble.com/Does-StringResouceModel-support-html-tags-tp19567229p19567583.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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





Roadmap for Wicket

2008-07-03 Thread Murat Yücel
Hi All

I have been looking for a roadmap for the wicket project, but i could not
find anything on your homepage or on google :)...
Can anyone provide a link to a roadmap for wicket?

Could be nice to see a roadmap for wicket 1.4 and wicket 1.5. What is the
idea behind the version? What will be included etc.

/Murat


Re: Roadmap for Wicket

2008-07-03 Thread Murat Yücel
Thanks will look it :)

2008/7/3 Frank Bille [EMAIL PROTECTED]:

 1.5 wishlist in wiki:
 http://cwiki.apache.org/WICKET/wicket-15-wish-list.html

 Non-bug issues in JIRA:
 http://tinyurl.com/4ofab2

 Frank


 On Thu, Jul 3, 2008 at 9:14 AM, Murat Yücel [EMAIL PROTECTED]
 wrote:

  Hi All
 
  I have been looking for a roadmap for the wicket project, but i could not
  find anything on your homepage or on google :)...
  Can anyone provide a link to a roadmap for wicket?
 
  Could be nice to see a roadmap for wicket 1.4 and wicket 1.5. What is the
  idea behind the version? What will be included etc.
 
  /Murat
 



Re: Gmap2 problem with Firefox 3.0

2008-06-30 Thread Murat Yücel
I am not able to see the examples in IE 7 either. Could you confirm this?

There also seems to be a problem with using png images as a marker.
Found this fix which seems to solve the problem.
http://homepage.ntlworld.com/bobosola/pnghowto.htm

/Murat

2008/6/27 Sven Meier [EMAIL PROTECTED]:

 Hi,

 so it seems this problem is not gmap2 specific. It's just the way our
 markup is structured, which seems no longer be supported by firefox 3. The
 following simple example show the failure:

 div style=width: 200px; height: 200px
   wicket:panel
   div style=width: 100%; height: 100%; background: #ff
   /div
   /wicket:panel
 /div

 The nested div is no longer strechted to the full size of the containing
 div.
 I'll see how we can restructure our markup, but generally this change in
 forefox's layout might effect other places too.

 Sven

 Ryan Sonnek schrieb:

  On 6/26/08, Martin Funk [EMAIL PROTECTED] wrote:


 Sven Meier wrote:



 Hi,

 I'm investigation the issue:
 It seems that Google's css is being screwed up in FF3. When I let Wicket
 strip all wicket tags *or* assign pixel width (instead of 100%) to the
 element holding the map, everthing works fine in FF3.



 btw. Sven,
 I now can confirm the effect of stripping too.

 so a quick solution would be running the app in deployment mode.

 Can the strip wicket tags setting be declared at a component level, or


 does it affect the entire server?





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




cdapp source

2008-03-19 Thread Murat Yücel
Hi All

Is it possible to download the cdapp application anymore. I cannot find
anything in subversion or on the wicket-contrib-examples
page. Maybe i am looking the wrong place.

http://www.wicket-library.com/wicket-contrib-examples/
http://www.wicket-library.com/wicket-contrib-examples/cdapp

The new cd button also fails when adding an image. Has this been fixed in a
newer version?

Kind regards

/Murat


Re: cdapp source

2008-03-19 Thread Murat Yücel
Hi again

Found the answer. The cdapp is no longer maintain and is therefore only
available
in the 1.2 branch of wicket.

/Murat

2008/3/19, Murat Yücel [EMAIL PROTECTED]:

 Hi All

 Is it possible to download the cdapp application anymore. I cannot find
 anything in subversion or on the wicket-contrib-examples
 page. Maybe i am looking the wrong place.

 http://www.wicket-library.com/wicket-contrib-examples/
 http://www.wicket-library.com/wicket-contrib-examples/cdapp

 The new cd button also fails when adding an image. Has this been fixed in
 a newer version?

 Kind regards

 /Murat



Re: wicketstuff-rome and authentification.

2008-02-18 Thread Murat Yücel
My feed was a shared resource just like the wicketstuff-rome example.
I have changed it to be a page, so now i can add wicket authentification.
http://www.jroller.com/wireframe/entry/wicket_feedpage

/Murat

2008/2/15, Maurice Marrink [EMAIL PROTECTED]:

 Why not use a filter?
 Wicket uses them too.
 I have absolutely no clue how wicketstuff-rome or rss for that matter
 works but it looks like they are using a regular wicket page.
 So the question is what do you want?
 i can think of the following solutions, but there are probably some
 more i haven't thought of
 -do the authentication on the fly in your page (you do not need any
 fancy security framework for this)
 -put a filter in front of your app that does the validation for the
 rss feed for you (you do not need any fancy security framework for
 this)
 -you can secure the page in the recommended way of your security
 framework (wicket-auth roles or swarm)

 whichever you prefer depends on a couple of things
 -are you already using a wicket security-framework? or something like
 acegi?
 -is it enough for you to authenticate the user or does he need extra
 permissions to access the feed?
 -do you prefer keeping everything in wicket or are you ok with
 servletfilters and stuff?

 So you see there is no right or wrong direction, all roads lead to
 rome (pun intended)

 Let me know what you prefer and we go from there.

 Maurice



 On Fri, Feb 15, 2008 at 11:22 AM, Murat Yücel [EMAIL PROTECTED]
 wrote:
  Hi Maurice
 
   Can you point me in the right direction? What I need is the following.
 
   http://localhost:8080/rssfeed?username=adminpassword=12345678
 
   The username and password should be validated against the database
   and if it is correct the feed should be generated. I can of course do
 this
   with a filter but i guess this is not the wicket way
 
   /Murat
 
   2008/2/14, Maurice Marrink [EMAIL PROTECTED]:
 
 
  
For swarm 1.3.1 i am working on this. It allows you to use the same
authorization / authentication mechanism as your wicket app. in
 effect
the policy files.
You can try it out by letting your pom get the latest 1.3-SNAPSHOT.
Some feedback is welcome.
   
   
Maurice
   
   
On Thu, Feb 14, 2008 at 5:03 PM, Ryan Sonnek [EMAIL PROTECTED]
wrote:
 you can mount the wicket rss feed as a bookmarkable url and use a
  filter to ensure security.

  Not sure if wicket has the concept of securing application
 resources
  currently built in?



  On Thu, Feb 14, 2008 at 9:55 AM, Murat Yücel 
 [EMAIL PROTECTED]
wrote:
   Hi All
  
I have started using the wicketstuff-rome project to generate
 rss
feed.
Before this was just done
in a servlet. The servlet would check the parameters submitted.
 If
they were
valid then the rss feed
would get generated.
The parameters are username, password.
  
Is it possible to add authentification in wicket to the feed?
 If it
is how
would you do it?
I have created my feed using this example:
 wicketstuff-rome-examples
  
/Murat
  

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


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

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




Re: AjaxSelfUpdatingTimerBehavior, AjaxFallbackDefaultDataTable and a Form

2008-02-15 Thread Murat Yücel
Well the problem was how to keep the state when all objects was reloaded,
but i have made a minor hack.
I am placing all selected items in an arraylist and when the screen is
refreshed
the incoming list will be compared with the arraylist i keep internal.

/Murat

2008/2/14, Martin Funk [EMAIL PROTECTED]:

 How about using an AjaxCheckBox? That way a state change in the checkbox
 will be propagated to the server immediately.

 mf

 2008/2/14, Murat Yücel [EMAIL PROTECTED]:

 
  Hi All
 
  I have some problem with the combination written in the subject.
 
  I have a panel which has a form. On that form i append a
  AjaxFallbackDefaultDataTable. One of the
  columns include a checkbox so i can submit the selected values. This was
  working just fine until
  i wanted the table to be auto updated.
 
  So when I added AjaxSelfUpdatingTimerBehavior to the panel then the
  datatable was updated but
  so was the selected checkboxes. Which means that when i select a
 checkbox
  then it will be cleared
  because it gets reloaded.
 
  Is it possible some how to reuse only the checkbox part? Or should i use
  something else to auto
  refresh the panel.
 
 
  /Murat
 



Re: wicketstuff-rome and authentification.

2008-02-15 Thread Murat Yücel
Hi Maurice

Can you point me in the right direction? What I need is the following.

http://localhost:8080/rssfeed?username=adminpassword=12345678

The username and password should be validated against the database
and if it is correct the feed should be generated. I can of course do this
with a filter but i guess this is not the wicket way

/Murat

2008/2/14, Maurice Marrink [EMAIL PROTECTED]:

 For swarm 1.3.1 i am working on this. It allows you to use the same
 authorization / authentication mechanism as your wicket app. in effect
 the policy files.
 You can try it out by letting your pom get the latest 1.3-SNAPSHOT.
 Some feedback is welcome.


 Maurice


 On Thu, Feb 14, 2008 at 5:03 PM, Ryan Sonnek [EMAIL PROTECTED]
 wrote:
  you can mount the wicket rss feed as a bookmarkable url and use a
   filter to ensure security.
 
   Not sure if wicket has the concept of securing application resources
   currently built in?
 
 
 
   On Thu, Feb 14, 2008 at 9:55 AM, Murat Yücel [EMAIL PROTECTED]
 wrote:
Hi All
   
 I have started using the wicketstuff-rome project to generate rss
 feed.
 Before this was just done
 in a servlet. The servlet would check the parameters submitted. If
 they were
 valid then the rss feed
 would get generated.
 The parameters are username, password.
   
 Is it possible to add authentification in wicket to the feed? If it
 is how
 would you do it?
 I have created my feed using this example: wicketstuff-rome-examples
   
 /Murat
   
 
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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




AjaxSelfUpdatingTimerBehavior, AjaxFallbackDefaultDataTable and a Form

2008-02-14 Thread Murat Yücel
Hi All

I have some problem with the combination written in the subject.

I have a panel which has a form. On that form i append a
AjaxFallbackDefaultDataTable. One of the
columns include a checkbox so i can submit the selected values. This was
working just fine until
i wanted the table to be auto updated.

So when I added AjaxSelfUpdatingTimerBehavior to the panel then the
datatable was updated but
so was the selected checkboxes. Which means that when i select a checkbox
then it will be cleared
because it gets reloaded.

Is it possible some how to reuse only the checkbox part? Or should i use
something else to auto
refresh the panel.

/Murat


wicketstuff-rome and authentification.

2008-02-14 Thread Murat Yücel
Hi All

I have started using the wicketstuff-rome project to generate rss feed.
Before this was just done
in a servlet. The servlet would check the parameters submitted. If they were
valid then the rss feed
would get generated.
The parameters are username, password.

Is it possible to add authentification in wicket to the feed? If it is how
would you do it?
I have created my feed using this example: wicketstuff-rome-examples

/Murat


Re: Ext JS, form submit

2008-01-21 Thread Murat Yücel
Hi Flemming

I have also tried to integrate ExtJS and wicket, but i dont think it is
possible if you need to post
or edit content on a page. The best way to post a form is to use xml between
ext and wicket
but then it doesnt makes sense to use wicket.

Wicket needs markup, ext doesnt have any markup, thats why you can only use
readonly ext
widgets.

Maybe the wicket team should do the same as google. Talk with the ext devs
and make
and integration.

/Murat

2008/1/18, Flemming Boller [EMAIL PROTECTED]:

 Hi


 Having glazed at the ExtJS components you can not help, but feel I must
 try
 and integrate this into wicket.

 However  when I started at  trying to submit data to  wicket from the
 Ext.form.FormPanel, lots of trouble appeared.

 I can not make Ext.FormPanel apply to  a form tag , only a div tag.
 With
 div tag I can not in wicket use the Form Component.

 Also the id´s of elements change after Ext.onReady() has been performed,
 which I think is not good for wicket :-)


 Anyway the million dollar question is: Has anyone made a successfully
 'form' submit from Ext to a wicket component ?


 Regards
 Flemming



Re: Ext JS, form submit

2008-01-21 Thread Murat Yücel
Hi Flemming

Just found this project: http://code.google.com/p/exttld/downloads/list
It seems like they have made a ext tld project for java based frameworks.

/Murat

2008/1/21, Murat Yücel [EMAIL PROTECTED]:

 Hi Flemming

 I have also tried to integrate ExtJS and wicket, but i dont think it is
 possible if you need to post
 or edit content on a page. The best way to post a form is to use xml
 between ext and wicket
 but then it doesnt makes sense to use wicket.

 Wicket needs markup, ext doesnt have any markup, thats why you can only
 use readonly ext
 widgets.

 Maybe the wicket team should do the same as google. Talk with the ext devs
 and make
 and integration.

 /Murat

 2008/1/18, Flemming Boller [EMAIL PROTECTED]:
 
  Hi
 
 
  Having glazed at the ExtJS components you can not help, but feel I must
  try
  and integrate this into wicket.
 
  However  when I started at  trying to submit data to  wicket from the
  Ext.form.FormPanel , lots of trouble appeared.
 
  I can not make Ext.FormPanel apply to  a form tag , only a div tag.
  With
  div tag I can not in wicket use the Form Component.
 
  Also the id´s of elements change after Ext.onReady() has been performed,
  which I think is not good for wicket :-)
 
 
  Anyway the million dollar question is: Has anyone made a successfully
  'form' submit from Ext to a wicket component ?
 
 
  Regards
  Flemming
 




Re: Wicket behind a front-end proxy

2007-12-07 Thread Murat Yücel
Hi All

Sorry for given such a late response, but Al Maw was right. This is
supported by wicket.
My apache configuration was wrong. Niels it has nothing to do with web seal.

/Murat

It has nothing to do

2007/11/18, Niels Bo [EMAIL PROTECTED]:

 Hi Murat!

 If you are running behind a WebSeal proxy, just configure the junction as
 transparent and
 deploy your application with the same context-root as the junction name.
 Then you can run like:

 myserver1.xxx.com:80/myapp1 - localhost:8080/myapp1

 The transparent setting means that the proxy will not try to parse the
 html and try
 to fix any server-relative url contained in you pages.

 Best Regards
 Niels Bo


 Murat Yücel-2 wrote:
 
  It seems like wicket doesnt support it, because there is no workaround
  on the link that
  Frank Bille send. There is only information about that this is a problem.
 
  /Murat
 
  2007/11/9, Johan Compagner [EMAIL PROTECTED]:
  so we dont support this currently?
 
  myserver1.xxx.com:80 - localhost:8080/myapp1
  myserver2.xxx.com:80 - localhost:8080/myapp2
 
  johan
 
 
  On Nov 9, 2007 1:35 PM, Frank Bille [EMAIL PROTECTED] wrote:
 
   Read this again:
  
  
  
  http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html#Wicketbehindafront-endproxy-Whythisdoesn%2527talwayswork
  
   Frank
  
On Nov 9, 2007 1:26 PM, Murat Yücel [EMAIL PROTECTED] wrote:
  
Hi Frank
   
I have substituted my projectname with wicket. Below is the conf for
the proxy part.
   
VirtualHost *
  ServerAdmin [EMAIL PROTECTED]
  ServerName  www.wicket.com
  ServerAlias wicket.com
   
  ProxyRequests off
  ProxyPreserveHost On
  RewriteEngine On
   
  # Indexes + Directory Root.
  DirectoryIndex index.html
  DocumentRoot /var/wicket.com
   
  # Logfiles
  ErrorLog  /var/log/apache2/wicket-error.log
  CustomLog /var/log/apache2/wicket-access.log combined
   
  ProxyPass / http://127.0.0.1:8080/wicket/
  ProxyPassReverse / http://127.0.0.1:8080/wicket/
   
  ProxyPreserveHost On
/VirtualHost
   
2007/11/9, Frank Bille [EMAIL PROTECTED]:
 Sounds weird.

 Can you show me your apache conf for the proxy?

 Frank

 On Nov 9, 2007 12:44 PM, Murat Yücel [EMAIL PROTECTED]
  wrote:

  Hi Frank
 
  I have changed the /app/* to /* but it doesnt change the urls.
  They
  are still wrong.
  For example i enter the following url:
  www.wicket.com
 
  The url is transformed to
 
   www.wicket.com/wicket/?wicket:bookmarkablePage=%3Acom.wicket.LoginPage
 
  If i remove the the wicket part from the url then i can see the
   login
  page. But if i click
  on a link then the wicket part is appended again.
 
  /Murat
 
  2007/11/9, Frank Bille [EMAIL PROTECTED]:
   First of all, you don't need /app/* anylonger. just /*.
  
   I'm running behind proxy as well and it works well. Are you
  sure
   you
  haven't
   run into this problem:
  
  
 
   
  
  http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html#Wicketbehindafront-endproxy-Whythisdoesn%2527talwayswork
  
   Frank
  
  
   On Nov 9, 2007 11:56 AM, Murat Yücel [EMAIL PROTECTED]
   wrote:
  
Hi All
   
I have looked at this article:
   
http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html
   
and it seems like the problem should be gone in wicket 1.3
  but
   it
isnt. I still get 404
errors. There is a warning on the wiki page: Don't use
setContextPath
with Wicket 1.3.
   
I am not setting the context path. Instead i am using
filter-mapping.
Is this the same thing?
   
   filter-mapping
   filter-namewicket/filter-name
   !-- The app is needed for ajax (this is a known
limitation/bug in wicket) --
   url-pattern/app/*/url-pattern
   /filter-mapping
   
Do you have a workaround for this issue or am i doing
  something
wrong?
I am currently running 1.3-beta4.
   
Kind regards
   
/Murat Yücel
   
   
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
  
 
 
   -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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

Re: howto include wicket in a JSP page with version 1.3-rc1

2007-11-29 Thread Murat Yücel
Hi Martijn

I can give you an use case. Your current webapp is developed in
struts. You are tired of it and want to migrate to wicket. Because
this is a big task it could actually be nice only to migrate very
small parts.
I have tried to migrate full pages and the communication between
struts and wicket are quite good. But if it was possible to migrate
small parts from the page to wicket panels and then include it in the
jsp, then it would be more easy to migrate and probably a lot more
developers would take the jump.

/Murat

2007/11/28, Martijn Dashorst [EMAIL PROTECTED]:
 Why do you want to include Wicket pages inside a JSP? What is your usecase?
 Martijn

 On Nov 26, 2007 10:50 PM, Seif [EMAIL PROTECTED] wrote:

  Hi, i'm a new wicket user, and i'm trying to execute a helloworld exemple
  included in a JSP page
  My problem is that wicket become a javax.servlet.Filter and not a Servlet
  in
  the 1.3-rc1 version :(
 
  to explain my problem here is some code:
  The file web.xml:
  -
  ...
  filter
  filter-nameHelloWorldApplication/filter-name
  filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class
  init-param
  param-nameapplicationClassName/param-name
  param-valuenet.lebonchoix.web.HelloWorldApplication/param-value
  /init-param
  /filter
  filter-mapping
  filter-nameHelloWorldApplication/filter-name
  url-pattern/Wicket/HelloWorld/*/url-pattern
  /filter-mapping
  ...
  -
 
  The file index.jsp
  -
  %@ page language=java contentType=text/html; charset=UTF-8
  pageEncoding=UTF-8%
  !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN 
  http://www.w3.org/TR/html4/loose.dtd;
  html
  head
  meta http-equiv=Content-Type content=text/html; charset=UTF-8
  titletest wicket/title
  /head
  body
  jsp:include page=/Wicket/HelloWorld /
  /body
  /html
  -
 
  When i launch my browser with the url:
  http://localhost:58080/TestWicket/Wicket/HelloWorld it works fine but when
  i
  try http://localhost:58080/TestWicket/ or
  http://localhost:58080/TestWicket/index.jsp i get a exception:
  -
  [#|2007-11-26T22:04:
 
  19.437+0100|SEVERE|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=18
  ;_ThreadName=httpSSLWorkerThread-58080-1;_RequestID=e78d3242-d891-421e-904b-e6f43cbe9715;|StandardWrapperValve[jsp]:
  PWC1406 : servlet.service() pour le servlet jsp a émis une exception.
  java.io.FileNotFoundException: /TestWicket/Wicket/HelloWorld
 at org.apache.catalina.servlets.DefaultServlet.serveResource(
  DefaultServlet.java:732)
 at org.apache.catalina.servlets.DefaultServlet.doGet(
  DefaultServlet.java
  :384)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:718)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
 at org.apache.catalina.core.ApplicationFilterChain.servletService(
  ApplicationFilterChain.java:411)
 at org.apache.catalina.core.ApplicationDispatcher.doInvoke(
  ApplicationDispatcher.java:855)
 at org.apache.catalina.core.ApplicationDispatcher.invoke(
  ApplicationDispatcher.java:703)
 at org.apache.catalina.core.ApplicationDispatcher.doInclude(
  ApplicationDispatcher.java:660)
 at org.apache.catalina.core.ApplicationDispatcher.include(
  ApplicationDispatcher.java:578)
 at org.apache.jasper.runtime.JspRuntimeLibrary.include(
  JspRuntimeLibrary.java:997)
 at org.apache.jsp.index_jsp._jspService(index_jsp.java from :55)
   ...
  |#]
  -
 
  I have asked in the IRC channel and the only answer i got is look at
  http://herebebeasties.com/2007-03-01/jsp-and-wicket-sitting-in-a-tree/which
  explain how to include/use JSP in Wicket and not the reverse :(
 
  So does anyone have an idea how to solve this problem or any other
  solution.
 
 
 
  --
  Cordialement
  ---
  Seif
 



 --
 Buy Wicket in Action: http://manning.com/dashorst
 Apache Wicket 1.3.0-rc1 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-rc1/


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



Different form validation behavior for each submit button.

2007-11-23 Thread Murat Yücel
Hi All

Is it possible to have a different validation behavior for each button
on the form.

For example

form
// first part
Firstname
Lastname
Address

buttonSubmit Order/button

// second part
Username
Password

buttonCreate user and Submit Order/button
/form

The first button should only validate the first 3 fields. The next
button should validate all fields. What is the easiest way to
implement this in wicket?

/Murat

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



Re: Different form validation behavior for each submit button.

2007-11-23 Thread Murat Yücel
Ok I didnt know that :)... I dont think it is standard html to have a
form in a form.
But as long as it work with wicket then i am happy :).

/Murat

2007/11/23, John Krasnay [EMAIL PROTECTED]:
 On Fri, Nov 23, 2007 at 03:25:08PM +0100, Murat Yücel wrote:
  Hi All
 
  Is it possible to have a different validation behavior for each button
  on the form.
 
  For example
 
  form
  // first part
  Firstname
  Lastname
  Address
 
  buttonSubmit Order/button
 
  // second part
  Username
  Password
 
  buttonCreate user and Submit Order/button
  /form
 
  The first button should only validate the first 3 fields. The next
  button should validate all fields. What is the easiest way to
  implement this in wicket?
 

 Hi Murat,

 Wicket 1.3 supports nested forms, so you could just put the top part
 inside a nested form.

 jk


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



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



Re: Different form validation behavior for each submit button.

2007-11-23 Thread Murat Yücel
Hi John

Thanks for the help it works like a dream. I just have one more question.
I have some problem with the feedback filtering. Is it possible to have 2
feedback messages on the page. Well it is possible :). Found this:
http://cwiki.apache.org/WICKET/using-more-than-one-feedbackpanel-per-page.html

But when i press on of the buttons both feedback messages include errors.
They are both visible at the same time. I was hoping that only one of them would
be visible. I could of course make a isVisible flag but it is more if
there is a correct
wicket way to do it :)

/Murat

2007/11/23, John Krasnay [EMAIL PROTECTED]:
 On Fri, Nov 23, 2007 at 06:05:34PM +0100, Murat Yücel wrote:
  Ok I didnt know that :)... I dont think it is standard html to have a
  form in a form.
  But as long as it work with wicket then i am happy :).
 
  /Murat
 

 AFAIK Wicket replaces any nested forms with spans to preserve HTML
 correctness. So the whole form is submitted from an HTTP perspective,
 but only the nested Form is validated when the submission came from the
 nested Form.

 jk

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



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



Re: Different form validation behavior for each submit button.

2007-11-23 Thread Murat Yücel
Hi John

Thanks again. I needed (a) and have implemented it using isVisible.

/Murat

 Do you want (a) to display one or the other feedback panel depending on
 whether the parent or child form was submitted? Or (b) should all messages
 from the child form always go to one feedback panel, and the rest to
 another?

 If (a), I would keep a flag on my page that tracked which form was
 submitted, and override isVisible on each feedback panel to look a the
 flag.

 If (b), you need to implement an appropriate IFeedbackMessageFilter on
 each feedback panel.

 jk

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



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



Re: Wicket behind a front-end proxy

2007-11-09 Thread Murat Yücel
Hi Frank

I have changed the /app/* to /* but it doesnt change the urls. They
are still wrong.
For example i enter the following url:
www.wicket.com

The url is transformed to
www.wicket.com/wicket/?wicket:bookmarkablePage=%3Acom.wicket.LoginPage

If i remove the the wicket part from the url then i can see the login
page. But if i click
on a link then the wicket part is appended again.

/Murat

2007/11/9, Frank Bille [EMAIL PROTECTED]:
 First of all, you don't need /app/* anylonger. just /*.

 I'm running behind proxy as well and it works well. Are you sure you haven't
 run into this problem:

 http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html#Wicketbehindafront-endproxy-Whythisdoesn%2527talwayswork

 Frank


 On Nov 9, 2007 11:56 AM, Murat Yücel [EMAIL PROTECTED] wrote:

  Hi All
 
  I have looked at this article:
  http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html
 
  and it seems like the problem should be gone in wicket 1.3 but it
  isnt. I still get 404
  errors. There is a warning on the wiki page: Don't use setContextPath
  with Wicket 1.3.
 
  I am not setting the context path. Instead i am using filter-mapping.
  Is this the same thing?
 
 filter-mapping
 filter-namewicket/filter-name
 !-- The app is needed for ajax (this is a known
  limitation/bug in wicket) --
 url-pattern/app/*/url-pattern
 /filter-mapping
 
  Do you have a workaround for this issue or am i doing something wrong?
  I am currently running 1.3-beta4.
 
  Kind regards
 
  /Murat Yücel
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



Re: Wicket behind a front-end proxy

2007-11-09 Thread Murat Yücel
Hi Frank

I have substituted my projectname with wicket. Below is the conf for
the proxy part.

VirtualHost *
   ServerAdmin [EMAIL PROTECTED]
   ServerName  www.wicket.com
   ServerAlias wicket.com

   ProxyRequests off
   ProxyPreserveHost On
   RewriteEngine On

   # Indexes + Directory Root.
   DirectoryIndex index.html
   DocumentRoot /var/wicket.com

   # Logfiles
   ErrorLog  /var/log/apache2/wicket-error.log
   CustomLog /var/log/apache2/wicket-access.log combined

   ProxyPass / http://127.0.0.1:8080/wicket/
   ProxyPassReverse / http://127.0.0.1:8080/wicket/

   ProxyPreserveHost On
/VirtualHost

2007/11/9, Frank Bille [EMAIL PROTECTED]:
 Sounds weird.

 Can you show me your apache conf for the proxy?

 Frank

 On Nov 9, 2007 12:44 PM, Murat Yücel [EMAIL PROTECTED] wrote:

  Hi Frank
 
  I have changed the /app/* to /* but it doesnt change the urls. They
  are still wrong.
  For example i enter the following url:
  www.wicket.com
 
  The url is transformed to
  www.wicket.com/wicket/?wicket:bookmarkablePage=%3Acom.wicket.LoginPage
 
  If i remove the the wicket part from the url then i can see the login
  page. But if i click
  on a link then the wicket part is appended again.
 
  /Murat
 
  2007/11/9, Frank Bille [EMAIL PROTECTED]:
   First of all, you don't need /app/* anylonger. just /*.
  
   I'm running behind proxy as well and it works well. Are you sure you
  haven't
   run into this problem:
  
  
  http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html#Wicketbehindafront-endproxy-Whythisdoesn%2527talwayswork
  
   Frank
  
  
   On Nov 9, 2007 11:56 AM, Murat Yücel [EMAIL PROTECTED] wrote:
  
Hi All
   
I have looked at this article:
http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html
   
and it seems like the problem should be gone in wicket 1.3 but it
isnt. I still get 404
errors. There is a warning on the wiki page: Don't use setContextPath
with Wicket 1.3.
   
I am not setting the context path. Instead i am using filter-mapping.
Is this the same thing?
   
   filter-mapping
   filter-namewicket/filter-name
   !-- The app is needed for ajax (this is a known
limitation/bug in wicket) --
   url-pattern/app/*/url-pattern
   /filter-mapping
   
Do you have a workaround for this issue or am i doing something wrong?
I am currently running 1.3-beta4.
   
Kind regards
   
/Murat Yücel
   
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



Re: Wicket behind a front-end proxy

2007-11-09 Thread Murat Yücel
It seems like wicket doesnt support it, because there is no workaround
on the link that
Frank Bille send. There is only information about that this is a problem.

/Murat

2007/11/9, Johan Compagner [EMAIL PROTECTED]:
 so we dont support this currently?

 myserver1.xxx.com:80 - localhost:8080/myapp1
 myserver2.xxx.com:80 - localhost:8080/myapp2

 johan


 On Nov 9, 2007 1:35 PM, Frank Bille [EMAIL PROTECTED] wrote:

  Read this again:
 
 
  http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html#Wicketbehindafront-endproxy-Whythisdoesn%2527talwayswork
 
  Frank
 
   On Nov 9, 2007 1:26 PM, Murat Yücel [EMAIL PROTECTED] wrote:
 
   Hi Frank
  
   I have substituted my projectname with wicket. Below is the conf for
   the proxy part.
  
   VirtualHost *
 ServerAdmin [EMAIL PROTECTED]
 ServerName  www.wicket.com
 ServerAlias wicket.com
  
 ProxyRequests off
 ProxyPreserveHost On
 RewriteEngine On
  
 # Indexes + Directory Root.
 DirectoryIndex index.html
 DocumentRoot /var/wicket.com
  
 # Logfiles
 ErrorLog  /var/log/apache2/wicket-error.log
 CustomLog /var/log/apache2/wicket-access.log combined
  
 ProxyPass / http://127.0.0.1:8080/wicket/
 ProxyPassReverse / http://127.0.0.1:8080/wicket/
  
 ProxyPreserveHost On
   /VirtualHost
  
   2007/11/9, Frank Bille [EMAIL PROTECTED]:
Sounds weird.
   
Can you show me your apache conf for the proxy?
   
Frank
   
On Nov 9, 2007 12:44 PM, Murat Yücel [EMAIL PROTECTED] wrote:
   
 Hi Frank

 I have changed the /app/* to /* but it doesnt change the urls. They
 are still wrong.
 For example i enter the following url:
 www.wicket.com

 The url is transformed to

  www.wicket.com/wicket/?wicket:bookmarkablePage=%3Acom.wicket.LoginPage

 If i remove the the wicket part from the url then i can see the
  login
 page. But if i click
 on a link then the wicket part is appended again.

 /Murat

 2007/11/9, Frank Bille [EMAIL PROTECTED]:
  First of all, you don't need /app/* anylonger. just /*.
 
  I'm running behind proxy as well and it works well. Are you sure
  you
 haven't
  run into this problem:
 
 

  
  http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html#Wicketbehindafront-endproxy-Whythisdoesn%2527talwayswork
 
  Frank
 
 
  On Nov 9, 2007 11:56 AM, Murat Yücel [EMAIL PROTECTED]
  wrote:
 
   Hi All
  
   I have looked at this article:
  
   http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html
  
   and it seems like the problem should be gone in wicket 1.3 but
  it
   isnt. I still get 404
   errors. There is a warning on the wiki page: Don't use
   setContextPath
   with Wicket 1.3.
  
   I am not setting the context path. Instead i am using
   filter-mapping.
   Is this the same thing?
  
  filter-mapping
  filter-namewicket/filter-name
  !-- The app is needed for ajax (this is a known
   limitation/bug in wicket) --
  url-pattern/app/*/url-pattern
  /filter-mapping
  
   Do you have a workaround for this issue or am i doing something
   wrong?
   I am currently running 1.3-beta4.
  
   Kind regards
  
   /Murat Yücel
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 


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


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


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



Re: Copenhagen wicket users meeting?

2007-11-09 Thread Murat Yücel
When is the meeting? I have just signed up for the new wicket mailing list.
Maybe i should participate this time :). Flemming do you give a ride?

/Murat

2007/11/9, Flemming Boller [EMAIL PROTECTED]:
 done :-)

 On Nov 9, 2007 9:22 AM, Nino Saturnino Martinez Vazquez Wael 
 [EMAIL PROTECTED] wrote:

  Could more people signup if interested? We  cant only be 3 guys in
  denmark interested in this..
 
  I think the release of wicket 1.3 should be an excellent time to hold a
  meeting, of course we need to agree on a exact date...
 
  Again as I wrote earlier this is an excellent way to get introduced to
  wicket.. If we are enough persons we will divide into two tracks, basic
  and advanced..
 
  regards Nino
 
  Nino Saturnino Martinez Vazquez Wael wrote:
   Bump for more people to join, otherwise it will not happen...
  
   This would be an excellent opertunity to meet other wicketeers and
   discuss relevant problems...
  
   regards Nino
  
   Nino Saturnino Martinez Vazquez Wael wrote:
   Some time has past since our last meeting. Perhaps it's time for a
   new one?
  
   We could focus this meeting on using basic wicket. In order to have
   more newcommers?
  
   Whats your opinion on this people? What would make you come to the
   meeting, and how many are we from denmark?
  
  
   regards Nino
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
  --
  Nino Martinez Wael
  Java Specialist @ Jayway DK
  http://www.jayway.dk
  +45 2936 7684
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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