Re: [SPAM] wicket-bootstrap and another webjars components

2014-01-23 Thread Michael Haitz
the fix was merged to master and released with wicket-webjars  0.3.4

https://github.com/l0rdn1kk0n/wicket-webjars/releases/tag/wicket-webjars-parent-0.3.4


Am 25.11.2013 um 10:35 schrieb Martin Grigorov :

> Hi,
> 
> I've proposed a fix in wicket-webjars project (Pull Request 4).
> Thanks for your help!
> 
> 
> On Sat, Nov 23, 2013 at 5:06 AM, Shengche Hsiao 
> wrote:
> 
>> 
>> This is the quickstart on git hub
>> 
>> https://github.com/Shengche/webjars-wicket
>> 
>> 
>> 
>> -
>> We do this not because it is easy. We do this because it is hard.
>> --
>> View this message in context:
>> http://apache-wicket.1842946.n4.nabble.com/wicket-bootstrap-and-another-webjars-components-tp4662572p4662624.html
>> Sent from the Users forum 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: Wicket-bootstrap Bootstrap 3 support

2014-01-23 Thread Michael Haitz
wicket-bootstrap with bootstrap3 support was released yesterday.

https://github.com/l0rdn1kk0n/wicket-bootstrap/releases


Am 01.10.2013 um 10:14 schrieb Michael Haitz :

> hi,
> 
> i've fixed wicket-webjars and pushed a new version (0.3.0) to maven central.
> 
> https://github.com/l0rdn1kk0n/wicket-webjars/releases/tag/wicket-webjars-0.3.0
> 
> i've also deployed a new 0.9.0-SNAPSHOT version of wicket-bootstrap that uses 
> wicket-webjars 0.3.0.
> 
> Michael
> 
> Am 26.09.2013 um 11:42 schrieb Martin Grigorov 
> :
> 
>> Hi,
>> 
>> Please file an issue.
>> I think the main problem here is the usage of webjars.
>> bootstrap.(css|js) are loaded from webjars-bootstrap.jar that contains all
>> resources, including the fonts. But for some reason the resolving doesn't
>> work.
>> The same issue can been seen with the samples application when any
>> non-bootswatch theme is used.
>> 
>> 
>> On Thu, Sep 26, 2013 at 11:12 AM, Marcel Hoerr  wrote:
>> 
>>> hi,
>>> 
>>> i replaced the my 0.8.x version with the new 0.9.0-SNAPSHOT and get the
>>> following error:
>>> 
>>> WARN  - WicketObjects - Could not resolve class [fonts]
>>> java.lang.ClassNotFoundException: fonts
>>> 
>>> Actually this font can not be loaded:
>>> fonts/glyphicons-halflings-regular.woff
>>> 
>>> I found this thread on stackoverflow, which indicated that there is a
>>> problem with bootstraps customizer tool:
>>> 
>>> http://stackoverflow.com/questions/18369036/bootstrap-3-glyphicons-not-working
>>> 
>>> Does wicket-bootstrap use customized themes (and therefor not all/wrong
>>> fonts or icons have been attached to wicket-bootstrap)?
>>> 
>>> best reagards
>>> 
>>> marcel
>>> 
 Gesendet: Mittwoch, 25. September 2013 um 15:28 Uhr
 Von: "Michael Haitz" 
 An: "" 
 Betreff: Re: Wicket-bootstrap Bootstrap 3 support
 
 Hi,
 
 i've deployed a 0.9.0-SNAPSHOT to sonatype this morning ;)
 
 
 de.agilecoders.wicket
 wicket-bootstrap-core
 0.9.0-SNAPSHOT
 
 
 cheers,
 Michael
 
 Am 25.09.2013 um 14:24 schrieb David Beer :
 
> Hi All
> 
> I am looking at using Bootstrap 3 for our next webapplication layout. I
> have used 2.3.2 with success and the Wicket-Bootstrap project. I just
> wondered what the status is of the support for BS3 before I start
>>> coding
> the initial layout. Or am I better sticking with BS2 for now and
>>> upgrading
> once Wicket-Bootstrap for BS3 is released.
> 
> Thanks
> 
> David
 
 
 -
 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
> 


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



Re: Wicket 6 - JavaScriptHeaderItem renders too early

2014-01-23 Thread Entropy
Browser giving me a little trouble.  Apologies if I double-submitted this.
My respoonse:

I didn't even know such a website existed.  Thanks.

I am trying to implement the HeaderResponseContainer and filter
suggestion.  In my component I added the container:

add(new HiddenField(INTERNAL_HIDDEN_ROWS_SELECTED, new
Model("")).setOutputMarkupId(true).setMarkupId(INTERNAL_HIDDEN_ROWS_SELECTED));
add(new HiddenField(INTERNAL_HIDDEN_COLUMN_SYNCH, new Model("")));
add(new HeaderResponseContainer("gridCode", "gridCodeFilter"));

I added the HTML to my component (notice same level as those hiddens)

 
  
  
  
 
 


And in the renderHead I do:
@Override
public void renderHead(Component comp, IHeaderResponse response) {
  super.renderHead(comp, response);

  callbackUrl = behavior.getCallbackUrl().toString();
//JS
 response.render(JavaScriptHeaderItem.forReference(new
JavaScriptResourceReference(ExtGrid.class, "ExtGridSupport.js")));
 response.render(new
FilteredHeaderItem(JavaScriptContentHeaderItem.forScript(writeGridJS(),
getId() + "_js"), "gridCodeFilter"));
}

But I am getting:
Failed to handle: . It might be
that no resolver has been registered to handle this special tag.  But it
also could be that you declared wicket:id=gridCode in your markup, but that
you either did not add the component to your page at all, or that the
hierarchy does not match.
 MarkupStream: [markup =
file:/C:/views/EquitShare_Development/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/AFMSShared/gov/usdoj/afms/shared/wicket/ext/grid/ExtGrid.html

 
  
  
  
 
 
, index = 6, current =  '' (line 0, column 0)]
 at
org.apache.wicket.markup.MarkupStream.throwMarkupException(MarkupStream.java:526)
 at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1409)
 at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1554)
 at
org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1529)
 at
org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:689)
 at
org.apache.wicket.markup.html.panel.AssociatedMarkupSourcingStrategy.renderAssociatedMarkup(AssociatedMarkupSourcingStrategy.java:76)
 at
org.apache.wicket.markup.html.panel.PanelMarkupSourcingStrategy.onComponentTagBody(PanelMarkupSourcingStrategy.java:112)
 at org.apache.wicket.Component.internalRenderComponent(Component.java:2549)
 at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1493)
 at org.apache.wicket.Component.internalRender(Component.java:2379)
 at org.apache.wicket.Component.render(Component.java:2307)
 at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1390)
 at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1554)
 at
org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1529)
 at
org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:689)
 at
org.apache.wicket.markup.html.panel.AssociatedMarkupSourcingStrategy.renderAssociatedMarkup(AssociatedMarkupSourcingStrategy.java:76)
 at
org.apache.wicket.markup.html.panel.PanelMarkupSourcingStrategy.onComponentTagBody(PanelMarkupSourcingStrategy.java:112)
 at org.apache.wicket.Component.internalRenderComponent(Component.java:2549)
 at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1493)
 at org.apache.wicket.Component.internalRender(Component.java:2379)
 at org.apache.wicket.Component.render(Component.java:2307)
 at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1390)
 at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1554)
 at
org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1529)
 at
org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:689)
 at
org.apache.wicket.markup.html.panel.AssociatedMarkupSourcingStrategy.renderAssociatedMarkup(AssociatedMarkupSourcingStrategy.java:76)
 at
org.apache.wicket.markup.html.panel.PanelMarkupSourcingStrategy.onComponentTagBody(PanelMarkupSourcingStrategy.java:112)
 at org.apache.wicket.Component.internalRenderComponent(Component.java:2549)
 at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1493)
 at org.apache.wicket.Component.internalRender(Component.java:2379)
 at org.apache.wicket.Component.render(Component.java:2307)
 at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1390)
 at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1554)
 at
org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1529)
 at
org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:689)
 at
org.apache.wicket.markup.html.panel.AssociatedMarkupSourcingStrategy.renderAssociatedMarkup(AssociatedMarkupSourcingStrategy.java:76)
 at
org.apache.wicket.markup.html.panel.PanelMarkupSourcingStrategy.onComponentTagBody(PanelMarkupSourcingStrategy.java:112)
 at org.apache.wicket.Component.internalRenderComponent(Component.java:2549)
 at org.apache.wicke

Re: tinymce textarea in a modal window not letting to type

2014-01-23 Thread fachhoch
I created a quick start  project,   first time tinymce editor shows up fine, 
second time cannot type into editor. myproject.zip
  
Please advice.  should I create a bug report for this.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/tinymce-textarea-in-a-modal-window-not-letting-to-type-tp1886534p4663912.html
Sent from the Users forum 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 6 - JavaScriptHeaderItem renders too early

2014-01-23 Thread Martin Grigorov
Hi,

Read http://wicketinaction.com/2012/07/wicket-6-resource-management/

Martin Grigorov
Wicket Training and Consulting


On Thu, Jan 23, 2014 at 4:24 PM, Entropy  wrote:

> Hello, I am just converted to Wicket 6, and I have a line like this in one
> component:
>
> response.render(JavaScriptHeaderItem.forScript(writeGridJS(), getId() +
> "_js"));
>
> That writes some custom javascript which in turn run when Ext.onReady() is
> ready.  However, this script generated so early that not only is the DOM
> not
> ready, Ext itself hasn't even been defined.  My header item is the second
> item in the , and the Ext include is 3rd from last.  Even moving the
> ext include to the top of the .html, it is still well below the code and
> does not run in time.
>
> How can I make my header item render at the BOTTOM of the  instead of
> at the top?
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Wicket-6-JavaScriptHeaderItem-renders-too-early-tp4663910.html
> Sent from the Users forum 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
>
>


Wicket 6 - JavaScriptHeaderItem renders too early

2014-01-23 Thread Entropy
Hello, I am just converted to Wicket 6, and I have a line like this in one
component:

response.render(JavaScriptHeaderItem.forScript(writeGridJS(), getId() +
"_js")); 

That writes some custom javascript which in turn run when Ext.onReady() is
ready.  However, this script generated so early that not only is the DOM not
ready, Ext itself hasn't even been defined.  My header item is the second
item in the , and the Ext include is 3rd from last.  Even moving the
ext include to the top of the .html, it is still well below the code and
does not run in time.

How can I make my header item render at the BOTTOM of the  instead of
at the top?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-6-JavaScriptHeaderItem-renders-too-early-tp4663910.html
Sent from the Users forum 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: Error with getPageCount() when extending the Datatable in Wicket 6.13

2014-01-23 Thread chathuraka.waas
Hi,

it seems that i was able to fix the issue. there was a old version of wicket
included because of another dependency. excluding that dependency did the
trick. 

Thanks a lot for your help guys. 

Best Regards, 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Error-with-getPageCount-when-extending-the-Datatable-in-Wicket-6-13-tp4663896p4663909.html
Sent from the Users forum 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: Error with getPageCount() when extending the Datatable in Wicket 6.13

2014-01-23 Thread chathuraka.waas
Hi,

yes wicket-extentions is also 6.13.0 


org.apache.wicket
wicket-extensions
6.13.0



thanks. 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Error-with-getPageCount-when-extending-the-Datatable-in-Wicket-6-13-tp4663896p4663907.html
Sent from the Users forum 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: Error with getPageCount() when extending the Datatable in Wicket 6.13

2014-01-23 Thread Martin Grigorov
Check that wicket-extensions dependency is also 6.x.

Martin Grigorov
Wicket Training and Consulting


On Thu, Jan 23, 2014 at 11:01 AM, chathuraka.waas  wrote:

> Hi,
>
> the compile time error netbeans gives me is
>
> getPageCount() in DataTable cannot implement getPageCount() in Ipageable
> return type long is not compatible with int
>
>
> this is my class definition.
>
> class MyTable extends DataTable {
>
> }
>
> im not at the liberty to post the whole code in here since its client work.
> Hope this error and code will help.
>
> thanks.
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Error-with-getPageCount-when-extending-the-Datatable-in-Wicket-6-13-tp4663896p4663904.html
> Sent from the Users forum 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: Error with getPageCount() when extending the Datatable in Wicket 6.13

2014-01-23 Thread chathuraka.waas
Hi,

the compile time error netbeans gives me is 

getPageCount() in DataTable cannot implement getPageCount() in Ipageable 
return type long is not compatible with int


this is my class definition. 

class MyTable extends DataTable {

}

im not at the liberty to post the whole code in here since its client work.
Hope this error and code will help. 

thanks. 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Error-with-getPageCount-when-extending-the-Datatable-in-Wicket-6-13-tp4663896p4663904.html
Sent from the Users forum 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: Error with getPageCount() when extending the Datatable in Wicket 6.13

2014-01-23 Thread Martin Grigorov
Right.
The method is final -
https://github.com/apache/wicket/blob/master/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/repeater/data/table/DataTable.java?source=c#L303

Show us the error please.

Martin Grigorov
Wicket Training and Consulting


On Thu, Jan 23, 2014 at 10:39 AM, chathuraka.waas  wrote:

> Hi,
>
> i'm working on a code which was not written by me. It seems my classes
> extending the Datatable class doesnt implement the getPageCount() method.
>
> But when i try to override the method netbeans shows me a signature with a
> int return type on the suggession list.
>
> Not sure what's causing this.
>
>
> Thanks,
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Error-with-getPageCount-when-extending-the-Datatable-in-Wicket-6-13-tp4663896p4663901.html
> Sent from the Users forum 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: Error with getPageCount() when extending the Datatable in Wicket 6.13

2014-01-23 Thread chathuraka.waas
Hi,

i'm working on a code which was not written by me. It seems my classes
extending the Datatable class doesnt implement the getPageCount() method. 

But when i try to override the method netbeans shows me a signature with a
int return type on the suggession list. 

Not sure what's causing this. 


Thanks,

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Error-with-getPageCount-when-extending-the-Datatable-in-Wicket-6-13-tp4663896p4663901.html
Sent from the Users forum 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: Error with getPageCount() when extending the Datatable in Wicket 6.13

2014-01-23 Thread Martin Grigorov
Hi,

In your DataTable impl change the signature of #getPageCount() from int to
long.

Martin Grigorov
Wicket Training and Consulting


On Thu, Jan 23, 2014 at 10:20 AM, chathuraka.waas  wrote:

> Hi François,
>
> Thanks for the quick reply. I'm fairly new to wicket and didnt understood
> what you meant clearly. . But i'm not calling this getPageCount() method
> from my backend. and also the error comes in class definition.
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Error-with-getPageCount-when-extending-the-Datatable-in-Wicket-6-13-tp4663896p4663898.html
> Sent from the Users forum 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: Understanding setPageExpiredErrorPage and onUnauthorizedInstantiation

2014-01-23 Thread Martin Grigorov
Hi,

On Thu, Jan 23, 2014 at 6:42 AM, jchappelle  wrote:

> Martin,
>
> I noticed in one of your posts you point out the difference between session
> expiration and page expiration. I have been thinking they are the same
> thing
> when they are obviously not. I'm looking to redirect when the session
> expires. Although thinking through this I'm not sure there is a way since
> it
> will expire on the server and there most likely won't be a request in
> progress when this happens. I guess I can use a client side timer that
> checks back with the server on an interval and redirects when it expires.
> Is
> there a wicket recommended way to do this or is this something that
> everyone
> re-invents the wheel for?
>

No.
You cannot do this because each request (from the timer) will touch the
session and thus it won't expire.


>
> Thanks,
>
> Josh
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Understanding-setPageExpiredErrorPage-and-onUnauthorizedInstantiation-tp4663870p4663894.html
> Sent from the Users forum 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: Error with getPageCount() when extending the Datatable in Wicket 6.13

2014-01-23 Thread chathuraka.waas
Hi François,

Thanks for the quick reply. I'm fairly new to wicket and didnt understood
what you meant clearly. . But i'm not calling this getPageCount() method
from my backend. and also the error comes in class definition. 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Error-with-getPageCount-when-extending-the-Datatable-in-Wicket-6-13-tp4663896p4663898.html
Sent from the Users forum 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