Re: TabbelPanel doesnt work in appengine

2010-05-05 Thread Alexander Monakhov
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() );
}

// Check authorization
if ( !isActionAuthorized( ENABLE ) ) {
throw new UnauthorizedActionException( this, ENABLE );
}

// Check whether this will result in an actual change
if ( !getModelComparator().compare( this, object ) ) {

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() );
        }

        

Custom Javascript Events

2010-05-05 Thread Josh Kamau
Hi all

Anyone with a sample code on how to handle custom javascript events with
wicket on the server side?

I would like to use jquery but handle events on the serverside. I had tried
wiquery but lack of documentation is really frustrating me. I have great
books on Jquery and JQuery UI and i would like to use the javascript
libraries directly but handle the events on the server side.

Please help.

Thanks in advance.

Regards.
Josh


Re: Custom Javascript Events

2010-05-05 Thread Ernesto Reinaldo Barreiro
Hi Josh,

Can you be more specific?  Which functionality are you missing and
which events you want to handle on the server side? I've been using
wiQuery for over three weeks now and I really find it intuitive and
easy to use.

Best,

Ernesto

On Wed, May 5, 2010 at 10:02 AM, Josh Kamau joshnet2...@gmail.com wrote:
 Hi all

 Anyone with a sample code on how to handle custom javascript events with
 wicket on the server side?

 I would like to use jquery but handle events on the serverside. I had tried
 wiquery but lack of documentation is really frustrating me. I have great
 books on Jquery and JQuery UI and i would like to use the javascript
 libraries directly but handle the events on the server side.

 Please help.

 Thanks in advance.

 Regards.
 Josh


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



Re: Custom Javascript Events

2010-05-05 Thread Josh Kamau
Ernesto;

On WiQuery, how do i set component configuration parameters? How do modify
the CSS?  If i find an nice jquery component elsewhere eg the tooltip or the
grid or even the jquery UI Layout, how do i integrate it?  I have a feeling
that i will have more control and have access to more jquery features if i
use Jquery directly.  I only wish i could add jquery event as behaviours the
way i do with native javascript events.

I appreciate the work done on WiQuery though.

On Wed, May 5, 2010 at 11:15 AM, Ernesto Reinaldo Barreiro 
reier...@gmail.com wrote:

 Hi Josh,

 Can you be more specific?  Which functionality are you missing and
 which events you want to handle on the server side? I've been using
 wiQuery for over three weeks now and I really find it intuitive and
 easy to use.

 Best,

 Ernesto

 On Wed, May 5, 2010 at 10:02 AM, Josh Kamau joshnet2...@gmail.com wrote:
  Hi all
 
  Anyone with a sample code on how to handle custom javascript events with
  wicket on the server side?
 
  I would like to use jquery but handle events on the serverside. I had
 tried
  wiquery but lack of documentation is really frustrating me. I have great
  books on Jquery and JQuery UI and i would like to use the javascript
  libraries directly but handle the events on the server side.
 
  Please help.
 
  Thanks in advance.
 
  Regards.
  Josh
 

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




Re: Custom Javascript Events

2010-05-05 Thread Ernesto Reinaldo Barreiro
Hi Josh,

Answers inline


 On WiQuery, how do i set component configuration parameters? How do modify
 the CSS?

Many components have setters and getter for their properties. E.g.

public DialogPanel(String id) {
super(id);
Dialog dialog = new Dialog(dialog);
dialog.setAutoOpen(true);
dialog.setWidth(500);
dialog.setHeight(500);
dialog.setResizeStopEvent(new JsScopeUiEvent(){

private static final long serialVersionUID = 1L;

@Override
protected void execute(JsScopeContext scopeContext) {

scopeContext.append(DialogPanel.this.layout.statement().render(true));
}
});
dialog.setModal(true);

add(dialog);
.
}

wicket:panel
div wicket:id=dialog title=Modal Dialog!
div wicket:id=layout style=width: auto; height: auto;
/div
/div
/wicket:panel

In the example above: what is stopping you from adding your own CSS
class to dialog div and on DialogPanel add a references to the CSS
file adding the custom CSS properties you want? Or even overriding
JQuery UI CSS...

If i find an nice jquery component elsewhere eg the tooltip or the
 grid or even the jquery UI Layout, how do i integrate it?  I have a feeling
 that i will have more control and have access to more jquery features if i
 use Jquery directly.  I only wish i could add jquery event as behaviours the
 way i do with native javascript events.

IMHO it is very easy to integrate third party jquery plugins as
WiQuery plugins. That's not very much different from integrating other
JS libraries as Wicket components. Do you need examples on how to
integrate new components and provide server side handling of events?
Take a look at [1]-[4]

In my opinion there is no need to duplicate the Job already done by
wiQuery developers: I think that's what you will end up doing if you
start implementing all those things on your own;-). As said: if you
have concrete examples of things you want to do and not know how to
achieve them, ask on jquery forum that for sure someone will answer
with a concrete proposal... and if it a feature the integrations
misses it will for sure make it somehow into their implementation.

Best,

Ernesto

References,

1-http://code.google.com/p/wijqgrid/source/browse/trunk/wijqgrid/src/main/java/com/wijqgrid/component/Grid.java
2-http://code.google.com/p/wijqgrid/source/browse/trunk/wijqgrid/src/main/java/com/jquery/slider/AjaxSlider.java
3-http://code.google.com/p/wijqgrid/source/browse/trunk/wijqgrid/src/main/java/com/jquery/slider/test/SliderPanel.java
4-http://code.google.com/p/wijqgrid/source/browse/trunk/wijqgrid/src/main/java/org/odlabs/wiquery/plugin/layout/Layout.java

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



Re: Custom Javascript Events

2010-05-05 Thread Ernesto Reinaldo Barreiro
 achieve them, ask on jquery forum that for sure someone will answer

I meant on the wiquery forum

Ernesto

On Wed, May 5, 2010 at 11:34 AM, Ernesto Reinaldo Barreiro
reier...@gmail.com wrote:
 Hi Josh,

 Answers inline


 On WiQuery, how do i set component configuration parameters? How do modify
 the CSS?

 Many components have setters and getter for their properties. E.g.

 public DialogPanel(String id) {
        super(id);
        Dialog dialog = new Dialog(dialog);
        dialog.setAutoOpen(true);
        dialog.setWidth(500);
        dialog.setHeight(500);
        dialog.setResizeStopEvent(new JsScopeUiEvent(){

                private static final long serialVersionUID = 1L;

                       �...@override
                protected void execute(JsScopeContext scopeContext) {
                        
 scopeContext.append(DialogPanel.this.layout.statement().render(true));
                }
        });
        dialog.setModal(true);

        add(dialog);
        .
 }

 wicket:panel
        div wicket:id=dialog title=Modal Dialog!
                div wicket:id=layout style=width: auto; height: auto;
                /div
        /div
 /wicket:panel

 In the example above: what is stopping you from adding your own CSS
 class to dialog div and on DialogPanel add a references to the CSS
 file adding the custom CSS properties you want? Or even overriding
 JQuery UI CSS...

If i find an nice jquery component elsewhere eg the tooltip or the
 grid or even the jquery UI Layout, how do i integrate it?  I have a feeling
 that i will have more control and have access to more jquery features if i
 use Jquery directly.  I only wish i could add jquery event as behaviours the
 way i do with native javascript events.

 IMHO it is very easy to integrate third party jquery plugins as
 WiQuery plugins. That's not very much different from integrating other
 JS libraries as Wicket components. Do you need examples on how to
 integrate new components and provide server side handling of events?
 Take a look at [1]-[4]

 In my opinion there is no need to duplicate the Job already done by
 wiQuery developers: I think that's what you will end up doing if you
 start implementing all those things on your own;-). As said: if you
 have concrete examples of things you want to do and not know how to
 achieve them, ask on jquery forum that for sure someone will answer
 with a concrete proposal... and if it a feature the integrations
 misses it will for sure make it somehow into their implementation.

 Best,

 Ernesto

 References,

 1-http://code.google.com/p/wijqgrid/source/browse/trunk/wijqgrid/src/main/java/com/wijqgrid/component/Grid.java
 2-http://code.google.com/p/wijqgrid/source/browse/trunk/wijqgrid/src/main/java/com/jquery/slider/AjaxSlider.java
 3-http://code.google.com/p/wijqgrid/source/browse/trunk/wijqgrid/src/main/java/com/jquery/slider/test/SliderPanel.java
 4-http://code.google.com/p/wijqgrid/source/browse/trunk/wijqgrid/src/main/java/org/odlabs/wiquery/plugin/layout/Layout.java


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



Re: Custom Javascript Events

2010-05-05 Thread Josh Kamau
THanks Ernesto.

I will revisit wiquery

regards.

Josh

On Wed, May 5, 2010 at 12:34 PM, Ernesto Reinaldo Barreiro 
reier...@gmail.com wrote:

 Hi Josh,

 Answers inline

 
  On WiQuery, how do i set component configuration parameters? How do
 modify
  the CSS?

 Many components have setters and getter for their properties. E.g.

 public DialogPanel(String id) {
super(id);
Dialog dialog = new Dialog(dialog);
dialog.setAutoOpen(true);
dialog.setWidth(500);
dialog.setHeight(500);
dialog.setResizeStopEvent(new JsScopeUiEvent(){

private static final long serialVersionUID = 1L;

@Override
protected void execute(JsScopeContext scopeContext) {

  scopeContext.append(DialogPanel.this.layout.statement().render(true));
}
});
dialog.setModal(true);

add(dialog);
.
 }

 wicket:panel
div wicket:id=dialog title=Modal Dialog!
div wicket:id=layout style=width: auto; height: auto;
/div
/div
 /wicket:panel

 In the example above: what is stopping you from adding your own CSS
 class to dialog div and on DialogPanel add a references to the CSS
 file adding the custom CSS properties you want? Or even overriding
 JQuery UI CSS...

 If i find an nice jquery component elsewhere eg the tooltip or the
  grid or even the jquery UI Layout, how do i integrate it?  I have a
 feeling
  that i will have more control and have access to more jquery features if
 i
  use Jquery directly.  I only wish i could add jquery event as behaviours
 the
  way i do with native javascript events.

 IMHO it is very easy to integrate third party jquery plugins as
 WiQuery plugins. That's not very much different from integrating other
 JS libraries as Wicket components. Do you need examples on how to
 integrate new components and provide server side handling of events?
 Take a look at [1]-[4]

 In my opinion there is no need to duplicate the Job already done by
 wiQuery developers: I think that's what you will end up doing if you
 start implementing all those things on your own;-). As said: if you
 have concrete examples of things you want to do and not know how to
 achieve them, ask on jquery forum that for sure someone will answer
 with a concrete proposal... and if it a feature the integrations
 misses it will for sure make it somehow into their implementation.

 Best,

 Ernesto

 References,

 1-
 http://code.google.com/p/wijqgrid/source/browse/trunk/wijqgrid/src/main/java/com/wijqgrid/component/Grid.java

 2-http://code.google.com/p/wijqgrid/source/browse/trunk/wijqgrid/src/main/java/com/jquery/slider/AjaxSlider.java

 3-http://code.google.com/p/wijqgrid/source/browse/trunk/wijqgrid/src/main/java/com/jquery/slider/test/SliderPanel.java

 4-http://code.google.com/p/wijqgrid/source/browse/trunk/wijqgrid/src/main/java/org/odlabs/wiquery/plugin/layout/Layout.java

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




Re: Custom Javascript Events

2010-05-05 Thread Josh Kamau
WiQuery rocks!!!. i think am getting the rythm now.

Thanks guys

On Wed, May 5, 2010 at 1:03 PM, Josh Kamau joshnet2...@gmail.com wrote:

 THanks Ernesto.

 I will revisit wiquery

 regards.

 Josh


 On Wed, May 5, 2010 at 12:34 PM, Ernesto Reinaldo Barreiro 
 reier...@gmail.com wrote:

 Hi Josh,

 Answers inline

 
  On WiQuery, how do i set component configuration parameters? How do
 modify
  the CSS?

 Many components have setters and getter for their properties. E.g.

 public DialogPanel(String id) {
super(id);
Dialog dialog = new Dialog(dialog);
dialog.setAutoOpen(true);
dialog.setWidth(500);
dialog.setHeight(500);
dialog.setResizeStopEvent(new JsScopeUiEvent(){

private static final long serialVersionUID = 1L;

@Override
protected void execute(JsScopeContext scopeContext) {

  scopeContext.append(DialogPanel.this.layout.statement().render(true));
}
});
dialog.setModal(true);

add(dialog);
.
 }

 wicket:panel
div wicket:id=dialog title=Modal Dialog!
div wicket:id=layout style=width: auto; height: auto;
/div
/div
 /wicket:panel

 In the example above: what is stopping you from adding your own CSS
 class to dialog div and on DialogPanel add a references to the CSS
 file adding the custom CSS properties you want? Or even overriding
 JQuery UI CSS...

 If i find an nice jquery component elsewhere eg the tooltip or the
  grid or even the jquery UI Layout, how do i integrate it?  I have a
 feeling
  that i will have more control and have access to more jquery features if
 i
  use Jquery directly.  I only wish i could add jquery event as behaviours
 the
  way i do with native javascript events.

 IMHO it is very easy to integrate third party jquery plugins as
 WiQuery plugins. That's not very much different from integrating other
 JS libraries as Wicket components. Do you need examples on how to
 integrate new components and provide server side handling of events?
 Take a look at [1]-[4]

 In my opinion there is no need to duplicate the Job already done by
 wiQuery developers: I think that's what you will end up doing if you
 start implementing all those things on your own;-). As said: if you
 have concrete examples of things you want to do and not know how to
 achieve them, ask on jquery forum that for sure someone will answer
 with a concrete proposal... and if it a feature the integrations
 misses it will for sure make it somehow into their implementation.

 Best,

 Ernesto

 References,

 1-
 http://code.google.com/p/wijqgrid/source/browse/trunk/wijqgrid/src/main/java/com/wijqgrid/component/Grid.java

 2-http://code.google.com/p/wijqgrid/source/browse/trunk/wijqgrid/src/main/java/com/jquery/slider/AjaxSlider.java

 3-http://code.google.com/p/wijqgrid/source/browse/trunk/wijqgrid/src/main/java/com/jquery/slider/test/SliderPanel.java

 4-http://code.google.com/p/wijqgrid/source/browse/trunk/wijqgrid/src/main/java/org/odlabs/wiquery/plugin/layout/Layout.javahttp://code.google.com/p/wijqgrid/source/browse/trunk/wijqgrid/src/main/java/com/wijqgrid/component/Grid.java2-http://code.google.com/p/wijqgrid/source/browse/trunk/wijqgrid/src/main/java/com/jquery/slider/AjaxSlider.java3-http://code.google.com/p/wijqgrid/source/browse/trunk/wijqgrid/src/main/java/com/jquery/slider/test/SliderPanel.java4-http://code.google.com/p/wijqgrid/source/browse/trunk/wijqgrid/src/main/java/org/odlabs/wiquery/plugin/layout/Layout.java

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





Re: Custom Javascript Events

2010-05-05 Thread Ernesto Reinaldo Barreiro
I think they have some example/demo projects on their repo. Take a
look there for inspiration... and do not hesitate to ask questions on
their forum: Lionel, Julien, Cemal, Richard and others guys involved
on the project are very friendly and normally you will get your
questions answered...

Best,

Ernesto

On Wed, May 5, 2010 at 12:38 PM, Josh Kamau joshnet2...@gmail.com wrote:
 WiQuery rocks!!!. i think am getting the rythm now.

 Thanks guys

 On Wed, May 5, 2010 at 1:03 PM, Josh Kamau joshnet2...@gmail.com wrote:

 THanks Ernesto.

 I will revisit wiquery

 regards.

 Josh


 On Wed, May 5, 2010 at 12:34 PM, Ernesto Reinaldo Barreiro 
 reier...@gmail.com wrote:

 Hi Josh,

 Answers inline

 
  On WiQuery, how do i set component configuration parameters? How do
 modify
  the CSS?

 Many components have setters and getter for their properties. E.g.

 public DialogPanel(String id) {
        super(id);
        Dialog dialog = new Dialog(dialog);
        dialog.setAutoOpen(true);
        dialog.setWidth(500);
        dialog.setHeight(500);
        dialog.setResizeStopEvent(new JsScopeUiEvent(){

                private static final long serialVersionUID = 1L;

                       �...@override
                protected void execute(JsScopeContext scopeContext) {

  scopeContext.append(DialogPanel.this.layout.statement().render(true));
                }
        });
        dialog.setModal(true);

        add(dialog);
        .
 }

 wicket:panel
        div wicket:id=dialog title=Modal Dialog!
                div wicket:id=layout style=width: auto; height: auto;
                /div
        /div
 /wicket:panel

 In the example above: what is stopping you from adding your own CSS
 class to dialog div and on DialogPanel add a references to the CSS
 file adding the custom CSS properties you want? Or even overriding
 JQuery UI CSS...

 If i find an nice jquery component elsewhere eg the tooltip or the
  grid or even the jquery UI Layout, how do i integrate it?  I have a
 feeling
  that i will have more control and have access to more jquery features if
 i
  use Jquery directly.  I only wish i could add jquery event as behaviours
 the
  way i do with native javascript events.

 IMHO it is very easy to integrate third party jquery plugins as
 WiQuery plugins. That's not very much different from integrating other
 JS libraries as Wicket components. Do you need examples on how to
 integrate new components and provide server side handling of events?
 Take a look at [1]-[4]

 In my opinion there is no need to duplicate the Job already done by
 wiQuery developers: I think that's what you will end up doing if you
 start implementing all those things on your own;-). As said: if you
 have concrete examples of things you want to do and not know how to
 achieve them, ask on jquery forum that for sure someone will answer
 with a concrete proposal... and if it a feature the integrations
 misses it will for sure make it somehow into their implementation.

 Best,

 Ernesto

 References,

 1-
 http://code.google.com/p/wijqgrid/source/browse/trunk/wijqgrid/src/main/java/com/wijqgrid/component/Grid.java

 2-http://code.google.com/p/wijqgrid/source/browse/trunk/wijqgrid/src/main/java/com/jquery/slider/AjaxSlider.java

 3-http://code.google.com/p/wijqgrid/source/browse/trunk/wijqgrid/src/main/java/com/jquery/slider/test/SliderPanel.java

 4-http://code.google.com/p/wijqgrid/source/browse/trunk/wijqgrid/src/main/java/org/odlabs/wiquery/plugin/layout/Layout.javahttp://code.google.com/p/wijqgrid/source/browse/trunk/wijqgrid/src/main/java/com/wijqgrid/component/Grid.java2-http://code.google.com/p/wijqgrid/source/browse/trunk/wijqgrid/src/main/java/com/jquery/slider/AjaxSlider.java3-http://code.google.com/p/wijqgrid/source/browse/trunk/wijqgrid/src/main/java/com/jquery/slider/test/SliderPanel.java4-http://code.google.com/p/wijqgrid/source/browse/trunk/wijqgrid/src/main/java/org/odlabs/wiquery/plugin/layout/Layout.java

 -
 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: root context, IE, home page is not found

2010-05-05 Thread Erik van Oosten

I don't get it.
I tested this fix with Tomcat and several IE versions. And . just 
worked then whereas ./ did not.


Regards,
Erik.


Op 04-05-10 14:56, Martin Grotzke wrote:

Hi,

we also just experienced issues with this, and the fix of WICKET-2600
still causes problems (as already described in this post):

For the redirect to . tomcat produces a Location header like
http://www.example.org/. (notice the trailing dot), which causes IE to
do request exactly this url, for which no page ist mounted. Therefore
the 404 page not found.

Is there a special reason why . was chosen here?

What do you think about an alternative handling like this:

if (redirectUrl.startsWith(./)) {
   if (redirectUrl.length() == 2)) {
 WebRequest request = (WebRequest) requestCycle.getRequest();
 String contextPath = request.getHttpServletRequest().getContextPath(); // e.g. 
/myapp
 String servletPath = request.getServletPath(); // e.g. /
 redirectUrl = contextPath + servletPath;
   }
   else {
 redirectUrl.substring( 2 )
   }
}

Cheers,
Martin


On Sat, 2010-05-01 at 10:47 +0200, Erik van Oosten wrote:
   

This might be related to https://issues.apache.org/jira/browse/WICKET-2600?

Regards,
  Erik.
   


--
Sent from my SMTP compliant software
Erik van Oosten
http://day-to-day-stuff.blogspot.com/



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



Cache menu

2010-05-05 Thread Wolfgang

I'm working on a web site that has a menu bar with sub-items, and
sub-sub-items. The configuration of this menu is computed from hilariously
complex SQL queries and needs quite some time to be established. The menu
looks different for each user (session) but stays the same for the lifetime
of the session. So it's time for caching as this menu shows up on most of
the pages.

From other posts on this site I've taken that it's not a good idea to share
the components that represent the menu among different pages. Now I wonder
on which level I can cache and re-use objects.

Is it advisable to share models (in the Wicket sense), i.e. store the menu
models on the session and construct the menu components according to their
information for every page?

Or do I have to create separate, Wicket-independent data structures that
hold the menu structure information and store it on the session or in the
database?

Or am I on a complete wrong track and should look for caching of the
rendered HTML code on a component basis?

Thanks in advance for sharing your knowledge/experience. 
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Cache-menu-tp2130976p2130976.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: Cache menu

2010-05-05 Thread Ernesto Reinaldo Barreiro
I would opt for creating very simple Java beans containing the cached
information and store them on the session and later on use that
information to build the menu bar. If several users share the
information (e/g/ based on roles) maybe you can devise some mechanism
to store them by role so that several session share the information.
If this menu bar information does not vary over time, or you have a
good criteria to know it is stale, and if is costly to compute I would
also consider (as you suggest) storing it on a temporary database for
later use (and recompute it just if it is stale).

Best,

Ernesto

On Wed, May 5, 2010 at 3:55 PM, Wolfgang wolfgang.bue...@exedio.com wrote:

 I'm working on a web site that has a menu bar with sub-items, and
 sub-sub-items. The configuration of this menu is computed from hilariously
 complex SQL queries and needs quite some time to be established. The menu
 looks different for each user (session) but stays the same for the lifetime
 of the session. So it's time for caching as this menu shows up on most of
 the pages.

 From other posts on this site I've taken that it's not a good idea to share
 the components that represent the menu among different pages. Now I wonder
 on which level I can cache and re-use objects.

 Is it advisable to share models (in the Wicket sense), i.e. store the menu
 models on the session and construct the menu components according to their
 information for every page?

 Or do I have to create separate, Wicket-independent data structures that
 hold the menu structure information and store it on the session or in the
 database?

 Or am I on a complete wrong track and should look for caching of the
 rendered HTML code on a component basis?

 Thanks in advance for sharing your knowledge/experience.
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Cache-menu-tp2130976p2130976.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: Cache menu

2010-05-05 Thread Igor Vaynberg
cache whatever holds the actual data. for example in our code we have
a menu and that takes IModelMenuRoot, and using menu root object it
can render the entire menu by traversing it. store the MenuRoot in
session.

-igor

On Wed, May 5, 2010 at 6:55 AM, Wolfgang wolfgang.bue...@exedio.com wrote:

 I'm working on a web site that has a menu bar with sub-items, and
 sub-sub-items. The configuration of this menu is computed from hilariously
 complex SQL queries and needs quite some time to be established. The menu
 looks different for each user (session) but stays the same for the lifetime
 of the session. So it's time for caching as this menu shows up on most of
 the pages.

 From other posts on this site I've taken that it's not a good idea to share
 the components that represent the menu among different pages. Now I wonder
 on which level I can cache and re-use objects.

 Is it advisable to share models (in the Wicket sense), i.e. store the menu
 models on the session and construct the menu components according to their
 information for every page?

 Or do I have to create separate, Wicket-independent data structures that
 hold the menu structure information and store it on the session or in the
 database?

 Or am I on a complete wrong track and should look for caching of the
 rendered HTML code on a component basis?

 Thanks in advance for sharing your knowledge/experience.
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Cache-menu-tp2130976p2130976.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



Dynamically adding rows to a html table

2010-05-05 Thread Gast, Thorsten
Hi,

we have a list of search results which are displayed in a html table. One entry 
per row. To see more details of a result, an ajax link should trigger a 
rendering of a new table row (tr) directly beneath the selected entry.
In a first approach we rendered a hidden table row (with wicket:id) which 
should be filled with the details. Currently we try to replace the table row 
e.g. with a method call to replaceWith of Component. We succeeded in displaying 
the content, but the tablerow wasn’t replaced. Instead a new one was created 
(without a markupid). So there is the problem that we have an empty and hidden 
tablerow and a new tablerow which can’t be removed dynamically afterwards.

Is there a best practice how this issue could be solved?

Regards

Thorsten


Re: Dynamically adding rows to a html table

2010-05-05 Thread Martin Makundi
I have noticed that with HTML tables you must often redraw table if
you want to add or manipulate rows.

**
Martin

2010/5/5 Gast, Thorsten thorsten.g...@wirecard.com:
 Hi,

 we have a list of search results which are displayed in a html table. One 
 entry per row. To see more details of a result, an ajax link should trigger a 
 rendering of a new table row (tr) directly beneath the selected entry.
 In a first approach we rendered a hidden table row (with wicket:id) which 
 should be filled with the details. Currently we try to replace the table row 
 e.g. with a method call to replaceWith of Component. We succeeded in 
 displaying the content, but the tablerow wasn’t replaced. Instead a new one 
 was created (without a markupid). So there is the problem that we have an 
 empty and hidden tablerow and a new tablerow which can’t be removed 
 dynamically afterwards.

 Is there a best practice how this issue could be solved?

 Regards

 Thorsten


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



wicket tinymce blank string

2010-05-05 Thread tubin gen
I use tinymce behaviour for my textarea. Suppose user enters  in  tinymce
textarea   white spaces   and saves the  form , the value for the property
 representing textarea is neither null nor blank string , and so I insert
into database, is there any way I can identify if text from  inymce is blank
string ?


Re: Dynamically adding rows to a html table

2010-05-05 Thread Igor Vaynberg
http://wicketinaction.com/2008/10/repainting-only-newly-created-repeater-items-via-ajax/

-igor

On Wed, May 5, 2010 at 8:17 AM, Gast, Thorsten
thorsten.g...@wirecard.com wrote:
 Hi,

 we have a list of search results which are displayed in a html table. One 
 entry per row. To see more details of a result, an ajax link should trigger a 
 rendering of a new table row (tr) directly beneath the selected entry.
 In a first approach we rendered a hidden table row (with wicket:id) which 
 should be filled with the details. Currently we try to replace the table row 
 e.g. with a method call to replaceWith of Component. We succeeded in 
 displaying the content, but the tablerow wasn’t replaced. Instead a new one 
 was created (without a markupid). So there is the problem that we have an 
 empty and hidden tablerow and a new tablerow which can’t be removed 
 dynamically afterwards.

 Is there a best practice how this issue could be solved?

 Regards

 Thorsten


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



formsubmitbehaviour and textarea with tinymce behaviour

2010-05-05 Thread tubin gen
I have a form with a checkbox ,  text and a  textarea with tinymce
behaviour.
I addedAjaxFormSubmitBehavior   to the checkbox here the code


   add(new CheckBox(concur){ { add(new
AjaxFormSubmitBehavior(ResolveFindingForm.this,onChange){ @Override
protected void onSubmit(AjaxRequestTarget target) { Object
s=((FormComponent)getForm().get(adjustedAmt)).getConvertedInput();
s=((FormComponent)getForm().get(actionTakedDesc)).getConvertedInput();
System.out.println(s); } @Override protected void onError(AjaxRequestTarget
target) { } }); } });
on selecting the checkbox, in the  onSubmit methood in
AjaxFormSubmitBehavior
I get the user entered value for adjustedAmt which is a text , but the user
entered value for actionTakedDesc which is textarea with tinymce behaviour
is always null.
Please tell me why is it not updating for model with tinymce text ?
I also have ajaxsubmitbutton which works fine , but AjaxFormSubmitBehavior
is not updating value of tinymce textarea .


Re: formsubmitbehaviour and textarea with tinymce behaviour

2010-05-05 Thread Josh Glassman
http://wicketbyexample.com/wicket-tinymce-some-advanced-tips/


Re: SEVERE:Pagemap null is still locked by: Thread

2010-05-05 Thread Johan Compagner
hmm

looking at the stack of the of that thread that has the lock on the page map
then it seems to me that that shouldnt happen, because that thread is doing
nothing anymore if the stack dump of that thread is really the right one.

Because that just seems to be in a waiting state in a tomcat pool

So then it is more that there is some exception in front of that maybe that
somehow didnt release the pagemap
What version of wicket do you use?


On Tue, May 4, 2010 at 23:40, Ayodeji Aladejebi aladej...@gmail.com wrote:

 SEVERE: org.apache.wicket.WicketRuntimeException: After 1 minute the
 Pagemap
 null is still locked by: Thread[http-8084-7,5,main], giving up trying to
 get
 the page for path: 2
Begin of stack trace of Thread[http-8084-7,5,main]
java.lang.Object.wait(Native Method)
java.lang.Object.wait(Object.java:485)

  org.apache.tomcat.util.net.AprEndpoint$Worker.await(AprEndpoint.java:1511)

  org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1536)
java.lang.Thread.run(Thread.java:619)
End of stack trace of Thread[http-8084-7,5,main]
 org.apache.wicket.protocol.http.request.InvalidUrlException:
 org.apache.wicket.WicketRuntimeException: After 1 minute the Pagemap null
 is
 still locked by: Thread[http-8084-7,5,main], giving up trying to get the
 page for path: 2
Begin of stack trace of Thread[http-8084-7,5,main]
java.lang.Object.wait(Native Method)
java.lang.Object.wait(Object.java:485)

  org.apache.tomcat.util.net.AprEndpoint$Worker.await(AprEndpoint.java:1511)

  org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1536)
java.lang.Thread.run(Thread.java:619)
End of stack trace of Thread[http-8084-7,5,main]

 -- Any tips

 I



Re: wicket tinymce blank string

2010-05-05 Thread fachhoch

I mean when user enters white space into text areas , the value  of the
property representing textarea will contain html for blank string, I am
asking how to identify html for blank string ?  
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-tinymce-blank-string-tp2131136p2131279.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: wicket tinymce blank string

2010-05-05 Thread Josh Glassman
http://stackoverflow.com/questions/240546/removing-html-from-a-java-string

. . . and then . . .

yourStringWithoutHTML.trim().isEmpty()


AjaxFormSubmitBehavior for on Select

2010-05-05 Thread tubin gen
can I add   AjaxFormSubmitBehavior   on a checkbox for onSelect i tried it
is not working.

new AjaxFormSubmitBehavior(ResolveFindingForm.this,onSelect)


Re: DateTextField and DatePicker returning wrong date

2010-05-05 Thread taygolf

anyone have any help here? I really think this is a bug inside wicket but I
may be doing something wrong. Any opinions would be greatly appreciated

T
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/DateTextField-and-DatePicker-returning-wrong-date-tp2126267p2131360.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: AjaxFormSubmitBehavior for on Select

2010-05-05 Thread Igor Vaynberg
sue onclick

-igor

On Wed, May 5, 2010 at 10:20 AM, tubin gen fachh...@gmail.com wrote:
 can I add   AjaxFormSubmitBehavior   on a checkbox for onSelect i tried it
 is not working.

 new AjaxFormSubmitBehavior(ResolveFindingForm.this,onSelect)


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



Re: wicketstuff-minis status?

2010-05-05 Thread nino martinez wael
Well I have nothing planed but as I dont think it'll take me long I'll
look into and see i can do it soon. Are you needing it right now or?

2010/5/3 nmetzger nmetz...@odu.edu:

 Hi Nino,

 is there any update planned for mootools 1.2.4?

 Thanks,
 Natalie
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/wicketstuff-minis-status-tp1867557p2124092.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: wicketstuff-minis status?

2010-05-05 Thread nino martinez wael
Hmm a 2 second search brought this  up
http://www.uhleeka.com/blog/2008/11/mootoolstips-convert-v11-to-v12/

It does not seem the guy who wrote mootips supports 1.2.4... Is'nt
that how you read it too?

Otherwise we should look around for something else that does support 1.2.4...

regards Nino

2010/5/5 nino martinez wael nino.martinez.w...@gmail.com:
 Well I have nothing planed but as I dont think it'll take me long I'll
 look into and see i can do it soon. Are you needing it right now or?

 2010/5/3 nmetzger nmetz...@odu.edu:

 Hi Nino,

 is there any update planned for mootools 1.2.4?

 Thanks,
 Natalie
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/wicketstuff-minis-status-tp1867557p2124092.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



Caching menu

2010-05-05 Thread Wolfgang

I'm working on a web site that has a menu bar with sub-items, and
sub-sub-items. The configuration of this menu is computed from hilariously
complex SQL queries and needs quite some time to be established. The menu
looks different for each user (session) but stays the same for the lifetime
of the session. So it's time for caching as this menu shows up on most of
the pages.

From other posts on this site I've taken that it's not a good idea to share
the components that represent the menu among different pages. Now I wonder
on which level I can cache and re-use objects.

Is it advisable to share models (in the Wicket sense), i.e. store the menu
models on the session and construct the menu components according to their
information for every page?

Or do I have to create separate, Wicket-independent data structures that
hold the menu structure information and store it on the session or in the
database?

Or am I on a complete wrong track and should look for caching of the
rendered HTML code on a component basis?

Thanks in advance for sharing your knowledge/experience.

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Caching-menu-tp2130813p2130813.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: Dynamic checkbox form

2010-05-05 Thread Wolfgang

Each checkbox will be associated with a model. After submitting the form (in
your onSubmit method), these models contain the value of the checkbox. As
you have a dynamic set of checkboxes you have to make you store the models
in an appropriate collection. Or, you remember the references to the
checkbox components and ask them about their model value.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Dynamic-checkbox-form-tp2125793p2130820.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: CheckGroup and ListView

2010-05-05 Thread msalman

I have not heard anything on this one.  I will be very thankful if I can get
some help on this one.  To help reproduce the problem I have attached simple
code files.

http://n4.nabble.com/file/n2131672/App.java App.java .  
http://n4.nabble.com/file/n2131672/PageCheckGroup.html PageCheckGroup.html .
http://n4.nabble.com/file/n2131672/PageCheckGroup.java PageCheckGroup.java .
http://n4.nabble.com/file/n2131672/SelectableValue.java SelectableValue.java
.



-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/CheckGroup-and-ListView-tp1886879p2131672.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: CheckGroup and ListView

2010-05-05 Thread Jeremy Thomerson
I haven't looked at it in detail, but you shouldn't be doing that
removeAll() and setList() stuff - it comes from a lack of using Models
properly - which is the most common mistake I see in Wicket users.  Instead,
you should give the ListView constructor an instance of some
IModelListSelectableValue.  Then simply add your new selectable value to
whatever list that model is getting it's data from.  The ListView will
auto-magically repaint everything correctly.

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



On Wed, May 5, 2010 at 3:59 PM, msalman mohammad_sal...@yahoo.com wrote:


 I have not heard anything on this one.  I will be very thankful if I can
 get
 some help on this one.  To help reproduce the problem I have attached
 simple
 code files.

 http://n4.nabble.com/file/n2131672/App.java App.java .
 http://n4.nabble.com/file/n2131672/PageCheckGroup.html PageCheckGroup.html
 .
 http://n4.nabble.com/file/n2131672/PageCheckGroup.java PageCheckGroup.java
 .
 http://n4.nabble.com/file/n2131672/SelectableValue.javaSelectableValue.java
 .



 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/CheckGroup-and-ListView-tp1886879p2131672.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




WicketStuff version bumping?

2010-05-05 Thread Major Péter

Hi,

We have 1.4.7-SNAPSHOT for quite some time now, shouldn't we release an 
1.4.8 edition and bump to 1.4.8-SNAPSHOT?


Regards,
Peter

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



Re: CheckGroup and ListView

2010-05-05 Thread msalman

Oh my. I was just about to send you a special email for my problem.  But you 
pre-empted me.
I will try your suggestion.
 
Thanks so much
Mohammad Salman 
(510) 673-5869 c 

Every problem has its solution(s) but there are problems with any solution





From: Jeremy Thomerson [via Apache Wicket] 
ml-node+2131687-1413056525-229...@n4.nabble.com
To: msalman mohammad_sal...@yahoo.com
Sent: Wed, May 5, 2010 2:08:06 PM
Subject: Re: CheckGroup and ListView

I haven't looked at it in detail, but you shouldn't be doing that 
removeAll() and setList() stuff - it comes from a lack of using Models 
properly - which is the most common mistake I see in Wicket users.  Instead, 
you should give the ListView constructor an instance of some 
IModelListSelectableValue.  Then simply add your new selectable value to 
whatever list that model is getting it's data from.  The ListView will 
auto-magically repaint everything correctly. 

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



On Wed, May 5, 2010 at 3:59 PM, msalman [hidden email] wrote: 


 
 I have not heard anything on this one.  I will be very thankful if I can 
 get 
 some help on this one.  To help reproduce the problem I have attached 
 simple 
 code files. 
 
 http://n4.nabble.com/file/n2131672/App.java App.java . 
 http://n4.nabble.com/file/n2131672/PageCheckGroup.html PageCheckGroup.html 
 . 
 http://n4.nabble.com/file/n2131672/PageCheckGroup.java PageCheckGroup.java 
 . 
 http://n4.nabble.com/file/n2131672/SelectableValue.javaSelectableValue.java
 . 
 
 
 
 -- 
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/CheckGroup-and-ListView-tp1886879p2131672.html
 Sent from the Wicket - User mailing list archive at Nabble.com. 
 
 - 
 To unsubscribe, e-mail: [hidden email] 
 For additional commands, e-mail: [hidden email] 
 
 



 
View message @ 
http://apache-wicket.1842946.n4.nabble.com/CheckGroup-and-ListView-tp1886879p2131687.html
 
To unsubscribe from Re: CheckGroup and ListView, click here. 

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/CheckGroup-and-ListView-tp1886879p2131697.html
Sent from the Wicket - User mailing list archive at Nabble.com.


Re: WicketStuff version bumping?

2010-05-05 Thread James Carman
Wouldn't you release a 1.4.8 version (which goes with wicket 1.4.8)
and then go to 1.4.9-SNAPSHOT?

2010/5/5 Major Péter majorpe...@sch.bme.hu:
 Hi,

 We have 1.4.7-SNAPSHOT for quite some time now, shouldn't we release an
 1.4.8 edition and bump to 1.4.8-SNAPSHOT?

 Regards,
 Peter

 -
 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: WicketStuff version bumping?

2010-05-05 Thread Major Péter
Right, this would make more sense :)

2010-05-06 01:07 keltezéssel, James Carman írta:
 Wouldn't you release a 1.4.8 version (which goes with wicket 1.4.8)
 and then go to 1.4.9-SNAPSHOT?
 
 2010/5/5 Major Péter majorpe...@sch.bme.hu:
 Hi,

 We have 1.4.7-SNAPSHOT for quite some time now, shouldn't we release an
 1.4.8 edition and bump to 1.4.8-SNAPSHOT?

 Regards,
 Peter

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



Re: WicketStuff version bumping?

2010-05-05 Thread James Carman
Just checking. :)

2010/5/5 Major Péter majorpe...@sch.bme.hu:
 Right, this would make more sense :)

 2010-05-06 01:07 keltezéssel, James Carman írta:
 Wouldn't you release a 1.4.8 version (which goes with wicket 1.4.8)
 and then go to 1.4.9-SNAPSHOT?

 2010/5/5 Major Péter majorpe...@sch.bme.hu:
 Hi,

 We have 1.4.7-SNAPSHOT for quite some time now, shouldn't we release an
 1.4.8 edition and bump to 1.4.8-SNAPSHOT?

 Regards,
 Peter

 -
 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: wicketstuff-minis status?

2010-05-05 Thread nmetzger

It works for me, but I like using the newest libraries that are out there. I 
tried copying your code to my project and using the new mootools libs, but 
couldn't run it. Probably it's my IDE again. 

In short, if you have time to update it, it would be greatly appreciated. But 
if not, it's no big deal either.

Thanks,
Natalie

From: nino martinez wael [via Apache Wicket] 
[ml-node+2131419-210954253-229...@n4.nabble.com]
Sent: Wednesday, May 05, 2010 2:19 PM
To: Metzger, Natalie J.
Subject: Re: wicketstuff-minis status?

Well I have nothing planed but as I dont think it'll take me long I'll
look into and see i can do it soon. Are you needing it right now or?

2010/5/3 nmetzger [hidden 
email]/user/SendEmail.jtp?type=nodenode=2131419i=0:


 Hi Nino,

 is there any update planned for mootools 1.2.4?

 Thanks,
 Natalie
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/wicketstuff-minis-status-tp1867557p2124092.html
 Sent from the Wicket - User mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: [hidden 
 email]/user/SendEmail.jtp?type=nodenode=2131419i=1
 For additional commands, e-mail: [hidden 
 email]/user/SendEmail.jtp?type=nodenode=2131419i=2



-
To unsubscribe, e-mail: [hidden 
email]/user/SendEmail.jtp?type=nodenode=2131419i=3
For additional commands, e-mail: [hidden 
email]/user/SendEmail.jtp?type=nodenode=2131419i=4




View message @ 
http://apache-wicket.1842946.n4.nabble.com/wicketstuff-minis-status-tp1867557p2131419.html
To unsubscribe from Re: wicketstuff-minis status?, click 
herehttp://apache-wicket.1842946.n4.nabble.com/subscriptions/Unsubscribe.jtp?code=bm1ldHpnZXJAb2R1LmVkdXwyMTI0MDkyfDE0MzE4ODE3Njg=.


-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicketstuff-minis-status-tp1867557p2131911.html
Sent from the Wicket - User mailing list archive at Nabble.com.


convert wicket pages html to excel

2010-05-05 Thread studentenaufinformatik

we were converting our wicket html pages to pdf using flying saucer. Now our
client is asking to convert into excel , I donot know any thing  which does
this , please suggest me if any body knows to convert  html to excel  on
fly.  
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/convert-wicket-pages-html-to-excel-tp2131919p2131919.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: convert wicket pages html to excel

2010-05-05 Thread Tim L Casey


Instead of templinging out html, template out xml and call it file.xls.
There is a dom for spreadsheets.

-Original Message-
From: studentenaufinformatik [mailto:studentenaufinforma...@gmail.com] 
Sent: Wednesday, May 05, 2010 5:40 PM
To: users@wicket.apache.org
Subject: convert wicket pages html to excel


we were converting our wicket html pages to pdf using flying saucer. Now our
client is asking to convert into excel , I donot know any thing  which does
this , please suggest me if any body knows to convert  html to excel  on
fly.  
-- 
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/convert-wicket-pages-html-to-exce
l-tp2131919p2131919.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: convert wicket pages html to excel

2010-05-05 Thread Jeremy Thomerson
I've done this before.  I'd actually suggest not doing this.  Use jexcel [1]
- it is much more reliable and you won't have users calling you saying this
spreadsheet won't open.

[1] - http://jexcelapi.sourceforge.net/

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



On Wed, May 5, 2010 at 8:26 PM, Tim L Casey tca...@cataphora.com wrote:



 Instead of templinging out html, template out xml and call it file.xls.
 There is a dom for spreadsheets.

 -Original Message-
 From: studentenaufinformatik [mailto:studentenaufinforma...@gmail.com]
 Sent: Wednesday, May 05, 2010 5:40 PM
 To: users@wicket.apache.org
 Subject: convert wicket pages html to excel


 we were converting our wicket html pages to pdf using flying saucer. Now
 our
 client is asking to convert into excel , I donot know any thing  which does
 this , please suggest me if any body knows to convert  html to excel  on
 fly.
 --
 View this message in context:

 http://apache-wicket.1842946.n4.nabble.com/convert-wicket-pages-html-to-exce
 l-tp2131919p2131919.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: convert wicket pages html to excel

2010-05-05 Thread Adrian Wiesmann

On 5/6/10 3:42 AM, Jeremy Thomerson wrote:

I've done this before.  I'd actually suggest not doing this.  Use jexcel [1]
- it is much more reliable and you won't have users calling you saying this
spreadsheet won't open.


I've written CSV before but then changed to Apache POI because of all 
those spreadsheet apps out there interpreting the separator character 
differently by default...


Cheers,
Adrian

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



Re: convert wicket pages html to excel

2010-05-05 Thread Igor Vaynberg
+1 for poi, used it, worked great

-igor

On Wed, May 5, 2010 at 10:31 PM, Adrian Wiesmann awiesm...@somap.org wrote:
 On 5/6/10 3:42 AM, Jeremy Thomerson wrote:

 I've done this before.  I'd actually suggest not doing this.  Use jexcel
 [1]
 - it is much more reliable and you won't have users calling you saying
 this
 spreadsheet won't open.

 I've written CSV before but then changed to Apache POI because of all those
 spreadsheet apps out there interpreting the separator character differently
 by default...

 Cheers,
 Adrian

 -
 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