Making a DataTable Editable

2008-07-14 Thread Umesh Paliwal
Hi all,

 

I have a datatable and a button.

When I click on the button , the datatable should add a new row at the
bottom of the datatable.

 

Could you please guide me how to achieve this.

 

Thanks and regards,

Umesh Paliwal



RE: TabbedPanel and css problem

2008-07-10 Thread Umesh Paliwal
Hi Pierre,

You will have to place the Tab images in your web-app directory. The CSS
also needs to placed in the web-app directory.


If the CSS is not there in the web-app directory and is in the same
place as the HTML file,
You need to include it in your java code. 

add(new StyleSheetReference(...));   ==> method to add the CSS.

Thanks and regards,
Umesh

-Original Message-
From: Pierre Gilquin [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 10, 2008 11:57 AM
To: users@wicket.apache.org
Subject: TabbedPanel and css problem

Hi all,

I have try to use a  TabbedPanel in my appli.
The css look in not taking into account.

If I look into the html generated I have :



 
...

If I look in the example on
http://wicketstuff.org/wicket13/compref/?wicket:bookmarkablePage=:org.ap
ache.wicket.examples.compref.TabbedPanelPage

The equivalent ligne is


It's probably why the style.css is not applyed.
Do you have any idea why my appli send a "span" html tag ?
For my information, where are the gif used for TabbedPanel ? I cannot
find them in the wicket-extensions-1.3.0-rc1.jar 
or any where else !
Thanks in advance.

Pierre 


-
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: Problem with Pagination in Wicket 1.3.4

2008-07-06 Thread Umesh Paliwal
Here is the related Code for the Navigation Panel .


HTML CODE:

[dataview navigator]


JAVA CODE:


PagingNavigator navigator;
navigator = new PagingNavigator("navigator",myDataView)
{
protected void onBeforeRender() {
super.onBeforeRender();
if(pageSize < myDataView.getRowCount()){
System.out.println("INSIDE
DATAVIEW Model changed === true");
navigator.setVisible(true);
}
else
{
navigator.setVisible(false);
System.out.println("INSIDE
DATAVIEW Model changed === false");
}
}
};
navigator.setVisible(false);
System.out.println("INSIDE DATAVIEW
CONSTRUTOR=== false");
if(pageSize < myDataView.getRowCount()){
System.out.println("INSIDE DATAVIEW
CONSTRUTOR=== true");
navigator.setVisible(true);
}
    add(navigator);


Thanks and regards,
Umesh Paliwal

-Original Message-
From: Eric Velazquez [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 04, 2008 10:32 PM
To: users@wicket.apache.org
Subject: Re: Problem with Pagination in Wicket 1.3.4


Until 1.3.3 the PagingNavigator class added the navigation links on the
constructor, but on 1.3.4 those links are added on the onBeforeRender
method. Are you overriding the method? would be useful if you provide us
with some related piece of code.




Umesh Paliwal wrote:
> 
> Hi ,
> 
>  
> 
> I had downloaded Wicket 1.3.4 for the Autocomplete issue with IE.
> 
>  
> 
> Now the AutoComplete works fine. But when I click on the table with
> Pagination, I get the following error.
> 
>  
> 
> 
> Unexpected RuntimeException
> 
> WicketMessage: Unable to find component with id 'first' in
> [MarkupContainer [Component id = navigator, page =
> com.osi.nx.objeditor.ClassBuilder, path =
> 0:classattrpanel:panel:navigator.DataViewClassTable$3, isVisible =
true,
> isVersioned = false]]. This means that you declared wicket:id=first in
> your markup, but that you either did not add the component to your
page
> at all, or that the hierarchy does not match.
> [markup =
>
jar:file:/C:/Documents%20and%20Settings/uxp1/.m2/repository/org/apache/w
>
icket/wicket/1.3.4/wicket-1.3.4.jar!/org/apache/wicket/markup/html/navig
> ation/paging/PagingNavigator.html
> 
> 
> 
> 
>   
>  <<   < 
> 
>   # 5 
> 
>  >   >> 
>   
> 
> 
> , index = 3, current = ' ' (line 21, column 2)]
> 
> Root cause:
> 
> org.apache.wicket.markup.MarkupException: Unable to find component
with
> id 'first' in [MarkupContainer [Component id = navigator, page =
> com.osi.nx.objeditor.ClassBuilder, path =
> 0:classattrpanel:panel:navigator.DataViewClassTable$3, isVisible =
true,
> isVersioned = false]]. This means that you declared wicket:id=first in
> your markup, but that you either did not add the component to your
page
> at all, or that the hierarchy does not match.
> [markup =
>
jar:file:/C:/Documents%20and%20Settings/uxp1/.m2/repository/org/apache/w
>
icket/wicket/1.3.4/wicket-1.3.4.jar!/org/apache/wicket/markup/html/navig
> ation/paging/PagingNavigator.html
> 
> 
> 
> 
>   
>  <<   < 
> 
>   # 5 
> 
>  >   >> 
>   
> 
> 
> , index = 3, current = ' ' (line 21, column 2)]
>  at
>
org.apache.wicket.markup.MarkupStream.throwMarkupException(MarkupStream.
> java:464)
>  at
>
org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1344)
>  at
>
org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer
> .java:1476)
>  at
>
org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer
> .java:639)
>  at
>
org.apache.wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java:
> 112)
>  at
org.apache.wicket.Component.renderComponent(Component.java:2481)
>  at
> org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1411)
>  at org.apache.wicket.Component.render(Component.java:2318)
>  at
>
org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1297)
>  at
>
org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer
> .java:1476)

Problem with Pagination in Wicket 1.3.4

2008-07-03 Thread Umesh Paliwal
 at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
 at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
 at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
395)
 at
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java
:488)


Markup


The problem is in
"jar:file:/C:/Documents%20and%20Settings/uxp1/.m2/repository/org/apache/
wicket/wicket/1.3.4/wicket-1.3.4.jar!/org/apache/wicket/markup/html/navi
gation/paging/PagingNavigator.html": 





  
<< <

  5

> >>
  



display page view
<http://localhost:8080/ClassBuilderProto/?wicket:interface=:1:displayPag
eViewLink::ILinkListener::>  

 

Could you please help me out.

 

Thanks and regards,

Umesh Paliwal

 



wicket AutoComplete

2008-06-26 Thread Umesh Paliwal
HI ,

 

I am trying to use the AutoComplete Text field from wicket 1.3.3.

This works fine in firefox. But in IE I get an error and the
autoCompleteTextField vanishes.

 

Could you please suggest how should I go about it ?

 

Thanks and regards,

Umesh Paliwal